Merge branch 'debian'
[hcoop/debian/courier-authlib.git] / libs / liblock / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
b0322a85 3# Generated by GNU Autoconf 2.69 for liblock 0.60.
d9898ee8 4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
b0322a85
CE
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
d9898ee8 11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
b0322a85
CE
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
d9898ee8 16
dd184caf 17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
b0322a85 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
d9898ee8 20 emulate sh
21 NULLCMD=:
8d138742 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
d9898ee8 23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
dd184caf 25 setopt NO_GLOB_SUBST
26else
b0322a85
CE
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
dd184caf 32esac
dd184caf 33fi
34
35
8d138742
CE
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
b0322a85
CE
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8d138742
CE
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
b0322a85 60 case $arg in #(
8d138742
CE
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
dd184caf 74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
8d138742
CE
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
d9898ee8 81fi
d9898ee8 82
d9898ee8 83
dd184caf 84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
dd184caf 89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
b0322a85
CE
92as_myself=
93case $0 in #((
dd184caf 94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
b0322a85
CE
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
dd184caf 102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
8d138742 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b0322a85 113 exit 1
dd184caf 114fi
115
b0322a85
CE
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
dd184caf 123done
d9898ee8 124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
8d138742
CE
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
d9898ee8 133
dd184caf 134# CDPATH.
b0322a85 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d9898ee8 136
b0322a85
CE
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
dd184caf 162if test "x$CONFIG_SHELL" = x; then
b0322a85
CE
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
dd184caf 170else
b0322a85
CE
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
d9898ee8 177fi
b0322a85
CE
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
d9898ee8 184
dd184caf 185exitcode=0
b0322a85
CE
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
dd184caf 212else
b0322a85 213 as_have_required=no
dd184caf 214fi
b0322a85 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
dd184caf 216
dd184caf 217else
b0322a85
CE
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
d9898ee8 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
b0322a85
CE
224 as_found=:
225 case $as_dir in #(
d9898ee8 226 /*)
dd184caf 227 for as_base in sh bash ksh sh5; do
b0322a85
CE
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
dd184caf 237 done;;
238 esac
b0322a85 239 as_found=false
dd184caf 240done
b0322a85
CE
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
dd184caf 245IFS=$as_save_IFS
246
247
b0322a85
CE
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: courier-users@lists.sourceforge.net about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282 fi
283 exit 1
dd184caf 284fi
dd184caf 285fi
dd184caf 286fi
b0322a85
CE
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
dd184caf 292
b0322a85
CE
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
dd184caf 304
b0322a85
CE
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
dd184caf 312
b0322a85
CE
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
dd184caf 328
b0322a85
CE
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
dd184caf 367
dd184caf 368
b0322a85 369} # as_fn_mkdir_p
dd184caf 370
b0322a85
CE
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
dd184caf 412
413
b0322a85
CE
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
dd184caf 429
b0322a85
CE
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
dd184caf 433else
b0322a85 434 as_expr=false
dd184caf 435fi
436
b0322a85
CE
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
dd184caf 439else
b0322a85 440 as_basename=false
dd184caf 441fi
442
b0322a85
CE
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
dd184caf 445else
b0322a85 446 as_dirname=false
dd184caf 447fi
448
b0322a85
CE
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
dd184caf 467
b0322a85
CE
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
dd184caf 474
d9898ee8 475
b0322a85
CE
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
dd184caf 481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
d9898ee8 485 sed '
dd184caf 486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
d9898ee8 490 N
dd184caf 491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 493 t loop
dd184caf 494 s/-\n.*//
d9898ee8 495 ' >$as_me.lineno &&
dd184caf 496 chmod +x "$as_me.lineno" ||
b0322a85 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
d9898ee8 498
b0322a85
CE
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
d9898ee8 503 # Don't try to exec as it changes $[0], causing all sort of problems
b0322a85
CE
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
dd184caf 510
511ECHO_C= ECHO_N= ECHO_T=
b0322a85 512case `echo -n x` in #(((((
dd184caf 513-n*)
b0322a85 514 case `echo 'xy\c'` in
dd184caf 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
b0322a85
CE
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
dd184caf 519 esac;;
520*)
521 ECHO_N='-n';;
d9898ee8 522esac
d9898ee8 523
524rm -f conf$$ conf$$.exe conf$$.file
dd184caf 525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
8d138742
CE
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
b0322a85 537 # In both cases, we have to default to `cp -pR'.
8d138742 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
b0322a85 539 as_ln_s='cp -pR'
8d138742
CE
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
b0322a85 543 as_ln_s='cp -pR'
8d138742 544 fi
d9898ee8 545else
b0322a85 546 as_ln_s='cp -pR'
d9898ee8 547fi
dd184caf 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
d9898ee8 550
551if mkdir -p . 2>/dev/null; then
b0322a85 552 as_mkdir_p='mkdir -p "$as_dir"'
d9898ee8 553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
b0322a85
CE
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
d9898ee8 560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
d9898ee8 567SHELL=${CONFIG_SHELL-/bin/sh}
568
d9898ee8 569
b0322a85
CE
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
dd184caf 572
d9898ee8 573# Name of the host.
b0322a85 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
d9898ee8 575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
d9898ee8 578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
dd184caf 582ac_clean_files=
d9898ee8 583ac_config_libobj_dir=.
dd184caf 584LIBOBJS=
d9898ee8 585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
d9898ee8 589
d9898ee8 590# Identity of this package.
591PACKAGE_NAME='liblock'
592PACKAGE_TARNAME='liblock'
593PACKAGE_VERSION='0.60'
594PACKAGE_STRING='liblock 0.60'
595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
b0322a85 596PACKAGE_URL=''
d9898ee8 597
598ac_unique_file="liblock.h"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
dd184caf 602#ifdef HAVE_SYS_TYPES_H
d9898ee8 603# include <sys/types.h>
604#endif
dd184caf 605#ifdef HAVE_SYS_STAT_H
d9898ee8 606# include <sys/stat.h>
607#endif
dd184caf 608#ifdef STDC_HEADERS
d9898ee8 609# include <stdlib.h>
610# include <stddef.h>
611#else
dd184caf 612# ifdef HAVE_STDLIB_H
d9898ee8 613# include <stdlib.h>
614# endif
615#endif
dd184caf 616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d9898ee8 618# include <memory.h>
619# endif
620# include <string.h>
621#endif
dd184caf 622#ifdef HAVE_STRINGS_H
d9898ee8 623# include <strings.h>
624#endif
dd184caf 625#ifdef HAVE_INTTYPES_H
d9898ee8 626# include <inttypes.h>
d9898ee8 627#endif
dd184caf 628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
d9898ee8 632# include <unistd.h>
633#endif"
634
8d138742
CE
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639HAVE_SGML_FALSE
640HAVE_SGML_TRUE
641USE_LOCKF_FALSE
642USE_LOCKF_TRUE
643USE_FLOCK_FALSE
644USE_FLOCK_TRUE
645USE_FCNTL_FALSE
646USE_FCNTL_TRUE
647CPP
648OTOOL64
649OTOOL
650LIPO
651NMEDIT
652DSYMUTIL
b0322a85 653MANIFEST_TOOL
8d138742 654RANLIB
b0322a85 655ac_ct_AR
8d138742 656AR
b0322a85 657DLLTOOL
8d138742
CE
658OBJDUMP
659NM
660ac_ct_DUMPBIN
661DUMPBIN
662LD
663FGREP
664EGREP
665GREP
666SED
667host_os
668host_vendor
669host_cpu
670host
671build_os
672build_vendor
673build_cpu
674build
675LIBTOOL
676LN_S
677am__fastdepCC_FALSE
678am__fastdepCC_TRUE
679CCDEPMODE
b0322a85 680am__nodep
8d138742
CE
681AMDEPBACKSLASH
682AMDEP_FALSE
683AMDEP_TRUE
684am__quote
685am__include
686DEPDIR
687OBJEXT
688EXEEXT
689ac_ct_CC
690CPPFLAGS
691LDFLAGS
692CFLAGS
693CC
b0322a85
CE
694AM_BACKSLASH
695AM_DEFAULT_VERBOSITY
696AM_DEFAULT_V
697AM_V
8d138742
CE
698am__untar
699am__tar
700AMTAR
701am__leading_dot
702SET_MAKE
703AWK
704mkdir_p
705MKDIR_P
706INSTALL_STRIP_PROGRAM
707STRIP
708install_sh
709MAKEINFO
710AUTOHEADER
711AUTOMAKE
712AUTOCONF
713ACLOCAL
714VERSION
715PACKAGE
716CYGPATH_W
717am__isrc
718INSTALL_DATA
719INSTALL_SCRIPT
720INSTALL_PROGRAM
721target_alias
722host_alias
dd184caf 723build_alias
8d138742
CE
724LIBS
725ECHO_T
726ECHO_N
727ECHO_C
728DEFS
729mandir
730localedir
731libdir
732psdir
733pdfdir
734dvidir
735htmldir
736infodir
737docdir
738oldincludedir
739includedir
740localstatedir
741sharedstatedir
742sysconfdir
743datadir
744datarootdir
745libexecdir
746sbindir
747bindir
748program_transform_name
749prefix
750exec_prefix
b0322a85 751PACKAGE_URL
8d138742
CE
752PACKAGE_BUGREPORT
753PACKAGE_STRING
754PACKAGE_VERSION
755PACKAGE_TARNAME
756PACKAGE_NAME
757PATH_SEPARATOR
758SHELL'
759ac_subst_files=''
760ac_user_opts='
761enable_option_checking
b0322a85 762enable_silent_rules
8d138742
CE
763enable_dependency_tracking
764enable_shared
765enable_static
766with_pic
767enable_fast_install
768with_gnu_ld
b0322a85 769with_sysroot
8d138742 770enable_libtool_lock
b0322a85 771enable_largefile
8d138742
CE
772with_locking_method
773'
774 ac_precious_vars='build_alias
dd184caf 775host_alias
776target_alias
dd184caf 777CC
778CFLAGS
779LDFLAGS
8d138742 780LIBS
dd184caf 781CPPFLAGS
8d138742 782CPP'
dd184caf 783
d9898ee8 784
785# Initialize some variables set by options.
786ac_init_help=
787ac_init_version=false
8d138742
CE
788ac_unrecognized_opts=
789ac_unrecognized_sep=
d9898ee8 790# The variables have the same names as the options, with
791# dashes changed to underlines.
792cache_file=/dev/null
793exec_prefix=NONE
794no_create=
795no_recursion=
796prefix=NONE
797program_prefix=NONE
798program_suffix=NONE
799program_transform_name=s,x,x,
800silent=
801site=
802srcdir=
803verbose=
804x_includes=NONE
805x_libraries=NONE
806
807# Installation directory options.
808# These are left unexpanded so users can "make install exec_prefix=/foo"
809# and all the variables that are supposed to be based on exec_prefix
810# by default will actually change.
811# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 812# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 813bindir='${exec_prefix}/bin'
814sbindir='${exec_prefix}/sbin'
815libexecdir='${exec_prefix}/libexec'
dd184caf 816datarootdir='${prefix}/share'
817datadir='${datarootdir}'
d9898ee8 818sysconfdir='${prefix}/etc'
819sharedstatedir='${prefix}/com'
820localstatedir='${prefix}/var'
d9898ee8 821includedir='${prefix}/include'
822oldincludedir='/usr/include'
dd184caf 823docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
824infodir='${datarootdir}/info'
825htmldir='${docdir}'
826dvidir='${docdir}'
827pdfdir='${docdir}'
828psdir='${docdir}'
829libdir='${exec_prefix}/lib'
830localedir='${datarootdir}/locale'
831mandir='${datarootdir}/man'
d9898ee8 832
833ac_prev=
dd184caf 834ac_dashdash=
d9898ee8 835for ac_option
836do
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
dd184caf 839 eval $ac_prev=\$ac_option
d9898ee8 840 ac_prev=
841 continue
842 fi
843
dd184caf 844 case $ac_option in
b0322a85
CE
845 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 *=) ac_optarg= ;;
847 *) ac_optarg=yes ;;
dd184caf 848 esac
d9898ee8 849
850 # Accept the important Cygnus configure options, so we can diagnose typos.
851
dd184caf 852 case $ac_dashdash$ac_option in
853 --)
854 ac_dashdash=yes ;;
d9898ee8 855
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
857 ac_prev=bindir ;;
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 bindir=$ac_optarg ;;
860
861 -build | --build | --buil | --bui | --bu)
862 ac_prev=build_alias ;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias=$ac_optarg ;;
865
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file=$ac_optarg ;;
872
873 --config-cache | -C)
874 cache_file=config.cache ;;
875
dd184caf 876 -datadir | --datadir | --datadi | --datad)
d9898ee8 877 ac_prev=datadir ;;
dd184caf 878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 879 datadir=$ac_optarg ;;
880
dd184caf 881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
887
d9898ee8 888 -disable-* | --disable-*)
8d138742 889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d9898ee8 890 # Reject names that are not valid shell variable names.
8d138742 891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 892 as_fn_error $? "invalid feature name: $ac_useropt"
8d138742
CE
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897"enable_$ac_useropt"
898"*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=no ;;
dd184caf 903
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
908
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
d9898ee8 913
914 -enable-* | --enable-*)
8d138742 915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d9898ee8 916 # Reject names that are not valid shell variable names.
8d138742 917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 918 as_fn_error $? "invalid feature name: $ac_useropt"
8d138742
CE
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923"enable_$ac_useropt"
924"*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=\$ac_optarg ;;
d9898ee8 929
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix=$ac_optarg ;;
938
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
941 with_gas=yes ;;
942
943 -help | --help | --hel | --he | -h)
944 ac_init_help=long ;;
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
949
950 -host | --host | --hos | --ho)
951 ac_prev=host_alias ;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias=$ac_optarg ;;
954
dd184caf 955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956 ac_prev=htmldir ;;
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958 | --ht=*)
959 htmldir=$ac_optarg ;;
960
d9898ee8 961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir=$ac_optarg ;;
967
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
969 ac_prev=infodir ;;
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
972
973 -libdir | --libdir | --libdi | --libd)
974 ac_prev=libdir ;;
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 libdir=$ac_optarg ;;
977
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir=$ac_optarg ;;
984
dd184caf 985 -localedir | --localedir | --localedi | --localed | --locale)
986 ac_prev=localedir ;;
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
989
d9898ee8 990 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 991 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 995 localstatedir=$ac_optarg ;;
996
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998 ac_prev=mandir ;;
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1001
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1004 with_fp=no ;;
1005
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1008 no_create=yes ;;
1009
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 no_recursion=yes ;;
1013
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir=$ac_optarg ;;
1022
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024 ac_prev=prefix ;;
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix=$ac_optarg ;;
1027
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix=$ac_optarg ;;
1034
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix=$ac_optarg ;;
1041
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name=$ac_optarg ;;
1058
dd184caf 1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060 ac_prev=pdfdir ;;
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1063
1064 -psdir | --psdir | --psdi | --psd | --ps)
1065 ac_prev=psdir ;;
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 psdir=$ac_optarg ;;
1068
d9898ee8 1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 silent=yes ;;
1072
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1074 ac_prev=sbindir ;;
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1076 | --sbi=* | --sb=*)
1077 sbindir=$ac_optarg ;;
1078
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1082 | --sha | --sh)
1083 ac_prev=sharedstatedir ;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1087 | --sha=* | --sh=*)
1088 sharedstatedir=$ac_optarg ;;
1089
1090 -site | --site | --sit)
1091 ac_prev=site ;;
1092 -site=* | --site=* | --sit=*)
1093 site=$ac_optarg ;;
1094
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1096 ac_prev=srcdir ;;
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098 srcdir=$ac_optarg ;;
1099
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev=sysconfdir ;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105 sysconfdir=$ac_optarg ;;
1106
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
1108 ac_prev=target_alias ;;
1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110 target_alias=$ac_optarg ;;
1111
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 verbose=yes ;;
1114
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version=: ;;
1117
1118 -with-* | --with-*)
8d138742 1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d9898ee8 1120 # Reject names that are not valid shell variable names.
8d138742 1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1122 as_fn_error $? "invalid package name: $ac_useropt"
8d138742
CE
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127"with_$ac_useropt"
1128"*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval with_$ac_useropt=\$ac_optarg ;;
d9898ee8 1133
1134 -without-* | --without-*)
8d138742 1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d9898ee8 1136 # Reject names that are not valid shell variable names.
8d138742 1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1138 as_fn_error $? "invalid package name: $ac_useropt"
8d138742
CE
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1142 *"
1143"with_$ac_useropt"
1144"*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=no ;;
d9898ee8 1149
1150 --x)
1151 # Obsolete; use --with-x.
1152 with_x=yes ;;
1153
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1160
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1167
b0322a85
CE
1168 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1169Try \`$0 --help' for more information"
d9898ee8 1170 ;;
1171
1172 *=*)
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
b0322a85
CE
1175 case $ac_envvar in #(
1176 '' | [0-9]* | *[!_$as_cr_alnum]* )
1177 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1178 esac
dd184caf 1179 eval $ac_envvar=\$ac_optarg
d9898ee8 1180 export $ac_envvar ;;
1181
1182 *)
1183 # FIXME: should be removed in autoconf 3.0.
8d138742 1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
d9898ee8 1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8d138742 1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b0322a85 1187 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
d9898ee8 1188 ;;
1189
1190 esac
1191done
1192
1193if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
b0322a85 1195 as_fn_error $? "missing argument to $ac_option"
d9898ee8 1196fi
1197
8d138742
CE
1198if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1200 no) ;;
b0322a85 1201 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
8d138742
CE
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203 esac
1204fi
1205
1206# Check all directory arguments for consistency.
dd184caf 1207for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
d9898ee8 1211do
dd184caf 1212 eval ac_val=\$$ac_var
8d138742
CE
1213 # Remove trailing slashes.
1214 case $ac_val in
1215 */ )
1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\$ac_val;;
1218 esac
1219 # Be sure to have absolute directory names.
d9898ee8 1220 case $ac_val in
dd184caf 1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1223 esac
b0322a85 1224 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
d9898ee8 1225done
1226
1227# There might be people who depend on the old broken behavior: `$host'
1228# used to hold the argument of --host etc.
1229# FIXME: To remove some day.
1230build=$build_alias
1231host=$host_alias
1232target=$target_alias
1233
1234# FIXME: To remove some day.
1235if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
d9898ee8 1238 elif test "x$build_alias" != "x$host_alias"; then
1239 cross_compiling=yes
1240 fi
1241fi
1242
1243ac_tool_prefix=
1244test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246test "$silent" = yes && exec 6>/dev/null
1247
1248
dd184caf 1249ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250ac_ls_di=`ls -di .` &&
1251ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
b0322a85 1252 as_fn_error $? "working directory cannot be determined"
dd184caf 1253test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
b0322a85 1254 as_fn_error $? "pwd does not report name of working directory"
dd184caf 1255
1256
d9898ee8 1257# Find the source files, if location was not specified.
1258if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
dd184caf 1260 # Try the directory containing this script, then the parent directory.
8d138742
CE
1261 ac_confdir=`$as_dirname -- "$as_myself" ||
1262$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$as_myself" : 'X\(//\)[^/]' \| \
1264 X"$as_myself" : 'X\(//\)$' \| \
1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266$as_echo X"$as_myself" |
dd184caf 1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)[^/].*/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\).*/{
1280 s//\1/
1281 q
1282 }
1283 s/.*/./; q'`
d9898ee8 1284 srcdir=$ac_confdir
dd184caf 1285 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1286 srcdir=..
1287 fi
1288else
1289 ac_srcdir_defaulted=no
1290fi
dd184caf 1291if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
b0322a85 1293 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
d9898ee8 1294fi
dd184caf 1295ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296ac_abs_confdir=`(
b0322a85 1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
dd184caf 1298 pwd)`
1299# When building in place, set srcdir=.
1300if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1302fi
1303# Remove unnecessary trailing slashes from srcdir.
1304# Double slashes in file names in object file debugging info
1305# mess up M-x gdb in Emacs.
1306case $srcdir in
1307*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308esac
1309for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314done
d9898ee8 1315
1316#
1317# Report the --help message.
1318#
1319if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
1323\`configure' configures liblock 0.60 to adapt to many kinds of systems.
1324
1325Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328VAR=VALUE. See below for descriptions of some of the useful variables.
1329
1330Defaults for the options are specified in brackets.
1331
1332Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
b0322a85 1337 -q, --quiet, --silent do not print \`checking ...' messages
d9898ee8 1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342
d9898ee8 1343Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
8d138742 1345 [$ac_default_prefix]
d9898ee8 1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8d138742 1347 [PREFIX]
d9898ee8 1348
1349By default, \`make install' will install all the files in
1350\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352for instance \`--prefix=\$HOME'.
1353
1354For better control, use the options below.
1355
1356Fine tuning of the installation directories:
8d138742
CE
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/liblock]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1376_ACEOF
1377
1378 cat <<\_ACEOF
1379
1380Program names:
1381 --program-prefix=PREFIX prepend PREFIX to installed program names
1382 --program-suffix=SUFFIX append SUFFIX to installed program names
1383 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1384
1385System types:
1386 --build=BUILD configure for building on BUILD [guessed]
1387 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1388_ACEOF
1389fi
1390
1391if test -n "$ac_init_help"; then
1392 case $ac_init_help in
1393 short | recursive ) echo "Configuration of liblock 0.60:";;
1394 esac
1395 cat <<\_ACEOF
1396
1397Optional Features:
8d138742 1398 --disable-option-checking ignore unrecognized --enable/--with options
d9898ee8 1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b0322a85
CE
1401 --enable-silent-rules less verbose build output (undo: "make V=1")
1402 --disable-silent-rules verbose build output (undo: "make V=0")
1403 --enable-dependency-tracking
1404 do not reject slow dependency extractors
1405 --disable-dependency-tracking
1406 speeds up one-time build
dd184caf 1407 --enable-shared[=PKGS] build shared libraries [default=yes]
1408 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1409 --enable-fast-install[=PKGS]
1410 optimize for fast installation [default=yes]
1411 --disable-libtool-lock avoid locking (might break parallel builds)
b0322a85 1412 --disable-largefile omit support for large files
d9898ee8 1413
1414Optional Packages:
1415 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1416 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
b0322a85 1417 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
d9898ee8 1418 both]
8d138742 1419 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b0322a85
CE
1420 --with-sysroot=DIR Search for dependent libraries within DIR
1421 (or the compiler's sysroot if not specified).
1422
1423
1424Some influential environment variables:
1425 CC C compiler command
1426 CFLAGS C compiler flags
1427 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1428 nonstandard directory <lib dir>
1429 LIBS libraries to pass to the linker, e.g. -l<library>
1430 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1431 you have headers in a nonstandard directory <include dir>
1432 CPP C preprocessor
1433
1434Use these variables to override the choices made by `configure' or to help
1435it to find libraries and programs with nonstandard names/locations.
1436
1437Report bugs to <courier-users@lists.sourceforge.net>.
1438_ACEOF
1439ac_status=$?
1440fi
1441
1442if test "$ac_init_help" = "recursive"; then
1443 # If there are subdirs, report their specific --help.
1444 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1445 test -d "$ac_dir" ||
1446 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1447 continue
1448 ac_builddir=.
1449
1450case "$ac_dir" in
1451.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452*)
1453 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1454 # A ".." for each directory in $ac_dir_suffix.
1455 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1456 case $ac_top_builddir_sub in
1457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1459 esac ;;
1460esac
1461ac_abs_top_builddir=$ac_pwd
1462ac_abs_builddir=$ac_pwd$ac_dir_suffix
1463# for backward compatibility:
1464ac_top_builddir=$ac_top_build_prefix
1465
1466case $srcdir in
1467 .) # We are building in place.
1468 ac_srcdir=.
1469 ac_top_srcdir=$ac_top_builddir_sub
1470 ac_abs_top_srcdir=$ac_pwd ;;
1471 [\\/]* | ?:[\\/]* ) # Absolute name.
1472 ac_srcdir=$srcdir$ac_dir_suffix;
1473 ac_top_srcdir=$srcdir
1474 ac_abs_top_srcdir=$srcdir ;;
1475 *) # Relative name.
1476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1477 ac_top_srcdir=$ac_top_build_prefix$srcdir
1478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1479esac
1480ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1481
1482 cd "$ac_dir" || { ac_status=$?; continue; }
1483 # Check for guested configure.
1484 if test -f "$ac_srcdir/configure.gnu"; then
1485 echo &&
1486 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1487 elif test -f "$ac_srcdir/configure"; then
1488 echo &&
1489 $SHELL "$ac_srcdir/configure" --help=recursive
1490 else
1491 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1492 fi || ac_status=$?
1493 cd "$ac_pwd" || { ac_status=$?; break; }
1494 done
1495fi
1496
1497test -n "$ac_init_help" && exit $ac_status
1498if $ac_init_version; then
1499 cat <<\_ACEOF
1500liblock configure 0.60
1501generated by GNU Autoconf 2.69
1502
1503Copyright (C) 2012 Free Software Foundation, Inc.
1504This configure script is free software; the Free Software Foundation
1505gives unlimited permission to copy, distribute and modify it.
1506_ACEOF
1507 exit
1508fi
1509
1510## ------------------------ ##
1511## Autoconf initialization. ##
1512## ------------------------ ##
1513
1514# ac_fn_c_try_compile LINENO
1515# --------------------------
1516# Try to compile conftest.$ac_ext, and return whether this succeeded.
1517ac_fn_c_try_compile ()
1518{
1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520 rm -f conftest.$ac_objext
1521 if { { ac_try="$ac_compile"
1522case "(($ac_try" in
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1525esac
1526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527$as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_compile") 2>conftest.err
1529 ac_status=$?
1530 if test -s conftest.err; then
1531 grep -v '^ *+' conftest.err >conftest.er1
1532 cat conftest.er1 >&5
1533 mv -f conftest.er1 conftest.err
1534 fi
1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536 test $ac_status = 0; } && {
1537 test -z "$ac_c_werror_flag" ||
1538 test ! -s conftest.err
1539 } && test -s conftest.$ac_objext; then :
1540 ac_retval=0
1541else
1542 $as_echo "$as_me: failed program was:" >&5
1543sed 's/^/| /' conftest.$ac_ext >&5
1544
1545 ac_retval=1
1546fi
1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548 as_fn_set_status $ac_retval
1549
1550} # ac_fn_c_try_compile
1551
1552# ac_fn_c_try_link LINENO
1553# -----------------------
1554# Try to link conftest.$ac_ext, and return whether this succeeded.
1555ac_fn_c_try_link ()
1556{
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext conftest$ac_exeext
1559 if { { ac_try="$ac_link"
1560case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563esac
1564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565$as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_link") 2>conftest.err
1567 ac_status=$?
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1572 fi
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest$ac_exeext && {
1578 test "$cross_compiling" = yes ||
1579 test -x conftest$ac_exeext
1580 }; then :
1581 ac_retval=0
1582else
1583 $as_echo "$as_me: failed program was:" >&5
1584sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 1585
b0322a85
CE
1586 ac_retval=1
1587fi
1588 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1589 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1590 # interfere with the next link command; also delete a directory that is
1591 # left behind by Apple's compiler. We do this before executing the actions.
1592 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status $ac_retval
1595
1596} # ac_fn_c_try_link
1597
1598# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1599# -------------------------------------------------------
1600# Tests whether HEADER exists and can be compiled using the include files in
1601# INCLUDES, setting the cache variable VAR accordingly.
1602ac_fn_c_check_header_compile ()
1603{
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1606$as_echo_n "checking for $2... " >&6; }
1607if eval \${$3+:} false; then :
1608 $as_echo_n "(cached) " >&6
1609else
1610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611/* end confdefs.h. */
1612$4
1613#include <$2>
1614_ACEOF
1615if ac_fn_c_try_compile "$LINENO"; then :
1616 eval "$3=yes"
1617else
1618 eval "$3=no"
1619fi
1620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1621fi
1622eval ac_res=\$$3
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1624$as_echo "$ac_res" >&6; }
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626
1627} # ac_fn_c_check_header_compile
1628
1629# ac_fn_c_try_cpp LINENO
1630# ----------------------
1631# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1632ac_fn_c_try_cpp ()
1633{
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 if { { ac_try="$ac_cpp conftest.$ac_ext"
1636case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639esac
1640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641$as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1643 ac_status=$?
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1648 fi
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } > conftest.i && {
1651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 }; then :
1654 ac_retval=0
1655else
1656 $as_echo "$as_me: failed program was:" >&5
1657sed 's/^/| /' conftest.$ac_ext >&5
1658
1659 ac_retval=1
1660fi
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662 as_fn_set_status $ac_retval
1663
1664} # ac_fn_c_try_cpp
1665
1666# ac_fn_c_try_run LINENO
1667# ----------------------
1668# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1669# that executables *can* be run.
1670ac_fn_c_try_run ()
1671{
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if { { ac_try="$ac_link"
1674case "(($ac_try" in
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1677esac
1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679$as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_link") 2>&5
1681 ac_status=$?
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1684 { { case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_try") 2>&5
1691 ac_status=$?
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; }; }; then :
1694 ac_retval=0
1695else
1696 $as_echo "$as_me: program exited with status $ac_status" >&5
1697 $as_echo "$as_me: failed program was:" >&5
1698sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=$ac_status
1701fi
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1705
1706} # ac_fn_c_try_run
1707
1708# ac_fn_c_check_func LINENO FUNC VAR
1709# ----------------------------------
1710# Tests whether FUNC exists, setting the cache variable VAR accordingly
1711ac_fn_c_check_func ()
1712{
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715$as_echo_n "checking for $2... " >&6; }
1716if eval \${$3+:} false; then :
1717 $as_echo_n "(cached) " >&6
1718else
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720/* end confdefs.h. */
1721/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1723#define $2 innocuous_$2
1724
1725/* System header to define __stub macros and hopefully few prototypes,
1726 which can conflict with char $2 (); below.
1727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1728 <limits.h> exists even on freestanding compilers. */
1729
1730#ifdef __STDC__
1731# include <limits.h>
1732#else
1733# include <assert.h>
1734#endif
d9898ee8 1735
b0322a85 1736#undef $2
d9898ee8 1737
b0322a85
CE
1738/* Override any GCC internal prototype to avoid an error.
1739 Use char because int might match the return type of a GCC
1740 builtin and then its argument prototype would still apply. */
1741#ifdef __cplusplus
1742extern "C"
1743#endif
1744char $2 ();
1745/* The GNU C library defines this for functions which it implements
1746 to always fail with ENOSYS. Some functions are actually named
1747 something starting with __ and the normal name is an alias. */
1748#if defined __stub_$2 || defined __stub___$2
1749choke me
1750#endif
d9898ee8 1751
b0322a85
CE
1752int
1753main ()
1754{
1755return $2 ();
1756 ;
1757 return 0;
1758}
d9898ee8 1759_ACEOF
b0322a85
CE
1760if ac_fn_c_try_link "$LINENO"; then :
1761 eval "$3=yes"
1762else
1763 eval "$3=no"
1764fi
1765rm -f core conftest.err conftest.$ac_objext \
1766 conftest$ac_exeext conftest.$ac_ext
d9898ee8 1767fi
b0322a85
CE
1768eval ac_res=\$$3
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770$as_echo "$ac_res" >&6; }
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d9898ee8 1772
b0322a85 1773} # ac_fn_c_check_func
d9898ee8 1774
b0322a85
CE
1775# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1776# -------------------------------------------------------
1777# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1778# the include files in INCLUDES and setting the cache variable VAR
1779# accordingly.
1780ac_fn_c_check_header_mongrel ()
1781{
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if eval \${$3+:} false; then :
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785$as_echo_n "checking for $2... " >&6; }
1786if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1788fi
1789eval ac_res=\$$3
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791$as_echo "$ac_res" >&6; }
1792else
1793 # Is the header compilable?
1794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1795$as_echo_n "checking $2 usability... " >&6; }
1796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797/* end confdefs.h. */
1798$4
1799#include <$2>
1800_ACEOF
1801if ac_fn_c_try_compile "$LINENO"; then :
1802 ac_header_compiler=yes
1803else
1804 ac_header_compiler=no
1805fi
1806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1808$as_echo "$ac_header_compiler" >&6; }
d9898ee8 1809
b0322a85
CE
1810# Is the header present?
1811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1812$as_echo_n "checking $2 presence... " >&6; }
1813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814/* end confdefs.h. */
1815#include <$2>
1816_ACEOF
1817if ac_fn_c_try_cpp "$LINENO"; then :
1818 ac_header_preproc=yes
1819else
1820 ac_header_preproc=no
1821fi
1822rm -f conftest.err conftest.i conftest.$ac_ext
1823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1824$as_echo "$ac_header_preproc" >&6; }
dd184caf 1825
b0322a85
CE
1826# So? What about this header?
1827case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1828 yes:no: )
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1830$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833 ;;
1834 no:yes:* )
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1836$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1838$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1840$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1842$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1844$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1845( $as_echo "## -------------------------------------------------- ##
1846## Report this to courier-users@lists.sourceforge.net ##
1847## -------------------------------------------------- ##"
1848 ) | sed "s/^/$as_me: WARNING: /" >&2
1849 ;;
1850esac
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852$as_echo_n "checking for $2... " >&6; }
1853if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1855else
1856 eval "$3=\$ac_header_compiler"
1857fi
1858eval ac_res=\$$3
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860$as_echo "$ac_res" >&6; }
d9898ee8 1861fi
b0322a85 1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d9898ee8 1863
b0322a85 1864} # ac_fn_c_check_header_mongrel
d9898ee8 1865
b0322a85
CE
1866# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1867# -------------------------------------------
1868# Tests whether TYPE exists after having included INCLUDES, setting cache
1869# variable VAR accordingly.
1870ac_fn_c_check_type ()
1871{
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874$as_echo_n "checking for $2... " >&6; }
1875if eval \${$3+:} false; then :
1876 $as_echo_n "(cached) " >&6
1877else
1878 eval "$3=no"
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880/* end confdefs.h. */
1881$4
1882int
1883main ()
1884{
1885if (sizeof ($2))
1886 return 0;
1887 ;
1888 return 0;
1889}
d9898ee8 1890_ACEOF
b0322a85
CE
1891if ac_fn_c_try_compile "$LINENO"; then :
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893/* end confdefs.h. */
1894$4
1895int
1896main ()
1897{
1898if (sizeof (($2)))
1899 return 0;
1900 ;
1901 return 0;
1902}
1903_ACEOF
1904if ac_fn_c_try_compile "$LINENO"; then :
1905
1906else
1907 eval "$3=yes"
1908fi
1909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910fi
1911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 1912fi
b0322a85
CE
1913eval ac_res=\$$3
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915$as_echo "$ac_res" >&6; }
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917
1918} # ac_fn_c_check_type
dd184caf 1919cat >config.log <<_ACEOF
d9898ee8 1920This file contains any messages produced by compilers while
1921running configure, to aid debugging if configure makes a mistake.
1922
1923It was created by liblock $as_me 0.60, which was
b0322a85 1924generated by GNU Autoconf 2.69. Invocation command line was
d9898ee8 1925
1926 $ $0 $@
1927
1928_ACEOF
dd184caf 1929exec 5>>config.log
d9898ee8 1930{
1931cat <<_ASUNAME
1932## --------- ##
1933## Platform. ##
1934## --------- ##
1935
1936hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1937uname -m = `(uname -m) 2>/dev/null || echo unknown`
1938uname -r = `(uname -r) 2>/dev/null || echo unknown`
1939uname -s = `(uname -s) 2>/dev/null || echo unknown`
1940uname -v = `(uname -v) 2>/dev/null || echo unknown`
1941
1942/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1943/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1944
1945/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1946/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1947/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 1948/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1949/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1950/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1951/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1952
1953_ASUNAME
1954
1955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956for as_dir in $PATH
1957do
1958 IFS=$as_save_IFS
1959 test -z "$as_dir" && as_dir=.
b0322a85
CE
1960 $as_echo "PATH: $as_dir"
1961 done
dd184caf 1962IFS=$as_save_IFS
d9898ee8 1963
1964} >&5
1965
1966cat >&5 <<_ACEOF
1967
1968
1969## ----------- ##
1970## Core tests. ##
1971## ----------- ##
1972
1973_ACEOF
1974
1975
1976# Keep a trace of the command line.
1977# Strip out --no-create and --no-recursion so they do not pile up.
1978# Strip out --silent because we don't want to record it for future runs.
1979# Also quote any args containing shell meta-characters.
1980# Make two passes to allow for proper duplicate-argument suppression.
1981ac_configure_args=
1982ac_configure_args0=
1983ac_configure_args1=
d9898ee8 1984ac_must_keep_next=false
1985for ac_pass in 1 2
1986do
1987 for ac_arg
1988 do
1989 case $ac_arg in
1990 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1992 | -silent | --silent | --silen | --sile | --sil)
1993 continue ;;
dd184caf 1994 *\'*)
8d138742 1995 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1996 esac
1997 case $ac_pass in
b0322a85 1998 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
d9898ee8 1999 2)
b0322a85 2000 as_fn_append ac_configure_args1 " '$ac_arg'"
d9898ee8 2001 if test $ac_must_keep_next = true; then
2002 ac_must_keep_next=false # Got value, back to normal.
2003 else
2004 case $ac_arg in
2005 *=* | --config-cache | -C | -disable-* | --disable-* \
2006 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2007 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2008 | -with-* | --with-* | -without-* | --without-* | --x)
2009 case "$ac_configure_args0 " in
2010 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2011 esac
2012 ;;
2013 -* ) ac_must_keep_next=true ;;
2014 esac
2015 fi
b0322a85 2016 as_fn_append ac_configure_args " '$ac_arg'"
d9898ee8 2017 ;;
2018 esac
2019 done
2020done
b0322a85
CE
2021{ ac_configure_args0=; unset ac_configure_args0;}
2022{ ac_configure_args1=; unset ac_configure_args1;}
d9898ee8 2023
2024# When interrupted or exit'd, cleanup temporary files, and complete
2025# config.log. We remove comments because anyway the quotes in there
2026# would cause problems or look ugly.
dd184caf 2027# WARNING: Use '\'' to represent an apostrophe within the trap.
2028# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 2029trap 'exit_status=$?
2030 # Save into config.log some information that might help in debugging.
2031 {
2032 echo
2033
b0322a85 2034 $as_echo "## ---------------- ##
d9898ee8 2035## Cache variables. ##
b0322a85 2036## ---------------- ##"
d9898ee8 2037 echo
2038 # The following way of writing the cache mishandles newlines in values,
dd184caf 2039(
2040 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2041 eval ac_val=\$$ac_var
2042 case $ac_val in #(
2043 *${as_nl}*)
2044 case $ac_var in #(
b0322a85 2045 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8d138742 2046$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
dd184caf 2047 esac
2048 case $ac_var in #(
2049 _ | IFS | as_nl) ;; #(
8d138742 2050 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b0322a85 2051 *) { eval $ac_var=; unset $ac_var;} ;;
dd184caf 2052 esac ;;
2053 esac
2054 done
d9898ee8 2055 (set) 2>&1 |
dd184caf 2056 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2057 *${as_nl}ac_space=\ *)
d9898ee8 2058 sed -n \
dd184caf 2059 "s/'\''/'\''\\\\'\'''\''/g;
2060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2061 ;; #(
d9898ee8 2062 *)
dd184caf 2063 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 2064 ;;
dd184caf 2065 esac |
2066 sort
2067)
d9898ee8 2068 echo
2069
b0322a85 2070 $as_echo "## ----------------- ##
d9898ee8 2071## Output variables. ##
b0322a85 2072## ----------------- ##"
d9898ee8 2073 echo
2074 for ac_var in $ac_subst_vars
2075 do
dd184caf 2076 eval ac_val=\$$ac_var
2077 case $ac_val in
8d138742 2078 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 2079 esac
8d138742 2080 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 2081 done | sort
2082 echo
2083
2084 if test -n "$ac_subst_files"; then
b0322a85 2085 $as_echo "## ------------------- ##
dd184caf 2086## File substitutions. ##
b0322a85 2087## ------------------- ##"
d9898ee8 2088 echo
2089 for ac_var in $ac_subst_files
2090 do
dd184caf 2091 eval ac_val=\$$ac_var
2092 case $ac_val in
8d138742 2093 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 2094 esac
8d138742 2095 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 2096 done | sort
2097 echo
2098 fi
2099
2100 if test -s confdefs.h; then
b0322a85 2101 $as_echo "## ----------- ##
d9898ee8 2102## confdefs.h. ##
b0322a85 2103## ----------- ##"
d9898ee8 2104 echo
dd184caf 2105 cat confdefs.h
d9898ee8 2106 echo
2107 fi
2108 test "$ac_signal" != 0 &&
8d138742
CE
2109 $as_echo "$as_me: caught signal $ac_signal"
2110 $as_echo "$as_me: exit $exit_status"
d9898ee8 2111 } >&5
dd184caf 2112 rm -f core *.core core.conftest.* &&
2113 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 2114 exit $exit_status
dd184caf 2115' 0
d9898ee8 2116for ac_signal in 1 2 13 15; do
b0322a85 2117 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
d9898ee8 2118done
2119ac_signal=0
2120
2121# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 2122rm -f -r conftest* confdefs.h
d9898ee8 2123
b0322a85
CE
2124$as_echo "/* confdefs.h */" > confdefs.h
2125
d9898ee8 2126# Predefined preprocessor variables.
2127
2128cat >>confdefs.h <<_ACEOF
2129#define PACKAGE_NAME "$PACKAGE_NAME"
2130_ACEOF
2131
d9898ee8 2132cat >>confdefs.h <<_ACEOF
2133#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2134_ACEOF
2135
d9898ee8 2136cat >>confdefs.h <<_ACEOF
2137#define PACKAGE_VERSION "$PACKAGE_VERSION"
2138_ACEOF
2139
d9898ee8 2140cat >>confdefs.h <<_ACEOF
2141#define PACKAGE_STRING "$PACKAGE_STRING"
2142_ACEOF
2143
d9898ee8 2144cat >>confdefs.h <<_ACEOF
2145#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2146_ACEOF
2147
b0322a85
CE
2148cat >>confdefs.h <<_ACEOF
2149#define PACKAGE_URL "$PACKAGE_URL"
2150_ACEOF
2151
d9898ee8 2152
2153# Let the site file select an alternate cache file if it wants to.
8d138742
CE
2154# Prefer an explicitly selected file to automatically selected ones.
2155ac_site_file1=NONE
2156ac_site_file2=NONE
dd184caf 2157if test -n "$CONFIG_SITE"; then
b0322a85
CE
2158 # We do not want a PATH search for config.site.
2159 case $CONFIG_SITE in #((
2160 -*) ac_site_file1=./$CONFIG_SITE;;
2161 */*) ac_site_file1=$CONFIG_SITE;;
2162 *) ac_site_file1=./$CONFIG_SITE;;
2163 esac
dd184caf 2164elif test "x$prefix" != xNONE; then
8d138742
CE
2165 ac_site_file1=$prefix/share/config.site
2166 ac_site_file2=$prefix/etc/config.site
dd184caf 2167else
8d138742
CE
2168 ac_site_file1=$ac_default_prefix/share/config.site
2169 ac_site_file2=$ac_default_prefix/etc/config.site
d9898ee8 2170fi
8d138742 2171for ac_site_file in "$ac_site_file1" "$ac_site_file2"
dd184caf 2172do
8d138742 2173 test "x$ac_site_file" = xNONE && continue
b0322a85
CE
2174 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
8d138742 2176$as_echo "$as_me: loading site script $ac_site_file" >&6;}
d9898ee8 2177 sed 's/^/| /' "$ac_site_file" >&5
b0322a85
CE
2178 . "$ac_site_file" \
2179 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2181as_fn_error $? "failed to load site script $ac_site_file
2182See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 2183 fi
2184done
2185
2186if test -r "$cache_file"; then
b0322a85
CE
2187 # Some versions of bash will fail to source /dev/null (special files
2188 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2189 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
8d138742 2191$as_echo "$as_me: loading cache $cache_file" >&6;}
d9898ee8 2192 case $cache_file in
dd184caf 2193 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2194 *) . "./$cache_file";;
d9898ee8 2195 esac
2196 fi
2197else
b0322a85 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
8d138742 2199$as_echo "$as_me: creating cache $cache_file" >&6;}
d9898ee8 2200 >$cache_file
2201fi
2202
2203# Check that the precious variables saved in the cache have kept the same
2204# value.
2205ac_cache_corrupted=false
dd184caf 2206for ac_var in $ac_precious_vars; do
d9898ee8 2207 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2208 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 2209 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2210 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 2211 case $ac_old_set,$ac_new_set in
2212 set,)
b0322a85 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
8d138742 2214$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
d9898ee8 2215 ac_cache_corrupted=: ;;
2216 ,set)
b0322a85 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
8d138742 2218$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
d9898ee8 2219 ac_cache_corrupted=: ;;
2220 ,);;
2221 *)
2222 if test "x$ac_old_val" != "x$ac_new_val"; then
8d138742
CE
2223 # differences in whitespace do not lead to failure.
2224 ac_old_val_w=`echo x $ac_old_val`
2225 ac_new_val_w=`echo x $ac_new_val`
2226 if test "$ac_old_val_w" != "$ac_new_val_w"; then
b0322a85 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
8d138742
CE
2228$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2229 ac_cache_corrupted=:
2230 else
b0322a85 2231 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
8d138742
CE
2232$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2233 eval $ac_var=\$ac_old_val
2234 fi
b0322a85 2235 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
8d138742 2236$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
b0322a85 2237 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
8d138742 2238$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
d9898ee8 2239 fi;;
2240 esac
2241 # Pass precious variables to config.status.
2242 if test "$ac_new_set" = set; then
2243 case $ac_new_val in
8d138742 2244 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 2245 *) ac_arg=$ac_var=$ac_new_val ;;
2246 esac
2247 case " $ac_configure_args " in
2248 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
b0322a85 2249 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
d9898ee8 2250 esac
2251 fi
2252done
2253if $ac_cache_corrupted; then
b0322a85 2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 2255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85 2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
8d138742 2257$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
b0322a85 2258 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
d9898ee8 2259fi
b0322a85
CE
2260## -------------------- ##
2261## Main body of script. ##
2262## -------------------- ##
d9898ee8 2263
dd184caf 2264ac_ext=c
2265ac_cpp='$CPP $CPPFLAGS'
2266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2268ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 2269
2270
2271
2272>confdefs.h # Kill PACKAGE_ macros
2273
2274
d9898ee8 2275ac_aux_dir=
b0322a85 2276for ac_dir in ../.. "$srcdir"/../..; do
dd184caf 2277 if test -f "$ac_dir/install-sh"; then
d9898ee8 2278 ac_aux_dir=$ac_dir
2279 ac_install_sh="$ac_aux_dir/install-sh -c"
2280 break
dd184caf 2281 elif test -f "$ac_dir/install.sh"; then
d9898ee8 2282 ac_aux_dir=$ac_dir
2283 ac_install_sh="$ac_aux_dir/install.sh -c"
2284 break
dd184caf 2285 elif test -f "$ac_dir/shtool"; then
d9898ee8 2286 ac_aux_dir=$ac_dir
2287 ac_install_sh="$ac_aux_dir/shtool install -c"
2288 break
2289 fi
2290done
2291if test -z "$ac_aux_dir"; then
b0322a85 2292 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
d9898ee8 2293fi
dd184caf 2294
2295# These three variables are undocumented and unsupported,
2296# and are intended to be withdrawn in a future Autoconf release.
2297# They can cause serious problems if a builder's source tree is in a directory
2298# whose full name contains unusual characters.
2299ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2300ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2301ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2302
d9898ee8 2303
b0322a85
CE
2304ac_config_headers="$ac_config_headers config.h"
2305
2306am__api_version='1.13'
2307
d9898ee8 2308# Find a good install program. We prefer a C program (faster),
2309# so one script is as good as another. But avoid the broken or
2310# incompatible versions:
2311# SysV /etc/install, /usr/sbin/install
2312# SunOS /usr/etc/install
2313# IRIX /sbin/install
2314# AIX /bin/install
2315# AmigaOS /C/install, which installs bootblocks on floppy discs
2316# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2317# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2318# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2319# OS/2's system install, which has a completely different semantic
2320# ./install, which can be erroneously created by make from ./install.sh.
8d138742 2321# Reject install programs that cannot install multiple files.
b0322a85 2322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8d138742 2323$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 2324if test -z "$INSTALL"; then
b0322a85 2325if ${ac_cv_path_install+:} false; then :
8d138742 2326 $as_echo_n "(cached) " >&6
d9898ee8 2327else
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329for as_dir in $PATH
2330do
2331 IFS=$as_save_IFS
2332 test -z "$as_dir" && as_dir=.
b0322a85
CE
2333 # Account for people who put trailing slashes in PATH elements.
2334case $as_dir/ in #((
2335 ./ | .// | /[cC]/* | \
d9898ee8 2336 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
b0322a85 2337 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
d9898ee8 2338 /usr/ucb/* ) ;;
2339 *)
2340 # OSF1 and SCO ODT 3.0 have their own names for install.
2341 # Don't use installbsd from OSF since it installs stuff as root
2342 # by default.
2343 for ac_prog in ginstall scoinst install; do
2344 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85 2345 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d9898ee8 2346 if test $ac_prog = install &&
2347 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2348 # AIX install. It has an incompatible calling convention.
2349 :
2350 elif test $ac_prog = install &&
2351 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2352 # program-specific install script used by HP pwplus--don't use.
2353 :
2354 else
8d138742
CE
2355 rm -rf conftest.one conftest.two conftest.dir
2356 echo one > conftest.one
2357 echo two > conftest.two
2358 mkdir conftest.dir
2359 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2360 test -s conftest.one && test -s conftest.two &&
2361 test -s conftest.dir/conftest.one &&
2362 test -s conftest.dir/conftest.two
2363 then
2364 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2365 break 3
2366 fi
d9898ee8 2367 fi
2368 fi
2369 done
2370 done
2371 ;;
2372esac
8d138742 2373
b0322a85 2374 done
dd184caf 2375IFS=$as_save_IFS
d9898ee8 2376
8d138742 2377rm -rf conftest.one conftest.two conftest.dir
d9898ee8 2378
2379fi
2380 if test "${ac_cv_path_install+set}" = set; then
2381 INSTALL=$ac_cv_path_install
2382 else
dd184caf 2383 # As a last resort, use the slow shell script. Don't cache a
2384 # value for INSTALL within a source directory, because that will
d9898ee8 2385 # break other packages using the cache if that directory is
dd184caf 2386 # removed, or if the value is a relative name.
d9898ee8 2387 INSTALL=$ac_install_sh
2388 fi
2389fi
b0322a85 2390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8d138742 2391$as_echo "$INSTALL" >&6; }
d9898ee8 2392
2393# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2394# It thinks the first close brace ends the variable substitution.
2395test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2396
2397test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2398
2399test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2400
b0322a85 2401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
8d138742 2402$as_echo_n "checking whether build environment is sane... " >&6; }
8d138742
CE
2403# Reject unsafe characters in $srcdir or the absolute working directory
2404# name. Accept space and tab only in the latter.
2405am_lf='
2406'
2407case `pwd` in
2408 *[\\\"\#\$\&\'\`$am_lf]*)
b0322a85 2409 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
8d138742
CE
2410esac
2411case $srcdir in
2412 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
b0322a85 2413 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
8d138742
CE
2414esac
2415
b0322a85 2416# Do 'set' in a subshell so we don't clobber the current shell's
d9898ee8 2417# arguments. Must try -L first in case configure is actually a
2418# symlink; some systems play weird games with the mod time of symlinks
2419# (eg FreeBSD returns the mod time of the symlink's containing
2420# directory).
2421if (
b0322a85
CE
2422 am_has_slept=no
2423 for am_try in 1 2; do
2424 echo "timestamp, slept: $am_has_slept" > conftest.file
2425 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2426 if test "$*" = "X"; then
2427 # -L didn't work.
2428 set X `ls -t "$srcdir/configure" conftest.file`
2429 fi
2430 if test "$*" != "X $srcdir/configure conftest.file" \
2431 && test "$*" != "X conftest.file $srcdir/configure"; then
2432
2433 # If neither matched, then we have a broken ls. This can happen
2434 # if, for instance, CONFIG_SHELL is bash and it inherits a
2435 # broken ls alias from the environment. This has actually
2436 # happened. Such a system could not be considered "sane".
2437 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2438 alias in your environment" "$LINENO" 5
2439 fi
2440 if test "$2" = conftest.file || test $am_try -eq 2; then
2441 break
2442 fi
2443 # Just in case.
2444 sleep 1
2445 am_has_slept=yes
2446 done
d9898ee8 2447 test "$2" = conftest.file
2448 )
2449then
2450 # Ok.
2451 :
2452else
b0322a85
CE
2453 as_fn_error $? "newly created file is older than distributed files!
2454Check your system clock" "$LINENO" 5
d9898ee8 2455fi
b0322a85 2456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 2457$as_echo "yes" >&6; }
b0322a85
CE
2458# If we didn't sleep, we still need to ensure time stamps of config.status and
2459# generated files are strictly newer.
2460am_sleep_pid=
2461if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2462 ( sleep 1 ) &
2463 am_sleep_pid=$!
2464fi
2465
2466rm -f conftest.file
2467
d9898ee8 2468test "$program_prefix" != NONE &&
dd184caf 2469 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2470# Use a double $ so make ignores it.
2471test "$program_suffix" != NONE &&
dd184caf 2472 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8d138742 2473# Double any \ or $.
d9898ee8 2474# By default was `s,x,x', remove it if useless.
8d138742
CE
2475ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2476program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
d9898ee8 2477
2478# expand $ac_aux_dir to an absolute path
2479am_aux_dir=`cd $ac_aux_dir && pwd`
2480
8d138742
CE
2481if test x"${MISSING+set}" != xset; then
2482 case $am_aux_dir in
2483 *\ * | *\ *)
2484 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2485 *)
2486 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2487 esac
2488fi
d9898ee8 2489# Use eval to expand $SHELL
b0322a85
CE
2490if eval "$MISSING --is-lightweight"; then
2491 am_missing_run="$MISSING "
d9898ee8 2492else
2493 am_missing_run=
b0322a85
CE
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2495$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
8d138742
CE
2496fi
2497
2498if test x"${install_sh}" != xset; then
2499 case $am_aux_dir in
2500 *\ * | *\ *)
2501 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2502 *)
2503 install_sh="\${SHELL} $am_aux_dir/install-sh"
2504 esac
2505fi
2506
b0322a85
CE
2507# Installed binaries are usually stripped using 'strip' when the user
2508# run "make install-strip". However 'strip' might not be the right
8d138742 2509# tool to use in cross-compilation environments, therefore Automake
b0322a85 2510# will honor the 'STRIP' environment variable to overrule this program.
8d138742
CE
2511if test "$cross_compiling" != no; then
2512 if test -n "$ac_tool_prefix"; then
2513 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2514set dummy ${ac_tool_prefix}strip; ac_word=$2
b0322a85 2515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2516$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2517if ${ac_cv_prog_STRIP+:} false; then :
8d138742
CE
2518 $as_echo_n "(cached) " >&6
2519else
2520 if test -n "$STRIP"; then
2521 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2522else
2523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524for as_dir in $PATH
2525do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
b0322a85
CE
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 2530 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b0322a85 2531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
2532 break 2
2533 fi
2534done
b0322a85 2535 done
8d138742
CE
2536IFS=$as_save_IFS
2537
2538fi
2539fi
2540STRIP=$ac_cv_prog_STRIP
2541if test -n "$STRIP"; then
b0322a85 2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8d138742
CE
2543$as_echo "$STRIP" >&6; }
2544else
b0322a85 2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
2546$as_echo "no" >&6; }
2547fi
2548
2549
2550fi
2551if test -z "$ac_cv_prog_STRIP"; then
2552 ac_ct_STRIP=$STRIP
2553 # Extract the first word of "strip", so it can be a program name with args.
2554set dummy strip; ac_word=$2
b0322a85 2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2556$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2557if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8d138742
CE
2558 $as_echo_n "(cached) " >&6
2559else
2560 if test -n "$ac_ct_STRIP"; then
2561 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2562else
2563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564for as_dir in $PATH
2565do
2566 IFS=$as_save_IFS
2567 test -z "$as_dir" && as_dir=.
b0322a85
CE
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 2570 ac_cv_prog_ac_ct_STRIP="strip"
b0322a85 2571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
2572 break 2
2573 fi
2574done
b0322a85 2575 done
8d138742
CE
2576IFS=$as_save_IFS
2577
2578fi
2579fi
2580ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2581if test -n "$ac_ct_STRIP"; then
b0322a85 2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8d138742
CE
2583$as_echo "$ac_ct_STRIP" >&6; }
2584else
b0322a85 2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
2586$as_echo "no" >&6; }
2587fi
2588
2589 if test "x$ac_ct_STRIP" = x; then
2590 STRIP=":"
2591 else
2592 case $cross_compiling:$ac_tool_warned in
2593yes:)
b0322a85 2594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
2595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2596ac_tool_warned=yes ;;
2597esac
2598 STRIP=$ac_ct_STRIP
2599 fi
2600else
2601 STRIP="$ac_cv_prog_STRIP"
2602fi
2603
d9898ee8 2604fi
8d138742 2605INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2606
b0322a85 2607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
8d138742 2608$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
dd184caf 2609if test -z "$MKDIR_P"; then
b0322a85 2610 if ${ac_cv_path_mkdir+:} false; then :
8d138742 2611 $as_echo_n "(cached) " >&6
dd184caf 2612else
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2615do
2616 IFS=$as_save_IFS
2617 test -z "$as_dir" && as_dir=.
b0322a85 2618 for ac_prog in mkdir gmkdir; do
dd184caf 2619 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85 2620 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
dd184caf 2621 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2622 'mkdir (GNU coreutils) '* | \
2623 'mkdir (coreutils) '* | \
2624 'mkdir (fileutils) '4.1*)
2625 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2626 break 3;;
2627 esac
2628 done
2629 done
b0322a85 2630 done
dd184caf 2631IFS=$as_save_IFS
2632
2633fi
2634
b0322a85 2635 test -d ./--version && rmdir ./--version
dd184caf 2636 if test "${ac_cv_path_mkdir+set}" = set; then
2637 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2638 else
dd184caf 2639 # As a last resort, use the slow shell script. Don't cache a
2640 # value for MKDIR_P within a source directory, because that will
2641 # break other packages using the cache if that directory is
2642 # removed, or if the value is a relative name.
dd184caf 2643 MKDIR_P="$ac_install_sh -d"
d9898ee8 2644 fi
2645fi
b0322a85 2646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8d138742 2647$as_echo "$MKDIR_P" >&6; }
dd184caf 2648
d9898ee8 2649for ac_prog in gawk mawk nawk awk
2650do
2651 # Extract the first word of "$ac_prog", so it can be a program name with args.
2652set dummy $ac_prog; ac_word=$2
b0322a85 2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2654$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2655if ${ac_cv_prog_AWK+:} false; then :
8d138742 2656 $as_echo_n "(cached) " >&6
d9898ee8 2657else
2658 if test -n "$AWK"; then
2659 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2660else
2661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH
2663do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
b0322a85
CE
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2668 ac_cv_prog_AWK="$ac_prog"
b0322a85 2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2670 break 2
2671 fi
2672done
b0322a85 2673 done
dd184caf 2674IFS=$as_save_IFS
d9898ee8 2675
2676fi
2677fi
2678AWK=$ac_cv_prog_AWK
2679if test -n "$AWK"; then
b0322a85 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8d138742 2681$as_echo "$AWK" >&6; }
d9898ee8 2682else
b0322a85 2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2684$as_echo "no" >&6; }
d9898ee8 2685fi
2686
dd184caf 2687
d9898ee8 2688 test -n "$AWK" && break
2689done
2690
b0322a85 2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8d138742
CE
2692$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2693set x ${MAKE-make}
2694ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b0322a85 2695if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8d138742 2696 $as_echo_n "(cached) " >&6
d9898ee8 2697else
2698 cat >conftest.make <<\_ACEOF
dd184caf 2699SHELL = /bin/sh
d9898ee8 2700all:
dd184caf 2701 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2702_ACEOF
b0322a85 2703# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
dd184caf 2704case `${MAKE-make} -f conftest.make 2>/dev/null` in
2705 *@@@%%%=?*=@@@%%%*)
2706 eval ac_cv_prog_make_${ac_make}_set=yes;;
2707 *)
2708 eval ac_cv_prog_make_${ac_make}_set=no;;
2709esac
d9898ee8 2710rm -f conftest.make
2711fi
dd184caf 2712if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
b0322a85 2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 2714$as_echo "yes" >&6; }
d9898ee8 2715 SET_MAKE=
2716else
b0322a85 2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2718$as_echo "no" >&6; }
d9898ee8 2719 SET_MAKE="MAKE=${MAKE-make}"
2720fi
2721
2722rm -rf .tst 2>/dev/null
2723mkdir .tst 2>/dev/null
2724if test -d .tst; then
2725 am__leading_dot=.
2726else
2727 am__leading_dot=_
2728fi
2729rmdir .tst 2>/dev/null
2730
b0322a85
CE
2731# Check whether --enable-silent-rules was given.
2732if test "${enable_silent_rules+set}" = set; then :
2733 enableval=$enable_silent_rules;
2734fi
2735
2736case $enable_silent_rules in # (((
2737 yes) AM_DEFAULT_VERBOSITY=0;;
2738 no) AM_DEFAULT_VERBOSITY=1;;
2739 *) AM_DEFAULT_VERBOSITY=1;;
2740esac
2741am_make=${MAKE-make}
2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2743$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2744if ${am_cv_make_support_nested_variables+:} false; then :
2745 $as_echo_n "(cached) " >&6
2746else
2747 if $as_echo 'TRUE=$(BAR$(V))
2748BAR0=false
2749BAR1=true
2750V=1
2751am__doit:
2752 @$(TRUE)
2753.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2754 am_cv_make_support_nested_variables=yes
2755else
2756 am_cv_make_support_nested_variables=no
2757fi
2758fi
2759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2760$as_echo "$am_cv_make_support_nested_variables" >&6; }
2761if test $am_cv_make_support_nested_variables = yes; then
2762 AM_V='$(V)'
2763 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2764else
2765 AM_V=$AM_DEFAULT_VERBOSITY
2766 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2767fi
2768AM_BACKSLASH='\'
2769
dd184caf 2770if test "`cd $srcdir && pwd`" != "`pwd`"; then
2771 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2772 # is not polluted with repeated "-I."
2773 am__isrc=' -I$(srcdir)'
2774 # test to see if srcdir already configured
2775 if test -f $srcdir/config.status; then
b0322a85 2776 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
dd184caf 2777 fi
d9898ee8 2778fi
2779
2780# test whether we have cygpath
2781if test -z "$CYGPATH_W"; then
2782 if (cygpath --version) >/dev/null 2>/dev/null; then
2783 CYGPATH_W='cygpath -w'
2784 else
2785 CYGPATH_W=echo
2786 fi
2787fi
2788
2789
2790# Define the identity of the package.
2791 PACKAGE='liblock'
2792 VERSION='0.60'
2793
2794
2795# Some tools Automake needs.
2796
2797ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2798
2799
2800AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2801
2802
2803AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2804
2805
2806AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2807
2808
2809MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2810
b0322a85
CE
2811# For better backward compatibility. To be removed once Automake 1.9.x
2812# dies out for good. For more background, see:
2813# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2814# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2815mkdir_p='$(MKDIR_P)'
2816
d9898ee8 2817# We need awk for the "check" target. The system "awk" is bad on
2818# some platforms.
b0322a85
CE
2819# Always define AMTAR for backward compatibility. Yes, it's still used
2820# in the wild :-( We should find a proper way to deprecate it ...
2821AMTAR='$${TAR-tar}'
d9898ee8 2822
d9898ee8 2823
b0322a85
CE
2824# We'll loop over all known methods to create a tar archive until one works.
2825_am_tools='gnutar pax cpio none'
d9898ee8 2826
b0322a85 2827am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d9898ee8 2828
2829
2830
2831
2832
b0322a85
CE
2833
2834
2835CFLAGS="-I.. -I${srcdir}/.. $CFLAGS"
2836
d9898ee8 2837for ac_prog in gawk mawk nawk awk
2838do
2839 # Extract the first word of "$ac_prog", so it can be a program name with args.
2840set dummy $ac_prog; ac_word=$2
b0322a85 2841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2842$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2843if ${ac_cv_prog_AWK+:} false; then :
8d138742 2844 $as_echo_n "(cached) " >&6
d9898ee8 2845else
2846 if test -n "$AWK"; then
2847 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2848else
2849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850for as_dir in $PATH
2851do
2852 IFS=$as_save_IFS
2853 test -z "$as_dir" && as_dir=.
b0322a85
CE
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2856 ac_cv_prog_AWK="$ac_prog"
b0322a85 2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2858 break 2
2859 fi
2860done
b0322a85 2861 done
dd184caf 2862IFS=$as_save_IFS
d9898ee8 2863
2864fi
2865fi
2866AWK=$ac_cv_prog_AWK
2867if test -n "$AWK"; then
b0322a85 2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8d138742 2869$as_echo "$AWK" >&6; }
d9898ee8 2870else
b0322a85 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2872$as_echo "no" >&6; }
d9898ee8 2873fi
2874
dd184caf 2875
d9898ee8 2876 test -n "$AWK" && break
2877done
2878
2879ac_ext=c
2880ac_cpp='$CPP $CPPFLAGS'
2881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883ac_compiler_gnu=$ac_cv_c_compiler_gnu
2884if test -n "$ac_tool_prefix"; then
2885 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2886set dummy ${ac_tool_prefix}gcc; ac_word=$2
b0322a85 2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2888$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2889if ${ac_cv_prog_CC+:} false; then :
8d138742 2890 $as_echo_n "(cached) " >&6
d9898ee8 2891else
2892 if test -n "$CC"; then
2893 ac_cv_prog_CC="$CC" # Let the user override the test.
2894else
2895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896for as_dir in $PATH
2897do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
b0322a85
CE
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2902 ac_cv_prog_CC="${ac_tool_prefix}gcc"
b0322a85 2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2904 break 2
2905 fi
2906done
b0322a85 2907 done
dd184caf 2908IFS=$as_save_IFS
d9898ee8 2909
2910fi
2911fi
2912CC=$ac_cv_prog_CC
2913if test -n "$CC"; then
b0322a85 2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 2915$as_echo "$CC" >&6; }
d9898ee8 2916else
b0322a85 2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2918$as_echo "no" >&6; }
d9898ee8 2919fi
2920
dd184caf 2921
d9898ee8 2922fi
2923if test -z "$ac_cv_prog_CC"; then
2924 ac_ct_CC=$CC
2925 # Extract the first word of "gcc", so it can be a program name with args.
2926set dummy gcc; ac_word=$2
b0322a85 2927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2928$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2929if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 2930 $as_echo_n "(cached) " >&6
d9898ee8 2931else
2932 if test -n "$ac_ct_CC"; then
2933 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2934else
2935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936for as_dir in $PATH
2937do
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
b0322a85
CE
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2942 ac_cv_prog_ac_ct_CC="gcc"
b0322a85 2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2944 break 2
2945 fi
2946done
b0322a85 2947 done
dd184caf 2948IFS=$as_save_IFS
d9898ee8 2949
2950fi
2951fi
2952ac_ct_CC=$ac_cv_prog_ac_ct_CC
2953if test -n "$ac_ct_CC"; then
b0322a85 2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 2955$as_echo "$ac_ct_CC" >&6; }
d9898ee8 2956else
b0322a85 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2958$as_echo "no" >&6; }
d9898ee8 2959fi
2960
dd184caf 2961 if test "x$ac_ct_CC" = x; then
2962 CC=""
2963 else
2964 case $cross_compiling:$ac_tool_warned in
2965yes:)
b0322a85 2966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 2967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 2968ac_tool_warned=yes ;;
2969esac
2970 CC=$ac_ct_CC
2971 fi
d9898ee8 2972else
2973 CC="$ac_cv_prog_CC"
2974fi
2975
2976if test -z "$CC"; then
dd184caf 2977 if test -n "$ac_tool_prefix"; then
2978 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2979set dummy ${ac_tool_prefix}cc; ac_word=$2
b0322a85 2980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2981$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2982if ${ac_cv_prog_CC+:} false; then :
8d138742 2983 $as_echo_n "(cached) " >&6
d9898ee8 2984else
2985 if test -n "$CC"; then
2986 ac_cv_prog_CC="$CC" # Let the user override the test.
2987else
2988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989for as_dir in $PATH
2990do
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
b0322a85
CE
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2995 ac_cv_prog_CC="${ac_tool_prefix}cc"
b0322a85 2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2997 break 2
2998 fi
2999done
b0322a85 3000 done
dd184caf 3001IFS=$as_save_IFS
d9898ee8 3002
3003fi
3004fi
3005CC=$ac_cv_prog_CC
3006if test -n "$CC"; then
b0322a85 3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3008$as_echo "$CC" >&6; }
d9898ee8 3009else
b0322a85 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3011$as_echo "no" >&6; }
d9898ee8 3012fi
3013
d9898ee8 3014
dd184caf 3015 fi
d9898ee8 3016fi
3017if test -z "$CC"; then
3018 # Extract the first word of "cc", so it can be a program name with args.
3019set dummy cc; ac_word=$2
b0322a85 3020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3021$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3022if ${ac_cv_prog_CC+:} false; then :
8d138742 3023 $as_echo_n "(cached) " >&6
d9898ee8 3024else
3025 if test -n "$CC"; then
3026 ac_cv_prog_CC="$CC" # Let the user override the test.
3027else
3028 ac_prog_rejected=no
3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH
3031do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
b0322a85
CE
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3036 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3037 ac_prog_rejected=yes
3038 continue
3039 fi
3040 ac_cv_prog_CC="cc"
b0322a85 3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3042 break 2
3043 fi
3044done
b0322a85 3045 done
dd184caf 3046IFS=$as_save_IFS
d9898ee8 3047
3048if test $ac_prog_rejected = yes; then
3049 # We found a bogon in the path, so make sure we never use it.
3050 set dummy $ac_cv_prog_CC
3051 shift
3052 if test $# != 0; then
3053 # We chose a different compiler from the bogus one.
3054 # However, it has the same basename, so the bogon will be chosen
3055 # first if we set CC to just the basename; use the full file name.
3056 shift
3057 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3058 fi
3059fi
3060fi
3061fi
3062CC=$ac_cv_prog_CC
3063if test -n "$CC"; then
b0322a85 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3065$as_echo "$CC" >&6; }
d9898ee8 3066else
b0322a85 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3068$as_echo "no" >&6; }
d9898ee8 3069fi
3070
dd184caf 3071
d9898ee8 3072fi
3073if test -z "$CC"; then
3074 if test -n "$ac_tool_prefix"; then
dd184caf 3075 for ac_prog in cl.exe
d9898ee8 3076 do
3077 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3078set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 3079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3080$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3081if ${ac_cv_prog_CC+:} false; then :
8d138742 3082 $as_echo_n "(cached) " >&6
d9898ee8 3083else
3084 if test -n "$CC"; then
3085 ac_cv_prog_CC="$CC" # Let the user override the test.
3086else
3087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088for as_dir in $PATH
3089do
3090 IFS=$as_save_IFS
3091 test -z "$as_dir" && as_dir=.
b0322a85
CE
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3094 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b0322a85 3095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3096 break 2
3097 fi
3098done
b0322a85 3099 done
dd184caf 3100IFS=$as_save_IFS
d9898ee8 3101
3102fi
3103fi
3104CC=$ac_cv_prog_CC
3105if test -n "$CC"; then
b0322a85 3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3107$as_echo "$CC" >&6; }
d9898ee8 3108else
b0322a85 3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3110$as_echo "no" >&6; }
d9898ee8 3111fi
3112
dd184caf 3113
d9898ee8 3114 test -n "$CC" && break
3115 done
3116fi
3117if test -z "$CC"; then
3118 ac_ct_CC=$CC
dd184caf 3119 for ac_prog in cl.exe
d9898ee8 3120do
3121 # Extract the first word of "$ac_prog", so it can be a program name with args.
3122set dummy $ac_prog; ac_word=$2
b0322a85 3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3124$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3125if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 3126 $as_echo_n "(cached) " >&6
d9898ee8 3127else
3128 if test -n "$ac_ct_CC"; then
3129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3130else
3131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132for as_dir in $PATH
3133do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
b0322a85
CE
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3138 ac_cv_prog_ac_ct_CC="$ac_prog"
b0322a85 3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3140 break 2
3141 fi
3142done
b0322a85 3143 done
dd184caf 3144IFS=$as_save_IFS
d9898ee8 3145
3146fi
3147fi
3148ac_ct_CC=$ac_cv_prog_ac_ct_CC
3149if test -n "$ac_ct_CC"; then
b0322a85 3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 3151$as_echo "$ac_ct_CC" >&6; }
d9898ee8 3152else
b0322a85 3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3154$as_echo "no" >&6; }
d9898ee8 3155fi
3156
dd184caf 3157
d9898ee8 3158 test -n "$ac_ct_CC" && break
3159done
3160
dd184caf 3161 if test "x$ac_ct_CC" = x; then
3162 CC=""
3163 else
3164 case $cross_compiling:$ac_tool_warned in
3165yes:)
b0322a85 3166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 3167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 3168ac_tool_warned=yes ;;
3169esac
3170 CC=$ac_ct_CC
3171 fi
d9898ee8 3172fi
3173
3174fi
3175
3176
b0322a85 3177test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3178$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3179as_fn_error $? "no acceptable C compiler found in \$PATH
3180See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3181
3182# Provide some information about the compiler.
b0322a85 3183$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8d138742
CE
3184set X $ac_compile
3185ac_compiler=$2
b0322a85
CE
3186for ac_option in --version -v -V -qversion; do
3187 { { ac_try="$ac_compiler $ac_option >&5"
dd184caf 3188case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191esac
b0322a85
CE
3192eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193$as_echo "$ac_try_echo"; } >&5
3194 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
d9898ee8 3195 ac_status=$?
b0322a85
CE
3196 if test -s conftest.err; then
3197 sed '10a\
3198... rest of stderr output deleted ...
3199 10q' conftest.err >conftest.er1
3200 cat conftest.er1 >&5
3201 fi
3202 rm -f conftest.er1 conftest.err
3203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204 test $ac_status = 0; }
3205done
d9898ee8 3206
b0322a85 3207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3208/* end confdefs.h. */
3209
3210int
3211main ()
3212{
3213
3214 ;
3215 return 0;
3216}
3217_ACEOF
3218ac_clean_files_save=$ac_clean_files
8d138742 3219ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d9898ee8 3220# Try to create an executable without -o first, disregard a.out.
3221# It will help us diagnose broken compilers, and finding out an intuition
3222# of exeext.
b0322a85
CE
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3224$as_echo_n "checking whether the C compiler works... " >&6; }
8d138742
CE
3225ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3226
3227# The possible output files:
3228ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3229
dd184caf 3230ac_rmfiles=
3231for ac_file in $ac_files
3232do
3233 case $ac_file in
8d138742 3234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
dd184caf 3235 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3236 esac
3237done
3238rm -f $ac_rmfiles
3239
b0322a85 3240if { { ac_try="$ac_link_default"
dd184caf 3241case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244esac
b0322a85
CE
3245eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246$as_echo "$ac_try_echo"; } >&5
dd184caf 3247 (eval "$ac_link_default") 2>&5
d9898ee8 3248 ac_status=$?
b0322a85
CE
3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }; then :
dd184caf 3251 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3252# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3253# in a Makefile. We should not override ac_cv_exeext if it was cached,
3254# so that the user can short-circuit this test for compilers unknown to
3255# Autoconf.
3256for ac_file in $ac_files ''
d9898ee8 3257do
3258 test -f "$ac_file" || continue
3259 case $ac_file in
8d138742 3260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
d9898ee8 3261 ;;
3262 [ab].out )
3263 # We found the default executable, but exeext='' is most
3264 # certainly right.
3265 break;;
3266 *.* )
b0322a85 3267 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
dd184caf 3268 then :; else
3269 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3270 fi
3271 # We set ac_cv_exeext here because the later test for it is not
3272 # safe: cross compilers may not add the suffix if given an `-o'
3273 # argument, so we may need to know it at that point already.
3274 # Even if this section looks crufty: it has the advantage of
3275 # actually working.
d9898ee8 3276 break;;
3277 * )
3278 break;;
3279 esac
3280done
dd184caf 3281test "$ac_cv_exeext" = no && ac_cv_exeext=
3282
d9898ee8 3283else
dd184caf 3284 ac_file=''
3285fi
b0322a85
CE
3286if test -z "$ac_file"; then :
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288$as_echo "no" >&6; }
3289$as_echo "$as_me: failed program was:" >&5
d9898ee8 3290sed 's/^/| /' conftest.$ac_ext >&5
3291
b0322a85 3292{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3294as_fn_error 77 "C compiler cannot create executables
3295See \`config.log' for more details" "$LINENO" 5; }
3296else
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3298$as_echo "yes" >&6; }
d9898ee8 3299fi
b0322a85
CE
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3301$as_echo_n "checking for C compiler default output file name... " >&6; }
3302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3303$as_echo "$ac_file" >&6; }
d9898ee8 3304ac_exeext=$ac_cv_exeext
d9898ee8 3305
8d138742 3306rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d9898ee8 3307ac_clean_files=$ac_clean_files_save
b0322a85 3308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
8d138742 3309$as_echo_n "checking for suffix of executables... " >&6; }
b0322a85 3310if { { ac_try="$ac_link"
dd184caf 3311case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314esac
b0322a85
CE
3315eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316$as_echo "$ac_try_echo"; } >&5
dd184caf 3317 (eval "$ac_link") 2>&5
d9898ee8 3318 ac_status=$?
b0322a85
CE
3319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320 test $ac_status = 0; }; then :
d9898ee8 3321 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3322# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3323# work properly (i.e., refer to `conftest.exe'), while it won't with
3324# `rm'.
3325for ac_file in conftest.exe conftest conftest.*; do
3326 test -f "$ac_file" || continue
3327 case $ac_file in
8d138742 3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
d9898ee8 3329 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3330 break;;
3331 * ) break;;
3332 esac
3333done
3334else
b0322a85 3335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3337as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3338See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3339fi
b0322a85
CE
3340rm -f conftest conftest$ac_cv_exeext
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
8d138742 3342$as_echo "$ac_cv_exeext" >&6; }
d9898ee8 3343
3344rm -f conftest.$ac_ext
3345EXEEXT=$ac_cv_exeext
3346ac_exeext=$EXEEXT
b0322a85
CE
3347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348/* end confdefs.h. */
3349#include <stdio.h>
3350int
3351main ()
3352{
3353FILE *f = fopen ("conftest.out", "w");
3354 return ferror (f) || fclose (f) != 0;
3355
3356 ;
3357 return 0;
3358}
3359_ACEOF
3360ac_clean_files="$ac_clean_files conftest.out"
3361# Check that the compiler produces executables we can run. If not, either
3362# the compiler is broken, or we cross compile.
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3364$as_echo_n "checking whether we are cross compiling... " >&6; }
3365if test "$cross_compiling" != yes; then
3366 { { ac_try="$ac_link"
3367case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370esac
3371eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372$as_echo "$ac_try_echo"; } >&5
3373 (eval "$ac_link") 2>&5
3374 ac_status=$?
3375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3376 test $ac_status = 0; }
3377 if { ac_try='./conftest$ac_cv_exeext'
3378 { { case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381esac
3382eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383$as_echo "$ac_try_echo"; } >&5
3384 (eval "$ac_try") 2>&5
3385 ac_status=$?
3386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387 test $ac_status = 0; }; }; then
3388 cross_compiling=no
3389 else
3390 if test "$cross_compiling" = maybe; then
3391 cross_compiling=yes
3392 else
3393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3395as_fn_error $? "cannot run C compiled programs.
3396If you meant to cross compile, use \`--host'.
3397See \`config.log' for more details" "$LINENO" 5; }
3398 fi
3399 fi
3400fi
3401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3402$as_echo "$cross_compiling" >&6; }
3403
3404rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3405ac_clean_files=$ac_clean_files_save
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
8d138742 3407$as_echo_n "checking for suffix of object files... " >&6; }
b0322a85 3408if ${ac_cv_objext+:} false; then :
8d138742 3409 $as_echo_n "(cached) " >&6
d9898ee8 3410else
b0322a85 3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3412/* end confdefs.h. */
3413
3414int
3415main ()
3416{
3417
3418 ;
3419 return 0;
3420}
3421_ACEOF
3422rm -f conftest.o conftest.obj
b0322a85 3423if { { ac_try="$ac_compile"
dd184caf 3424case "(($ac_try" in
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3427esac
b0322a85
CE
3428eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3429$as_echo "$ac_try_echo"; } >&5
dd184caf 3430 (eval "$ac_compile") 2>&5
d9898ee8 3431 ac_status=$?
b0322a85
CE
3432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3433 test $ac_status = 0; }; then :
dd184caf 3434 for ac_file in conftest.o conftest.obj conftest.*; do
3435 test -f "$ac_file" || continue;
d9898ee8 3436 case $ac_file in
8d138742 3437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
d9898ee8 3438 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3439 break;;
3440 esac
3441done
3442else
8d138742 3443 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3444sed 's/^/| /' conftest.$ac_ext >&5
3445
b0322a85 3446{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3448as_fn_error $? "cannot compute suffix of object files: cannot compile
3449See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3450fi
d9898ee8 3451rm -f conftest.$ac_cv_objext conftest.$ac_ext
3452fi
b0322a85 3453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
8d138742 3454$as_echo "$ac_cv_objext" >&6; }
d9898ee8 3455OBJEXT=$ac_cv_objext
3456ac_objext=$OBJEXT
b0322a85 3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8d138742 3458$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b0322a85 3459if ${ac_cv_c_compiler_gnu+:} false; then :
8d138742 3460 $as_echo_n "(cached) " >&6
d9898ee8 3461else
b0322a85 3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3463/* end confdefs.h. */
3464
3465int
3466main ()
3467{
3468#ifndef __GNUC__
3469 choke me
3470#endif
3471
3472 ;
3473 return 0;
3474}
3475_ACEOF
b0322a85 3476if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 3477 ac_compiler_gnu=yes
3478else
b0322a85 3479 ac_compiler_gnu=no
d9898ee8 3480fi
dd184caf 3481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3482ac_cv_c_compiler_gnu=$ac_compiler_gnu
3483
3484fi
b0322a85 3485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8d138742
CE
3486$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3487if test $ac_compiler_gnu = yes; then
3488 GCC=yes
3489else
3490 GCC=
3491fi
d9898ee8 3492ac_test_CFLAGS=${CFLAGS+set}
3493ac_save_CFLAGS=$CFLAGS
b0322a85 3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8d138742 3495$as_echo_n "checking whether $CC accepts -g... " >&6; }
b0322a85 3496if ${ac_cv_prog_cc_g+:} false; then :
8d138742 3497 $as_echo_n "(cached) " >&6
d9898ee8 3498else
dd184caf 3499 ac_save_c_werror_flag=$ac_c_werror_flag
3500 ac_c_werror_flag=yes
3501 ac_cv_prog_cc_g=no
3502 CFLAGS="-g"
b0322a85 3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3504/* end confdefs.h. */
3505
3506int
3507main ()
3508{
3509
3510 ;
3511 return 0;
3512}
3513_ACEOF
b0322a85 3514if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3515 ac_cv_prog_cc_g=yes
3516else
b0322a85
CE
3517 CFLAGS=""
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 3519/* end confdefs.h. */
3520
3521int
3522main ()
3523{
3524
3525 ;
3526 return 0;
3527}
3528_ACEOF
b0322a85 3529if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3530
b0322a85
CE
3531else
3532 ac_c_werror_flag=$ac_save_c_werror_flag
dd184caf 3533 CFLAGS="-g"
b0322a85 3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 3535/* end confdefs.h. */
3536
3537int
3538main ()
3539{
3540
3541 ;
3542 return 0;
3543}
3544_ACEOF
b0322a85 3545if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 3546 ac_cv_prog_cc_g=yes
dd184caf 3547fi
dd184caf 3548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549fi
dd184caf 3550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3551fi
dd184caf 3552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3554fi
b0322a85 3555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8d138742 3556$as_echo "$ac_cv_prog_cc_g" >&6; }
d9898ee8 3557if test "$ac_test_CFLAGS" = set; then
3558 CFLAGS=$ac_save_CFLAGS
3559elif test $ac_cv_prog_cc_g = yes; then
3560 if test "$GCC" = yes; then
3561 CFLAGS="-g -O2"
3562 else
3563 CFLAGS="-g"
3564 fi
3565else
3566 if test "$GCC" = yes; then
3567 CFLAGS="-O2"
3568 else
3569 CFLAGS=
3570 fi
3571fi
b0322a85 3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8d138742 3573$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b0322a85 3574if ${ac_cv_prog_cc_c89+:} false; then :
8d138742 3575 $as_echo_n "(cached) " >&6
d9898ee8 3576else
dd184caf 3577 ac_cv_prog_cc_c89=no
d9898ee8 3578ac_save_CC=$CC
b0322a85 3579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3580/* end confdefs.h. */
3581#include <stdarg.h>
3582#include <stdio.h>
b0322a85 3583struct stat;
d9898ee8 3584/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3585struct buf { int x; };
3586FILE * (*rcsopen) (struct buf *, struct stat *, int);
3587static char *e (p, i)
3588 char **p;
3589 int i;
3590{
3591 return p[i];
3592}
3593static char *f (char * (*g) (char **, int), char **p, ...)
3594{
3595 char *s;
3596 va_list v;
3597 va_start (v,p);
3598 s = g (p, va_arg (v,int));
3599 va_end (v);
3600 return s;
3601}
3602
3603/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3604 function prototypes and stuff, but not '\xHH' hex character constants.
3605 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3606 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3607 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3608 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3609 that's true only with -std. */
d9898ee8 3610int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3611
dd184caf 3612/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3613 inside strings and character constants. */
3614#define FOO(x) 'x'
3615int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3616
d9898ee8 3617int test (int i, double x);
3618struct s1 {int (*f) (int a);};
3619struct s2 {int (*f) (double a);};
3620int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3621int argc;
3622char **argv;
3623int
3624main ()
3625{
3626return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3627 ;
3628 return 0;
3629}
3630_ACEOF
dd184caf 3631for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3632 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3633do
3634 CC="$ac_save_CC $ac_arg"
b0322a85 3635 if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3636 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3637fi
dd184caf 3638rm -f core conftest.err conftest.$ac_objext
3639 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3640done
dd184caf 3641rm -f conftest.$ac_ext
d9898ee8 3642CC=$ac_save_CC
3643
3644fi
dd184caf 3645# AC_CACHE_VAL
3646case "x$ac_cv_prog_cc_c89" in
3647 x)
b0322a85 3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8d138742 3649$as_echo "none needed" >&6; } ;;
dd184caf 3650 xno)
b0322a85 3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8d138742 3652$as_echo "unsupported" >&6; } ;;
d9898ee8 3653 *)
dd184caf 3654 CC="$CC $ac_cv_prog_cc_c89"
b0322a85 3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8d138742 3656$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3657esac
b0322a85 3658if test "x$ac_cv_prog_cc_c89" != xno; then :
d9898ee8 3659
b0322a85 3660fi
d9898ee8 3661
d9898ee8 3662ac_ext=c
3663ac_cpp='$CPP $CPPFLAGS'
3664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666ac_compiler_gnu=$ac_cv_c_compiler_gnu
3667DEPDIR="${am__leading_dot}deps"
3668
dd184caf 3669ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3670
3671
3672am_make=${MAKE-make}
3673cat > confinc << 'END'
3674am__doit:
8d138742 3675 @echo this is the am__doit target
d9898ee8 3676.PHONY: am__doit
3677END
3678# If we don't find an include directive, just comment out the code.
b0322a85 3679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
8d138742 3680$as_echo_n "checking for style of include used by $am_make... " >&6; }
d9898ee8 3681am__include="#"
3682am__quote=
3683_am_result=none
3684# First try GNU make style include.
3685echo "include confinc" > confmf
b0322a85 3686# Ignore all kinds of additional output from 'make'.
8d138742
CE
3687case `$am_make -s -f confmf 2> /dev/null` in #(
3688*the\ am__doit\ target*)
3689 am__include=include
3690 am__quote=
3691 _am_result=GNU
3692 ;;
3693esac
d9898ee8 3694# Now try BSD make style include.
3695if test "$am__include" = "#"; then
3696 echo '.include "confinc"' > confmf
8d138742
CE
3697 case `$am_make -s -f confmf 2> /dev/null` in #(
3698 *the\ am__doit\ target*)
3699 am__include=.include
3700 am__quote="\""
3701 _am_result=BSD
3702 ;;
3703 esac
d9898ee8 3704fi
3705
3706
b0322a85 3707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
8d138742 3708$as_echo "$_am_result" >&6; }
d9898ee8 3709rm -f confinc confmf
3710
dd184caf 3711# Check whether --enable-dependency-tracking was given.
b0322a85 3712if test "${enable_dependency_tracking+set}" = set; then :
dd184caf 3713 enableval=$enable_dependency_tracking;
3714fi
d9898ee8 3715
d9898ee8 3716if test "x$enable_dependency_tracking" != xno; then
3717 am_depcomp="$ac_aux_dir/depcomp"
3718 AMDEPBACKSLASH='\'
b0322a85 3719 am__nodep='_no'
d9898ee8 3720fi
dd184caf 3721 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3722 AMDEP_TRUE=
3723 AMDEP_FALSE='#'
3724else
3725 AMDEP_TRUE='#'
3726 AMDEP_FALSE=
3727fi
3728
3729
3730
d9898ee8 3731depcc="$CC" am_compiler_list=
3732
b0322a85 3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8d138742 3734$as_echo_n "checking dependency style of $depcc... " >&6; }
b0322a85 3735if ${am_cv_CC_dependencies_compiler_type+:} false; then :
8d138742 3736 $as_echo_n "(cached) " >&6
d9898ee8 3737else
3738 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3739 # We make a subdir and do the tests there. Otherwise we can end up
3740 # making bogus files that we don't know about and never remove. For
3741 # instance it was reported that on HP-UX the gcc test will end up
b0322a85
CE
3742 # making a dummy file named 'D' -- because '-MD' means "put the output
3743 # in D".
3744 rm -rf conftest.dir
d9898ee8 3745 mkdir conftest.dir
3746 # Copy depcomp to subdir because otherwise we won't find it if we're
3747 # using a relative directory.
3748 cp "$am_depcomp" conftest.dir
3749 cd conftest.dir
3750 # We will build objects and dependencies in a subdirectory because
3751 # it helps to detect inapplicable dependency modes. For instance
3752 # both Tru64's cc and ICC support -MD to output dependencies as a
3753 # side effect of compilation, but ICC will put the dependencies in
3754 # the current directory while Tru64 will put them in the object
3755 # directory.
3756 mkdir sub
3757
3758 am_cv_CC_dependencies_compiler_type=none
3759 if test "$am_compiler_list" = ""; then
3760 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3761 fi
8d138742
CE
3762 am__universal=false
3763 case " $depcc " in #(
3764 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3765 esac
3766
d9898ee8 3767 for depmode in $am_compiler_list; do
3768 # Setup a source with many dependencies, because some compilers
3769 # like to wrap large dependency lists on column 80 (with \), and
3770 # we should not choose a depcomp mode which is confused by this.
3771 #
3772 # We need to recreate these files for each test, as the compiler may
3773 # overwrite some of them when testing with obscure command lines.
3774 # This happens at least with the AIX C compiler.
3775 : > sub/conftest.c
3776 for i in 1 2 3 4 5 6; do
3777 echo '#include "conftst'$i'.h"' >> sub/conftest.c
b0322a85
CE
3778 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3779 # Solaris 10 /bin/sh.
3780 echo '/* dummy */' > sub/conftst$i.h
d9898ee8 3781 done
3782 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3783
b0322a85 3784 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8d138742 3785 # mode. It turns out that the SunPro C++ compiler does not properly
b0322a85
CE
3786 # handle '-M -o', and we need to detect this. Also, some Intel
3787 # versions had trouble with output in subdirs.
8d138742
CE
3788 am__obj=sub/conftest.${OBJEXT-o}
3789 am__minus_obj="-o $am__obj"
d9898ee8 3790 case $depmode in
8d138742
CE
3791 gcc)
3792 # This depmode causes a compiler race in universal mode.
3793 test "$am__universal" = false || continue
3794 ;;
d9898ee8 3795 nosideeffect)
b0322a85
CE
3796 # After this tag, mechanisms are not by side-effect, so they'll
3797 # only be used when explicitly requested.
d9898ee8 3798 if test "x$enable_dependency_tracking" = xyes; then
3799 continue
3800 else
3801 break
3802 fi
3803 ;;
b0322a85
CE
3804 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3805 # This compiler won't grok '-c -o', but also, the minuso test has
8d138742
CE
3806 # not run yet. These depmodes are late enough in the game, and
3807 # so weak that their functioning should not be impacted.
3808 am__obj=conftest.${OBJEXT-o}
3809 am__minus_obj=
3810 ;;
d9898ee8 3811 none) break ;;
3812 esac
d9898ee8 3813 if depmode=$depmode \
8d138742 3814 source=sub/conftest.c object=$am__obj \
d9898ee8 3815 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 3816 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 3817 >/dev/null 2>conftest.err &&
dd184caf 3818 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3819 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 3820 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3821 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3822 # icc doesn't choke on unknown options, it will just issue warnings
3823 # or remarks (even with -Werror). So we grep stderr for any message
3824 # that says an option was ignored or not supported.
3825 # When given -MP, icc 7.0 and 7.1 complain thusly:
3826 # icc: Command line warning: ignoring option '-M'; no argument required
3827 # The diagnosis changed in icc 8.0:
3828 # icc: Command line remark: option '-MP' not supported
3829 if (grep 'ignoring option' conftest.err ||
3830 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3831 am_cv_CC_dependencies_compiler_type=$depmode
3832 break
3833 fi
3834 fi
3835 done
3836
3837 cd ..
3838 rm -rf conftest.dir
3839else
3840 am_cv_CC_dependencies_compiler_type=none
3841fi
3842
3843fi
b0322a85 3844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8d138742 3845$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3846CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3847
dd184caf 3848 if
d9898ee8 3849 test "x$enable_dependency_tracking" != xno \
3850 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3851 am__fastdepCC_TRUE=
3852 am__fastdepCC_FALSE='#'
3853else
3854 am__fastdepCC_TRUE='#'
b0322a85
CE
3855 am__fastdepCC_FALSE=
3856fi
d9898ee8 3857
d9898ee8 3858
d9898ee8 3859
b0322a85 3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8d138742 3861$as_echo_n "checking whether ln -s works... " >&6; }
d9898ee8 3862LN_S=$as_ln_s
3863if test "$LN_S" = "ln -s"; then
b0322a85 3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 3865$as_echo "yes" >&6; }
d9898ee8 3866else
b0322a85 3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8d138742 3868$as_echo "no, using $LN_S" >&6; }
d9898ee8 3869fi
3870
8d138742
CE
3871case `pwd` in
3872 *\ * | *\ *)
b0322a85 3873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8d138742
CE
3874$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3875esac
3876
3877
3878
b0322a85
CE
3879macro_version='2.4.2'
3880macro_revision='1.3337'
8d138742
CE
3881
3882
3883
3884
3885
3886
3887
3888
dd184caf 3889
d9898ee8 3890
dd184caf 3891
d9898ee8 3892
dd184caf 3893
8d138742 3894ltmain="$ac_aux_dir/ltmain.sh"
d9898ee8 3895
3896# Make sure we can run config.sub.
dd184caf 3897$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
b0322a85 3898 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
d9898ee8 3899
b0322a85 3900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
8d138742 3901$as_echo_n "checking build system type... " >&6; }
b0322a85 3902if ${ac_cv_build+:} false; then :
8d138742 3903 $as_echo_n "(cached) " >&6
d9898ee8 3904else
dd184caf 3905 ac_build_alias=$build_alias
3906test "x$ac_build_alias" = x &&
3907 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3908test "x$ac_build_alias" = x &&
b0322a85 3909 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
dd184caf 3910ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
b0322a85 3911 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
d9898ee8 3912
3913fi
b0322a85 3914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
8d138742 3915$as_echo "$ac_cv_build" >&6; }
dd184caf 3916case $ac_cv_build in
3917*-*-*) ;;
b0322a85 3918*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
dd184caf 3919esac
d9898ee8 3920build=$ac_cv_build
dd184caf 3921ac_save_IFS=$IFS; IFS='-'
3922set x $ac_cv_build
3923shift
3924build_cpu=$1
3925build_vendor=$2
3926shift; shift
3927# Remember, the first character of IFS is used to create $*,
3928# except with old shells:
3929build_os=$*
3930IFS=$ac_save_IFS
3931case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3932
3933
b0322a85 3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
8d138742 3935$as_echo_n "checking host system type... " >&6; }
b0322a85 3936if ${ac_cv_host+:} false; then :
8d138742 3937 $as_echo_n "(cached) " >&6
d9898ee8 3938else
dd184caf 3939 if test "x$host_alias" = x; then
3940 ac_cv_host=$ac_cv_build
3941else
3942 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
b0322a85 3943 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
dd184caf 3944fi
d9898ee8 3945
3946fi
b0322a85 3947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
8d138742 3948$as_echo "$ac_cv_host" >&6; }
dd184caf 3949case $ac_cv_host in
3950*-*-*) ;;
b0322a85 3951*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
dd184caf 3952esac
d9898ee8 3953host=$ac_cv_host
dd184caf 3954ac_save_IFS=$IFS; IFS='-'
3955set x $ac_cv_host
3956shift
3957host_cpu=$1
3958host_vendor=$2
3959shift; shift
3960# Remember, the first character of IFS is used to create $*,
3961# except with old shells:
3962host_os=$*
3963IFS=$ac_save_IFS
3964case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3965
3966
b0322a85
CE
3967# Backslashify metacharacters that are still active within
3968# double-quoted strings.
3969sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3970
3971# Same as above, but do not quote variable references.
3972double_quote_subst='s/\(["`\\]\)/\\\1/g'
3973
3974# Sed substitution to delay expansion of an escaped shell variable in a
3975# double_quote_subst'ed string.
3976delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3977
3978# Sed substitution to delay expansion of an escaped single quote.
3979delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3980
3981# Sed substitution to avoid accidental globbing in evaled expressions
3982no_glob_subst='s/\*/\\\*/g'
3983
3984ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3985ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3986ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3987
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3989$as_echo_n "checking how to print strings... " >&6; }
3990# Test print first, because it will be a builtin if present.
3991if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3992 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3993 ECHO='print -r --'
3994elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3995 ECHO='printf %s\n'
3996else
3997 # Use this function as a fallback that always works.
3998 func_fallback_echo ()
3999 {
4000 eval 'cat <<_LTECHO_EOF
4001$1
4002_LTECHO_EOF'
4003 }
4004 ECHO='func_fallback_echo'
4005fi
4006
4007# func_echo_all arg...
4008# Invoke $ECHO with all args, space-separated.
4009func_echo_all ()
4010{
4011 $ECHO ""
4012}
4013
4014case "$ECHO" in
4015 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4016$as_echo "printf" >&6; } ;;
4017 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4018$as_echo "print -r" >&6; } ;;
4019 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4020$as_echo "cat" >&6; } ;;
4021esac
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8d138742 4037$as_echo_n "checking for a sed that does not truncate output... " >&6; }
b0322a85 4038if ${ac_cv_path_SED+:} false; then :
8d138742
CE
4039 $as_echo_n "(cached) " >&6
4040else
4041 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4042 for ac_i in 1 2 3 4 5 6 7; do
4043 ac_script="$ac_script$as_nl$ac_script"
4044 done
4045 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
b0322a85 4046 { ac_script=; unset ac_script;}
8d138742
CE
4047 if test -z "$SED"; then
4048 ac_path_SED_found=false
4049 # Loop through the user's path and test for each of PROGNAME-LIST
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 4051for as_dir in $PATH
4052do
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
b0322a85 4055 for ac_prog in sed gsed; do
d9898ee8 4056 for ac_exec_ext in '' $ac_executable_extensions; do
8d138742 4057 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4058 as_fn_executable_p "$ac_path_SED" || continue
8d138742
CE
4059# Check for GNU ac_path_SED and select it if it is found.
4060 # Check for GNU $ac_path_SED
4061case `"$ac_path_SED" --version 2>&1` in
4062*GNU*)
4063 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4064*)
4065 ac_count=0
4066 $as_echo_n 0123456789 >"conftest.in"
4067 while :
4068 do
4069 cat "conftest.in" "conftest.in" >"conftest.tmp"
4070 mv "conftest.tmp" "conftest.in"
4071 cp "conftest.in" "conftest.nl"
4072 $as_echo '' >> "conftest.nl"
4073 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4074 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4075 as_fn_arith $ac_count + 1 && ac_count=$as_val
8d138742
CE
4076 if test $ac_count -gt ${ac_path_SED_max-0}; then
4077 # Best one so far, save it but keep looking for a better one
4078 ac_cv_path_SED="$ac_path_SED"
4079 ac_path_SED_max=$ac_count
4080 fi
4081 # 10*(2^10) chars as input seems more than enough
4082 test $ac_count -gt 10 && break
4083 done
4084 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4085esac
4086
4087 $ac_path_SED_found && break 3
d9898ee8 4088 done
4089 done
b0322a85 4090 done
d9898ee8 4091IFS=$as_save_IFS
8d138742 4092 if test -z "$ac_cv_path_SED"; then
b0322a85 4093 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
d9898ee8 4094 fi
8d138742
CE
4095else
4096 ac_cv_path_SED=$SED
4097fi
d9898ee8 4098
4099fi
b0322a85 4100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8d138742
CE
4101$as_echo "$ac_cv_path_SED" >&6; }
4102 SED="$ac_cv_path_SED"
4103 rm -f conftest.sed
4104
4105test -z "$SED" && SED=sed
4106Xsed="$SED -e 1s/^X//"
d9898ee8 4107
d9898ee8 4108
dd184caf 4109
8d138742
CE
4110
4111
4112
4113
4114
4115
4116
4117
b0322a85 4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8d138742 4119$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
b0322a85 4120if ${ac_cv_path_GREP+:} false; then :
8d138742 4121 $as_echo_n "(cached) " >&6
dd184caf 4122else
8d138742 4123 if test -z "$GREP"; then
dd184caf 4124 ac_path_GREP_found=false
8d138742
CE
4125 # Loop through the user's path and test for each of PROGNAME-LIST
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4127for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4128do
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
b0322a85 4131 for ac_prog in grep ggrep; do
8d138742
CE
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4134 as_fn_executable_p "$ac_path_GREP" || continue
8d138742 4135# Check for GNU ac_path_GREP and select it if it is found.
dd184caf 4136 # Check for GNU $ac_path_GREP
4137case `"$ac_path_GREP" --version 2>&1` in
4138*GNU*)
4139 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4140*)
4141 ac_count=0
8d138742 4142 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4143 while :
4144 do
4145 cat "conftest.in" "conftest.in" >"conftest.tmp"
4146 mv "conftest.tmp" "conftest.in"
4147 cp "conftest.in" "conftest.nl"
8d138742 4148 $as_echo 'GREP' >> "conftest.nl"
dd184caf 4149 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4150 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4151 as_fn_arith $ac_count + 1 && ac_count=$as_val
dd184caf 4152 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4153 # Best one so far, save it but keep looking for a better one
4154 ac_cv_path_GREP="$ac_path_GREP"
4155 ac_path_GREP_max=$ac_count
4156 fi
4157 # 10*(2^10) chars as input seems more than enough
4158 test $ac_count -gt 10 && break
4159 done
4160 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4161esac
4162
8d138742
CE
4163 $ac_path_GREP_found && break 3
4164 done
dd184caf 4165 done
b0322a85 4166 done
dd184caf 4167IFS=$as_save_IFS
8d138742 4168 if test -z "$ac_cv_path_GREP"; then
b0322a85 4169 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742 4170 fi
dd184caf 4171else
4172 ac_cv_path_GREP=$GREP
4173fi
4174
dd184caf 4175fi
b0322a85 4176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8d138742 4177$as_echo "$ac_cv_path_GREP" >&6; }
dd184caf 4178 GREP="$ac_cv_path_GREP"
4179
4180
b0322a85 4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8d138742 4182$as_echo_n "checking for egrep... " >&6; }
b0322a85 4183if ${ac_cv_path_EGREP+:} false; then :
8d138742 4184 $as_echo_n "(cached) " >&6
dd184caf 4185else
4186 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4187 then ac_cv_path_EGREP="$GREP -E"
4188 else
8d138742 4189 if test -z "$EGREP"; then
dd184caf 4190 ac_path_EGREP_found=false
8d138742
CE
4191 # Loop through the user's path and test for each of PROGNAME-LIST
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4193for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4194do
4195 IFS=$as_save_IFS
4196 test -z "$as_dir" && as_dir=.
b0322a85 4197 for ac_prog in egrep; do
8d138742
CE
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4200 as_fn_executable_p "$ac_path_EGREP" || continue
8d138742 4201# Check for GNU ac_path_EGREP and select it if it is found.
dd184caf 4202 # Check for GNU $ac_path_EGREP
4203case `"$ac_path_EGREP" --version 2>&1` in
4204*GNU*)
4205 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4206*)
4207 ac_count=0
8d138742 4208 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4209 while :
4210 do
4211 cat "conftest.in" "conftest.in" >"conftest.tmp"
4212 mv "conftest.tmp" "conftest.in"
4213 cp "conftest.in" "conftest.nl"
8d138742 4214 $as_echo 'EGREP' >> "conftest.nl"
dd184caf 4215 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4216 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4217 as_fn_arith $ac_count + 1 && ac_count=$as_val
dd184caf 4218 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4219 # Best one so far, save it but keep looking for a better one
4220 ac_cv_path_EGREP="$ac_path_EGREP"
4221 ac_path_EGREP_max=$ac_count
d9898ee8 4222 fi
dd184caf 4223 # 10*(2^10) chars as input seems more than enough
4224 test $ac_count -gt 10 && break
4225 done
4226 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4227esac
4228
8d138742
CE
4229 $ac_path_EGREP_found && break 3
4230 done
dd184caf 4231 done
b0322a85 4232 done
dd184caf 4233IFS=$as_save_IFS
8d138742 4234 if test -z "$ac_cv_path_EGREP"; then
b0322a85 4235 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742
CE
4236 fi
4237else
4238 ac_cv_path_EGREP=$EGREP
dd184caf 4239fi
4240
8d138742 4241 fi
dd184caf 4242fi
b0322a85 4243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8d138742
CE
4244$as_echo "$ac_cv_path_EGREP" >&6; }
4245 EGREP="$ac_cv_path_EGREP"
dd184caf 4246
8d138742 4247
b0322a85 4248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8d138742 4249$as_echo_n "checking for fgrep... " >&6; }
b0322a85 4250if ${ac_cv_path_FGREP+:} false; then :
8d138742 4251 $as_echo_n "(cached) " >&6
dd184caf 4252else
8d138742
CE
4253 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4254 then ac_cv_path_FGREP="$GREP -F"
4255 else
4256 if test -z "$FGREP"; then
4257 ac_path_FGREP_found=false
4258 # Loop through the user's path and test for each of PROGNAME-LIST
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4261do
4262 IFS=$as_save_IFS
4263 test -z "$as_dir" && as_dir=.
b0322a85 4264 for ac_prog in fgrep; do
8d138742
CE
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4267 as_fn_executable_p "$ac_path_FGREP" || continue
8d138742
CE
4268# Check for GNU ac_path_FGREP and select it if it is found.
4269 # Check for GNU $ac_path_FGREP
4270case `"$ac_path_FGREP" --version 2>&1` in
4271*GNU*)
4272 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4273*)
4274 ac_count=0
4275 $as_echo_n 0123456789 >"conftest.in"
4276 while :
4277 do
4278 cat "conftest.in" "conftest.in" >"conftest.tmp"
4279 mv "conftest.tmp" "conftest.in"
4280 cp "conftest.in" "conftest.nl"
4281 $as_echo 'FGREP' >> "conftest.nl"
4282 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4284 as_fn_arith $ac_count + 1 && ac_count=$as_val
8d138742
CE
4285 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4286 # Best one so far, save it but keep looking for a better one
4287 ac_cv_path_FGREP="$ac_path_FGREP"
4288 ac_path_FGREP_max=$ac_count
4289 fi
4290 # 10*(2^10) chars as input seems more than enough
4291 test $ac_count -gt 10 && break
4292 done
4293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4294esac
dd184caf 4295
8d138742
CE
4296 $ac_path_FGREP_found && break 3
4297 done
4298 done
b0322a85 4299 done
8d138742
CE
4300IFS=$as_save_IFS
4301 if test -z "$ac_cv_path_FGREP"; then
b0322a85 4302 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742
CE
4303 fi
4304else
4305 ac_cv_path_FGREP=$FGREP
4306fi
dd184caf 4307
4308 fi
d9898ee8 4309fi
b0322a85 4310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8d138742
CE
4311$as_echo "$ac_cv_path_FGREP" >&6; }
4312 FGREP="$ac_cv_path_FGREP"
4313
4314
4315test -z "$GREP" && GREP=grep
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
d9898ee8 4332
4333
4334
dd184caf 4335# Check whether --with-gnu-ld was given.
b0322a85 4336if test "${with_gnu_ld+set}" = set; then :
dd184caf 4337 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4338else
4339 with_gnu_ld=no
dd184caf 4340fi
4341
d9898ee8 4342ac_prog=ld
4343if test "$GCC" = yes; then
4344 # Check if gcc -print-prog-name=ld gives a path.
b0322a85 4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8d138742 4346$as_echo_n "checking for ld used by $CC... " >&6; }
d9898ee8 4347 case $host in
4348 *-*-mingw*)
4349 # gcc leaves a trailing carriage return which upsets mingw
4350 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4351 *)
4352 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4353 esac
4354 case $ac_prog in
4355 # Accept absolute paths.
4356 [\\/]* | ?:[\\/]*)
4357 re_direlt='/[^/][^/]*/\.\./'
4358 # Canonicalize the pathname of ld
8d138742
CE
4359 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4360 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4361 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d9898ee8 4362 done
4363 test -z "$LD" && LD="$ac_prog"
4364 ;;
4365 "")
4366 # If it fails, then pretend we aren't using GCC.
4367 ac_prog=ld
4368 ;;
4369 *)
4370 # If it is relative, then search for the first ld in PATH.
4371 with_gnu_ld=unknown
4372 ;;
4373 esac
4374elif test "$with_gnu_ld" = yes; then
b0322a85 4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8d138742 4376$as_echo_n "checking for GNU ld... " >&6; }
d9898ee8 4377else
b0322a85 4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8d138742 4379$as_echo_n "checking for non-GNU ld... " >&6; }
d9898ee8 4380fi
b0322a85 4381if ${lt_cv_path_LD+:} false; then :
8d138742 4382 $as_echo_n "(cached) " >&6
d9898ee8 4383else
4384 if test -z "$LD"; then
4385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4386 for ac_dir in $PATH; do
4387 IFS="$lt_save_ifs"
4388 test -z "$ac_dir" && ac_dir=.
4389 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4390 lt_cv_path_LD="$ac_dir/$ac_prog"
4391 # Check to see if the program is GNU ld. I'd rather use --version,
4392 # but apparently some variants of GNU ld only accept -v.
4393 # Break only if it was the GNU/non-GNU ld that we prefer.
4394 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4395 *GNU* | *'with BFD'*)
4396 test "$with_gnu_ld" != no && break
4397 ;;
4398 *)
4399 test "$with_gnu_ld" != yes && break
4400 ;;
4401 esac
4402 fi
4403 done
4404 IFS="$lt_save_ifs"
4405else
4406 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4407fi
4408fi
4409
4410LD="$lt_cv_path_LD"
4411if test -n "$LD"; then
b0322a85 4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8d138742 4413$as_echo "$LD" >&6; }
d9898ee8 4414else
b0322a85 4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4416$as_echo "no" >&6; }
d9898ee8 4417fi
b0322a85
CE
4418test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8d138742 4420$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
b0322a85 4421if ${lt_cv_prog_gnu_ld+:} false; then :
8d138742 4422 $as_echo_n "(cached) " >&6
d9898ee8 4423else
4424 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4425case `$LD -v 2>&1 </dev/null` in
4426*GNU* | *'with BFD'*)
4427 lt_cv_prog_gnu_ld=yes
4428 ;;
4429*)
4430 lt_cv_prog_gnu_ld=no
4431 ;;
4432esac
4433fi
b0322a85 4434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8d138742 4435$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4436with_gnu_ld=$lt_cv_prog_gnu_ld
4437
4438
d9898ee8 4439
8d138742
CE
4440
4441
4442
4443
4444
4445
b0322a85 4446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8d138742 4447$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
b0322a85 4448if ${lt_cv_path_NM+:} false; then :
8d138742 4449 $as_echo_n "(cached) " >&6
d9898ee8 4450else
4451 if test -n "$NM"; then
4452 # Let the user override the test.
4453 lt_cv_path_NM="$NM"
4454else
4455 lt_nm_to_check="${ac_tool_prefix}nm"
4456 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4457 lt_nm_to_check="$lt_nm_to_check nm"
4458 fi
4459 for lt_tmp_nm in $lt_nm_to_check; do
4460 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4461 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4462 IFS="$lt_save_ifs"
4463 test -z "$ac_dir" && ac_dir=.
4464 tmp_nm="$ac_dir/$lt_tmp_nm"
4465 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4466 # Check to see if the nm accepts a BSD-compat flag.
4467 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4468 # nm: unknown option "B" ignored
4469 # Tru64's nm complains that /dev/null is an invalid object file
4470 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4471 */dev/null* | *'Invalid file or object type'*)
4472 lt_cv_path_NM="$tmp_nm -B"
4473 break
4474 ;;
4475 *)
4476 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4477 */dev/null*)
4478 lt_cv_path_NM="$tmp_nm -p"
4479 break
4480 ;;
4481 *)
4482 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4483 continue # so that we can try to find one that supports BSD flags
4484 ;;
4485 esac
4486 ;;
4487 esac
4488 fi
4489 done
4490 IFS="$lt_save_ifs"
4491 done
8d138742 4492 : ${lt_cv_path_NM=no}
d9898ee8 4493fi
4494fi
b0322a85 4495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8d138742
CE
4496$as_echo "$lt_cv_path_NM" >&6; }
4497if test "$lt_cv_path_NM" != "no"; then
4498 NM="$lt_cv_path_NM"
d9898ee8 4499else
8d138742 4500 # Didn't find any BSD compatible name lister, look for dumpbin.
b0322a85
CE
4501 if test -n "$DUMPBIN"; then :
4502 # Let the user override the test.
4503 else
4504 if test -n "$ac_tool_prefix"; then
4505 for ac_prog in dumpbin "link -dump"
8d138742
CE
4506 do
4507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4508set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4510$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4511if ${ac_cv_prog_DUMPBIN+:} false; then :
8d138742
CE
4512 $as_echo_n "(cached) " >&6
4513else
4514 if test -n "$DUMPBIN"; then
4515 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4516else
4517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518for as_dir in $PATH
4519do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
b0322a85
CE
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4524 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
b0322a85 4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
4526 break 2
4527 fi
4528done
b0322a85 4529 done
8d138742 4530IFS=$as_save_IFS
d9898ee8 4531
8d138742
CE
4532fi
4533fi
4534DUMPBIN=$ac_cv_prog_DUMPBIN
4535if test -n "$DUMPBIN"; then
b0322a85 4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8d138742
CE
4537$as_echo "$DUMPBIN" >&6; }
4538else
b0322a85 4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
4540$as_echo "no" >&6; }
4541fi
d9898ee8 4542
d9898ee8 4543
8d138742
CE
4544 test -n "$DUMPBIN" && break
4545 done
4546fi
4547if test -z "$DUMPBIN"; then
4548 ac_ct_DUMPBIN=$DUMPBIN
b0322a85 4549 for ac_prog in dumpbin "link -dump"
8d138742
CE
4550do
4551 # Extract the first word of "$ac_prog", so it can be a program name with args.
4552set dummy $ac_prog; ac_word=$2
b0322a85 4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4554$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4555if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8d138742
CE
4556 $as_echo_n "(cached) " >&6
4557else
4558 if test -n "$ac_ct_DUMPBIN"; then
4559 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4560else
4561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562for as_dir in $PATH
4563do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
b0322a85
CE
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4568 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
b0322a85 4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
4570 break 2
4571 fi
4572done
b0322a85 4573 done
8d138742 4574IFS=$as_save_IFS
d9898ee8 4575
8d138742
CE
4576fi
4577fi
4578ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4579if test -n "$ac_ct_DUMPBIN"; then
b0322a85 4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8d138742
CE
4581$as_echo "$ac_ct_DUMPBIN" >&6; }
4582else
b0322a85 4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
4584$as_echo "no" >&6; }
4585fi
d9898ee8 4586
8d138742
CE
4587
4588 test -n "$ac_ct_DUMPBIN" && break
4589done
4590
4591 if test "x$ac_ct_DUMPBIN" = x; then
4592 DUMPBIN=":"
ac40fd9e 4593 else
8d138742
CE
4594 case $cross_compiling:$ac_tool_warned in
4595yes:)
b0322a85 4596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
4597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4598ac_tool_warned=yes ;;
4599esac
4600 DUMPBIN=$ac_ct_DUMPBIN
ac40fd9e 4601 fi
8d138742 4602fi
d9898ee8 4603
b0322a85
CE
4604 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4605 *COFF*)
4606 DUMPBIN="$DUMPBIN -symbols"
4607 ;;
4608 *)
4609 DUMPBIN=:
4610 ;;
4611 esac
4612 fi
d9898ee8 4613
8d138742
CE
4614 if test "$DUMPBIN" != ":"; then
4615 NM="$DUMPBIN"
d9898ee8 4616 fi
8d138742
CE
4617fi
4618test -z "$NM" && NM=nm
d9898ee8 4619
d9898ee8 4620
d9898ee8 4621
d9898ee8 4622
d9898ee8 4623
d9898ee8 4624
b0322a85 4625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8d138742 4626$as_echo_n "checking the name lister ($NM) interface... " >&6; }
b0322a85 4627if ${lt_cv_nm_interface+:} false; then :
8d138742
CE
4628 $as_echo_n "(cached) " >&6
4629else
4630 lt_cv_nm_interface="BSD nm"
4631 echo "int some_variable = 0;" > conftest.$ac_ext
b0322a85 4632 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8d138742
CE
4633 (eval "$ac_compile" 2>conftest.err)
4634 cat conftest.err >&5
b0322a85 4635 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8d138742
CE
4636 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4637 cat conftest.err >&5
b0322a85 4638 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8d138742
CE
4639 cat conftest.out >&5
4640 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4641 lt_cv_nm_interface="MS dumpbin"
d9898ee8 4642 fi
8d138742
CE
4643 rm -f conftest*
4644fi
b0322a85 4645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8d138742 4646$as_echo "$lt_cv_nm_interface" >&6; }
d9898ee8 4647
8d138742 4648# find the maximum length of command line arguments
b0322a85 4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8d138742 4650$as_echo_n "checking the maximum length of command line arguments... " >&6; }
b0322a85 4651if ${lt_cv_sys_max_cmd_len+:} false; then :
8d138742
CE
4652 $as_echo_n "(cached) " >&6
4653else
4654 i=0
4655 teststring="ABCD"
d9898ee8 4656
8d138742
CE
4657 case $build_os in
4658 msdosdjgpp*)
4659 # On DJGPP, this test can blow up pretty badly due to problems in libc
4660 # (any single argument exceeding 2000 bytes causes a buffer overrun
4661 # during glob expansion). Even if it were fixed, the result of this
4662 # check would be larger than it should be.
4663 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4664 ;;
d9898ee8 4665
8d138742
CE
4666 gnu*)
4667 # Under GNU Hurd, this test is not required because there is
4668 # no limit to the length of command line arguments.
4669 # Libtool will interpret -1 as no limit whatsoever
4670 lt_cv_sys_max_cmd_len=-1;
4671 ;;
d9898ee8 4672
8d138742
CE
4673 cygwin* | mingw* | cegcc*)
4674 # On Win9x/ME, this test blows up -- it succeeds, but takes
4675 # about 5 minutes as the teststring grows exponentially.
4676 # Worse, since 9x/ME are not pre-emptively multitasking,
4677 # you end up with a "frozen" computer, even though with patience
4678 # the test eventually succeeds (with a max line length of 256k).
4679 # Instead, let's just punt: use the minimum linelength reported by
4680 # all of the supported platforms: 8192 (on NT/2K/XP).
4681 lt_cv_sys_max_cmd_len=8192;
4682 ;;
ac40fd9e 4683
b0322a85
CE
4684 mint*)
4685 # On MiNT this can take a long time and run out of memory.
4686 lt_cv_sys_max_cmd_len=8192;
4687 ;;
4688
8d138742
CE
4689 amigaos*)
4690 # On AmigaOS with pdksh, this test takes hours, literally.
4691 # So we just punt and use a minimum line length of 8192.
4692 lt_cv_sys_max_cmd_len=8192;
4693 ;;
d9898ee8 4694
8d138742
CE
4695 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4696 # This has been around since 386BSD, at least. Likely further.
4697 if test -x /sbin/sysctl; then
4698 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4699 elif test -x /usr/sbin/sysctl; then
4700 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4701 else
4702 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4703 fi
4704 # And add a safety zone
4705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
d9898ee8 4707 ;;
8d138742
CE
4708
4709 interix*)
4710 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4711 lt_cv_sys_max_cmd_len=196608
d9898ee8 4712 ;;
8d138742 4713
b0322a85
CE
4714 os2*)
4715 # The test takes a long time on OS/2.
4716 lt_cv_sys_max_cmd_len=8192
4717 ;;
4718
8d138742
CE
4719 osf*)
4720 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4721 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4722 # nice to cause kernel panics so lets avoid the loop below.
4723 # First set a reasonable default.
4724 lt_cv_sys_max_cmd_len=16384
4725 #
4726 if test -x /sbin/sysconfig; then
4727 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4728 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4729 esac
4730 fi
d9898ee8 4731 ;;
8d138742
CE
4732 sco3.2v5*)
4733 lt_cv_sys_max_cmd_len=102400
d9898ee8 4734 ;;
8d138742
CE
4735 sysv5* | sco5v6* | sysv4.2uw2*)
4736 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4737 if test -n "$kargmax"; then
4738 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4739 else
4740 lt_cv_sys_max_cmd_len=32768
4741 fi
d9898ee8 4742 ;;
8d138742
CE
4743 *)
4744 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4745 if test -n "$lt_cv_sys_max_cmd_len"; then
4746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4747 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4748 else
4749 # Make teststring a little bigger before we do anything with it.
4750 # a 1K string should be a reasonable start.
4751 for i in 1 2 3 4 5 6 7 8 ; do
4752 teststring=$teststring$teststring
4753 done
4754 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4755 # If test is not a shell built-in, we'll probably end up computing a
4756 # maximum length that is only half of the actual maximum length, but
4757 # we can't tell.
b0322a85
CE
4758 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4759 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8d138742
CE
4760 test $i != 17 # 1/2 MB should be enough
4761 do
4762 i=`expr $i + 1`
4763 teststring=$teststring$teststring
4764 done
4765 # Only check the string length outside the loop.
4766 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4767 teststring=
4768 # Add a significant safety factor because C++ compilers can tack on
4769 # massive amounts of additional arguments before passing them to the
4770 # linker. It appears as though 1/2 is a usable value.
4771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4772 fi
d9898ee8 4773 ;;
4774 esac
d9898ee8 4775
8d138742 4776fi
d9898ee8 4777
8d138742 4778if test -n $lt_cv_sys_max_cmd_len ; then
b0322a85 4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8d138742
CE
4780$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4781else
b0322a85 4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8d138742 4783$as_echo "none" >&6; }
d9898ee8 4784fi
8d138742 4785max_cmd_len=$lt_cv_sys_max_cmd_len
d9898ee8 4786
4787
4788
4789
d9898ee8 4790
d9898ee8 4791
8d138742
CE
4792: ${CP="cp -f"}
4793: ${MV="mv -f"}
4794: ${RM="rm -f"}
d9898ee8 4795
b0322a85 4796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8d138742
CE
4797$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4798# Try some XSI features
4799xsi_shell=no
4800( _lt_dummy="a/b/c"
b0322a85
CE
4801 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4802 = c,a/b,b/c, \
8d138742
CE
4803 && eval 'test $(( 1 + 1 )) -eq 2 \
4804 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4805 && xsi_shell=yes
b0322a85 4806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8d138742 4807$as_echo "$xsi_shell" >&6; }
d9898ee8 4808
8d138742 4809
b0322a85 4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8d138742
CE
4811$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4812lt_shell_append=no
4813( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4814 >/dev/null 2>&1 \
4815 && lt_shell_append=yes
b0322a85 4816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8d138742
CE
4817$as_echo "$lt_shell_append" >&6; }
4818
4819
4820if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4821 lt_unset=unset
4822else
4823 lt_unset=false
dd184caf 4824fi
d9898ee8 4825
d9898ee8 4826
8d138742
CE
4827
4828
4829
4830# test EBCDIC or ASCII
4831case `echo X|tr X '\101'` in
4832 A) # ASCII based system
4833 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4834 lt_SP2NL='tr \040 \012'
4835 lt_NL2SP='tr \015\012 \040\040'
d9898ee8 4836 ;;
8d138742
CE
4837 *) # EBCDIC based system
4838 lt_SP2NL='tr \100 \n'
4839 lt_NL2SP='tr \r\n \100\100'
d9898ee8 4840 ;;
8d138742
CE
4841esac
4842
d9898ee8 4843
d9898ee8 4844
d9898ee8 4845
d9898ee8 4846
d9898ee8 4847
d9898ee8 4848
dd184caf 4849
d9898ee8 4850
b0322a85
CE
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4852$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4853if ${lt_cv_to_host_file_cmd+:} false; then :
4854 $as_echo_n "(cached) " >&6
4855else
4856 case $host in
4857 *-*-mingw* )
4858 case $build in
4859 *-*-mingw* ) # actually msys
4860 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4861 ;;
4862 *-*-cygwin* )
4863 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4864 ;;
4865 * ) # otherwise, assume *nix
4866 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4867 ;;
4868 esac
4869 ;;
4870 *-*-cygwin* )
4871 case $build in
4872 *-*-mingw* ) # actually msys
4873 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4874 ;;
4875 *-*-cygwin* )
4876 lt_cv_to_host_file_cmd=func_convert_file_noop
4877 ;;
4878 * ) # otherwise, assume *nix
4879 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4880 ;;
4881 esac
4882 ;;
4883 * ) # unhandled hosts (and "normal" native builds)
4884 lt_cv_to_host_file_cmd=func_convert_file_noop
4885 ;;
4886esac
4887
4888fi
4889
4890to_host_file_cmd=$lt_cv_to_host_file_cmd
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4892$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4893
4894
4895
4896
4897
4898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4899$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4900if ${lt_cv_to_tool_file_cmd+:} false; then :
4901 $as_echo_n "(cached) " >&6
4902else
4903 #assume ordinary cross tools, or native build.
4904lt_cv_to_tool_file_cmd=func_convert_file_noop
4905case $host in
4906 *-*-mingw* )
4907 case $build in
4908 *-*-mingw* ) # actually msys
4909 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4910 ;;
4911 esac
4912 ;;
4913esac
4914
4915fi
4916
4917to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4919$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4920
4921
4922
4923
4924
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8d138742 4926$as_echo_n "checking for $LD option to reload object files... " >&6; }
b0322a85 4927if ${lt_cv_ld_reload_flag+:} false; then :
8d138742
CE
4928 $as_echo_n "(cached) " >&6
4929else
4930 lt_cv_ld_reload_flag='-r'
d9898ee8 4931fi
b0322a85 4932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8d138742
CE
4933$as_echo "$lt_cv_ld_reload_flag" >&6; }
4934reload_flag=$lt_cv_ld_reload_flag
4935case $reload_flag in
4936"" | " "*) ;;
4937*) reload_flag=" $reload_flag" ;;
4938esac
4939reload_cmds='$LD$reload_flag -o $output$reload_objs'
4940case $host_os in
b0322a85
CE
4941 cygwin* | mingw* | pw32* | cegcc*)
4942 if test "$GCC" != yes; then
4943 reload_cmds=false
4944 fi
4945 ;;
8d138742
CE
4946 darwin*)
4947 if test "$GCC" = yes; then
4948 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4949 else
4950 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4951 fi
4952 ;;
4953esac
d9898ee8 4954
4955
d9898ee8 4956
d9898ee8 4957
4958
8d138742
CE
4959
4960
4961
4962
4963if test -n "$ac_tool_prefix"; then
4964 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4965set dummy ${ac_tool_prefix}objdump; ac_word=$2
b0322a85 4966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4967$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4968if ${ac_cv_prog_OBJDUMP+:} false; then :
8d138742 4969 $as_echo_n "(cached) " >&6
d9898ee8 4970else
8d138742
CE
4971 if test -n "$OBJDUMP"; then
4972 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
d9898ee8 4973else
8d138742
CE
4974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975for as_dir in $PATH
4976do
4977 IFS=$as_save_IFS
4978 test -z "$as_dir" && as_dir=.
b0322a85
CE
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4981 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
b0322a85 4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
4983 break 2
4984 fi
4985done
b0322a85 4986 done
8d138742 4987IFS=$as_save_IFS
d9898ee8 4988
8d138742
CE
4989fi
4990fi
4991OBJDUMP=$ac_cv_prog_OBJDUMP
4992if test -n "$OBJDUMP"; then
b0322a85 4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8d138742
CE
4994$as_echo "$OBJDUMP" >&6; }
4995else
b0322a85 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4997$as_echo "no" >&6; }
d9898ee8 4998fi
dd184caf 4999
d9898ee8 5000
d9898ee8 5001fi
8d138742
CE
5002if test -z "$ac_cv_prog_OBJDUMP"; then
5003 ac_ct_OBJDUMP=$OBJDUMP
5004 # Extract the first word of "objdump", so it can be a program name with args.
5005set dummy objdump; ac_word=$2
b0322a85 5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5007$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5008if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8d138742
CE
5009 $as_echo_n "(cached) " >&6
5010else
5011 if test -n "$ac_ct_OBJDUMP"; then
5012 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5013else
5014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015for as_dir in $PATH
5016do
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
b0322a85
CE
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5021 ac_cv_prog_ac_ct_OBJDUMP="objdump"
b0322a85 5022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5023 break 2
5024 fi
d9898ee8 5025done
b0322a85 5026 done
8d138742 5027IFS=$as_save_IFS
d9898ee8 5028
5029fi
d9898ee8 5030fi
8d138742
CE
5031ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5032if test -n "$ac_ct_OBJDUMP"; then
b0322a85 5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8d138742 5034$as_echo "$ac_ct_OBJDUMP" >&6; }
d9898ee8 5035else
b0322a85 5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5037$as_echo "no" >&6; }
d9898ee8 5038fi
dd184caf 5039
8d138742
CE
5040 if test "x$ac_ct_OBJDUMP" = x; then
5041 OBJDUMP="false"
5042 else
5043 case $cross_compiling:$ac_tool_warned in
5044yes:)
b0322a85 5045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5047ac_tool_warned=yes ;;
dd184caf 5048esac
8d138742
CE
5049 OBJDUMP=$ac_ct_OBJDUMP
5050 fi
d9898ee8 5051else
8d138742 5052 OBJDUMP="$ac_cv_prog_OBJDUMP"
d9898ee8 5053fi
dd184caf 5054
8d138742 5055test -z "$OBJDUMP" && OBJDUMP=objdump
d9898ee8 5056
d9898ee8 5057
5058
d9898ee8 5059
d9898ee8 5060
d9898ee8 5061
dd184caf 5062
d9898ee8 5063
d9898ee8 5064
b0322a85 5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8d138742 5066$as_echo_n "checking how to recognize dependent libraries... " >&6; }
b0322a85 5067if ${lt_cv_deplibs_check_method+:} false; then :
8d138742 5068 $as_echo_n "(cached) " >&6
d9898ee8 5069else
8d138742
CE
5070 lt_cv_file_magic_cmd='$MAGIC_CMD'
5071lt_cv_file_magic_test_file=
5072lt_cv_deplibs_check_method='unknown'
5073# Need to set the preceding variable on all platforms that support
5074# interlibrary dependencies.
5075# 'none' -- dependencies not supported.
5076# `unknown' -- same as none, but documents that we really don't know.
5077# 'pass_all' -- all dependencies passed with no checks.
5078# 'test_compile' -- check by making test program.
5079# 'file_magic [[regex]]' -- check by looking for files in library path
5080# which responds to the $file_magic_cmd with a given extended regex.
5081# If you have `file' or equivalent on your system and you're not sure
5082# whether `pass_all' will *always* work, you probably want this one.
d9898ee8 5083
8d138742
CE
5084case $host_os in
5085aix[4-9]*)
5086 lt_cv_deplibs_check_method=pass_all
5087 ;;
d9898ee8 5088
8d138742
CE
5089beos*)
5090 lt_cv_deplibs_check_method=pass_all
5091 ;;
d9898ee8 5092
8d138742
CE
5093bsdi[45]*)
5094 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5095 lt_cv_file_magic_cmd='/usr/bin/file -L'
5096 lt_cv_file_magic_test_file=/shlib/libc.so
5097 ;;
d9898ee8 5098
8d138742
CE
5099cygwin*)
5100 # func_win32_libid is a shell function defined in ltmain.sh
5101 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5102 lt_cv_file_magic_cmd='func_win32_libid'
5103 ;;
d9898ee8 5104
8d138742
CE
5105mingw* | pw32*)
5106 # Base MSYS/MinGW do not provide the 'file' command needed by
5107 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5108 # unless we find 'file', for example because we are cross-compiling.
b0322a85
CE
5109 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5110 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8d138742
CE
5111 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5112 lt_cv_file_magic_cmd='func_win32_libid'
5113 else
b0322a85
CE
5114 # Keep this pattern in sync with the one in func_win32_libid.
5115 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8d138742
CE
5116 lt_cv_file_magic_cmd='$OBJDUMP -f'
5117 fi
5118 ;;
d9898ee8 5119
b0322a85 5120cegcc*)
8d138742
CE
5121 # use the weaker test based on 'objdump'. See mingw*.
5122 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5123 lt_cv_file_magic_cmd='$OBJDUMP -f'
5124 ;;
d9898ee8 5125
8d138742
CE
5126darwin* | rhapsody*)
5127 lt_cv_deplibs_check_method=pass_all
5128 ;;
dd184caf 5129
8d138742
CE
5130freebsd* | dragonfly*)
5131 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5132 case $host_cpu in
5133 i*86 )
5134 # Not sure whether the presence of OpenBSD here was a mistake.
5135 # Let's accept both of them until this is cleared up.
5136 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5137 lt_cv_file_magic_cmd=/usr/bin/file
5138 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5139 ;;
5140 esac
5141 else
5142 lt_cv_deplibs_check_method=pass_all
5143 fi
5144 ;;
dd184caf 5145
8d138742
CE
5146gnu*)
5147 lt_cv_deplibs_check_method=pass_all
5148 ;;
d9898ee8 5149
b0322a85
CE
5150haiku*)
5151 lt_cv_deplibs_check_method=pass_all
5152 ;;
5153
8d138742
CE
5154hpux10.20* | hpux11*)
5155 lt_cv_file_magic_cmd=/usr/bin/file
5156 case $host_cpu in
5157 ia64*)
5158 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5159 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5160 ;;
5161 hppa*64*)
b0322a85 5162 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8d138742
CE
5163 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5164 ;;
5165 *)
b0322a85 5166 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8d138742
CE
5167 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5168 ;;
5169 esac
5170 ;;
d9898ee8 5171
8d138742
CE
5172interix[3-9]*)
5173 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5175 ;;
d9898ee8 5176
8d138742
CE
5177irix5* | irix6* | nonstopux*)
5178 case $LD in
5179 *-32|*"-32 ") libmagic=32-bit;;
5180 *-n32|*"-n32 ") libmagic=N32;;
5181 *-64|*"-64 ") libmagic=64-bit;;
5182 *) libmagic=never-match;;
5183 esac
5184 lt_cv_deplibs_check_method=pass_all
5185 ;;
d9898ee8 5186
b0322a85
CE
5187# This must be glibc/ELF.
5188linux* | k*bsd*-gnu | kopensolaris*-gnu)
8d138742
CE
5189 lt_cv_deplibs_check_method=pass_all
5190 ;;
d9898ee8 5191
8d138742
CE
5192netbsd*)
5193 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5194 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5195 else
5196 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5197 fi
5198 ;;
d9898ee8 5199
8d138742
CE
5200newos6*)
5201 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5202 lt_cv_file_magic_cmd=/usr/bin/file
5203 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5204 ;;
d9898ee8 5205
8d138742
CE
5206*nto* | *qnx*)
5207 lt_cv_deplibs_check_method=pass_all
5208 ;;
d9898ee8 5209
8d138742
CE
5210openbsd*)
5211 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5213 else
5214 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5215 fi
5216 ;;
d9898ee8 5217
8d138742
CE
5218osf3* | osf4* | osf5*)
5219 lt_cv_deplibs_check_method=pass_all
5220 ;;
d9898ee8 5221
8d138742
CE
5222rdos*)
5223 lt_cv_deplibs_check_method=pass_all
5224 ;;
d9898ee8 5225
8d138742
CE
5226solaris*)
5227 lt_cv_deplibs_check_method=pass_all
5228 ;;
d9898ee8 5229
8d138742
CE
5230sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5231 lt_cv_deplibs_check_method=pass_all
5232 ;;
d9898ee8 5233
8d138742
CE
5234sysv4 | sysv4.3*)
5235 case $host_vendor in
5236 motorola)
5237 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5238 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5239 ;;
5240 ncr)
5241 lt_cv_deplibs_check_method=pass_all
5242 ;;
5243 sequent)
5244 lt_cv_file_magic_cmd='/bin/file'
5245 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5246 ;;
5247 sni)
5248 lt_cv_file_magic_cmd='/bin/file'
5249 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5250 lt_cv_file_magic_test_file=/lib/libc.so
5251 ;;
5252 siemens)
5253 lt_cv_deplibs_check_method=pass_all
5254 ;;
5255 pc)
5256 lt_cv_deplibs_check_method=pass_all
5257 ;;
5258 esac
5259 ;;
5260
5261tpf*)
5262 lt_cv_deplibs_check_method=pass_all
5263 ;;
dd184caf 5264esac
d9898ee8 5265
d9898ee8 5266fi
b0322a85 5267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8d138742 5268$as_echo "$lt_cv_deplibs_check_method" >&6; }
b0322a85
CE
5269
5270file_magic_glob=
5271want_nocaseglob=no
5272if test "$build" = "$host"; then
5273 case $host_os in
5274 mingw* | pw32*)
5275 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5276 want_nocaseglob=yes
5277 else
5278 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5279 fi
5280 ;;
5281 esac
5282fi
5283
8d138742
CE
5284file_magic_cmd=$lt_cv_file_magic_cmd
5285deplibs_check_method=$lt_cv_deplibs_check_method
5286test -z "$deplibs_check_method" && deplibs_check_method=unknown
dd184caf 5287
d9898ee8 5288
d9898ee8 5289
d9898ee8 5290
5291
5292
8d138742
CE
5293
5294
5295
5296
5297
5298
b0322a85
CE
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309if test -n "$ac_tool_prefix"; then
5310 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5311set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313$as_echo_n "checking for $ac_word... " >&6; }
5314if ${ac_cv_prog_DLLTOOL+:} false; then :
5315 $as_echo_n "(cached) " >&6
5316else
5317 if test -n "$DLLTOOL"; then
5318 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5319else
5320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321for as_dir in $PATH
5322do
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5330 fi
5331done
5332 done
5333IFS=$as_save_IFS
5334
5335fi
5336fi
5337DLLTOOL=$ac_cv_prog_DLLTOOL
5338if test -n "$DLLTOOL"; then
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5340$as_echo "$DLLTOOL" >&6; }
5341else
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343$as_echo "no" >&6; }
5344fi
5345
5346
5347fi
5348if test -z "$ac_cv_prog_DLLTOOL"; then
5349 ac_ct_DLLTOOL=$DLLTOOL
5350 # Extract the first word of "dlltool", so it can be a program name with args.
5351set dummy dlltool; ac_word=$2
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5353$as_echo_n "checking for $ac_word... " >&6; }
5354if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5355 $as_echo_n "(cached) " >&6
5356else
5357 if test -n "$ac_ct_DLLTOOL"; then
5358 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5359else
5360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361for as_dir in $PATH
5362do
5363 IFS=$as_save_IFS
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 break 2
5370 fi
5371done
5372 done
5373IFS=$as_save_IFS
5374
5375fi
5376fi
5377ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5378if test -n "$ac_ct_DLLTOOL"; then
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5380$as_echo "$ac_ct_DLLTOOL" >&6; }
5381else
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383$as_echo "no" >&6; }
5384fi
5385
5386 if test "x$ac_ct_DLLTOOL" = x; then
5387 DLLTOOL="false"
5388 else
5389 case $cross_compiling:$ac_tool_warned in
5390yes:)
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5393ac_tool_warned=yes ;;
5394esac
5395 DLLTOOL=$ac_ct_DLLTOOL
5396 fi
5397else
5398 DLLTOOL="$ac_cv_prog_DLLTOOL"
5399fi
5400
5401test -z "$DLLTOOL" && DLLTOOL=dlltool
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5413$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5414if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416else
5417 lt_cv_sharedlib_from_linklib_cmd='unknown'
5418
5419case $host_os in
5420cygwin* | mingw* | pw32* | cegcc*)
5421 # two different shell functions defined in ltmain.sh
5422 # decide which to use based on capabilities of $DLLTOOL
5423 case `$DLLTOOL --help 2>&1` in
5424 *--identify-strict*)
5425 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5426 ;;
5427 *)
5428 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5429 ;;
5430 esac
5431 ;;
5432*)
5433 # fallback: assume linklib IS sharedlib
5434 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5435 ;;
5436esac
5437
5438fi
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5440$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5441sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5442test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5443
5444
5445
5446
5447
5448
5449
5450
8d138742 5451if test -n "$ac_tool_prefix"; then
b0322a85
CE
5452 for ac_prog in ar
5453 do
5454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5455set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5457$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5458if ${ac_cv_prog_AR+:} false; then :
8d138742 5459 $as_echo_n "(cached) " >&6
d9898ee8 5460else
8d138742
CE
5461 if test -n "$AR"; then
5462 ac_cv_prog_AR="$AR" # Let the user override the test.
d9898ee8 5463else
8d138742
CE
5464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465for as_dir in $PATH
5466do
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
b0322a85
CE
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5471 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5473 break 2
5474 fi
5475done
b0322a85 5476 done
8d138742 5477IFS=$as_save_IFS
d9898ee8 5478
8d138742
CE
5479fi
5480fi
5481AR=$ac_cv_prog_AR
5482if test -n "$AR"; then
b0322a85 5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8d138742
CE
5484$as_echo "$AR" >&6; }
5485else
b0322a85 5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5487$as_echo "no" >&6; }
d9898ee8 5488fi
dd184caf 5489
d9898ee8 5490
b0322a85
CE
5491 test -n "$AR" && break
5492 done
8d138742 5493fi
b0322a85 5494if test -z "$AR"; then
8d138742 5495 ac_ct_AR=$AR
b0322a85
CE
5496 for ac_prog in ar
5497do
5498 # Extract the first word of "$ac_prog", so it can be a program name with args.
5499set dummy $ac_prog; ac_word=$2
5500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5501$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5502if ${ac_cv_prog_ac_ct_AR+:} false; then :
8d138742 5503 $as_echo_n "(cached) " >&6
d9898ee8 5504else
8d138742
CE
5505 if test -n "$ac_ct_AR"; then
5506 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5507else
5508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509for as_dir in $PATH
5510do
5511 IFS=$as_save_IFS
5512 test -z "$as_dir" && as_dir=.
b0322a85
CE
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5515 ac_cv_prog_ac_ct_AR="$ac_prog"
5516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5517 break 2
5518 fi
5519done
b0322a85 5520 done
8d138742 5521IFS=$as_save_IFS
d9898ee8 5522
8d138742
CE
5523fi
5524fi
5525ac_ct_AR=$ac_cv_prog_ac_ct_AR
5526if test -n "$ac_ct_AR"; then
b0322a85 5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8d138742
CE
5528$as_echo "$ac_ct_AR" >&6; }
5529else
b0322a85 5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5531$as_echo "no" >&6; }
d9898ee8 5532fi
dd184caf 5533
b0322a85
CE
5534
5535 test -n "$ac_ct_AR" && break
5536done
5537
8d138742
CE
5538 if test "x$ac_ct_AR" = x; then
5539 AR="false"
5540 else
5541 case $cross_compiling:$ac_tool_warned in
5542yes:)
b0322a85 5543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545ac_tool_warned=yes ;;
d9898ee8 5546esac
8d138742
CE
5547 AR=$ac_ct_AR
5548 fi
b0322a85
CE
5549fi
5550
5551: ${AR=ar}
5552: ${AR_FLAGS=cru}
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5565$as_echo_n "checking for archiver @FILE support... " >&6; }
5566if ${lt_cv_ar_at_file+:} false; then :
5567 $as_echo_n "(cached) " >&6
d9898ee8 5568else
b0322a85
CE
5569 lt_cv_ar_at_file=no
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571/* end confdefs.h. */
d9898ee8 5572
b0322a85
CE
5573int
5574main ()
5575{
d9898ee8 5576
b0322a85
CE
5577 ;
5578 return 0;
5579}
5580_ACEOF
5581if ac_fn_c_try_compile "$LINENO"; then :
5582 echo conftest.$ac_objext > conftest.lst
5583 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5585 (eval $lt_ar_try) 2>&5
5586 ac_status=$?
5587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5588 test $ac_status = 0; }
5589 if test "$ac_status" -eq 0; then
5590 # Ensure the archiver fails upon bogus file names.
5591 rm -f conftest.$ac_objext libconftest.a
5592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5593 (eval $lt_ar_try) 2>&5
5594 ac_status=$?
5595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5596 test $ac_status = 0; }
5597 if test "$ac_status" -ne 0; then
5598 lt_cv_ar_at_file=@
5599 fi
5600 fi
5601 rm -f conftest.* libconftest.a
d9898ee8 5602
b0322a85
CE
5603fi
5604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5605
b0322a85
CE
5606fi
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5608$as_echo "$lt_cv_ar_at_file" >&6; }
8d138742 5609
b0322a85
CE
5610if test "x$lt_cv_ar_at_file" = xno; then
5611 archiver_list_spec=
5612else
5613 archiver_list_spec=$lt_cv_ar_at_file
5614fi
8d138742
CE
5615
5616
5617
5618
5619
5620
5621
5622if test -n "$ac_tool_prefix"; then
5623 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5624set dummy ${ac_tool_prefix}strip; ac_word=$2
b0322a85 5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5626$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5627if ${ac_cv_prog_STRIP+:} false; then :
8d138742 5628 $as_echo_n "(cached) " >&6
d9898ee8 5629else
8d138742
CE
5630 if test -n "$STRIP"; then
5631 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
d9898ee8 5632else
5633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634for as_dir in $PATH
5635do
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
b0322a85
CE
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5640 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b0322a85 5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5642 break 2
5643 fi
5644done
b0322a85 5645 done
dd184caf 5646IFS=$as_save_IFS
d9898ee8 5647
5648fi
5649fi
8d138742
CE
5650STRIP=$ac_cv_prog_STRIP
5651if test -n "$STRIP"; then
b0322a85 5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8d138742 5653$as_echo "$STRIP" >&6; }
d9898ee8 5654else
b0322a85 5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5656$as_echo "no" >&6; }
d9898ee8 5657fi
5658
dd184caf 5659
d9898ee8 5660fi
8d138742
CE
5661if test -z "$ac_cv_prog_STRIP"; then
5662 ac_ct_STRIP=$STRIP
5663 # Extract the first word of "strip", so it can be a program name with args.
5664set dummy strip; ac_word=$2
b0322a85 5665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5666$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5667if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8d138742 5668 $as_echo_n "(cached) " >&6
d9898ee8 5669else
8d138742
CE
5670 if test -n "$ac_ct_STRIP"; then
5671 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
d9898ee8 5672else
5673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674for as_dir in $PATH
5675do
5676 IFS=$as_save_IFS
5677 test -z "$as_dir" && as_dir=.
b0322a85
CE
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5680 ac_cv_prog_ac_ct_STRIP="strip"
b0322a85 5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5682 break 2
5683 fi
5684done
b0322a85 5685 done
dd184caf 5686IFS=$as_save_IFS
d9898ee8 5687
5688fi
5689fi
8d138742
CE
5690ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5691if test -n "$ac_ct_STRIP"; then
b0322a85 5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8d138742 5693$as_echo "$ac_ct_STRIP" >&6; }
d9898ee8 5694else
b0322a85 5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5696$as_echo "no" >&6; }
d9898ee8 5697fi
5698
8d138742
CE
5699 if test "x$ac_ct_STRIP" = x; then
5700 STRIP=":"
dd184caf 5701 else
5702 case $cross_compiling:$ac_tool_warned in
5703yes:)
b0322a85 5704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 5705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 5706ac_tool_warned=yes ;;
5707esac
8d138742 5708 STRIP=$ac_ct_STRIP
dd184caf 5709 fi
8d138742
CE
5710else
5711 STRIP="$ac_cv_prog_STRIP"
dd184caf 5712fi
d9898ee8 5713
8d138742 5714test -z "$STRIP" && STRIP=:
d9898ee8 5715
d9898ee8 5716
d9898ee8 5717
dd184caf 5718
d9898ee8 5719
d9898ee8 5720
8d138742
CE
5721if test -n "$ac_tool_prefix"; then
5722 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5723set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b0322a85 5724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5725$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5726if ${ac_cv_prog_RANLIB+:} false; then :
8d138742 5727 $as_echo_n "(cached) " >&6
d9898ee8 5728else
8d138742
CE
5729 if test -n "$RANLIB"; then
5730 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
d9898ee8 5731else
8d138742
CE
5732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733for as_dir in $PATH
5734do
5735 IFS=$as_save_IFS
5736 test -z "$as_dir" && as_dir=.
b0322a85
CE
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5739 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
b0322a85 5740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5741 break 2
5742 fi
5743done
b0322a85 5744 done
8d138742 5745IFS=$as_save_IFS
dd184caf 5746
8d138742
CE
5747fi
5748fi
5749RANLIB=$ac_cv_prog_RANLIB
5750if test -n "$RANLIB"; then
b0322a85 5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8d138742 5752$as_echo "$RANLIB" >&6; }
d9898ee8 5753else
b0322a85 5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
5755$as_echo "no" >&6; }
5756fi
d9898ee8 5757
dd184caf 5758
d9898ee8 5759fi
8d138742
CE
5760if test -z "$ac_cv_prog_RANLIB"; then
5761 ac_ct_RANLIB=$RANLIB
5762 # Extract the first word of "ranlib", so it can be a program name with args.
5763set dummy ranlib; ac_word=$2
b0322a85 5764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5765$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5766if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8d138742
CE
5767 $as_echo_n "(cached) " >&6
5768else
5769 if test -n "$ac_ct_RANLIB"; then
5770 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5771else
5772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773for as_dir in $PATH
5774do
5775 IFS=$as_save_IFS
5776 test -z "$as_dir" && as_dir=.
b0322a85
CE
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5779 ac_cv_prog_ac_ct_RANLIB="ranlib"
b0322a85 5780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5781 break 2
5782 fi
5783done
b0322a85 5784 done
8d138742 5785IFS=$as_save_IFS
dd184caf 5786
dd184caf 5787fi
8d138742
CE
5788fi
5789ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5790if test -n "$ac_ct_RANLIB"; then
b0322a85 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8d138742
CE
5792$as_echo "$ac_ct_RANLIB" >&6; }
5793else
b0322a85 5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5795$as_echo "no" >&6; }
d9898ee8 5796fi
5797
8d138742
CE
5798 if test "x$ac_ct_RANLIB" = x; then
5799 RANLIB=":"
dd184caf 5800 else
8d138742
CE
5801 case $cross_compiling:$ac_tool_warned in
5802yes:)
b0322a85 5803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5805ac_tool_warned=yes ;;
5806esac
5807 RANLIB=$ac_ct_RANLIB
dd184caf 5808 fi
5809else
8d138742 5810 RANLIB="$ac_cv_prog_RANLIB"
dd184caf 5811fi
d9898ee8 5812
8d138742 5813test -z "$RANLIB" && RANLIB=:
d9898ee8 5814
d9898ee8 5815
d9898ee8 5816
d9898ee8 5817
d9898ee8 5818
d9898ee8 5819
8d138742
CE
5820# Determine commands to create old-style static archives.
5821old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5822old_postinstall_cmds='chmod 644 $oldlib'
5823old_postuninstall_cmds=
5824
5825if test -n "$RANLIB"; then
5826 case $host_os in
5827 openbsd*)
b0322a85 5828 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8d138742
CE
5829 ;;
5830 *)
b0322a85 5831 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8d138742
CE
5832 ;;
5833 esac
b0322a85 5834 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
d9898ee8 5835fi
5836
b0322a85
CE
5837case $host_os in
5838 darwin*)
5839 lock_old_archive_extraction=yes ;;
5840 *)
5841 lock_old_archive_extraction=no ;;
5842esac
5843
5844
5845
5846
5847
5848
d9898ee8 5849
5850
5851
dd184caf 5852
d9898ee8 5853
d9898ee8 5854
dd184caf 5855
d9898ee8 5856
d9898ee8 5857
d9898ee8 5858
d9898ee8 5859
dd184caf 5860
d9898ee8 5861
d9898ee8 5862
dd184caf 5863
d9898ee8 5864
d9898ee8 5865
d9898ee8 5866
d9898ee8 5867
5868
d9898ee8 5869
d9898ee8 5870
dd184caf 5871
d9898ee8 5872
d9898ee8 5873
dd184caf 5874
d9898ee8 5875
d9898ee8 5876
5877
d9898ee8 5878
d9898ee8 5879
d9898ee8 5880
d9898ee8 5881
8d138742
CE
5882# If no C compiler was specified, use CC.
5883LTCC=${LTCC-"$CC"}
d9898ee8 5884
8d138742
CE
5885# If no C compiler flags were specified, use CFLAGS.
5886LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 5887
8d138742
CE
5888# Allow CC to be a program name with arguments.
5889compiler=$CC
d9898ee8 5890
ac40fd9e 5891
d9898ee8 5892# Check for command to grab the raw symbol name followed by C symbol from nm.
b0322a85 5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8d138742 5894$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
b0322a85 5895if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8d138742 5896 $as_echo_n "(cached) " >&6
d9898ee8 5897else
5898
5899# These are sane defaults that work on at least a few old systems.
5900# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5901
5902# Character class describing NM global symbol codes.
5903symcode='[BCDEGRST]'
5904
5905# Regexp to match symbols that can be accessed directly from C.
5906sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5907
d9898ee8 5908# Define system-specific variables.
5909case $host_os in
5910aix*)
5911 symcode='[BCDT]'
5912 ;;
8d138742 5913cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 5914 symcode='[ABCDGISTW]'
5915 ;;
8d138742 5916hpux*)
d9898ee8 5917 if test "$host_cpu" = ia64; then
5918 symcode='[ABCDEGRST]'
5919 fi
d9898ee8 5920 ;;
5921irix* | nonstopux*)
5922 symcode='[BCDEGRST]'
5923 ;;
5924osf*)
5925 symcode='[BCDEGQRST]'
5926 ;;
5927solaris*)
5928 symcode='[BDRT]'
5929 ;;
5930sco3.2v5*)
5931 symcode='[DT]'
5932 ;;
5933sysv4.2uw2*)
5934 symcode='[DT]'
5935 ;;
5936sysv5* | sco5v6* | unixware* | OpenUNIX*)
5937 symcode='[ABDT]'
5938 ;;
5939sysv4)
5940 symcode='[DFNSTU]'
5941 ;;
5942esac
5943
8d138742
CE
5944# If we're using GNU nm, then use its standard symbol codes.
5945case `$NM -V 2>&1` in
5946*GNU* | *'with BFD'*)
5947 symcode='[ABCDGIRSTW]' ;;
5948esac
5949
5950# Transform an extracted symbol line into a proper C declaration.
5951# Some systems (esp. on ia64) link data and code symbols differently,
5952# so use this general approach.
5953lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5954
5955# Transform an extracted symbol line into symbol name and symbol address
b0322a85
CE
5956lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5957lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8d138742 5958
d9898ee8 5959# Handle CRLF in mingw tool chain
5960opt_cr=
5961case $build_os in
5962mingw*)
8d138742 5963 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
d9898ee8 5964 ;;
5965esac
5966
8d138742 5967# Try without a prefix underscore, then with it.
d9898ee8 5968for ac_symprfx in "" "_"; do
5969
5970 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5971 symxfrm="\\1 $ac_symprfx\\2 \\2"
5972
5973 # Write the raw and C identifiers.
8d138742
CE
5974 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5975 # Fake it for dumpbin and say T for any non-static function
5976 # and D for any global variable.
5977 # Also find C++ and __fastcall symbols from MSVC++,
5978 # which start with @ or ?.
5979 lt_cv_sys_global_symbol_pipe="$AWK '"\
5980" {last_section=section; section=\$ 3};"\
b0322a85 5981" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8d138742
CE
5982" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5983" \$ 0!~/External *\|/{next};"\
5984" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5985" {if(hide[section]) next};"\
5986" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5987" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5988" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5989" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5990" ' prfx=^$ac_symprfx"
5991 else
5992 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5993 fi
b0322a85 5994 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
d9898ee8 5995
5996 # Check to see that the pipe works correctly.
5997 pipe_works=no
5998
5999 rm -f conftest*
8d138742 6000 cat > conftest.$ac_ext <<_LT_EOF
d9898ee8 6001#ifdef __cplusplus
6002extern "C" {
6003#endif
6004char nm_test_var;
8d138742
CE
6005void nm_test_func(void);
6006void nm_test_func(void){}
d9898ee8 6007#ifdef __cplusplus
6008}
6009#endif
6010int main(){nm_test_var='a';nm_test_func();return(0);}
8d138742 6011_LT_EOF
d9898ee8 6012
b0322a85 6013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d9898ee8 6014 (eval $ac_compile) 2>&5
6015 ac_status=$?
b0322a85
CE
6016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6017 test $ac_status = 0; }; then
d9898ee8 6018 # Now try to grab the symbols.
6019 nlist=conftest.nm
b0322a85
CE
6020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6021 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
d9898ee8 6022 ac_status=$?
b0322a85
CE
6023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6024 test $ac_status = 0; } && test -s "$nlist"; then
d9898ee8 6025 # Try sorting and uniquifying the output.
6026 if sort "$nlist" | uniq > "$nlist"T; then
6027 mv -f "$nlist"T "$nlist"
6028 else
6029 rm -f "$nlist"T
6030 fi
6031
6032 # Make sure that we snagged all the symbols we need.
8d138742
CE
6033 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6034 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6035 cat <<_LT_EOF > conftest.$ac_ext
b0322a85
CE
6036/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6037#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6038/* DATA imports from DLLs on WIN32 con't be const, because runtime
6039 relocations are performed -- see ld's documentation on pseudo-relocs. */
6040# define LT_DLSYM_CONST
6041#elif defined(__osf__)
6042/* This system does not cope well with relocations in const data. */
6043# define LT_DLSYM_CONST
6044#else
6045# define LT_DLSYM_CONST const
6046#endif
6047
d9898ee8 6048#ifdef __cplusplus
6049extern "C" {
6050#endif
6051
8d138742 6052_LT_EOF
d9898ee8 6053 # Now generate the symbol file.
8d138742 6054 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d9898ee8 6055
8d138742 6056 cat <<_LT_EOF >> conftest.$ac_ext
d9898ee8 6057
8d138742 6058/* The mapping between symbol names and symbols. */
b0322a85 6059LT_DLSYM_CONST struct {
d9898ee8 6060 const char *name;
8d138742 6061 void *address;
d9898ee8 6062}
8d138742 6063lt__PROGRAM__LTX_preloaded_symbols[] =
d9898ee8 6064{
8d138742
CE
6065 { "@PROGRAM@", (void *) 0 },
6066_LT_EOF
6067 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6068 cat <<\_LT_EOF >> conftest.$ac_ext
6069 {0, (void *) 0}
d9898ee8 6070};
6071
8d138742
CE
6072/* This works around a problem in FreeBSD linker */
6073#ifdef FREEBSD_WORKAROUND
6074static const void *lt_preloaded_setup() {
6075 return lt__PROGRAM__LTX_preloaded_symbols;
6076}
6077#endif
6078
d9898ee8 6079#ifdef __cplusplus
6080}
6081#endif
8d138742 6082_LT_EOF
d9898ee8 6083 # Now try linking the two files.
6084 mv conftest.$ac_objext conftstm.$ac_objext
b0322a85
CE
6085 lt_globsym_save_LIBS=$LIBS
6086 lt_globsym_save_CFLAGS=$CFLAGS
d9898ee8 6087 LIBS="conftstm.$ac_objext"
6088 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
b0322a85 6089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d9898ee8 6090 (eval $ac_link) 2>&5
6091 ac_status=$?
b0322a85
CE
6092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6093 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
d9898ee8 6094 pipe_works=yes
6095 fi
b0322a85
CE
6096 LIBS=$lt_globsym_save_LIBS
6097 CFLAGS=$lt_globsym_save_CFLAGS
d9898ee8 6098 else
6099 echo "cannot find nm_test_func in $nlist" >&5
6100 fi
6101 else
6102 echo "cannot find nm_test_var in $nlist" >&5
6103 fi
6104 else
6105 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6106 fi
6107 else
6108 echo "$progname: failed program was:" >&5
6109 cat conftest.$ac_ext >&5
6110 fi
8d138742 6111 rm -rf conftest* conftst*
d9898ee8 6112
6113 # Do not use the global_symbol_pipe unless it works.
6114 if test "$pipe_works" = yes; then
6115 break
6116 else
6117 lt_cv_sys_global_symbol_pipe=
6118 fi
6119done
6120
6121fi
6122
6123if test -z "$lt_cv_sys_global_symbol_pipe"; then
6124 lt_cv_sys_global_symbol_to_cdecl=
6125fi
6126if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
b0322a85 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8d138742 6128$as_echo "failed" >&6; }
d9898ee8 6129else
b0322a85 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8d138742 6131$as_echo "ok" >&6; }
d9898ee8 6132fi
6133
b0322a85
CE
6134# Response file support.
6135if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6136 nm_file_list_spec='@'
6137elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6138 nm_file_list_spec='@'
6139fi
6140
6141
6142
d9898ee8 6143
6144
6145
6146
6147
d9898ee8 6148
d9898ee8 6149
d9898ee8 6150
d9898ee8 6151
d9898ee8 6152
d9898ee8 6153
d9898ee8 6154
d9898ee8 6155
d9898ee8 6156
d9898ee8 6157
dd184caf 6158
8d138742 6159
b0322a85
CE
6160
6161
6162
6163
6164
6165
6166
6167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6168$as_echo_n "checking for sysroot... " >&6; }
6169
6170# Check whether --with-sysroot was given.
6171if test "${with_sysroot+set}" = set; then :
6172 withval=$with_sysroot;
6173else
6174 with_sysroot=no
6175fi
6176
6177
6178lt_sysroot=
6179case ${with_sysroot} in #(
6180 yes)
6181 if test "$GCC" = yes; then
6182 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6183 fi
6184 ;; #(
6185 /*)
6186 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6187 ;; #(
6188 no|'')
6189 ;; #(
6190 *)
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6192$as_echo "${with_sysroot}" >&6; }
6193 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6194 ;;
6195esac
6196
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6198$as_echo "${lt_sysroot:-no}" >&6; }
8d138742
CE
6199
6200
6201
6202
6203
6204# Check whether --enable-libtool-lock was given.
b0322a85 6205if test "${enable_libtool_lock+set}" = set; then :
8d138742 6206 enableval=$enable_libtool_lock;
d9898ee8 6207fi
8d138742
CE
6208
6209test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6210
6211# Some flags need to be propagated to the compiler or linker for good
6212# libtool support.
6213case $host in
6214ia64-*-hpux*)
6215 # Find out which ABI we are using.
6216 echo 'int i;' > conftest.$ac_ext
b0322a85 6217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6218 (eval $ac_compile) 2>&5
6219 ac_status=$?
b0322a85
CE
6220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6221 test $ac_status = 0; }; then
8d138742
CE
6222 case `/usr/bin/file conftest.$ac_objext` in
6223 *ELF-32*)
6224 HPUX_IA64_MODE="32"
6225 ;;
6226 *ELF-64*)
6227 HPUX_IA64_MODE="64"
6228 ;;
6229 esac
6230 fi
6231 rm -rf conftest*
6232 ;;
6233*-*-irix6*)
6234 # Find out which ABI we are using.
b0322a85
CE
6235 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6237 (eval $ac_compile) 2>&5
6238 ac_status=$?
b0322a85
CE
6239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6240 test $ac_status = 0; }; then
8d138742
CE
6241 if test "$lt_cv_prog_gnu_ld" = yes; then
6242 case `/usr/bin/file conftest.$ac_objext` in
6243 *32-bit*)
6244 LD="${LD-ld} -melf32bsmip"
6245 ;;
6246 *N32*)
6247 LD="${LD-ld} -melf32bmipn32"
6248 ;;
6249 *64-bit*)
6250 LD="${LD-ld} -melf64bmip"
6251 ;;
6252 esac
6253 else
6254 case `/usr/bin/file conftest.$ac_objext` in
6255 *32-bit*)
6256 LD="${LD-ld} -32"
6257 ;;
6258 *N32*)
6259 LD="${LD-ld} -n32"
6260 ;;
6261 *64-bit*)
6262 LD="${LD-ld} -64"
6263 ;;
6264 esac
6265 fi
6266 fi
6267 rm -rf conftest*
6268 ;;
6269
6270x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6271s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6272 # Find out which ABI we are using.
6273 echo 'int i;' > conftest.$ac_ext
b0322a85 6274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6275 (eval $ac_compile) 2>&5
6276 ac_status=$?
b0322a85
CE
6277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6278 test $ac_status = 0; }; then
8d138742
CE
6279 case `/usr/bin/file conftest.o` in
6280 *32-bit*)
6281 case $host in
6282 x86_64-*kfreebsd*-gnu)
6283 LD="${LD-ld} -m elf_i386_fbsd"
6284 ;;
6285 x86_64-*linux*)
6286 LD="${LD-ld} -m elf_i386"
6287 ;;
6288 ppc64-*linux*|powerpc64-*linux*)
6289 LD="${LD-ld} -m elf32ppclinux"
6290 ;;
6291 s390x-*linux*)
6292 LD="${LD-ld} -m elf_s390"
6293 ;;
6294 sparc64-*linux*)
6295 LD="${LD-ld} -m elf32_sparc"
6296 ;;
6297 esac
6298 ;;
6299 *64-bit*)
6300 case $host in
6301 x86_64-*kfreebsd*-gnu)
6302 LD="${LD-ld} -m elf_x86_64_fbsd"
6303 ;;
6304 x86_64-*linux*)
6305 LD="${LD-ld} -m elf_x86_64"
6306 ;;
6307 ppc*-*linux*|powerpc*-*linux*)
6308 LD="${LD-ld} -m elf64ppc"
6309 ;;
6310 s390*-*linux*|s390*-*tpf*)
6311 LD="${LD-ld} -m elf64_s390"
6312 ;;
6313 sparc*-*linux*)
6314 LD="${LD-ld} -m elf64_sparc"
6315 ;;
6316 esac
6317 ;;
6318 esac
6319 fi
6320 rm -rf conftest*
6321 ;;
6322
6323*-*-sco3.2v5*)
6324 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6325 SAVE_CFLAGS="$CFLAGS"
6326 CFLAGS="$CFLAGS -belf"
b0322a85 6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8d138742 6328$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
b0322a85 6329if ${lt_cv_cc_needs_belf+:} false; then :
8d138742 6330 $as_echo_n "(cached) " >&6
d9898ee8 6331else
8d138742
CE
6332 ac_ext=c
6333ac_cpp='$CPP $CPPFLAGS'
6334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336ac_compiler_gnu=$ac_cv_c_compiler_gnu
6337
b0322a85 6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
6339/* end confdefs.h. */
6340
6341int
6342main ()
6343{
6344
6345 ;
6346 return 0;
6347}
6348_ACEOF
b0322a85 6349if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
6350 lt_cv_cc_needs_belf=yes
6351else
b0322a85 6352 lt_cv_cc_needs_belf=no
8d138742 6353fi
b0322a85
CE
6354rm -f core conftest.err conftest.$ac_objext \
6355 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
6356 ac_ext=c
6357ac_cpp='$CPP $CPPFLAGS'
6358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6360ac_compiler_gnu=$ac_cv_c_compiler_gnu
6361
6362fi
b0322a85 6363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8d138742
CE
6364$as_echo "$lt_cv_cc_needs_belf" >&6; }
6365 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6366 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6367 CFLAGS="$SAVE_CFLAGS"
6368 fi
6369 ;;
b0322a85 6370*-*solaris*)
8d138742
CE
6371 # Find out which ABI we are using.
6372 echo 'int i;' > conftest.$ac_ext
b0322a85 6373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6374 (eval $ac_compile) 2>&5
6375 ac_status=$?
b0322a85
CE
6376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6377 test $ac_status = 0; }; then
8d138742
CE
6378 case `/usr/bin/file conftest.o` in
6379 *64-bit*)
6380 case $lt_cv_prog_gnu_ld in
b0322a85
CE
6381 yes*)
6382 case $host in
6383 i?86-*-solaris*)
6384 LD="${LD-ld} -m elf_x86_64"
6385 ;;
6386 sparc*-*-solaris*)
6387 LD="${LD-ld} -m elf64_sparc"
6388 ;;
6389 esac
6390 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6391 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6392 LD="${LD-ld}_sol2"
6393 fi
6394 ;;
8d138742
CE
6395 *)
6396 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6397 LD="${LD-ld} -64"
6398 fi
6399 ;;
6400 esac
6401 ;;
6402 esac
6403 fi
6404 rm -rf conftest*
6405 ;;
6406esac
6407
6408need_locks="$enable_libtool_lock"
6409
b0322a85
CE
6410if test -n "$ac_tool_prefix"; then
6411 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6412set dummy ${ac_tool_prefix}mt; ac_word=$2
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414$as_echo_n "checking for $ac_word... " >&6; }
6415if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6416 $as_echo_n "(cached) " >&6
6417else
6418 if test -n "$MANIFEST_TOOL"; then
6419 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6420else
6421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422for as_dir in $PATH
6423do
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 break 2
6431 fi
6432done
6433 done
6434IFS=$as_save_IFS
6435
6436fi
6437fi
6438MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6439if test -n "$MANIFEST_TOOL"; then
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6441$as_echo "$MANIFEST_TOOL" >&6; }
6442else
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444$as_echo "no" >&6; }
6445fi
6446
6447
6448fi
6449if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6450 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6451 # Extract the first word of "mt", so it can be a program name with args.
6452set dummy mt; ac_word=$2
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454$as_echo_n "checking for $ac_word... " >&6; }
6455if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6456 $as_echo_n "(cached) " >&6
6457else
6458 if test -n "$ac_ct_MANIFEST_TOOL"; then
6459 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6460else
6461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462for as_dir in $PATH
6463do
6464 IFS=$as_save_IFS
6465 test -z "$as_dir" && as_dir=.
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6468 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 break 2
6471 fi
6472done
6473 done
6474IFS=$as_save_IFS
6475
6476fi
6477fi
6478ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6479if test -n "$ac_ct_MANIFEST_TOOL"; then
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6481$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6482else
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484$as_echo "no" >&6; }
6485fi
6486
6487 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6488 MANIFEST_TOOL=":"
6489 else
6490 case $cross_compiling:$ac_tool_warned in
6491yes:)
6492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6494ac_tool_warned=yes ;;
6495esac
6496 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6497 fi
6498else
6499 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6500fi
6501
6502test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6504$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6505if ${lt_cv_path_mainfest_tool+:} false; then :
6506 $as_echo_n "(cached) " >&6
6507else
6508 lt_cv_path_mainfest_tool=no
6509 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6510 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6511 cat conftest.err >&5
6512 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6513 lt_cv_path_mainfest_tool=yes
6514 fi
6515 rm -f conftest*
6516fi
6517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6518$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6519if test "x$lt_cv_path_mainfest_tool" != xyes; then
6520 MANIFEST_TOOL=:
6521fi
6522
6523
6524
6525
6526
8d138742
CE
6527
6528 case $host_os in
6529 rhapsody* | darwin*)
6530 if test -n "$ac_tool_prefix"; then
6531 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6532set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
b0322a85 6533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6534$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6535if ${ac_cv_prog_DSYMUTIL+:} false; then :
8d138742
CE
6536 $as_echo_n "(cached) " >&6
6537else
6538 if test -n "$DSYMUTIL"; then
6539 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
d9898ee8 6540else
6541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542for as_dir in $PATH
6543do
6544 IFS=$as_save_IFS
6545 test -z "$as_dir" && as_dir=.
b0322a85
CE
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6548 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
b0322a85 6549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6550 break 2
6551 fi
6552done
b0322a85 6553 done
dd184caf 6554IFS=$as_save_IFS
d9898ee8 6555
d9898ee8 6556fi
6557fi
8d138742
CE
6558DSYMUTIL=$ac_cv_prog_DSYMUTIL
6559if test -n "$DSYMUTIL"; then
b0322a85 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8d138742 6561$as_echo "$DSYMUTIL" >&6; }
d9898ee8 6562else
b0322a85 6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6564$as_echo "no" >&6; }
d9898ee8 6565fi
6566
8d138742
CE
6567
6568fi
6569if test -z "$ac_cv_prog_DSYMUTIL"; then
6570 ac_ct_DSYMUTIL=$DSYMUTIL
6571 # Extract the first word of "dsymutil", so it can be a program name with args.
6572set dummy dsymutil; ac_word=$2
b0322a85 6573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6574$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6575if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8d138742
CE
6576 $as_echo_n "(cached) " >&6
6577else
6578 if test -n "$ac_ct_DSYMUTIL"; then
6579 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6580else
6581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582for as_dir in $PATH
6583do
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
b0322a85
CE
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6588 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
b0322a85 6589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6590 break 2
6591 fi
6592done
b0322a85 6593 done
8d138742
CE
6594IFS=$as_save_IFS
6595
6596fi
6597fi
6598ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6599if test -n "$ac_ct_DSYMUTIL"; then
b0322a85 6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8d138742
CE
6601$as_echo "$ac_ct_DSYMUTIL" >&6; }
6602else
b0322a85 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6604$as_echo "no" >&6; }
6605fi
6606
6607 if test "x$ac_ct_DSYMUTIL" = x; then
6608 DSYMUTIL=":"
dd184caf 6609 else
6610 case $cross_compiling:$ac_tool_warned in
6611yes:)
b0322a85 6612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 6613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6614ac_tool_warned=yes ;;
6615esac
8d138742 6616 DSYMUTIL=$ac_ct_DSYMUTIL
dd184caf 6617 fi
d9898ee8 6618else
8d138742 6619 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d9898ee8 6620fi
6621
8d138742
CE
6622 if test -n "$ac_tool_prefix"; then
6623 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6624set dummy ${ac_tool_prefix}nmedit; ac_word=$2
b0322a85 6625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6626$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6627if ${ac_cv_prog_NMEDIT+:} false; then :
8d138742 6628 $as_echo_n "(cached) " >&6
d9898ee8 6629else
8d138742
CE
6630 if test -n "$NMEDIT"; then
6631 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
d9898ee8 6632else
6633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634for as_dir in $PATH
6635do
6636 IFS=$as_save_IFS
6637 test -z "$as_dir" && as_dir=.
b0322a85
CE
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6640 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
b0322a85 6641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6642 break 2
6643 fi
6644done
b0322a85 6645 done
dd184caf 6646IFS=$as_save_IFS
d9898ee8 6647
6648fi
6649fi
8d138742
CE
6650NMEDIT=$ac_cv_prog_NMEDIT
6651if test -n "$NMEDIT"; then
b0322a85 6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8d138742 6653$as_echo "$NMEDIT" >&6; }
d9898ee8 6654else
b0322a85 6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6656$as_echo "no" >&6; }
d9898ee8 6657fi
6658
dd184caf 6659
d9898ee8 6660fi
8d138742
CE
6661if test -z "$ac_cv_prog_NMEDIT"; then
6662 ac_ct_NMEDIT=$NMEDIT
6663 # Extract the first word of "nmedit", so it can be a program name with args.
6664set dummy nmedit; ac_word=$2
b0322a85 6665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6666$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6667if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8d138742 6668 $as_echo_n "(cached) " >&6
d9898ee8 6669else
8d138742
CE
6670 if test -n "$ac_ct_NMEDIT"; then
6671 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
d9898ee8 6672else
6673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674for as_dir in $PATH
6675do
6676 IFS=$as_save_IFS
6677 test -z "$as_dir" && as_dir=.
b0322a85
CE
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6680 ac_cv_prog_ac_ct_NMEDIT="nmedit"
b0322a85 6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6682 break 2
6683 fi
6684done
b0322a85 6685 done
dd184caf 6686IFS=$as_save_IFS
d9898ee8 6687
d9898ee8 6688fi
6689fi
8d138742
CE
6690ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6691if test -n "$ac_ct_NMEDIT"; then
b0322a85 6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8d138742 6693$as_echo "$ac_ct_NMEDIT" >&6; }
d9898ee8 6694else
b0322a85 6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6696$as_echo "no" >&6; }
d9898ee8 6697fi
6698
8d138742
CE
6699 if test "x$ac_ct_NMEDIT" = x; then
6700 NMEDIT=":"
dd184caf 6701 else
6702 case $cross_compiling:$ac_tool_warned in
6703yes:)
b0322a85 6704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 6705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6706ac_tool_warned=yes ;;
6707esac
8d138742 6708 NMEDIT=$ac_ct_NMEDIT
dd184caf 6709 fi
d9898ee8 6710else
8d138742 6711 NMEDIT="$ac_cv_prog_NMEDIT"
d9898ee8 6712fi
6713
8d138742
CE
6714 if test -n "$ac_tool_prefix"; then
6715 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6716set dummy ${ac_tool_prefix}lipo; ac_word=$2
b0322a85 6717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6718$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6719if ${ac_cv_prog_LIPO+:} false; then :
8d138742 6720 $as_echo_n "(cached) " >&6
d9898ee8 6721else
8d138742
CE
6722 if test -n "$LIPO"; then
6723 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
d9898ee8 6724else
6725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726for as_dir in $PATH
6727do
6728 IFS=$as_save_IFS
6729 test -z "$as_dir" && as_dir=.
b0322a85
CE
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6732 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
b0322a85 6733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6734 break 2
6735 fi
6736done
b0322a85 6737 done
dd184caf 6738IFS=$as_save_IFS
d9898ee8 6739
6740fi
6741fi
8d138742
CE
6742LIPO=$ac_cv_prog_LIPO
6743if test -n "$LIPO"; then
b0322a85 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8d138742 6745$as_echo "$LIPO" >&6; }
d9898ee8 6746else
b0322a85 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6748$as_echo "no" >&6; }
d9898ee8 6749fi
6750
dd184caf 6751
d9898ee8 6752fi
8d138742
CE
6753if test -z "$ac_cv_prog_LIPO"; then
6754 ac_ct_LIPO=$LIPO
6755 # Extract the first word of "lipo", so it can be a program name with args.
6756set dummy lipo; ac_word=$2
b0322a85 6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6758$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6759if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8d138742 6760 $as_echo_n "(cached) " >&6
d9898ee8 6761else
8d138742
CE
6762 if test -n "$ac_ct_LIPO"; then
6763 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
d9898ee8 6764else
6765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766for as_dir in $PATH
6767do
6768 IFS=$as_save_IFS
6769 test -z "$as_dir" && as_dir=.
b0322a85
CE
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6772 ac_cv_prog_ac_ct_LIPO="lipo"
b0322a85 6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6774 break 2
6775 fi
6776done
b0322a85 6777 done
dd184caf 6778IFS=$as_save_IFS
d9898ee8 6779
d9898ee8 6780fi
6781fi
8d138742
CE
6782ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6783if test -n "$ac_ct_LIPO"; then
b0322a85 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8d138742 6785$as_echo "$ac_ct_LIPO" >&6; }
d9898ee8 6786else
b0322a85 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6788$as_echo "no" >&6; }
d9898ee8 6789fi
6790
8d138742
CE
6791 if test "x$ac_ct_LIPO" = x; then
6792 LIPO=":"
dd184caf 6793 else
6794 case $cross_compiling:$ac_tool_warned in
6795yes:)
b0322a85 6796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 6797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6798ac_tool_warned=yes ;;
6799esac
8d138742 6800 LIPO=$ac_ct_LIPO
dd184caf 6801 fi
d9898ee8 6802else
8d138742 6803 LIPO="$ac_cv_prog_LIPO"
d9898ee8 6804fi
6805
8d138742
CE
6806 if test -n "$ac_tool_prefix"; then
6807 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6808set dummy ${ac_tool_prefix}otool; ac_word=$2
b0322a85 6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6810$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6811if ${ac_cv_prog_OTOOL+:} false; then :
8d138742
CE
6812 $as_echo_n "(cached) " >&6
6813else
6814 if test -n "$OTOOL"; then
6815 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6816else
6817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818for as_dir in $PATH
6819do
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
b0322a85
CE
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6824 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
b0322a85 6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6826 break 2
6827 fi
6828done
b0322a85 6829 done
8d138742 6830IFS=$as_save_IFS
d9898ee8 6831
8d138742
CE
6832fi
6833fi
6834OTOOL=$ac_cv_prog_OTOOL
6835if test -n "$OTOOL"; then
b0322a85 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8d138742
CE
6837$as_echo "$OTOOL" >&6; }
6838else
b0322a85 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6840$as_echo "no" >&6; }
6841fi
d9898ee8 6842
d9898ee8 6843
d9898ee8 6844fi
8d138742
CE
6845if test -z "$ac_cv_prog_OTOOL"; then
6846 ac_ct_OTOOL=$OTOOL
6847 # Extract the first word of "otool", so it can be a program name with args.
6848set dummy otool; ac_word=$2
b0322a85 6849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6850$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6851if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8d138742
CE
6852 $as_echo_n "(cached) " >&6
6853else
6854 if test -n "$ac_ct_OTOOL"; then
6855 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6856else
6857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858for as_dir in $PATH
6859do
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
b0322a85
CE
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6864 ac_cv_prog_ac_ct_OTOOL="otool"
b0322a85 6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6866 break 2
6867 fi
d9898ee8 6868done
b0322a85 6869 done
8d138742 6870IFS=$as_save_IFS
d9898ee8 6871
8d138742
CE
6872fi
6873fi
6874ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6875if test -n "$ac_ct_OTOOL"; then
b0322a85 6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8d138742 6877$as_echo "$ac_ct_OTOOL" >&6; }
d9898ee8 6878else
b0322a85 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6880$as_echo "no" >&6; }
6881fi
d9898ee8 6882
8d138742
CE
6883 if test "x$ac_ct_OTOOL" = x; then
6884 OTOOL=":"
6885 else
6886 case $cross_compiling:$ac_tool_warned in
6887yes:)
b0322a85 6888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
6889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6890ac_tool_warned=yes ;;
d9898ee8 6891esac
8d138742
CE
6892 OTOOL=$ac_ct_OTOOL
6893 fi
6894else
6895 OTOOL="$ac_cv_prog_OTOOL"
d9898ee8 6896fi
6897
8d138742
CE
6898 if test -n "$ac_tool_prefix"; then
6899 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6900set dummy ${ac_tool_prefix}otool64; ac_word=$2
b0322a85 6901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6902$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6903if ${ac_cv_prog_OTOOL64+:} false; then :
8d138742 6904 $as_echo_n "(cached) " >&6
d9898ee8 6905else
8d138742
CE
6906 if test -n "$OTOOL64"; then
6907 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6908else
6909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910for as_dir in $PATH
6911do
6912 IFS=$as_save_IFS
6913 test -z "$as_dir" && as_dir=.
b0322a85
CE
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6916 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
b0322a85 6917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6918 break 2
6919 fi
6920done
b0322a85 6921 done
8d138742 6922IFS=$as_save_IFS
d9898ee8 6923
8d138742
CE
6924fi
6925fi
6926OTOOL64=$ac_cv_prog_OTOOL64
6927if test -n "$OTOOL64"; then
b0322a85 6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8d138742 6929$as_echo "$OTOOL64" >&6; }
d9898ee8 6930else
b0322a85 6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6932$as_echo "no" >&6; }
6933fi
d9898ee8 6934
d9898ee8 6935
d9898ee8 6936fi
8d138742
CE
6937if test -z "$ac_cv_prog_OTOOL64"; then
6938 ac_ct_OTOOL64=$OTOOL64
6939 # Extract the first word of "otool64", so it can be a program name with args.
6940set dummy otool64; ac_word=$2
b0322a85 6941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6942$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6943if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8d138742
CE
6944 $as_echo_n "(cached) " >&6
6945else
6946 if test -n "$ac_ct_OTOOL64"; then
6947 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6948else
6949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950for as_dir in $PATH
6951do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
b0322a85
CE
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6956 ac_cv_prog_ac_ct_OTOOL64="otool64"
b0322a85 6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6958 break 2
6959 fi
6960done
b0322a85 6961 done
8d138742 6962IFS=$as_save_IFS
d9898ee8 6963
8d138742
CE
6964fi
6965fi
6966ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6967if test -n "$ac_ct_OTOOL64"; then
b0322a85 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8d138742 6969$as_echo "$ac_ct_OTOOL64" >&6; }
d9898ee8 6970else
b0322a85 6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6972$as_echo "no" >&6; }
d9898ee8 6973fi
6974
8d138742
CE
6975 if test "x$ac_ct_OTOOL64" = x; then
6976 OTOOL64=":"
d9898ee8 6977 else
8d138742
CE
6978 case $cross_compiling:$ac_tool_warned in
6979yes:)
b0322a85 6980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
6981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6982ac_tool_warned=yes ;;
6983esac
6984 OTOOL64=$ac_ct_OTOOL64
d9898ee8 6985 fi
8d138742
CE
6986else
6987 OTOOL64="$ac_cv_prog_OTOOL64"
d9898ee8 6988fi
6989
d9898ee8 6990
d9898ee8 6991
d9898ee8 6992
d9898ee8 6993
6994
dd184caf 6995
d9898ee8 6996
d9898ee8 6997
6998
d9898ee8 6999
d9898ee8 7000
d9898ee8 7001
d9898ee8 7002
7003
d9898ee8 7004
d9898ee8 7005
d9898ee8 7006
7007
d9898ee8 7008
d9898ee8 7009
7010
7011
d9898ee8 7012
d9898ee8 7013
7014
8d138742 7015
b0322a85 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8d138742 7017$as_echo_n "checking for -single_module linker flag... " >&6; }
b0322a85 7018if ${lt_cv_apple_cc_single_mod+:} false; then :
8d138742 7019 $as_echo_n "(cached) " >&6
d9898ee8 7020else
8d138742
CE
7021 lt_cv_apple_cc_single_mod=no
7022 if test -z "${LT_MULTI_MODULE}"; then
7023 # By default we will add the -single_module flag. You can override
7024 # by either setting the environment variable LT_MULTI_MODULE
7025 # non-empty at configure time, or by adding -multi_module to the
7026 # link flags.
7027 rm -rf libconftest.dylib*
7028 echo "int foo(void){return 1;}" > conftest.c
7029 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7030-dynamiclib -Wl,-single_module conftest.c" >&5
7031 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7032 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7033 _lt_result=$?
b0322a85
CE
7034 # If there is a non-empty error log, and "single_module"
7035 # appears in it, assume the flag caused a linker warning
7036 if test -s conftest.err && $GREP single_module conftest.err; then
7037 cat conftest.err >&5
7038 # Otherwise, if the output was created with a 0 exit code from
7039 # the compiler, it worked.
7040 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8d138742
CE
7041 lt_cv_apple_cc_single_mod=yes
7042 else
7043 cat conftest.err >&5
7044 fi
7045 rm -rf libconftest.dylib*
7046 rm -f conftest.*
7047 fi
d9898ee8 7048fi
b0322a85 7049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8d138742 7050$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
b0322a85
CE
7051
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8d138742 7053$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
b0322a85 7054if ${lt_cv_ld_exported_symbols_list+:} false; then :
8d138742
CE
7055 $as_echo_n "(cached) " >&6
7056else
7057 lt_cv_ld_exported_symbols_list=no
7058 save_LDFLAGS=$LDFLAGS
7059 echo "_main" > conftest.sym
7060 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
b0322a85 7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 7062/* end confdefs.h. */
d9898ee8 7063
8d138742
CE
7064int
7065main ()
7066{
7067
7068 ;
7069 return 0;
7070}
7071_ACEOF
b0322a85 7072if ac_fn_c_try_link "$LINENO"; then :
8d138742 7073 lt_cv_ld_exported_symbols_list=yes
d9898ee8 7074else
b0322a85 7075 lt_cv_ld_exported_symbols_list=no
d9898ee8 7076fi
b0322a85
CE
7077rm -f core conftest.err conftest.$ac_objext \
7078 conftest$ac_exeext conftest.$ac_ext
8d138742 7079 LDFLAGS="$save_LDFLAGS"
d9898ee8 7080
8d138742 7081fi
b0322a85 7082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8d138742 7083$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
b0322a85
CE
7084
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7086$as_echo_n "checking for -force_load linker flag... " >&6; }
7087if ${lt_cv_ld_force_load+:} false; then :
7088 $as_echo_n "(cached) " >&6
7089else
7090 lt_cv_ld_force_load=no
7091 cat > conftest.c << _LT_EOF
7092int forced_loaded() { return 2;}
7093_LT_EOF
7094 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7095 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7096 echo "$AR cru libconftest.a conftest.o" >&5
7097 $AR cru libconftest.a conftest.o 2>&5
7098 echo "$RANLIB libconftest.a" >&5
7099 $RANLIB libconftest.a 2>&5
7100 cat > conftest.c << _LT_EOF
7101int main() { return 0;}
7102_LT_EOF
7103 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7104 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7105 _lt_result=$?
7106 if test -s conftest.err && $GREP force_load conftest.err; then
7107 cat conftest.err >&5
7108 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7109 lt_cv_ld_force_load=yes
7110 else
7111 cat conftest.err >&5
7112 fi
7113 rm -f conftest.err libconftest.a conftest conftest.c
7114 rm -rf conftest.dSYM
7115
7116fi
7117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7118$as_echo "$lt_cv_ld_force_load" >&6; }
d9898ee8 7119 case $host_os in
8d138742
CE
7120 rhapsody* | darwin1.[012])
7121 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7122 darwin1.*)
7123 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7124 darwin*) # darwin 5.x on
7125 # if running on 10.5 or later, the deployment target defaults
7126 # to the OS version, if on x86, and 10.4, the deployment
7127 # target defaults to 10.4. Don't you love it?
7128 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7129 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7130 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7131 10.[012]*)
7132 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7133 10.*)
7134 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7135 esac
7136 ;;
7137 esac
7138 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7139 _lt_dar_single_mod='$single_module'
7140 fi
7141 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7142 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7143 else
7144 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7145 fi
b0322a85 7146 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8d138742
CE
7147 _lt_dsymutil='~$DSYMUTIL $lib || :'
7148 else
7149 _lt_dsymutil=
7150 fi
7151 ;;
7152 esac
d9898ee8 7153
8d138742
CE
7154ac_ext=c
7155ac_cpp='$CPP $CPPFLAGS'
7156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7158ac_compiler_gnu=$ac_cv_c_compiler_gnu
b0322a85 7159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8d138742
CE
7160$as_echo_n "checking how to run the C preprocessor... " >&6; }
7161# On Suns, sometimes $CPP names a directory.
7162if test -n "$CPP" && test -d "$CPP"; then
7163 CPP=
7164fi
7165if test -z "$CPP"; then
b0322a85 7166 if ${ac_cv_prog_CPP+:} false; then :
8d138742
CE
7167 $as_echo_n "(cached) " >&6
7168else
7169 # Double quotes because CPP needs to be expanded
7170 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7171 do
7172 ac_preproc_ok=false
7173for ac_c_preproc_warn_flag in '' yes
7174do
7175 # Use a header file that comes with gcc, so configuring glibc
7176 # with a fresh cross-compiler works.
7177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7178 # <limits.h> exists even on freestanding compilers.
7179 # On the NeXT, cc -E runs the code through the compiler's parser,
7180 # not just through cpp. "Syntax error" is here to catch this case.
b0322a85 7181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7182/* end confdefs.h. */
7183#ifdef __STDC__
7184# include <limits.h>
7185#else
7186# include <assert.h>
7187#endif
7188 Syntax error
7189_ACEOF
b0322a85 7190if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 7191
b0322a85 7192else
8d138742
CE
7193 # Broken: fails on valid input.
7194continue
7195fi
b0322a85 7196rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7197
8d138742
CE
7198 # OK, works on sane cases. Now check whether nonexistent headers
7199 # can be detected and how.
b0322a85 7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7201/* end confdefs.h. */
7202#include <ac_nonexistent.h>
7203_ACEOF
b0322a85 7204if ac_fn_c_try_cpp "$LINENO"; then :
8d138742
CE
7205 # Broken: success on invalid input.
7206continue
7207else
8d138742
CE
7208 # Passes both tests.
7209ac_preproc_ok=:
7210break
7211fi
b0322a85 7212rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7213
8d138742
CE
7214done
7215# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b0322a85
CE
7216rm -f conftest.i conftest.err conftest.$ac_ext
7217if $ac_preproc_ok; then :
8d138742
CE
7218 break
7219fi
d9898ee8 7220
8d138742
CE
7221 done
7222 ac_cv_prog_CPP=$CPP
d9898ee8 7223
8d138742
CE
7224fi
7225 CPP=$ac_cv_prog_CPP
7226else
7227 ac_cv_prog_CPP=$CPP
7228fi
b0322a85 7229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8d138742
CE
7230$as_echo "$CPP" >&6; }
7231ac_preproc_ok=false
7232for ac_c_preproc_warn_flag in '' yes
7233do
7234 # Use a header file that comes with gcc, so configuring glibc
7235 # with a fresh cross-compiler works.
7236 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7237 # <limits.h> exists even on freestanding compilers.
7238 # On the NeXT, cc -E runs the code through the compiler's parser,
b0322a85
CE
7239 # not just through cpp. "Syntax error" is here to catch this case.
7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241/* end confdefs.h. */
7242#ifdef __STDC__
7243# include <limits.h>
7244#else
7245# include <assert.h>
7246#endif
7247 Syntax error
7248_ACEOF
7249if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 7250
b0322a85 7251else
8d138742
CE
7252 # Broken: fails on valid input.
7253continue
7254fi
b0322a85 7255rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7256
8d138742
CE
7257 # OK, works on sane cases. Now check whether nonexistent headers
7258 # can be detected and how.
b0322a85 7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7260/* end confdefs.h. */
7261#include <ac_nonexistent.h>
7262_ACEOF
b0322a85 7263if ac_fn_c_try_cpp "$LINENO"; then :
8d138742
CE
7264 # Broken: success on invalid input.
7265continue
7266else
8d138742
CE
7267 # Passes both tests.
7268ac_preproc_ok=:
7269break
7270fi
b0322a85 7271rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7272
8d138742
CE
7273done
7274# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b0322a85
CE
7275rm -f conftest.i conftest.err conftest.$ac_ext
7276if $ac_preproc_ok; then :
7277
8d138742 7278else
b0322a85 7279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 7280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
7281as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7282See \`config.log' for more details" "$LINENO" 5; }
8d138742 7283fi
d9898ee8 7284
8d138742
CE
7285ac_ext=c
7286ac_cpp='$CPP $CPPFLAGS'
7287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7289ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 7290
d9898ee8 7291
b0322a85 7292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8d138742 7293$as_echo_n "checking for ANSI C header files... " >&6; }
b0322a85 7294if ${ac_cv_header_stdc+:} false; then :
8d138742
CE
7295 $as_echo_n "(cached) " >&6
7296else
b0322a85 7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7298/* end confdefs.h. */
7299#include <stdlib.h>
7300#include <stdarg.h>
7301#include <string.h>
7302#include <float.h>
d9898ee8 7303
8d138742
CE
7304int
7305main ()
7306{
d9898ee8 7307
8d138742
CE
7308 ;
7309 return 0;
7310}
7311_ACEOF
b0322a85 7312if ac_fn_c_try_compile "$LINENO"; then :
8d138742
CE
7313 ac_cv_header_stdc=yes
7314else
b0322a85 7315 ac_cv_header_stdc=no
8d138742 7316fi
8d138742 7317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 7318
8d138742
CE
7319if test $ac_cv_header_stdc = yes; then
7320 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
b0322a85 7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7322/* end confdefs.h. */
7323#include <string.h>
d9898ee8 7324
8d138742
CE
7325_ACEOF
7326if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
7327 $EGREP "memchr" >/dev/null 2>&1; then :
7328
d9898ee8 7329else
8d138742
CE
7330 ac_cv_header_stdc=no
7331fi
7332rm -f conftest*
d9898ee8 7333
7334fi
d9898ee8 7335
8d138742
CE
7336if test $ac_cv_header_stdc = yes; then
7337 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
b0322a85 7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7339/* end confdefs.h. */
7340#include <stdlib.h>
7341
7342_ACEOF
7343if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
7344 $EGREP "free" >/dev/null 2>&1; then :
7345
d9898ee8 7346else
8d138742 7347 ac_cv_header_stdc=no
d9898ee8 7348fi
8d138742 7349rm -f conftest*
d9898ee8 7350
7351fi
d9898ee8 7352
8d138742
CE
7353if test $ac_cv_header_stdc = yes; then
7354 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
b0322a85 7355 if test "$cross_compiling" = yes; then :
8d138742 7356 :
d9898ee8 7357else
b0322a85 7358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7359/* end confdefs.h. */
7360#include <ctype.h>
7361#include <stdlib.h>
7362#if ((' ' & 0x0FF) == 0x020)
7363# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7364# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7365#else
7366# define ISLOWER(c) \
7367 (('a' <= (c) && (c) <= 'i') \
7368 || ('j' <= (c) && (c) <= 'r') \
7369 || ('s' <= (c) && (c) <= 'z'))
7370# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7371#endif
d9898ee8 7372
8d138742
CE
7373#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7374int
7375main ()
7376{
7377 int i;
7378 for (i = 0; i < 256; i++)
7379 if (XOR (islower (i), ISLOWER (i))
7380 || toupper (i) != TOUPPER (i))
7381 return 2;
7382 return 0;
7383}
7384_ACEOF
b0322a85 7385if ac_fn_c_try_run "$LINENO"; then :
8d138742 7386
b0322a85
CE
7387else
7388 ac_cv_header_stdc=no
8d138742 7389fi
b0322a85
CE
7390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7391 conftest.$ac_objext conftest.beam conftest.$ac_ext
d9898ee8 7392fi
7393
8d138742
CE
7394fi
7395fi
b0322a85 7396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8d138742
CE
7397$as_echo "$ac_cv_header_stdc" >&6; }
7398if test $ac_cv_header_stdc = yes; then
d9898ee8 7399
b0322a85 7400$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d9898ee8 7401
7402fi
d9898ee8 7403
8d138742 7404# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8d138742
CE
7405for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7406 inttypes.h stdint.h unistd.h
b0322a85
CE
7407do :
7408 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7409ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7410"
7411if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8d138742
CE
7412 cat >>confdefs.h <<_ACEOF
7413#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7414_ACEOF
d9898ee8 7415
8d138742 7416fi
d9898ee8 7417
8d138742 7418done
d9898ee8 7419
d9898ee8 7420
8d138742 7421for ac_header in dlfcn.h
b0322a85
CE
7422do :
7423 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7424"
7425if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8d138742 7426 cat >>confdefs.h <<_ACEOF
b0322a85 7427#define HAVE_DLFCN_H 1
8d138742 7428_ACEOF
d9898ee8 7429
8d138742 7430fi
d9898ee8 7431
8d138742 7432done
d9898ee8 7433
d9898ee8 7434
d9898ee8 7435
b0322a85
CE
7436
7437
8d138742
CE
7438# Set options
7439
7440
7441
7442 enable_dlopen=no
7443
7444
7445 enable_win32_dll=no
d9898ee8 7446
8d138742
CE
7447
7448 # Check whether --enable-shared was given.
b0322a85 7449if test "${enable_shared+set}" = set; then :
8d138742
CE
7450 enableval=$enable_shared; p=${PACKAGE-default}
7451 case $enableval in
7452 yes) enable_shared=yes ;;
7453 no) enable_shared=no ;;
d9898ee8 7454 *)
8d138742
CE
7455 enable_shared=no
7456 # Look at the argument we got. We use all the common list separators.
7457 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7458 for pkg in $enableval; do
7459 IFS="$lt_save_ifs"
7460 if test "X$pkg" = "X$p"; then
7461 enable_shared=yes
7462 fi
7463 done
7464 IFS="$lt_save_ifs"
d9898ee8 7465 ;;
7466 esac
8d138742
CE
7467else
7468 enable_shared=yes
7469fi
d9898ee8 7470
d9898ee8 7471
d9898ee8 7472
d9898ee8 7473
d9898ee8 7474
d9898ee8 7475
d9898ee8 7476
d9898ee8 7477
d9898ee8 7478
8d138742 7479 # Check whether --enable-static was given.
b0322a85 7480if test "${enable_static+set}" = set; then :
8d138742
CE
7481 enableval=$enable_static; p=${PACKAGE-default}
7482 case $enableval in
7483 yes) enable_static=yes ;;
7484 no) enable_static=no ;;
7485 *)
7486 enable_static=no
7487 # Look at the argument we got. We use all the common list separators.
7488 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7489 for pkg in $enableval; do
7490 IFS="$lt_save_ifs"
7491 if test "X$pkg" = "X$p"; then
7492 enable_static=yes
7493 fi
7494 done
7495 IFS="$lt_save_ifs"
7496 ;;
7497 esac
d9898ee8 7498else
8d138742
CE
7499 enable_static=yes
7500fi
7501
d9898ee8 7502
dd184caf 7503
dd184caf 7504
d9898ee8 7505
d9898ee8 7506
d9898ee8 7507
d9898ee8 7508
d9898ee8 7509
dd184caf 7510
8d138742 7511# Check whether --with-pic was given.
b0322a85
CE
7512if test "${with_pic+set}" = set; then :
7513 withval=$with_pic; lt_p=${PACKAGE-default}
7514 case $withval in
7515 yes|no) pic_mode=$withval ;;
7516 *)
7517 pic_mode=default
7518 # Look at the argument we got. We use all the common list separators.
7519 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7520 for lt_pkg in $withval; do
7521 IFS="$lt_save_ifs"
7522 if test "X$lt_pkg" = "X$lt_p"; then
7523 pic_mode=yes
7524 fi
7525 done
7526 IFS="$lt_save_ifs"
7527 ;;
7528 esac
8d138742
CE
7529else
7530 pic_mode=default
d9898ee8 7531fi
dd184caf 7532
d9898ee8 7533
8d138742 7534test -z "$pic_mode" && pic_mode=default
d9898ee8 7535
d9898ee8 7536
d9898ee8 7537
d9898ee8 7538
d9898ee8 7539
d9898ee8 7540
d9898ee8 7541
8d138742 7542 # Check whether --enable-fast-install was given.
b0322a85 7543if test "${enable_fast_install+set}" = set; then :
8d138742
CE
7544 enableval=$enable_fast_install; p=${PACKAGE-default}
7545 case $enableval in
7546 yes) enable_fast_install=yes ;;
7547 no) enable_fast_install=no ;;
7548 *)
7549 enable_fast_install=no
7550 # Look at the argument we got. We use all the common list separators.
7551 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7552 for pkg in $enableval; do
7553 IFS="$lt_save_ifs"
7554 if test "X$pkg" = "X$p"; then
7555 enable_fast_install=yes
7556 fi
7557 done
7558 IFS="$lt_save_ifs"
d9898ee8 7559 ;;
8d138742
CE
7560 esac
7561else
7562 enable_fast_install=yes
7563fi
d9898ee8 7564
d9898ee8 7565
d9898ee8 7566
d9898ee8 7567
d9898ee8 7568
d9898ee8 7569
d9898ee8 7570
d9898ee8 7571
d9898ee8 7572
d9898ee8 7573
d9898ee8 7574
8d138742
CE
7575# This can be used to rebuild libtool when needed
7576LIBTOOL_DEPS="$ltmain"
d9898ee8 7577
8d138742
CE
7578# Always use our own libtool.
7579LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d9898ee8 7580
d9898ee8 7581
d9898ee8 7582
d9898ee8 7583
d9898ee8 7584
d9898ee8 7585
d9898ee8 7586
d9898ee8 7587
d9898ee8 7588
d9898ee8 7589
d9898ee8 7590
d9898ee8 7591
d9898ee8 7592
d9898ee8 7593
d9898ee8 7594
d9898ee8 7595
d9898ee8 7596
d9898ee8 7597
d9898ee8 7598
b0322a85
CE
7599
7600
7601
7602
7603
d9898ee8 7604
d9898ee8 7605
d9898ee8 7606
ac40fd9e 7607
d9898ee8 7608
d9898ee8 7609
8d138742 7610test -z "$LN_S" && LN_S="ln -s"
d9898ee8 7611
d9898ee8 7612
d9898ee8 7613
d9898ee8 7614
d9898ee8 7615
d9898ee8 7616
d9898ee8 7617
d9898ee8 7618
d9898ee8 7619
d9898ee8 7620
ac40fd9e 7621
d9898ee8 7622
d9898ee8 7623
d9898ee8 7624
8d138742
CE
7625if test -n "${ZSH_VERSION+set}" ; then
7626 setopt NO_GLOB_SUBST
7627fi
d9898ee8 7628
b0322a85 7629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8d138742 7630$as_echo_n "checking for objdir... " >&6; }
b0322a85 7631if ${lt_cv_objdir+:} false; then :
8d138742
CE
7632 $as_echo_n "(cached) " >&6
7633else
7634 rm -f .libs 2>/dev/null
7635mkdir .libs 2>/dev/null
7636if test -d .libs; then
7637 lt_cv_objdir=.libs
7638else
7639 # MS-DOS does not allow filenames that begin with a dot.
7640 lt_cv_objdir=_libs
7641fi
7642rmdir .libs 2>/dev/null
7643fi
b0322a85 7644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8d138742
CE
7645$as_echo "$lt_cv_objdir" >&6; }
7646objdir=$lt_cv_objdir
d9898ee8 7647
d9898ee8 7648
d9898ee8 7649
d9898ee8 7650
d9898ee8 7651
8d138742
CE
7652cat >>confdefs.h <<_ACEOF
7653#define LT_OBJDIR "$lt_cv_objdir/"
7654_ACEOF
d9898ee8 7655
d9898ee8 7656
d9898ee8 7657
d9898ee8 7658
8d138742
CE
7659case $host_os in
7660aix3*)
7661 # AIX sometimes has problems with the GCC collect2 program. For some
7662 # reason, if we set the COLLECT_NAMES environment variable, the problems
7663 # vanish in a puff of smoke.
7664 if test "X${COLLECT_NAMES+set}" != Xset; then
7665 COLLECT_NAMES=
7666 export COLLECT_NAMES
7667 fi
d9898ee8 7668 ;;
7669esac
d9898ee8 7670
8d138742
CE
7671# Global variables:
7672ofile=libtool
7673can_build_shared=yes
d9898ee8 7674
8d138742
CE
7675# All known linkers require a `.a' archive for static linking (except MSVC,
7676# which needs '.lib').
7677libext=a
d9898ee8 7678
8d138742 7679with_gnu_ld="$lt_cv_prog_gnu_ld"
d9898ee8 7680
8d138742
CE
7681old_CC="$CC"
7682old_CFLAGS="$CFLAGS"
d9898ee8 7683
8d138742
CE
7684# Set sane defaults for various variables
7685test -z "$CC" && CC=cc
7686test -z "$LTCC" && LTCC=$CC
7687test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7688test -z "$LD" && LD=ld
7689test -z "$ac_objext" && ac_objext=o
d9898ee8 7690
8d138742
CE
7691for cc_temp in $compiler""; do
7692 case $cc_temp in
7693 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7694 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7695 \-*) ;;
7696 *) break;;
7697 esac
7698done
b0322a85 7699cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d9898ee8 7700
dd184caf 7701
8d138742
CE
7702# Only perform the check for file, if the check method requires it
7703test -z "$MAGIC_CMD" && MAGIC_CMD=file
7704case $deplibs_check_method in
7705file_magic*)
7706 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
b0322a85 7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8d138742 7708$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
b0322a85 7709if ${lt_cv_path_MAGIC_CMD+:} false; then :
8d138742 7710 $as_echo_n "(cached) " >&6
d9898ee8 7711else
8d138742
CE
7712 case $MAGIC_CMD in
7713[\\/*] | ?:[\\/]*)
7714 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7715 ;;
7716*)
7717 lt_save_MAGIC_CMD="$MAGIC_CMD"
7718 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7719 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7720 for ac_dir in $ac_dummy; do
7721 IFS="$lt_save_ifs"
7722 test -z "$ac_dir" && ac_dir=.
7723 if test -f $ac_dir/${ac_tool_prefix}file; then
7724 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7725 if test -n "$file_magic_test_file"; then
7726 case $deplibs_check_method in
7727 "file_magic "*)
7728 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7729 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7730 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7731 $EGREP "$file_magic_regex" > /dev/null; then
7732 :
7733 else
7734 cat <<_LT_EOF 1>&2
d9898ee8 7735
8d138742
CE
7736*** Warning: the command libtool uses to detect shared libraries,
7737*** $file_magic_cmd, produces output that libtool cannot recognize.
7738*** The result is that libtool may fail to recognize shared libraries
7739*** as such. This will affect the creation of libtool libraries that
7740*** depend on shared libraries, but programs linked with such libtool
7741*** libraries will work regardless of this problem. Nevertheless, you
7742*** may want to report the problem to your system manager and/or to
7743*** bug-libtool@gnu.org
d9898ee8 7744
8d138742
CE
7745_LT_EOF
7746 fi ;;
7747 esac
7748 fi
7749 break
7750 fi
7751 done
7752 IFS="$lt_save_ifs"
7753 MAGIC_CMD="$lt_save_MAGIC_CMD"
7754 ;;
7755esac
d9898ee8 7756fi
7757
8d138742
CE
7758MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7759if test -n "$MAGIC_CMD"; then
b0322a85 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8d138742 7761$as_echo "$MAGIC_CMD" >&6; }
d9898ee8 7762else
b0322a85 7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
7764$as_echo "no" >&6; }
7765fi
d9898ee8 7766
d9898ee8 7767
d9898ee8 7768
d9898ee8 7769
d9898ee8 7770
8d138742
CE
7771if test -z "$lt_cv_path_MAGIC_CMD"; then
7772 if test -n "$ac_tool_prefix"; then
b0322a85 7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8d138742 7774$as_echo_n "checking for file... " >&6; }
b0322a85 7775if ${lt_cv_path_MAGIC_CMD+:} false; then :
8d138742 7776 $as_echo_n "(cached) " >&6
d9898ee8 7777else
8d138742
CE
7778 case $MAGIC_CMD in
7779[\\/*] | ?:[\\/]*)
7780 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7781 ;;
7782*)
7783 lt_save_MAGIC_CMD="$MAGIC_CMD"
7784 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7785 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7786 for ac_dir in $ac_dummy; do
7787 IFS="$lt_save_ifs"
7788 test -z "$ac_dir" && ac_dir=.
7789 if test -f $ac_dir/file; then
7790 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7791 if test -n "$file_magic_test_file"; then
7792 case $deplibs_check_method in
7793 "file_magic "*)
7794 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7795 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7796 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7797 $EGREP "$file_magic_regex" > /dev/null; then
7798 :
7799 else
7800 cat <<_LT_EOF 1>&2
d9898ee8 7801
8d138742
CE
7802*** Warning: the command libtool uses to detect shared libraries,
7803*** $file_magic_cmd, produces output that libtool cannot recognize.
7804*** The result is that libtool may fail to recognize shared libraries
7805*** as such. This will affect the creation of libtool libraries that
7806*** depend on shared libraries, but programs linked with such libtool
7807*** libraries will work regardless of this problem. Nevertheless, you
7808*** may want to report the problem to your system manager and/or to
7809*** bug-libtool@gnu.org
dd184caf 7810
8d138742
CE
7811_LT_EOF
7812 fi ;;
7813 esac
7814 fi
7815 break
7816 fi
7817 done
7818 IFS="$lt_save_ifs"
7819 MAGIC_CMD="$lt_save_MAGIC_CMD"
7820 ;;
7821esac
d9898ee8 7822fi
d9898ee8 7823
8d138742
CE
7824MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7825if test -n "$MAGIC_CMD"; then
b0322a85 7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8d138742 7827$as_echo "$MAGIC_CMD" >&6; }
d9898ee8 7828else
b0322a85 7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7830$as_echo "no" >&6; }
d9898ee8 7831fi
dd184caf 7832
8d138742
CE
7833
7834 else
7835 MAGIC_CMD=:
7836 fi
d9898ee8 7837fi
d9898ee8 7838
8d138742
CE
7839 fi
7840 ;;
7841esac
d9898ee8 7842
8d138742 7843# Use C for the default configuration in the libtool script
d9898ee8 7844
8d138742
CE
7845lt_save_CC="$CC"
7846ac_ext=c
7847ac_cpp='$CPP $CPPFLAGS'
7848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7850ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 7851
d9898ee8 7852
8d138742
CE
7853# Source file extension for C test sources.
7854ac_ext=c
d9898ee8 7855
8d138742
CE
7856# Object file extension for compiled C test sources.
7857objext=o
7858objext=$objext
dd184caf 7859
8d138742
CE
7860# Code to be used in simple compile tests
7861lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 7862
8d138742
CE
7863# Code to be used in simple link tests
7864lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 7865
dd184caf 7866
d9898ee8 7867
d9898ee8 7868
dd184caf 7869
d9898ee8 7870
d9898ee8 7871
8d138742
CE
7872# If no C compiler was specified, use CC.
7873LTCC=${LTCC-"$CC"}
dd184caf 7874
8d138742
CE
7875# If no C compiler flags were specified, use CFLAGS.
7876LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 7877
8d138742
CE
7878# Allow CC to be a program name with arguments.
7879compiler=$CC
d9898ee8 7880
8d138742
CE
7881# Save the default compiler, since it gets overwritten when the other
7882# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7883compiler_DEFAULT=$CC
d9898ee8 7884
8d138742
CE
7885# save warnings/boilerplate of simple test code
7886ac_outfile=conftest.$ac_objext
7887echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7888eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7889_lt_compiler_boilerplate=`cat conftest.err`
7890$RM conftest*
d9898ee8 7891
8d138742
CE
7892ac_outfile=conftest.$ac_objext
7893echo "$lt_simple_link_test_code" >conftest.$ac_ext
7894eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7895_lt_linker_boilerplate=`cat conftest.err`
7896$RM -r conftest*
d9898ee8 7897
7898
8d138742 7899if test -n "$compiler"; then
d9898ee8 7900
8d138742 7901lt_prog_compiler_no_builtin_flag=
d9898ee8 7902
8d138742 7903if test "$GCC" = yes; then
b0322a85
CE
7904 case $cc_basename in
7905 nvcc*)
7906 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7907 *)
7908 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7909 esac
d9898ee8 7910
b0322a85 7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8d138742 7912$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
b0322a85 7913if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8d138742
CE
7914 $as_echo_n "(cached) " >&6
7915else
7916 lt_cv_prog_compiler_rtti_exceptions=no
7917 ac_outfile=conftest.$ac_objext
7918 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7919 lt_compiler_flag="-fno-rtti -fno-exceptions"
7920 # Insert the option either (1) after the last *FLAGS variable, or
7921 # (2) before a word containing "conftest.", or (3) at the end.
7922 # Note that $ac_compile itself does not contain backslashes and begins
7923 # with a dollar sign (not a hyphen), so the echo should work correctly.
7924 # The option is referenced via a variable to avoid confusing sed.
7925 lt_compile=`echo "$ac_compile" | $SED \
7926 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7927 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7928 -e 's:$: $lt_compiler_flag:'`
b0322a85 7929 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
7930 (eval "$lt_compile" 2>conftest.err)
7931 ac_status=$?
7932 cat conftest.err >&5
b0322a85 7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
7934 if (exit $ac_status) && test -s "$ac_outfile"; then
7935 # The compiler can only warn and ignore the option if not recognized
7936 # So say no if there are warnings other than the usual output.
b0322a85 7937 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8d138742
CE
7938 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7939 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7940 lt_cv_prog_compiler_rtti_exceptions=yes
7941 fi
7942 fi
7943 $RM conftest*
d9898ee8 7944
7945fi
b0322a85 7946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8d138742 7947$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7948
8d138742
CE
7949if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7950 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7951else
7952 :
7953fi
d9898ee8 7954
8d138742 7955fi
d9898ee8 7956
d9898ee8 7957
d9898ee8 7958
d9898ee8 7959
d9898ee8 7960
d9898ee8 7961
8d138742
CE
7962 lt_prog_compiler_wl=
7963lt_prog_compiler_pic=
7964lt_prog_compiler_static=
d9898ee8 7965
d9898ee8 7966
8d138742
CE
7967 if test "$GCC" = yes; then
7968 lt_prog_compiler_wl='-Wl,'
7969 lt_prog_compiler_static='-static'
d9898ee8 7970
8d138742
CE
7971 case $host_os in
7972 aix*)
7973 # All AIX code is PIC.
7974 if test "$host_cpu" = ia64; then
7975 # AIX 5 now supports IA64 processor
7976 lt_prog_compiler_static='-Bstatic'
7977 fi
7978 ;;
d9898ee8 7979
8d138742
CE
7980 amigaos*)
7981 case $host_cpu in
7982 powerpc)
7983 # see comment about AmigaOS4 .so support
7984 lt_prog_compiler_pic='-fPIC'
7985 ;;
7986 m68k)
7987 # FIXME: we need at least 68020 code to build shared libraries, but
7988 # adding the `-m68020' flag to GCC prevents building anything better,
7989 # like `-m68040'.
7990 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7991 ;;
7992 esac
7993 ;;
d9898ee8 7994
8d138742
CE
7995 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7996 # PIC is the default for these OSes.
7997 ;;
d9898ee8 7998
8d138742
CE
7999 mingw* | cygwin* | pw32* | os2* | cegcc*)
8000 # This hack is so that the source file can tell whether it is being
8001 # built for inclusion in a dll (and should export symbols for example).
8002 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8003 # (--disable-auto-import) libraries
8004 lt_prog_compiler_pic='-DDLL_EXPORT'
8005 ;;
d9898ee8 8006
8d138742
CE
8007 darwin* | rhapsody*)
8008 # PIC is the default on this platform
8009 # Common symbols not allowed in MH_DYLIB files
8010 lt_prog_compiler_pic='-fno-common'
8011 ;;
d9898ee8 8012
b0322a85
CE
8013 haiku*)
8014 # PIC is the default for Haiku.
8015 # The "-static" flag exists, but is broken.
8016 lt_prog_compiler_static=
8017 ;;
8018
8d138742
CE
8019 hpux*)
8020 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8021 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8022 # sets the default TLS model and affects inlining.
8023 case $host_cpu in
8024 hppa*64*)
8025 # +Z the default
8026 ;;
8027 *)
8028 lt_prog_compiler_pic='-fPIC'
8029 ;;
8030 esac
8031 ;;
d9898ee8 8032
8d138742
CE
8033 interix[3-9]*)
8034 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8035 # Instead, we relocate shared libraries at runtime.
8036 ;;
d9898ee8 8037
8d138742
CE
8038 msdosdjgpp*)
8039 # Just because we use GCC doesn't mean we suddenly get shared libraries
8040 # on systems that don't support them.
8041 lt_prog_compiler_can_build_shared=no
8042 enable_shared=no
8043 ;;
d9898ee8 8044
8d138742
CE
8045 *nto* | *qnx*)
8046 # QNX uses GNU C++, but need to define -shared option too, otherwise
8047 # it will coredump.
8048 lt_prog_compiler_pic='-fPIC -shared'
8049 ;;
d9898ee8 8050
8d138742
CE
8051 sysv4*MP*)
8052 if test -d /usr/nec; then
8053 lt_prog_compiler_pic=-Kconform_pic
8054 fi
8055 ;;
d9898ee8 8056
8d138742
CE
8057 *)
8058 lt_prog_compiler_pic='-fPIC'
8059 ;;
8060 esac
b0322a85
CE
8061
8062 case $cc_basename in
8063 nvcc*) # Cuda Compiler Driver 2.2
8064 lt_prog_compiler_wl='-Xlinker '
8065 if test -n "$lt_prog_compiler_pic"; then
8066 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8067 fi
8068 ;;
8069 esac
8d138742
CE
8070 else
8071 # PORTME Check for flag to pass linker flags through the system compiler.
8072 case $host_os in
8073 aix*)
8074 lt_prog_compiler_wl='-Wl,'
8075 if test "$host_cpu" = ia64; then
8076 # AIX 5 now supports IA64 processor
8077 lt_prog_compiler_static='-Bstatic'
8078 else
8079 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8080 fi
8081 ;;
d9898ee8 8082
8d138742
CE
8083 mingw* | cygwin* | pw32* | os2* | cegcc*)
8084 # This hack is so that the source file can tell whether it is being
8085 # built for inclusion in a dll (and should export symbols for example).
8086 lt_prog_compiler_pic='-DDLL_EXPORT'
8087 ;;
d9898ee8 8088
8d138742
CE
8089 hpux9* | hpux10* | hpux11*)
8090 lt_prog_compiler_wl='-Wl,'
8091 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8092 # not for PA HP-UX.
8093 case $host_cpu in
8094 hppa*64*|ia64*)
8095 # +Z the default
8096 ;;
8097 *)
8098 lt_prog_compiler_pic='+Z'
8099 ;;
8100 esac
8101 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8102 lt_prog_compiler_static='${wl}-a ${wl}archive'
8103 ;;
d9898ee8 8104
8d138742
CE
8105 irix5* | irix6* | nonstopux*)
8106 lt_prog_compiler_wl='-Wl,'
8107 # PIC (with -KPIC) is the default.
8108 lt_prog_compiler_static='-non_shared'
8109 ;;
d9898ee8 8110
b0322a85 8111 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8d138742
CE
8112 case $cc_basename in
8113 # old Intel for x86_64 which still supported -KPIC.
8114 ecc*)
8115 lt_prog_compiler_wl='-Wl,'
8116 lt_prog_compiler_pic='-KPIC'
8117 lt_prog_compiler_static='-static'
8118 ;;
8119 # icc used to be incompatible with GCC.
8120 # ICC 10 doesn't accept -KPIC any more.
8121 icc* | ifort*)
8122 lt_prog_compiler_wl='-Wl,'
8123 lt_prog_compiler_pic='-fPIC'
8124 lt_prog_compiler_static='-static'
8125 ;;
8126 # Lahey Fortran 8.1.
8127 lf95*)
8128 lt_prog_compiler_wl='-Wl,'
8129 lt_prog_compiler_pic='--shared'
8130 lt_prog_compiler_static='--static'
8131 ;;
b0322a85
CE
8132 nagfor*)
8133 # NAG Fortran compiler
8134 lt_prog_compiler_wl='-Wl,-Wl,,'
8135 lt_prog_compiler_pic='-PIC'
8136 lt_prog_compiler_static='-Bstatic'
8137 ;;
8138 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8d138742
CE
8139 # Portland Group compilers (*not* the Pentium gcc compiler,
8140 # which looks to be a dead project)
8141 lt_prog_compiler_wl='-Wl,'
8142 lt_prog_compiler_pic='-fpic'
8143 lt_prog_compiler_static='-Bstatic'
8144 ;;
8145 ccc*)
8146 lt_prog_compiler_wl='-Wl,'
8147 # All Alpha code is PIC.
8148 lt_prog_compiler_static='-non_shared'
8149 ;;
b0322a85
CE
8150 xl* | bgxl* | bgf* | mpixl*)
8151 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8d138742
CE
8152 lt_prog_compiler_wl='-Wl,'
8153 lt_prog_compiler_pic='-qpic'
8154 lt_prog_compiler_static='-qstaticlink'
8155 ;;
8156 *)
8157 case `$CC -V 2>&1 | sed 5q` in
b0322a85
CE
8158 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8159 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8160 lt_prog_compiler_pic='-KPIC'
8161 lt_prog_compiler_static='-Bstatic'
8162 lt_prog_compiler_wl=''
8163 ;;
8164 *Sun\ F* | *Sun*Fortran*)
8165 lt_prog_compiler_pic='-KPIC'
8166 lt_prog_compiler_static='-Bstatic'
8167 lt_prog_compiler_wl='-Qoption ld '
8168 ;;
8d138742
CE
8169 *Sun\ C*)
8170 # Sun C 5.9
8171 lt_prog_compiler_pic='-KPIC'
8172 lt_prog_compiler_static='-Bstatic'
8173 lt_prog_compiler_wl='-Wl,'
8174 ;;
b0322a85
CE
8175 *Intel*\ [CF]*Compiler*)
8176 lt_prog_compiler_wl='-Wl,'
8177 lt_prog_compiler_pic='-fPIC'
8178 lt_prog_compiler_static='-static'
8179 ;;
8180 *Portland\ Group*)
8181 lt_prog_compiler_wl='-Wl,'
8182 lt_prog_compiler_pic='-fpic'
8d138742 8183 lt_prog_compiler_static='-Bstatic'
8d138742
CE
8184 ;;
8185 esac
8186 ;;
8187 esac
8188 ;;
d9898ee8 8189
8d138742
CE
8190 newsos6)
8191 lt_prog_compiler_pic='-KPIC'
8192 lt_prog_compiler_static='-Bstatic'
8193 ;;
d9898ee8 8194
8d138742
CE
8195 *nto* | *qnx*)
8196 # QNX uses GNU C++, but need to define -shared option too, otherwise
8197 # it will coredump.
8198 lt_prog_compiler_pic='-fPIC -shared'
8199 ;;
d9898ee8 8200
8d138742
CE
8201 osf3* | osf4* | osf5*)
8202 lt_prog_compiler_wl='-Wl,'
8203 # All OSF/1 code is PIC.
8204 lt_prog_compiler_static='-non_shared'
8205 ;;
d9898ee8 8206
8d138742
CE
8207 rdos*)
8208 lt_prog_compiler_static='-non_shared'
8209 ;;
d9898ee8 8210
8d138742
CE
8211 solaris*)
8212 lt_prog_compiler_pic='-KPIC'
8213 lt_prog_compiler_static='-Bstatic'
8214 case $cc_basename in
b0322a85 8215 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8d138742
CE
8216 lt_prog_compiler_wl='-Qoption ld ';;
8217 *)
8218 lt_prog_compiler_wl='-Wl,';;
8219 esac
8220 ;;
d9898ee8 8221
8d138742
CE
8222 sunos4*)
8223 lt_prog_compiler_wl='-Qoption ld '
8224 lt_prog_compiler_pic='-PIC'
8225 lt_prog_compiler_static='-Bstatic'
8226 ;;
d9898ee8 8227
8d138742
CE
8228 sysv4 | sysv4.2uw2* | sysv4.3*)
8229 lt_prog_compiler_wl='-Wl,'
8230 lt_prog_compiler_pic='-KPIC'
8231 lt_prog_compiler_static='-Bstatic'
8232 ;;
d9898ee8 8233
8d138742
CE
8234 sysv4*MP*)
8235 if test -d /usr/nec ;then
8236 lt_prog_compiler_pic='-Kconform_pic'
8237 lt_prog_compiler_static='-Bstatic'
8238 fi
8239 ;;
d9898ee8 8240
8d138742
CE
8241 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8242 lt_prog_compiler_wl='-Wl,'
8243 lt_prog_compiler_pic='-KPIC'
8244 lt_prog_compiler_static='-Bstatic'
8245 ;;
d9898ee8 8246
8d138742
CE
8247 unicos*)
8248 lt_prog_compiler_wl='-Wl,'
8249 lt_prog_compiler_can_build_shared=no
8250 ;;
8251
8252 uts4*)
8253 lt_prog_compiler_pic='-pic'
8254 lt_prog_compiler_static='-Bstatic'
d9898ee8 8255 ;;
8d138742 8256
d9898ee8 8257 *)
8d138742 8258 lt_prog_compiler_can_build_shared=no
d9898ee8 8259 ;;
8260 esac
8d138742 8261 fi
d9898ee8 8262
8d138742
CE
8263case $host_os in
8264 # For platforms which do not support PIC, -DPIC is meaningless:
8265 *djgpp*)
8266 lt_prog_compiler_pic=
d9898ee8 8267 ;;
8d138742
CE
8268 *)
8269 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8270 ;;
8271esac
d9898ee8 8272
b0322a85
CE
8273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8274$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8275if ${lt_cv_prog_compiler_pic+:} false; then :
8276 $as_echo_n "(cached) " >&6
8277else
8278 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8279fi
8280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8281$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8282lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
d9898ee8 8283
d9898ee8 8284#
8d138742 8285# Check to make sure the PIC flag actually works.
d9898ee8 8286#
8d138742 8287if test -n "$lt_prog_compiler_pic"; then
b0322a85 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8d138742 8289$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
b0322a85 8290if ${lt_cv_prog_compiler_pic_works+:} false; then :
8d138742
CE
8291 $as_echo_n "(cached) " >&6
8292else
8293 lt_cv_prog_compiler_pic_works=no
8294 ac_outfile=conftest.$ac_objext
8295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8296 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8297 # Insert the option either (1) after the last *FLAGS variable, or
8298 # (2) before a word containing "conftest.", or (3) at the end.
8299 # Note that $ac_compile itself does not contain backslashes and begins
8300 # with a dollar sign (not a hyphen), so the echo should work correctly.
8301 # The option is referenced via a variable to avoid confusing sed.
8302 lt_compile=`echo "$ac_compile" | $SED \
8303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8305 -e 's:$: $lt_compiler_flag:'`
b0322a85 8306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
8307 (eval "$lt_compile" 2>conftest.err)
8308 ac_status=$?
8309 cat conftest.err >&5
b0322a85 8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
8311 if (exit $ac_status) && test -s "$ac_outfile"; then
8312 # The compiler can only warn and ignore the option if not recognized
8313 # So say no if there are warnings other than the usual output.
b0322a85 8314 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8d138742
CE
8315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8316 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8317 lt_cv_prog_compiler_pic_works=yes
8318 fi
8319 fi
8320 $RM conftest*
d9898ee8 8321
8d138742 8322fi
b0322a85 8323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8d138742 8324$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d9898ee8 8325
8d138742
CE
8326if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8327 case $lt_prog_compiler_pic in
8328 "" | " "*) ;;
8329 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8330 esac
8331else
8332 lt_prog_compiler_pic=
8333 lt_prog_compiler_can_build_shared=no
8334fi
d9898ee8 8335
8d138742 8336fi
d9898ee8 8337
d9898ee8 8338
d9898ee8 8339
d9898ee8 8340
d9898ee8 8341
d9898ee8 8342
b0322a85
CE
8343
8344
8345
8346
8347
8d138742
CE
8348#
8349# Check to make sure the static flag actually works.
8350#
8351wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
b0322a85 8352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8d138742 8353$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
b0322a85 8354if ${lt_cv_prog_compiler_static_works+:} false; then :
8d138742
CE
8355 $as_echo_n "(cached) " >&6
8356else
8357 lt_cv_prog_compiler_static_works=no
8358 save_LDFLAGS="$LDFLAGS"
8359 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8360 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8361 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8362 # The linker can only warn and ignore the option if not recognized
8363 # So say no if there are warnings
8364 if test -s conftest.err; then
8365 # Append any errors to the config.log.
8366 cat conftest.err 1>&5
b0322a85 8367 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8d138742
CE
8368 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8369 if diff conftest.exp conftest.er2 >/dev/null; then
8370 lt_cv_prog_compiler_static_works=yes
8371 fi
8372 else
8373 lt_cv_prog_compiler_static_works=yes
8374 fi
8375 fi
8376 $RM -r conftest*
8377 LDFLAGS="$save_LDFLAGS"
d9898ee8 8378
8d138742 8379fi
b0322a85 8380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8d138742 8381$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d9898ee8 8382
8d138742
CE
8383if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8384 :
8385else
8386 lt_prog_compiler_static=
8387fi
d9898ee8 8388
d9898ee8 8389
d9898ee8 8390
d9898ee8 8391
d9898ee8 8392
d9898ee8 8393
d9898ee8 8394
b0322a85 8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 8396$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 8397if ${lt_cv_prog_compiler_c_o+:} false; then :
8d138742
CE
8398 $as_echo_n "(cached) " >&6
8399else
8400 lt_cv_prog_compiler_c_o=no
8401 $RM -r conftest 2>/dev/null
8402 mkdir conftest
8403 cd conftest
8404 mkdir out
8405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8406
8d138742
CE
8407 lt_compiler_flag="-o out/conftest2.$ac_objext"
8408 # Insert the option either (1) after the last *FLAGS variable, or
8409 # (2) before a word containing "conftest.", or (3) at the end.
8410 # Note that $ac_compile itself does not contain backslashes and begins
8411 # with a dollar sign (not a hyphen), so the echo should work correctly.
8412 lt_compile=`echo "$ac_compile" | $SED \
8413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8415 -e 's:$: $lt_compiler_flag:'`
b0322a85 8416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
8417 (eval "$lt_compile" 2>out/conftest.err)
8418 ac_status=$?
8419 cat out/conftest.err >&5
b0322a85 8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
8421 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8422 then
8423 # The compiler can only warn and ignore the option if not recognized
8424 # So say no if there are warnings
b0322a85 8425 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
8426 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8427 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8428 lt_cv_prog_compiler_c_o=yes
8429 fi
8430 fi
8431 chmod u+w . 2>&5
8432 $RM conftest*
8433 # SGI C++ compiler will create directory out/ii_files/ for
8434 # template instantiation
8435 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8436 $RM out/* && rmdir out
8437 cd ..
8438 $RM -r conftest
8439 $RM conftest*
d9898ee8 8440
8d138742 8441fi
b0322a85 8442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8d138742 8443$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8444
d9898ee8 8445
d9898ee8 8446
d9898ee8 8447
d9898ee8 8448
d9898ee8 8449
b0322a85 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 8451$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 8452if ${lt_cv_prog_compiler_c_o+:} false; then :
8d138742
CE
8453 $as_echo_n "(cached) " >&6
8454else
8455 lt_cv_prog_compiler_c_o=no
8456 $RM -r conftest 2>/dev/null
8457 mkdir conftest
8458 cd conftest
8459 mkdir out
8460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8461
8d138742
CE
8462 lt_compiler_flag="-o out/conftest2.$ac_objext"
8463 # Insert the option either (1) after the last *FLAGS variable, or
8464 # (2) before a word containing "conftest.", or (3) at the end.
8465 # Note that $ac_compile itself does not contain backslashes and begins
8466 # with a dollar sign (not a hyphen), so the echo should work correctly.
8467 lt_compile=`echo "$ac_compile" | $SED \
8468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8470 -e 's:$: $lt_compiler_flag:'`
b0322a85 8471 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
8472 (eval "$lt_compile" 2>out/conftest.err)
8473 ac_status=$?
8474 cat out/conftest.err >&5
b0322a85 8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
8476 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8477 then
8478 # The compiler can only warn and ignore the option if not recognized
8479 # So say no if there are warnings
b0322a85 8480 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
8481 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8482 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8483 lt_cv_prog_compiler_c_o=yes
8484 fi
8485 fi
8486 chmod u+w . 2>&5
8487 $RM conftest*
8488 # SGI C++ compiler will create directory out/ii_files/ for
8489 # template instantiation
8490 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8491 $RM out/* && rmdir out
8492 cd ..
8493 $RM -r conftest
8494 $RM conftest*
d9898ee8 8495
8d138742 8496fi
b0322a85 8497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8d138742 8498$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8499
d9898ee8 8500
d9898ee8 8501
d9898ee8 8502
8d138742
CE
8503hard_links="nottested"
8504if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8505 # do not overwrite the value of need_locks provided by the user
b0322a85 8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8d138742
CE
8507$as_echo_n "checking if we can lock with hard links... " >&6; }
8508 hard_links=yes
8509 $RM conftest*
8510 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8511 touch conftest.a
8512 ln conftest.a conftest.b 2>&5 || hard_links=no
8513 ln conftest.a conftest.b 2>/dev/null && hard_links=no
b0322a85 8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8d138742
CE
8515$as_echo "$hard_links" >&6; }
8516 if test "$hard_links" = no; then
b0322a85 8517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8d138742
CE
8518$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8519 need_locks=warn
8520 fi
8521else
8522 need_locks=no
8523fi
d9898ee8 8524
d9898ee8 8525
d9898ee8 8526
d9898ee8 8527
d9898ee8 8528
d9898ee8 8529
b0322a85 8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8d138742 8531$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d9898ee8 8532
8d138742
CE
8533 runpath_var=
8534 allow_undefined_flag=
8535 always_export_symbols=no
8536 archive_cmds=
8537 archive_expsym_cmds=
8538 compiler_needs_object=no
8539 enable_shared_with_static_runtimes=no
8540 export_dynamic_flag_spec=
8541 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8542 hardcode_automatic=no
8543 hardcode_direct=no
8544 hardcode_direct_absolute=no
8545 hardcode_libdir_flag_spec=
8d138742
CE
8546 hardcode_libdir_separator=
8547 hardcode_minus_L=no
8548 hardcode_shlibpath_var=unsupported
8549 inherit_rpath=no
8550 link_all_deplibs=unknown
8551 module_cmds=
8552 module_expsym_cmds=
8553 old_archive_from_new_cmds=
8554 old_archive_from_expsyms_cmds=
8555 thread_safe_flag_spec=
8556 whole_archive_flag_spec=
8557 # include_expsyms should be a list of space-separated symbols to be *always*
8558 # included in the symbol list
8559 include_expsyms=
8560 # exclude_expsyms can be an extended regexp of symbols to exclude
8561 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8562 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8563 # as well as any symbol that contains `d'.
8564 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8565 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8566 # platforms (ab)use it in PIC code, but their linkers get confused if
8567 # the symbol is explicitly referenced. Since portable code cannot
8568 # rely on this symbol name, it's probably fine to never include it in
8569 # preloaded symbol tables.
8570 # Exclude shared library initialization/finalization symbols.
8571 extract_expsyms_cmds=
d9898ee8 8572
8d138742
CE
8573 case $host_os in
8574 cygwin* | mingw* | pw32* | cegcc*)
8575 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8576 # When not using gcc, we currently assume that we are using
8577 # Microsoft Visual C++.
8578 if test "$GCC" != yes; then
8579 with_gnu_ld=no
8580 fi
8581 ;;
8582 interix*)
8583 # we just hope/assume this is gcc and not c89 (= MSVC++)
8584 with_gnu_ld=yes
8585 ;;
8586 openbsd*)
8587 with_gnu_ld=no
8588 ;;
8589 esac
d9898ee8 8590
8d138742 8591 ld_shlibs=yes
b0322a85
CE
8592
8593 # On some targets, GNU ld is compatible enough with the native linker
8594 # that we're better off using the native interface for both.
8595 lt_use_gnu_ld_interface=no
8d138742 8596 if test "$with_gnu_ld" = yes; then
b0322a85
CE
8597 case $host_os in
8598 aix*)
8599 # The AIX port of GNU ld has always aspired to compatibility
8600 # with the native linker. However, as the warning in the GNU ld
8601 # block says, versions before 2.19.5* couldn't really create working
8602 # shared libraries, regardless of the interface used.
8603 case `$LD -v 2>&1` in
8604 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8605 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8606 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8607 *)
8608 lt_use_gnu_ld_interface=yes
8609 ;;
8610 esac
8611 ;;
8612 *)
8613 lt_use_gnu_ld_interface=yes
8614 ;;
8615 esac
8616 fi
8617
8618 if test "$lt_use_gnu_ld_interface" = yes; then
8d138742
CE
8619 # If archive_cmds runs LD, not CC, wlarc should be empty
8620 wlarc='${wl}'
d9898ee8 8621
8d138742
CE
8622 # Set some defaults for GNU ld with shared library support. These
8623 # are reset later if shared libraries are not supported. Putting them
8624 # here allows them to be overridden if necessary.
8625 runpath_var=LD_RUN_PATH
8626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8627 export_dynamic_flag_spec='${wl}--export-dynamic'
8628 # ancient GNU ld didn't support --whole-archive et. al.
8629 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8630 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8631 else
8632 whole_archive_flag_spec=
8633 fi
8634 supports_anon_versioning=no
8635 case `$LD -v 2>&1` in
b0322a85 8636 *GNU\ gold*) supports_anon_versioning=yes ;;
8d138742
CE
8637 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8638 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8639 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8640 *\ 2.11.*) ;; # other 2.11 versions
8641 *) supports_anon_versioning=yes ;;
8642 esac
d9898ee8 8643
8d138742
CE
8644 # See if GNU ld supports shared libraries.
8645 case $host_os in
8646 aix[3-9]*)
8647 # On AIX/PPC, the GNU linker is very broken
8648 if test "$host_cpu" != ia64; then
8649 ld_shlibs=no
8650 cat <<_LT_EOF 1>&2
d9898ee8 8651
b0322a85 8652*** Warning: the GNU linker, at least up to release 2.19, is reported
8d138742
CE
8653*** to be unable to reliably create shared libraries on AIX.
8654*** Therefore, libtool is disabling shared libraries support. If you
b0322a85
CE
8655*** really care for shared libraries, you may want to install binutils
8656*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8657*** You will then need to restart the configuration process.
d9898ee8 8658
8d138742
CE
8659_LT_EOF
8660 fi
8661 ;;
d9898ee8 8662
8d138742
CE
8663 amigaos*)
8664 case $host_cpu in
8665 powerpc)
8666 # see comment about AmigaOS4 .so support
8667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8668 archive_expsym_cmds=''
8669 ;;
8670 m68k)
8671 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8672 hardcode_libdir_flag_spec='-L$libdir'
8673 hardcode_minus_L=yes
8674 ;;
8675 esac
8676 ;;
d9898ee8 8677
8d138742
CE
8678 beos*)
8679 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8680 allow_undefined_flag=unsupported
8681 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8682 # support --undefined. This deserves some investigation. FIXME
8683 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8684 else
8685 ld_shlibs=no
8686 fi
8687 ;;
d9898ee8 8688
8d138742
CE
8689 cygwin* | mingw* | pw32* | cegcc*)
8690 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8691 # as there is no search path for DLLs.
8692 hardcode_libdir_flag_spec='-L$libdir'
b0322a85 8693 export_dynamic_flag_spec='${wl}--export-all-symbols'
8d138742
CE
8694 allow_undefined_flag=unsupported
8695 always_export_symbols=no
8696 enable_shared_with_static_runtimes=yes
b0322a85
CE
8697 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8698 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
d9898ee8 8699
8d138742
CE
8700 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8701 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8702 # If the export-symbols file already is a .def file (1st line
8703 # is EXPORTS), use it as is; otherwise, prepend...
8704 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8705 cp $export_symbols $output_objdir/$soname.def;
8706 else
8707 echo EXPORTS > $output_objdir/$soname.def;
8708 cat $export_symbols >> $output_objdir/$soname.def;
8709 fi~
8710 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8711 else
8712 ld_shlibs=no
8713 fi
8714 ;;
d9898ee8 8715
b0322a85
CE
8716 haiku*)
8717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8718 link_all_deplibs=yes
8719 ;;
8720
8d138742
CE
8721 interix[3-9]*)
8722 hardcode_direct=no
8723 hardcode_shlibpath_var=no
8724 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8725 export_dynamic_flag_spec='${wl}-E'
8726 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8727 # Instead, shared libraries are loaded at an image base (0x10000000 by
8728 # default) and relocated if they conflict, which is a slow very memory
8729 # consuming and fragmenting process. To avoid this, we pick a random,
8730 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8731 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8732 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8733 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8734 ;;
d9898ee8 8735
b0322a85 8736 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8d138742
CE
8737 tmp_diet=no
8738 if test "$host_os" = linux-dietlibc; then
8739 case $cc_basename in
8740 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8741 esac
8742 fi
8743 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8744 && test "$tmp_diet" = no
8745 then
b0322a85 8746 tmp_addflag=' $pic_flag'
8d138742
CE
8747 tmp_sharedflag='-shared'
8748 case $cc_basename,$host_cpu in
8749 pgcc*) # Portland Group C compiler
b0322a85 8750 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8d138742
CE
8751 tmp_addflag=' $pic_flag'
8752 ;;
b0322a85
CE
8753 pgf77* | pgf90* | pgf95* | pgfortran*)
8754 # Portland Group f77 and f90 compilers
8755 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8d138742
CE
8756 tmp_addflag=' $pic_flag -Mnomain' ;;
8757 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8758 tmp_addflag=' -i_dynamic' ;;
8759 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8760 tmp_addflag=' -i_dynamic -nofor_main' ;;
8761 ifc* | ifort*) # Intel Fortran compiler
8762 tmp_addflag=' -nofor_main' ;;
8763 lf95*) # Lahey Fortran 8.1
8764 whole_archive_flag_spec=
8765 tmp_sharedflag='--shared' ;;
b0322a85 8766 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8d138742
CE
8767 tmp_sharedflag='-qmkshrobj'
8768 tmp_addflag= ;;
b0322a85
CE
8769 nvcc*) # Cuda Compiler Driver 2.2
8770 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8771 compiler_needs_object=yes
8772 ;;
8d138742
CE
8773 esac
8774 case `$CC -V 2>&1 | sed 5q` in
8775 *Sun\ C*) # Sun C 5.9
b0322a85 8776 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8d138742
CE
8777 compiler_needs_object=yes
8778 tmp_sharedflag='-G' ;;
8779 *Sun\ F*) # Sun Fortran 8.3
8780 tmp_sharedflag='-G' ;;
8781 esac
8782 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 8783
8d138742
CE
8784 if test "x$supports_anon_versioning" = xyes; then
8785 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8786 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8787 echo "local: *; };" >> $output_objdir/$libname.ver~
8788 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8789 fi
d9898ee8 8790
8d138742 8791 case $cc_basename in
b0322a85 8792 xlf* | bgf* | bgxlf* | mpixlf*)
8d138742
CE
8793 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8794 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
b0322a85
CE
8795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8796 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8d138742
CE
8797 if test "x$supports_anon_versioning" = xyes; then
8798 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8799 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8800 echo "local: *; };" >> $output_objdir/$libname.ver~
b0322a85 8801 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8d138742
CE
8802 fi
8803 ;;
8804 esac
8805 else
8806 ld_shlibs=no
8807 fi
8808 ;;
d9898ee8 8809
8d138742
CE
8810 netbsd*)
8811 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8812 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8813 wlarc=
8814 else
b0322a85
CE
8815 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8816 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8d138742
CE
8817 fi
8818 ;;
d9898ee8 8819
8d138742
CE
8820 solaris*)
8821 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8822 ld_shlibs=no
8823 cat <<_LT_EOF 1>&2
d9898ee8 8824
8d138742
CE
8825*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8826*** create shared libraries on Solaris systems. Therefore, libtool
8827*** is disabling shared libraries support. We urge you to upgrade GNU
8828*** binutils to release 2.9.1 or newer. Another option is to modify
8829*** your PATH or compiler configuration so that the native linker is
8830*** used, and then restart.
d9898ee8 8831
8d138742
CE
8832_LT_EOF
8833 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
b0322a85
CE
8834 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8835 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8d138742
CE
8836 else
8837 ld_shlibs=no
8838 fi
8839 ;;
d9898ee8 8840
8d138742
CE
8841 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8842 case `$LD -v 2>&1` in
8843 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8844 ld_shlibs=no
8845 cat <<_LT_EOF 1>&2
d9898ee8 8846
8d138742
CE
8847*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8848*** reliably create shared libraries on SCO systems. Therefore, libtool
8849*** is disabling shared libraries support. We urge you to upgrade GNU
8850*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8851*** your PATH or compiler configuration so that the native linker is
8852*** used, and then restart.
d9898ee8 8853
8d138742
CE
8854_LT_EOF
8855 ;;
8856 *)
8857 # For security reasons, it is highly recommended that you always
8858 # use absolute paths for naming shared libraries, and exclude the
8859 # DT_RUNPATH tag from executables and libraries. But doing so
8860 # requires that you compile everything twice, which is a pain.
8861 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8862 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8864 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8865 else
8866 ld_shlibs=no
8867 fi
8868 ;;
8869 esac
8870 ;;
d9898ee8 8871
8d138742
CE
8872 sunos4*)
8873 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8874 wlarc=
8875 hardcode_direct=yes
8876 hardcode_shlibpath_var=no
8877 ;;
d9898ee8 8878
8d138742
CE
8879 *)
8880 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
b0322a85
CE
8881 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8882 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8d138742
CE
8883 else
8884 ld_shlibs=no
8885 fi
8886 ;;
8887 esac
d9898ee8 8888
8d138742
CE
8889 if test "$ld_shlibs" = no; then
8890 runpath_var=
8891 hardcode_libdir_flag_spec=
8892 export_dynamic_flag_spec=
8893 whole_archive_flag_spec=
8894 fi
8895 else
8896 # PORTME fill in a description of your system's linker (not GNU ld)
8897 case $host_os in
8898 aix3*)
8899 allow_undefined_flag=unsupported
8900 always_export_symbols=yes
8901 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8902 # Note: this linker hardcodes the directories in LIBPATH if there
8903 # are no directories specified by -L.
8904 hardcode_minus_L=yes
8905 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8906 # Neither direct hardcoding nor static linking is supported with a
8907 # broken collect2.
8908 hardcode_direct=unsupported
8909 fi
8910 ;;
d9898ee8 8911
8d138742
CE
8912 aix[4-9]*)
8913 if test "$host_cpu" = ia64; then
8914 # On IA64, the linker does run time linking by default, so we don't
8915 # have to do anything special.
8916 aix_use_runtimelinking=no
8917 exp_sym_flag='-Bexport'
8918 no_entry_flag=""
8919 else
8920 # If we're using GNU nm, then we don't want the "-C" option.
8921 # -C means demangle to AIX nm, but means don't demangle with GNU nm
b0322a85
CE
8922 # Also, AIX nm treats weak defined symbols like other global
8923 # defined symbols, whereas GNU nm marks them as "W".
8d138742 8924 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
b0322a85 8925 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8d138742
CE
8926 else
8927 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8928 fi
8929 aix_use_runtimelinking=no
d9898ee8 8930
8d138742
CE
8931 # Test if we are trying to use run time linking or normal
8932 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8933 # need to do runtime linking.
8934 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8935 for ld_flag in $LDFLAGS; do
8936 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8937 aix_use_runtimelinking=yes
8938 break
8939 fi
8940 done
8941 ;;
8942 esac
d9898ee8 8943
8d138742
CE
8944 exp_sym_flag='-bexport'
8945 no_entry_flag='-bnoentry'
8946 fi
d9898ee8 8947
8d138742
CE
8948 # When large executables or shared objects are built, AIX ld can
8949 # have problems creating the table of contents. If linking a library
8950 # or program results in "error TOC overflow" add -mminimal-toc to
8951 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8952 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d9898ee8 8953
8d138742
CE
8954 archive_cmds=''
8955 hardcode_direct=yes
8956 hardcode_direct_absolute=yes
8957 hardcode_libdir_separator=':'
8958 link_all_deplibs=yes
8959 file_list_spec='${wl}-f,'
d9898ee8 8960
8d138742
CE
8961 if test "$GCC" = yes; then
8962 case $host_os in aix4.[012]|aix4.[012].*)
8963 # We only want to do this on AIX 4.2 and lower, the check
8964 # below for broken collect2 doesn't work under 4.3+
8965 collect2name=`${CC} -print-prog-name=collect2`
8966 if test -f "$collect2name" &&
8967 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8968 then
8969 # We have reworked collect2
8970 :
8971 else
8972 # We have old collect2
8973 hardcode_direct=unsupported
8974 # It fails to find uninstalled libraries when the uninstalled
8975 # path is not listed in the libpath. Setting hardcode_minus_L
8976 # to unsupported forces relinking
8977 hardcode_minus_L=yes
8978 hardcode_libdir_flag_spec='-L$libdir'
8979 hardcode_libdir_separator=
8980 fi
8981 ;;
8982 esac
8983 shared_flag='-shared'
8984 if test "$aix_use_runtimelinking" = yes; then
8985 shared_flag="$shared_flag "'${wl}-G'
8986 fi
8987 else
8988 # not using gcc
8989 if test "$host_cpu" = ia64; then
8990 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8991 # chokes on -Wl,-G. The following line is correct:
8992 shared_flag='-G'
8993 else
8994 if test "$aix_use_runtimelinking" = yes; then
8995 shared_flag='${wl}-G'
8996 else
8997 shared_flag='${wl}-bM:SRE'
8998 fi
8999 fi
9000 fi
d9898ee8 9001
8d138742
CE
9002 export_dynamic_flag_spec='${wl}-bexpall'
9003 # It seems that -bexpall does not export symbols beginning with
9004 # underscore (_), so it is better to generate a list of symbols to export.
9005 always_export_symbols=yes
9006 if test "$aix_use_runtimelinking" = yes; then
9007 # Warning - without using the other runtime loading flags (-brtl),
9008 # -berok will link without error, but may produce a broken library.
9009 allow_undefined_flag='-berok'
9010 # Determine the default libpath from the value encoded in an
9011 # empty executable.
b0322a85
CE
9012 if test "${lt_cv_aix_libpath+set}" = set; then
9013 aix_libpath=$lt_cv_aix_libpath
9014else
9015 if ${lt_cv_aix_libpath_+:} false; then :
9016 $as_echo_n "(cached) " >&6
9017else
9018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 9019/* end confdefs.h. */
d9898ee8 9020
8d138742 9021int
b0322a85
CE
9022main ()
9023{
9024
9025 ;
9026 return 0;
9027}
9028_ACEOF
9029if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 9030
b0322a85
CE
9031 lt_aix_libpath_sed='
9032 /Import File Strings/,/^$/ {
9033 /^0/ {
9034 s/^0 *\([^ ]*\) *$/\1/
9035 p
9036 }
9037 }'
9038 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9039 # Check for a 64-bit object if we didn't find anything.
9040 if test -z "$lt_cv_aix_libpath_"; then
9041 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9042 fi
9043fi
9044rm -f core conftest.err conftest.$ac_objext \
9045 conftest$ac_exeext conftest.$ac_ext
9046 if test -z "$lt_cv_aix_libpath_"; then
9047 lt_cv_aix_libpath_="/usr/lib:/lib"
9048 fi
d9898ee8 9049
8d138742 9050fi
d9898ee8 9051
b0322a85
CE
9052 aix_libpath=$lt_cv_aix_libpath_
9053fi
d9898ee8 9054
8d138742 9055 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
b0322a85 9056 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8d138742
CE
9057 else
9058 if test "$host_cpu" = ia64; then
9059 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9060 allow_undefined_flag="-z nodefs"
9061 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9062 else
9063 # Determine the default libpath from the value encoded in an
9064 # empty executable.
b0322a85
CE
9065 if test "${lt_cv_aix_libpath+set}" = set; then
9066 aix_libpath=$lt_cv_aix_libpath
9067else
9068 if ${lt_cv_aix_libpath_+:} false; then :
9069 $as_echo_n "(cached) " >&6
9070else
9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 9072/* end confdefs.h. */
d9898ee8 9073
8d138742
CE
9074int
9075main ()
9076{
d9898ee8 9077
8d138742
CE
9078 ;
9079 return 0;
9080}
9081_ACEOF
b0322a85 9082if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 9083
b0322a85
CE
9084 lt_aix_libpath_sed='
9085 /Import File Strings/,/^$/ {
9086 /^0/ {
9087 s/^0 *\([^ ]*\) *$/\1/
9088 p
9089 }
9090 }'
9091 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9092 # Check for a 64-bit object if we didn't find anything.
9093 if test -z "$lt_cv_aix_libpath_"; then
9094 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9095 fi
9096fi
9097rm -f core conftest.err conftest.$ac_objext \
9098 conftest$ac_exeext conftest.$ac_ext
9099 if test -z "$lt_cv_aix_libpath_"; then
9100 lt_cv_aix_libpath_="/usr/lib:/lib"
9101 fi
d9898ee8 9102
8d138742 9103fi
d9898ee8 9104
b0322a85
CE
9105 aix_libpath=$lt_cv_aix_libpath_
9106fi
d9898ee8 9107
8d138742
CE
9108 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9109 # Warning - without using the other run time loading flags,
9110 # -berok will link without error, but may produce a broken library.
9111 no_undefined_flag=' ${wl}-bernotok'
9112 allow_undefined_flag=' ${wl}-berok'
b0322a85
CE
9113 if test "$with_gnu_ld" = yes; then
9114 # We only use this code for GNU lds that support --whole-archive.
9115 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9116 else
9117 # Exported symbols can be pulled into shared objects from archives
9118 whole_archive_flag_spec='$convenience'
9119 fi
8d138742
CE
9120 archive_cmds_need_lc=yes
9121 # This is similar to how AIX traditionally builds its shared libraries.
9122 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9123 fi
9124 fi
9125 ;;
d9898ee8 9126
8d138742
CE
9127 amigaos*)
9128 case $host_cpu in
9129 powerpc)
9130 # see comment about AmigaOS4 .so support
9131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9132 archive_expsym_cmds=''
9133 ;;
9134 m68k)
9135 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9136 hardcode_libdir_flag_spec='-L$libdir'
9137 hardcode_minus_L=yes
9138 ;;
9139 esac
9140 ;;
d9898ee8 9141
8d138742
CE
9142 bsdi[45]*)
9143 export_dynamic_flag_spec=-rdynamic
9144 ;;
d9898ee8 9145
8d138742
CE
9146 cygwin* | mingw* | pw32* | cegcc*)
9147 # When not using gcc, we currently assume that we are using
9148 # Microsoft Visual C++.
9149 # hardcode_libdir_flag_spec is actually meaningless, as there is
9150 # no search path for DLLs.
b0322a85
CE
9151 case $cc_basename in
9152 cl*)
9153 # Native MSVC
9154 hardcode_libdir_flag_spec=' '
9155 allow_undefined_flag=unsupported
9156 always_export_symbols=yes
9157 file_list_spec='@'
9158 # Tell ltmain to make .lib files, not .a files.
9159 libext=lib
9160 # Tell ltmain to make .dll files, not .so files.
9161 shrext_cmds=".dll"
9162 # FIXME: Setting linknames here is a bad hack.
9163 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9164 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9165 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9166 else
9167 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9168 fi~
9169 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9170 linknames='
9171 # The linker will not automatically build a static lib if we build a DLL.
9172 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9173 enable_shared_with_static_runtimes=yes
9174 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9175 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9176 # Don't use ranlib
9177 old_postinstall_cmds='chmod 644 $oldlib'
9178 postlink_cmds='lt_outputfile="@OUTPUT@"~
9179 lt_tool_outputfile="@TOOL_OUTPUT@"~
9180 case $lt_outputfile in
9181 *.exe|*.EXE) ;;
9182 *)
9183 lt_outputfile="$lt_outputfile.exe"
9184 lt_tool_outputfile="$lt_tool_outputfile.exe"
9185 ;;
9186 esac~
9187 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9188 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9189 $RM "$lt_outputfile.manifest";
9190 fi'
9191 ;;
9192 *)
9193 # Assume MSVC wrapper
9194 hardcode_libdir_flag_spec=' '
9195 allow_undefined_flag=unsupported
9196 # Tell ltmain to make .lib files, not .a files.
9197 libext=lib
9198 # Tell ltmain to make .dll files, not .so files.
9199 shrext_cmds=".dll"
9200 # FIXME: Setting linknames here is a bad hack.
9201 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9202 # The linker will automatically build a .lib file if we build a DLL.
9203 old_archive_from_new_cmds='true'
9204 # FIXME: Should let the user specify the lib program.
9205 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9206 enable_shared_with_static_runtimes=yes
9207 ;;
9208 esac
8d138742 9209 ;;
d9898ee8 9210
8d138742 9211 darwin* | rhapsody*)
d9898ee8 9212
d9898ee8 9213
8d138742
CE
9214 archive_cmds_need_lc=no
9215 hardcode_direct=no
9216 hardcode_automatic=yes
9217 hardcode_shlibpath_var=unsupported
b0322a85
CE
9218 if test "$lt_cv_ld_force_load" = "yes"; then
9219 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9220
9221 else
9222 whole_archive_flag_spec=''
9223 fi
8d138742
CE
9224 link_all_deplibs=yes
9225 allow_undefined_flag="$_lt_dar_allow_undefined"
9226 case $cc_basename in
9227 ifort*) _lt_dar_can_shared=yes ;;
9228 *) _lt_dar_can_shared=$GCC ;;
d9898ee8 9229 esac
8d138742 9230 if test "$_lt_dar_can_shared" = "yes"; then
b0322a85 9231 output_verbose_link_cmd=func_echo_all
8d138742
CE
9232 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9233 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9234 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9235 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
d9898ee8 9236
8d138742
CE
9237 else
9238 ld_shlibs=no
d9898ee8 9239 fi
d9898ee8 9240
8d138742 9241 ;;
d9898ee8 9242
8d138742
CE
9243 dgux*)
9244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9245 hardcode_libdir_flag_spec='-L$libdir'
9246 hardcode_shlibpath_var=no
9247 ;;
d9898ee8 9248
8d138742
CE
9249 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9250 # support. Future versions do this automatically, but an explicit c++rt0.o
9251 # does not break anything, and helps significantly (at the cost of a little
9252 # extra space).
9253 freebsd2.2*)
9254 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9255 hardcode_libdir_flag_spec='-R$libdir'
9256 hardcode_direct=yes
9257 hardcode_shlibpath_var=no
9258 ;;
dd184caf 9259
8d138742 9260 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
b0322a85 9261 freebsd2.*)
8d138742
CE
9262 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9263 hardcode_direct=yes
9264 hardcode_minus_L=yes
9265 hardcode_shlibpath_var=no
9266 ;;
d9898ee8 9267
8d138742
CE
9268 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9269 freebsd* | dragonfly*)
b0322a85 9270 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
9271 hardcode_libdir_flag_spec='-R$libdir'
9272 hardcode_direct=yes
9273 hardcode_shlibpath_var=no
9274 ;;
d9898ee8 9275
8d138742
CE
9276 hpux9*)
9277 if test "$GCC" = yes; then
b0322a85 9278 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8d138742
CE
9279 else
9280 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9281 fi
9282 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9283 hardcode_libdir_separator=:
9284 hardcode_direct=yes
d9898ee8 9285
8d138742
CE
9286 # hardcode_minus_L: Not really in the search PATH,
9287 # but as the default location of the library.
9288 hardcode_minus_L=yes
9289 export_dynamic_flag_spec='${wl}-E'
9290 ;;
d9898ee8 9291
8d138742 9292 hpux10*)
b0322a85
CE
9293 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9294 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
9295 else
9296 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9297 fi
9298 if test "$with_gnu_ld" = no; then
9299 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8d138742
CE
9300 hardcode_libdir_separator=:
9301 hardcode_direct=yes
9302 hardcode_direct_absolute=yes
9303 export_dynamic_flag_spec='${wl}-E'
9304 # hardcode_minus_L: Not really in the search PATH,
9305 # but as the default location of the library.
9306 hardcode_minus_L=yes
9307 fi
9308 ;;
d9898ee8 9309
8d138742 9310 hpux11*)
b0322a85 9311 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8d138742
CE
9312 case $host_cpu in
9313 hppa*64*)
9314 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9315 ;;
9316 ia64*)
b0322a85 9317 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
9318 ;;
9319 *)
b0322a85 9320 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
9321 ;;
9322 esac
d9898ee8 9323 else
8d138742
CE
9324 case $host_cpu in
9325 hppa*64*)
9326 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9327 ;;
9328 ia64*)
9329 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9330 ;;
9331 *)
b0322a85
CE
9332
9333 # Older versions of the 11.00 compiler do not understand -b yet
9334 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9336$as_echo_n "checking if $CC understands -b... " >&6; }
9337if ${lt_cv_prog_compiler__b+:} false; then :
9338 $as_echo_n "(cached) " >&6
9339else
9340 lt_cv_prog_compiler__b=no
9341 save_LDFLAGS="$LDFLAGS"
9342 LDFLAGS="$LDFLAGS -b"
9343 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9344 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9345 # The linker can only warn and ignore the option if not recognized
9346 # So say no if there are warnings
9347 if test -s conftest.err; then
9348 # Append any errors to the config.log.
9349 cat conftest.err 1>&5
9350 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9352 if diff conftest.exp conftest.er2 >/dev/null; then
9353 lt_cv_prog_compiler__b=yes
9354 fi
9355 else
9356 lt_cv_prog_compiler__b=yes
9357 fi
9358 fi
9359 $RM -r conftest*
9360 LDFLAGS="$save_LDFLAGS"
9361
9362fi
9363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9364$as_echo "$lt_cv_prog_compiler__b" >&6; }
9365
9366if test x"$lt_cv_prog_compiler__b" = xyes; then
9367 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9368else
9369 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9370fi
9371
8d138742
CE
9372 ;;
9373 esac
d9898ee8 9374 fi
8d138742
CE
9375 if test "$with_gnu_ld" = no; then
9376 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9377 hardcode_libdir_separator=:
d9898ee8 9378
8d138742
CE
9379 case $host_cpu in
9380 hppa*64*|ia64*)
9381 hardcode_direct=no
9382 hardcode_shlibpath_var=no
9383 ;;
9384 *)
9385 hardcode_direct=yes
9386 hardcode_direct_absolute=yes
9387 export_dynamic_flag_spec='${wl}-E'
d9898ee8 9388
8d138742
CE
9389 # hardcode_minus_L: Not really in the search PATH,
9390 # but as the default location of the library.
9391 hardcode_minus_L=yes
9392 ;;
9393 esac
9394 fi
9395 ;;
d9898ee8 9396
8d138742
CE
9397 irix5* | irix6* | nonstopux*)
9398 if test "$GCC" = yes; then
b0322a85 9399 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8d138742
CE
9400 # Try to use the -exported_symbol ld option, if it does not
9401 # work, assume that -exports_file does not work either and
9402 # implicitly export all symbols.
b0322a85
CE
9403 # This should be the same for all languages, so no per-tag cache variable.
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9405$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9406if ${lt_cv_irix_exported_symbol+:} false; then :
9407 $as_echo_n "(cached) " >&6
9408else
9409 save_LDFLAGS="$LDFLAGS"
9410 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412/* end confdefs.h. */
9413int foo (void) { return 0; }
d9898ee8 9414_ACEOF
b0322a85
CE
9415if ac_fn_c_try_link "$LINENO"; then :
9416 lt_cv_irix_exported_symbol=yes
d9898ee8 9417else
b0322a85 9418 lt_cv_irix_exported_symbol=no
d9898ee8 9419fi
b0322a85
CE
9420rm -f core conftest.err conftest.$ac_objext \
9421 conftest$ac_exeext conftest.$ac_ext
9422 LDFLAGS="$save_LDFLAGS"
9423fi
9424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9425$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9426 if test "$lt_cv_irix_exported_symbol" = yes; then
9427 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9428 fi
d9898ee8 9429 else
b0322a85
CE
9430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9431 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8d138742
CE
9432 fi
9433 archive_cmds_need_lc='no'
9434 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9435 hardcode_libdir_separator=:
9436 inherit_rpath=yes
9437 link_all_deplibs=yes
9438 ;;
d9898ee8 9439
8d138742
CE
9440 netbsd*)
9441 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9443 else
9444 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
d9898ee8 9445 fi
8d138742
CE
9446 hardcode_libdir_flag_spec='-R$libdir'
9447 hardcode_direct=yes
9448 hardcode_shlibpath_var=no
9449 ;;
d9898ee8 9450
8d138742
CE
9451 newsos6)
9452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9453 hardcode_direct=yes
9454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9455 hardcode_libdir_separator=:
9456 hardcode_shlibpath_var=no
9457 ;;
d9898ee8 9458
8d138742
CE
9459 *nto* | *qnx*)
9460 ;;
d9898ee8 9461
8d138742
CE
9462 openbsd*)
9463 if test -f /usr/libexec/ld.so; then
9464 hardcode_direct=yes
9465 hardcode_shlibpath_var=no
9466 hardcode_direct_absolute=yes
9467 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9468 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9469 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9470 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9471 export_dynamic_flag_spec='${wl}-E'
9472 else
9473 case $host_os in
9474 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9475 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9476 hardcode_libdir_flag_spec='-R$libdir'
9477 ;;
9478 *)
9479 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9480 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9481 ;;
9482 esac
9483 fi
d9898ee8 9484 else
8d138742 9485 ld_shlibs=no
d9898ee8 9486 fi
d9898ee8 9487 ;;
8d138742
CE
9488
9489 os2*)
9490 hardcode_libdir_flag_spec='-L$libdir'
9491 hardcode_minus_L=yes
9492 allow_undefined_flag=unsupported
b0322a85 9493 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8d138742 9494 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
d9898ee8 9495 ;;
8d138742
CE
9496
9497 osf3*)
9498 if test "$GCC" = yes; then
9499 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
b0322a85 9500 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
d9898ee8 9501 else
8d138742 9502 allow_undefined_flag=' -expect_unresolved \*'
b0322a85 9503 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
d9898ee8 9504 fi
8d138742
CE
9505 archive_cmds_need_lc='no'
9506 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9507 hardcode_libdir_separator=:
d9898ee8 9508 ;;
d9898ee8 9509
8d138742
CE
9510 osf4* | osf5*) # as osf3* with the addition of -msym flag
9511 if test "$GCC" = yes; then
9512 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
b0322a85 9513 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8d138742
CE
9514 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9515 else
9516 allow_undefined_flag=' -expect_unresolved \*'
b0322a85 9517 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8d138742 9518 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
b0322a85 9519 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8d138742
CE
9520
9521 # Both c and cxx compiler support -rpath directly
9522 hardcode_libdir_flag_spec='-rpath $libdir'
9523 fi
9524 archive_cmds_need_lc='no'
9525 hardcode_libdir_separator=:
d9898ee8 9526 ;;
d9898ee8 9527
8d138742
CE
9528 solaris*)
9529 no_undefined_flag=' -z defs'
9530 if test "$GCC" = yes; then
9531 wlarc='${wl}'
b0322a85 9532 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742 9533 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
b0322a85 9534 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8d138742
CE
9535 else
9536 case `$CC -V 2>&1` in
9537 *"Compilers 5.0"*)
9538 wlarc=''
9539 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9540 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9541 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
d9898ee8 9542 ;;
9543 *)
8d138742
CE
9544 wlarc='${wl}'
9545 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9546 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9547 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d9898ee8 9548 ;;
9549 esac
8d138742
CE
9550 fi
9551 hardcode_libdir_flag_spec='-R$libdir'
9552 hardcode_shlibpath_var=no
9553 case $host_os in
9554 solaris2.[0-5] | solaris2.[0-5].*) ;;
d9898ee8 9555 *)
8d138742
CE
9556 # The compiler driver will combine and reorder linker options,
9557 # but understands `-z linker_flag'. GCC discards it without `$wl',
9558 # but is careful enough not to reorder.
9559 # Supported since Solaris 2.6 (maybe 2.5.1?)
9560 if test "$GCC" = yes; then
9561 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
d9898ee8 9562 else
8d138742 9563 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
d9898ee8 9564 fi
d9898ee8 9565 ;;
8d138742
CE
9566 esac
9567 link_all_deplibs=yes
9568 ;;
9569
9570 sunos4*)
9571 if test "x$host_vendor" = xsequent; then
9572 # Use $CC to link under sequent, because it throws in some extra .o
9573 # files that make .init and .fini sections work.
9574 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9575 else
9576 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9577 fi
9578 hardcode_libdir_flag_spec='-L$libdir'
9579 hardcode_direct=yes
9580 hardcode_minus_L=yes
9581 hardcode_shlibpath_var=no
9582 ;;
9583
9584 sysv4)
9585 case $host_vendor in
9586 sni)
9587 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9588 hardcode_direct=yes # is this really true???
d9898ee8 9589 ;;
8d138742
CE
9590 siemens)
9591 ## LD is ld it makes a PLAMLIB
9592 ## CC just makes a GrossModule.
9593 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9594 reload_cmds='$CC -r -o $output$reload_objs'
9595 hardcode_direct=no
d9898ee8 9596 ;;
8d138742
CE
9597 motorola)
9598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9599 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9600 ;;
9601 esac
9602 runpath_var='LD_RUN_PATH'
9603 hardcode_shlibpath_var=no
9604 ;;
9605
9606 sysv4.3*)
9607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9608 hardcode_shlibpath_var=no
9609 export_dynamic_flag_spec='-Bexport'
9610 ;;
d9898ee8 9611
8d138742
CE
9612 sysv4*MP*)
9613 if test -d /usr/nec; then
9614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9615 hardcode_shlibpath_var=no
d9898ee8 9616 runpath_var=LD_RUN_PATH
8d138742
CE
9617 hardcode_runpath_var=yes
9618 ld_shlibs=yes
ac40fd9e 9619 fi
8d138742 9620 ;;
d9898ee8 9621
8d138742
CE
9622 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9623 no_undefined_flag='${wl}-z,text'
9624 archive_cmds_need_lc=no
9625 hardcode_shlibpath_var=no
9626 runpath_var='LD_RUN_PATH'
d9898ee8 9627
8d138742
CE
9628 if test "$GCC" = yes; then
9629 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9630 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9631 else
9632 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9633 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9634 fi
9635 ;;
d9898ee8 9636
8d138742
CE
9637 sysv5* | sco3.2v5* | sco5v6*)
9638 # Note: We can NOT use -z defs as we might desire, because we do not
9639 # link with -lc, and that would cause any symbols used from libc to
9640 # always be unresolved, which means just about no library would
9641 # ever link correctly. If we're not using GNU ld we use -z text
9642 # though, which does catch some bad symbols but isn't as heavy-handed
9643 # as -z defs.
9644 no_undefined_flag='${wl}-z,text'
9645 allow_undefined_flag='${wl}-z,nodefs'
9646 archive_cmds_need_lc=no
9647 hardcode_shlibpath_var=no
9648 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9649 hardcode_libdir_separator=':'
9650 link_all_deplibs=yes
9651 export_dynamic_flag_spec='${wl}-Bexport'
9652 runpath_var='LD_RUN_PATH'
d9898ee8 9653
8d138742
CE
9654 if test "$GCC" = yes; then
9655 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9656 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9657 else
9658 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9659 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9660 fi
9661 ;;
d9898ee8 9662
8d138742
CE
9663 uts4*)
9664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9665 hardcode_libdir_flag_spec='-L$libdir'
9666 hardcode_shlibpath_var=no
9667 ;;
d9898ee8 9668
8d138742
CE
9669 *)
9670 ld_shlibs=no
9671 ;;
d9898ee8 9672 esac
d9898ee8 9673
8d138742
CE
9674 if test x$host_vendor = xsni; then
9675 case $host in
9676 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9677 export_dynamic_flag_spec='${wl}-Blargedynsym'
9678 ;;
9679 esac
9680 fi
9681 fi
d9898ee8 9682
b0322a85 9683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8d138742
CE
9684$as_echo "$ld_shlibs" >&6; }
9685test "$ld_shlibs" = no && can_build_shared=no
d9898ee8 9686
8d138742 9687with_gnu_ld=$with_gnu_ld
d9898ee8 9688
d9898ee8 9689
d9898ee8 9690
d9898ee8 9691
d9898ee8 9692
d9898ee8 9693
9694
d9898ee8 9695
d9898ee8 9696
d9898ee8 9697
d9898ee8 9698
d9898ee8 9699
d9898ee8 9700
d9898ee8 9701
d9898ee8 9702
8d138742
CE
9703#
9704# Do we need to explicitly link libc?
9705#
9706case "x$archive_cmds_need_lc" in
9707x|xyes)
9708 # Assume -lc should be added
9709 archive_cmds_need_lc=yes
d9898ee8 9710
8d138742
CE
9711 if test "$enable_shared" = yes && test "$GCC" = yes; then
9712 case $archive_cmds in
9713 *'~'*)
9714 # FIXME: we may have to deal with multi-command sequences.
ac40fd9e 9715 ;;
8d138742
CE
9716 '$CC '*)
9717 # Test whether the compiler implicitly links with -lc since on some
9718 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9719 # to ld, don't add -lc before -lgcc.
b0322a85 9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8d138742 9721$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
b0322a85
CE
9722if ${lt_cv_archive_cmds_need_lc+:} false; then :
9723 $as_echo_n "(cached) " >&6
9724else
9725 $RM conftest*
9726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
ac40fd9e 9727
b0322a85 9728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
9729 (eval $ac_compile) 2>&5
9730 ac_status=$?
b0322a85
CE
9731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9732 test $ac_status = 0; } 2>conftest.err; then
9733 soname=conftest
9734 lib=conftest
9735 libobjs=conftest.$ac_objext
9736 deplibs=
9737 wl=$lt_prog_compiler_wl
9738 pic_flag=$lt_prog_compiler_pic
9739 compiler_flags=-v
9740 linker_flags=-v
9741 verstring=
9742 output_objdir=.
9743 libname=conftest
9744 lt_save_allow_undefined_flag=$allow_undefined_flag
9745 allow_undefined_flag=
9746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8d138742
CE
9747 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9748 ac_status=$?
b0322a85
CE
9749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9750 test $ac_status = 0; }
9751 then
9752 lt_cv_archive_cmds_need_lc=no
9753 else
9754 lt_cv_archive_cmds_need_lc=yes
9755 fi
9756 allow_undefined_flag=$lt_save_allow_undefined_flag
9757 else
9758 cat conftest.err 1>&5
9759 fi
9760 $RM conftest*
9761
9762fi
9763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9764$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9765 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ac40fd9e 9766 ;;
9767 esac
8d138742 9768 fi
d9898ee8 9769 ;;
9770esac
9771
9772
d9898ee8 9773
d9898ee8 9774
d9898ee8 9775
d9898ee8 9776
d9898ee8 9777
d9898ee8 9778
d9898ee8 9779
d9898ee8 9780
d9898ee8 9781
d9898ee8 9782
d9898ee8 9783
d9898ee8 9784
d9898ee8 9785
d9898ee8 9786
9787
d9898ee8 9788
d9898ee8 9789
d9898ee8 9790
9791
d9898ee8 9792
d9898ee8 9793
d9898ee8 9794
d9898ee8 9795
d9898ee8 9796
d9898ee8 9797
d9898ee8 9798
ac40fd9e 9799
8d138742
CE
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
b0322a85 9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8d138742
CE
9924$as_echo_n "checking dynamic linker characteristics... " >&6; }
9925
9926if test "$GCC" = yes; then
9927 case $host_os in
9928 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9929 *) lt_awk_arg="/^libraries:/" ;;
9930 esac
b0322a85
CE
9931 case $host_os in
9932 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9933 *) lt_sed_strip_eq="s,=/,/,g" ;;
9934 esac
9935 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9936 case $lt_search_path_spec in
9937 *\;*)
8d138742
CE
9938 # if the path contains ";" then we assume it to be the separator
9939 # otherwise default to the standard path separator (i.e. ":") - it is
9940 # assumed that no part of a normal pathname contains ";" but that should
9941 # okay in the real world where ";" in dirpaths is itself problematic.
b0322a85
CE
9942 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9943 ;;
9944 *)
9945 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9946 ;;
9947 esac
8d138742
CE
9948 # Ok, now we have the path, separated by spaces, we can step through it
9949 # and add multilib dir if necessary.
9950 lt_tmp_lt_search_path_spec=
9951 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9952 for lt_sys_path in $lt_search_path_spec; do
9953 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9954 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9955 else
9956 test -d "$lt_sys_path" && \
9957 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9958 fi
9959 done
b0322a85 9960 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
8d138742
CE
9961BEGIN {RS=" "; FS="/|\n";} {
9962 lt_foo="";
9963 lt_count=0;
9964 for (lt_i = NF; lt_i > 0; lt_i--) {
9965 if ($lt_i != "" && $lt_i != ".") {
9966 if ($lt_i == "..") {
9967 lt_count++;
9968 } else {
9969 if (lt_count == 0) {
9970 lt_foo="/" $lt_i lt_foo;
9971 } else {
9972 lt_count--;
9973 }
9974 }
9975 }
9976 }
9977 if (lt_foo != "") { lt_freq[lt_foo]++; }
9978 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9979}'`
b0322a85
CE
9980 # AWK program above erroneously prepends '/' to C:/dos/paths
9981 # for these hosts.
9982 case $host_os in
9983 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9984 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9985 esac
9986 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
8d138742
CE
9987else
9988 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9989fi
9990library_names_spec=
9991libname_spec='lib$name'
9992soname_spec=
9993shrext_cmds=".so"
9994postinstall_cmds=
9995postuninstall_cmds=
9996finish_cmds=
9997finish_eval=
9998shlibpath_var=
9999shlibpath_overrides_runpath=unknown
10000version_type=none
10001dynamic_linker="$host_os ld.so"
10002sys_lib_dlsearch_path_spec="/lib /usr/lib"
10003need_lib_prefix=unknown
d9898ee8 10004hardcode_into_libs=no
10005
10006# when you set need_version to no, make sure it does not cause -set_version
10007# flags to be left without arguments
10008need_version=unknown
10009
10010case $host_os in
10011aix3*)
b0322a85 10012 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10013 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10014 shlibpath_var=LIBPATH
10015
10016 # AIX 3 has no versioning support, so we append a major version to the name.
10017 soname_spec='${libname}${release}${shared_ext}$major'
10018 ;;
10019
8d138742 10020aix[4-9]*)
b0322a85 10021 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10022 need_lib_prefix=no
10023 need_version=no
10024 hardcode_into_libs=yes
10025 if test "$host_cpu" = ia64; then
10026 # AIX 5 supports IA64
10027 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10028 shlibpath_var=LD_LIBRARY_PATH
10029 else
10030 # With GCC up to 2.95.x, collect2 would create an import file
10031 # for dependence libraries. The import file would start with
10032 # the line `#! .'. This would cause the generated library to
10033 # depend on `.', always an invalid library. This was fixed in
10034 # development snapshots of GCC prior to 3.0.
10035 case $host_os in
10036 aix4 | aix4.[01] | aix4.[01].*)
10037 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10038 echo ' yes '
8d138742 10039 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
d9898ee8 10040 :
10041 else
10042 can_build_shared=no
10043 fi
10044 ;;
10045 esac
10046 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10047 # soname into executable. Probably we can add versioning support to
10048 # collect2, so additional links can be useful in future.
10049 if test "$aix_use_runtimelinking" = yes; then
10050 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10051 # instead of lib<name>.a to let people know that these are not
10052 # typical AIX shared libraries.
10053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10054 else
10055 # We preserve .a as extension for shared libraries through AIX4.2
10056 # and later when we are not doing run time linking.
10057 library_names_spec='${libname}${release}.a $libname.a'
10058 soname_spec='${libname}${release}${shared_ext}$major'
10059 fi
10060 shlibpath_var=LIBPATH
10061 fi
10062 ;;
10063
10064amigaos*)
8d138742
CE
10065 case $host_cpu in
10066 powerpc)
10067 # Since July 2007 AmigaOS4 officially supports .so libraries.
10068 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10070 ;;
10071 m68k)
10072 library_names_spec='$libname.ixlibrary $libname.a'
10073 # Create ${libname}_ixlibrary.a entries in /sys/libs.
b0322a85 10074 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8d138742
CE
10075 ;;
10076 esac
d9898ee8 10077 ;;
10078
10079beos*)
10080 library_names_spec='${libname}${shared_ext}'
10081 dynamic_linker="$host_os ld.so"
10082 shlibpath_var=LIBRARY_PATH
10083 ;;
10084
10085bsdi[45]*)
b0322a85 10086 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10087 need_version=no
10088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10089 soname_spec='${libname}${release}${shared_ext}$major'
10090 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10091 shlibpath_var=LD_LIBRARY_PATH
10092 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10093 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10094 # the default ld.so.conf also contains /usr/contrib/lib and
10095 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10096 # libtool to hard-code these into programs
10097 ;;
10098
8d138742 10099cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 10100 version_type=windows
10101 shrext_cmds=".dll"
10102 need_version=no
10103 need_lib_prefix=no
10104
b0322a85
CE
10105 case $GCC,$cc_basename in
10106 yes,*)
10107 # gcc
d9898ee8 10108 library_names_spec='$libname.dll.a'
10109 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10110 postinstall_cmds='base_file=`basename \${file}`~
8d138742 10111 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
d9898ee8 10112 dldir=$destdir/`dirname \$dlpath`~
10113 test -d \$dldir || mkdir -p \$dldir~
10114 $install_prog $dir/$dlname \$dldir/$dlname~
8d138742
CE
10115 chmod a+x \$dldir/$dlname~
10116 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10117 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10118 fi'
d9898ee8 10119 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10120 dlpath=$dir/\$dldll~
8d138742 10121 $RM \$dlpath'
d9898ee8 10122 shlibpath_overrides_runpath=yes
10123
10124 case $host_os in
10125 cygwin*)
10126 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10127 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
b0322a85
CE
10128
10129 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d9898ee8 10130 ;;
8d138742 10131 mingw* | cegcc*)
d9898ee8 10132 # MinGW DLLs use traditional 'lib' prefix
10133 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d9898ee8 10134 ;;
10135 pw32*)
10136 # pw32 DLLs use 'pw' prefix rather than 'lib'
10137 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10138 ;;
10139 esac
b0322a85
CE
10140 dynamic_linker='Win32 ld.exe'
10141 ;;
10142
10143 *,cl*)
10144 # Native MSVC
10145 libname_spec='$name'
10146 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10147 library_names_spec='${libname}.dll.lib'
10148
10149 case $build_os in
10150 mingw*)
10151 sys_lib_search_path_spec=
10152 lt_save_ifs=$IFS
10153 IFS=';'
10154 for lt_path in $LIB
10155 do
10156 IFS=$lt_save_ifs
10157 # Let DOS variable expansion print the short 8.3 style file name.
10158 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10159 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10160 done
10161 IFS=$lt_save_ifs
10162 # Convert to MSYS style.
10163 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10164 ;;
10165 cygwin*)
10166 # Convert to unix form, then to dos form, then back to unix form
10167 # but this time dos style (no spaces!) so that the unix form looks
10168 # like /cygdrive/c/PROGRA~1:/cygdr...
10169 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10170 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10171 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10172 ;;
10173 *)
10174 sys_lib_search_path_spec="$LIB"
10175 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10176 # It is most probably a Windows format PATH.
10177 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10178 else
10179 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10180 fi
10181 # FIXME: find the short name or the path components, as spaces are
10182 # common. (e.g. "Program Files" -> "PROGRA~1")
10183 ;;
10184 esac
10185
10186 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10187 postinstall_cmds='base_file=`basename \${file}`~
10188 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10189 dldir=$destdir/`dirname \$dlpath`~
10190 test -d \$dldir || mkdir -p \$dldir~
10191 $install_prog $dir/$dlname \$dldir/$dlname'
10192 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10193 dlpath=$dir/\$dldll~
10194 $RM \$dlpath'
10195 shlibpath_overrides_runpath=yes
10196 dynamic_linker='Win32 link.exe'
d9898ee8 10197 ;;
10198
10199 *)
b0322a85 10200 # Assume MSVC wrapper
d9898ee8 10201 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
b0322a85 10202 dynamic_linker='Win32 ld.exe'
d9898ee8 10203 ;;
10204 esac
d9898ee8 10205 # FIXME: first we should search . and the directory the executable is in
10206 shlibpath_var=PATH
10207 ;;
10208
10209darwin* | rhapsody*)
10210 dynamic_linker="$host_os dyld"
10211 version_type=darwin
10212 need_lib_prefix=no
10213 need_version=no
8d138742 10214 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
d9898ee8 10215 soname_spec='${libname}${release}${major}$shared_ext'
10216 shlibpath_overrides_runpath=yes
10217 shlibpath_var=DYLD_LIBRARY_PATH
10218 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 10219
8d138742 10220 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 10221 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10222 ;;
10223
10224dgux*)
b0322a85 10225 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10226 need_lib_prefix=no
10227 need_version=no
10228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10229 soname_spec='${libname}${release}${shared_ext}$major'
10230 shlibpath_var=LD_LIBRARY_PATH
10231 ;;
10232
d9898ee8 10233freebsd* | dragonfly*)
10234 # DragonFly does not have aout. When/if they implement a new
10235 # versioning mechanism, adjust this.
10236 if test -x /usr/bin/objformat; then
10237 objformat=`/usr/bin/objformat`
10238 else
10239 case $host_os in
b0322a85 10240 freebsd[23].*) objformat=aout ;;
d9898ee8 10241 *) objformat=elf ;;
10242 esac
10243 fi
10244 version_type=freebsd-$objformat
10245 case $version_type in
10246 freebsd-elf*)
10247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10248 need_version=no
10249 need_lib_prefix=no
10250 ;;
10251 freebsd-*)
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10253 need_version=yes
10254 ;;
10255 esac
10256 shlibpath_var=LD_LIBRARY_PATH
10257 case $host_os in
b0322a85 10258 freebsd2.*)
d9898ee8 10259 shlibpath_overrides_runpath=yes
10260 ;;
10261 freebsd3.[01]* | freebsdelf3.[01]*)
10262 shlibpath_overrides_runpath=yes
10263 hardcode_into_libs=yes
10264 ;;
10265 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10266 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10267 shlibpath_overrides_runpath=no
10268 hardcode_into_libs=yes
10269 ;;
ac40fd9e 10270 *) # from 4.6 on, and DragonFly
d9898ee8 10271 shlibpath_overrides_runpath=yes
10272 hardcode_into_libs=yes
10273 ;;
10274 esac
10275 ;;
10276
10277gnu*)
b0322a85 10278 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10279 need_lib_prefix=no
10280 need_version=no
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10282 soname_spec='${libname}${release}${shared_ext}$major'
10283 shlibpath_var=LD_LIBRARY_PATH
b0322a85
CE
10284 shlibpath_overrides_runpath=no
10285 hardcode_into_libs=yes
10286 ;;
10287
10288haiku*)
10289 version_type=linux # correct to gnu/linux during the next big refactor
10290 need_lib_prefix=no
10291 need_version=no
10292 dynamic_linker="$host_os runtime_loader"
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10294 soname_spec='${libname}${release}${shared_ext}$major'
10295 shlibpath_var=LIBRARY_PATH
10296 shlibpath_overrides_runpath=yes
10297 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
d9898ee8 10298 hardcode_into_libs=yes
10299 ;;
10300
10301hpux9* | hpux10* | hpux11*)
10302 # Give a soname corresponding to the major version so that dld.sl refuses to
10303 # link against other versions.
10304 version_type=sunos
10305 need_lib_prefix=no
10306 need_version=no
10307 case $host_cpu in
10308 ia64*)
10309 shrext_cmds='.so'
10310 hardcode_into_libs=yes
10311 dynamic_linker="$host_os dld.so"
10312 shlibpath_var=LD_LIBRARY_PATH
10313 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10315 soname_spec='${libname}${release}${shared_ext}$major'
10316 if test "X$HPUX_IA64_MODE" = X32; then
10317 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10318 else
10319 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10320 fi
10321 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10322 ;;
8d138742
CE
10323 hppa*64*)
10324 shrext_cmds='.sl'
10325 hardcode_into_libs=yes
10326 dynamic_linker="$host_os dld.sl"
10327 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10328 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330 soname_spec='${libname}${release}${shared_ext}$major'
10331 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10333 ;;
10334 *)
d9898ee8 10335 shrext_cmds='.sl'
10336 dynamic_linker="$host_os dld.sl"
10337 shlibpath_var=SHLIB_PATH
10338 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340 soname_spec='${libname}${release}${shared_ext}$major'
10341 ;;
10342 esac
b0322a85 10343 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d9898ee8 10344 postinstall_cmds='chmod 555 $lib'
b0322a85
CE
10345 # or fails outright, so override atomically:
10346 install_override_mode=555
d9898ee8 10347 ;;
10348
ac40fd9e 10349interix[3-9]*)
b0322a85 10350 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10351 need_lib_prefix=no
10352 need_version=no
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10356 shlibpath_var=LD_LIBRARY_PATH
10357 shlibpath_overrides_runpath=no
10358 hardcode_into_libs=yes
10359 ;;
10360
10361irix5* | irix6* | nonstopux*)
10362 case $host_os in
10363 nonstopux*) version_type=nonstopux ;;
10364 *)
10365 if test "$lt_cv_prog_gnu_ld" = yes; then
b0322a85 10366 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10367 else
10368 version_type=irix
10369 fi ;;
10370 esac
10371 need_lib_prefix=no
10372 need_version=no
10373 soname_spec='${libname}${release}${shared_ext}$major'
10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10375 case $host_os in
10376 irix5* | nonstopux*)
10377 libsuff= shlibsuff=
10378 ;;
10379 *)
10380 case $LD in # libtool.m4 will add one of these switches to LD
10381 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10382 libsuff= shlibsuff= libmagic=32-bit;;
10383 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10384 libsuff=32 shlibsuff=N32 libmagic=N32;;
10385 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10386 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10387 *) libsuff= shlibsuff= libmagic=never-match;;
10388 esac
10389 ;;
10390 esac
10391 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10392 shlibpath_overrides_runpath=no
10393 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10394 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10395 hardcode_into_libs=yes
10396 ;;
10397
10398# No shared lib support for Linux oldld, aout, or coff.
10399linux*oldld* | linux*aout* | linux*coff*)
10400 dynamic_linker=no
10401 ;;
10402
b0322a85
CE
10403# This must be glibc/ELF.
10404linux* | k*bsd*-gnu | kopensolaris*-gnu)
10405 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10406 need_lib_prefix=no
10407 need_version=no
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10409 soname_spec='${libname}${release}${shared_ext}$major'
10410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10411 shlibpath_var=LD_LIBRARY_PATH
10412 shlibpath_overrides_runpath=no
b0322a85 10413
8d138742 10414 # Some binutils ld are patched to set DT_RUNPATH
b0322a85
CE
10415 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10416 $as_echo_n "(cached) " >&6
10417else
10418 lt_cv_shlibpath_overrides_runpath=no
10419 save_LDFLAGS=$LDFLAGS
10420 save_libdir=$libdir
10421 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10422 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
10424/* end confdefs.h. */
10425
10426int
10427main ()
10428{
10429
10430 ;
10431 return 0;
10432}
10433_ACEOF
b0322a85
CE
10434if ac_fn_c_try_link "$LINENO"; then :
10435 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10436 lt_cv_shlibpath_overrides_runpath=yes
8d138742 10437fi
b0322a85
CE
10438fi
10439rm -f core conftest.err conftest.$ac_objext \
10440 conftest$ac_exeext conftest.$ac_ext
10441 LDFLAGS=$save_LDFLAGS
10442 libdir=$save_libdir
8d138742
CE
10443
10444fi
10445
b0322a85 10446 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
8d138742 10447
d9898ee8 10448 # This implies no fast_install, which is unacceptable.
10449 # Some rework will be needed to allow for fast_install
10450 # before this can be enabled.
10451 hardcode_into_libs=yes
8d138742
CE
10452
10453 # Add ABI-specific directories to the system library path.
10454 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
d9898ee8 10455
10456 # Append ld.so.conf contents to the search path
10457 if test -f /etc/ld.so.conf; then
b0322a85 10458 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
ac40fd9e 10459 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
b0322a85 10460
d9898ee8 10461 fi
10462
10463 # We used to test for /lib/ld.so.1 and disable shared libraries on
10464 # powerpc, because MkLinux only supported shared libraries with the
10465 # GNU dynamic linker. Since this was broken with cross compilers,
10466 # most powerpc-linux boxes support dynamic linking these days and
10467 # people can always --disable-shared, the test was removed, and we
10468 # assume the GNU/Linux dynamic linker is in use.
10469 dynamic_linker='GNU/Linux ld.so'
10470 ;;
10471
d9898ee8 10472netbsd*)
10473 version_type=sunos
10474 need_lib_prefix=no
10475 need_version=no
8d138742 10476 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
d9898ee8 10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10478 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10479 dynamic_linker='NetBSD (a.out) ld.so'
10480 else
10481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10482 soname_spec='${libname}${release}${shared_ext}$major'
10483 dynamic_linker='NetBSD ld.elf_so'
10484 fi
10485 shlibpath_var=LD_LIBRARY_PATH
10486 shlibpath_overrides_runpath=yes
10487 hardcode_into_libs=yes
10488 ;;
10489
10490newsos6)
b0322a85 10491 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10493 shlibpath_var=LD_LIBRARY_PATH
10494 shlibpath_overrides_runpath=yes
10495 ;;
10496
8d138742
CE
10497*nto* | *qnx*)
10498 version_type=qnx
d9898ee8 10499 need_lib_prefix=no
10500 need_version=no
10501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10502 soname_spec='${libname}${release}${shared_ext}$major'
10503 shlibpath_var=LD_LIBRARY_PATH
8d138742
CE
10504 shlibpath_overrides_runpath=no
10505 hardcode_into_libs=yes
10506 dynamic_linker='ldqnx.so'
d9898ee8 10507 ;;
10508
10509openbsd*)
10510 version_type=sunos
10511 sys_lib_dlsearch_path_spec="/usr/lib"
10512 need_lib_prefix=no
10513 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10514 case $host_os in
8d138742
CE
10515 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10516 *) need_version=no ;;
d9898ee8 10517 esac
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10520 shlibpath_var=LD_LIBRARY_PATH
8d138742 10521 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d9898ee8 10522 case $host_os in
10523 openbsd2.[89] | openbsd2.[89].*)
10524 shlibpath_overrides_runpath=no
10525 ;;
10526 *)
10527 shlibpath_overrides_runpath=yes
10528 ;;
10529 esac
10530 else
10531 shlibpath_overrides_runpath=yes
10532 fi
10533 ;;
10534
10535os2*)
10536 libname_spec='$name'
10537 shrext_cmds=".dll"
10538 need_lib_prefix=no
10539 library_names_spec='$libname${shared_ext} $libname.a'
10540 dynamic_linker='OS/2 ld.exe'
10541 shlibpath_var=LIBPATH
10542 ;;
10543
10544osf3* | osf4* | osf5*)
10545 version_type=osf
10546 need_lib_prefix=no
10547 need_version=no
10548 soname_spec='${libname}${release}${shared_ext}$major'
10549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10550 shlibpath_var=LD_LIBRARY_PATH
10551 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10552 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10553 ;;
10554
ac40fd9e 10555rdos*)
10556 dynamic_linker=no
10557 ;;
10558
d9898ee8 10559solaris*)
b0322a85 10560 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10561 need_lib_prefix=no
10562 need_version=no
10563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10564 soname_spec='${libname}${release}${shared_ext}$major'
10565 shlibpath_var=LD_LIBRARY_PATH
10566 shlibpath_overrides_runpath=yes
10567 hardcode_into_libs=yes
10568 # ldd complains unless libraries are executable
10569 postinstall_cmds='chmod +x $lib'
10570 ;;
10571
10572sunos4*)
10573 version_type=sunos
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10575 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10576 shlibpath_var=LD_LIBRARY_PATH
10577 shlibpath_overrides_runpath=yes
10578 if test "$with_gnu_ld" = yes; then
10579 need_lib_prefix=no
10580 fi
10581 need_version=yes
10582 ;;
10583
10584sysv4 | sysv4.3*)
b0322a85 10585 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10587 soname_spec='${libname}${release}${shared_ext}$major'
10588 shlibpath_var=LD_LIBRARY_PATH
10589 case $host_vendor in
10590 sni)
10591 shlibpath_overrides_runpath=no
10592 need_lib_prefix=no
d9898ee8 10593 runpath_var=LD_RUN_PATH
10594 ;;
10595 siemens)
10596 need_lib_prefix=no
10597 ;;
10598 motorola)
10599 need_lib_prefix=no
10600 need_version=no
10601 shlibpath_overrides_runpath=no
10602 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10603 ;;
10604 esac
10605 ;;
10606
10607sysv4*MP*)
10608 if test -d /usr/nec ;then
b0322a85 10609 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10610 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10611 soname_spec='$libname${shared_ext}.$major'
10612 shlibpath_var=LD_LIBRARY_PATH
10613 fi
10614 ;;
10615
10616sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10617 version_type=freebsd-elf
10618 need_lib_prefix=no
10619 need_version=no
10620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10621 soname_spec='${libname}${release}${shared_ext}$major'
10622 shlibpath_var=LD_LIBRARY_PATH
8d138742 10623 shlibpath_overrides_runpath=yes
d9898ee8 10624 hardcode_into_libs=yes
10625 if test "$with_gnu_ld" = yes; then
10626 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
d9898ee8 10627 else
10628 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
d9898ee8 10629 case $host_os in
10630 sco3.2v5*)
10631 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10632 ;;
10633 esac
10634 fi
10635 sys_lib_dlsearch_path_spec='/usr/lib'
10636 ;;
10637
8d138742
CE
10638tpf*)
10639 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
b0322a85 10640 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
10641 need_lib_prefix=no
10642 need_version=no
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644 shlibpath_var=LD_LIBRARY_PATH
10645 shlibpath_overrides_runpath=no
10646 hardcode_into_libs=yes
10647 ;;
10648
d9898ee8 10649uts4*)
b0322a85 10650 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10652 soname_spec='${libname}${release}${shared_ext}$major'
10653 shlibpath_var=LD_LIBRARY_PATH
10654 ;;
10655
10656*)
10657 dynamic_linker=no
10658 ;;
10659esac
b0322a85 10660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8d138742 10661$as_echo "$dynamic_linker" >&6; }
d9898ee8 10662test "$dynamic_linker" = no && can_build_shared=no
10663
10664variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10665if test "$GCC" = yes; then
10666 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10667fi
10668
8d138742
CE
10669if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10670 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
d9898ee8 10671fi
8d138742
CE
10672if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10673 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
d9898ee8 10674fi
10675
10676
d9898ee8 10677
d9898ee8 10678
d9898ee8 10679
d9898ee8 10680
d9898ee8 10681
d9898ee8 10682
d9898ee8 10683
d9898ee8 10684
d9898ee8 10685
d9898ee8 10686
d9898ee8 10687
d9898ee8 10688
d9898ee8 10689
d9898ee8 10690
d9898ee8 10691
d9898ee8 10692
d9898ee8 10693
d9898ee8 10694
d9898ee8 10695
d9898ee8 10696
d9898ee8 10697
d9898ee8 10698
d9898ee8 10699
d9898ee8 10700
d9898ee8 10701
d9898ee8 10702
d9898ee8 10703
d9898ee8 10704
d9898ee8 10705
d9898ee8 10706
d9898ee8 10707
d9898ee8 10708
d9898ee8 10709
d9898ee8 10710
d9898ee8 10711
d9898ee8 10712
d9898ee8 10713
d9898ee8 10714
d9898ee8 10715
d9898ee8 10716
d9898ee8 10717
d9898ee8 10718
d9898ee8 10719
d9898ee8 10720
d9898ee8 10721
d9898ee8 10722
d9898ee8 10723
d9898ee8 10724
d9898ee8 10725
d9898ee8 10726
d9898ee8 10727
d9898ee8 10728
d9898ee8 10729
d9898ee8 10730
d9898ee8 10731
d9898ee8 10732
d9898ee8 10733
d9898ee8 10734
d9898ee8 10735
d9898ee8 10736
d9898ee8 10737
d9898ee8 10738
d9898ee8 10739
d9898ee8 10740
d9898ee8 10741
d9898ee8 10742
d9898ee8 10743
d9898ee8 10744
d9898ee8 10745
d9898ee8 10746
d9898ee8 10747
d9898ee8 10748
d9898ee8 10749
d9898ee8 10750
d9898ee8 10751
d9898ee8 10752
d9898ee8 10753
d9898ee8 10754
d9898ee8 10755
d9898ee8 10756
d9898ee8 10757
d9898ee8 10758
d9898ee8 10759
d9898ee8 10760
d9898ee8 10761
b0322a85
CE
10762
10763
10764
10765
10766
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8d138742
CE
10768$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10769hardcode_action=
10770if test -n "$hardcode_libdir_flag_spec" ||
10771 test -n "$runpath_var" ||
10772 test "X$hardcode_automatic" = "Xyes" ; then
d9898ee8 10773
8d138742
CE
10774 # We can hardcode non-existent directories.
10775 if test "$hardcode_direct" != no &&
10776 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10777 # have to relink, otherwise we might link with an installed library
10778 # when we should be linking with a yet-to-be-installed one
10779 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10780 test "$hardcode_minus_L" != no; then
10781 # Linking always hardcodes the temporary library directory.
10782 hardcode_action=relink
10783 else
10784 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10785 hardcode_action=immediate
10786 fi
10787else
10788 # We cannot hardcode anything, or else we can only hardcode existing
10789 # directories.
10790 hardcode_action=unsupported
10791fi
b0322a85 10792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8d138742 10793$as_echo "$hardcode_action" >&6; }
d9898ee8 10794
8d138742
CE
10795if test "$hardcode_action" = relink ||
10796 test "$inherit_rpath" = yes; then
10797 # Fast installation is not supported
10798 enable_fast_install=no
10799elif test "$shlibpath_overrides_runpath" = yes ||
10800 test "$enable_shared" = no; then
10801 # Fast installation is not necessary
10802 enable_fast_install=needless
10803fi
d9898ee8 10804
d9898ee8 10805
d9898ee8 10806
d9898ee8 10807
d9898ee8 10808
d9898ee8 10809
8d138742
CE
10810 if test "x$enable_dlopen" != xyes; then
10811 enable_dlopen=unknown
10812 enable_dlopen_self=unknown
10813 enable_dlopen_self_static=unknown
10814else
10815 lt_cv_dlopen=no
10816 lt_cv_dlopen_libs=
d9898ee8 10817
8d138742
CE
10818 case $host_os in
10819 beos*)
10820 lt_cv_dlopen="load_add_on"
10821 lt_cv_dlopen_libs=
10822 lt_cv_dlopen_self=yes
10823 ;;
d9898ee8 10824
8d138742
CE
10825 mingw* | pw32* | cegcc*)
10826 lt_cv_dlopen="LoadLibrary"
10827 lt_cv_dlopen_libs=
b0322a85 10828 ;;
d9898ee8 10829
b0322a85
CE
10830 cygwin*)
10831 lt_cv_dlopen="dlopen"
10832 lt_cv_dlopen_libs=
8d138742 10833 ;;
d9898ee8 10834
b0322a85
CE
10835 darwin*)
10836 # if libdl is installed we need to link against it
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10838$as_echo_n "checking for dlopen in -ldl... " >&6; }
10839if ${ac_cv_lib_dl_dlopen+:} false; then :
8d138742
CE
10840 $as_echo_n "(cached) " >&6
10841else
b0322a85
CE
10842 ac_check_lib_save_LIBS=$LIBS
10843LIBS="-ldl $LIBS"
10844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 10845/* end confdefs.h. */
d9898ee8 10846
8d138742
CE
10847/* Override any GCC internal prototype to avoid an error.
10848 Use char because int might match the return type of a GCC
10849 builtin and then its argument prototype would still apply. */
10850#ifdef __cplusplus
10851extern "C"
10852#endif
b0322a85 10853char dlopen ();
8d138742
CE
10854int
10855main ()
10856{
b0322a85 10857return dlopen ();
8d138742
CE
10858 ;
10859 return 0;
10860}
10861_ACEOF
b0322a85
CE
10862if ac_fn_c_try_link "$LINENO"; then :
10863 ac_cv_lib_dl_dlopen=yes
8d138742 10864else
b0322a85
CE
10865 ac_cv_lib_dl_dlopen=no
10866fi
10867rm -f core conftest.err conftest.$ac_objext \
10868 conftest$ac_exeext conftest.$ac_ext
10869LIBS=$ac_check_lib_save_LIBS
8d138742 10870fi
b0322a85
CE
10871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10872$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10873if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10874 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10875else
10876
10877 lt_cv_dlopen="dyld"
10878 lt_cv_dlopen_libs=
10879 lt_cv_dlopen_self=yes
d9898ee8 10880
8d138742 10881fi
b0322a85
CE
10882
10883 ;;
10884
10885 *)
10886 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10887if test "x$ac_cv_func_shl_load" = xyes; then :
8d138742
CE
10888 lt_cv_dlopen="shl_load"
10889else
b0322a85 10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8d138742 10891$as_echo_n "checking for shl_load in -ldld... " >&6; }
b0322a85 10892if ${ac_cv_lib_dld_shl_load+:} false; then :
8d138742
CE
10893 $as_echo_n "(cached) " >&6
10894else
10895 ac_check_lib_save_LIBS=$LIBS
10896LIBS="-ldld $LIBS"
b0322a85 10897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 10898/* end confdefs.h. */
d9898ee8 10899
8d138742
CE
10900/* Override any GCC internal prototype to avoid an error.
10901 Use char because int might match the return type of a GCC
10902 builtin and then its argument prototype would still apply. */
10903#ifdef __cplusplus
10904extern "C"
10905#endif
10906char shl_load ();
10907int
10908main ()
10909{
10910return shl_load ();
10911 ;
10912 return 0;
10913}
10914_ACEOF
b0322a85 10915if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
10916 ac_cv_lib_dld_shl_load=yes
10917else
b0322a85 10918 ac_cv_lib_dld_shl_load=no
8d138742 10919fi
b0322a85
CE
10920rm -f core conftest.err conftest.$ac_objext \
10921 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
10922LIBS=$ac_check_lib_save_LIBS
10923fi
b0322a85 10924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8d138742 10925$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
b0322a85 10926if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
8d138742
CE
10927 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10928else
b0322a85
CE
10929 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10930if test "x$ac_cv_func_dlopen" = xyes; then :
8d138742
CE
10931 lt_cv_dlopen="dlopen"
10932else
b0322a85 10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8d138742 10934$as_echo_n "checking for dlopen in -ldl... " >&6; }
b0322a85 10935if ${ac_cv_lib_dl_dlopen+:} false; then :
8d138742
CE
10936 $as_echo_n "(cached) " >&6
10937else
10938 ac_check_lib_save_LIBS=$LIBS
10939LIBS="-ldl $LIBS"
b0322a85 10940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 10941/* end confdefs.h. */
d9898ee8 10942
8d138742
CE
10943/* Override any GCC internal prototype to avoid an error.
10944 Use char because int might match the return type of a GCC
10945 builtin and then its argument prototype would still apply. */
10946#ifdef __cplusplus
10947extern "C"
10948#endif
10949char dlopen ();
10950int
10951main ()
10952{
10953return dlopen ();
10954 ;
10955 return 0;
10956}
10957_ACEOF
b0322a85 10958if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
10959 ac_cv_lib_dl_dlopen=yes
10960else
b0322a85 10961 ac_cv_lib_dl_dlopen=no
8d138742 10962fi
b0322a85
CE
10963rm -f core conftest.err conftest.$ac_objext \
10964 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
10965LIBS=$ac_check_lib_save_LIBS
10966fi
b0322a85 10967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8d138742 10968$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
b0322a85 10969if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8d138742
CE
10970 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10971else
b0322a85 10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8d138742 10973$as_echo_n "checking for dlopen in -lsvld... " >&6; }
b0322a85 10974if ${ac_cv_lib_svld_dlopen+:} false; then :
8d138742
CE
10975 $as_echo_n "(cached) " >&6
10976else
10977 ac_check_lib_save_LIBS=$LIBS
10978LIBS="-lsvld $LIBS"
b0322a85 10979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 10980/* end confdefs.h. */
d9898ee8 10981
8d138742
CE
10982/* Override any GCC internal prototype to avoid an error.
10983 Use char because int might match the return type of a GCC
10984 builtin and then its argument prototype would still apply. */
10985#ifdef __cplusplus
10986extern "C"
10987#endif
10988char dlopen ();
10989int
10990main ()
10991{
10992return dlopen ();
10993 ;
10994 return 0;
10995}
10996_ACEOF
b0322a85 10997if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
10998 ac_cv_lib_svld_dlopen=yes
10999else
b0322a85 11000 ac_cv_lib_svld_dlopen=no
8d138742 11001fi
b0322a85
CE
11002rm -f core conftest.err conftest.$ac_objext \
11003 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11004LIBS=$ac_check_lib_save_LIBS
11005fi
b0322a85 11006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8d138742 11007$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
b0322a85 11008if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
8d138742
CE
11009 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11010else
b0322a85 11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8d138742 11012$as_echo_n "checking for dld_link in -ldld... " >&6; }
b0322a85 11013if ${ac_cv_lib_dld_dld_link+:} false; then :
8d138742
CE
11014 $as_echo_n "(cached) " >&6
11015else
11016 ac_check_lib_save_LIBS=$LIBS
11017LIBS="-ldld $LIBS"
b0322a85 11018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11019/* end confdefs.h. */
d9898ee8 11020
8d138742
CE
11021/* Override any GCC internal prototype to avoid an error.
11022 Use char because int might match the return type of a GCC
11023 builtin and then its argument prototype would still apply. */
11024#ifdef __cplusplus
11025extern "C"
11026#endif
11027char dld_link ();
11028int
11029main ()
11030{
11031return dld_link ();
11032 ;
11033 return 0;
11034}
11035_ACEOF
b0322a85 11036if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
11037 ac_cv_lib_dld_dld_link=yes
11038else
b0322a85 11039 ac_cv_lib_dld_dld_link=no
8d138742 11040fi
b0322a85
CE
11041rm -f core conftest.err conftest.$ac_objext \
11042 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11043LIBS=$ac_check_lib_save_LIBS
11044fi
b0322a85 11045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8d138742 11046$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
b0322a85 11047if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
8d138742
CE
11048 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11049fi
d9898ee8 11050
d9898ee8 11051
8d138742 11052fi
d9898ee8 11053
d9898ee8 11054
8d138742 11055fi
d9898ee8 11056
ac40fd9e 11057
8d138742 11058fi
d9898ee8 11059
d9898ee8 11060
8d138742 11061fi
d9898ee8 11062
d9898ee8 11063
8d138742 11064fi
d9898ee8 11065
8d138742
CE
11066 ;;
11067 esac
d9898ee8 11068
8d138742
CE
11069 if test "x$lt_cv_dlopen" != xno; then
11070 enable_dlopen=yes
11071 else
11072 enable_dlopen=no
d9898ee8 11073 fi
11074
8d138742
CE
11075 case $lt_cv_dlopen in
11076 dlopen)
11077 save_CPPFLAGS="$CPPFLAGS"
11078 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d9898ee8 11079
8d138742
CE
11080 save_LDFLAGS="$LDFLAGS"
11081 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
d9898ee8 11082
8d138742
CE
11083 save_LIBS="$LIBS"
11084 LIBS="$lt_cv_dlopen_libs $LIBS"
d9898ee8 11085
b0322a85 11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8d138742 11087$as_echo_n "checking whether a program can dlopen itself... " >&6; }
b0322a85 11088if ${lt_cv_dlopen_self+:} false; then :
8d138742 11089 $as_echo_n "(cached) " >&6
d9898ee8 11090else
8d138742
CE
11091 if test "$cross_compiling" = yes; then :
11092 lt_cv_dlopen_self=cross
d9898ee8 11093else
8d138742
CE
11094 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11095 lt_status=$lt_dlunknown
11096 cat > conftest.$ac_ext <<_LT_EOF
b0322a85 11097#line $LINENO "configure"
8d138742 11098#include "confdefs.h"
d9898ee8 11099
8d138742
CE
11100#if HAVE_DLFCN_H
11101#include <dlfcn.h>
11102#endif
d9898ee8 11103
8d138742 11104#include <stdio.h>
d9898ee8 11105
8d138742
CE
11106#ifdef RTLD_GLOBAL
11107# define LT_DLGLOBAL RTLD_GLOBAL
11108#else
11109# ifdef DL_GLOBAL
11110# define LT_DLGLOBAL DL_GLOBAL
11111# else
11112# define LT_DLGLOBAL 0
11113# endif
11114#endif
d9898ee8 11115
8d138742
CE
11116/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11117 find out it does not work in some platform. */
11118#ifndef LT_DLLAZY_OR_NOW
11119# ifdef RTLD_LAZY
11120# define LT_DLLAZY_OR_NOW RTLD_LAZY
11121# else
11122# ifdef DL_LAZY
11123# define LT_DLLAZY_OR_NOW DL_LAZY
11124# else
11125# ifdef RTLD_NOW
11126# define LT_DLLAZY_OR_NOW RTLD_NOW
11127# else
11128# ifdef DL_NOW
11129# define LT_DLLAZY_OR_NOW DL_NOW
11130# else
11131# define LT_DLLAZY_OR_NOW 0
11132# endif
11133# endif
11134# endif
11135# endif
11136#endif
d9898ee8 11137
b0322a85
CE
11138/* When -fvisbility=hidden is used, assume the code has been annotated
11139 correspondingly for the symbols needed. */
11140#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11141int fnord () __attribute__((visibility("default")));
11142#endif
11143
11144int fnord () { return 42; }
8d138742
CE
11145int main ()
11146{
11147 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11148 int status = $lt_dlunknown;
11149
11150 if (self)
11151 {
11152 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b0322a85
CE
11153 else
11154 {
11155 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11156 else puts (dlerror ());
11157 }
8d138742
CE
11158 /* dlclose (self); */
11159 }
11160 else
11161 puts (dlerror ());
d9898ee8 11162
8d138742
CE
11163 return status;
11164}
11165_LT_EOF
b0322a85 11166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
11167 (eval $ac_link) 2>&5
11168 ac_status=$?
b0322a85
CE
11169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11170 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8d138742
CE
11171 (./conftest; exit; ) >&5 2>/dev/null
11172 lt_status=$?
11173 case x$lt_status in
11174 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11175 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11176 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11177 esac
11178 else :
11179 # compilation failed
11180 lt_cv_dlopen_self=no
11181 fi
d9898ee8 11182fi
8d138742 11183rm -fr conftest*
d9898ee8 11184
11185
d9898ee8 11186fi
b0322a85 11187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8d138742 11188$as_echo "$lt_cv_dlopen_self" >&6; }
d9898ee8 11189
8d138742
CE
11190 if test "x$lt_cv_dlopen_self" = xyes; then
11191 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
b0322a85 11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8d138742 11193$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
b0322a85 11194if ${lt_cv_dlopen_self_static+:} false; then :
8d138742
CE
11195 $as_echo_n "(cached) " >&6
11196else
11197 if test "$cross_compiling" = yes; then :
11198 lt_cv_dlopen_self_static=cross
11199else
11200 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11201 lt_status=$lt_dlunknown
11202 cat > conftest.$ac_ext <<_LT_EOF
b0322a85 11203#line $LINENO "configure"
8d138742 11204#include "confdefs.h"
d9898ee8 11205
8d138742
CE
11206#if HAVE_DLFCN_H
11207#include <dlfcn.h>
11208#endif
d9898ee8 11209
8d138742 11210#include <stdio.h>
d9898ee8 11211
8d138742
CE
11212#ifdef RTLD_GLOBAL
11213# define LT_DLGLOBAL RTLD_GLOBAL
11214#else
11215# ifdef DL_GLOBAL
11216# define LT_DLGLOBAL DL_GLOBAL
11217# else
11218# define LT_DLGLOBAL 0
11219# endif
11220#endif
d9898ee8 11221
8d138742
CE
11222/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11223 find out it does not work in some platform. */
11224#ifndef LT_DLLAZY_OR_NOW
11225# ifdef RTLD_LAZY
11226# define LT_DLLAZY_OR_NOW RTLD_LAZY
11227# else
11228# ifdef DL_LAZY
11229# define LT_DLLAZY_OR_NOW DL_LAZY
11230# else
11231# ifdef RTLD_NOW
11232# define LT_DLLAZY_OR_NOW RTLD_NOW
11233# else
11234# ifdef DL_NOW
11235# define LT_DLLAZY_OR_NOW DL_NOW
11236# else
11237# define LT_DLLAZY_OR_NOW 0
11238# endif
11239# endif
11240# endif
11241# endif
11242#endif
11243
b0322a85
CE
11244/* When -fvisbility=hidden is used, assume the code has been annotated
11245 correspondingly for the symbols needed. */
11246#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11247int fnord () __attribute__((visibility("default")));
11248#endif
11249
11250int fnord () { return 42; }
8d138742
CE
11251int main ()
11252{
11253 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11254 int status = $lt_dlunknown;
11255
11256 if (self)
11257 {
11258 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b0322a85
CE
11259 else
11260 {
11261 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11262 else puts (dlerror ());
11263 }
8d138742
CE
11264 /* dlclose (self); */
11265 }
11266 else
11267 puts (dlerror ());
11268
11269 return status;
11270}
11271_LT_EOF
b0322a85 11272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
11273 (eval $ac_link) 2>&5
11274 ac_status=$?
b0322a85
CE
11275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11276 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8d138742
CE
11277 (./conftest; exit; ) >&5 2>/dev/null
11278 lt_status=$?
11279 case x$lt_status in
11280 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11281 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11282 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
d9898ee8 11283 esac
8d138742
CE
11284 else :
11285 # compilation failed
11286 lt_cv_dlopen_self_static=no
11287 fi
11288fi
11289rm -fr conftest*
d9898ee8 11290
d9898ee8 11291
8d138742 11292fi
b0322a85 11293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
8d138742
CE
11294$as_echo "$lt_cv_dlopen_self_static" >&6; }
11295 fi
d9898ee8 11296
8d138742
CE
11297 CPPFLAGS="$save_CPPFLAGS"
11298 LDFLAGS="$save_LDFLAGS"
11299 LIBS="$save_LIBS"
11300 ;;
11301 esac
d9898ee8 11302
8d138742
CE
11303 case $lt_cv_dlopen_self in
11304 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11305 *) enable_dlopen_self=unknown ;;
11306 esac
d9898ee8 11307
8d138742
CE
11308 case $lt_cv_dlopen_self_static in
11309 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11310 *) enable_dlopen_self_static=unknown ;;
11311 esac
11312fi
d9898ee8 11313
d9898ee8 11314
d9898ee8 11315
d9898ee8 11316
d9898ee8 11317
d9898ee8 11318
d9898ee8 11319
d9898ee8 11320
d9898ee8 11321
d9898ee8 11322
d9898ee8 11323
d9898ee8 11324
d9898ee8 11325
d9898ee8 11326
8d138742
CE
11327
11328
11329
11330striplib=
11331old_striplib=
b0322a85 11332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8d138742
CE
11333$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11334if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11335 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11336 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
b0322a85 11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742
CE
11338$as_echo "yes" >&6; }
11339else
11340# FIXME - insert some real tests, host_os isn't really good enough
11341 case $host_os in
11342 darwin*)
11343 if test -n "$STRIP" ; then
11344 striplib="$STRIP -x"
11345 old_striplib="$STRIP -S"
b0322a85 11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742
CE
11347$as_echo "yes" >&6; }
11348 else
b0322a85 11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 11350$as_echo "no" >&6; }
d9898ee8 11351 fi
8d138742
CE
11352 ;;
11353 *)
b0322a85 11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
11355$as_echo "no" >&6; }
11356 ;;
11357 esac
11358fi
d9898ee8 11359
d9898ee8 11360
d9898ee8 11361
d9898ee8 11362
d9898ee8 11363
d9898ee8 11364
d9898ee8 11365
d9898ee8 11366
8d138742
CE
11367
11368
11369
11370
11371 # Report which library types will actually be built
b0322a85 11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
8d138742 11373$as_echo_n "checking if libtool supports shared libraries... " >&6; }
b0322a85 11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
8d138742
CE
11375$as_echo "$can_build_shared" >&6; }
11376
b0322a85 11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
8d138742
CE
11378$as_echo_n "checking whether to build shared libraries... " >&6; }
11379 test "$can_build_shared" = "no" && enable_shared=no
11380
11381 # On AIX, shared libraries and static libraries use the same namespace, and
11382 # are all built from PIC.
11383 case $host_os in
11384 aix3*)
11385 test "$enable_shared" = yes && enable_static=no
11386 if test -n "$RANLIB"; then
11387 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11388 postinstall_cmds='$RANLIB $lib'
11389 fi
11390 ;;
11391
11392 aix[4-9]*)
11393 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11394 test "$enable_shared" = yes && enable_static=no
11395 fi
11396 ;;
11397 esac
b0322a85 11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
8d138742
CE
11399$as_echo "$enable_shared" >&6; }
11400
b0322a85 11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
8d138742
CE
11402$as_echo_n "checking whether to build static libraries... " >&6; }
11403 # Make sure either enable_shared or enable_static is yes.
11404 test "$enable_shared" = yes || enable_static=yes
b0322a85 11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
8d138742
CE
11406$as_echo "$enable_static" >&6; }
11407
11408
11409
11410
11411fi
11412ac_ext=c
11413ac_cpp='$CPP $CPPFLAGS'
11414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11416ac_compiler_gnu=$ac_cv_c_compiler_gnu
11417
11418CC="$lt_save_CC"
11419
11420
11421
11422
11423
11424
11425
11426
11427
b0322a85
CE
11428
11429
11430
11431
11432
11433
11434 ac_config_commands="$ac_config_commands libtool"
11435
11436
11437
11438
11439# Only expand once:
11440
11441
11442
11443
11444for ac_header in errno.h fcntl.h sys/fcntl.h sys/ioctl.h sys/file.h unistd.h sysexits.h
11445do :
11446 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11447ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11448if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8d138742
CE
11449 cat >>confdefs.h <<_ACEOF
11450#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11451_ACEOF
d9898ee8 11452
8d138742 11453fi
d9898ee8 11454
8d138742 11455done
d9898ee8 11456
b0322a85 11457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8d138742 11458$as_echo_n "checking for ANSI C header files... " >&6; }
b0322a85 11459if ${ac_cv_header_stdc+:} false; then :
8d138742
CE
11460 $as_echo_n "(cached) " >&6
11461else
b0322a85 11462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
11463/* end confdefs.h. */
11464#include <stdlib.h>
11465#include <stdarg.h>
11466#include <string.h>
11467#include <float.h>
d9898ee8 11468
8d138742
CE
11469int
11470main ()
11471{
d9898ee8 11472
8d138742
CE
11473 ;
11474 return 0;
11475}
11476_ACEOF
b0322a85 11477if ac_fn_c_try_compile "$LINENO"; then :
8d138742
CE
11478 ac_cv_header_stdc=yes
11479else
b0322a85 11480 ac_cv_header_stdc=no
8d138742 11481fi
8d138742 11482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 11483
8d138742
CE
11484if test $ac_cv_header_stdc = yes; then
11485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
b0322a85 11486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
11487/* end confdefs.h. */
11488#include <string.h>
d9898ee8 11489
8d138742
CE
11490_ACEOF
11491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
11492 $EGREP "memchr" >/dev/null 2>&1; then :
11493
8d138742
CE
11494else
11495 ac_cv_header_stdc=no
11496fi
11497rm -f conftest*
d9898ee8 11498
8d138742 11499fi
d9898ee8 11500
8d138742
CE
11501if test $ac_cv_header_stdc = yes; then
11502 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
b0322a85 11503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
11504/* end confdefs.h. */
11505#include <stdlib.h>
d9898ee8 11506
8d138742
CE
11507_ACEOF
11508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
11509 $EGREP "free" >/dev/null 2>&1; then :
11510
8d138742
CE
11511else
11512 ac_cv_header_stdc=no
11513fi
11514rm -f conftest*
d9898ee8 11515
8d138742 11516fi
d9898ee8 11517
8d138742
CE
11518if test $ac_cv_header_stdc = yes; then
11519 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
b0322a85 11520 if test "$cross_compiling" = yes; then :
8d138742
CE
11521 :
11522else
b0322a85 11523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
11524/* end confdefs.h. */
11525#include <ctype.h>
11526#include <stdlib.h>
11527#if ((' ' & 0x0FF) == 0x020)
11528# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11529# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11530#else
11531# define ISLOWER(c) \
11532 (('a' <= (c) && (c) <= 'i') \
11533 || ('j' <= (c) && (c) <= 'r') \
11534 || ('s' <= (c) && (c) <= 'z'))
11535# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11536#endif
d9898ee8 11537
8d138742
CE
11538#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11539int
11540main ()
11541{
11542 int i;
11543 for (i = 0; i < 256; i++)
11544 if (XOR (islower (i), ISLOWER (i))
11545 || toupper (i) != TOUPPER (i))
11546 return 2;
11547 return 0;
11548}
11549_ACEOF
b0322a85 11550if ac_fn_c_try_run "$LINENO"; then :
d9898ee8 11551
b0322a85
CE
11552else
11553 ac_cv_header_stdc=no
8d138742 11554fi
b0322a85
CE
11555rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11556 conftest.$ac_objext conftest.beam conftest.$ac_ext
8d138742 11557fi
d9898ee8 11558
8d138742
CE
11559fi
11560fi
b0322a85 11561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8d138742
CE
11562$as_echo "$ac_cv_header_stdc" >&6; }
11563if test $ac_cv_header_stdc = yes; then
d9898ee8 11564
b0322a85 11565$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d9898ee8 11566
8d138742 11567fi
d9898ee8 11568
b0322a85 11569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8d138742 11570$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
b0322a85 11571if ${ac_cv_header_sys_wait_h+:} false; then :
8d138742
CE
11572 $as_echo_n "(cached) " >&6
11573else
b0322a85 11574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
11575/* end confdefs.h. */
11576#include <sys/types.h>
11577#include <sys/wait.h>
11578#ifndef WEXITSTATUS
11579# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11580#endif
11581#ifndef WIFEXITED
11582# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11583#endif
d9898ee8 11584
8d138742
CE
11585int
11586main ()
11587{
11588 int s;
11589 wait (&s);
11590 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11591 ;
11592 return 0;
11593}
11594_ACEOF
b0322a85 11595if ac_fn_c_try_compile "$LINENO"; then :
8d138742
CE
11596 ac_cv_header_sys_wait_h=yes
11597else
b0322a85 11598 ac_cv_header_sys_wait_h=no
8d138742 11599fi
8d138742
CE
11600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11601fi
b0322a85 11602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8d138742
CE
11603$as_echo "$ac_cv_header_sys_wait_h" >&6; }
11604if test $ac_cv_header_sys_wait_h = yes; then
d9898ee8 11605
b0322a85 11606$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
d9898ee8 11607
8d138742 11608fi
d9898ee8 11609
d9898ee8 11610
d9898ee8 11611
b0322a85 11612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8d138742 11613$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
b0322a85 11614if ${ac_cv_c_const+:} false; then :
8d138742
CE
11615 $as_echo_n "(cached) " >&6
11616else
b0322a85 11617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11618/* end confdefs.h. */
d9898ee8 11619
8d138742
CE
11620int
11621main ()
11622{
b0322a85 11623
8d138742 11624#ifndef __cplusplus
b0322a85 11625 /* Ultrix mips cc rejects this sort of thing. */
8d138742 11626 typedef int charset[2];
b0322a85 11627 const charset cs = { 0, 0 };
8d138742
CE
11628 /* SunOS 4.1.1 cc rejects this. */
11629 char const *const *pcpcc;
11630 char **ppc;
11631 /* NEC SVR4.0.2 mips cc rejects this. */
11632 struct point {int x, y;};
11633 static struct point const zero = {0,0};
11634 /* AIX XL C 1.02.0.0 rejects this.
11635 It does not let you subtract one const X* pointer from another in
11636 an arm of an if-expression whose if-part is not a constant
11637 expression */
11638 const char *g = "string";
11639 pcpcc = &g + (g ? g-g : 0);
11640 /* HPUX 7.0 cc rejects these. */
11641 ++pcpcc;
11642 ppc = (char**) pcpcc;
11643 pcpcc = (char const *const *) ppc;
b0322a85
CE
11644 { /* SCO 3.2v4 cc rejects this sort of thing. */
11645 char tx;
11646 char *t = &tx;
8d138742 11647 char const *s = 0 ? (char *) 0 : (char const *) 0;
d9898ee8 11648
8d138742
CE
11649 *t++ = 0;
11650 if (s) return 0;
11651 }
11652 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11653 int x[] = {25, 17};
11654 const int *foo = &x[0];
11655 ++foo;
11656 }
11657 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11658 typedef const int *iptr;
11659 iptr p = 0;
11660 ++p;
11661 }
b0322a85 11662 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8d138742 11663 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
b0322a85
CE
11664 struct s { int j; const int *ap[3]; } bx;
11665 struct s *b = &bx; b->j = 5;
8d138742
CE
11666 }
11667 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11668 const int foo = 10;
11669 if (!foo) return 0;
11670 }
11671 return !cs[0] && !zero.x;
11672#endif
d9898ee8 11673
8d138742
CE
11674 ;
11675 return 0;
11676}
11677_ACEOF
b0322a85 11678if ac_fn_c_try_compile "$LINENO"; then :
8d138742
CE
11679 ac_cv_c_const=yes
11680else
b0322a85 11681 ac_cv_c_const=no
8d138742 11682fi
8d138742
CE
11683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11684fi
b0322a85 11685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8d138742
CE
11686$as_echo "$ac_cv_c_const" >&6; }
11687if test $ac_cv_c_const = no; then
d9898ee8 11688
b0322a85 11689$as_echo "#define const /**/" >>confdefs.h
d9898ee8 11690
8d138742 11691fi
d9898ee8 11692
b0322a85
CE
11693ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11694if test "x$ac_cv_type_off_t" = xyes; then :
11695
d9898ee8 11696else
b0322a85
CE
11697
11698cat >>confdefs.h <<_ACEOF
11699#define off_t long int
8d138742 11700_ACEOF
b0322a85
CE
11701
11702fi
11703
11704ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11705if test "x$ac_cv_type_pid_t" = xyes; then :
11706
11707else
11708
11709cat >>confdefs.h <<_ACEOF
11710#define pid_t int
8d138742 11711_ACEOF
b0322a85
CE
11712
11713fi
11714
11715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11716$as_echo_n "checking return type of signal handlers... " >&6; }
11717if ${ac_cv_type_signal+:} false; then :
11718 $as_echo_n "(cached) " >&6
11719else
11720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11721/* end confdefs.h. */
b0322a85
CE
11722#include <sys/types.h>
11723#include <signal.h>
11724
8d138742
CE
11725int
11726main ()
11727{
b0322a85 11728return *(signal (0, 0)) (0) == 1;
8d138742
CE
11729 ;
11730 return 0;
11731}
11732_ACEOF
b0322a85
CE
11733if ac_fn_c_try_compile "$LINENO"; then :
11734 ac_cv_type_signal=int
8d138742 11735else
b0322a85 11736 ac_cv_type_signal=void
8d138742 11737fi
8d138742
CE
11738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11739fi
b0322a85
CE
11740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11741$as_echo "$ac_cv_type_signal" >&6; }
d9898ee8 11742
8d138742 11743cat >>confdefs.h <<_ACEOF
b0322a85 11744#define RETSIGTYPE $ac_cv_type_signal
8d138742 11745_ACEOF
d9898ee8 11746
b0322a85
CE
11747
11748# Check whether --enable-largefile was given.
11749if test "${enable_largefile+set}" = set; then :
11750 enableval=$enable_largefile;
8d138742 11751fi
d9898ee8 11752
b0322a85
CE
11753if test "$enable_largefile" != no; then
11754
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11756$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11757if ${ac_cv_sys_largefile_CC+:} false; then :
8d138742
CE
11758 $as_echo_n "(cached) " >&6
11759else
b0322a85
CE
11760 ac_cv_sys_largefile_CC=no
11761 if test "$GCC" != yes; then
11762 ac_save_CC=$CC
11763 while :; do
11764 # IRIX 6.2 and later do not support large files by default,
11765 # so use the C compiler's -n32 option if that helps.
11766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11767/* end confdefs.h. */
b0322a85
CE
11768#include <sys/types.h>
11769 /* Check that off_t can represent 2**63 - 1 correctly.
11770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11771 since some C++ compilers masquerading as C compilers
11772 incorrectly reject 9223372036854775807. */
11773#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11775 && LARGE_OFF_T % 2147483647 == 1)
11776 ? 1 : -1];
8d138742
CE
11777int
11778main ()
11779{
b0322a85 11780
8d138742
CE
11781 ;
11782 return 0;
11783}
11784_ACEOF
b0322a85
CE
11785 if ac_fn_c_try_compile "$LINENO"; then :
11786 break
11787fi
11788rm -f core conftest.err conftest.$ac_objext
11789 CC="$CC -n32"
11790 if ac_fn_c_try_compile "$LINENO"; then :
11791 ac_cv_sys_largefile_CC=' -n32'; break
11792fi
11793rm -f core conftest.err conftest.$ac_objext
11794 break
11795 done
11796 CC=$ac_save_CC
11797 rm -f conftest.$ac_ext
11798 fi
11799fi
11800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11801$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11802 if test "$ac_cv_sys_largefile_CC" != no; then
11803 CC=$CC$ac_cv_sys_largefile_CC
11804 fi
11805
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11807$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11808if ${ac_cv_sys_file_offset_bits+:} false; then :
11809 $as_echo_n "(cached) " >&6
11810else
11811 while :; do
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11813/* end confdefs.h. */
b0322a85
CE
11814#include <sys/types.h>
11815 /* Check that off_t can represent 2**63 - 1 correctly.
11816 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11817 since some C++ compilers masquerading as C compilers
11818 incorrectly reject 9223372036854775807. */
11819#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11820 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11821 && LARGE_OFF_T % 2147483647 == 1)
11822 ? 1 : -1];
8d138742
CE
11823int
11824main ()
11825{
b0322a85 11826
8d138742
CE
11827 ;
11828 return 0;
11829}
11830_ACEOF
b0322a85
CE
11831if ac_fn_c_try_compile "$LINENO"; then :
11832 ac_cv_sys_file_offset_bits=no; break
8d138742 11833fi
8d138742 11834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0322a85
CE
11835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11836/* end confdefs.h. */
11837#define _FILE_OFFSET_BITS 64
11838#include <sys/types.h>
11839 /* Check that off_t can represent 2**63 - 1 correctly.
11840 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11841 since some C++ compilers masquerading as C compilers
11842 incorrectly reject 9223372036854775807. */
11843#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11844 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11845 && LARGE_OFF_T % 2147483647 == 1)
11846 ? 1 : -1];
11847int
11848main ()
11849{
d9898ee8 11850
b0322a85
CE
11851 ;
11852 return 0;
11853}
11854_ACEOF
11855if ac_fn_c_try_compile "$LINENO"; then :
11856 ac_cv_sys_file_offset_bits=64; break
8d138742 11857fi
8d138742 11858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0322a85
CE
11859 ac_cv_sys_file_offset_bits=unknown
11860 break
11861done
8d138742 11862fi
b0322a85
CE
11863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11864$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11865case $ac_cv_sys_file_offset_bits in #(
11866 no | unknown) ;;
11867 *)
8d138742 11868cat >>confdefs.h <<_ACEOF
b0322a85 11869#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8d138742 11870_ACEOF
b0322a85
CE
11871;;
11872esac
11873rm -rf conftest*
11874 if test $ac_cv_sys_file_offset_bits = unknown; then
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11876$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11877if ${ac_cv_sys_large_files+:} false; then :
8d138742
CE
11878 $as_echo_n "(cached) " >&6
11879else
b0322a85
CE
11880 while :; do
11881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
11882/* end confdefs.h. */
11883#include <sys/types.h>
b0322a85
CE
11884 /* Check that off_t can represent 2**63 - 1 correctly.
11885 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11886 since some C++ compilers masquerading as C compilers
11887 incorrectly reject 9223372036854775807. */
11888#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11889 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11890 && LARGE_OFF_T % 2147483647 == 1)
11891 ? 1 : -1];
11892int
11893main ()
11894{
d9898ee8 11895
b0322a85
CE
11896 ;
11897 return 0;
11898}
11899_ACEOF
11900if ac_fn_c_try_compile "$LINENO"; then :
11901 ac_cv_sys_large_files=no; break
11902fi
11903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905/* end confdefs.h. */
11906#define _LARGE_FILES 1
11907#include <sys/types.h>
11908 /* Check that off_t can represent 2**63 - 1 correctly.
11909 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11910 since some C++ compilers masquerading as C compilers
11911 incorrectly reject 9223372036854775807. */
11912#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11913 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11914 && LARGE_OFF_T % 2147483647 == 1)
11915 ? 1 : -1];
8d138742
CE
11916int
11917main ()
11918{
b0322a85 11919
8d138742
CE
11920 ;
11921 return 0;
11922}
11923_ACEOF
b0322a85
CE
11924if ac_fn_c_try_compile "$LINENO"; then :
11925 ac_cv_sys_large_files=1; break
8d138742 11926fi
8d138742 11927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0322a85
CE
11928 ac_cv_sys_large_files=unknown
11929 break
11930done
8d138742 11931fi
b0322a85
CE
11932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11933$as_echo "$ac_cv_sys_large_files" >&6; }
11934case $ac_cv_sys_large_files in #(
11935 no | unknown) ;;
11936 *)
8d138742 11937cat >>confdefs.h <<_ACEOF
b0322a85 11938#define _LARGE_FILES $ac_cv_sys_large_files
8d138742 11939_ACEOF
b0322a85
CE
11940;;
11941esac
11942rm -rf conftest*
11943 fi
11944
d9898ee8 11945
b0322a85 11946fi
d9898ee8 11947
d9898ee8 11948
b0322a85 11949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
8d138742 11950$as_echo_n "checking for off64_t... " >&6; }
b0322a85 11951if ${liblock_cv_hasoff64t+:} false; then :
8d138742
CE
11952 $as_echo_n "(cached) " >&6
11953else
11954 liblock_cv_hasoff64t="no"
b0322a85 11955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11956/* end confdefs.h. */
d9898ee8 11957
8d138742 11958#include <sys/types.h>
d9898ee8 11959
8d138742
CE
11960int
11961main ()
11962{
d9898ee8 11963
8d138742 11964off64_t n;
d9898ee8 11965
8d138742 11966 n=0;
d9898ee8 11967
8d138742
CE
11968 ;
11969 return 0;
11970}
11971_ACEOF
b0322a85 11972if ac_fn_c_try_compile "$LINENO"; then :
8d138742 11973 liblock_cv_hasoff64t="yes"
8d138742 11974fi
8d138742 11975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 11976
d9898ee8 11977
8d138742 11978fi
b0322a85 11979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_hasoff64t" >&5
8d138742 11980$as_echo "$liblock_cv_hasoff64t" >&6; }
d9898ee8 11981
8d138742
CE
11982if test "$liblock_cv_hasoff64t" = "yes"
11983then
11984 LL_OFFSET_TYPE=off64_t
11985else
11986 LL_OFFSET_TYPE=off_t
11987fi
d9898ee8 11988
8d138742
CE
11989cat >>confdefs.h <<_ACEOF
11990#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
11991_ACEOF
d9898ee8 11992
11993
b0322a85 11994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock_t" >&5
8d138742 11995$as_echo_n "checking for flock_t... " >&6; }
b0322a85 11996if ${liblock_cv_hasflock_t+:} false; then :
8d138742 11997 $as_echo_n "(cached) " >&6
d9898ee8 11998else
8d138742 11999 liblock_cv_hasflock_t="no"
b0322a85 12000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12001/* end confdefs.h. */
d9898ee8 12002
8d138742
CE
12003#if HAVE_CONFIG_H
12004#include "config.h"
12005#endif
12006#include <sys/types.h>
12007#if HAVE_FCNTL_H
12008#include <fcntl.h>
12009#endif
12010#if HAVE_SYS_FCNTL_H
12011#include <sys/fcntl.h>
12012#endif
d9898ee8 12013
8d138742
CE
12014int
12015main ()
12016{
d9898ee8 12017
8d138742 12018flock_t t;
d9898ee8 12019
8d138742
CE
12020 ;
12021 return 0;
12022}
12023_ACEOF
b0322a85 12024if ac_fn_c_try_compile "$LINENO"; then :
8d138742 12025 liblock_cv_hasflock_t="yes"
8d138742 12026fi
8d138742 12027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 12028fi
b0322a85 12029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_hasflock_t" >&5
8d138742 12030$as_echo "$liblock_cv_hasflock_t" >&6; }
d9898ee8 12031
8d138742
CE
12032if test "$liblock_cv_hasflock_t" = "yes"
12033then
12034
12035cat >>confdefs.h <<_ACEOF
12036#define HAS_FLOCK_T 1
12037_ACEOF
d9898ee8 12038
8d138742 12039fi
d9898ee8 12040
d9898ee8 12041
8d138742 12042for ac_func in getdtablesize setpgrp sysconf
b0322a85
CE
12043do :
12044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12045ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12046if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8d138742
CE
12047 cat >>confdefs.h <<_ACEOF
12048#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12049_ACEOF
d9898ee8 12050
8d138742
CE
12051fi
12052done
d9898ee8 12053
b0322a85
CE
12054ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
12055if test "x$ac_cv_func_setpgrp" = xyes; then :
d9898ee8 12056
b0322a85 12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
8d138742 12058$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
b0322a85 12059if ${ac_cv_func_setpgrp_void+:} false; then :
8d138742
CE
12060 $as_echo_n "(cached) " >&6
12061else
b0322a85
CE
12062 if test "$cross_compiling" = yes; then :
12063 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
8d138742 12064else
b0322a85 12065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
12066/* end confdefs.h. */
12067$ac_includes_default
12068int
12069main ()
12070{
12071/* If this system has a BSD-style setpgrp which takes arguments,
12072 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12073 exit successfully. */
12074 return setpgrp (1,1) != -1;
12075 ;
12076 return 0;
12077}
12078_ACEOF
b0322a85 12079if ac_fn_c_try_run "$LINENO"; then :
8d138742
CE
12080 ac_cv_func_setpgrp_void=no
12081else
b0322a85 12082 ac_cv_func_setpgrp_void=yes
8d138742 12083fi
b0322a85
CE
12084rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12085 conftest.$ac_objext conftest.beam conftest.$ac_ext
8d138742 12086fi
d9898ee8 12087
8d138742 12088fi
b0322a85 12089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
8d138742
CE
12090$as_echo "$ac_cv_func_setpgrp_void" >&6; }
12091if test $ac_cv_func_setpgrp_void = yes; then
d9898ee8 12092
b0322a85 12093$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
d9898ee8 12094
8d138742 12095fi
d9898ee8 12096
12097
12098
8d138742 12099fi
d9898ee8 12100
12101
b0322a85 12102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl" >&5
8d138742 12103$as_echo_n "checking for fcntl... " >&6; }
b0322a85 12104if ${liblock_cv_hasfcntl+:} false; then :
8d138742 12105 $as_echo_n "(cached) " >&6
d9898ee8 12106else
8d138742 12107 liblock_cv_hasfcntl="no"
b0322a85 12108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 12109/* end confdefs.h. */
8d138742
CE
12110
12111#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12112#include "${srcdir}/lockfcntl.c"
12113
12114int
12115main ()
12116{
12117
12118int n;
12119
12120 ;
12121 return 0;
12122}
d9898ee8 12123_ACEOF
b0322a85 12124if ac_fn_c_try_link "$LINENO"; then :
8d138742 12125 liblock_cv_hasfcntl="yes"
d9898ee8 12126fi
b0322a85
CE
12127rm -f core conftest.err conftest.$ac_objext \
12128 conftest$ac_exeext conftest.$ac_ext
8d138742 12129fi
b0322a85 12130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_hasfcntl" >&5
8d138742
CE
12131$as_echo "$liblock_cv_hasfcntl" >&6; }
12132if test "$liblock_cv_hasfcntl" = "yes"
12133then
d9898ee8 12134
8d138742
CE
12135cat >>confdefs.h <<_ACEOF
12136#define HAS_FCNTL 1
12137_ACEOF
12138
12139fi
12140
b0322a85 12141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock" >&5
8d138742 12142$as_echo_n "checking for flock... " >&6; }
b0322a85 12143if ${liblock_cv_hasflock+:} false; then :
8d138742
CE
12144 $as_echo_n "(cached) " >&6
12145else
12146 liblock_cv_hasflock="no"
b0322a85 12147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 12148/* end confdefs.h. */
8d138742
CE
12149
12150#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12151#include "${srcdir}/lockflock.c"
12152
12153int
12154main ()
12155{
12156
12157int n;
12158
12159 ;
12160 return 0;
12161}
d9898ee8 12162_ACEOF
b0322a85 12163if ac_fn_c_try_link "$LINENO"; then :
8d138742 12164 liblock_cv_hasflock="yes"
d9898ee8 12165fi
b0322a85
CE
12166rm -f core conftest.err conftest.$ac_objext \
12167 conftest$ac_exeext conftest.$ac_ext
d9898ee8 12168fi
b0322a85 12169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_hasflock" >&5
8d138742
CE
12170$as_echo "$liblock_cv_hasflock" >&6; }
12171if test "$liblock_cv_hasflock" = "yes"
12172then
12173
12174cat >>confdefs.h <<_ACEOF
12175#define HAS_FLOCK 1
d9898ee8 12176_ACEOF
12177
12178fi
12179
b0322a85 12180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lockf" >&5
8d138742 12181$as_echo_n "checking for lockf... " >&6; }
b0322a85 12182if ${liblock_cv_haslockf+:} false; then :
8d138742 12183 $as_echo_n "(cached) " >&6
d9898ee8 12184else
8d138742 12185 liblock_cv_haslockf="no"
b0322a85 12186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 12187/* end confdefs.h. */
8d138742
CE
12188
12189#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12190#include "${srcdir}/locklockf.c"
d9898ee8 12191
12192int
12193main ()
12194{
12195
8d138742
CE
12196int n;
12197
d9898ee8 12198 ;
12199 return 0;
12200}
12201_ACEOF
b0322a85 12202if ac_fn_c_try_link "$LINENO"; then :
8d138742 12203 liblock_cv_haslockf="yes"
d9898ee8 12204fi
b0322a85
CE
12205rm -f core conftest.err conftest.$ac_objext \
12206 conftest$ac_exeext conftest.$ac_ext
8d138742 12207fi
b0322a85 12208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_haslockf" >&5
8d138742
CE
12209$as_echo "$liblock_cv_haslockf" >&6; }
12210if test "$liblock_cv_haslockf" = "yes"
12211then
d9898ee8 12212
8d138742
CE
12213cat >>confdefs.h <<_ACEOF
12214#define HAS_LOCKF 1
d9898ee8 12215_ACEOF
d9898ee8 12216
d9898ee8 12217fi
d9898ee8 12218
b0322a85 12219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for locking method" >&5
8d138742
CE
12220$as_echo_n "checking for locking method... " >&6; }
12221
12222# Check whether --with-locking-method was given.
b0322a85 12223if test "${with_locking_method+set}" = set; then :
8d138742
CE
12224 withval=$with_locking_method; lockmethod="$withval"
12225else
12226 lockmethod=""
d9898ee8 12227fi
12228
8d138742
CE
12229
12230case x$lockmethod in
12231xfcntl)
b0322a85 12232 if test "$cross_compiling" = yes; then :
8d138742
CE
12233 :
12234
12235else
b0322a85
CE
12236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237/* end confdefs.h. */
12238
12239#define USE_FCNTL 1
12240#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12241#include "${srcdir}/locktest.c"
d9898ee8 12242
b0322a85
CE
12243_ACEOF
12244if ac_fn_c_try_run "$LINENO"; then :
12245
12246else
12247 as_fn_error $? "fcntl test failed." "$LINENO" 5
8d138742 12248fi
b0322a85
CE
12249rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12250 conftest.$ac_objext conftest.beam conftest.$ac_ext
d9898ee8 12251fi
12252
8d138742
CE
12253 ;;
12254x)
b0322a85
CE
12255 if test "$cross_compiling" = yes; then :
12256 as_fn_error $? "--with-locking-method option required" "$LINENO" 5
d9898ee8 12257else
b0322a85 12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
12259/* end confdefs.h. */
12260
12261#define USE_FCNTL 1
12262#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12263#include "${srcdir}/locktest.c"
12264
d9898ee8 12265_ACEOF
b0322a85 12266if ac_fn_c_try_run "$LINENO"; then :
8d138742 12267 lockmethod=fcntl
d9898ee8 12268fi
b0322a85
CE
12269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12270 conftest.$ac_objext conftest.beam conftest.$ac_ext
d9898ee8 12271fi
dd184caf 12272
8d138742
CE
12273 ;;
12274esac
d9898ee8 12275
8d138742
CE
12276case x$lockmethod in
12277xlockf)
b0322a85 12278 if test "$cross_compiling" = yes; then :
8d138742 12279 :
d9898ee8 12280
d9898ee8 12281else
b0322a85 12282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 12283/* end confdefs.h. */
d9898ee8 12284
8d138742
CE
12285#define USE_LOCKF 1
12286#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12287#include "${srcdir}/locktest.c"
12288
d9898ee8 12289_ACEOF
b0322a85 12290if ac_fn_c_try_run "$LINENO"; then :
d9898ee8 12291
b0322a85
CE
12292else
12293 as_fn_error $? "lockf test failed." "$LINENO" 5
d9898ee8 12294fi
b0322a85
CE
12295rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12296 conftest.$ac_objext conftest.beam conftest.$ac_ext
d9898ee8 12297fi
12298
8d138742
CE
12299 ;;
12300x)
b0322a85
CE
12301 if test "$cross_compiling" = yes; then :
12302 as_fn_error $? "--with-locking-method option required" "$LINENO" 5
d9898ee8 12303else
b0322a85 12304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 12305/* end confdefs.h. */
12306
8d138742
CE
12307#define USE_LOCKF 1
12308#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12309#include "${srcdir}/locktest.c"
d9898ee8 12310
d9898ee8 12311_ACEOF
b0322a85 12312if ac_fn_c_try_run "$LINENO"; then :
8d138742 12313 lockmethod=lockf
d9898ee8 12314fi
b0322a85
CE
12315rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12316 conftest.$ac_objext conftest.beam conftest.$ac_ext
d9898ee8 12317fi
d9898ee8 12318
8d138742
CE
12319 ;;
12320esac
12321
12322
12323case x$lockmethod in
12324xflock)
b0322a85 12325 if test "$cross_compiling" = yes; then :
8d138742 12326 :
d9898ee8 12327
d9898ee8 12328else
b0322a85 12329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 12330/* end confdefs.h. */
8d138742
CE
12331
12332#define USE_FLOCK 1
12333#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12334#include "${srcdir}/locktest.c"
12335
d9898ee8 12336_ACEOF
b0322a85 12337if ac_fn_c_try_run "$LINENO"; then :
d9898ee8 12338
b0322a85
CE
12339else
12340 as_fn_error $? "flock test failed." "$LINENO" 5
d9898ee8 12341fi
b0322a85
CE
12342rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12343 conftest.$ac_objext conftest.beam conftest.$ac_ext
d9898ee8 12344fi
d9898ee8 12345
8d138742
CE
12346 ;;
12347x)
b0322a85
CE
12348 if test "$cross_compiling" = yes; then :
12349 as_fn_error $? "--with-locking-method option required" "$LINENO" 5
d9898ee8 12350else
b0322a85 12351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 12352/* end confdefs.h. */
d9898ee8 12353
8d138742
CE
12354#define USE_FLOCK 1
12355#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12356#include "${srcdir}/locktest.c"
12357
d9898ee8 12358_ACEOF
b0322a85 12359if ac_fn_c_try_run "$LINENO"; then :
8d138742 12360 lockmethod=flock
8d138742 12361fi
b0322a85
CE
12362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12363 conftest.$ac_objext conftest.beam conftest.$ac_ext
d9898ee8 12364fi
dd184caf 12365
8d138742
CE
12366 ;;
12367esac
12368
12369case x$lockmethod in
12370xlockf)
12371 ;;
12372xflock)
12373 ;;
12374xfcntl)
12375 ;;
12376*)
b0322a85 12377 as_fn_error $? "must specify --with-locking-method option" "$LINENO" 5
8d138742
CE
12378 ;;
12379esac
12380
b0322a85 12381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lockmethod" >&5
8d138742
CE
12382$as_echo "$lockmethod" >&6; }
12383
12384 if test "$lockmethod" = "fcntl"; then
12385 USE_FCNTL_TRUE=
12386 USE_FCNTL_FALSE='#'
12387else
12388 USE_FCNTL_TRUE='#'
12389 USE_FCNTL_FALSE=
12390fi
12391
12392 if test "$lockmethod" = "flock"; then
12393 USE_FLOCK_TRUE=
12394 USE_FLOCK_FALSE='#'
12395else
12396 USE_FLOCK_TRUE='#'
12397 USE_FLOCK_FALSE=
12398fi
12399
12400 if test "$lockmethod" = "lockf"; then
12401 USE_LOCKF_TRUE=
12402 USE_LOCKF_FALSE='#'
12403else
12404 USE_LOCKF_TRUE='#'
12405 USE_LOCKF_FALSE=
12406fi
12407
12408
12409 if test -d ${srcdir}/../docbook; then
12410 HAVE_SGML_TRUE=
12411 HAVE_SGML_FALSE='#'
12412else
12413 HAVE_SGML_TRUE='#'
12414 HAVE_SGML_FALSE=
d9898ee8 12415fi
8d138742
CE
12416
12417
d9898ee8 12418
12419cat >>confdefs.h <<_ACEOF
8d138742
CE
12420#define liblock_config_h 1
12421_ACEOF
12422
12423
12424ac_config_files="$ac_config_files Makefile"
12425
12426cat >confcache <<\_ACEOF
12427# This file is a shell script that caches the results of configure
12428# tests run on this system so they can be shared between configure
12429# scripts and configure runs, see configure's option --config-cache.
12430# It is not useful on other systems. If it contains results you don't
12431# want to keep, you may remove or edit it.
12432#
12433# config.status only pays attention to the cache file if you give it
12434# the --recheck option to rerun configure.
12435#
12436# `ac_cv_env_foo' variables (set or unset) will be overridden when
12437# loading this file, other *unset* `ac_cv_foo' will be assigned the
12438# following values.
12439
d9898ee8 12440_ACEOF
12441
8d138742
CE
12442# The following way of writing the cache mishandles newlines in values,
12443# but we know of no workaround that is simple, portable, and efficient.
12444# So, we kill variables containing newlines.
12445# Ultrix sh set writes to stderr and can't be redirected directly,
12446# and sets the high bit in the cache file unless we assign to the vars.
12447(
12448 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12449 eval ac_val=\$$ac_var
12450 case $ac_val in #(
12451 *${as_nl}*)
12452 case $ac_var in #(
b0322a85 12453 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8d138742
CE
12454$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12455 esac
12456 case $ac_var in #(
12457 _ | IFS | as_nl) ;; #(
12458 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b0322a85 12459 *) { eval $ac_var=; unset $ac_var;} ;;
8d138742
CE
12460 esac ;;
12461 esac
12462 done
12463
12464 (set) 2>&1 |
12465 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12466 *${as_nl}ac_space=\ *)
b0322a85
CE
12467 # `set' does not quote correctly, so add quotes: double-quote
12468 # substitution turns \\\\ into \\, and sed turns \\ into \.
8d138742
CE
12469 sed -n \
12470 "s/'/'\\\\''/g;
12471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12472 ;; #(
12473 *)
12474 # `set' quotes correctly as required by POSIX, so do not add quotes.
12475 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12476 ;;
12477 esac |
12478 sort
12479) |
12480 sed '
12481 /^ac_cv_env_/b end
12482 t clear
12483 :clear
12484 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12485 t end
12486 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12487 :end' >>confcache
12488if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12489 if test -w "$cache_file"; then
b0322a85
CE
12490 if test "x$cache_file" != "x/dev/null"; then
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8d138742 12492$as_echo "$as_me: updating cache $cache_file" >&6;}
b0322a85
CE
12493 if test ! -f "$cache_file" || test -h "$cache_file"; then
12494 cat confcache >"$cache_file"
12495 else
12496 case $cache_file in #(
12497 */* | ?:*)
12498 mv -f confcache "$cache_file"$$ &&
12499 mv -f "$cache_file"$$ "$cache_file" ;; #(
12500 *)
12501 mv -f confcache "$cache_file" ;;
12502 esac
12503 fi
12504 fi
8d138742 12505 else
b0322a85 12506 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8d138742
CE
12507$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12508 fi
12509fi
12510rm -f confcache
12511
12512test "x$prefix" = xNONE && prefix=$ac_default_prefix
12513# Let make expand exec_prefix.
12514test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12515
12516DEFS=-DHAVE_CONFIG_H
12517
12518ac_libobjs=
12519ac_ltlibobjs=
12520for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12521 # 1. Remove the extension, and $U if already installed.
12522 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12523 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12524 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12525 # will be set to the directory where LIBOBJS objects are built.
b0322a85
CE
12526 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12527 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8d138742
CE
12528done
12529LIBOBJS=$ac_libobjs
12530
12531LTLIBOBJS=$ac_ltlibobjs
12532
12533
b0322a85
CE
12534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12535$as_echo_n "checking that generated files are newer than configure... " >&6; }
12536 if test -n "$am_sleep_pid"; then
12537 # Hide warnings about reused PIDs.
12538 wait $am_sleep_pid 2>/dev/null
12539 fi
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12541$as_echo "done" >&6; }
8d138742
CE
12542 if test -n "$EXEEXT"; then
12543 am__EXEEXT_TRUE=
12544 am__EXEEXT_FALSE='#'
12545else
12546 am__EXEEXT_TRUE='#'
12547 am__EXEEXT_FALSE=
12548fi
12549
12550if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
b0322a85
CE
12551 as_fn_error $? "conditional \"AMDEP\" was never defined.
12552Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
12553fi
12554if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
b0322a85
CE
12555 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12556Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
12557fi
12558if test -z "${USE_FCNTL_TRUE}" && test -z "${USE_FCNTL_FALSE}"; then
b0322a85
CE
12559 as_fn_error $? "conditional \"USE_FCNTL\" was never defined.
12560Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
12561fi
12562if test -z "${USE_FLOCK_TRUE}" && test -z "${USE_FLOCK_FALSE}"; then
b0322a85
CE
12563 as_fn_error $? "conditional \"USE_FLOCK\" was never defined.
12564Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
12565fi
12566if test -z "${USE_LOCKF_TRUE}" && test -z "${USE_LOCKF_FALSE}"; then
b0322a85
CE
12567 as_fn_error $? "conditional \"USE_LOCKF\" was never defined.
12568Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
12569fi
12570if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
b0322a85
CE
12571 as_fn_error $? "conditional \"HAVE_SGML\" was never defined.
12572Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
12573fi
12574
b0322a85 12575: "${CONFIG_STATUS=./config.status}"
8d138742
CE
12576ac_write_fail=0
12577ac_clean_files_save=$ac_clean_files
12578ac_clean_files="$ac_clean_files $CONFIG_STATUS"
b0322a85 12579{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8d138742 12580$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
b0322a85
CE
12581as_write_fail=0
12582cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8d138742
CE
12583#! $SHELL
12584# Generated by $as_me.
12585# Run this file to recreate the current configuration.
12586# Compiler output produced by configure, useful for debugging
12587# configure, is in config.log if it exists.
12588
12589debug=false
12590ac_cs_recheck=false
12591ac_cs_silent=false
d9898ee8 12592
b0322a85
CE
12593SHELL=\${CONFIG_SHELL-$SHELL}
12594export SHELL
12595_ASEOF
12596cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12597## -------------------- ##
12598## M4sh Initialization. ##
12599## -------------------- ##
d9898ee8 12600
8d138742
CE
12601# Be more Bourne compatible
12602DUALCASE=1; export DUALCASE # for MKS sh
b0322a85 12603if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8d138742
CE
12604 emulate sh
12605 NULLCMD=:
12606 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12607 # is contrary to our usage. Disable this feature.
12608 alias -g '${1+"$@"}'='"$@"'
12609 setopt NO_GLOB_SUBST
d9898ee8 12610else
b0322a85
CE
12611 case `(set -o) 2>/dev/null` in #(
12612 *posix*) :
12613 set -o posix ;; #(
12614 *) :
12615 ;;
8d138742 12616esac
8d138742 12617fi
d9898ee8 12618
d9898ee8 12619
8d138742
CE
12620as_nl='
12621'
12622export as_nl
12623# Printing a long string crashes Solaris 7 /usr/bin/printf.
12624as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12625as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12626as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
b0322a85
CE
12627# Prefer a ksh shell builtin over an external printf program on Solaris,
12628# but without wasting forks for bash or zsh.
12629if test -z "$BASH_VERSION$ZSH_VERSION" \
12630 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12631 as_echo='print -r --'
12632 as_echo_n='print -rn --'
12633elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8d138742
CE
12634 as_echo='printf %s\n'
12635 as_echo_n='printf %s'
12636else
12637 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12638 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12639 as_echo_n='/usr/ucb/echo -n'
12640 else
12641 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12642 as_echo_n_body='eval
12643 arg=$1;
b0322a85 12644 case $arg in #(
8d138742
CE
12645 *"$as_nl"*)
12646 expr "X$arg" : "X\\(.*\\)$as_nl";
12647 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12648 esac;
12649 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12650 '
12651 export as_echo_n_body
12652 as_echo_n='sh -c $as_echo_n_body as_echo'
12653 fi
12654 export as_echo_body
12655 as_echo='sh -c $as_echo_body as_echo'
d9898ee8 12656fi
dd184caf 12657
8d138742
CE
12658# The user is always right.
12659if test "${PATH_SEPARATOR+set}" != set; then
12660 PATH_SEPARATOR=:
12661 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12662 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12663 PATH_SEPARATOR=';'
12664 }
d9898ee8 12665fi
d9898ee8 12666
d9898ee8 12667
8d138742
CE
12668# IFS
12669# We need space, tab and new line, in precisely that order. Quoting is
12670# there to prevent editors from complaining about space-tab.
12671# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12672# splitting by setting IFS to empty value.)
12673IFS=" "" $as_nl"
d9898ee8 12674
8d138742 12675# Find who we are. Look in the path if we contain no directory separator.
b0322a85
CE
12676as_myself=
12677case $0 in #((
8d138742
CE
12678 *[\\/]* ) as_myself=$0 ;;
12679 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12680for as_dir in $PATH
12681do
12682 IFS=$as_save_IFS
12683 test -z "$as_dir" && as_dir=.
b0322a85
CE
12684 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12685 done
8d138742 12686IFS=$as_save_IFS
d9898ee8 12687
8d138742
CE
12688 ;;
12689esac
12690# We did not find ourselves, most probably we were run as `sh COMMAND'
12691# in which case we are not to be found in the path.
12692if test "x$as_myself" = x; then
12693 as_myself=$0
12694fi
12695if test ! -f "$as_myself"; then
12696 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b0322a85 12697 exit 1
8d138742 12698fi
d9898ee8 12699
b0322a85
CE
12700# Unset variables that we do not need and which cause bugs (e.g. in
12701# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12702# suppresses any "Segmentation fault" message there. '((' could
12703# trigger a bug in pdksh 5.2.14.
12704for as_var in BASH_ENV ENV MAIL MAILPATH
12705do eval test x\${$as_var+set} = xset \
12706 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8d138742
CE
12707done
12708PS1='$ '
12709PS2='> '
12710PS4='+ '
d9898ee8 12711
8d138742
CE
12712# NLS nuisances.
12713LC_ALL=C
12714export LC_ALL
12715LANGUAGE=C
12716export LANGUAGE
d9898ee8 12717
b0322a85
CE
12718# CDPATH.
12719(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12720
12721
12722# as_fn_error STATUS ERROR [LINENO LOG_FD]
12723# ----------------------------------------
12724# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12725# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12726# script with STATUS, using 1 if that was 0.
12727as_fn_error ()
12728{
12729 as_status=$1; test $as_status -eq 0 && as_status=1
12730 if test "$4"; then
12731 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12732 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12733 fi
12734 $as_echo "$as_me: error: $2" >&2
12735 as_fn_exit $as_status
12736} # as_fn_error
12737
12738
12739# as_fn_set_status STATUS
12740# -----------------------
12741# Set $? to STATUS, without forking.
12742as_fn_set_status ()
12743{
12744 return $1
12745} # as_fn_set_status
12746
12747# as_fn_exit STATUS
12748# -----------------
12749# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12750as_fn_exit ()
12751{
12752 set +e
12753 as_fn_set_status $1
12754 exit $1
12755} # as_fn_exit
12756
12757# as_fn_unset VAR
12758# ---------------
12759# Portably unset VAR.
12760as_fn_unset ()
12761{
12762 { eval $1=; unset $1;}
12763}
12764as_unset=as_fn_unset
12765# as_fn_append VAR VALUE
12766# ----------------------
12767# Append the text in VALUE to the end of the definition contained in VAR. Take
12768# advantage of any shell optimizations that allow amortized linear growth over
12769# repeated appends, instead of the typical quadratic growth present in naive
12770# implementations.
12771if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12772 eval 'as_fn_append ()
12773 {
12774 eval $1+=\$2
12775 }'
12776else
12777 as_fn_append ()
12778 {
12779 eval $1=\$$1\$2
12780 }
12781fi # as_fn_append
12782
12783# as_fn_arith ARG...
12784# ------------------
12785# Perform arithmetic evaluation on the ARGs, and store the result in the
12786# global $as_val. Take advantage of shells that can avoid forks. The arguments
12787# must be portable across $(()) and expr.
12788if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12789 eval 'as_fn_arith ()
12790 {
12791 as_val=$(( $* ))
12792 }'
12793else
12794 as_fn_arith ()
12795 {
12796 as_val=`expr "$@" || test $? -eq 1`
12797 }
12798fi # as_fn_arith
12799
12800
8d138742
CE
12801if expr a : '\(a\)' >/dev/null 2>&1 &&
12802 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12803 as_expr=expr
d9898ee8 12804else
8d138742 12805 as_expr=false
d9898ee8 12806fi
dd184caf 12807
8d138742
CE
12808if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12809 as_basename=basename
12810else
12811 as_basename=false
d9898ee8 12812fi
d9898ee8 12813
b0322a85
CE
12814if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12815 as_dirname=dirname
12816else
12817 as_dirname=false
12818fi
d9898ee8 12819
8d138742
CE
12820as_me=`$as_basename -- "$0" ||
12821$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12822 X"$0" : 'X\(//\)$' \| \
12823 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12824$as_echo X/"$0" |
12825 sed '/^.*\/\([^/][^/]*\)\/*$/{
12826 s//\1/
12827 q
12828 }
12829 /^X\/\(\/\/\)$/{
12830 s//\1/
12831 q
12832 }
12833 /^X\/\(\/\).*/{
12834 s//\1/
12835 q
12836 }
12837 s/.*/./; q'`
d9898ee8 12838
b0322a85
CE
12839# Avoid depending upon Character Ranges.
12840as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12841as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12842as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12843as_cr_digits='0123456789'
12844as_cr_alnum=$as_cr_Letters$as_cr_digits
d9898ee8 12845
8d138742 12846ECHO_C= ECHO_N= ECHO_T=
b0322a85 12847case `echo -n x` in #(((((
8d138742 12848-n*)
b0322a85 12849 case `echo 'xy\c'` in
8d138742 12850 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
b0322a85
CE
12851 xy) ECHO_C='\c';;
12852 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12853 ECHO_T=' ';;
8d138742
CE
12854 esac;;
12855*)
12856 ECHO_N='-n';;
dd184caf 12857esac
b0322a85
CE
12858
12859rm -f conf$$ conf$$.exe conf$$.file
12860if test -d conf$$.dir; then
12861 rm -f conf$$.dir/conf$$.file
d9898ee8 12862else
b0322a85
CE
12863 rm -f conf$$.dir
12864 mkdir conf$$.dir 2>/dev/null
12865fi
12866if (echo >conf$$.file) 2>/dev/null; then
12867 if ln -s conf$$.file conf$$ 2>/dev/null; then
12868 as_ln_s='ln -s'
12869 # ... but there are two gotchas:
12870 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12871 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12872 # In both cases, we have to default to `cp -pR'.
12873 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12874 as_ln_s='cp -pR'
12875 elif ln conf$$.file conf$$ 2>/dev/null; then
12876 as_ln_s=ln
12877 else
12878 as_ln_s='cp -pR'
12879 fi
12880else
12881 as_ln_s='cp -pR'
d9898ee8 12882fi
b0322a85
CE
12883rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12884rmdir conf$$.dir 2>/dev/null
12885
12886
12887# as_fn_mkdir_p
12888# -------------
12889# Create "$as_dir" as a directory, including parents if necessary.
12890as_fn_mkdir_p ()
12891{
12892
12893 case $as_dir in #(
12894 -*) as_dir=./$as_dir;;
12895 esac
12896 test -d "$as_dir" || eval $as_mkdir_p || {
12897 as_dirs=
12898 while :; do
12899 case $as_dir in #(
12900 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12901 *) as_qdir=$as_dir;;
12902 esac
12903 as_dirs="'$as_qdir' $as_dirs"
12904 as_dir=`$as_dirname -- "$as_dir" ||
12905$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12906 X"$as_dir" : 'X\(//\)[^/]' \| \
12907 X"$as_dir" : 'X\(//\)$' \| \
12908 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12909$as_echo X"$as_dir" |
12910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12911 s//\1/
12912 q
12913 }
12914 /^X\(\/\/\)[^/].*/{
12915 s//\1/
12916 q
12917 }
12918 /^X\(\/\/\)$/{
12919 s//\1/
12920 q
12921 }
12922 /^X\(\/\).*/{
12923 s//\1/
12924 q
12925 }
12926 s/.*/./; q'`
12927 test -d "$as_dir" && break
12928 done
12929 test -z "$as_dirs" || eval "mkdir $as_dirs"
12930 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
dd184caf 12931
d9898ee8 12932
b0322a85 12933} # as_fn_mkdir_p
8d138742 12934if mkdir -p . 2>/dev/null; then
b0322a85 12935 as_mkdir_p='mkdir -p "$as_dir"'
8d138742
CE
12936else
12937 test -d ./-p && rmdir ./-p
12938 as_mkdir_p=false
d9898ee8 12939fi
d9898ee8 12940
b0322a85
CE
12941
12942# as_fn_executable_p FILE
12943# -----------------------
12944# Test if FILE is an executable regular file.
12945as_fn_executable_p ()
12946{
12947 test -f "$1" && test -x "$1"
12948} # as_fn_executable_p
12949as_test_x='test -x'
12950as_executable_p=as_fn_executable_p
d9898ee8 12951
8d138742
CE
12952# Sed expression to map a string onto a valid CPP name.
12953as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 12954
8d138742
CE
12955# Sed expression to map a string onto a valid variable name.
12956as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 12957
d9898ee8 12958
8d138742 12959exec 6>&1
b0322a85
CE
12960## ----------------------------------- ##
12961## Main body of $CONFIG_STATUS script. ##
12962## ----------------------------------- ##
12963_ASEOF
12964test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
d9898ee8 12965
b0322a85
CE
12966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12967# Save the log message, to keep $0 and so on meaningful, and to
8d138742
CE
12968# report actual input values of CONFIG_FILES etc. instead of their
12969# values after options handling.
12970ac_log="
12971This file was extended by liblock $as_me 0.60, which was
b0322a85 12972generated by GNU Autoconf 2.69. Invocation command line was
d9898ee8 12973
8d138742
CE
12974 CONFIG_FILES = $CONFIG_FILES
12975 CONFIG_HEADERS = $CONFIG_HEADERS
12976 CONFIG_LINKS = $CONFIG_LINKS
12977 CONFIG_COMMANDS = $CONFIG_COMMANDS
12978 $ $0 $@
dd184caf 12979
8d138742
CE
12980on `(hostname || uname -n) 2>/dev/null | sed 1q`
12981"
d9898ee8 12982
d9898ee8 12983_ACEOF
8d138742
CE
12984
12985case $ac_config_files in *"
12986"*) set x $ac_config_files; shift; ac_config_files=$*;;
dd184caf 12987esac
d9898ee8 12988
8d138742
CE
12989case $ac_config_headers in *"
12990"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12991esac
dd184caf 12992
12993
8d138742
CE
12994cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12995# Files that config.status was made for.
12996config_files="$ac_config_files"
12997config_headers="$ac_config_headers"
12998config_commands="$ac_config_commands"
d9898ee8 12999
d9898ee8 13000_ACEOF
13001
8d138742
CE
13002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13003ac_cs_usage="\
b0322a85
CE
13004\`$as_me' instantiates files and other configuration actions
13005from templates according to the current configuration. Unless the files
13006and actions are specified as TAGs, all are instantiated by default.
8d138742 13007
b0322a85 13008Usage: $0 [OPTION]... [TAG]...
d9898ee8 13009
8d138742
CE
13010 -h, --help print this help, then exit
13011 -V, --version print version number and configuration settings, then exit
b0322a85 13012 --config print configuration, then exit
8d138742
CE
13013 -q, --quiet, --silent
13014 do not print progress messages
13015 -d, --debug don't remove temporary files
13016 --recheck update $as_me by reconfiguring in the same conditions
13017 --file=FILE[:TEMPLATE]
13018 instantiate the configuration file FILE
13019 --header=FILE[:TEMPLATE]
13020 instantiate the configuration header FILE
d9898ee8 13021
8d138742
CE
13022Configuration files:
13023$config_files
d9898ee8 13024
8d138742
CE
13025Configuration headers:
13026$config_headers
13027
13028Configuration commands:
13029$config_commands
13030
b0322a85 13031Report bugs to <courier-users@lists.sourceforge.net>."
8d138742
CE
13032
13033_ACEOF
13034cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0322a85 13035ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8d138742
CE
13036ac_cs_version="\\
13037liblock config.status 0.60
b0322a85
CE
13038configured by $0, generated by GNU Autoconf 2.69,
13039 with options \\"\$ac_cs_config\\"
d9898ee8 13040
b0322a85 13041Copyright (C) 2012 Free Software Foundation, Inc.
8d138742
CE
13042This config.status script is free software; the Free Software Foundation
13043gives unlimited permission to copy, distribute and modify it."
d9898ee8 13044
8d138742
CE
13045ac_pwd='$ac_pwd'
13046srcdir='$srcdir'
13047INSTALL='$INSTALL'
13048MKDIR_P='$MKDIR_P'
13049AWK='$AWK'
13050test -n "\$AWK" || AWK=awk
d9898ee8 13051_ACEOF
d9898ee8 13052
8d138742
CE
13053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13054# The default lists apply if the user does not specify any file.
13055ac_need_defaults=:
13056while test $# != 0
13057do
13058 case $1 in
b0322a85 13059 --*=?*)
8d138742
CE
13060 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13061 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13062 ac_shift=:
13063 ;;
b0322a85
CE
13064 --*=)
13065 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13066 ac_optarg=
13067 ac_shift=:
13068 ;;
8d138742
CE
13069 *)
13070 ac_option=$1
13071 ac_optarg=$2
13072 ac_shift=shift
13073 ;;
13074 esac
d9898ee8 13075
8d138742
CE
13076 case $ac_option in
13077 # Handling of the options.
13078 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13079 ac_cs_recheck=: ;;
13080 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13081 $as_echo "$ac_cs_version"; exit ;;
b0322a85
CE
13082 --config | --confi | --conf | --con | --co | --c )
13083 $as_echo "$ac_cs_config"; exit ;;
8d138742
CE
13084 --debug | --debu | --deb | --de | --d | -d )
13085 debug=: ;;
13086 --file | --fil | --fi | --f )
13087 $ac_shift
13088 case $ac_optarg in
13089 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
b0322a85 13090 '') as_fn_error $? "missing file argument" ;;
8d138742 13091 esac
b0322a85 13092 as_fn_append CONFIG_FILES " '$ac_optarg'"
8d138742
CE
13093 ac_need_defaults=false;;
13094 --header | --heade | --head | --hea )
13095 $ac_shift
13096 case $ac_optarg in
13097 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13098 esac
b0322a85 13099 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8d138742
CE
13100 ac_need_defaults=false;;
13101 --he | --h)
13102 # Conflict between --help and --header
b0322a85
CE
13103 as_fn_error $? "ambiguous option: \`$1'
13104Try \`$0 --help' for more information.";;
8d138742
CE
13105 --help | --hel | -h )
13106 $as_echo "$ac_cs_usage"; exit ;;
13107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13108 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13109 ac_cs_silent=: ;;
d9898ee8 13110
8d138742 13111 # This is an error.
b0322a85
CE
13112 -*) as_fn_error $? "unrecognized option: \`$1'
13113Try \`$0 --help' for more information." ;;
d9898ee8 13114
b0322a85 13115 *) as_fn_append ac_config_targets " $1"
8d138742 13116 ac_need_defaults=false ;;
d9898ee8 13117
8d138742
CE
13118 esac
13119 shift
13120done
dd184caf 13121
8d138742 13122ac_configure_extra_args=
dd184caf 13123
8d138742
CE
13124if $ac_cs_silent; then
13125 exec 6>/dev/null
13126 ac_configure_extra_args="$ac_configure_extra_args --silent"
d9898ee8 13127fi
d9898ee8 13128
d9898ee8 13129_ACEOF
8d138742
CE
13130cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13131if \$ac_cs_recheck; then
b0322a85 13132 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8d138742
CE
13133 shift
13134 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13135 CONFIG_SHELL='$SHELL'
13136 export CONFIG_SHELL
13137 exec "\$@"
d9898ee8 13138fi
13139
d9898ee8 13140_ACEOF
8d138742
CE
13141cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13142exec 5>>config.log
13143{
13144 echo
13145 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13146## Running $as_me. ##
13147_ASBOX
13148 $as_echo "$ac_log"
13149} >&5
d9898ee8 13150
8d138742
CE
13151_ACEOF
13152cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13153#
13154# INIT-COMMANDS
13155#
13156AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d9898ee8 13157
d9898ee8 13158
8d138742
CE
13159# The HP-UX ksh and POSIX shell print the target directory to stdout
13160# if CDPATH is set.
13161(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d9898ee8 13162
8d138742
CE
13163sed_quote_subst='$sed_quote_subst'
13164double_quote_subst='$double_quote_subst'
13165delay_variable_subst='$delay_variable_subst'
b0322a85
CE
13166macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13167macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13168enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13169enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13170pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13171enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13172SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13173ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13174PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13175host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13176host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13177host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13178build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13179build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13180build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13181SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13182Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13183GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13184EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13185FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13186LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13187NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13188LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13189max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13190ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13191exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13192lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13193lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13194lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13195lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13196lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13197reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13198reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13199OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13200deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13201file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13202file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13203want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13204DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13205sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13206AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13207AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13208archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13209STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13210RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13211old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13212old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13213old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13214lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13215CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13216CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13217compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13218GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13219lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13220lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13221lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13222lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13223nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13224lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13225objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13226MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13227lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13228lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13229lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13230lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13231lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13232need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13233MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13234DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13235NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13236LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13237OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13238OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13239libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13240shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13241extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13242archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13243enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13244export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13245whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13246compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13247old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13248old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13249archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13250archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13251module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13252module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13253with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13254allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13255no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13256hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13257hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13258hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13259hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13260hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13261hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13262hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13263inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13264link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13265always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13266export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13267exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13268include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13269prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13270postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13271file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13272variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13273need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13274need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13275version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13276runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13277shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13278shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13279libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13280library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13281soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13282install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13283postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13284postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13285finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13286finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13287hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13288sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13289sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13290hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13291enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13292enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13293enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13294old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13295striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
8d138742
CE
13296
13297LTCC='$LTCC'
13298LTCFLAGS='$LTCFLAGS'
13299compiler='$compiler_DEFAULT'
13300
b0322a85
CE
13301# A function that is used when there is no print builtin or printf.
13302func_fallback_echo ()
13303{
13304 eval 'cat <<_LTECHO_EOF
13305\$1
13306_LTECHO_EOF'
13307}
13308
8d138742 13309# Quote evaled strings.
b0322a85
CE
13310for var in SHELL \
13311ECHO \
13312PATH_SEPARATOR \
13313SED \
8d138742
CE
13314GREP \
13315EGREP \
13316FGREP \
13317LD \
13318NM \
13319LN_S \
13320lt_SP2NL \
13321lt_NL2SP \
13322reload_flag \
13323OBJDUMP \
13324deplibs_check_method \
13325file_magic_cmd \
b0322a85
CE
13326file_magic_glob \
13327want_nocaseglob \
13328DLLTOOL \
13329sharedlib_from_linklib_cmd \
8d138742
CE
13330AR \
13331AR_FLAGS \
b0322a85 13332archiver_list_spec \
8d138742
CE
13333STRIP \
13334RANLIB \
13335CC \
13336CFLAGS \
13337compiler \
13338lt_cv_sys_global_symbol_pipe \
13339lt_cv_sys_global_symbol_to_cdecl \
13340lt_cv_sys_global_symbol_to_c_name_address \
13341lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
b0322a85 13342nm_file_list_spec \
8d138742 13343lt_prog_compiler_no_builtin_flag \
8d138742 13344lt_prog_compiler_pic \
b0322a85 13345lt_prog_compiler_wl \
8d138742
CE
13346lt_prog_compiler_static \
13347lt_cv_prog_compiler_c_o \
13348need_locks \
b0322a85 13349MANIFEST_TOOL \
8d138742
CE
13350DSYMUTIL \
13351NMEDIT \
13352LIPO \
13353OTOOL \
13354OTOOL64 \
13355shrext_cmds \
13356export_dynamic_flag_spec \
13357whole_archive_flag_spec \
13358compiler_needs_object \
13359with_gnu_ld \
13360allow_undefined_flag \
13361no_undefined_flag \
13362hardcode_libdir_flag_spec \
8d138742 13363hardcode_libdir_separator \
8d138742
CE
13364exclude_expsyms \
13365include_expsyms \
13366file_list_spec \
13367variables_saved_for_relink \
13368libname_spec \
13369library_names_spec \
13370soname_spec \
b0322a85 13371install_override_mode \
8d138742
CE
13372finish_eval \
13373old_striplib \
13374striplib; do
b0322a85 13375 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8d138742 13376 *[\\\\\\\`\\"\\\$]*)
b0322a85 13377 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
8d138742
CE
13378 ;;
13379 *)
13380 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13381 ;;
13382 esac
13383done
13384
13385# Double-quote double-evaled strings.
13386for var in reload_cmds \
13387old_postinstall_cmds \
13388old_postuninstall_cmds \
13389old_archive_cmds \
13390extract_expsyms_cmds \
13391old_archive_from_new_cmds \
13392old_archive_from_expsyms_cmds \
13393archive_cmds \
13394archive_expsym_cmds \
13395module_cmds \
13396module_expsym_cmds \
13397export_symbols_cmds \
13398prelink_cmds \
b0322a85 13399postlink_cmds \
8d138742
CE
13400postinstall_cmds \
13401postuninstall_cmds \
13402finish_cmds \
13403sys_lib_search_path_spec \
13404sys_lib_dlsearch_path_spec; do
b0322a85 13405 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8d138742 13406 *[\\\\\\\`\\"\\\$]*)
b0322a85 13407 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
8d138742
CE
13408 ;;
13409 *)
13410 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13411 ;;
13412 esac
13413done
13414
8d138742
CE
13415ac_aux_dir='$ac_aux_dir'
13416xsi_shell='$xsi_shell'
13417lt_shell_append='$lt_shell_append'
dd184caf 13418
8d138742
CE
13419# See if we are running on zsh, and set the options which allow our
13420# commands through without removal of \ escapes INIT.
13421if test -n "\${ZSH_VERSION+set}" ; then
13422 setopt NO_GLOB_SUBST
d9898ee8 13423fi
dd184caf 13424
d9898ee8 13425
8d138742
CE
13426 PACKAGE='$PACKAGE'
13427 VERSION='$VERSION'
13428 TIMESTAMP='$TIMESTAMP'
13429 RM='$RM'
13430 ofile='$ofile'
d9898ee8 13431
d9898ee8 13432
d9898ee8 13433
d9898ee8 13434
8d138742 13435_ACEOF
d9898ee8 13436
8d138742 13437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d9898ee8 13438
8d138742
CE
13439# Handling of arguments.
13440for ac_config_target in $ac_config_targets
13441do
13442 case $ac_config_target in
13443 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13444 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13445 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13446 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
d9898ee8 13447
b0322a85 13448 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8d138742
CE
13449 esac
13450done
dd184caf 13451
dd184caf 13452
8d138742
CE
13453# If the user did not use the arguments to specify the items to instantiate,
13454# then the envvar interface is used. Set only those that are not.
13455# We use the long form for the default assignment because of an extremely
13456# bizarre bug on SunOS 4.1.3.
13457if $ac_need_defaults; then
13458 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13459 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13460 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
d9898ee8 13461fi
d9898ee8 13462
8d138742
CE
13463# Have a temporary directory for convenience. Make it in the build tree
13464# simply because there is no reason against having it here, and in addition,
13465# creating and moving files from /tmp can sometimes cause problems.
13466# Hook for its removal unless debugging.
13467# Note that there is a small window in which the directory will not be cleaned:
13468# after its creation but before its name has been assigned to `$tmp'.
13469$debug ||
13470{
b0322a85 13471 tmp= ac_tmp=
8d138742 13472 trap 'exit_status=$?
b0322a85
CE
13473 : "${ac_tmp:=$tmp}"
13474 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8d138742 13475' 0
b0322a85 13476 trap 'as_fn_exit 1' 1 2 13 15
8d138742
CE
13477}
13478# Create a (secure) tmp directory for tmp files.
13479
13480{
13481 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b0322a85 13482 test -d "$tmp"
8d138742
CE
13483} ||
13484{
13485 tmp=./conf$$-$RANDOM
13486 (umask 077 && mkdir "$tmp")
b0322a85
CE
13487} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13488ac_tmp=$tmp
d9898ee8 13489
8d138742
CE
13490# Set up the scripts for CONFIG_FILES section.
13491# No need to generate them if there are no CONFIG_FILES.
13492# This happens for instance with `./config.status config.h'.
13493if test -n "$CONFIG_FILES"; then
d9898ee8 13494
d9898ee8 13495
b0322a85
CE
13496ac_cr=`echo X | tr X '\015'`
13497# On cygwin, bash can eat \r inside `` if the user requested igncr.
13498# But we know of no other shell where ac_cr would be empty at this
13499# point, so we can use a bashism as a fallback.
13500if test "x$ac_cr" = x; then
13501 eval ac_cr=\$\'\\r\'
13502fi
8d138742
CE
13503ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13504if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13505 ac_cs_awk_cr='\\r'
d9898ee8 13506else
8d138742 13507 ac_cs_awk_cr=$ac_cr
dd184caf 13508fi
13509
b0322a85 13510echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
d9898ee8 13511_ACEOF
d9898ee8 13512
d9898ee8 13513
8d138742
CE
13514{
13515 echo "cat >conf$$subs.awk <<_ACEOF" &&
13516 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13517 echo "_ACEOF"
13518} >conf$$subs.sh ||
b0322a85
CE
13519 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13520ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8d138742
CE
13521ac_delim='%!_!# '
13522for ac_last_try in false false false false false :; do
13523 . ./conf$$subs.sh ||
b0322a85 13524 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
dd184caf 13525
8d138742
CE
13526 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13527 if test $ac_delim_n = $ac_delim_num; then
13528 break
13529 elif $ac_last_try; then
b0322a85 13530 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8d138742
CE
13531 else
13532 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13533 fi
13534done
13535rm -f conf$$subs.sh
13536
13537cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0322a85 13538cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8d138742
CE
13539_ACEOF
13540sed -n '
13541h
13542s/^/S["/; s/!.*/"]=/
13543p
13544g
13545s/^[^!]*!//
13546:repl
13547t repl
13548s/'"$ac_delim"'$//
13549t delim
13550:nl
13551h
b0322a85 13552s/\(.\{148\}\)..*/\1/
8d138742
CE
13553t more1
13554s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13555p
13556n
13557b repl
13558:more1
13559s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13560p
13561g
13562s/.\{148\}//
13563t nl
13564:delim
13565h
b0322a85 13566s/\(.\{148\}\)..*/\1/
8d138742
CE
13567t more2
13568s/["\\]/\\&/g; s/^/"/; s/$/"/
13569p
13570b
13571:more2
13572s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13573p
13574g
13575s/.\{148\}//
13576t delim
13577' <conf$$subs.awk | sed '
13578/^[^""]/{
13579 N
13580 s/\n//
13581}
13582' >>$CONFIG_STATUS || ac_write_fail=1
13583rm -f conf$$subs.awk
13584cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13585_ACAWK
b0322a85 13586cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8d138742
CE
13587 for (key in S) S_is_set[key] = 1
13588 FS = "\a"
d9898ee8 13589
8d138742
CE
13590}
13591{
13592 line = $ 0
13593 nfields = split(line, field, "@")
13594 substed = 0
13595 len = length(field[1])
13596 for (i = 2; i < nfields; i++) {
13597 key = field[i]
13598 keylen = length(key)
13599 if (S_is_set[key]) {
13600 value = S[key]
13601 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13602 len += length(value) + length(field[++i])
13603 substed = 1
13604 } else
13605 len += 1 + keylen
13606 }
d9898ee8 13607
8d138742
CE
13608 print line
13609}
13610
13611_ACAWK
d9898ee8 13612_ACEOF
8d138742
CE
13613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13614if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13615 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
d9898ee8 13616else
8d138742 13617 cat
b0322a85
CE
13618fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13619 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8d138742 13620_ACEOF
d9898ee8 13621
b0322a85
CE
13622# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13623# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8d138742
CE
13624# trailing colons and then remove the whole line if VPATH becomes empty
13625# (actually we leave an empty line to preserve line numbers).
13626if test "x$srcdir" = x.; then
b0322a85
CE
13627 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13628h
13629s///
13630s/^/:/
13631s/[ ]*$/:/
13632s/:\$(srcdir):/:/g
13633s/:\${srcdir}:/:/g
13634s/:@srcdir@:/:/g
13635s/^:*//
8d138742 13636s/:*$//
b0322a85
CE
13637x
13638s/\(=[ ]*\).*/\1/
13639G
13640s/\n//
8d138742
CE
13641s/^[^=]*=[ ]*$//
13642}'
d9898ee8 13643fi
d9898ee8 13644
8d138742
CE
13645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13646fi # test -n "$CONFIG_FILES"
d9898ee8 13647
8d138742
CE
13648# Set up the scripts for CONFIG_HEADERS section.
13649# No need to generate them if there are no CONFIG_HEADERS.
13650# This happens for instance with `./config.status Makefile'.
13651if test -n "$CONFIG_HEADERS"; then
b0322a85 13652cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8d138742 13653BEGIN {
d9898ee8 13654_ACEOF
dd184caf 13655
8d138742
CE
13656# Transform confdefs.h into an awk script `defines.awk', embedded as
13657# here-document in config.status, that substitutes the proper values into
13658# config.h.in to produce config.h.
dd184caf 13659
8d138742
CE
13660# Create a delimiter string that does not exist in confdefs.h, to ease
13661# handling of long lines.
13662ac_delim='%!_!# '
13663for ac_last_try in false false :; do
b0322a85
CE
13664 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13665 if test -z "$ac_tt"; then
8d138742
CE
13666 break
13667 elif $ac_last_try; then
b0322a85 13668 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8d138742
CE
13669 else
13670 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13671 fi
13672done
d9898ee8 13673
8d138742
CE
13674# For the awk script, D is an array of macro values keyed by name,
13675# likewise P contains macro parameters if any. Preserve backslash
13676# newline sequences.
d9898ee8 13677
8d138742
CE
13678ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13679sed -n '
13680s/.\{148\}/&'"$ac_delim"'/g
13681t rset
13682:rset
13683s/^[ ]*#[ ]*define[ ][ ]*/ /
13684t def
13685d
13686:def
13687s/\\$//
13688t bsnl
13689s/["\\]/\\&/g
13690s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13691D["\1"]=" \3"/p
13692s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13693d
13694:bsnl
13695s/["\\]/\\&/g
13696s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13697D["\1"]=" \3\\\\\\n"\\/p
13698t cont
13699s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13700t cont
13701d
13702:cont
13703n
13704s/.\{148\}/&'"$ac_delim"'/g
13705t clear
13706:clear
13707s/\\$//
13708t bsnlc
13709s/["\\]/\\&/g; s/^/"/; s/$/"/p
13710d
13711:bsnlc
13712s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13713b cont
13714' <confdefs.h | sed '
13715s/'"$ac_delim"'/"\\\
13716"/g' >>$CONFIG_STATUS || ac_write_fail=1
13717
13718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13719 for (key in D) D_is_set[key] = 1
13720 FS = "\a"
13721}
13722/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13723 line = \$ 0
13724 split(line, arg, " ")
13725 if (arg[1] == "#") {
13726 defundef = arg[2]
13727 mac1 = arg[3]
13728 } else {
13729 defundef = substr(arg[1], 2)
13730 mac1 = arg[2]
13731 }
13732 split(mac1, mac2, "(") #)
13733 macro = mac2[1]
13734 prefix = substr(line, 1, index(line, defundef) - 1)
13735 if (D_is_set[macro]) {
13736 # Preserve the white space surrounding the "#".
13737 print prefix "define", macro P[macro] D[macro]
13738 next
13739 } else {
13740 # Replace #undef with comments. This is necessary, for example,
13741 # in the case of _POSIX_SOURCE, which is predefined and required
13742 # on some systems where configure will not decide to define it.
13743 if (defundef == "undef") {
13744 print "/*", prefix defundef, macro, "*/"
13745 next
13746 }
13747 }
13748}
13749{ print }
13750_ACAWK
d9898ee8 13751_ACEOF
8d138742 13752cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0322a85 13753 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8d138742 13754fi # test -n "$CONFIG_HEADERS"
dd184caf 13755
13756
8d138742
CE
13757eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13758shift
13759for ac_tag
13760do
13761 case $ac_tag in
13762 :[FHLC]) ac_mode=$ac_tag; continue;;
13763 esac
13764 case $ac_mode$ac_tag in
13765 :[FHL]*:*);;
b0322a85 13766 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8d138742
CE
13767 :[FH]-) ac_tag=-:-;;
13768 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13769 esac
13770 ac_save_IFS=$IFS
13771 IFS=:
13772 set x $ac_tag
13773 IFS=$ac_save_IFS
13774 shift
13775 ac_file=$1
13776 shift
d9898ee8 13777
8d138742
CE
13778 case $ac_mode in
13779 :L) ac_source=$1;;
13780 :[FH])
13781 ac_file_inputs=
13782 for ac_f
13783 do
13784 case $ac_f in
b0322a85 13785 -) ac_f="$ac_tmp/stdin";;
8d138742
CE
13786 *) # Look for the file first in the build tree, then in the source tree
13787 # (if the path is not absolute). The absolute path cannot be DOS-style,
13788 # because $ac_f cannot contain `:'.
13789 test -f "$ac_f" ||
13790 case $ac_f in
13791 [\\/$]*) false;;
13792 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13793 esac ||
b0322a85 13794 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8d138742
CE
13795 esac
13796 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
b0322a85 13797 as_fn_append ac_file_inputs " '$ac_f'"
8d138742 13798 done
d9898ee8 13799
8d138742
CE
13800 # Let's still pretend it is `configure' which instantiates (i.e., don't
13801 # use $as_me), people would be surprised to read:
13802 # /* config.h. Generated by config.status. */
13803 configure_input='Generated from '`
13804 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13805 `' by configure.'
13806 if test x"$ac_file" != x-; then
13807 configure_input="$ac_file. $configure_input"
b0322a85 13808 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8d138742
CE
13809$as_echo "$as_me: creating $ac_file" >&6;}
13810 fi
13811 # Neutralize special characters interpreted by sed in replacement strings.
13812 case $configure_input in #(
13813 *\&* | *\|* | *\\* )
13814 ac_sed_conf_input=`$as_echo "$configure_input" |
13815 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13816 *) ac_sed_conf_input=$configure_input;;
13817 esac
d9898ee8 13818
8d138742 13819 case $ac_tag in
b0322a85
CE
13820 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13821 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8d138742
CE
13822 esac
13823 ;;
13824 esac
d9898ee8 13825
8d138742
CE
13826 ac_dir=`$as_dirname -- "$ac_file" ||
13827$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13828 X"$ac_file" : 'X\(//\)[^/]' \| \
13829 X"$ac_file" : 'X\(//\)$' \| \
13830 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13831$as_echo X"$ac_file" |
13832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13833 s//\1/
13834 q
13835 }
13836 /^X\(\/\/\)[^/].*/{
13837 s//\1/
13838 q
13839 }
13840 /^X\(\/\/\)$/{
13841 s//\1/
13842 q
13843 }
13844 /^X\(\/\).*/{
13845 s//\1/
13846 q
13847 }
13848 s/.*/./; q'`
b0322a85 13849 as_dir="$ac_dir"; as_fn_mkdir_p
8d138742 13850 ac_builddir=.
d9898ee8 13851
8d138742
CE
13852case "$ac_dir" in
13853.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13854*)
13855 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13856 # A ".." for each directory in $ac_dir_suffix.
13857 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13858 case $ac_top_builddir_sub in
13859 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13860 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13861 esac ;;
dd184caf 13862esac
8d138742
CE
13863ac_abs_top_builddir=$ac_pwd
13864ac_abs_builddir=$ac_pwd$ac_dir_suffix
13865# for backward compatibility:
13866ac_top_builddir=$ac_top_build_prefix
13867
13868case $srcdir in
13869 .) # We are building in place.
13870 ac_srcdir=.
13871 ac_top_srcdir=$ac_top_builddir_sub
13872 ac_abs_top_srcdir=$ac_pwd ;;
13873 [\\/]* | ?:[\\/]* ) # Absolute name.
13874 ac_srcdir=$srcdir$ac_dir_suffix;
13875 ac_top_srcdir=$srcdir
13876 ac_abs_top_srcdir=$srcdir ;;
13877 *) # Relative name.
13878 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13879 ac_top_srcdir=$ac_top_build_prefix$srcdir
13880 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
dd184caf 13881esac
8d138742 13882ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 13883
dd184caf 13884
8d138742
CE
13885 case $ac_mode in
13886 :F)
13887 #
13888 # CONFIG_FILE
13889 #
dd184caf 13890
8d138742
CE
13891 case $INSTALL in
13892 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13893 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13894 esac
13895 ac_MKDIR_P=$MKDIR_P
13896 case $MKDIR_P in
13897 [\\/$]* | ?:[\\/]* ) ;;
13898 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13899 esac
d9898ee8 13900_ACEOF
d9898ee8 13901
8d138742
CE
13902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13903# If the template does not know about datarootdir, expand it.
13904# FIXME: This hack should be removed a few years after 2.60.
13905ac_datarootdir_hack=; ac_datarootdir_seen=
8d138742
CE
13906ac_sed_dataroot='
13907/datarootdir/ {
13908 p
13909 q
13910}
13911/@datadir@/p
13912/@docdir@/p
13913/@infodir@/p
13914/@localedir@/p
b0322a85 13915/@mandir@/p'
8d138742
CE
13916case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13917*datarootdir*) ac_datarootdir_seen=yes;;
13918*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
b0322a85 13919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8d138742 13920$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d9898ee8 13921_ACEOF
8d138742
CE
13922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13923 ac_datarootdir_hack='
13924 s&@datadir@&$datadir&g
13925 s&@docdir@&$docdir&g
13926 s&@infodir@&$infodir&g
13927 s&@localedir@&$localedir&g
13928 s&@mandir@&$mandir&g
b0322a85 13929 s&\\\${datarootdir}&$datarootdir&g' ;;
d9898ee8 13930esac
8d138742 13931_ACEOF
d9898ee8 13932
8d138742
CE
13933# Neutralize VPATH when `$srcdir' = `.'.
13934# Shell code in configure.ac might set extrasub.
13935# FIXME: do we really want to maintain this feature?
13936cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13937ac_sed_extra="$ac_vpsub
13938$extrasub
13939_ACEOF
13940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13941:t
13942/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13943s|@configure_input@|$ac_sed_conf_input|;t t
13944s&@top_builddir@&$ac_top_builddir_sub&;t t
13945s&@top_build_prefix@&$ac_top_build_prefix&;t t
13946s&@srcdir@&$ac_srcdir&;t t
13947s&@abs_srcdir@&$ac_abs_srcdir&;t t
13948s&@top_srcdir@&$ac_top_srcdir&;t t
13949s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13950s&@builddir@&$ac_builddir&;t t
13951s&@abs_builddir@&$ac_abs_builddir&;t t
13952s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13953s&@INSTALL@&$ac_INSTALL&;t t
13954s&@MKDIR_P@&$ac_MKDIR_P&;t t
13955$ac_datarootdir_hack
13956"
b0322a85
CE
13957eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13958 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d9898ee8 13959
8d138742 13960test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
b0322a85
CE
13961 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13962 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13963 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13965which seems to be undefined. Please make sure it is defined" >&5
8d138742 13966$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b0322a85 13967which seems to be undefined. Please make sure it is defined" >&2;}
d9898ee8 13968
b0322a85 13969 rm -f "$ac_tmp/stdin"
8d138742 13970 case $ac_file in
b0322a85
CE
13971 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13972 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8d138742 13973 esac \
b0322a85 13974 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8d138742
CE
13975 ;;
13976 :H)
13977 #
13978 # CONFIG_HEADER
13979 #
13980 if test x"$ac_file" != x-; then
13981 {
13982 $as_echo "/* $configure_input */" \
b0322a85
CE
13983 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13984 } >"$ac_tmp/config.h" \
13985 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13986 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8d138742
CE
13988$as_echo "$as_me: $ac_file is unchanged" >&6;}
13989 else
13990 rm -f "$ac_file"
b0322a85
CE
13991 mv "$ac_tmp/config.h" "$ac_file" \
13992 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8d138742
CE
13993 fi
13994 else
13995 $as_echo "/* $configure_input */" \
b0322a85
CE
13996 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13997 || as_fn_error $? "could not create -" "$LINENO" 5
8d138742
CE
13998 fi
13999# Compute "$ac_file"'s index in $config_headers.
14000_am_arg="$ac_file"
14001_am_stamp_count=1
14002for _am_header in $config_headers :; do
14003 case $_am_header in
14004 $_am_arg | $_am_arg:* )
14005 break ;;
14006 * )
14007 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14008 esac
14009done
14010echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14011$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14012 X"$_am_arg" : 'X\(//\)[^/]' \| \
14013 X"$_am_arg" : 'X\(//\)$' \| \
14014 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14015$as_echo X"$_am_arg" |
14016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14017 s//\1/
14018 q
14019 }
14020 /^X\(\/\/\)[^/].*/{
14021 s//\1/
14022 q
14023 }
14024 /^X\(\/\/\)$/{
14025 s//\1/
14026 q
14027 }
14028 /^X\(\/\).*/{
14029 s//\1/
14030 q
14031 }
14032 s/.*/./; q'`/stamp-h$_am_stamp_count
14033 ;;
d9898ee8 14034
b0322a85 14035 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8d138742
CE
14036$as_echo "$as_me: executing $ac_file commands" >&6;}
14037 ;;
14038 esac
d9898ee8 14039
14040
8d138742
CE
14041 case $ac_file$ac_mode in
14042 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
b0322a85 14043 # Older Autoconf quotes --file arguments for eval, but not when files
8d138742
CE
14044 # are listed without --file. Let's play safe and only enable the eval
14045 # if we detect the quoting.
14046 case $CONFIG_FILES in
14047 *\'*) eval set x "$CONFIG_FILES" ;;
14048 *) set x $CONFIG_FILES ;;
14049 esac
14050 shift
14051 for mf
14052 do
14053 # Strip MF so we end up with the name of the file.
14054 mf=`echo "$mf" | sed -e 's/:.*$//'`
14055 # Check whether this is an Automake generated Makefile or not.
b0322a85 14056 # We used to match only the files named 'Makefile.in', but
8d138742
CE
14057 # some people rename them; so instead we look at the file content.
14058 # Grep'ing the first line is not enough: some people post-process
14059 # each Makefile.in and add a new line on top of each file to say so.
14060 # Grep'ing the whole file is not good either: AIX grep has a line
14061 # limit of 2048, but all sed's we know have understand at least 4000.
14062 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14063 dirpart=`$as_dirname -- "$mf" ||
14064$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14065 X"$mf" : 'X\(//\)[^/]' \| \
14066 X"$mf" : 'X\(//\)$' \| \
14067 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14068$as_echo X"$mf" |
14069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14070 s//\1/
14071 q
14072 }
14073 /^X\(\/\/\)[^/].*/{
14074 s//\1/
14075 q
14076 }
14077 /^X\(\/\/\)$/{
14078 s//\1/
14079 q
14080 }
14081 /^X\(\/\).*/{
14082 s//\1/
14083 q
14084 }
14085 s/.*/./; q'`
14086 else
14087 continue
14088 fi
14089 # Extract the definition of DEPDIR, am__include, and am__quote
b0322a85 14090 # from the Makefile without running 'make'.
8d138742
CE
14091 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14092 test -z "$DEPDIR" && continue
14093 am__include=`sed -n 's/^am__include = //p' < "$mf"`
b0322a85 14094 test -z "$am__include" && continue
8d138742 14095 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8d138742
CE
14096 # Find all dependency output files, they are included files with
14097 # $(DEPDIR) in their names. We invoke sed twice because it is the
14098 # simplest approach to changing $(DEPDIR) to its actual value in the
14099 # expansion.
14100 for file in `sed -n "
14101 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
b0322a85 14102 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8d138742
CE
14103 # Make sure the directory exists.
14104 test -f "$dirpart/$file" && continue
14105 fdir=`$as_dirname -- "$file" ||
14106$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14107 X"$file" : 'X\(//\)[^/]' \| \
14108 X"$file" : 'X\(//\)$' \| \
14109 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14110$as_echo X"$file" |
14111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14112 s//\1/
14113 q
14114 }
14115 /^X\(\/\/\)[^/].*/{
14116 s//\1/
14117 q
14118 }
14119 /^X\(\/\/\)$/{
14120 s//\1/
14121 q
14122 }
14123 /^X\(\/\).*/{
14124 s//\1/
14125 q
14126 }
14127 s/.*/./; q'`
b0322a85 14128 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8d138742
CE
14129 # echo "creating $dirpart/$file"
14130 echo '# dummy' > "$dirpart/$file"
14131 done
14132 done
14133}
14134 ;;
14135 "libtool":C)
d9898ee8 14136
8d138742
CE
14137 # See if we are running on zsh, and set the options which allow our
14138 # commands through without removal of \ escapes.
14139 if test -n "${ZSH_VERSION+set}" ; then
14140 setopt NO_GLOB_SUBST
14141 fi
d9898ee8 14142
8d138742
CE
14143 cfgfile="${ofile}T"
14144 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14145 $RM "$cfgfile"
d9898ee8 14146
8d138742
CE
14147 cat <<_LT_EOF >> "$cfgfile"
14148#! $SHELL
dd184caf 14149
8d138742
CE
14150# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14151# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14152# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14153# NOTE: Changes made to this file will be lost: look at ltmain.sh.
d9898ee8 14154#
8d138742 14155# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
b0322a85
CE
14156# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14157# Foundation, Inc.
8d138742 14158# Written by Gordon Matzigkeit, 1996
d9898ee8 14159#
8d138742
CE
14160# This file is part of GNU Libtool.
14161#
14162# GNU Libtool is free software; you can redistribute it and/or
14163# modify it under the terms of the GNU General Public License as
14164# published by the Free Software Foundation; either version 2 of
14165# the License, or (at your option) any later version.
14166#
14167# As a special exception to the GNU General Public License,
14168# if you distribute this file as part of a program or library that
14169# is built using GNU Libtool, you may include this file under the
14170# same distribution terms that you use for the rest of that program.
14171#
14172# GNU Libtool is distributed in the hope that it will be useful,
14173# but WITHOUT ANY WARRANTY; without even the implied warranty of
14174# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14175# GNU General Public License for more details.
14176#
14177# You should have received a copy of the GNU General Public License
14178# along with GNU Libtool; see the file COPYING. If not, a copy
14179# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14180# obtained by writing to the Free Software Foundation, Inc.,
14181# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d9898ee8 14182
dd184caf 14183
8d138742
CE
14184# The names of the tagged configurations supported by this script.
14185available_tags=""
d9898ee8 14186
8d138742 14187# ### BEGIN LIBTOOL CONFIG
d9898ee8 14188
8d138742
CE
14189# Which release of libtool.m4 was used?
14190macro_version=$macro_version
14191macro_revision=$macro_revision
d9898ee8 14192
8d138742
CE
14193# Whether or not to build shared libraries.
14194build_libtool_libs=$enable_shared
d9898ee8 14195
8d138742
CE
14196# Whether or not to build static libraries.
14197build_old_libs=$enable_static
d9898ee8 14198
8d138742
CE
14199# What type of objects to build.
14200pic_mode=$pic_mode
d9898ee8 14201
8d138742
CE
14202# Whether or not to optimize for fast installation.
14203fast_install=$enable_fast_install
d9898ee8 14204
b0322a85
CE
14205# Shell to use when invoking shell scripts.
14206SHELL=$lt_SHELL
14207
14208# An echo program that protects backslashes.
14209ECHO=$lt_ECHO
14210
14211# The PATH separator for the build system.
14212PATH_SEPARATOR=$lt_PATH_SEPARATOR
14213
8d138742
CE
14214# The host system.
14215host_alias=$host_alias
14216host=$host
14217host_os=$host_os
d9898ee8 14218
8d138742
CE
14219# The build system.
14220build_alias=$build_alias
14221build=$build
14222build_os=$build_os
d9898ee8 14223
8d138742
CE
14224# A sed program that does not truncate output.
14225SED=$lt_SED
d9898ee8 14226
8d138742
CE
14227# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14228Xsed="\$SED -e 1s/^X//"
dd184caf 14229
8d138742
CE
14230# A grep program that handles long lines.
14231GREP=$lt_GREP
dd184caf 14232
8d138742
CE
14233# An ERE matcher.
14234EGREP=$lt_EGREP
dd184caf 14235
8d138742
CE
14236# A literal string matcher.
14237FGREP=$lt_FGREP
dd184caf 14238
8d138742
CE
14239# A BSD- or MS-compatible name lister.
14240NM=$lt_NM
dd184caf 14241
8d138742
CE
14242# Whether we need soft or hard links.
14243LN_S=$lt_LN_S
dd184caf 14244
8d138742
CE
14245# What is the maximum length of a command?
14246max_cmd_len=$max_cmd_len
d9898ee8 14247
8d138742
CE
14248# Object file suffix (normally "o").
14249objext=$ac_objext
d9898ee8 14250
8d138742
CE
14251# Executable file suffix (normally "").
14252exeext=$exeext
d9898ee8 14253
8d138742
CE
14254# whether the shell understands "unset".
14255lt_unset=$lt_unset
dd184caf 14256
8d138742
CE
14257# turn spaces into newlines.
14258SP2NL=$lt_lt_SP2NL
dd184caf 14259
8d138742
CE
14260# turn newlines into spaces.
14261NL2SP=$lt_lt_NL2SP
dd184caf 14262
b0322a85
CE
14263# convert \$build file names to \$host format.
14264to_host_file_cmd=$lt_cv_to_host_file_cmd
14265
14266# convert \$build files to toolchain format.
14267to_tool_file_cmd=$lt_cv_to_tool_file_cmd
d9898ee8 14268
8d138742
CE
14269# An object symbol dumper.
14270OBJDUMP=$lt_OBJDUMP
d9898ee8 14271
8d138742
CE
14272# Method to check whether dependent libraries are shared objects.
14273deplibs_check_method=$lt_deplibs_check_method
d9898ee8 14274
b0322a85 14275# Command to use when deplibs_check_method = "file_magic".
8d138742 14276file_magic_cmd=$lt_file_magic_cmd
d9898ee8 14277
b0322a85
CE
14278# How to find potential files when deplibs_check_method = "file_magic".
14279file_magic_glob=$lt_file_magic_glob
14280
14281# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14282want_nocaseglob=$lt_want_nocaseglob
14283
14284# DLL creation program.
14285DLLTOOL=$lt_DLLTOOL
14286
14287# Command to associate shared and link libraries.
14288sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14289
8d138742
CE
14290# The archiver.
14291AR=$lt_AR
b0322a85
CE
14292
14293# Flags to create an archive.
8d138742 14294AR_FLAGS=$lt_AR_FLAGS
d9898ee8 14295
b0322a85
CE
14296# How to feed a file listing to the archiver.
14297archiver_list_spec=$lt_archiver_list_spec
14298
8d138742
CE
14299# A symbol stripping program.
14300STRIP=$lt_STRIP
d9898ee8 14301
8d138742
CE
14302# Commands used to install an old-style archive.
14303RANLIB=$lt_RANLIB
14304old_postinstall_cmds=$lt_old_postinstall_cmds
14305old_postuninstall_cmds=$lt_old_postuninstall_cmds
d9898ee8 14306
b0322a85
CE
14307# Whether to use a lock for old archive extraction.
14308lock_old_archive_extraction=$lock_old_archive_extraction
14309
8d138742
CE
14310# A C compiler.
14311LTCC=$lt_CC
d9898ee8 14312
8d138742
CE
14313# LTCC compiler flags.
14314LTCFLAGS=$lt_CFLAGS
d9898ee8 14315
8d138742
CE
14316# Take the output of nm and produce a listing of raw symbols and C names.
14317global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
d9898ee8 14318
8d138742
CE
14319# Transform the output of nm in a proper C declaration.
14320global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
d9898ee8 14321
8d138742
CE
14322# Transform the output of nm in a C name address pair.
14323global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
d9898ee8 14324
8d138742
CE
14325# Transform the output of nm in a C name address pair when lib prefix is needed.
14326global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
d9898ee8 14327
b0322a85
CE
14328# Specify filename containing input files for \$NM.
14329nm_file_list_spec=$lt_nm_file_list_spec
dd184caf 14330
b0322a85
CE
14331# The root where to search for dependent libraries,and in which our libraries should be installed.
14332lt_sysroot=$lt_sysroot
8d138742 14333
b0322a85
CE
14334# The name of the directory that contains temporary libtool files.
14335objdir=$objdir
d9898ee8 14336
8d138742
CE
14337# Used to examine libraries when file_magic_cmd begins with "file".
14338MAGIC_CMD=$MAGIC_CMD
d9898ee8 14339
8d138742
CE
14340# Must we lock files when doing compilation?
14341need_locks=$lt_need_locks
d9898ee8 14342
b0322a85
CE
14343# Manifest tool.
14344MANIFEST_TOOL=$lt_MANIFEST_TOOL
14345
8d138742
CE
14346# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14347DSYMUTIL=$lt_DSYMUTIL
d9898ee8 14348
8d138742
CE
14349# Tool to change global to local symbols on Mac OS X.
14350NMEDIT=$lt_NMEDIT
d9898ee8 14351
8d138742
CE
14352# Tool to manipulate fat objects and archives on Mac OS X.
14353LIPO=$lt_LIPO
d9898ee8 14354
8d138742
CE
14355# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14356OTOOL=$lt_OTOOL
d9898ee8 14357
8d138742
CE
14358# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14359OTOOL64=$lt_OTOOL64
d9898ee8 14360
8d138742
CE
14361# Old archive suffix (normally "a").
14362libext=$libext
d9898ee8 14363
8d138742
CE
14364# Shared library suffix (normally ".so").
14365shrext_cmds=$lt_shrext_cmds
d9898ee8 14366
8d138742
CE
14367# The commands to extract the exported symbol list from a shared archive.
14368extract_expsyms_cmds=$lt_extract_expsyms_cmds
d9898ee8 14369
8d138742
CE
14370# Variables whose values should be saved in libtool wrapper scripts and
14371# restored at link time.
14372variables_saved_for_relink=$lt_variables_saved_for_relink
dd184caf 14373
8d138742
CE
14374# Do we need the "lib" prefix for modules?
14375need_lib_prefix=$need_lib_prefix
d9898ee8 14376
8d138742
CE
14377# Do we need a version for libraries?
14378need_version=$need_version
d9898ee8 14379
8d138742
CE
14380# Library versioning type.
14381version_type=$version_type
d9898ee8 14382
8d138742
CE
14383# Shared library runtime path variable.
14384runpath_var=$runpath_var
d9898ee8 14385
8d138742
CE
14386# Shared library path variable.
14387shlibpath_var=$shlibpath_var
d9898ee8 14388
8d138742
CE
14389# Is shlibpath searched before the hard-coded library search path?
14390shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d9898ee8 14391
8d138742
CE
14392# Format of library name prefix.
14393libname_spec=$lt_libname_spec
d9898ee8 14394
8d138742
CE
14395# List of archive names. First name is the real one, the rest are links.
14396# The last name is the one that the linker finds with -lNAME
14397library_names_spec=$lt_library_names_spec
d9898ee8 14398
8d138742
CE
14399# The coded name of the library, if different from the real name.
14400soname_spec=$lt_soname_spec
d9898ee8 14401
b0322a85
CE
14402# Permission mode override for installation of shared libraries.
14403install_override_mode=$lt_install_override_mode
14404
8d138742
CE
14405# Command to use after installation of a shared archive.
14406postinstall_cmds=$lt_postinstall_cmds
d9898ee8 14407
8d138742
CE
14408# Command to use after uninstallation of a shared archive.
14409postuninstall_cmds=$lt_postuninstall_cmds
d9898ee8 14410
8d138742
CE
14411# Commands used to finish a libtool library installation in a directory.
14412finish_cmds=$lt_finish_cmds
dd184caf 14413
8d138742
CE
14414# As "finish_cmds", except a single script fragment to be evaled but
14415# not shown.
14416finish_eval=$lt_finish_eval
d9898ee8 14417
8d138742
CE
14418# Whether we should hardcode library paths into libraries.
14419hardcode_into_libs=$hardcode_into_libs
d9898ee8 14420
8d138742
CE
14421# Compile-time system search path for libraries.
14422sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 14423
8d138742
CE
14424# Run-time system search path for libraries.
14425sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
d9898ee8 14426
8d138742
CE
14427# Whether dlopen is supported.
14428dlopen_support=$enable_dlopen
d9898ee8 14429
8d138742
CE
14430# Whether dlopen of programs is supported.
14431dlopen_self=$enable_dlopen_self
d9898ee8 14432
8d138742
CE
14433# Whether dlopen of statically linked programs is supported.
14434dlopen_self_static=$enable_dlopen_self_static
d9898ee8 14435
8d138742
CE
14436# Commands to strip libraries.
14437old_striplib=$lt_old_striplib
14438striplib=$lt_striplib
d9898ee8 14439
d9898ee8 14440
8d138742
CE
14441# The linker used to build libraries.
14442LD=$lt_LD
d9898ee8 14443
b0322a85
CE
14444# How to create reloadable object files.
14445reload_flag=$lt_reload_flag
14446reload_cmds=$lt_reload_cmds
14447
8d138742
CE
14448# Commands used to build an old-style archive.
14449old_archive_cmds=$lt_old_archive_cmds
d9898ee8 14450
8d138742
CE
14451# A language specific compiler.
14452CC=$lt_compiler
d9898ee8 14453
8d138742
CE
14454# Is the compiler the GNU compiler?
14455with_gcc=$GCC
dd184caf 14456
8d138742
CE
14457# Compiler flag to turn off builtin functions.
14458no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dd184caf 14459
8d138742
CE
14460# Additional compiler flags for building library objects.
14461pic_flag=$lt_lt_prog_compiler_pic
dd184caf 14462
b0322a85
CE
14463# How to pass a linker flag through the compiler.
14464wl=$lt_lt_prog_compiler_wl
14465
8d138742
CE
14466# Compiler flag to prevent dynamic linking.
14467link_static_flag=$lt_lt_prog_compiler_static
d9898ee8 14468
8d138742
CE
14469# Does compiler simultaneously support -c and -o options?
14470compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14471
14472# Whether or not to add -lc for building shared libraries.
14473build_libtool_need_lc=$archive_cmds_need_lc
14474
14475# Whether or not to disallow shared libs when runtime libs are static.
14476allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14477
14478# Compiler flag to allow reflexive dlopens.
14479export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
d9898ee8 14480
8d138742
CE
14481# Compiler flag to generate shared objects directly from archives.
14482whole_archive_flag_spec=$lt_whole_archive_flag_spec
d9898ee8 14483
8d138742
CE
14484# Whether the compiler copes with passing no objects directly.
14485compiler_needs_object=$lt_compiler_needs_object
d9898ee8 14486
8d138742
CE
14487# Create an old-style archive from a shared archive.
14488old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
d9898ee8 14489
8d138742
CE
14490# Create a temporary old-style archive to link instead of a shared archive.
14491old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
d9898ee8 14492
8d138742
CE
14493# Commands used to build a shared archive.
14494archive_cmds=$lt_archive_cmds
14495archive_expsym_cmds=$lt_archive_expsym_cmds
dd184caf 14496
8d138742
CE
14497# Commands used to build a loadable module if different from building
14498# a shared archive.
14499module_cmds=$lt_module_cmds
14500module_expsym_cmds=$lt_module_expsym_cmds
dd184caf 14501
8d138742
CE
14502# Whether we are building with GNU ld or not.
14503with_gnu_ld=$lt_with_gnu_ld
dd184caf 14504
8d138742
CE
14505# Flag that allows shared libraries with undefined symbols to be built.
14506allow_undefined_flag=$lt_allow_undefined_flag
dd184caf 14507
8d138742
CE
14508# Flag that enforces no undefined symbols.
14509no_undefined_flag=$lt_no_undefined_flag
dd184caf 14510
8d138742
CE
14511# Flag to hardcode \$libdir into a binary during linking.
14512# This must work even if \$libdir does not exist
14513hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
dd184caf 14514
8d138742
CE
14515# Whether we need a single "-rpath" flag with a separated argument.
14516hardcode_libdir_separator=$lt_hardcode_libdir_separator
dd184caf 14517
8d138742
CE
14518# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14519# DIR into the resulting binary.
14520hardcode_direct=$hardcode_direct
dd184caf 14521
8d138742
CE
14522# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14523# DIR into the resulting binary and the resulting library dependency is
14524# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14525# library is relocated.
14526hardcode_direct_absolute=$hardcode_direct_absolute
d9898ee8 14527
8d138742
CE
14528# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14529# into the resulting binary.
14530hardcode_minus_L=$hardcode_minus_L
dd184caf 14531
8d138742
CE
14532# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14533# into the resulting binary.
14534hardcode_shlibpath_var=$hardcode_shlibpath_var
dd184caf 14535
8d138742
CE
14536# Set to "yes" if building a shared library automatically hardcodes DIR
14537# into the library and all subsequent libraries and executables linked
14538# against it.
14539hardcode_automatic=$hardcode_automatic
dd184caf 14540
8d138742
CE
14541# Set to yes if linker adds runtime paths of dependent libraries
14542# to runtime path list.
14543inherit_rpath=$inherit_rpath
dd184caf 14544
8d138742
CE
14545# Whether libtool must link a program against all its dependency libraries.
14546link_all_deplibs=$link_all_deplibs
dd184caf 14547
8d138742
CE
14548# Set to "yes" if exported symbols are required.
14549always_export_symbols=$always_export_symbols
dd184caf 14550
8d138742
CE
14551# The commands to list exported symbols.
14552export_symbols_cmds=$lt_export_symbols_cmds
dd184caf 14553
8d138742
CE
14554# Symbols that should not be listed in the preloaded symbols.
14555exclude_expsyms=$lt_exclude_expsyms
d9898ee8 14556
8d138742
CE
14557# Symbols that must always be exported.
14558include_expsyms=$lt_include_expsyms
d9898ee8 14559
8d138742
CE
14560# Commands necessary for linking programs (against libraries) with templates.
14561prelink_cmds=$lt_prelink_cmds
d9898ee8 14562
b0322a85
CE
14563# Commands necessary for finishing linking programs.
14564postlink_cmds=$lt_postlink_cmds
14565
8d138742
CE
14566# Specify filename containing input files.
14567file_list_spec=$lt_file_list_spec
14568
14569# How to hardcode a shared library path into an executable.
14570hardcode_action=$hardcode_action
d9898ee8 14571
8d138742 14572# ### END LIBTOOL CONFIG
d9898ee8 14573
8d138742 14574_LT_EOF
d9898ee8 14575
8d138742
CE
14576 case $host_os in
14577 aix3*)
14578 cat <<\_LT_EOF >> "$cfgfile"
14579# AIX sometimes has problems with the GCC collect2 program. For some
14580# reason, if we set the COLLECT_NAMES environment variable, the problems
14581# vanish in a puff of smoke.
14582if test "X${COLLECT_NAMES+set}" != Xset; then
14583 COLLECT_NAMES=
14584 export COLLECT_NAMES
14585fi
14586_LT_EOF
14587 ;;
dd184caf 14588 esac
8d138742
CE
14589
14590
14591ltmain="$ac_aux_dir/ltmain.sh"
14592
14593
14594 # We use sed instead of cat because bash on DJGPP gets confused if
14595 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14596 # text mode, it properly converts lines to CR/LF. This bash problem
14597 # is reportedly fixed, but why not run on old versions too?
b0322a85
CE
14598 sed '$q' "$ltmain" >> "$cfgfile" \
14599 || (rm -f "$cfgfile"; exit 1)
14600
14601 if test x"$xsi_shell" = xyes; then
14602 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14603func_dirname ()\
14604{\
14605\ case ${1} in\
14606\ */*) func_dirname_result="${1%/*}${2}" ;;\
14607\ * ) func_dirname_result="${3}" ;;\
14608\ esac\
14609} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14610 && mv -f "$cfgfile.tmp" "$cfgfile" \
14611 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14612test 0 -eq $? || _lt_function_replace_fail=:
14613
14614
14615 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14616func_basename ()\
14617{\
14618\ func_basename_result="${1##*/}"\
14619} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14620 && mv -f "$cfgfile.tmp" "$cfgfile" \
14621 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14622test 0 -eq $? || _lt_function_replace_fail=:
14623
14624
14625 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14626func_dirname_and_basename ()\
14627{\
14628\ case ${1} in\
14629\ */*) func_dirname_result="${1%/*}${2}" ;;\
14630\ * ) func_dirname_result="${3}" ;;\
14631\ esac\
14632\ func_basename_result="${1##*/}"\
14633} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14634 && mv -f "$cfgfile.tmp" "$cfgfile" \
14635 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14636test 0 -eq $? || _lt_function_replace_fail=:
14637
14638
14639 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14640func_stripname ()\
14641{\
14642\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14643\ # positional parameters, so assign one to ordinary parameter first.\
14644\ func_stripname_result=${3}\
14645\ func_stripname_result=${func_stripname_result#"${1}"}\
14646\ func_stripname_result=${func_stripname_result%"${2}"}\
14647} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14648 && mv -f "$cfgfile.tmp" "$cfgfile" \
14649 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14650test 0 -eq $? || _lt_function_replace_fail=:
14651
14652
14653 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14654func_split_long_opt ()\
14655{\
14656\ func_split_long_opt_name=${1%%=*}\
14657\ func_split_long_opt_arg=${1#*=}\
14658} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14659 && mv -f "$cfgfile.tmp" "$cfgfile" \
14660 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14661test 0 -eq $? || _lt_function_replace_fail=:
14662
14663
14664 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14665func_split_short_opt ()\
14666{\
14667\ func_split_short_opt_arg=${1#??}\
14668\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14669} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14670 && mv -f "$cfgfile.tmp" "$cfgfile" \
14671 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14672test 0 -eq $? || _lt_function_replace_fail=:
14673
14674
14675 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14676func_lo2o ()\
14677{\
14678\ case ${1} in\
14679\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14680\ *) func_lo2o_result=${1} ;;\
14681\ esac\
14682} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14683 && mv -f "$cfgfile.tmp" "$cfgfile" \
14684 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14685test 0 -eq $? || _lt_function_replace_fail=:
14686
14687
14688 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14689func_xform ()\
14690{\
14691 func_xform_result=${1%.*}.lo\
14692} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14693 && mv -f "$cfgfile.tmp" "$cfgfile" \
14694 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14695test 0 -eq $? || _lt_function_replace_fail=:
14696
14697
14698 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14699func_arith ()\
14700{\
14701 func_arith_result=$(( $* ))\
14702} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14703 && mv -f "$cfgfile.tmp" "$cfgfile" \
14704 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14705test 0 -eq $? || _lt_function_replace_fail=:
14706
14707
14708 sed -e '/^func_len ()$/,/^} # func_len /c\
14709func_len ()\
14710{\
14711 func_len_result=${#1}\
14712} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14713 && mv -f "$cfgfile.tmp" "$cfgfile" \
14714 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14715test 0 -eq $? || _lt_function_replace_fail=:
14716
14717fi
14718
14719if test x"$lt_shell_append" = xyes; then
14720 sed -e '/^func_append ()$/,/^} # func_append /c\
14721func_append ()\
14722{\
14723 eval "${1}+=\\${2}"\
14724} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14725 && mv -f "$cfgfile.tmp" "$cfgfile" \
14726 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14727test 0 -eq $? || _lt_function_replace_fail=:
14728
14729
14730 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14731func_append_quoted ()\
14732{\
14733\ func_quote_for_eval "${2}"\
14734\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14735} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14736 && mv -f "$cfgfile.tmp" "$cfgfile" \
14737 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14738test 0 -eq $? || _lt_function_replace_fail=:
14739
14740
14741 # Save a `func_append' function call where possible by direct use of '+='
14742 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14743 && mv -f "$cfgfile.tmp" "$cfgfile" \
14744 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14745 test 0 -eq $? || _lt_function_replace_fail=:
14746else
14747 # Save a `func_append' function call even when '+=' is not available
14748 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14749 && mv -f "$cfgfile.tmp" "$cfgfile" \
14750 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14751 test 0 -eq $? || _lt_function_replace_fail=:
14752fi
14753
14754if test x"$_lt_function_replace_fail" = x":"; then
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14756$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14757fi
14758
14759
14760 mv -f "$cfgfile" "$ofile" ||
8d138742
CE
14761 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14762 chmod +x "$ofile"
14763
d9898ee8 14764 ;;
dd184caf 14765
d9898ee8 14766 esac
dd184caf 14767done # for ac_tag
d9898ee8 14768
d9898ee8 14769
b0322a85 14770as_fn_exit 0
d9898ee8 14771_ACEOF
d9898ee8 14772ac_clean_files=$ac_clean_files_save
14773
8d138742 14774test $ac_write_fail = 0 ||
b0322a85 14775 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8d138742 14776
d9898ee8 14777
14778# configure is writing to config.log, and then calls config.status.
14779# config.status does its own redirection, appending to config.log.
14780# Unfortunately, on DOS this fails, as config.log is still kept open
14781# by configure, so config.status won't be able to write to it; its
14782# output is simply discarded. So we exec the FD to /dev/null,
14783# effectively closing config.log, so it can be properly (re)opened and
14784# appended to by config.status. When coming back to configure, we
14785# need to make the FD available again.
14786if test "$no_create" != yes; then
14787 ac_cs_success=:
14788 ac_config_status_args=
14789 test "$silent" = yes &&
14790 ac_config_status_args="$ac_config_status_args --quiet"
14791 exec 5>/dev/null
14792 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14793 exec 5>>config.log
14794 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14795 # would make configure fail if this is the last instruction.
b0322a85 14796 $ac_cs_success || as_fn_exit 1
d9898ee8 14797fi
8d138742 14798if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
b0322a85 14799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8d138742
CE
14800$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14801fi
d9898ee8 14802