* pt.c (lookup_template_class_1): Splice out abi_tag attribute if
[official-gcc.git] / libjava / libltdl / configure
blob146ca43299e37506e6a20fa7b00e36301c68575d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libltdl 1.2.
5 # Report bugs to <bug-libtool@gnu.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if 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 --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
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;
60 case $arg in #(
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
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=';'
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.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and
232 $0: bug-libtool@gnu.org about your system, including any
233 $0: error possibly output before this message. Then install
234 $0: a modern shell, or manually run the script under such a
235 $0: shell if you do have one."
237 exit 1
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
255 { eval $1=; unset $1;}
257 as_unset=as_fn_unset
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
264 return $1
265 } # as_fn_set_status
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
272 set +e
273 as_fn_set_status $1
274 exit $1
275 } # as_fn_exit
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
308 /^X\(\/\/\)$/{
309 s//\1/
312 /^X\(\/\).*/{
313 s//\1/
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
333 eval $1+=\$2
335 else
336 as_fn_append ()
338 eval $1=\$$1\$2
340 fi # as_fn_append
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith ()
350 as_val=$(( $* ))
352 else
353 as_fn_arith ()
355 as_val=`expr "$@" || test $? -eq 1`
357 fi # as_fn_arith
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
374 } # as_fn_error
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr
379 else
380 as_expr=false
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename
385 else
386 as_basename=false
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391 else
392 as_dirname=false
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/
404 /^X\/\(\/\/\)$/{
405 s//\1/
408 /^X\/\(\/\).*/{
409 s//\1/
412 s/.*/./; q'`
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
427 sed -n '
429 /[$]LINENO/=
430 ' <$as_myself |
431 sed '
432 s/[$]LINENO.*/&-/
433 t lineno
435 :lineno
437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 t loop
440 s/-\n.*//
441 ' >$as_me.lineno &&
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
448 . "./$as_me.lineno"
449 # Exit status is that of the last command.
450 exit
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
461 esac;;
463 ECHO_N='-n';;
464 esac
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469 else
470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 as_ln_s='ln -s'
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
485 as_ln_s='cp -p'
487 else
488 as_ln_s='cp -p'
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
495 else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
500 if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
502 else
503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L
505 else
506 as_ls_L_option=
508 as_test_x='
509 eval sh -c '\''
510 if test -d "$1"; then
511 test -d "$1/.";
512 else
513 case $1 in #(
514 -*)set "./$1";;
515 esac;
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh
521 as_executable_p=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531 # Check that we are running under the correct shell.
532 SHELL=${CONFIG_SHELL-/bin/sh}
534 case X$ECHO in
535 X*--fallback-echo)
536 # Remove one level of quotation (which was required for Make).
537 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
539 esac
541 echo=${ECHO-echo}
542 if test "X$1" = X--no-reexec; then
543 # Discard the --no-reexec flag, and continue.
544 shift
545 elif test "X$1" = X--fallback-echo; then
546 # Avoid inline document here, it may be left over
548 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
549 # Yippee, $echo works!
551 else
552 # Restart under the correct shell.
553 exec $SHELL "$0" --no-reexec ${1+"$@"}
556 if test "X$1" = X--fallback-echo; then
557 # used as fallback echo
558 shift
559 cat <<EOF
562 exit 0
565 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 # if CDPATH is set.
567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
569 if test -z "$ECHO"; then
570 if test "X${echo_test_string+set}" != Xset; then
571 # find a string as large as possible, as long as the shell can cope with it
572 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
575 echo_test_string="`eval $cmd`" &&
576 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
577 then
578 break
580 done
583 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
584 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
585 test "X$echo_testing_string" = "X$echo_test_string"; then
587 else
588 # The Solaris, AIX, and Digital Unix default echo programs unquote
589 # backslashes. This makes it impossible to quote backslashes using
590 # echo "$something" | sed 's/\\/\\\\/g'
592 # So, first we look for a working echo in the user's PATH.
594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
595 for dir in $PATH /usr/ucb; do
596 IFS="$lt_save_ifs"
597 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
598 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
599 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
600 test "X$echo_testing_string" = "X$echo_test_string"; then
601 echo="$dir/echo"
602 break
604 done
605 IFS="$lt_save_ifs"
607 if test "X$echo" = Xecho; then
608 # We didn't find a better echo, so look for alternatives.
609 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # This shell has a builtin print -r that does the trick.
613 echo='print -r'
614 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
615 test "X$CONFIG_SHELL" != X/bin/ksh; then
616 # If we have ksh, try running configure again with it.
617 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
618 export ORIGINAL_CONFIG_SHELL
619 CONFIG_SHELL=/bin/ksh
620 export CONFIG_SHELL
621 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
622 else
623 # Try using printf.
624 echo='printf %s\n'
625 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
626 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
627 test "X$echo_testing_string" = "X$echo_test_string"; then
628 # Cool, printf works
630 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
631 test "X$echo_testing_string" = 'X\t' &&
632 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
635 export CONFIG_SHELL
636 SHELL="$CONFIG_SHELL"
637 export SHELL
638 echo="$CONFIG_SHELL $0 --fallback-echo"
639 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 echo="$CONFIG_SHELL $0 --fallback-echo"
644 else
645 # maybe with a smaller string...
646 prev=:
648 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
649 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
650 then
651 break
653 prev="$cmd"
654 done
656 if test "$prev" != 'sed 50q "$0"'; then
657 echo_test_string=`eval $prev`
658 export echo_test_string
659 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
660 else
661 # Oops. We lost completely, so just stick with echo.
662 echo=echo
670 # Copy echo and quote the copy suitably for passing to libtool from
671 # the Makefile, instead of quoting the original, which is used later.
672 ECHO=$echo
673 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
674 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
680 exec 7<&0 </dev/null 6>&1
682 # Name of the host.
683 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
684 # so uname gets run too.
685 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688 # Initializations.
690 ac_default_prefix=/usr/local
691 ac_clean_files=
692 ac_config_libobj_dir=.
693 LIBOBJS=
694 cross_compiling=no
695 subdirs=
696 MFLAGS=
697 MAKEFLAGS=
699 # Identity of this package.
700 PACKAGE_NAME='libltdl'
701 PACKAGE_TARNAME='libltdl'
702 PACKAGE_VERSION='1.2'
703 PACKAGE_STRING='libltdl 1.2'
704 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
705 PACKAGE_URL=''
707 ac_unique_file="ltdl.c"
708 # Factoring default headers for most tests.
709 ac_includes_default="\
710 #include <stdio.h>
711 #ifdef HAVE_SYS_TYPES_H
712 # include <sys/types.h>
713 #endif
714 #ifdef HAVE_SYS_STAT_H
715 # include <sys/stat.h>
716 #endif
717 #ifdef STDC_HEADERS
718 # include <stdlib.h>
719 # include <stddef.h>
720 #else
721 # ifdef HAVE_STDLIB_H
722 # include <stdlib.h>
723 # endif
724 #endif
725 #ifdef HAVE_STRING_H
726 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
727 # include <memory.h>
728 # endif
729 # include <string.h>
730 #endif
731 #ifdef HAVE_STRINGS_H
732 # include <strings.h>
733 #endif
734 #ifdef HAVE_INTTYPES_H
735 # include <inttypes.h>
736 #endif
737 #ifdef HAVE_STDINT_H
738 # include <stdint.h>
739 #endif
740 #ifdef HAVE_UNISTD_H
741 # include <unistd.h>
742 #endif"
744 ac_subst_vars='am__EXEEXT_FALSE
745 am__EXEEXT_TRUE
746 LTLIBOBJS
747 LIBOBJS
748 LIBADD_DL
749 CONVENIENCE_LTDL_FALSE
750 CONVENIENCE_LTDL_TRUE
751 INSTALL_LTDL_FALSE
752 INSTALL_LTDL_TRUE
753 LIBTOOL_DEPS
754 LIBTOOL
756 OBJDUMP
758 DLLTOOL
759 RANLIB
761 ECHO
762 LN_S
763 EGREP
764 GREP
765 host_os
766 host_vendor
767 host_cpu
768 host
769 build_os
770 build_vendor
771 build_cpu
772 build
773 am__fastdepCC_FALSE
774 am__fastdepCC_TRUE
775 CCDEPMODE
776 AMDEPBACKSLASH
777 AMDEP_FALSE
778 AMDEP_TRUE
779 am__quote
780 am__include
781 DEPDIR
782 OBJEXT
783 EXEEXT
784 ac_ct_CC
785 CPPFLAGS
786 LDFLAGS
787 CFLAGS
789 am__untar
790 am__tar
791 AMTAR
792 am__leading_dot
793 SET_MAKE
795 mkdir_p
796 MKDIR_P
797 INSTALL_STRIP_PROGRAM
798 STRIP
799 install_sh
800 MAKEINFO
801 AUTOHEADER
802 AUTOMAKE
803 AUTOCONF
804 ACLOCAL
805 VERSION
806 PACKAGE
807 CYGPATH_W
808 am__isrc
809 INSTALL_DATA
810 INSTALL_SCRIPT
811 INSTALL_PROGRAM
812 multi_basedir
813 MAINT
814 MAINTAINER_MODE_FALSE
815 MAINTAINER_MODE_TRUE
816 target_alias
817 host_alias
818 build_alias
819 LIBS
820 ECHO_T
821 ECHO_N
822 ECHO_C
823 DEFS
824 mandir
825 localedir
826 libdir
827 psdir
828 pdfdir
829 dvidir
830 htmldir
831 infodir
832 docdir
833 oldincludedir
834 includedir
835 localstatedir
836 sharedstatedir
837 sysconfdir
838 datadir
839 datarootdir
840 libexecdir
841 sbindir
842 bindir
843 program_transform_name
844 prefix
845 exec_prefix
846 PACKAGE_URL
847 PACKAGE_BUGREPORT
848 PACKAGE_STRING
849 PACKAGE_VERSION
850 PACKAGE_TARNAME
851 PACKAGE_NAME
852 PATH_SEPARATOR
853 SHELL'
854 ac_subst_files=''
855 ac_user_opts='
856 enable_option_checking
857 enable_maintainer_mode
858 enable_multilib
859 enable_dependency_tracking
860 enable_shared
861 enable_static
862 enable_fast_install
863 with_gnu_ld
864 enable_libtool_lock
865 with_pic
866 with_tags
867 enable_ltdl_install
869 ac_precious_vars='build_alias
870 host_alias
871 target_alias
873 CFLAGS
874 LDFLAGS
875 LIBS
876 CPPFLAGS
877 CPP'
880 # Initialize some variables set by options.
881 ac_init_help=
882 ac_init_version=false
883 ac_unrecognized_opts=
884 ac_unrecognized_sep=
885 # The variables have the same names as the options, with
886 # dashes changed to underlines.
887 cache_file=/dev/null
888 exec_prefix=NONE
889 no_create=
890 no_recursion=
891 prefix=NONE
892 program_prefix=NONE
893 program_suffix=NONE
894 program_transform_name=s,x,x,
895 silent=
896 site=
897 srcdir=
898 verbose=
899 x_includes=NONE
900 x_libraries=NONE
902 # Installation directory options.
903 # These are left unexpanded so users can "make install exec_prefix=/foo"
904 # and all the variables that are supposed to be based on exec_prefix
905 # by default will actually change.
906 # Use braces instead of parens because sh, perl, etc. also accept them.
907 # (The list follows the same order as the GNU Coding Standards.)
908 bindir='${exec_prefix}/bin'
909 sbindir='${exec_prefix}/sbin'
910 libexecdir='${exec_prefix}/libexec'
911 datarootdir='${prefix}/share'
912 datadir='${datarootdir}'
913 sysconfdir='${prefix}/etc'
914 sharedstatedir='${prefix}/com'
915 localstatedir='${prefix}/var'
916 includedir='${prefix}/include'
917 oldincludedir='/usr/include'
918 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
919 infodir='${datarootdir}/info'
920 htmldir='${docdir}'
921 dvidir='${docdir}'
922 pdfdir='${docdir}'
923 psdir='${docdir}'
924 libdir='${exec_prefix}/lib'
925 localedir='${datarootdir}/locale'
926 mandir='${datarootdir}/man'
928 ac_prev=
929 ac_dashdash=
930 for ac_option
932 # If the previous option needs an argument, assign it.
933 if test -n "$ac_prev"; then
934 eval $ac_prev=\$ac_option
935 ac_prev=
936 continue
939 case $ac_option in
940 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941 *) ac_optarg=yes ;;
942 esac
944 # Accept the important Cygnus configure options, so we can diagnose typos.
946 case $ac_dashdash$ac_option in
948 ac_dashdash=yes ;;
950 -bindir | --bindir | --bindi | --bind | --bin | --bi)
951 ac_prev=bindir ;;
952 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953 bindir=$ac_optarg ;;
955 -build | --build | --buil | --bui | --bu)
956 ac_prev=build_alias ;;
957 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958 build_alias=$ac_optarg ;;
960 -cache-file | --cache-file | --cache-fil | --cache-fi \
961 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962 ac_prev=cache_file ;;
963 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965 cache_file=$ac_optarg ;;
967 --config-cache | -C)
968 cache_file=config.cache ;;
970 -datadir | --datadir | --datadi | --datad)
971 ac_prev=datadir ;;
972 -datadir=* | --datadir=* | --datadi=* | --datad=*)
973 datadir=$ac_optarg ;;
975 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976 | --dataroo | --dataro | --datar)
977 ac_prev=datarootdir ;;
978 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980 datarootdir=$ac_optarg ;;
982 -disable-* | --disable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986 as_fn_error "invalid feature name: $ac_useropt"
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
991 "enable_$ac_useropt"
992 "*) ;;
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
995 esac
996 eval enable_$ac_useropt=no ;;
998 -docdir | --docdir | --docdi | --doc | --do)
999 ac_prev=docdir ;;
1000 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001 docdir=$ac_optarg ;;
1003 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004 ac_prev=dvidir ;;
1005 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006 dvidir=$ac_optarg ;;
1008 -enable-* | --enable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error "invalid feature name: $ac_useropt"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1017 "enable_$ac_useropt"
1018 "*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=\$ac_optarg ;;
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
1085 | --localstate | --localstat | --localsta | --localst | --locals)
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089 localstatedir=$ac_optarg ;;
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1102 no_create=yes ;;
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
1151 program_transform_name=$ac_optarg ;;
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
1171 sbindir=$ac_optarg ;;
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
1182 sharedstatedir=$ac_optarg ;;
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
1187 site=$ac_optarg ;;
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1212 -with-* | --with-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error "invalid package name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1221 "with_$ac_useropt"
1222 "*) ;;
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1225 esac
1226 eval with_$ac_useropt=\$ac_optarg ;;
1228 -without-* | --without-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error "invalid package name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1237 "with_$ac_useropt"
1238 "*) ;;
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1241 esac
1242 eval with_$ac_useropt=no ;;
1244 --x)
1245 # Obsolete; use --with-x.
1246 with_x=yes ;;
1248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249 | --x-incl | --x-inc | --x-in | --x-i)
1250 ac_prev=x_includes ;;
1251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253 x_includes=$ac_optarg ;;
1255 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257 ac_prev=x_libraries ;;
1258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260 x_libraries=$ac_optarg ;;
1262 -*) as_fn_error "unrecognized option: \`$ac_option'
1263 Try \`$0 --help' for more information."
1266 *=*)
1267 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268 # Reject names that are not valid shell variable names.
1269 case $ac_envvar in #(
1270 '' | [0-9]* | *[!_$as_cr_alnum]* )
1271 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1272 esac
1273 eval $ac_envvar=\$ac_optarg
1274 export $ac_envvar ;;
1277 # FIXME: should be removed in autoconf 3.0.
1278 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1284 esac
1285 done
1287 if test -n "$ac_prev"; then
1288 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289 as_fn_error "missing argument to $ac_option"
1292 if test -n "$ac_unrecognized_opts"; then
1293 case $enable_option_checking in
1294 no) ;;
1295 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1296 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297 esac
1300 # Check all directory arguments for consistency.
1301 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302 datadir sysconfdir sharedstatedir localstatedir includedir \
1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304 libdir localedir mandir
1306 eval ac_val=\$$ac_var
1307 # Remove trailing slashes.
1308 case $ac_val in
1309 */ )
1310 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311 eval $ac_var=\$ac_val;;
1312 esac
1313 # Be sure to have absolute directory names.
1314 case $ac_val in
1315 [\\/$]* | ?:[\\/]* ) continue;;
1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317 esac
1318 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1319 done
1321 # There might be people who depend on the old broken behavior: `$host'
1322 # used to hold the argument of --host etc.
1323 # FIXME: To remove some day.
1324 build=$build_alias
1325 host=$host_alias
1326 target=$target_alias
1328 # FIXME: To remove some day.
1329 if test "x$host_alias" != x; then
1330 if test "x$build_alias" = x; then
1331 cross_compiling=maybe
1332 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1333 If a cross compiler is detected then cross compile mode will be used." >&2
1334 elif test "x$build_alias" != "x$host_alias"; then
1335 cross_compiling=yes
1339 ac_tool_prefix=
1340 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342 test "$silent" = yes && exec 6>/dev/null
1345 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346 ac_ls_di=`ls -di .` &&
1347 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1348 as_fn_error "working directory cannot be determined"
1349 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350 as_fn_error "pwd does not report name of working directory"
1353 # Find the source files, if location was not specified.
1354 if test -z "$srcdir"; then
1355 ac_srcdir_defaulted=yes
1356 # Try the directory containing this script, then the parent directory.
1357 ac_confdir=`$as_dirname -- "$as_myself" ||
1358 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359 X"$as_myself" : 'X\(//\)[^/]' \| \
1360 X"$as_myself" : 'X\(//\)$' \| \
1361 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362 $as_echo X"$as_myself" |
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 s//\1/
1367 /^X\(\/\/\)[^/].*/{
1368 s//\1/
1371 /^X\(\/\/\)$/{
1372 s//\1/
1375 /^X\(\/\).*/{
1376 s//\1/
1379 s/.*/./; q'`
1380 srcdir=$ac_confdir
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 srcdir=..
1384 else
1385 ac_srcdir_defaulted=no
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1391 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392 ac_abs_confdir=`(
1393 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1394 pwd)`
1395 # When building in place, set srcdir=.
1396 if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 srcdir=.
1399 # Remove unnecessary trailing slashes from srcdir.
1400 # Double slashes in file names in object file debugging info
1401 # mess up M-x gdb in Emacs.
1402 case $srcdir in
1403 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 esac
1405 for ac_var in $ac_precious_vars; do
1406 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_${ac_var}_value=\$${ac_var}
1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410 done
1413 # Report the --help message.
1415 if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1418 cat <<_ACEOF
1419 \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
1421 Usage: $0 [OPTION]... [VAR=VALUE]...
1423 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424 VAR=VALUE. See below for descriptions of some of the useful variables.
1426 Defaults for the options are specified in brackets.
1428 Configuration:
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
1433 -q, --quiet, --silent do not print \`checking...' messages
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for \`--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1439 Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
1441 [$ac_default_prefix]
1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443 [PREFIX]
1445 By default, \`make install' will install all the files in
1446 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448 for instance \`--prefix=\$HOME'.
1450 For better control, use the options below.
1452 Fine tuning of the installation directories:
1453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
1467 --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
1472 _ACEOF
1474 cat <<\_ACEOF
1476 Program names:
1477 --program-prefix=PREFIX prepend PREFIX to installed program names
1478 --program-suffix=SUFFIX append SUFFIX to installed program names
1479 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1481 System types:
1482 --build=BUILD configure for building on BUILD [guessed]
1483 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1484 _ACEOF
1487 if test -n "$ac_init_help"; then
1488 case $ac_init_help in
1489 short | recursive ) echo "Configuration of libltdl 1.2:";;
1490 esac
1491 cat <<\_ACEOF
1493 Optional Features:
1494 --disable-option-checking ignore unrecognized --enable/--with options
1495 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1496 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1497 --enable-maintainer-mode enable make rules and dependencies not useful
1498 (and sometimes confusing) to the casual installer
1499 --enable-multilib build many library versions (default)
1500 --disable-dependency-tracking speeds up one-time build
1501 --enable-dependency-tracking do not reject slow dependency extractors
1502 --enable-shared[=PKGS] build shared libraries [default=yes]
1503 --enable-static[=PKGS] build static libraries [default=yes]
1504 --enable-fast-install[=PKGS]
1505 optimize for fast installation [default=yes]
1506 --disable-libtool-lock avoid locking (might break parallel builds)
1507 --enable-ltdl-install install libltdl
1509 Optional Packages:
1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1512 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1513 --with-pic try to use only PIC/non-PIC objects [default=use
1514 both]
1515 --with-tags[=TAGS] include additional configurations [automatic]
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1525 CPP C preprocessor
1527 Use these variables to override the choices made by `configure' or to help
1528 it to find libraries and programs with nonstandard names/locations.
1530 Report bugs to <bug-libtool@gnu.org>.
1531 _ACEOF
1532 ac_status=$?
1535 if test "$ac_init_help" = "recursive"; then
1536 # If there are subdirs, report their specific --help.
1537 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538 test -d "$ac_dir" ||
1539 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540 continue
1541 ac_builddir=.
1543 case "$ac_dir" in
1544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1547 # A ".." for each directory in $ac_dir_suffix.
1548 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1549 case $ac_top_builddir_sub in
1550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552 esac ;;
1553 esac
1554 ac_abs_top_builddir=$ac_pwd
1555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556 # for backward compatibility:
1557 ac_top_builddir=$ac_top_build_prefix
1559 case $srcdir in
1560 .) # We are building in place.
1561 ac_srcdir=.
1562 ac_top_srcdir=$ac_top_builddir_sub
1563 ac_abs_top_srcdir=$ac_pwd ;;
1564 [\\/]* | ?:[\\/]* ) # Absolute name.
1565 ac_srcdir=$srcdir$ac_dir_suffix;
1566 ac_top_srcdir=$srcdir
1567 ac_abs_top_srcdir=$srcdir ;;
1568 *) # Relative name.
1569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570 ac_top_srcdir=$ac_top_build_prefix$srcdir
1571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572 esac
1573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1575 cd "$ac_dir" || { ac_status=$?; continue; }
1576 # Check for guested configure.
1577 if test -f "$ac_srcdir/configure.gnu"; then
1578 echo &&
1579 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580 elif test -f "$ac_srcdir/configure"; then
1581 echo &&
1582 $SHELL "$ac_srcdir/configure" --help=recursive
1583 else
1584 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1585 fi || ac_status=$?
1586 cd "$ac_pwd" || { ac_status=$?; break; }
1587 done
1590 test -n "$ac_init_help" && exit $ac_status
1591 if $ac_init_version; then
1592 cat <<\_ACEOF
1593 libltdl configure 1.2
1594 generated by GNU Autoconf 2.64
1596 Copyright (C) 2009 Free Software Foundation, Inc.
1597 This configure script is free software; the Free Software Foundation
1598 gives unlimited permission to copy, distribute and modify it.
1599 _ACEOF
1600 exit
1603 ## ------------------------ ##
1604 ## Autoconf initialization. ##
1605 ## ------------------------ ##
1607 # ac_fn_c_try_compile LINENO
1608 # --------------------------
1609 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_compile ()
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 rm -f conftest.$ac_objext
1614 if { { ac_try="$ac_compile"
1615 case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_compile") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && {
1630 test -z "$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 } && test -s conftest.$ac_objext; then :
1633 ac_retval=0
1634 else
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1638 ac_retval=1
1640 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1641 return $ac_retval
1643 } # ac_fn_c_try_compile
1645 # ac_fn_c_try_link LINENO
1646 # -----------------------
1647 # Try to link conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_link ()
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 rm -f conftest.$ac_objext conftest$ac_exeext
1652 if { { ac_try="$ac_link"
1653 case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_link") 2>conftest.err
1660 ac_status=$?
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && {
1668 test -z "$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1670 } && test -s conftest$ac_exeext && {
1671 test "$cross_compiling" = yes ||
1672 $as_test_x conftest$ac_exeext
1673 }; then :
1674 ac_retval=0
1675 else
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1679 ac_retval=1
1681 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1682 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1683 # interfere with the next link command; also delete a directory that is
1684 # left behind by Apple's compiler. We do this before executing the actions.
1685 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687 return $ac_retval
1689 } # ac_fn_c_try_link
1691 # ac_fn_c_try_cpp LINENO
1692 # ----------------------
1693 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1694 ac_fn_c_try_cpp ()
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if { { ac_try="$ac_cpp conftest.$ac_ext"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1705 ac_status=$?
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } >/dev/null && {
1713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1714 test ! -s conftest.err
1715 }; then :
1716 ac_retval=0
1717 else
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1721 ac_retval=1
1723 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724 return $ac_retval
1726 } # ac_fn_c_try_cpp
1728 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1729 # -------------------------------------------------------
1730 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1731 # the include files in INCLUDES and setting the cache variable VAR
1732 # accordingly.
1733 ac_fn_c_check_header_mongrel ()
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1740 $as_echo_n "(cached) " >&6
1742 eval ac_res=\$$3
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744 $as_echo "$ac_res" >&6; }
1745 else
1746 # Is the header compilable?
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1748 $as_echo_n "checking $2 usability... " >&6; }
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1752 #include <$2>
1753 _ACEOF
1754 if ac_fn_c_try_compile "$LINENO"; then :
1755 ac_header_compiler=yes
1756 else
1757 ac_header_compiler=no
1759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1761 $as_echo "$ac_header_compiler" >&6; }
1763 # Is the header present?
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1765 $as_echo_n "checking $2 presence... " >&6; }
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1768 #include <$2>
1769 _ACEOF
1770 if ac_fn_c_try_cpp "$LINENO"; then :
1771 ac_header_preproc=yes
1772 else
1773 ac_header_preproc=no
1775 rm -f conftest.err conftest.$ac_ext
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1777 $as_echo "$ac_header_preproc" >&6; }
1779 # So? What about this header?
1780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1781 yes:no: )
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1783 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1785 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1787 no:yes:* )
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1789 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1791 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1793 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1795 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1797 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1798 ( cat <<\_ASBOX
1799 ## ---------------------------------- ##
1800 ## Report this to bug-libtool@gnu.org ##
1801 ## ---------------------------------- ##
1802 _ASBOX
1803 ) | sed "s/^/$as_me: WARNING: /" >&2
1805 esac
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809 $as_echo_n "(cached) " >&6
1810 else
1811 eval "$3=\$ac_header_compiler"
1813 eval ac_res=\$$3
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819 } # ac_fn_c_check_header_mongrel
1821 # ac_fn_c_try_run LINENO
1822 # ----------------------
1823 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1824 # that executables *can* be run.
1825 ac_fn_c_try_run ()
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if { { ac_try="$ac_link"
1829 case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_link") 2>&5
1836 ac_status=$?
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1839 { { case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_try") 2>&5
1846 ac_status=$?
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; }; }; then :
1849 ac_retval=0
1850 else
1851 $as_echo "$as_me: program exited with status $ac_status" >&5
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1855 ac_retval=$ac_status
1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859 return $ac_retval
1861 } # ac_fn_c_try_run
1863 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1864 # -------------------------------------------------------
1865 # Tests whether HEADER exists and can be compiled using the include files in
1866 # INCLUDES, setting the cache variable VAR accordingly.
1867 ac_fn_c_check_header_compile ()
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1873 $as_echo_n "(cached) " >&6
1874 else
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1878 #include <$2>
1879 _ACEOF
1880 if ac_fn_c_try_compile "$LINENO"; then :
1881 eval "$3=yes"
1882 else
1883 eval "$3=no"
1885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887 eval ac_res=\$$3
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892 } # ac_fn_c_check_header_compile
1894 # ac_fn_c_check_func LINENO FUNC VAR
1895 # ----------------------------------
1896 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1897 ac_fn_c_check_func ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1903 $as_echo_n "(cached) " >&6
1904 else
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1909 #define $2 innocuous_$2
1911 /* System header to define __stub macros and hopefully few prototypes,
1912 which can conflict with char $2 (); below.
1913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1914 <limits.h> exists even on freestanding compilers. */
1916 #ifdef __STDC__
1917 # include <limits.h>
1918 #else
1919 # include <assert.h>
1920 #endif
1922 #undef $2
1924 /* Override any GCC internal prototype to avoid an error.
1925 Use char because int might match the return type of a GCC
1926 builtin and then its argument prototype would still apply. */
1927 #ifdef __cplusplus
1928 extern "C"
1929 #endif
1930 char $2 ();
1931 /* The GNU C library defines this for functions which it implements
1932 to always fail with ENOSYS. Some functions are actually named
1933 something starting with __ and the normal name is an alias. */
1934 #if defined __stub_$2 || defined __stub___$2
1935 choke me
1936 #endif
1939 main ()
1941 return $2 ();
1943 return 0;
1945 _ACEOF
1946 if ac_fn_c_try_link "$LINENO"; then :
1947 eval "$3=yes"
1948 else
1949 eval "$3=no"
1951 rm -f core conftest.err conftest.$ac_objext \
1952 conftest$ac_exeext conftest.$ac_ext
1954 eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959 } # ac_fn_c_check_func
1961 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1962 # -------------------------------------------
1963 # Tests whether TYPE exists after having included INCLUDES, setting cache
1964 # variable VAR accordingly.
1965 ac_fn_c_check_type ()
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1971 $as_echo_n "(cached) " >&6
1972 else
1973 eval "$3=no"
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1978 main ()
1980 if (sizeof ($2))
1981 return 0;
1983 return 0;
1985 _ACEOF
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1991 main ()
1993 if (sizeof (($2)))
1994 return 0;
1996 return 0;
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"; then :
2001 else
2002 eval "$3=yes"
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 eval ac_res=\$$3
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013 } # ac_fn_c_check_type
2014 cat >config.log <<_ACEOF
2015 This file contains any messages produced by compilers while
2016 running configure, to aid debugging if configure makes a mistake.
2018 It was created by libltdl $as_me 1.2, which was
2019 generated by GNU Autoconf 2.64. Invocation command line was
2021 $ $0 $@
2023 _ACEOF
2024 exec 5>>config.log
2026 cat <<_ASUNAME
2027 ## --------- ##
2028 ## Platform. ##
2029 ## --------- ##
2031 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2032 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2033 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2034 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2035 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2037 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2038 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2040 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2041 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2042 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2043 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2044 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2045 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2046 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2048 _ASUNAME
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2053 IFS=$as_save_IFS
2054 test -z "$as_dir" && as_dir=.
2055 $as_echo "PATH: $as_dir"
2056 done
2057 IFS=$as_save_IFS
2059 } >&5
2061 cat >&5 <<_ACEOF
2064 ## ----------- ##
2065 ## Core tests. ##
2066 ## ----------- ##
2068 _ACEOF
2071 # Keep a trace of the command line.
2072 # Strip out --no-create and --no-recursion so they do not pile up.
2073 # Strip out --silent because we don't want to record it for future runs.
2074 # Also quote any args containing shell meta-characters.
2075 # Make two passes to allow for proper duplicate-argument suppression.
2076 ac_configure_args=
2077 ac_configure_args0=
2078 ac_configure_args1=
2079 ac_must_keep_next=false
2080 for ac_pass in 1 2
2082 for ac_arg
2084 case $ac_arg in
2085 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2087 | -silent | --silent | --silen | --sile | --sil)
2088 continue ;;
2089 *\'*)
2090 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2091 esac
2092 case $ac_pass in
2093 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2095 as_fn_append ac_configure_args1 " '$ac_arg'"
2096 if test $ac_must_keep_next = true; then
2097 ac_must_keep_next=false # Got value, back to normal.
2098 else
2099 case $ac_arg in
2100 *=* | --config-cache | -C | -disable-* | --disable-* \
2101 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2102 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2103 | -with-* | --with-* | -without-* | --without-* | --x)
2104 case "$ac_configure_args0 " in
2105 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2106 esac
2108 -* ) ac_must_keep_next=true ;;
2109 esac
2111 as_fn_append ac_configure_args " '$ac_arg'"
2113 esac
2114 done
2115 done
2116 { ac_configure_args0=; unset ac_configure_args0;}
2117 { ac_configure_args1=; unset ac_configure_args1;}
2119 # When interrupted or exit'd, cleanup temporary files, and complete
2120 # config.log. We remove comments because anyway the quotes in there
2121 # would cause problems or look ugly.
2122 # WARNING: Use '\'' to represent an apostrophe within the trap.
2123 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2124 trap 'exit_status=$?
2125 # Save into config.log some information that might help in debugging.
2127 echo
2129 cat <<\_ASBOX
2130 ## ---------------- ##
2131 ## Cache variables. ##
2132 ## ---------------- ##
2133 _ASBOX
2134 echo
2135 # The following way of writing the cache mishandles newlines in values,
2137 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2138 eval ac_val=\$$ac_var
2139 case $ac_val in #(
2140 *${as_nl}*)
2141 case $ac_var in #(
2142 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2143 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2144 esac
2145 case $ac_var in #(
2146 _ | IFS | as_nl) ;; #(
2147 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2148 *) { eval $ac_var=; unset $ac_var;} ;;
2149 esac ;;
2150 esac
2151 done
2152 (set) 2>&1 |
2153 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2154 *${as_nl}ac_space=\ *)
2155 sed -n \
2156 "s/'\''/'\''\\\\'\'''\''/g;
2157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2158 ;; #(
2160 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2162 esac |
2163 sort
2165 echo
2167 cat <<\_ASBOX
2168 ## ----------------- ##
2169 ## Output variables. ##
2170 ## ----------------- ##
2171 _ASBOX
2172 echo
2173 for ac_var in $ac_subst_vars
2175 eval ac_val=\$$ac_var
2176 case $ac_val in
2177 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2178 esac
2179 $as_echo "$ac_var='\''$ac_val'\''"
2180 done | sort
2181 echo
2183 if test -n "$ac_subst_files"; then
2184 cat <<\_ASBOX
2185 ## ------------------- ##
2186 ## File substitutions. ##
2187 ## ------------------- ##
2188 _ASBOX
2189 echo
2190 for ac_var in $ac_subst_files
2192 eval ac_val=\$$ac_var
2193 case $ac_val in
2194 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2195 esac
2196 $as_echo "$ac_var='\''$ac_val'\''"
2197 done | sort
2198 echo
2201 if test -s confdefs.h; then
2202 cat <<\_ASBOX
2203 ## ----------- ##
2204 ## confdefs.h. ##
2205 ## ----------- ##
2206 _ASBOX
2207 echo
2208 cat confdefs.h
2209 echo
2211 test "$ac_signal" != 0 &&
2212 $as_echo "$as_me: caught signal $ac_signal"
2213 $as_echo "$as_me: exit $exit_status"
2214 } >&5
2215 rm -f core *.core core.conftest.* &&
2216 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2217 exit $exit_status
2219 for ac_signal in 1 2 13 15; do
2220 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2221 done
2222 ac_signal=0
2224 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2225 rm -f -r conftest* confdefs.h
2227 $as_echo "/* confdefs.h */" > confdefs.h
2229 # Predefined preprocessor variables.
2231 cat >>confdefs.h <<_ACEOF
2232 #define PACKAGE_NAME "$PACKAGE_NAME"
2233 _ACEOF
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2237 _ACEOF
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2241 _ACEOF
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_STRING "$PACKAGE_STRING"
2245 _ACEOF
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2249 _ACEOF
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_URL "$PACKAGE_URL"
2253 _ACEOF
2256 # Let the site file select an alternate cache file if it wants to.
2257 # Prefer an explicitly selected file to automatically selected ones.
2258 ac_site_file1=NONE
2259 ac_site_file2=NONE
2260 if test -n "$CONFIG_SITE"; then
2261 ac_site_file1=$CONFIG_SITE
2262 elif test "x$prefix" != xNONE; then
2263 ac_site_file1=$prefix/share/config.site
2264 ac_site_file2=$prefix/etc/config.site
2265 else
2266 ac_site_file1=$ac_default_prefix/share/config.site
2267 ac_site_file2=$ac_default_prefix/etc/config.site
2269 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2271 test "x$ac_site_file" = xNONE && continue
2272 if test -r "$ac_site_file"; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2274 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2275 sed 's/^/| /' "$ac_site_file" >&5
2276 . "$ac_site_file"
2278 done
2280 if test -r "$cache_file"; then
2281 # Some versions of bash will fail to source /dev/null (special
2282 # files actually), so we avoid doing that.
2283 if test -f "$cache_file"; then
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2285 $as_echo "$as_me: loading cache $cache_file" >&6;}
2286 case $cache_file in
2287 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2288 *) . "./$cache_file";;
2289 esac
2291 else
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2293 $as_echo "$as_me: creating cache $cache_file" >&6;}
2294 >$cache_file
2297 # Check that the precious variables saved in the cache have kept the same
2298 # value.
2299 ac_cache_corrupted=false
2300 for ac_var in $ac_precious_vars; do
2301 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2302 eval ac_new_set=\$ac_env_${ac_var}_set
2303 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2304 eval ac_new_val=\$ac_env_${ac_var}_value
2305 case $ac_old_set,$ac_new_set in
2306 set,)
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2308 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2309 ac_cache_corrupted=: ;;
2310 ,set)
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2312 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2313 ac_cache_corrupted=: ;;
2314 ,);;
2316 if test "x$ac_old_val" != "x$ac_new_val"; then
2317 # differences in whitespace do not lead to failure.
2318 ac_old_val_w=`echo x $ac_old_val`
2319 ac_new_val_w=`echo x $ac_new_val`
2320 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2322 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2323 ac_cache_corrupted=:
2324 else
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2326 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2327 eval $ac_var=\$ac_old_val
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2330 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2332 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2333 fi;;
2334 esac
2335 # Pass precious variables to config.status.
2336 if test "$ac_new_set" = set; then
2337 case $ac_new_val in
2338 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2339 *) ac_arg=$ac_var=$ac_new_val ;;
2340 esac
2341 case " $ac_configure_args " in
2342 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2343 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2344 esac
2346 done
2347 if $ac_cache_corrupted; then
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2351 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2352 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2354 ## -------------------- ##
2355 ## Main body of script. ##
2356 ## -------------------- ##
2358 ac_ext=c
2359 ac_cpp='$CPP $CPPFLAGS'
2360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2370 ## GCJ LOCAL: gcc tree uses maintainer mode.
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2373 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2374 # Check whether --enable-maintainer-mode was given.
2375 if test "${enable_maintainer_mode+set}" = set; then :
2376 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2377 else
2378 USE_MAINTAINER_MODE=no
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2382 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2383 if test $USE_MAINTAINER_MODE = yes; then
2384 MAINTAINER_MODE_TRUE=
2385 MAINTAINER_MODE_FALSE='#'
2386 else
2387 MAINTAINER_MODE_TRUE='#'
2388 MAINTAINER_MODE_FALSE=
2391 MAINT=$MAINTAINER_MODE_TRUE
2395 # Default to --enable-multilib
2396 # Check whether --enable-multilib was given.
2397 if test "${enable_multilib+set}" = set; then :
2398 enableval=$enable_multilib; case "$enableval" in
2399 yes) multilib=yes ;;
2400 no) multilib=no ;;
2401 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2402 esac
2403 else
2404 multilib=yes
2408 # We may get other options which we leave undocumented:
2409 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2410 # See config-ml.in if you want the gory details.
2412 if test "$srcdir" = "."; then
2413 if test "$with_target_subdir" != "."; then
2414 multi_basedir="$srcdir/$with_multisrctop../../.."
2415 else
2416 multi_basedir="$srcdir/$with_multisrctop../.."
2418 else
2419 multi_basedir="$srcdir/../.."
2423 # Even if the default multilib is not a cross compilation,
2424 # it may be that some of the other multilibs are.
2425 if test $cross_compiling = no && test $multilib = yes \
2426 && test "x${with_multisubdir}" != x ; then
2427 cross_compiling=maybe
2430 ac_config_commands="$ac_config_commands default-1"
2433 ## ------------------------------- ##
2434 ## Libltdl specific configuration. ##
2435 ## ------------------------------- ##
2437 ac_aux_dir=
2438 for ac_dir in . "$srcdir"/.; do
2439 for ac_t in install-sh install.sh shtool; do
2440 if test -f "$ac_dir/$ac_t"; then
2441 ac_aux_dir=$ac_dir
2442 ac_install_sh="$ac_aux_dir/$ac_t -c"
2443 break 2
2445 done
2446 done
2447 if test -z "$ac_aux_dir"; then
2448 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2451 # These three variables are undocumented and unsupported,
2452 # and are intended to be withdrawn in a future Autoconf release.
2453 # They can cause serious problems if a builder's source tree is in a directory
2454 # whose full name contains unusual characters.
2455 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2456 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2457 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2461 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
2462 if test -f ${srcdir}/ltmain.sh; then
2463 # if libltdl is libtoolized, it is assumed to be stand-alone and
2464 # installed unless the command line overrides it (tested above)
2465 enable_ltdl_install=yes
2466 else
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The top-level configure must select either" >&5
2468 $as_echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
2470 $as_echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
2471 as_fn_error "*** Maybe you want to --enable-ltdl-install?" "$LINENO" 5
2476 ## ------------------------ ##
2477 ## Automake Initialisation. ##
2478 ## ------------------------ ##
2479 am__api_version='1.11'
2481 # Find a good install program. We prefer a C program (faster),
2482 # so one script is as good as another. But avoid the broken or
2483 # incompatible versions:
2484 # SysV /etc/install, /usr/sbin/install
2485 # SunOS /usr/etc/install
2486 # IRIX /sbin/install
2487 # AIX /bin/install
2488 # AmigaOS /C/install, which installs bootblocks on floppy discs
2489 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2490 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2491 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2492 # OS/2's system install, which has a completely different semantic
2493 # ./install, which can be erroneously created by make from ./install.sh.
2494 # Reject install programs that cannot install multiple files.
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2496 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2497 if test -z "$INSTALL"; then
2498 if test "${ac_cv_path_install+set}" = set; then :
2499 $as_echo_n "(cached) " >&6
2500 else
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 for as_dir in $PATH
2504 IFS=$as_save_IFS
2505 test -z "$as_dir" && as_dir=.
2506 # Account for people who put trailing slashes in PATH elements.
2507 case $as_dir/ in #((
2508 ./ | .// | /[cC]/* | \
2509 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2510 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2511 /usr/ucb/* ) ;;
2513 # OSF1 and SCO ODT 3.0 have their own names for install.
2514 # Don't use installbsd from OSF since it installs stuff as root
2515 # by default.
2516 for ac_prog in ginstall scoinst install; do
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2519 if test $ac_prog = install &&
2520 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2521 # AIX install. It has an incompatible calling convention.
2523 elif test $ac_prog = install &&
2524 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2525 # program-specific install script used by HP pwplus--don't use.
2527 else
2528 rm -rf conftest.one conftest.two conftest.dir
2529 echo one > conftest.one
2530 echo two > conftest.two
2531 mkdir conftest.dir
2532 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2533 test -s conftest.one && test -s conftest.two &&
2534 test -s conftest.dir/conftest.one &&
2535 test -s conftest.dir/conftest.two
2536 then
2537 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2538 break 3
2542 done
2543 done
2545 esac
2547 done
2548 IFS=$as_save_IFS
2550 rm -rf conftest.one conftest.two conftest.dir
2553 if test "${ac_cv_path_install+set}" = set; then
2554 INSTALL=$ac_cv_path_install
2555 else
2556 # As a last resort, use the slow shell script. Don't cache a
2557 # value for INSTALL within a source directory, because that will
2558 # break other packages using the cache if that directory is
2559 # removed, or if the value is a relative name.
2560 INSTALL=$ac_install_sh
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2564 $as_echo "$INSTALL" >&6; }
2566 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2567 # It thinks the first close brace ends the variable substitution.
2568 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2570 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2572 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2575 $as_echo_n "checking whether build environment is sane... " >&6; }
2576 # Just in case
2577 sleep 1
2578 echo timestamp > conftest.file
2579 # Reject unsafe characters in $srcdir or the absolute working directory
2580 # name. Accept space and tab only in the latter.
2581 am_lf='
2583 case `pwd` in
2584 *[\\\"\#\$\&\'\`$am_lf]*)
2585 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2586 esac
2587 case $srcdir in
2588 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2589 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2590 esac
2592 # Do `set' in a subshell so we don't clobber the current shell's
2593 # arguments. Must try -L first in case configure is actually a
2594 # symlink; some systems play weird games with the mod time of symlinks
2595 # (eg FreeBSD returns the mod time of the symlink's containing
2596 # directory).
2597 if (
2598 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2599 if test "$*" = "X"; then
2600 # -L didn't work.
2601 set X `ls -t "$srcdir/configure" conftest.file`
2603 rm -f conftest.file
2604 if test "$*" != "X $srcdir/configure conftest.file" \
2605 && test "$*" != "X conftest.file $srcdir/configure"; then
2607 # If neither matched, then we have a broken ls. This can happen
2608 # if, for instance, CONFIG_SHELL is bash and it inherits a
2609 # broken ls alias from the environment. This has actually
2610 # happened. Such a system could not be considered "sane".
2611 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2612 alias in your environment" "$LINENO" 5
2615 test "$2" = conftest.file
2617 then
2618 # Ok.
2620 else
2621 as_fn_error "newly created file is older than distributed files!
2622 Check your system clock" "$LINENO" 5
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2625 $as_echo "yes" >&6; }
2626 test "$program_prefix" != NONE &&
2627 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2628 # Use a double $ so make ignores it.
2629 test "$program_suffix" != NONE &&
2630 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2631 # Double any \ or $.
2632 # By default was `s,x,x', remove it if useless.
2633 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2634 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2636 # expand $ac_aux_dir to an absolute path
2637 am_aux_dir=`cd $ac_aux_dir && pwd`
2639 if test x"${MISSING+set}" != xset; then
2640 case $am_aux_dir in
2641 *\ * | *\ *)
2642 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2644 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2645 esac
2647 # Use eval to expand $SHELL
2648 if eval "$MISSING --run true"; then
2649 am_missing_run="$MISSING --run "
2650 else
2651 am_missing_run=
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2653 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2656 if test x"${install_sh}" != xset; then
2657 case $am_aux_dir in
2658 *\ * | *\ *)
2659 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2661 install_sh="\${SHELL} $am_aux_dir/install-sh"
2662 esac
2665 # Installed binaries are usually stripped using `strip' when the user
2666 # run `make install-strip'. However `strip' might not be the right
2667 # tool to use in cross-compilation environments, therefore Automake
2668 # will honor the `STRIP' environment variable to overrule this program.
2669 if test "$cross_compiling" != no; then
2670 if test -n "$ac_tool_prefix"; then
2671 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2672 set dummy ${ac_tool_prefix}strip; ac_word=$2
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 $as_echo_n "checking for $ac_word... " >&6; }
2675 if test "${ac_cv_prog_STRIP+set}" = set; then :
2676 $as_echo_n "(cached) " >&6
2677 else
2678 if test -n "$STRIP"; then
2679 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2692 done
2693 done
2694 IFS=$as_save_IFS
2698 STRIP=$ac_cv_prog_STRIP
2699 if test -n "$STRIP"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2701 $as_echo "$STRIP" >&6; }
2702 else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704 $as_echo "no" >&6; }
2709 if test -z "$ac_cv_prog_STRIP"; then
2710 ac_ct_STRIP=$STRIP
2711 # Extract the first word of "strip", so it can be a program name with args.
2712 set dummy strip; ac_word=$2
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714 $as_echo_n "checking for $ac_word... " >&6; }
2715 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2716 $as_echo_n "(cached) " >&6
2717 else
2718 if test -n "$ac_ct_STRIP"; then
2719 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2720 else
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 for as_dir in $PATH
2724 IFS=$as_save_IFS
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2728 ac_cv_prog_ac_ct_STRIP="strip"
2729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 break 2
2732 done
2733 done
2734 IFS=$as_save_IFS
2738 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2739 if test -n "$ac_ct_STRIP"; then
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2741 $as_echo "$ac_ct_STRIP" >&6; }
2742 else
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744 $as_echo "no" >&6; }
2747 if test "x$ac_ct_STRIP" = x; then
2748 STRIP=":"
2749 else
2750 case $cross_compiling:$ac_tool_warned in
2751 yes:)
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2754 ac_tool_warned=yes ;;
2755 esac
2756 STRIP=$ac_ct_STRIP
2758 else
2759 STRIP="$ac_cv_prog_STRIP"
2763 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2766 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2767 if test -z "$MKDIR_P"; then
2768 if test "${ac_cv_path_mkdir+set}" = set; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_prog in mkdir gmkdir; do
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2779 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2780 'mkdir (GNU coreutils) '* | \
2781 'mkdir (coreutils) '* | \
2782 'mkdir (fileutils) '4.1*)
2783 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2784 break 3;;
2785 esac
2786 done
2787 done
2788 done
2789 IFS=$as_save_IFS
2793 if test "${ac_cv_path_mkdir+set}" = set; then
2794 MKDIR_P="$ac_cv_path_mkdir -p"
2795 else
2796 # As a last resort, use the slow shell script. Don't cache a
2797 # value for MKDIR_P within a source directory, because that will
2798 # break other packages using the cache if that directory is
2799 # removed, or if the value is a relative name.
2800 test -d ./--version && rmdir ./--version
2801 MKDIR_P="$ac_install_sh -d"
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2805 $as_echo "$MKDIR_P" >&6; }
2807 mkdir_p="$MKDIR_P"
2808 case $mkdir_p in
2809 [\\/$]* | ?:[\\/]*) ;;
2810 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2811 esac
2813 for ac_prog in gawk mawk nawk awk
2815 # Extract the first word of "$ac_prog", so it can be a program name with args.
2816 set dummy $ac_prog; ac_word=$2
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if test "${ac_cv_prog_AWK+set}" = set; then :
2820 $as_echo_n "(cached) " >&6
2821 else
2822 if test -n "$AWK"; then
2823 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2828 IFS=$as_save_IFS
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832 ac_cv_prog_AWK="$ac_prog"
2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2836 done
2837 done
2838 IFS=$as_save_IFS
2842 AWK=$ac_cv_prog_AWK
2843 if test -n "$AWK"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2845 $as_echo "$AWK" >&6; }
2846 else
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848 $as_echo "no" >&6; }
2852 test -n "$AWK" && break
2853 done
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2856 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2857 set x ${MAKE-make}
2858 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2859 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2860 $as_echo_n "(cached) " >&6
2861 else
2862 cat >conftest.make <<\_ACEOF
2863 SHELL = /bin/sh
2864 all:
2865 @echo '@@@%%%=$(MAKE)=@@@%%%'
2866 _ACEOF
2867 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2868 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2869 *@@@%%%=?*=@@@%%%*)
2870 eval ac_cv_prog_make_${ac_make}_set=yes;;
2872 eval ac_cv_prog_make_${ac_make}_set=no;;
2873 esac
2874 rm -f conftest.make
2876 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2878 $as_echo "yes" >&6; }
2879 SET_MAKE=
2880 else
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2883 SET_MAKE="MAKE=${MAKE-make}"
2886 rm -rf .tst 2>/dev/null
2887 mkdir .tst 2>/dev/null
2888 if test -d .tst; then
2889 am__leading_dot=.
2890 else
2891 am__leading_dot=_
2893 rmdir .tst 2>/dev/null
2895 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2896 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2897 # is not polluted with repeated "-I."
2898 am__isrc=' -I$(srcdir)'
2899 # test to see if srcdir already configured
2900 if test -f $srcdir/config.status; then
2901 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2905 # test whether we have cygpath
2906 if test -z "$CYGPATH_W"; then
2907 if (cygpath --version) >/dev/null 2>/dev/null; then
2908 CYGPATH_W='cygpath -w'
2909 else
2910 CYGPATH_W=echo
2915 # Define the identity of the package.
2916 PACKAGE=libltdl
2917 VERSION=1.2
2920 # Some tools Automake needs.
2922 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2925 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2928 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2931 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2934 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2936 # We need awk for the "check" target. The system "awk" is bad on
2937 # some platforms.
2938 # Always define AMTAR for backward compatibility.
2940 AMTAR=${AMTAR-"${am_missing_run}tar"}
2942 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2948 ac_config_headers="$ac_config_headers config.h:config-h.in"
2952 ## ------------------ ##
2953 ## C compiler checks. ##
2954 ## ------------------ ##
2955 ac_ext=c
2956 ac_cpp='$CPP $CPPFLAGS'
2957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2960 if test -n "$ac_tool_prefix"; then
2961 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2962 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if test "${ac_cv_prog_CC+set}" = set; then :
2966 $as_echo_n "(cached) " >&6
2967 else
2968 if test -n "$CC"; then
2969 ac_cv_prog_CC="$CC" # Let the user override the test.
2970 else
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 for as_dir in $PATH
2974 IFS=$as_save_IFS
2975 test -z "$as_dir" && as_dir=.
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 break 2
2982 done
2983 done
2984 IFS=$as_save_IFS
2988 CC=$ac_cv_prog_CC
2989 if test -n "$CC"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2991 $as_echo "$CC" >&6; }
2992 else
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
2999 if test -z "$ac_cv_prog_CC"; then
3000 ac_ct_CC=$CC
3001 # Extract the first word of "gcc", so it can be a program name with args.
3002 set dummy gcc; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3006 $as_echo_n "(cached) " >&6
3007 else
3008 if test -n "$ac_ct_CC"; then
3009 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3010 else
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3014 IFS=$as_save_IFS
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3018 ac_cv_prog_ac_ct_CC="gcc"
3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 break 2
3022 done
3023 done
3024 IFS=$as_save_IFS
3028 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3029 if test -n "$ac_ct_CC"; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3031 $as_echo "$ac_ct_CC" >&6; }
3032 else
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3037 if test "x$ac_ct_CC" = x; then
3038 CC=""
3039 else
3040 case $cross_compiling:$ac_tool_warned in
3041 yes:)
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3044 ac_tool_warned=yes ;;
3045 esac
3046 CC=$ac_ct_CC
3048 else
3049 CC="$ac_cv_prog_CC"
3052 if test -z "$CC"; then
3053 if test -n "$ac_tool_prefix"; then
3054 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3055 set dummy ${ac_tool_prefix}cc; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if test "${ac_cv_prog_CC+set}" = set; then :
3059 $as_echo_n "(cached) " >&6
3060 else
3061 if test -n "$CC"; then
3062 ac_cv_prog_CC="$CC" # Let the user override the test.
3063 else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3067 IFS=$as_save_IFS
3068 test -z "$as_dir" && as_dir=.
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071 ac_cv_prog_CC="${ac_tool_prefix}cc"
3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 break 2
3075 done
3076 done
3077 IFS=$as_save_IFS
3081 CC=$ac_cv_prog_CC
3082 if test -n "$CC"; then
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3084 $as_echo "$CC" >&6; }
3085 else
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087 $as_echo "no" >&6; }
3093 if test -z "$CC"; then
3094 # Extract the first word of "cc", so it can be a program name with args.
3095 set dummy cc; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if test "${ac_cv_prog_CC+set}" = set; then :
3099 $as_echo_n "(cached) " >&6
3100 else
3101 if test -n "$CC"; then
3102 ac_cv_prog_CC="$CC" # Let the user override the test.
3103 else
3104 ac_prog_rejected=no
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3113 ac_prog_rejected=yes
3114 continue
3116 ac_cv_prog_CC="cc"
3117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 break 2
3120 done
3121 done
3122 IFS=$as_save_IFS
3124 if test $ac_prog_rejected = yes; then
3125 # We found a bogon in the path, so make sure we never use it.
3126 set dummy $ac_cv_prog_CC
3127 shift
3128 if test $# != 0; then
3129 # We chose a different compiler from the bogus one.
3130 # However, it has the same basename, so the bogon will be chosen
3131 # first if we set CC to just the basename; use the full file name.
3132 shift
3133 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3138 CC=$ac_cv_prog_CC
3139 if test -n "$CC"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3141 $as_echo "$CC" >&6; }
3142 else
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3149 if test -z "$CC"; then
3150 if test -n "$ac_tool_prefix"; then
3151 for ac_prog in cl.exe
3153 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3154 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3156 $as_echo_n "checking for $ac_word... " >&6; }
3157 if test "${ac_cv_prog_CC+set}" = set; then :
3158 $as_echo_n "(cached) " >&6
3159 else
3160 if test -n "$CC"; then
3161 ac_cv_prog_CC="$CC" # Let the user override the test.
3162 else
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 for as_dir in $PATH
3166 IFS=$as_save_IFS
3167 test -z "$as_dir" && as_dir=.
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3172 break 2
3174 done
3175 done
3176 IFS=$as_save_IFS
3180 CC=$ac_cv_prog_CC
3181 if test -n "$CC"; then
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3183 $as_echo "$CC" >&6; }
3184 else
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186 $as_echo "no" >&6; }
3190 test -n "$CC" && break
3191 done
3193 if test -z "$CC"; then
3194 ac_ct_CC=$CC
3195 for ac_prog in cl.exe
3197 # Extract the first word of "$ac_prog", so it can be a program name with args.
3198 set dummy $ac_prog; ac_word=$2
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200 $as_echo_n "checking for $ac_word... " >&6; }
3201 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3202 $as_echo_n "(cached) " >&6
3203 else
3204 if test -n "$ac_ct_CC"; then
3205 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3206 else
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3210 IFS=$as_save_IFS
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214 ac_cv_prog_ac_ct_CC="$ac_prog"
3215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 break 2
3218 done
3219 done
3220 IFS=$as_save_IFS
3224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3225 if test -n "$ac_ct_CC"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3227 $as_echo "$ac_ct_CC" >&6; }
3228 else
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3234 test -n "$ac_ct_CC" && break
3235 done
3237 if test "x$ac_ct_CC" = x; then
3238 CC=""
3239 else
3240 case $cross_compiling:$ac_tool_warned in
3241 yes:)
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3244 ac_tool_warned=yes ;;
3245 esac
3246 CC=$ac_ct_CC
3253 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3255 as_fn_error "no acceptable C compiler found in \$PATH
3256 See \`config.log' for more details." "$LINENO" 5; }
3258 # Provide some information about the compiler.
3259 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3260 set X $ac_compile
3261 ac_compiler=$2
3262 for ac_option in --version -v -V -qversion; do
3263 { { ac_try="$ac_compiler $ac_option >&5"
3264 case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267 esac
3268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269 $as_echo "$ac_try_echo"; } >&5
3270 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3271 ac_status=$?
3272 if test -s conftest.err; then
3273 sed '10a\
3274 ... rest of stderr output deleted ...
3275 10q' conftest.err >conftest.er1
3276 cat conftest.er1 >&5
3277 rm -f conftest.er1 conftest.err
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }
3281 done
3283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3284 /* end confdefs.h. */
3287 main ()
3291 return 0;
3293 _ACEOF
3294 ac_clean_files_save=$ac_clean_files
3295 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3296 # Try to create an executable without -o first, disregard a.out.
3297 # It will help us diagnose broken compilers, and finding out an intuition
3298 # of exeext.
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3300 $as_echo_n "checking for C compiler default output file name... " >&6; }
3301 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3303 # The possible output files:
3304 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3306 ac_rmfiles=
3307 for ac_file in $ac_files
3309 case $ac_file in
3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3311 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3312 esac
3313 done
3314 rm -f $ac_rmfiles
3316 if { { ac_try="$ac_link_default"
3317 case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320 esac
3321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322 $as_echo "$ac_try_echo"; } >&5
3323 (eval "$ac_link_default") 2>&5
3324 ac_status=$?
3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }; then :
3327 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3328 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3329 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3330 # so that the user can short-circuit this test for compilers unknown to
3331 # Autoconf.
3332 for ac_file in $ac_files ''
3334 test -f "$ac_file" || continue
3335 case $ac_file in
3336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3338 [ab].out )
3339 # We found the default executable, but exeext='' is most
3340 # certainly right.
3341 break;;
3342 *.* )
3343 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3344 then :; else
3345 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3347 # We set ac_cv_exeext here because the later test for it is not
3348 # safe: cross compilers may not add the suffix if given an `-o'
3349 # argument, so we may need to know it at that point already.
3350 # Even if this section looks crufty: it has the advantage of
3351 # actually working.
3352 break;;
3354 break;;
3355 esac
3356 done
3357 test "$ac_cv_exeext" = no && ac_cv_exeext=
3359 else
3360 ac_file=''
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3363 $as_echo "$ac_file" >&6; }
3364 if test -z "$ac_file"; then :
3365 $as_echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370 { as_fn_set_status 77
3371 as_fn_error "C compiler cannot create executables
3372 See \`config.log' for more details." "$LINENO" 5; }; }
3374 ac_exeext=$ac_cv_exeext
3376 # Check that the compiler produces executables we can run. If not, either
3377 # the compiler is broken, or we cross compile.
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3379 $as_echo_n "checking whether the C compiler works... " >&6; }
3380 # If not cross compiling, check that we can run a simple program.
3381 if test "$cross_compiling" != yes; then
3382 if { ac_try='./$ac_file'
3383 { { case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386 esac
3387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388 $as_echo "$ac_try_echo"; } >&5
3389 (eval "$ac_try") 2>&5
3390 ac_status=$?
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }; }; then
3393 cross_compiling=no
3394 else
3395 if test "$cross_compiling" = maybe; then
3396 cross_compiling=yes
3397 else
3398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 as_fn_error "cannot run C compiled programs.
3401 If you meant to cross compile, use \`--host'.
3402 See \`config.log' for more details." "$LINENO" 5; }
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3407 $as_echo "yes" >&6; }
3409 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3410 ac_clean_files=$ac_clean_files_save
3411 # Check that the compiler produces executables we can run. If not, either
3412 # the compiler is broken, or we cross compile.
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3414 $as_echo_n "checking whether we are cross compiling... " >&6; }
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3416 $as_echo "$cross_compiling" >&6; }
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3419 $as_echo_n "checking for suffix of executables... " >&6; }
3420 if { { ac_try="$ac_link"
3421 case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424 esac
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427 (eval "$ac_link") 2>&5
3428 ac_status=$?
3429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430 test $ac_status = 0; }; then :
3431 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3432 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3433 # work properly (i.e., refer to `conftest.exe'), while it won't with
3434 # `rm'.
3435 for ac_file in conftest.exe conftest conftest.*; do
3436 test -f "$ac_file" || continue
3437 case $ac_file in
3438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3439 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3440 break;;
3441 * ) break;;
3442 esac
3443 done
3444 else
3445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447 as_fn_error "cannot compute suffix of executables: cannot compile and link
3448 See \`config.log' for more details." "$LINENO" 5; }
3450 rm -f conftest$ac_cv_exeext
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3452 $as_echo "$ac_cv_exeext" >&6; }
3454 rm -f conftest.$ac_ext
3455 EXEEXT=$ac_cv_exeext
3456 ac_exeext=$EXEEXT
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3458 $as_echo_n "checking for suffix of object files... " >&6; }
3459 if test "${ac_cv_objext+set}" = set; then :
3460 $as_echo_n "(cached) " >&6
3461 else
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3466 main ()
3470 return 0;
3472 _ACEOF
3473 rm -f conftest.o conftest.obj
3474 if { { ac_try="$ac_compile"
3475 case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478 esac
3479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480 $as_echo "$ac_try_echo"; } >&5
3481 (eval "$ac_compile") 2>&5
3482 ac_status=$?
3483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484 test $ac_status = 0; }; then :
3485 for ac_file in conftest.o conftest.obj conftest.*; do
3486 test -f "$ac_file" || continue;
3487 case $ac_file in
3488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3489 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3490 break;;
3491 esac
3492 done
3493 else
3494 $as_echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3499 as_fn_error "cannot compute suffix of object files: cannot compile
3500 See \`config.log' for more details." "$LINENO" 5; }
3502 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3505 $as_echo "$ac_cv_objext" >&6; }
3506 OBJEXT=$ac_cv_objext
3507 ac_objext=$OBJEXT
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3509 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3510 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3511 $as_echo_n "(cached) " >&6
3512 else
3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h. */
3517 main ()
3519 #ifndef __GNUC__
3520 choke me
3521 #endif
3524 return 0;
3526 _ACEOF
3527 if ac_fn_c_try_compile "$LINENO"; then :
3528 ac_compiler_gnu=yes
3529 else
3530 ac_compiler_gnu=no
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3537 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3538 if test $ac_compiler_gnu = yes; then
3539 GCC=yes
3540 else
3541 GCC=
3543 ac_test_CFLAGS=${CFLAGS+set}
3544 ac_save_CFLAGS=$CFLAGS
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3546 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3547 if test "${ac_cv_prog_cc_g+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3549 else
3550 ac_save_c_werror_flag=$ac_c_werror_flag
3551 ac_c_werror_flag=yes
3552 ac_cv_prog_cc_g=no
3553 CFLAGS="-g"
3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h. */
3558 main ()
3562 return 0;
3564 _ACEOF
3565 if ac_fn_c_try_compile "$LINENO"; then :
3566 ac_cv_prog_cc_g=yes
3567 else
3568 CFLAGS=""
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3573 main ()
3577 return 0;
3579 _ACEOF
3580 if ac_fn_c_try_compile "$LINENO"; then :
3582 else
3583 ac_c_werror_flag=$ac_save_c_werror_flag
3584 CFLAGS="-g"
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3589 main ()
3593 return 0;
3595 _ACEOF
3596 if ac_fn_c_try_compile "$LINENO"; then :
3597 ac_cv_prog_cc_g=yes
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 ac_c_werror_flag=$ac_save_c_werror_flag
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3607 $as_echo "$ac_cv_prog_cc_g" >&6; }
3608 if test "$ac_test_CFLAGS" = set; then
3609 CFLAGS=$ac_save_CFLAGS
3610 elif test $ac_cv_prog_cc_g = yes; then
3611 if test "$GCC" = yes; then
3612 CFLAGS="-g -O2"
3613 else
3614 CFLAGS="-g"
3616 else
3617 if test "$GCC" = yes; then
3618 CFLAGS="-O2"
3619 else
3620 CFLAGS=
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3624 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3625 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3626 $as_echo_n "(cached) " >&6
3627 else
3628 ac_cv_prog_cc_c89=no
3629 ac_save_CC=$CC
3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631 /* end confdefs.h. */
3632 #include <stdarg.h>
3633 #include <stdio.h>
3634 #include <sys/types.h>
3635 #include <sys/stat.h>
3636 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3637 struct buf { int x; };
3638 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3639 static char *e (p, i)
3640 char **p;
3641 int i;
3643 return p[i];
3645 static char *f (char * (*g) (char **, int), char **p, ...)
3647 char *s;
3648 va_list v;
3649 va_start (v,p);
3650 s = g (p, va_arg (v,int));
3651 va_end (v);
3652 return s;
3655 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3656 function prototypes and stuff, but not '\xHH' hex character constants.
3657 These don't provoke an error unfortunately, instead are silently treated
3658 as 'x'. The following induces an error, until -std is added to get
3659 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3660 array size at least. It's necessary to write '\x00'==0 to get something
3661 that's true only with -std. */
3662 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3664 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3665 inside strings and character constants. */
3666 #define FOO(x) 'x'
3667 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3669 int test (int i, double x);
3670 struct s1 {int (*f) (int a);};
3671 struct s2 {int (*f) (double a);};
3672 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3673 int argc;
3674 char **argv;
3676 main ()
3678 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3680 return 0;
3682 _ACEOF
3683 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3684 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3686 CC="$ac_save_CC $ac_arg"
3687 if ac_fn_c_try_compile "$LINENO"; then :
3688 ac_cv_prog_cc_c89=$ac_arg
3690 rm -f core conftest.err conftest.$ac_objext
3691 test "x$ac_cv_prog_cc_c89" != "xno" && break
3692 done
3693 rm -f conftest.$ac_ext
3694 CC=$ac_save_CC
3697 # AC_CACHE_VAL
3698 case "x$ac_cv_prog_cc_c89" in
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3701 $as_echo "none needed" >&6; } ;;
3702 xno)
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3704 $as_echo "unsupported" >&6; } ;;
3706 CC="$CC $ac_cv_prog_cc_c89"
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3708 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3709 esac
3710 if test "x$ac_cv_prog_cc_c89" != xno; then :
3714 ac_ext=c
3715 ac_cpp='$CPP $CPPFLAGS'
3716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719 DEPDIR="${am__leading_dot}deps"
3721 ac_config_commands="$ac_config_commands depfiles"
3724 am_make=${MAKE-make}
3725 cat > confinc << 'END'
3726 am__doit:
3727 @echo this is the am__doit target
3728 .PHONY: am__doit
3730 # If we don't find an include directive, just comment out the code.
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3732 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3733 am__include="#"
3734 am__quote=
3735 _am_result=none
3736 # First try GNU make style include.
3737 echo "include confinc" > confmf
3738 # Ignore all kinds of additional output from `make'.
3739 case `$am_make -s -f confmf 2> /dev/null` in #(
3740 *the\ am__doit\ target*)
3741 am__include=include
3742 am__quote=
3743 _am_result=GNU
3745 esac
3746 # Now try BSD make style include.
3747 if test "$am__include" = "#"; then
3748 echo '.include "confinc"' > confmf
3749 case `$am_make -s -f confmf 2> /dev/null` in #(
3750 *the\ am__doit\ target*)
3751 am__include=.include
3752 am__quote="\""
3753 _am_result=BSD
3755 esac
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3760 $as_echo "$_am_result" >&6; }
3761 rm -f confinc confmf
3763 # Check whether --enable-dependency-tracking was given.
3764 if test "${enable_dependency_tracking+set}" = set; then :
3765 enableval=$enable_dependency_tracking;
3768 if test "x$enable_dependency_tracking" != xno; then
3769 am_depcomp="$ac_aux_dir/depcomp"
3770 AMDEPBACKSLASH='\'
3772 if test "x$enable_dependency_tracking" != xno; then
3773 AMDEP_TRUE=
3774 AMDEP_FALSE='#'
3775 else
3776 AMDEP_TRUE='#'
3777 AMDEP_FALSE=
3782 depcc="$CC" am_compiler_list=
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3785 $as_echo_n "checking dependency style of $depcc... " >&6; }
3786 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3787 $as_echo_n "(cached) " >&6
3788 else
3789 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3790 # We make a subdir and do the tests there. Otherwise we can end up
3791 # making bogus files that we don't know about and never remove. For
3792 # instance it was reported that on HP-UX the gcc test will end up
3793 # making a dummy file named `D' -- because `-MD' means `put the output
3794 # in D'.
3795 mkdir conftest.dir
3796 # Copy depcomp to subdir because otherwise we won't find it if we're
3797 # using a relative directory.
3798 cp "$am_depcomp" conftest.dir
3799 cd conftest.dir
3800 # We will build objects and dependencies in a subdirectory because
3801 # it helps to detect inapplicable dependency modes. For instance
3802 # both Tru64's cc and ICC support -MD to output dependencies as a
3803 # side effect of compilation, but ICC will put the dependencies in
3804 # the current directory while Tru64 will put them in the object
3805 # directory.
3806 mkdir sub
3808 am_cv_CC_dependencies_compiler_type=none
3809 if test "$am_compiler_list" = ""; then
3810 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3812 am__universal=false
3813 case " $depcc " in #(
3814 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3815 esac
3817 for depmode in $am_compiler_list; do
3818 # Setup a source with many dependencies, because some compilers
3819 # like to wrap large dependency lists on column 80 (with \), and
3820 # we should not choose a depcomp mode which is confused by this.
3822 # We need to recreate these files for each test, as the compiler may
3823 # overwrite some of them when testing with obscure command lines.
3824 # This happens at least with the AIX C compiler.
3825 : > sub/conftest.c
3826 for i in 1 2 3 4 5 6; do
3827 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3828 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3829 # Solaris 8's {/usr,}/bin/sh.
3830 touch sub/conftst$i.h
3831 done
3832 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3834 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3835 # mode. It turns out that the SunPro C++ compiler does not properly
3836 # handle `-M -o', and we need to detect this. Also, some Intel
3837 # versions had trouble with output in subdirs
3838 am__obj=sub/conftest.${OBJEXT-o}
3839 am__minus_obj="-o $am__obj"
3840 case $depmode in
3841 gcc)
3842 # This depmode causes a compiler race in universal mode.
3843 test "$am__universal" = false || continue
3845 nosideeffect)
3846 # after this tag, mechanisms are not by side-effect, so they'll
3847 # only be used when explicitly requested
3848 if test "x$enable_dependency_tracking" = xyes; then
3849 continue
3850 else
3851 break
3854 msvisualcpp | msvcmsys)
3855 # This compiler won't grok `-c -o', but also, the minuso test has
3856 # not run yet. These depmodes are late enough in the game, and
3857 # so weak that their functioning should not be impacted.
3858 am__obj=conftest.${OBJEXT-o}
3859 am__minus_obj=
3861 none) break ;;
3862 esac
3863 if depmode=$depmode \
3864 source=sub/conftest.c object=$am__obj \
3865 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3866 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3867 >/dev/null 2>conftest.err &&
3868 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3869 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3870 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3871 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3872 # icc doesn't choke on unknown options, it will just issue warnings
3873 # or remarks (even with -Werror). So we grep stderr for any message
3874 # that says an option was ignored or not supported.
3875 # When given -MP, icc 7.0 and 7.1 complain thusly:
3876 # icc: Command line warning: ignoring option '-M'; no argument required
3877 # The diagnosis changed in icc 8.0:
3878 # icc: Command line remark: option '-MP' not supported
3879 if (grep 'ignoring option' conftest.err ||
3880 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3881 am_cv_CC_dependencies_compiler_type=$depmode
3882 break
3885 done
3887 cd ..
3888 rm -rf conftest.dir
3889 else
3890 am_cv_CC_dependencies_compiler_type=none
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3895 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3896 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3899 test "x$enable_dependency_tracking" != xno \
3900 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3901 am__fastdepCC_TRUE=
3902 am__fastdepCC_FALSE='#'
3903 else
3904 am__fastdepCC_TRUE='#'
3905 am__fastdepCC_FALSE=
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3911 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3912 if test "${ac_cv_c_const+set}" = set; then :
3913 $as_echo_n "(cached) " >&6
3914 else
3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3919 main ()
3921 /* FIXME: Include the comments suggested by Paul. */
3922 #ifndef __cplusplus
3923 /* Ultrix mips cc rejects this. */
3924 typedef int charset[2];
3925 const charset cs;
3926 /* SunOS 4.1.1 cc rejects this. */
3927 char const *const *pcpcc;
3928 char **ppc;
3929 /* NEC SVR4.0.2 mips cc rejects this. */
3930 struct point {int x, y;};
3931 static struct point const zero = {0,0};
3932 /* AIX XL C 1.02.0.0 rejects this.
3933 It does not let you subtract one const X* pointer from another in
3934 an arm of an if-expression whose if-part is not a constant
3935 expression */
3936 const char *g = "string";
3937 pcpcc = &g + (g ? g-g : 0);
3938 /* HPUX 7.0 cc rejects these. */
3939 ++pcpcc;
3940 ppc = (char**) pcpcc;
3941 pcpcc = (char const *const *) ppc;
3942 { /* SCO 3.2v4 cc rejects this. */
3943 char *t;
3944 char const *s = 0 ? (char *) 0 : (char const *) 0;
3946 *t++ = 0;
3947 if (s) return 0;
3949 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3950 int x[] = {25, 17};
3951 const int *foo = &x[0];
3952 ++foo;
3954 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3955 typedef const int *iptr;
3956 iptr p = 0;
3957 ++p;
3959 { /* AIX XL C 1.02.0.0 rejects this saying
3960 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3961 struct s { int j; const int *ap[3]; };
3962 struct s *b; b->j = 5;
3964 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3965 const int foo = 10;
3966 if (!foo) return 0;
3968 return !cs[0] && !zero.x;
3969 #endif
3972 return 0;
3974 _ACEOF
3975 if ac_fn_c_try_compile "$LINENO"; then :
3976 ac_cv_c_const=yes
3977 else
3978 ac_cv_c_const=no
3980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
3983 $as_echo "$ac_cv_c_const" >&6; }
3984 if test $ac_cv_c_const = no; then
3986 $as_echo "#define const /**/" >>confdefs.h
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3991 $as_echo_n "checking for inline... " >&6; }
3992 if test "${ac_cv_c_inline+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3994 else
3995 ac_cv_c_inline=no
3996 for ac_kw in inline __inline__ __inline; do
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
3999 #ifndef __cplusplus
4000 typedef int foo_t;
4001 static $ac_kw foo_t static_foo () {return 0; }
4002 $ac_kw foo_t foo () {return 0; }
4003 #endif
4005 _ACEOF
4006 if ac_fn_c_try_compile "$LINENO"; then :
4007 ac_cv_c_inline=$ac_kw
4009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010 test "$ac_cv_c_inline" != no && break
4011 done
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4015 $as_echo "$ac_cv_c_inline" >&6; }
4017 case $ac_cv_c_inline in
4018 inline | yes) ;;
4020 case $ac_cv_c_inline in
4021 no) ac_val=;;
4022 *) ac_val=$ac_cv_c_inline;;
4023 esac
4024 cat >>confdefs.h <<_ACEOF
4025 #ifndef __cplusplus
4026 #define inline $ac_val
4027 #endif
4028 _ACEOF
4030 esac
4034 ## ----------------------- ##
4035 ## Libtool initialisation. ##
4036 ## ----------------------- ##
4039 # Check whether --enable-shared was given.
4040 if test "${enable_shared+set}" = set; then :
4041 enableval=$enable_shared; p=${PACKAGE-default}
4042 case $enableval in
4043 yes) enable_shared=yes ;;
4044 no) enable_shared=no ;;
4046 enable_shared=no
4047 # Look at the argument we got. We use all the common list separators.
4048 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4049 for pkg in $enableval; do
4050 IFS="$lt_save_ifs"
4051 if test "X$pkg" = "X$p"; then
4052 enable_shared=yes
4054 done
4055 IFS="$lt_save_ifs"
4057 esac
4058 else
4059 enable_shared=yes
4063 # Check whether --enable-static was given.
4064 if test "${enable_static+set}" = set; then :
4065 enableval=$enable_static; p=${PACKAGE-default}
4066 case $enableval in
4067 yes) enable_static=yes ;;
4068 no) enable_static=no ;;
4070 enable_static=no
4071 # Look at the argument we got. We use all the common list separators.
4072 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4073 for pkg in $enableval; do
4074 IFS="$lt_save_ifs"
4075 if test "X$pkg" = "X$p"; then
4076 enable_static=yes
4078 done
4079 IFS="$lt_save_ifs"
4081 esac
4082 else
4083 enable_static=yes
4087 # Check whether --enable-fast-install was given.
4088 if test "${enable_fast_install+set}" = set; then :
4089 enableval=$enable_fast_install; p=${PACKAGE-default}
4090 case $enableval in
4091 yes) enable_fast_install=yes ;;
4092 no) enable_fast_install=no ;;
4094 enable_fast_install=no
4095 # Look at the argument we got. We use all the common list separators.
4096 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4097 for pkg in $enableval; do
4098 IFS="$lt_save_ifs"
4099 if test "X$pkg" = "X$p"; then
4100 enable_fast_install=yes
4102 done
4103 IFS="$lt_save_ifs"
4105 esac
4106 else
4107 enable_fast_install=yes
4111 # Make sure we can run config.sub.
4112 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4113 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4116 $as_echo_n "checking build system type... " >&6; }
4117 if test "${ac_cv_build+set}" = set; then :
4118 $as_echo_n "(cached) " >&6
4119 else
4120 ac_build_alias=$build_alias
4121 test "x$ac_build_alias" = x &&
4122 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4123 test "x$ac_build_alias" = x &&
4124 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4125 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4126 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4130 $as_echo "$ac_cv_build" >&6; }
4131 case $ac_cv_build in
4132 *-*-*) ;;
4133 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4134 esac
4135 build=$ac_cv_build
4136 ac_save_IFS=$IFS; IFS='-'
4137 set x $ac_cv_build
4138 shift
4139 build_cpu=$1
4140 build_vendor=$2
4141 shift; shift
4142 # Remember, the first character of IFS is used to create $*,
4143 # except with old shells:
4144 build_os=$*
4145 IFS=$ac_save_IFS
4146 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4150 $as_echo_n "checking host system type... " >&6; }
4151 if test "${ac_cv_host+set}" = set; then :
4152 $as_echo_n "(cached) " >&6
4153 else
4154 if test "x$host_alias" = x; then
4155 ac_cv_host=$ac_cv_build
4156 else
4157 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4158 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4163 $as_echo "$ac_cv_host" >&6; }
4164 case $ac_cv_host in
4165 *-*-*) ;;
4166 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4167 esac
4168 host=$ac_cv_host
4169 ac_save_IFS=$IFS; IFS='-'
4170 set x $ac_cv_host
4171 shift
4172 host_cpu=$1
4173 host_vendor=$2
4174 shift; shift
4175 # Remember, the first character of IFS is used to create $*,
4176 # except with old shells:
4177 host_os=$*
4178 IFS=$ac_save_IFS
4179 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4183 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4184 if test "${lt_cv_path_SED+set}" = set; then :
4185 $as_echo_n "(cached) " >&6
4186 else
4187 # Loop through the user's path and test for sed and gsed.
4188 # Then use that list of sed's as ones to test for truncation.
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 for lt_ac_prog in sed gsed; do
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4197 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4199 done
4200 done
4201 done
4202 lt_ac_max=0
4203 lt_ac_count=0
4204 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4205 # along with /bin/sed that truncates output.
4206 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4207 test ! -f $lt_ac_sed && continue
4208 cat /dev/null > conftest.in
4209 lt_ac_count=0
4210 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4211 # Check for GNU sed and select it if it is found.
4212 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4213 lt_cv_path_SED=$lt_ac_sed
4214 break
4216 while true; do
4217 cat conftest.in conftest.in >conftest.tmp
4218 mv conftest.tmp conftest.in
4219 cp conftest.in conftest.nl
4220 echo >>conftest.nl
4221 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4222 cmp -s conftest.out conftest.nl || break
4223 # 10000 chars as input seems more than enough
4224 test $lt_ac_count -gt 10 && break
4225 lt_ac_count=`expr $lt_ac_count + 1`
4226 if test $lt_ac_count -gt $lt_ac_max; then
4227 lt_ac_max=$lt_ac_count
4228 lt_cv_path_SED=$lt_ac_sed
4230 done
4231 done
4235 SED=$lt_cv_path_SED
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4237 $as_echo "$SED" >&6; }
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4240 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4241 if test "${ac_cv_path_GREP+set}" = set; then :
4242 $as_echo_n "(cached) " >&6
4243 else
4244 if test -z "$GREP"; then
4245 ac_path_GREP_found=false
4246 # Loop through the user's path and test for each of PROGNAME-LIST
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4250 IFS=$as_save_IFS
4251 test -z "$as_dir" && as_dir=.
4252 for ac_prog in grep ggrep; do
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4255 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4256 # Check for GNU ac_path_GREP and select it if it is found.
4257 # Check for GNU $ac_path_GREP
4258 case `"$ac_path_GREP" --version 2>&1` in
4259 *GNU*)
4260 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4262 ac_count=0
4263 $as_echo_n 0123456789 >"conftest.in"
4264 while :
4266 cat "conftest.in" "conftest.in" >"conftest.tmp"
4267 mv "conftest.tmp" "conftest.in"
4268 cp "conftest.in" "conftest.nl"
4269 $as_echo 'GREP' >> "conftest.nl"
4270 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4272 as_fn_arith $ac_count + 1 && ac_count=$as_val
4273 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4274 # Best one so far, save it but keep looking for a better one
4275 ac_cv_path_GREP="$ac_path_GREP"
4276 ac_path_GREP_max=$ac_count
4278 # 10*(2^10) chars as input seems more than enough
4279 test $ac_count -gt 10 && break
4280 done
4281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4282 esac
4284 $ac_path_GREP_found && break 3
4285 done
4286 done
4287 done
4288 IFS=$as_save_IFS
4289 if test -z "$ac_cv_path_GREP"; then
4290 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4292 else
4293 ac_cv_path_GREP=$GREP
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4298 $as_echo "$ac_cv_path_GREP" >&6; }
4299 GREP="$ac_cv_path_GREP"
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4303 $as_echo_n "checking for egrep... " >&6; }
4304 if test "${ac_cv_path_EGREP+set}" = set; then :
4305 $as_echo_n "(cached) " >&6
4306 else
4307 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4308 then ac_cv_path_EGREP="$GREP -E"
4309 else
4310 if test -z "$EGREP"; then
4311 ac_path_EGREP_found=false
4312 # Loop through the user's path and test for each of PROGNAME-LIST
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_prog in egrep; do
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4321 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4322 # Check for GNU ac_path_EGREP and select it if it is found.
4323 # Check for GNU $ac_path_EGREP
4324 case `"$ac_path_EGREP" --version 2>&1` in
4325 *GNU*)
4326 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4328 ac_count=0
4329 $as_echo_n 0123456789 >"conftest.in"
4330 while :
4332 cat "conftest.in" "conftest.in" >"conftest.tmp"
4333 mv "conftest.tmp" "conftest.in"
4334 cp "conftest.in" "conftest.nl"
4335 $as_echo 'EGREP' >> "conftest.nl"
4336 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4337 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4338 as_fn_arith $ac_count + 1 && ac_count=$as_val
4339 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4340 # Best one so far, save it but keep looking for a better one
4341 ac_cv_path_EGREP="$ac_path_EGREP"
4342 ac_path_EGREP_max=$ac_count
4344 # 10*(2^10) chars as input seems more than enough
4345 test $ac_count -gt 10 && break
4346 done
4347 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4348 esac
4350 $ac_path_EGREP_found && break 3
4351 done
4352 done
4353 done
4354 IFS=$as_save_IFS
4355 if test -z "$ac_cv_path_EGREP"; then
4356 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4358 else
4359 ac_cv_path_EGREP=$EGREP
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4365 $as_echo "$ac_cv_path_EGREP" >&6; }
4366 EGREP="$ac_cv_path_EGREP"
4370 # Check whether --with-gnu-ld was given.
4371 if test "${with_gnu_ld+set}" = set; then :
4372 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4373 else
4374 with_gnu_ld=no
4377 ac_prog=ld
4378 if test "$GCC" = yes; then
4379 # Check if gcc -print-prog-name=ld gives a path.
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4381 $as_echo_n "checking for ld used by $CC... " >&6; }
4382 case $host in
4383 *-*-mingw*)
4384 # gcc leaves a trailing carriage return which upsets mingw
4385 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4387 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4388 esac
4389 case $ac_prog in
4390 # Accept absolute paths.
4391 [\\/]* | ?:[\\/]*)
4392 re_direlt='/[^/][^/]*/\.\./'
4393 # Canonicalize the pathname of ld
4394 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4395 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4396 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4397 done
4398 test -z "$LD" && LD="$ac_prog"
4401 # If it fails, then pretend we aren't using GCC.
4402 ac_prog=ld
4405 # If it is relative, then search for the first ld in PATH.
4406 with_gnu_ld=unknown
4408 esac
4409 elif test "$with_gnu_ld" = yes; then
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4411 $as_echo_n "checking for GNU ld... " >&6; }
4412 else
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4414 $as_echo_n "checking for non-GNU ld... " >&6; }
4416 if test "${lt_cv_path_LD+set}" = set; then :
4417 $as_echo_n "(cached) " >&6
4418 else
4419 if test -z "$LD"; then
4420 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4421 for ac_dir in $PATH; do
4422 IFS="$lt_save_ifs"
4423 test -z "$ac_dir" && ac_dir=.
4424 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4425 lt_cv_path_LD="$ac_dir/$ac_prog"
4426 # Check to see if the program is GNU ld. I'd rather use --version,
4427 # but apparently some GNU ld's only accept -v.
4428 # Break only if it was the GNU/non-GNU ld that we prefer.
4429 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4430 *GNU* | *'with BFD'*)
4431 test "$with_gnu_ld" != no && break
4434 test "$with_gnu_ld" != yes && break
4436 esac
4438 done
4439 IFS="$lt_save_ifs"
4440 else
4441 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4445 LD="$lt_cv_path_LD"
4446 if test -n "$LD"; then
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4448 $as_echo "$LD" >&6; }
4449 else
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451 $as_echo "no" >&6; }
4453 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4455 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4456 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4460 case `$LD -v 2>&1 </dev/null` in
4461 *GNU* | *'with BFD'*)
4462 lt_cv_prog_gnu_ld=yes
4465 lt_cv_prog_gnu_ld=no
4467 esac
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4470 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4471 with_gnu_ld=$lt_cv_prog_gnu_ld
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4475 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4476 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4477 $as_echo_n "(cached) " >&6
4478 else
4479 lt_cv_ld_reload_flag='-r'
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4482 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4483 reload_flag=$lt_cv_ld_reload_flag
4484 case $reload_flag in
4485 "" | " "*) ;;
4486 *) reload_flag=" $reload_flag" ;;
4487 esac
4488 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4489 case $host_os in
4490 darwin*)
4491 if test "$GCC" = yes; then
4492 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4493 else
4494 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4497 esac
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4500 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4501 if test "${lt_cv_path_NM+set}" = set; then :
4502 $as_echo_n "(cached) " >&6
4503 else
4504 if test -n "$NM"; then
4505 # Let the user override the test.
4506 lt_cv_path_NM="$NM"
4507 else
4508 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4509 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4510 IFS="$lt_save_ifs"
4511 test -z "$ac_dir" && ac_dir=.
4512 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4513 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4514 # Check to see if the nm accepts a BSD-compat flag.
4515 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4516 # nm: unknown option "B" ignored
4517 # Tru64's nm complains that /dev/null is an invalid object file
4518 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4519 */dev/null* | *'Invalid file or object type'*)
4520 lt_cv_path_NM="$tmp_nm -B"
4521 break
4524 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4525 */dev/null*)
4526 lt_cv_path_NM="$tmp_nm -p"
4527 break
4530 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4531 continue # so that we can try to find one that supports BSD flags
4533 esac
4534 esac
4536 done
4537 IFS="$lt_save_ifs"
4538 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4542 $as_echo "$lt_cv_path_NM" >&6; }
4543 NM="$lt_cv_path_NM"
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4546 $as_echo_n "checking whether ln -s works... " >&6; }
4547 LN_S=$as_ln_s
4548 if test "$LN_S" = "ln -s"; then
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4550 $as_echo "yes" >&6; }
4551 else
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4553 $as_echo "no, using $LN_S" >&6; }
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
4557 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
4558 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 lt_cv_file_magic_cmd='$MAGIC_CMD'
4562 lt_cv_file_magic_test_file=
4563 lt_cv_deplibs_check_method='unknown'
4564 # Need to set the preceding variable on all platforms that support
4565 # interlibrary dependencies.
4566 # 'none' -- dependencies not supported.
4567 # `unknown' -- same as none, but documents that we really don't know.
4568 # 'pass_all' -- all dependencies passed with no checks.
4569 # 'test_compile' -- check by making test program.
4570 # 'file_magic [[regex]]' -- check by looking for files in library path
4571 # which responds to the $file_magic_cmd with a given extended regex.
4572 # If you have `file' or equivalent on your system and you're not sure
4573 # whether `pass_all' will *always* work, you probably want this one.
4575 case $host_os in
4576 aix4* | aix5*)
4577 lt_cv_deplibs_check_method=pass_all
4580 beos*)
4581 lt_cv_deplibs_check_method=pass_all
4584 bsdi[45]*)
4585 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4586 lt_cv_file_magic_cmd='/usr/bin/file -L'
4587 lt_cv_file_magic_test_file=/shlib/libc.so
4590 cygwin*)
4591 # func_win32_libid is a shell function defined in ltmain.sh
4592 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4593 lt_cv_file_magic_cmd='func_win32_libid'
4596 mingw* | pw32*)
4597 # Base MSYS/MinGW do not provide the 'file' command needed by
4598 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4599 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4600 lt_cv_file_magic_cmd='$OBJDUMP -f'
4603 darwin* | rhapsody*)
4604 lt_cv_deplibs_check_method=pass_all
4607 freebsd* | kfreebsd*-gnu | dragonfly*)
4608 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4609 case $host_cpu in
4610 i*86 )
4611 # Not sure whether the presence of OpenBSD here was a mistake.
4612 # Let's accept both of them until this is cleared up.
4613 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4614 lt_cv_file_magic_cmd=/usr/bin/file
4615 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4617 esac
4618 else
4619 lt_cv_deplibs_check_method=pass_all
4623 gnu*)
4624 lt_cv_deplibs_check_method=pass_all
4627 hpux10.20* | hpux11*)
4628 lt_cv_file_magic_cmd=/usr/bin/file
4629 case "$host_cpu" in
4630 ia64*)
4631 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4632 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4634 hppa*64*)
4635 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4636 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4639 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4640 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4642 esac
4645 irix5* | irix6* | nonstopux*)
4646 case $LD in
4647 *-32|*"-32 ") libmagic=32-bit;;
4648 *-n32|*"-n32 ") libmagic=N32;;
4649 *-64|*"-64 ") libmagic=64-bit;;
4650 *) libmagic=never-match;;
4651 esac
4652 lt_cv_deplibs_check_method=pass_all
4655 # This must be Linux ELF.
4656 linux*)
4657 lt_cv_deplibs_check_method=pass_all
4660 netbsd*)
4661 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4663 else
4664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4668 newos6*)
4669 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4670 lt_cv_file_magic_cmd=/usr/bin/file
4671 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4674 nto-qnx*)
4675 lt_cv_deplibs_check_method=unknown
4678 openbsd*)
4679 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4681 else
4682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4686 osf3* | osf4* | osf5*)
4687 lt_cv_deplibs_check_method=pass_all
4690 sco3.2v5*)
4691 lt_cv_deplibs_check_method=pass_all
4694 solaris*)
4695 lt_cv_deplibs_check_method=pass_all
4698 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4699 case $host_vendor in
4700 motorola)
4701 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]'
4702 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4704 ncr)
4705 lt_cv_deplibs_check_method=pass_all
4707 sequent)
4708 lt_cv_file_magic_cmd='/bin/file'
4709 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4711 sni)
4712 lt_cv_file_magic_cmd='/bin/file'
4713 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4714 lt_cv_file_magic_test_file=/lib/libc.so
4716 siemens)
4717 lt_cv_deplibs_check_method=pass_all
4719 esac
4722 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4723 lt_cv_deplibs_check_method=pass_all
4725 esac
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4729 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4730 file_magic_cmd=$lt_cv_file_magic_cmd
4731 deplibs_check_method=$lt_cv_deplibs_check_method
4732 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4737 # If no C compiler was specified, use CC.
4738 LTCC=${LTCC-"$CC"}
4740 # Allow CC to be a program name with arguments.
4741 compiler=$CC
4743 # Check whether --enable-libtool-lock was given.
4744 if test "${enable_libtool_lock+set}" = set; then :
4745 enableval=$enable_libtool_lock;
4748 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4750 # Some flags need to be propagated to the compiler or linker for good
4751 # libtool support.
4752 case $host in
4753 ia64-*-hpux*)
4754 # Find out which ABI we are using.
4755 echo 'int i;' > conftest.$ac_ext
4756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4757 (eval $ac_compile) 2>&5
4758 ac_status=$?
4759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4760 test $ac_status = 0; }; then
4761 case `/usr/bin/file conftest.$ac_objext` in
4762 *ELF-32*)
4763 HPUX_IA64_MODE="32"
4765 *ELF-64*)
4766 HPUX_IA64_MODE="64"
4768 esac
4770 rm -rf conftest*
4772 *-*-irix6*)
4773 # Find out which ABI we are using.
4774 echo '#line 4774 "configure"' > conftest.$ac_ext
4775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4776 (eval $ac_compile) 2>&5
4777 ac_status=$?
4778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4779 test $ac_status = 0; }; then
4780 if test "$lt_cv_prog_gnu_ld" = yes; then
4781 case `/usr/bin/file conftest.$ac_objext` in
4782 *32-bit*)
4783 LD="${LD-ld} -melf32bsmip"
4785 *N32*)
4786 LD="${LD-ld} -melf32bmipn32"
4788 *64-bit*)
4789 LD="${LD-ld} -melf64bmip"
4791 esac
4792 else
4793 case `/usr/bin/file conftest.$ac_objext` in
4794 *32-bit*)
4795 LD="${LD-ld} -32"
4797 *N32*)
4798 LD="${LD-ld} -n32"
4800 *64-bit*)
4801 LD="${LD-ld} -64"
4803 esac
4806 rm -rf conftest*
4809 x86_64-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4810 # Find out which ABI we are using.
4811 echo 'int i;' > conftest.$ac_ext
4812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4813 (eval $ac_compile) 2>&5
4814 ac_status=$?
4815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4816 test $ac_status = 0; }; then
4817 case "`/usr/bin/file conftest.o`" in
4818 *32-bit*)
4819 case $host in
4820 x86_64-*linux*)
4821 LD="${LD-ld} -m elf_i386"
4823 powerpc64le-*linux*)
4824 LD="${LD-ld} -m elf32lppclinux"
4826 powerpc64-*linux*)
4827 LD="${LD-ld} -m elf32ppclinux"
4829 s390x-*linux*)
4830 LD="${LD-ld} -m elf_s390"
4832 sparc64-*linux*)
4833 LD="${LD-ld} -m elf32_sparc"
4835 esac
4837 *64-bit*)
4838 case $host in
4839 x86_64-*linux*)
4840 LD="${LD-ld} -m elf_x86_64"
4842 powerpcle-*linux*)
4843 LD="${LD-ld} -m elf64lppc"
4845 powerpc-*linux*)
4846 LD="${LD-ld} -m elf64ppc"
4848 s390*-*linux*)
4849 LD="${LD-ld} -m elf64_s390"
4851 sparc*-*linux*)
4852 LD="${LD-ld} -m elf64_sparc"
4854 esac
4856 esac
4858 rm -rf conftest*
4861 *-*-sco3.2v5*)
4862 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4863 SAVE_CFLAGS="$CFLAGS"
4864 CFLAGS="$CFLAGS -belf"
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
4866 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4867 if test "${lt_cv_cc_needs_belf+set}" = set; then :
4868 $as_echo_n "(cached) " >&6
4869 else
4870 ac_ext=c
4871 ac_cpp='$CPP $CPPFLAGS'
4872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h. */
4880 main ()
4884 return 0;
4886 _ACEOF
4887 if ac_fn_c_try_link "$LINENO"; then :
4888 lt_cv_cc_needs_belf=yes
4889 else
4890 lt_cv_cc_needs_belf=no
4892 rm -f core conftest.err conftest.$ac_objext \
4893 conftest$ac_exeext conftest.$ac_ext
4894 ac_ext=c
4895 ac_cpp='$CPP $CPPFLAGS'
4896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
4902 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4903 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4904 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4905 CFLAGS="$SAVE_CFLAGS"
4908 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4909 if test -n "$ac_tool_prefix"; then
4910 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4911 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
4915 $as_echo_n "(cached) " >&6
4916 else
4917 if test -n "$DLLTOOL"; then
4918 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4927 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 break 2
4931 done
4932 done
4933 IFS=$as_save_IFS
4937 DLLTOOL=$ac_cv_prog_DLLTOOL
4938 if test -n "$DLLTOOL"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4940 $as_echo "$DLLTOOL" >&6; }
4941 else
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4948 if test -z "$ac_cv_prog_DLLTOOL"; then
4949 ac_ct_DLLTOOL=$DLLTOOL
4950 # Extract the first word of "dlltool", so it can be a program name with args.
4951 set dummy dlltool; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 if test -n "$ac_ct_DLLTOOL"; then
4958 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4967 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 break 2
4971 done
4972 done
4973 IFS=$as_save_IFS
4977 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4978 if test -n "$ac_ct_DLLTOOL"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4980 $as_echo "$ac_ct_DLLTOOL" >&6; }
4981 else
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4986 if test "x$ac_ct_DLLTOOL" = x; then
4987 DLLTOOL="false"
4988 else
4989 case $cross_compiling:$ac_tool_warned in
4990 yes:)
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4993 ac_tool_warned=yes ;;
4994 esac
4995 DLLTOOL=$ac_ct_DLLTOOL
4997 else
4998 DLLTOOL="$ac_cv_prog_DLLTOOL"
5001 if test -n "$ac_tool_prefix"; then
5002 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5003 set dummy ${ac_tool_prefix}as; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if test "${ac_cv_prog_AS+set}" = set; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 if test -n "$AS"; then
5010 ac_cv_prog_AS="$AS" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_prog_AS="${ac_tool_prefix}as"
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 break 2
5023 done
5024 done
5025 IFS=$as_save_IFS
5029 AS=$ac_cv_prog_AS
5030 if test -n "$AS"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5032 $as_echo "$AS" >&6; }
5033 else
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5040 if test -z "$ac_cv_prog_AS"; then
5041 ac_ct_AS=$AS
5042 # Extract the first word of "as", so it can be a program name with args.
5043 set dummy as; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if test -n "$ac_ct_AS"; then
5050 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_ac_ct_AS="as"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5063 done
5064 done
5065 IFS=$as_save_IFS
5069 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5070 if test -n "$ac_ct_AS"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5072 $as_echo "$ac_ct_AS" >&6; }
5073 else
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5078 if test "x$ac_ct_AS" = x; then
5079 AS="false"
5080 else
5081 case $cross_compiling:$ac_tool_warned in
5082 yes:)
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5085 ac_tool_warned=yes ;;
5086 esac
5087 AS=$ac_ct_AS
5089 else
5090 AS="$ac_cv_prog_AS"
5093 if test -n "$ac_tool_prefix"; then
5094 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5095 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 if test -n "$OBJDUMP"; then
5102 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5103 else
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH
5107 IFS=$as_save_IFS
5108 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 break 2
5115 done
5116 done
5117 IFS=$as_save_IFS
5121 OBJDUMP=$ac_cv_prog_OBJDUMP
5122 if test -n "$OBJDUMP"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5124 $as_echo "$OBJDUMP" >&6; }
5125 else
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5132 if test -z "$ac_cv_prog_OBJDUMP"; then
5133 ac_ct_OBJDUMP=$OBJDUMP
5134 # Extract the first word of "objdump", so it can be a program name with args.
5135 set dummy objdump; ac_word=$2
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137 $as_echo_n "checking for $ac_word... " >&6; }
5138 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5139 $as_echo_n "(cached) " >&6
5140 else
5141 if test -n "$ac_ct_OBJDUMP"; then
5142 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5143 else
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in $PATH
5147 IFS=$as_save_IFS
5148 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 break 2
5155 done
5156 done
5157 IFS=$as_save_IFS
5161 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5162 if test -n "$ac_ct_OBJDUMP"; then
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5164 $as_echo "$ac_ct_OBJDUMP" >&6; }
5165 else
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; }
5170 if test "x$ac_ct_OBJDUMP" = x; then
5171 OBJDUMP="false"
5172 else
5173 case $cross_compiling:$ac_tool_warned in
5174 yes:)
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5177 ac_tool_warned=yes ;;
5178 esac
5179 OBJDUMP=$ac_ct_OBJDUMP
5181 else
5182 OBJDUMP="$ac_cv_prog_OBJDUMP"
5187 esac
5189 need_locks="$enable_libtool_lock"
5192 ac_ext=c
5193 ac_cpp='$CPP $CPPFLAGS'
5194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5198 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5199 # On Suns, sometimes $CPP names a directory.
5200 if test -n "$CPP" && test -d "$CPP"; then
5201 CPP=
5203 if test -z "$CPP"; then
5204 if test "${ac_cv_prog_CPP+set}" = set; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 # Double quotes because CPP needs to be expanded
5208 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5210 ac_preproc_ok=false
5211 for ac_c_preproc_warn_flag in '' yes
5213 # Use a header file that comes with gcc, so configuring glibc
5214 # with a fresh cross-compiler works.
5215 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5216 # <limits.h> exists even on freestanding compilers.
5217 # On the NeXT, cc -E runs the code through the compiler's parser,
5218 # not just through cpp. "Syntax error" is here to catch this case.
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5221 #ifdef __STDC__
5222 # include <limits.h>
5223 #else
5224 # include <assert.h>
5225 #endif
5226 Syntax error
5227 _ACEOF
5228 if ac_fn_c_try_cpp "$LINENO"; then :
5230 else
5231 # Broken: fails on valid input.
5232 continue
5234 rm -f conftest.err conftest.$ac_ext
5236 # OK, works on sane cases. Now check whether nonexistent headers
5237 # can be detected and how.
5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h. */
5240 #include <ac_nonexistent.h>
5241 _ACEOF
5242 if ac_fn_c_try_cpp "$LINENO"; then :
5243 # Broken: success on invalid input.
5244 continue
5245 else
5246 # Passes both tests.
5247 ac_preproc_ok=:
5248 break
5250 rm -f conftest.err conftest.$ac_ext
5252 done
5253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5254 rm -f conftest.err conftest.$ac_ext
5255 if $ac_preproc_ok; then :
5256 break
5259 done
5260 ac_cv_prog_CPP=$CPP
5263 CPP=$ac_cv_prog_CPP
5264 else
5265 ac_cv_prog_CPP=$CPP
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5268 $as_echo "$CPP" >&6; }
5269 ac_preproc_ok=false
5270 for ac_c_preproc_warn_flag in '' yes
5272 # Use a header file that comes with gcc, so configuring glibc
5273 # with a fresh cross-compiler works.
5274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5275 # <limits.h> exists even on freestanding compilers.
5276 # On the NeXT, cc -E runs the code through the compiler's parser,
5277 # not just through cpp. "Syntax error" is here to catch this case.
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5280 #ifdef __STDC__
5281 # include <limits.h>
5282 #else
5283 # include <assert.h>
5284 #endif
5285 Syntax error
5286 _ACEOF
5287 if ac_fn_c_try_cpp "$LINENO"; then :
5289 else
5290 # Broken: fails on valid input.
5291 continue
5293 rm -f conftest.err conftest.$ac_ext
5295 # OK, works on sane cases. Now check whether nonexistent headers
5296 # can be detected and how.
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5299 #include <ac_nonexistent.h>
5300 _ACEOF
5301 if ac_fn_c_try_cpp "$LINENO"; then :
5302 # Broken: success on invalid input.
5303 continue
5304 else
5305 # Passes both tests.
5306 ac_preproc_ok=:
5307 break
5309 rm -f conftest.err conftest.$ac_ext
5311 done
5312 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5313 rm -f conftest.err conftest.$ac_ext
5314 if $ac_preproc_ok; then :
5316 else
5317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5319 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5320 See \`config.log' for more details." "$LINENO" 5; }
5323 ac_ext=c
5324 ac_cpp='$CPP $CPPFLAGS'
5325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5331 $as_echo_n "checking for ANSI C header files... " >&6; }
5332 if test "${ac_cv_header_stdc+set}" = set; then :
5333 $as_echo_n "(cached) " >&6
5334 else
5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5337 #include <stdlib.h>
5338 #include <stdarg.h>
5339 #include <string.h>
5340 #include <float.h>
5343 main ()
5347 return 0;
5349 _ACEOF
5350 if ac_fn_c_try_compile "$LINENO"; then :
5351 ac_cv_header_stdc=yes
5352 else
5353 ac_cv_header_stdc=no
5355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5357 if test $ac_cv_header_stdc = yes; then
5358 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5361 #include <string.h>
5363 _ACEOF
5364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5365 $EGREP "memchr" >/dev/null 2>&1; then :
5367 else
5368 ac_cv_header_stdc=no
5370 rm -f conftest*
5374 if test $ac_cv_header_stdc = yes; then
5375 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5378 #include <stdlib.h>
5380 _ACEOF
5381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5382 $EGREP "free" >/dev/null 2>&1; then :
5384 else
5385 ac_cv_header_stdc=no
5387 rm -f conftest*
5391 if test $ac_cv_header_stdc = yes; then
5392 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5393 if test "$cross_compiling" = yes; then :
5395 else
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5398 #include <ctype.h>
5399 #include <stdlib.h>
5400 #if ((' ' & 0x0FF) == 0x020)
5401 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5402 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5403 #else
5404 # define ISLOWER(c) \
5405 (('a' <= (c) && (c) <= 'i') \
5406 || ('j' <= (c) && (c) <= 'r') \
5407 || ('s' <= (c) && (c) <= 'z'))
5408 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5409 #endif
5411 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5413 main ()
5415 int i;
5416 for (i = 0; i < 256; i++)
5417 if (XOR (islower (i), ISLOWER (i))
5418 || toupper (i) != TOUPPER (i))
5419 return 2;
5420 return 0;
5422 _ACEOF
5423 if ac_fn_c_try_run "$LINENO"; then :
5425 else
5426 ac_cv_header_stdc=no
5428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5429 conftest.$ac_objext conftest.beam conftest.$ac_ext
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5435 $as_echo "$ac_cv_header_stdc" >&6; }
5436 if test $ac_cv_header_stdc = yes; then
5438 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5442 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5443 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5444 inttypes.h stdint.h unistd.h
5445 do :
5446 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5447 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5449 eval as_val=\$$as_ac_Header
5450 if test "x$as_val" = x""yes; then :
5451 cat >>confdefs.h <<_ACEOF
5452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5453 _ACEOF
5457 done
5460 for ac_header in dlfcn.h
5461 do :
5462 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5463 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
5464 cat >>confdefs.h <<_ACEOF
5465 #define HAVE_DLFCN_H 1
5466 _ACEOF
5470 done
5473 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5475 # find the maximum length of command line arguments
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5477 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5478 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5482 teststring="ABCD"
5484 case $build_os in
5485 msdosdjgpp*)
5486 # On DJGPP, this test can blow up pretty badly due to problems in libc
5487 # (any single argument exceeding 2000 bytes causes a buffer overrun
5488 # during glob expansion). Even if it were fixed, the result of this
5489 # check would be larger than it should be.
5490 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5493 gnu*)
5494 # Under GNU Hurd, this test is not required because there is
5495 # no limit to the length of command line arguments.
5496 # Libtool will interpret -1 as no limit whatsoever
5497 lt_cv_sys_max_cmd_len=-1;
5500 cygwin* | mingw*)
5501 # On Win9x/ME, this test blows up -- it succeeds, but takes
5502 # about 5 minutes as the teststring grows exponentially.
5503 # Worse, since 9x/ME are not pre-emptively multitasking,
5504 # you end up with a "frozen" computer, even though with patience
5505 # the test eventually succeeds (with a max line length of 256k).
5506 # Instead, let's just punt: use the minimum linelength reported by
5507 # all of the supported platforms: 8192 (on NT/2K/XP).
5508 lt_cv_sys_max_cmd_len=8192;
5511 amigaos*)
5512 # On AmigaOS with pdksh, this test takes hours, literally.
5513 # So we just punt and use a minimum line length of 8192.
5514 lt_cv_sys_max_cmd_len=8192;
5517 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5518 # This has been around since 386BSD, at least. Likely further.
5519 if test -x /sbin/sysctl; then
5520 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5521 elif test -x /usr/sbin/sysctl; then
5522 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5523 else
5524 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5526 # And add a safety zone
5527 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5528 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5530 osf*)
5531 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5532 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5533 # nice to cause kernel panics so lets avoid the loop below.
5534 # First set a reasonable default.
5535 lt_cv_sys_max_cmd_len=16384
5537 if test -x /sbin/sysconfig; then
5538 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5539 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5540 esac
5544 # If test is not a shell built-in, we'll probably end up computing a
5545 # maximum length that is only half of the actual maximum length, but
5546 # we can't tell.
5547 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5548 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5549 = "XX$teststring") >/dev/null 2>&1 &&
5550 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5551 lt_cv_sys_max_cmd_len=$new_result &&
5552 test $i != 17 # 1/2 MB should be enough
5554 i=`expr $i + 1`
5555 teststring=$teststring$teststring
5556 done
5557 teststring=
5558 # Add a significant safety factor because C++ compilers can tack on massive
5559 # amounts of additional arguments before passing them to the linker.
5560 # It appears as though 1/2 is a usable value.
5561 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5563 esac
5567 if test -n $lt_cv_sys_max_cmd_len ; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5569 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5570 else
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5572 $as_echo "none" >&6; }
5578 # Check for command to grab the raw symbol name followed by C symbol from nm.
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5580 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5581 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5582 $as_echo_n "(cached) " >&6
5583 else
5585 # These are sane defaults that work on at least a few old systems.
5586 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5588 # Character class describing NM global symbol codes.
5589 symcode='[BCDEGRST]'
5591 # Regexp to match symbols that can be accessed directly from C.
5592 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5594 # Transform an extracted symbol line into a proper C declaration
5595 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5597 # Transform an extracted symbol line into symbol name and symbol address
5598 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5600 # Define system-specific variables.
5601 case $host_os in
5602 aix*)
5603 symcode='[BCDT]'
5605 cygwin* | mingw* | pw32*)
5606 symcode='[ABCDGISTW]'
5608 hpux*) # Its linker distinguishes data from code symbols
5609 if test "$host_cpu" = ia64; then
5610 symcode='[ABCDEGRST]'
5612 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5613 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5615 linux*)
5616 if test "$host_cpu" = ia64; then
5617 symcode='[ABCDGIRSTW]'
5618 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5619 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5622 irix* | nonstopux*)
5623 symcode='[BCDEGRST]'
5625 osf*)
5626 symcode='[BCDEGQRST]'
5628 solaris* | sysv5*)
5629 symcode='[BDRT]'
5631 sysv4)
5632 symcode='[DFNSTU]'
5634 esac
5636 # Handle CRLF in mingw tool chain
5637 opt_cr=
5638 case $build_os in
5639 mingw*)
5640 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5642 esac
5644 # If we're using GNU nm, then use its standard symbol codes.
5645 case `$NM -V 2>&1` in
5646 *GNU* | *'with BFD'*)
5647 symcode='[ABCDGIRSTW]' ;;
5648 esac
5650 # Try without a prefix undercore, then with it.
5651 for ac_symprfx in "" "_"; do
5653 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5654 symxfrm="\\1 $ac_symprfx\\2 \\2"
5656 # Write the raw and C identifiers.
5657 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5659 # Check to see that the pipe works correctly.
5660 pipe_works=no
5662 rm -f conftest*
5663 cat > conftest.$ac_ext <<EOF
5664 #ifdef __cplusplus
5665 extern "C" {
5666 #endif
5667 char nm_test_var;
5668 void nm_test_func(){}
5669 #ifdef __cplusplus
5671 #endif
5672 int main(){nm_test_var='a';nm_test_func();return(0);}
5675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5676 (eval $ac_compile) 2>&5
5677 ac_status=$?
5678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5679 test $ac_status = 0; }; then
5680 # Now try to grab the symbols.
5681 nlist=conftest.nm
5682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5683 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5684 ac_status=$?
5685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5686 test $ac_status = 0; } && test -s "$nlist"; then
5687 # Try sorting and uniquifying the output.
5688 if sort "$nlist" | uniq > "$nlist"T; then
5689 mv -f "$nlist"T "$nlist"
5690 else
5691 rm -f "$nlist"T
5694 # Make sure that we snagged all the symbols we need.
5695 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5696 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5697 cat <<EOF > conftest.$ac_ext
5698 #ifdef __cplusplus
5699 extern "C" {
5700 #endif
5703 # Now generate the symbol file.
5704 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5706 cat <<EOF >> conftest.$ac_ext
5707 #if defined (__STDC__) && __STDC__
5708 # define lt_ptr_t void *
5709 #else
5710 # define lt_ptr_t char *
5711 # define const
5712 #endif
5714 /* The mapping between symbol names and symbols. */
5715 const struct {
5716 const char *name;
5717 lt_ptr_t address;
5719 lt_preloaded_symbols[] =
5722 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5723 cat <<\EOF >> conftest.$ac_ext
5724 {0, (lt_ptr_t) 0}
5727 #ifdef __cplusplus
5729 #endif
5731 # Now try linking the two files.
5732 mv conftest.$ac_objext conftstm.$ac_objext
5733 lt_save_LIBS="$LIBS"
5734 lt_save_CFLAGS="$CFLAGS"
5735 LIBS="conftstm.$ac_objext"
5736 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5738 (eval $ac_link) 2>&5
5739 ac_status=$?
5740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5741 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5742 pipe_works=yes
5744 LIBS="$lt_save_LIBS"
5745 CFLAGS="$lt_save_CFLAGS"
5746 else
5747 echo "cannot find nm_test_func in $nlist" >&5
5749 else
5750 echo "cannot find nm_test_var in $nlist" >&5
5752 else
5753 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5755 else
5756 echo "$progname: failed program was:" >&5
5757 cat conftest.$ac_ext >&5
5759 rm -f conftest* conftst*
5761 # Do not use the global_symbol_pipe unless it works.
5762 if test "$pipe_works" = yes; then
5763 break
5764 else
5765 lt_cv_sys_global_symbol_pipe=
5767 done
5771 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5772 lt_cv_sys_global_symbol_to_cdecl=
5774 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5776 $as_echo "failed" >&6; }
5777 else
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5779 $as_echo "ok" >&6; }
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5783 $as_echo_n "checking for objdir... " >&6; }
5784 if test "${lt_cv_objdir+set}" = set; then :
5785 $as_echo_n "(cached) " >&6
5786 else
5787 rm -f .libs 2>/dev/null
5788 mkdir .libs 2>/dev/null
5789 if test -d .libs; then
5790 lt_cv_objdir=.libs
5791 else
5792 # MS-DOS does not allow filenames that begin with a dot.
5793 lt_cv_objdir=_libs
5795 rmdir .libs 2>/dev/null
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5798 $as_echo "$lt_cv_objdir" >&6; }
5799 objdir=$lt_cv_objdir
5805 case $host_os in
5806 aix3*)
5807 # AIX sometimes has problems with the GCC collect2 program. For some
5808 # reason, if we set the COLLECT_NAMES environment variable, the problems
5809 # vanish in a puff of smoke.
5810 if test "X${COLLECT_NAMES+set}" != Xset; then
5811 COLLECT_NAMES=
5812 export COLLECT_NAMES
5815 esac
5817 # Sed substitution that helps us do robust quoting. It backslashifies
5818 # metacharacters that are still active within double-quoted strings.
5819 Xsed='sed -e 1s/^X//'
5820 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5822 # Same as above, but do not quote variable references.
5823 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5825 # Sed substitution to delay expansion of an escaped shell variable in a
5826 # double_quote_subst'ed string.
5827 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5829 # Sed substitution to avoid accidental globbing in evaled expressions
5830 no_glob_subst='s/\*/\\\*/g'
5832 # Constants:
5833 rm="rm -f"
5835 # Global variables:
5836 default_ofile=libtool
5837 can_build_shared=yes
5839 # All known linkers require a `.a' archive for static linking (except M$VC,
5840 # which needs '.lib').
5841 libext=a
5842 ltmain="$ac_aux_dir/ltmain.sh"
5843 ofile="$default_ofile"
5844 with_gnu_ld="$lt_cv_prog_gnu_ld"
5846 if test -n "$ac_tool_prefix"; then
5847 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5848 set dummy ${ac_tool_prefix}ar; ac_word=$2
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if test "${ac_cv_prog_AR+set}" = set; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 if test -n "$AR"; then
5855 ac_cv_prog_AR="$AR" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864 ac_cv_prog_AR="${ac_tool_prefix}ar"
5865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 break 2
5868 done
5869 done
5870 IFS=$as_save_IFS
5874 AR=$ac_cv_prog_AR
5875 if test -n "$AR"; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5877 $as_echo "$AR" >&6; }
5878 else
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5885 if test -z "$ac_cv_prog_AR"; then
5886 ac_ct_AR=$AR
5887 # Extract the first word of "ar", so it can be a program name with args.
5888 set dummy ar; ac_word=$2
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5892 $as_echo_n "(cached) " >&6
5893 else
5894 if test -n "$ac_ct_AR"; then
5895 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904 ac_cv_prog_ac_ct_AR="ar"
5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 break 2
5908 done
5909 done
5910 IFS=$as_save_IFS
5914 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5915 if test -n "$ac_ct_AR"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5917 $as_echo "$ac_ct_AR" >&6; }
5918 else
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5923 if test "x$ac_ct_AR" = x; then
5924 AR="false"
5925 else
5926 case $cross_compiling:$ac_tool_warned in
5927 yes:)
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5930 ac_tool_warned=yes ;;
5931 esac
5932 AR=$ac_ct_AR
5934 else
5935 AR="$ac_cv_prog_AR"
5938 if test -n "$ac_tool_prefix"; then
5939 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5940 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5942 $as_echo_n "checking for $ac_word... " >&6; }
5943 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5944 $as_echo_n "(cached) " >&6
5945 else
5946 if test -n "$RANLIB"; then
5947 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5948 else
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH
5952 IFS=$as_save_IFS
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5956 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 break 2
5960 done
5961 done
5962 IFS=$as_save_IFS
5966 RANLIB=$ac_cv_prog_RANLIB
5967 if test -n "$RANLIB"; then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5969 $as_echo "$RANLIB" >&6; }
5970 else
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972 $as_echo "no" >&6; }
5977 if test -z "$ac_cv_prog_RANLIB"; then
5978 ac_ct_RANLIB=$RANLIB
5979 # Extract the first word of "ranlib", so it can be a program name with args.
5980 set dummy ranlib; ac_word=$2
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5982 $as_echo_n "checking for $ac_word... " >&6; }
5983 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 if test -n "$ac_ct_RANLIB"; then
5987 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5988 else
5989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990 for as_dir in $PATH
5992 IFS=$as_save_IFS
5993 test -z "$as_dir" && as_dir=.
5994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5996 ac_cv_prog_ac_ct_RANLIB="ranlib"
5997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5998 break 2
6000 done
6001 done
6002 IFS=$as_save_IFS
6006 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6007 if test -n "$ac_ct_RANLIB"; then
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6009 $as_echo "$ac_ct_RANLIB" >&6; }
6010 else
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012 $as_echo "no" >&6; }
6015 if test "x$ac_ct_RANLIB" = x; then
6016 RANLIB=":"
6017 else
6018 case $cross_compiling:$ac_tool_warned in
6019 yes:)
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6022 ac_tool_warned=yes ;;
6023 esac
6024 RANLIB=$ac_ct_RANLIB
6026 else
6027 RANLIB="$ac_cv_prog_RANLIB"
6030 if test -n "$ac_tool_prefix"; then
6031 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6032 set dummy ${ac_tool_prefix}strip; ac_word=$2
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if test "${ac_cv_prog_STRIP+set}" = set; then :
6036 $as_echo_n "(cached) " >&6
6037 else
6038 if test -n "$STRIP"; then
6039 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6040 else
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 break 2
6052 done
6053 done
6054 IFS=$as_save_IFS
6058 STRIP=$ac_cv_prog_STRIP
6059 if test -n "$STRIP"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6061 $as_echo "$STRIP" >&6; }
6062 else
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6069 if test -z "$ac_cv_prog_STRIP"; then
6070 ac_ct_STRIP=$STRIP
6071 # Extract the first word of "strip", so it can be a program name with args.
6072 set dummy strip; ac_word=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6076 $as_echo_n "(cached) " >&6
6077 else
6078 if test -n "$ac_ct_STRIP"; then
6079 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6080 else
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 for as_dir in $PATH
6084 IFS=$as_save_IFS
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6088 ac_cv_prog_ac_ct_STRIP="strip"
6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090 break 2
6092 done
6093 done
6094 IFS=$as_save_IFS
6098 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6099 if test -n "$ac_ct_STRIP"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6101 $as_echo "$ac_ct_STRIP" >&6; }
6102 else
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6107 if test "x$ac_ct_STRIP" = x; then
6108 STRIP=":"
6109 else
6110 case $cross_compiling:$ac_tool_warned in
6111 yes:)
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6114 ac_tool_warned=yes ;;
6115 esac
6116 STRIP=$ac_ct_STRIP
6118 else
6119 STRIP="$ac_cv_prog_STRIP"
6123 old_CC="$CC"
6124 old_CFLAGS="$CFLAGS"
6126 # Set sane defaults for various variables
6127 test -z "$AR" && AR=ar
6128 test -z "$AR_FLAGS" && AR_FLAGS=cru
6129 test -z "$AS" && AS=as
6130 test -z "$CC" && CC=cc
6131 test -z "$LTCC" && LTCC=$CC
6132 test -z "$DLLTOOL" && DLLTOOL=dlltool
6133 test -z "$LD" && LD=ld
6134 test -z "$LN_S" && LN_S="ln -s"
6135 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6136 test -z "$NM" && NM=nm
6137 test -z "$SED" && SED=sed
6138 test -z "$OBJDUMP" && OBJDUMP=objdump
6139 test -z "$RANLIB" && RANLIB=:
6140 test -z "$STRIP" && STRIP=:
6141 test -z "$ac_objext" && ac_objext=o
6143 # Determine commands to create old-style static archives.
6144 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6145 old_postinstall_cmds='chmod 644 $oldlib'
6146 old_postuninstall_cmds=
6148 if test -n "$RANLIB"; then
6149 case $host_os in
6150 openbsd*)
6151 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6154 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6156 esac
6157 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6160 for cc_temp in $compiler""; do
6161 case $cc_temp in
6162 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6163 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6164 \-*) ;;
6165 *) break;;
6166 esac
6167 done
6168 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6171 # Only perform the check for file, if the check method requires it
6172 case $deplibs_check_method in
6173 file_magic*)
6174 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6176 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6177 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
6179 else
6180 case $MAGIC_CMD in
6181 [\\/*] | ?:[\\/]*)
6182 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6185 lt_save_MAGIC_CMD="$MAGIC_CMD"
6186 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6187 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6188 for ac_dir in $ac_dummy; do
6189 IFS="$lt_save_ifs"
6190 test -z "$ac_dir" && ac_dir=.
6191 if test -f $ac_dir/${ac_tool_prefix}file; then
6192 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6193 if test -n "$file_magic_test_file"; then
6194 case $deplibs_check_method in
6195 "file_magic "*)
6196 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6197 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6198 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6199 $EGREP "$file_magic_regex" > /dev/null; then
6201 else
6202 cat <<EOF 1>&2
6204 *** Warning: the command libtool uses to detect shared libraries,
6205 *** $file_magic_cmd, produces output that libtool cannot recognize.
6206 *** The result is that libtool may fail to recognize shared libraries
6207 *** as such. This will affect the creation of libtool libraries that
6208 *** depend on shared libraries, but programs linked with such libtool
6209 *** libraries will work regardless of this problem. Nevertheless, you
6210 *** may want to report the problem to your system manager and/or to
6211 *** bug-libtool@gnu.org
6214 fi ;;
6215 esac
6217 break
6219 done
6220 IFS="$lt_save_ifs"
6221 MAGIC_CMD="$lt_save_MAGIC_CMD"
6223 esac
6226 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6227 if test -n "$MAGIC_CMD"; then
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6229 $as_echo "$MAGIC_CMD" >&6; }
6230 else
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232 $as_echo "no" >&6; }
6235 if test -z "$lt_cv_path_MAGIC_CMD"; then
6236 if test -n "$ac_tool_prefix"; then
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6238 $as_echo_n "checking for file... " >&6; }
6239 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 case $MAGIC_CMD in
6243 [\\/*] | ?:[\\/]*)
6244 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6247 lt_save_MAGIC_CMD="$MAGIC_CMD"
6248 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6249 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6250 for ac_dir in $ac_dummy; do
6251 IFS="$lt_save_ifs"
6252 test -z "$ac_dir" && ac_dir=.
6253 if test -f $ac_dir/file; then
6254 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6255 if test -n "$file_magic_test_file"; then
6256 case $deplibs_check_method in
6257 "file_magic "*)
6258 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6259 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6260 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6261 $EGREP "$file_magic_regex" > /dev/null; then
6263 else
6264 cat <<EOF 1>&2
6266 *** Warning: the command libtool uses to detect shared libraries,
6267 *** $file_magic_cmd, produces output that libtool cannot recognize.
6268 *** The result is that libtool may fail to recognize shared libraries
6269 *** as such. This will affect the creation of libtool libraries that
6270 *** depend on shared libraries, but programs linked with such libtool
6271 *** libraries will work regardless of this problem. Nevertheless, you
6272 *** may want to report the problem to your system manager and/or to
6273 *** bug-libtool@gnu.org
6276 fi ;;
6277 esac
6279 break
6281 done
6282 IFS="$lt_save_ifs"
6283 MAGIC_CMD="$lt_save_MAGIC_CMD"
6285 esac
6288 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6289 if test -n "$MAGIC_CMD"; then
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6291 $as_echo "$MAGIC_CMD" >&6; }
6292 else
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294 $as_echo "no" >&6; }
6297 else
6298 MAGIC_CMD=:
6304 esac
6306 enable_dlopen=no
6307 enable_win32_dll=yes
6309 # Check whether --enable-libtool-lock was given.
6310 if test "${enable_libtool_lock+set}" = set; then :
6311 enableval=$enable_libtool_lock;
6314 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6317 # Check whether --with-pic was given.
6318 if test "${with_pic+set}" = set; then :
6319 withval=$with_pic; pic_mode="$withval"
6320 else
6321 pic_mode=default
6324 test -z "$pic_mode" && pic_mode=default
6326 # Use C for the default configuration in the libtool script
6327 tagname=
6328 lt_save_CC="$CC"
6329 ac_ext=c
6330 ac_cpp='$CPP $CPPFLAGS'
6331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6336 # Source file extension for C test sources.
6337 ac_ext=c
6339 # Object file extension for compiled C test sources.
6340 objext=o
6341 objext=$objext
6343 # Code to be used in simple compile tests
6344 lt_simple_compile_test_code="int some_variable = 0;\n"
6346 # Code to be used in simple link tests
6347 lt_simple_link_test_code='int main(){return(0);}\n'
6350 # If no C compiler was specified, use CC.
6351 LTCC=${LTCC-"$CC"}
6353 # Allow CC to be a program name with arguments.
6354 compiler=$CC
6357 # save warnings/boilerplate of simple test code
6358 ac_outfile=conftest.$ac_objext
6359 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6360 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6361 _lt_compiler_boilerplate=`cat conftest.err`
6362 $rm conftest*
6364 ac_outfile=conftest.$ac_objext
6365 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6366 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6367 _lt_linker_boilerplate=`cat conftest.err`
6368 $rm conftest*
6372 # Check for any special shared library compilation flags.
6374 lt_prog_cc_shlib=
6375 if test "$GCC" = no; then
6376 case $host_os in
6377 sco3.2v5*)
6378 lt_prog_cc_shlib='-belf'
6380 esac
6382 if test -n "$lt_prog_cc_shlib"; then
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6384 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6385 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6386 else
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6388 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6389 lt_cv_prog_cc_can_build_shared=no
6395 # Check to make sure the static flag actually works.
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6398 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
6399 if test "${lt_prog_compiler_static_works+set}" = set; then :
6400 $as_echo_n "(cached) " >&6
6401 else
6402 lt_prog_compiler_static_works=no
6403 save_LDFLAGS="$LDFLAGS"
6404 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6405 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6406 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6407 # The compiler can only warn and ignore the option if not recognized
6408 # So say no if there are warnings
6409 if test -s conftest.err; then
6410 # Append any errors to the config.log.
6411 cat conftest.err 1>&5
6412 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6413 $SED '/^$/d' conftest.err >conftest.er2
6414 if diff conftest.exp conftest.er2 >/dev/null; then
6415 lt_prog_compiler_static_works=yes
6417 else
6418 lt_prog_compiler_static_works=yes
6421 $rm conftest*
6422 LDFLAGS="$save_LDFLAGS"
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
6426 $as_echo "$lt_prog_compiler_static_works" >&6; }
6428 if test x"$lt_prog_compiler_static_works" = xyes; then
6430 else
6431 lt_prog_compiler_static=
6436 ## CAVEAT EMPTOR:
6437 ## There is no encapsulation within the following macros, do not change
6438 ## the running order or otherwise move them around unless you know exactly
6439 ## what you are doing...
6441 lt_prog_compiler_no_builtin_flag=
6443 if test "$GCC" = yes; then
6444 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6448 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6449 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 lt_cv_prog_compiler_rtti_exceptions=no
6453 ac_outfile=conftest.$ac_objext
6454 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6455 lt_compiler_flag="-fno-rtti -fno-exceptions"
6456 # Insert the option either (1) after the last *FLAGS variable, or
6457 # (2) before a word containing "conftest.", or (3) at the end.
6458 # Note that $ac_compile itself does not contain backslashes and begins
6459 # with a dollar sign (not a hyphen), so the echo should work correctly.
6460 # The option is referenced via a variable to avoid confusing sed.
6461 lt_compile=`echo "$ac_compile" | $SED \
6462 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6464 -e 's:$: $lt_compiler_flag:'`
6465 (eval echo "\"\$as_me:6465: $lt_compile\"" >&5)
6466 (eval "$lt_compile" 2>conftest.err)
6467 ac_status=$?
6468 cat conftest.err >&5
6469 echo "$as_me:6469: \$? = $ac_status" >&5
6470 if (exit $ac_status) && test -s "$ac_outfile"; then
6471 # The compiler can only warn and ignore the option if not recognized
6472 # So say no if there are warnings other than the usual output.
6473 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6474 $SED '/^$/d' conftest.err >conftest.er2
6475 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6476 lt_cv_prog_compiler_rtti_exceptions=yes
6479 $rm conftest*
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6483 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6485 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6486 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6487 else
6493 lt_prog_compiler_wl=
6494 lt_prog_compiler_pic=
6495 lt_prog_compiler_static=
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6498 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6500 if test "$GCC" = yes; then
6501 lt_prog_compiler_wl='-Wl,'
6502 lt_prog_compiler_static='-static'
6504 case $host_os in
6505 aix*)
6506 # All AIX code is PIC.
6507 if test "$host_cpu" = ia64; then
6508 # AIX 5 now supports IA64 processor
6509 lt_prog_compiler_static='-Bstatic'
6513 amigaos*)
6514 # FIXME: we need at least 68020 code to build shared libraries, but
6515 # adding the `-m68020' flag to GCC prevents building anything better,
6516 # like `-m68040'.
6517 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6520 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6521 # PIC is the default for these OSes.
6524 mingw* | pw32* | os2*)
6525 # This hack is so that the source file can tell whether it is being
6526 # built for inclusion in a dll (and should export symbols for example).
6527 lt_prog_compiler_pic='-DDLL_EXPORT'
6530 darwin* | rhapsody*)
6531 # PIC is the default on this platform
6532 # Common symbols not allowed in MH_DYLIB files
6533 lt_prog_compiler_pic='-fno-common'
6536 msdosdjgpp*)
6537 # Just because we use GCC doesn't mean we suddenly get shared libraries
6538 # on systems that don't support them.
6539 lt_prog_compiler_can_build_shared=no
6540 enable_shared=no
6543 sysv4*MP*)
6544 if test -d /usr/nec; then
6545 lt_prog_compiler_pic=-Kconform_pic
6549 hpux*)
6550 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6551 # not for PA HP-UX.
6552 case "$host_cpu" in
6553 hppa*64*|ia64*)
6554 # +Z the default
6557 lt_prog_compiler_pic='-fPIC'
6559 esac
6563 lt_prog_compiler_pic='-fPIC'
6565 esac
6566 else
6567 # PORTME Check for flag to pass linker flags through the system compiler.
6568 case $host_os in
6569 aix*)
6570 lt_prog_compiler_wl='-Wl,'
6571 if test "$host_cpu" = ia64; then
6572 # AIX 5 now supports IA64 processor
6573 lt_prog_compiler_static='-Bstatic'
6574 else
6575 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6578 darwin*)
6579 # PIC is the default on this platform
6580 # Common symbols not allowed in MH_DYLIB files
6581 case $cc_basename in
6582 xlc*)
6583 lt_prog_compiler_pic='-qnocommon'
6584 lt_prog_compiler_wl='-Wl,'
6586 esac
6589 mingw* | pw32* | os2*)
6590 # This hack is so that the source file can tell whether it is being
6591 # built for inclusion in a dll (and should export symbols for example).
6592 lt_prog_compiler_pic='-DDLL_EXPORT'
6595 hpux9* | hpux10* | hpux11*)
6596 lt_prog_compiler_wl='-Wl,'
6597 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6598 # not for PA HP-UX.
6599 case "$host_cpu" in
6600 hppa*64*|ia64*)
6601 # +Z the default
6604 lt_prog_compiler_pic='+Z'
6606 esac
6607 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6608 lt_prog_compiler_static='${wl}-a ${wl}archive'
6611 irix5* | irix6* | nonstopux*)
6612 lt_prog_compiler_wl='-Wl,'
6613 # PIC (with -KPIC) is the default.
6614 lt_prog_compiler_static='-non_shared'
6617 newsos6)
6618 lt_prog_compiler_pic='-KPIC'
6619 lt_prog_compiler_static='-Bstatic'
6622 linux*)
6623 case $cc_basename in
6624 icc* | ecc*)
6625 lt_prog_compiler_wl='-Wl,'
6626 lt_prog_compiler_pic='-KPIC'
6627 lt_prog_compiler_static='-static'
6629 pgcc* | pgf77* | pgf90*)
6630 # Portland Group compilers (*not* the Pentium gcc compiler,
6631 # which looks to be a dead project)
6632 lt_prog_compiler_wl='-Wl,'
6633 lt_prog_compiler_pic='-fpic'
6634 lt_prog_compiler_static='-static'
6636 ccc*)
6637 lt_prog_compiler_wl='-Wl,'
6638 # All Alpha code is PIC.
6639 lt_prog_compiler_static='-non_shared'
6641 esac
6644 osf3* | osf4* | osf5*)
6645 lt_prog_compiler_wl='-Wl,'
6646 # All OSF/1 code is PIC.
6647 lt_prog_compiler_static='-non_shared'
6650 sco3.2v5*)
6651 lt_prog_compiler_pic='-Kpic'
6652 lt_prog_compiler_static='-dn'
6655 solaris*)
6656 lt_prog_compiler_pic='-KPIC'
6657 lt_prog_compiler_static='-Bstatic'
6658 case $cc_basename in
6659 f77* | f90* | f95*)
6660 lt_prog_compiler_wl='-Qoption ld ';;
6662 lt_prog_compiler_wl='-Wl,';;
6663 esac
6666 sunos4*)
6667 lt_prog_compiler_wl='-Qoption ld '
6668 lt_prog_compiler_pic='-PIC'
6669 lt_prog_compiler_static='-Bstatic'
6672 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6673 lt_prog_compiler_wl='-Wl,'
6674 lt_prog_compiler_pic='-KPIC'
6675 lt_prog_compiler_static='-Bstatic'
6678 sysv4*MP*)
6679 if test -d /usr/nec ;then
6680 lt_prog_compiler_pic='-Kconform_pic'
6681 lt_prog_compiler_static='-Bstatic'
6685 unicos*)
6686 lt_prog_compiler_wl='-Wl,'
6687 lt_prog_compiler_can_build_shared=no
6690 uts4*)
6691 lt_prog_compiler_pic='-pic'
6692 lt_prog_compiler_static='-Bstatic'
6696 lt_prog_compiler_can_build_shared=no
6698 esac
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6702 $as_echo "$lt_prog_compiler_pic" >&6; }
6705 # Check to make sure the PIC flag actually works.
6707 if test -n "$lt_prog_compiler_pic"; then
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6710 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6711 if test "${lt_prog_compiler_pic_works+set}" = set; then :
6712 $as_echo_n "(cached) " >&6
6713 else
6714 lt_prog_compiler_pic_works=no
6715 ac_outfile=conftest.$ac_objext
6716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6717 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6718 # Insert the option either (1) after the last *FLAGS variable, or
6719 # (2) before a word containing "conftest.", or (3) at the end.
6720 # Note that $ac_compile itself does not contain backslashes and begins
6721 # with a dollar sign (not a hyphen), so the echo should work correctly.
6722 # The option is referenced via a variable to avoid confusing sed.
6723 lt_compile=`echo "$ac_compile" | $SED \
6724 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6726 -e 's:$: $lt_compiler_flag:'`
6727 (eval echo "\"\$as_me:6727: $lt_compile\"" >&5)
6728 (eval "$lt_compile" 2>conftest.err)
6729 ac_status=$?
6730 cat conftest.err >&5
6731 echo "$as_me:6731: \$? = $ac_status" >&5
6732 if (exit $ac_status) && test -s "$ac_outfile"; then
6733 # The compiler can only warn and ignore the option if not recognized
6734 # So say no if there are warnings other than the usual output.
6735 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6736 $SED '/^$/d' conftest.err >conftest.er2
6737 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6738 lt_prog_compiler_pic_works=yes
6741 $rm conftest*
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
6745 $as_echo "$lt_prog_compiler_pic_works" >&6; }
6747 if test x"$lt_prog_compiler_pic_works" = xyes; then
6748 case $lt_prog_compiler_pic in
6749 "" | " "*) ;;
6750 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6751 esac
6752 else
6753 lt_prog_compiler_pic=
6754 lt_prog_compiler_can_build_shared=no
6758 case "$host_os" in
6759 # For platforms which do not support PIC, -DPIC is meaningless:
6760 *djgpp*)
6761 lt_prog_compiler_pic=
6764 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6766 esac
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
6769 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
6770 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
6771 $as_echo_n "(cached) " >&6
6772 else
6773 lt_cv_prog_compiler_c_o=no
6774 $rm -r conftest 2>/dev/null
6775 mkdir conftest
6776 cd conftest
6777 mkdir out
6778 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6780 lt_compiler_flag="-o out/conftest2.$ac_objext"
6781 # Insert the option either (1) after the last *FLAGS variable, or
6782 # (2) before a word containing "conftest.", or (3) at the end.
6783 # Note that $ac_compile itself does not contain backslashes and begins
6784 # with a dollar sign (not a hyphen), so the echo should work correctly.
6785 lt_compile=`echo "$ac_compile" | $SED \
6786 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6788 -e 's:$: $lt_compiler_flag:'`
6789 (eval echo "\"\$as_me:6789: $lt_compile\"" >&5)
6790 (eval "$lt_compile" 2>out/conftest.err)
6791 ac_status=$?
6792 cat out/conftest.err >&5
6793 echo "$as_me:6793: \$? = $ac_status" >&5
6794 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6795 then
6796 # The compiler can only warn and ignore the option if not recognized
6797 # So say no if there are warnings
6798 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6799 $SED '/^$/d' out/conftest.err >out/conftest.er2
6800 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6801 lt_cv_prog_compiler_c_o=yes
6804 chmod u+w .
6805 $rm conftest*
6806 # SGI C++ compiler will create directory out/ii_files/ for
6807 # template instantiation
6808 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6809 $rm out/* && rmdir out
6810 cd ..
6811 rmdir conftest
6812 $rm conftest*
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
6816 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
6819 hard_links="nottested"
6820 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6821 # do not overwrite the value of need_locks provided by the user
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
6823 $as_echo_n "checking if we can lock with hard links... " >&6; }
6824 hard_links=yes
6825 $rm conftest*
6826 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6827 touch conftest.a
6828 ln conftest.a conftest.b 2>&5 || hard_links=no
6829 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
6831 $as_echo "$hard_links" >&6; }
6832 if test "$hard_links" = no; then
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6834 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6835 need_locks=warn
6837 else
6838 need_locks=no
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6842 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
6844 runpath_var=
6845 allow_undefined_flag=
6846 enable_shared_with_static_runtimes=no
6847 archive_cmds=
6848 archive_expsym_cmds=
6849 old_archive_From_new_cmds=
6850 old_archive_from_expsyms_cmds=
6851 export_dynamic_flag_spec=
6852 whole_archive_flag_spec=
6853 thread_safe_flag_spec=
6854 hardcode_libdir_flag_spec=
6855 hardcode_libdir_flag_spec_ld=
6856 hardcode_libdir_separator=
6857 hardcode_direct=no
6858 hardcode_minus_L=no
6859 hardcode_shlibpath_var=unsupported
6860 link_all_deplibs=unknown
6861 hardcode_automatic=no
6862 module_cmds=
6863 module_expsym_cmds=
6864 always_export_symbols=no
6865 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6866 # include_expsyms should be a list of space-separated symbols to be *always*
6867 # included in the symbol list
6868 include_expsyms=
6869 # exclude_expsyms can be an extended regexp of symbols to exclude
6870 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6871 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6872 # as well as any symbol that contains `d'.
6873 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6874 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6875 # platforms (ab)use it in PIC code, but their linkers get confused if
6876 # the symbol is explicitly referenced. Since portable code cannot
6877 # rely on this symbol name, it's probably fine to never include it in
6878 # preloaded symbol tables.
6879 extract_expsyms_cmds=
6880 # Just being paranoid about ensuring that cc_basename is set.
6881 for cc_temp in $compiler""; do
6882 case $cc_temp in
6883 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6884 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6885 \-*) ;;
6886 *) break;;
6887 esac
6888 done
6889 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6891 case $host_os in
6892 cygwin* | mingw* | pw32*)
6893 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6894 # When not using gcc, we currently assume that we are using
6895 # Microsoft Visual C++.
6896 if test "$GCC" != yes; then
6897 with_gnu_ld=no
6900 openbsd*)
6901 with_gnu_ld=no
6903 esac
6905 ld_shlibs=yes
6906 if test "$with_gnu_ld" = yes; then
6907 # If archive_cmds runs LD, not CC, wlarc should be empty
6908 wlarc='${wl}'
6910 # Set some defaults for GNU ld with shared library support. These
6911 # are reset later if shared libraries are not supported. Putting them
6912 # here allows them to be overridden if necessary.
6913 runpath_var=LD_RUN_PATH
6914 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6915 export_dynamic_flag_spec='${wl}--export-dynamic'
6916 # ancient GNU ld didn't support --whole-archive et. al.
6917 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6918 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6919 else
6920 whole_archive_flag_spec=
6922 supports_anon_versioning=no
6923 case `$LD -v 2>/dev/null` in
6924 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6925 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6926 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6927 *\ 2.11.*) ;; # other 2.11 versions
6928 *) supports_anon_versioning=yes ;;
6929 esac
6931 # See if GNU ld supports shared libraries.
6932 case $host_os in
6933 aix3* | aix4* | aix5*)
6934 # On AIX/PPC, the GNU linker is very broken
6935 if test "$host_cpu" != ia64; then
6936 ld_shlibs=no
6937 cat <<EOF 1>&2
6939 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6940 *** to be unable to reliably create shared libraries on AIX.
6941 *** Therefore, libtool is disabling shared libraries support. If you
6942 *** really care for shared libraries, you may want to modify your PATH
6943 *** so that a non-GNU linker is found, and then restart.
6949 amigaos*)
6950 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)'
6951 hardcode_libdir_flag_spec='-L$libdir'
6952 hardcode_minus_L=yes
6954 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6955 # that the semantics of dynamic libraries on AmigaOS, at least up
6956 # to version 4, is to share data among multiple programs linked
6957 # with the same dynamic library. Since this doesn't match the
6958 # behavior of shared libraries on other platforms, we can't use
6959 # them.
6960 ld_shlibs=no
6963 beos*)
6964 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6965 allow_undefined_flag=unsupported
6966 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6967 # support --undefined. This deserves some investigation. FIXME
6968 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6969 else
6970 ld_shlibs=no
6974 cygwin* | mingw* | pw32*)
6975 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6976 # as there is no search path for DLLs.
6977 hardcode_libdir_flag_spec='-L$libdir'
6978 allow_undefined_flag=unsupported
6979 always_export_symbols=no
6980 enable_shared_with_static_runtimes=yes
6981 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6983 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6985 # If the export-symbols file already is a .def file (1st line
6986 # is EXPORTS), use it as is; otherwise, prepend...
6987 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6988 cp $export_symbols $output_objdir/$soname.def;
6989 else
6990 echo EXPORTS > $output_objdir/$soname.def;
6991 cat $export_symbols >> $output_objdir/$soname.def;
6993 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6994 else
6995 ld_shlibs=no
6999 linux*)
7000 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7001 tmp_addflag=
7002 case $cc_basename,$host_cpu in
7003 pgcc*) # Portland Group C compiler
7004 whole_archive_flag_spec=
7006 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
7007 whole_archive_flag_spec=
7008 tmp_addflag=' -fpic -Mnomain' ;;
7009 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7010 tmp_addflag=' -i_dynamic' ;;
7011 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7012 tmp_addflag=' -i_dynamic -nofor_main' ;;
7013 ifc* | ifort*) # Intel Fortran compiler
7014 tmp_addflag=' -nofor_main' ;;
7015 esac
7016 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7018 if test $supports_anon_versioning = yes; then
7019 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7020 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7021 $echo "local: *; };" >> $output_objdir/$libname.ver~
7022 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7024 else
7025 ld_shlibs=no
7029 netbsd*)
7030 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7031 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7032 wlarc=
7033 else
7034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7035 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7039 solaris* | sysv5*)
7040 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7041 ld_shlibs=no
7042 cat <<EOF 1>&2
7044 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7045 *** create shared libraries on Solaris systems. Therefore, libtool
7046 *** is disabling shared libraries support. We urge you to upgrade GNU
7047 *** binutils to release 2.9.1 or newer. Another option is to modify
7048 *** your PATH or compiler configuration so that the native linker is
7049 *** used, and then restart.
7052 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7054 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7055 else
7056 ld_shlibs=no
7060 sunos4*)
7061 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7062 wlarc=
7063 hardcode_direct=yes
7064 hardcode_shlibpath_var=no
7068 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7070 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7071 else
7072 ld_shlibs=no
7075 esac
7077 if test "$ld_shlibs" = no; then
7078 runpath_var=
7079 hardcode_libdir_flag_spec=
7080 export_dynamic_flag_spec=
7081 whole_archive_flag_spec=
7083 else
7084 # PORTME fill in a description of your system's linker (not GNU ld)
7085 case $host_os in
7086 aix3*)
7087 allow_undefined_flag=unsupported
7088 always_export_symbols=yes
7089 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'
7090 # Note: this linker hardcodes the directories in LIBPATH if there
7091 # are no directories specified by -L.
7092 hardcode_minus_L=yes
7093 if test "$GCC" = yes && test -z "$link_static_flag"; then
7094 # Neither direct hardcoding nor static linking is supported with a
7095 # broken collect2.
7096 hardcode_direct=unsupported
7100 aix4* | aix5*)
7101 if test "$host_cpu" = ia64; then
7102 # On IA64, the linker does run time linking by default, so we don't
7103 # have to do anything special.
7104 aix_use_runtimelinking=no
7105 exp_sym_flag='-Bexport'
7106 no_entry_flag=""
7107 else
7108 # If we're using GNU nm, then we don't want the "-C" option.
7109 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7110 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7111 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7112 else
7113 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'
7115 aix_use_runtimelinking=no
7117 # Test if we are trying to use run time linking or normal
7118 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7119 # need to do runtime linking.
7120 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7121 for ld_flag in $LDFLAGS; do
7122 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7123 aix_use_runtimelinking=yes
7124 break
7126 done
7127 esac
7129 exp_sym_flag='-bexport'
7130 no_entry_flag='-bnoentry'
7133 # When large executables or shared objects are built, AIX ld can
7134 # have problems creating the table of contents. If linking a library
7135 # or program results in "error TOC overflow" add -mminimal-toc to
7136 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7137 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7139 archive_cmds=''
7140 hardcode_direct=yes
7141 hardcode_libdir_separator=':'
7142 link_all_deplibs=yes
7144 if test "$GCC" = yes; then
7145 case $host_os in aix4.[012]|aix4.[012].*)
7146 # We only want to do this on AIX 4.2 and lower, the check
7147 # below for broken collect2 doesn't work under 4.3+
7148 collect2name=`${CC} -print-prog-name=collect2`
7149 if test -f "$collect2name" && \
7150 strings "$collect2name" | grep resolve_lib_name >/dev/null
7151 then
7152 # We have reworked collect2
7153 hardcode_direct=yes
7154 else
7155 # We have old collect2
7156 hardcode_direct=unsupported
7157 # It fails to find uninstalled libraries when the uninstalled
7158 # path is not listed in the libpath. Setting hardcode_minus_L
7159 # to unsupported forces relinking
7160 hardcode_minus_L=yes
7161 hardcode_libdir_flag_spec='-L$libdir'
7162 hardcode_libdir_separator=
7164 esac
7165 shared_flag='-shared'
7166 if test "$aix_use_runtimelinking" = yes; then
7167 shared_flag="$shared_flag "'${wl}-G'
7169 else
7170 # not using gcc
7171 if test "$host_cpu" = ia64; then
7172 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7173 # chokes on -Wl,-G. The following line is correct:
7174 shared_flag='-G'
7175 else
7176 if test "$aix_use_runtimelinking" = yes; then
7177 shared_flag='${wl}-G'
7178 else
7179 shared_flag='${wl}-bM:SRE'
7184 # It seems that -bexpall does not export symbols beginning with
7185 # underscore (_), so it is better to generate a list of symbols to export.
7186 always_export_symbols=yes
7187 if test "$aix_use_runtimelinking" = yes; then
7188 # Warning - without using the other runtime loading flags (-brtl),
7189 # -berok will link without error, but may produce a broken library.
7190 allow_undefined_flag='-berok'
7191 # Determine the default libpath from the value encoded in an empty executable.
7192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193 /* end confdefs.h. */
7196 main ()
7200 return 0;
7202 _ACEOF
7203 if ac_fn_c_try_link "$LINENO"; then :
7205 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7207 # Check for a 64-bit object if we didn't find anything.
7208 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7209 }'`; fi
7211 rm -f core conftest.err conftest.$ac_objext \
7212 conftest$ac_exeext conftest.$ac_ext
7213 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7215 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7216 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7217 else
7218 if test "$host_cpu" = ia64; then
7219 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7220 allow_undefined_flag="-z nodefs"
7221 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7222 else
7223 # Determine the default libpath from the value encoded in an empty executable.
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7228 main ()
7232 return 0;
7234 _ACEOF
7235 if ac_fn_c_try_link "$LINENO"; then :
7237 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7239 # Check for a 64-bit object if we didn't find anything.
7240 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7241 }'`; fi
7243 rm -f core conftest.err conftest.$ac_objext \
7244 conftest$ac_exeext conftest.$ac_ext
7245 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7247 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7248 # Warning - without using the other run time loading flags,
7249 # -berok will link without error, but may produce a broken library.
7250 no_undefined_flag=' ${wl}-bernotok'
7251 allow_undefined_flag=' ${wl}-berok'
7252 # -bexpall does not export symbols beginning with underscore (_)
7253 always_export_symbols=yes
7254 # Exported symbols can be pulled into shared objects from archives
7255 whole_archive_flag_spec=' '
7256 archive_cmds_need_lc=yes
7257 # This is similar to how AIX traditionally builds it's shared libraries.
7258 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7263 amigaos*)
7264 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)'
7265 hardcode_libdir_flag_spec='-L$libdir'
7266 hardcode_minus_L=yes
7267 # see comment about different semantics on the GNU ld section
7268 ld_shlibs=no
7271 bsdi[45]*)
7272 export_dynamic_flag_spec=-rdynamic
7275 cygwin* | mingw* | pw32*)
7276 # When not using gcc, we currently assume that we are using
7277 # Microsoft Visual C++.
7278 # hardcode_libdir_flag_spec is actually meaningless, as there is
7279 # no search path for DLLs.
7280 hardcode_libdir_flag_spec=' '
7281 allow_undefined_flag=unsupported
7282 # Tell ltmain to make .lib files, not .a files.
7283 libext=lib
7284 # Tell ltmain to make .dll files, not .so files.
7285 shrext_cmds=".dll"
7286 # FIXME: Setting linknames here is a bad hack.
7287 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7288 # The linker will automatically build a .lib file if we build a DLL.
7289 old_archive_From_new_cmds='true'
7290 # FIXME: Should let the user specify the lib program.
7291 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7292 fix_srcfile_path='`cygpath -w "$srcfile"`'
7293 enable_shared_with_static_runtimes=yes
7296 darwin* | rhapsody*)
7297 case "$host_os" in
7298 rhapsody* | darwin1.[012])
7299 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7301 *) # Darwin 1.3 on
7302 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7303 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7304 else
7305 case ${MACOSX_DEPLOYMENT_TARGET} in
7306 10.[012])
7307 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7309 10.*)
7310 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7312 esac
7315 esac
7316 archive_cmds_need_lc=no
7317 hardcode_direct=no
7318 hardcode_automatic=yes
7319 hardcode_shlibpath_var=unsupported
7320 whole_archive_flag_spec=''
7321 link_all_deplibs=yes
7322 if test "$GCC" = yes ; then
7323 output_verbose_link_cmd='echo'
7324 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7325 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7326 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7327 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7328 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7329 else
7330 case $cc_basename in
7331 xlc*)
7332 output_verbose_link_cmd='echo'
7333 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7334 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7335 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7336 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7337 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7340 ld_shlibs=no
7342 esac
7346 dgux*)
7347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7348 hardcode_libdir_flag_spec='-L$libdir'
7349 hardcode_shlibpath_var=no
7352 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7353 # support. Future versions do this automatically, but an explicit c++rt0.o
7354 # does not break anything, and helps significantly (at the cost of a little
7355 # extra space).
7356 freebsd2.2*)
7357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7358 hardcode_libdir_flag_spec='-R$libdir'
7359 hardcode_direct=yes
7360 hardcode_shlibpath_var=no
7363 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7364 freebsd2.*)
7365 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7366 hardcode_direct=yes
7367 hardcode_minus_L=yes
7368 hardcode_shlibpath_var=no
7371 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7372 freebsd* | kfreebsd*-gnu | dragonfly*)
7373 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7374 hardcode_libdir_flag_spec='-R$libdir'
7375 hardcode_direct=yes
7376 hardcode_shlibpath_var=no
7379 hpux9*)
7380 if test "$GCC" = yes; then
7381 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7382 else
7383 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'
7385 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7386 hardcode_libdir_separator=:
7387 hardcode_direct=yes
7389 # hardcode_minus_L: Not really in the search PATH,
7390 # but as the default location of the library.
7391 hardcode_minus_L=yes
7392 export_dynamic_flag_spec='${wl}-E'
7395 hpux10* | hpux11*)
7396 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7397 case "$host_cpu" in
7398 hppa*64*|ia64*)
7399 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7402 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7404 esac
7405 else
7406 case "$host_cpu" in
7407 hppa*64*|ia64*)
7408 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7411 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7413 esac
7415 if test "$with_gnu_ld" = no; then
7416 case "$host_cpu" in
7417 hppa*64*)
7418 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7419 hardcode_libdir_flag_spec_ld='+b $libdir'
7420 hardcode_libdir_separator=:
7421 hardcode_direct=no
7422 hardcode_shlibpath_var=no
7424 ia64*)
7425 hardcode_libdir_flag_spec='-L$libdir'
7426 hardcode_direct=no
7427 hardcode_shlibpath_var=no
7429 # hardcode_minus_L: Not really in the search PATH,
7430 # but as the default location of the library.
7431 hardcode_minus_L=yes
7434 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7435 hardcode_libdir_separator=:
7436 hardcode_direct=yes
7437 export_dynamic_flag_spec='${wl}-E'
7439 # hardcode_minus_L: Not really in the search PATH,
7440 # but as the default location of the library.
7441 hardcode_minus_L=yes
7443 esac
7447 irix5* | irix6* | nonstopux*)
7448 if test "$GCC" = yes; then
7449 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7450 else
7451 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7452 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7455 hardcode_libdir_separator=:
7456 link_all_deplibs=yes
7459 netbsd*)
7460 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7461 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7462 else
7463 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7465 hardcode_libdir_flag_spec='-R$libdir'
7466 hardcode_direct=yes
7467 hardcode_shlibpath_var=no
7470 newsos6)
7471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7472 hardcode_direct=yes
7473 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7474 hardcode_libdir_separator=:
7475 hardcode_shlibpath_var=no
7478 openbsd*)
7479 hardcode_direct=yes
7480 hardcode_shlibpath_var=no
7481 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7482 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7483 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7484 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7485 export_dynamic_flag_spec='${wl}-E'
7486 else
7487 case $host_os in
7488 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7489 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7490 hardcode_libdir_flag_spec='-R$libdir'
7493 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7494 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7496 esac
7500 os2*)
7501 hardcode_libdir_flag_spec='-L$libdir'
7502 hardcode_minus_L=yes
7503 allow_undefined_flag=unsupported
7504 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'
7505 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7508 osf3*)
7509 if test "$GCC" = yes; then
7510 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7511 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7512 else
7513 allow_undefined_flag=' -expect_unresolved \*'
7514 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7517 hardcode_libdir_separator=:
7520 osf4* | osf5*) # as osf3* with the addition of -msym flag
7521 if test "$GCC" = yes; then
7522 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7523 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7525 else
7526 allow_undefined_flag=' -expect_unresolved \*'
7527 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7528 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7529 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7531 # Both c and cxx compiler support -rpath directly
7532 hardcode_libdir_flag_spec='-rpath $libdir'
7534 hardcode_libdir_separator=:
7537 sco3.2v5*)
7538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7539 hardcode_shlibpath_var=no
7540 export_dynamic_flag_spec='${wl}-Bexport'
7541 runpath_var=LD_RUN_PATH
7542 hardcode_runpath_var=yes
7545 solaris*)
7546 no_undefined_flag=' -z text'
7547 if test "$GCC" = yes; then
7548 wlarc='${wl}'
7549 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7550 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7551 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7552 else
7553 wlarc=''
7554 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7555 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7556 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7558 hardcode_libdir_flag_spec='-R$libdir'
7559 hardcode_shlibpath_var=no
7560 case $host_os in
7561 solaris2.[0-5] | solaris2.[0-5].*) ;;
7563 # The compiler driver will combine linker options so we
7564 # cannot just pass the convience library names through
7565 # without $wl, iff we do not link with $LD.
7566 # Luckily, gcc supports the same syntax we need for Sun Studio.
7567 # Supported since Solaris 2.6 (maybe 2.5.1?)
7568 case $wlarc in
7570 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7572 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7573 esac ;;
7574 esac
7575 link_all_deplibs=yes
7578 sunos4*)
7579 if test "x$host_vendor" = xsequent; then
7580 # Use $CC to link under sequent, because it throws in some extra .o
7581 # files that make .init and .fini sections work.
7582 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7583 else
7584 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7586 hardcode_libdir_flag_spec='-L$libdir'
7587 hardcode_direct=yes
7588 hardcode_minus_L=yes
7589 hardcode_shlibpath_var=no
7592 sysv4)
7593 case $host_vendor in
7594 sni)
7595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7596 hardcode_direct=yes # is this really true???
7598 siemens)
7599 ## LD is ld it makes a PLAMLIB
7600 ## CC just makes a GrossModule.
7601 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7602 reload_cmds='$CC -r -o $output$reload_objs'
7603 hardcode_direct=no
7605 motorola)
7606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7607 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7609 esac
7610 runpath_var='LD_RUN_PATH'
7611 hardcode_shlibpath_var=no
7614 sysv4.3*)
7615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7616 hardcode_shlibpath_var=no
7617 export_dynamic_flag_spec='-Bexport'
7620 sysv4*MP*)
7621 if test -d /usr/nec; then
7622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7623 hardcode_shlibpath_var=no
7624 runpath_var=LD_RUN_PATH
7625 hardcode_runpath_var=yes
7626 ld_shlibs=yes
7630 sysv4.2uw2*)
7631 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7632 hardcode_direct=yes
7633 hardcode_minus_L=no
7634 hardcode_shlibpath_var=no
7635 hardcode_runpath_var=yes
7636 runpath_var=LD_RUN_PATH
7639 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7640 no_undefined_flag='${wl}-z ${wl}text'
7641 if test "$GCC" = yes; then
7642 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7643 else
7644 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7646 runpath_var='LD_RUN_PATH'
7647 hardcode_shlibpath_var=no
7650 sysv5*)
7651 no_undefined_flag=' -z text'
7652 # $CC -shared without GNU ld will not create a library from C++
7653 # object files and a static libstdc++, better avoid it by now
7654 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7655 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7656 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7657 hardcode_libdir_flag_spec=
7658 hardcode_shlibpath_var=no
7659 runpath_var='LD_RUN_PATH'
7662 uts4*)
7663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7664 hardcode_libdir_flag_spec='-L$libdir'
7665 hardcode_shlibpath_var=no
7669 ld_shlibs=no
7671 esac
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
7675 $as_echo "$ld_shlibs" >&6; }
7676 test "$ld_shlibs" = no && can_build_shared=no
7678 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7679 if test "$GCC" = yes; then
7680 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7684 # Do we need to explicitly link libc?
7686 case "x$archive_cmds_need_lc" in
7687 x|xyes)
7688 # Assume -lc should be added
7689 archive_cmds_need_lc=yes
7691 if test "$enable_shared" = yes && test "$GCC" = yes; then
7692 case $archive_cmds in
7693 *'~'*)
7694 # FIXME: we may have to deal with multi-command sequences.
7696 '$CC '*)
7697 # Test whether the compiler implicitly links with -lc since on some
7698 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7699 # to ld, don't add -lc before -lgcc.
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
7701 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
7702 $rm conftest*
7703 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7706 (eval $ac_compile) 2>&5
7707 ac_status=$?
7708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7709 test $ac_status = 0; } 2>conftest.err; then
7710 soname=conftest
7711 lib=conftest
7712 libobjs=conftest.$ac_objext
7713 deplibs=
7714 wl=$lt_prog_compiler_wl
7715 compiler_flags=-v
7716 linker_flags=-v
7717 verstring=
7718 output_objdir=.
7719 libname=conftest
7720 lt_save_allow_undefined_flag=$allow_undefined_flag
7721 allow_undefined_flag=
7722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
7723 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7724 ac_status=$?
7725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7726 test $ac_status = 0; }
7727 then
7728 archive_cmds_need_lc=no
7729 else
7730 archive_cmds_need_lc=yes
7732 allow_undefined_flag=$lt_save_allow_undefined_flag
7733 else
7734 cat conftest.err 1>&5
7736 $rm conftest*
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
7738 $as_echo "$archive_cmds_need_lc" >&6; }
7740 esac
7743 esac
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
7746 $as_echo_n "checking dynamic linker characteristics... " >&6; }
7747 library_names_spec=
7748 libname_spec='lib$name'
7749 soname_spec=
7750 shrext_cmds=".so"
7751 postinstall_cmds=
7752 postuninstall_cmds=
7753 finish_cmds=
7754 finish_eval=
7755 shlibpath_var=
7756 shlibpath_overrides_runpath=unknown
7757 version_type=none
7758 dynamic_linker="$host_os ld.so"
7759 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7760 if test "$GCC" = yes; then
7761 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7762 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7763 # if the path contains ";" then we assume it to be the separator
7764 # otherwise default to the standard path separator (i.e. ":") - it is
7765 # assumed that no part of a normal pathname contains ";" but that should
7766 # okay in the real world where ";" in dirpaths is itself problematic.
7767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7768 else
7769 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7771 else
7772 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7774 need_lib_prefix=unknown
7775 hardcode_into_libs=no
7777 # when you set need_version to no, make sure it does not cause -set_version
7778 # flags to be left without arguments
7779 need_version=unknown
7781 case $host_os in
7782 aix3*)
7783 version_type=linux
7784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7785 shlibpath_var=LIBPATH
7787 # AIX 3 has no versioning support, so we append a major version to the name.
7788 soname_spec='${libname}${release}${shared_ext}$major'
7791 aix4* | aix5*)
7792 version_type=linux
7793 need_lib_prefix=no
7794 need_version=no
7795 hardcode_into_libs=yes
7796 if test "$host_cpu" = ia64; then
7797 # AIX 5 supports IA64
7798 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7799 shlibpath_var=LD_LIBRARY_PATH
7800 else
7801 # With GCC up to 2.95.x, collect2 would create an import file
7802 # for dependence libraries. The import file would start with
7803 # the line `#! .'. This would cause the generated library to
7804 # depend on `.', always an invalid library. This was fixed in
7805 # development snapshots of GCC prior to 3.0.
7806 case $host_os in
7807 aix4 | aix4.[01] | aix4.[01].*)
7808 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7809 echo ' yes '
7810 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7812 else
7813 can_build_shared=no
7816 esac
7817 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7818 # soname into executable. Probably we can add versioning support to
7819 # collect2, so additional links can be useful in future.
7820 if test "$aix_use_runtimelinking" = yes; then
7821 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7822 # instead of lib<name>.a to let people know that these are not
7823 # typical AIX shared libraries.
7824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7825 else
7826 # We preserve .a as extension for shared libraries through AIX4.2
7827 # and later when we are not doing run time linking.
7828 library_names_spec='${libname}${release}.a $libname.a'
7829 soname_spec='${libname}${release}${shared_ext}$major'
7831 shlibpath_var=LIBPATH
7835 amigaos*)
7836 library_names_spec='$libname.ixlibrary $libname.a'
7837 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7838 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
7841 beos*)
7842 library_names_spec='${libname}${shared_ext}'
7843 dynamic_linker="$host_os ld.so"
7844 shlibpath_var=LIBRARY_PATH
7847 bsdi[45]*)
7848 version_type=linux
7849 need_version=no
7850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7851 soname_spec='${libname}${release}${shared_ext}$major'
7852 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7853 shlibpath_var=LD_LIBRARY_PATH
7854 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7855 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7856 # the default ld.so.conf also contains /usr/contrib/lib and
7857 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7858 # libtool to hard-code these into programs
7861 cygwin* | mingw* | pw32*)
7862 version_type=windows
7863 shrext_cmds=".dll"
7864 need_version=no
7865 need_lib_prefix=no
7867 case $GCC,$host_os in
7868 yes,cygwin* | yes,mingw* | yes,pw32*)
7869 library_names_spec='$libname.dll.a'
7870 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7871 postinstall_cmds='base_file=`basename \${file}`~
7872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7873 dldir=$destdir/`dirname \$dlpath`~
7874 test -d \$dldir || mkdir -p \$dldir~
7875 $install_prog $dir/$dlname \$dldir/$dlname'
7876 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7877 dlpath=$dir/\$dldll~
7878 $rm \$dlpath'
7879 shlibpath_overrides_runpath=yes
7881 case $host_os in
7882 cygwin*)
7883 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7884 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7885 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7887 mingw*)
7888 # MinGW DLLs use traditional 'lib' prefix
7889 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7890 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7891 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7892 # It is most probably a Windows format PATH printed by
7893 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7894 # path with ; separators, and with drive letters. We can handle the
7895 # drive letters (cygwin fileutils understands them), so leave them,
7896 # especially as we might pass files found there to a mingw objdump,
7897 # which wouldn't understand a cygwinified path. Ahh.
7898 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7899 else
7900 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7903 pw32*)
7904 # pw32 DLLs use 'pw' prefix rather than 'lib'
7905 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7907 esac
7911 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7913 esac
7914 dynamic_linker='Win32 ld.exe'
7915 # FIXME: first we should search . and the directory the executable is in
7916 shlibpath_var=PATH
7919 darwin* | rhapsody*)
7920 dynamic_linker="$host_os dyld"
7921 version_type=darwin
7922 need_lib_prefix=no
7923 need_version=no
7924 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7925 soname_spec='${libname}${release}${major}$shared_ext'
7926 shlibpath_overrides_runpath=yes
7927 shlibpath_var=DYLD_LIBRARY_PATH
7928 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7929 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7930 if test "$GCC" = yes; then
7931 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7932 else
7933 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7935 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7938 dgux*)
7939 version_type=linux
7940 need_lib_prefix=no
7941 need_version=no
7942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7943 soname_spec='${libname}${release}${shared_ext}$major'
7944 shlibpath_var=LD_LIBRARY_PATH
7947 kfreebsd*-gnu)
7948 version_type=linux
7949 need_lib_prefix=no
7950 need_version=no
7951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7952 soname_spec='${libname}${release}${shared_ext}$major'
7953 shlibpath_var=LD_LIBRARY_PATH
7954 shlibpath_overrides_runpath=no
7955 hardcode_into_libs=yes
7956 dynamic_linker='GNU ld.so'
7959 freebsd* | dragonfly*)
7960 # DragonFly does not have aout. When/if they implement a new
7961 # versioning mechanism, adjust this.
7962 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7963 version_type=freebsd-$objformat
7964 case $version_type in
7965 freebsd-elf*)
7966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7967 need_version=no
7968 need_lib_prefix=no
7970 freebsd-*)
7971 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7972 need_version=yes
7974 esac
7975 shlibpath_var=LD_LIBRARY_PATH
7976 case $host_os in
7977 freebsd2.*)
7978 shlibpath_overrides_runpath=yes
7980 freebsd3.[01]* | freebsdelf3.[01]*)
7981 shlibpath_overrides_runpath=yes
7982 hardcode_into_libs=yes
7984 *) # from 3.2 on
7985 shlibpath_overrides_runpath=no
7986 hardcode_into_libs=yes
7988 esac
7991 gnu*)
7992 version_type=linux
7993 need_lib_prefix=no
7994 need_version=no
7995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7996 soname_spec='${libname}${release}${shared_ext}$major'
7997 shlibpath_var=LD_LIBRARY_PATH
7998 hardcode_into_libs=yes
8001 hpux9* | hpux10* | hpux11*)
8002 # Give a soname corresponding to the major version so that dld.sl refuses to
8003 # link against other versions.
8004 version_type=sunos
8005 need_lib_prefix=no
8006 need_version=no
8007 case "$host_cpu" in
8008 ia64*)
8009 shrext_cmds='.so'
8010 hardcode_into_libs=yes
8011 dynamic_linker="$host_os dld.so"
8012 shlibpath_var=LD_LIBRARY_PATH
8013 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8015 soname_spec='${libname}${release}${shared_ext}$major'
8016 if test "X$HPUX_IA64_MODE" = X32; then
8017 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8018 else
8019 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8021 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8023 hppa*64*)
8024 shrext_cmds='.sl'
8025 hardcode_into_libs=yes
8026 dynamic_linker="$host_os dld.sl"
8027 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8028 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8030 soname_spec='${libname}${release}${shared_ext}$major'
8031 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8032 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8035 shrext_cmds='.sl'
8036 dynamic_linker="$host_os dld.sl"
8037 shlibpath_var=SHLIB_PATH
8038 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8040 soname_spec='${libname}${release}${shared_ext}$major'
8042 esac
8043 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8044 postinstall_cmds='chmod 555 $lib'
8047 irix5* | irix6* | nonstopux*)
8048 case $host_os in
8049 nonstopux*) version_type=nonstopux ;;
8051 if test "$lt_cv_prog_gnu_ld" = yes; then
8052 version_type=linux
8053 else
8054 version_type=irix
8055 fi ;;
8056 esac
8057 need_lib_prefix=no
8058 need_version=no
8059 soname_spec='${libname}${release}${shared_ext}$major'
8060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8061 case $host_os in
8062 irix5* | nonstopux*)
8063 libsuff= shlibsuff=
8066 case $LD in # libtool.m4 will add one of these switches to LD
8067 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8068 libsuff= shlibsuff= libmagic=32-bit;;
8069 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8070 libsuff=32 shlibsuff=N32 libmagic=N32;;
8071 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8072 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8073 *) libsuff= shlibsuff= libmagic=never-match;;
8074 esac
8076 esac
8077 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8078 shlibpath_overrides_runpath=no
8079 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8080 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8081 hardcode_into_libs=yes
8084 # No shared lib support for Linux oldld, aout, or coff.
8085 linux*oldld* | linux*aout* | linux*coff*)
8086 dynamic_linker=no
8089 # This must be Linux ELF.
8090 linux*)
8091 version_type=linux
8092 need_lib_prefix=no
8093 need_version=no
8094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8095 soname_spec='${libname}${release}${shared_ext}$major'
8096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8097 shlibpath_var=LD_LIBRARY_PATH
8098 shlibpath_overrides_runpath=no
8099 # This implies no fast_install, which is unacceptable.
8100 # Some rework will be needed to allow for fast_install
8101 # before this can be enabled.
8102 hardcode_into_libs=yes
8104 # find out which ABI we are using
8105 libsuff=
8106 case "$host_cpu" in
8107 x86_64*|s390x*|powerpc64*)
8108 echo '#line 8108 "configure"' > conftest.$ac_ext
8109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8110 (eval $ac_compile) 2>&5
8111 ac_status=$?
8112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8113 test $ac_status = 0; }; then
8114 case `/usr/bin/file conftest.$ac_objext` in
8115 *64-bit*)
8116 libsuff=64
8117 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8119 esac
8121 rm -rf conftest*
8123 esac
8125 # Append ld.so.conf contents to the search path
8126 if test -f /etc/ld.so.conf; then
8127 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;/^$/d' | tr '\n' ' '`
8128 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8131 # We used to test for /lib/ld.so.1 and disable shared libraries on
8132 # powerpc, because MkLinux only supported shared libraries with the
8133 # GNU dynamic linker. Since this was broken with cross compilers,
8134 # most powerpc-linux boxes support dynamic linking these days and
8135 # people can always --disable-shared, the test was removed, and we
8136 # assume the GNU/Linux dynamic linker is in use.
8137 dynamic_linker='GNU/Linux ld.so'
8140 knetbsd*-gnu)
8141 version_type=linux
8142 need_lib_prefix=no
8143 need_version=no
8144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8145 soname_spec='${libname}${release}${shared_ext}$major'
8146 shlibpath_var=LD_LIBRARY_PATH
8147 shlibpath_overrides_runpath=no
8148 hardcode_into_libs=yes
8149 dynamic_linker='GNU ld.so'
8152 netbsd*)
8153 version_type=sunos
8154 need_lib_prefix=no
8155 need_version=no
8156 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8158 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8159 dynamic_linker='NetBSD (a.out) ld.so'
8160 else
8161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8162 soname_spec='${libname}${release}${shared_ext}$major'
8163 dynamic_linker='NetBSD ld.elf_so'
8165 shlibpath_var=LD_LIBRARY_PATH
8166 shlibpath_overrides_runpath=yes
8167 hardcode_into_libs=yes
8170 newsos6)
8171 version_type=linux
8172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8173 shlibpath_var=LD_LIBRARY_PATH
8174 shlibpath_overrides_runpath=yes
8177 nto-qnx*)
8178 version_type=linux
8179 need_lib_prefix=no
8180 need_version=no
8181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8182 soname_spec='${libname}${release}${shared_ext}$major'
8183 shlibpath_var=LD_LIBRARY_PATH
8184 shlibpath_overrides_runpath=yes
8187 openbsd*)
8188 version_type=sunos
8189 need_lib_prefix=no
8190 need_version=no
8191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8193 shlibpath_var=LD_LIBRARY_PATH
8194 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8195 case $host_os in
8196 openbsd2.[89] | openbsd2.[89].*)
8197 shlibpath_overrides_runpath=no
8200 shlibpath_overrides_runpath=yes
8202 esac
8203 else
8204 shlibpath_overrides_runpath=yes
8208 os2*)
8209 libname_spec='$name'
8210 shrext_cmds=".dll"
8211 need_lib_prefix=no
8212 library_names_spec='$libname${shared_ext} $libname.a'
8213 dynamic_linker='OS/2 ld.exe'
8214 shlibpath_var=LIBPATH
8217 osf3* | osf4* | osf5*)
8218 version_type=osf
8219 need_lib_prefix=no
8220 need_version=no
8221 soname_spec='${libname}${release}${shared_ext}$major'
8222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8223 shlibpath_var=LD_LIBRARY_PATH
8224 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8225 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8228 sco3.2v5*)
8229 version_type=osf
8230 soname_spec='${libname}${release}${shared_ext}$major'
8231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8232 shlibpath_var=LD_LIBRARY_PATH
8235 solaris*)
8236 version_type=linux
8237 need_lib_prefix=no
8238 need_version=no
8239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8240 soname_spec='${libname}${release}${shared_ext}$major'
8241 shlibpath_var=LD_LIBRARY_PATH
8242 shlibpath_overrides_runpath=yes
8243 hardcode_into_libs=yes
8244 # ldd complains unless libraries are executable
8245 postinstall_cmds='chmod +x $lib'
8248 sunos4*)
8249 version_type=sunos
8250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8251 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8252 shlibpath_var=LD_LIBRARY_PATH
8253 shlibpath_overrides_runpath=yes
8254 if test "$with_gnu_ld" = yes; then
8255 need_lib_prefix=no
8257 need_version=yes
8260 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8261 version_type=linux
8262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8263 soname_spec='${libname}${release}${shared_ext}$major'
8264 shlibpath_var=LD_LIBRARY_PATH
8265 case $host_vendor in
8266 sni)
8267 shlibpath_overrides_runpath=no
8268 need_lib_prefix=no
8269 export_dynamic_flag_spec='${wl}-Blargedynsym'
8270 runpath_var=LD_RUN_PATH
8272 siemens)
8273 need_lib_prefix=no
8275 motorola)
8276 need_lib_prefix=no
8277 need_version=no
8278 shlibpath_overrides_runpath=no
8279 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8281 esac
8284 sysv4*MP*)
8285 if test -d /usr/nec ;then
8286 version_type=linux
8287 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8288 soname_spec='$libname${shared_ext}.$major'
8289 shlibpath_var=LD_LIBRARY_PATH
8293 uts4*)
8294 version_type=linux
8295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8296 soname_spec='${libname}${release}${shared_ext}$major'
8297 shlibpath_var=LD_LIBRARY_PATH
8301 dynamic_linker=no
8303 esac
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8305 $as_echo "$dynamic_linker" >&6; }
8306 test "$dynamic_linker" = no && can_build_shared=no
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8309 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
8310 hardcode_action=
8311 if test -n "$hardcode_libdir_flag_spec" || \
8312 test -n "$runpath_var" || \
8313 test "X$hardcode_automatic" = "Xyes" ; then
8315 # We can hardcode non-existant directories.
8316 if test "$hardcode_direct" != no &&
8317 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8318 # have to relink, otherwise we might link with an installed library
8319 # when we should be linking with a yet-to-be-installed one
8320 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8321 test "$hardcode_minus_L" != no; then
8322 # Linking always hardcodes the temporary library directory.
8323 hardcode_action=relink
8324 else
8325 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8326 hardcode_action=immediate
8328 else
8329 # We cannot hardcode anything, or else we can only hardcode existing
8330 # directories.
8331 hardcode_action=unsupported
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8334 $as_echo "$hardcode_action" >&6; }
8336 if test "$hardcode_action" = relink; then
8337 # Fast installation is not supported
8338 enable_fast_install=no
8339 elif test "$shlibpath_overrides_runpath" = yes ||
8340 test "$enable_shared" = no; then
8341 # Fast installation is not necessary
8342 enable_fast_install=needless
8345 striplib=
8346 old_striplib=
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8348 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
8349 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8350 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8351 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8353 $as_echo "yes" >&6; }
8354 else
8355 # FIXME - insert some real tests, host_os isn't really good enough
8356 case $host_os in
8357 darwin*)
8358 if test -n "$STRIP" ; then
8359 striplib="$STRIP -x"
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8361 $as_echo "yes" >&6; }
8362 else
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8371 esac
8374 if test "x$enable_dlopen" != xyes; then
8375 enable_dlopen=unknown
8376 enable_dlopen_self=unknown
8377 enable_dlopen_self_static=unknown
8378 else
8379 lt_cv_dlopen=no
8380 lt_cv_dlopen_libs=
8382 case $host_os in
8383 beos*)
8384 lt_cv_dlopen="load_add_on"
8385 lt_cv_dlopen_libs=
8386 lt_cv_dlopen_self=yes
8389 mingw* | pw32*)
8390 lt_cv_dlopen="LoadLibrary"
8391 lt_cv_dlopen_libs=
8394 cygwin*)
8395 lt_cv_dlopen="dlopen"
8396 lt_cv_dlopen_libs=
8399 darwin*)
8400 # if libdl is installed we need to link against it
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8402 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8403 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8404 $as_echo_n "(cached) " >&6
8405 else
8406 ac_check_lib_save_LIBS=$LIBS
8407 LIBS="-ldl $LIBS"
8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8411 /* Override any GCC internal prototype to avoid an error.
8412 Use char because int might match the return type of a GCC
8413 builtin and then its argument prototype would still apply. */
8414 #ifdef __cplusplus
8415 extern "C"
8416 #endif
8417 char dlopen ();
8419 main ()
8421 return dlopen ();
8423 return 0;
8425 _ACEOF
8426 if ac_fn_c_try_link "$LINENO"; then :
8427 ac_cv_lib_dl_dlopen=yes
8428 else
8429 ac_cv_lib_dl_dlopen=no
8431 rm -f core conftest.err conftest.$ac_objext \
8432 conftest$ac_exeext conftest.$ac_ext
8433 LIBS=$ac_check_lib_save_LIBS
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8436 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8437 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
8438 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8439 else
8441 lt_cv_dlopen="dyld"
8442 lt_cv_dlopen_libs=
8443 lt_cv_dlopen_self=yes
8450 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
8451 if test "x$ac_cv_func_shl_load" = x""yes; then :
8452 lt_cv_dlopen="shl_load"
8453 else
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8455 $as_echo_n "checking for shl_load in -ldld... " >&6; }
8456 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
8457 $as_echo_n "(cached) " >&6
8458 else
8459 ac_check_lib_save_LIBS=$LIBS
8460 LIBS="-ldld $LIBS"
8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h. */
8464 /* Override any GCC internal prototype to avoid an error.
8465 Use char because int might match the return type of a GCC
8466 builtin and then its argument prototype would still apply. */
8467 #ifdef __cplusplus
8468 extern "C"
8469 #endif
8470 char shl_load ();
8472 main ()
8474 return shl_load ();
8476 return 0;
8478 _ACEOF
8479 if ac_fn_c_try_link "$LINENO"; then :
8480 ac_cv_lib_dld_shl_load=yes
8481 else
8482 ac_cv_lib_dld_shl_load=no
8484 rm -f core conftest.err conftest.$ac_objext \
8485 conftest$ac_exeext conftest.$ac_ext
8486 LIBS=$ac_check_lib_save_LIBS
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8489 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
8490 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
8491 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8492 else
8493 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
8494 if test "x$ac_cv_func_dlopen" = x""yes; then :
8495 lt_cv_dlopen="dlopen"
8496 else
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8498 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8499 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8500 $as_echo_n "(cached) " >&6
8501 else
8502 ac_check_lib_save_LIBS=$LIBS
8503 LIBS="-ldl $LIBS"
8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h. */
8507 /* Override any GCC internal prototype to avoid an error.
8508 Use char because int might match the return type of a GCC
8509 builtin and then its argument prototype would still apply. */
8510 #ifdef __cplusplus
8511 extern "C"
8512 #endif
8513 char dlopen ();
8515 main ()
8517 return dlopen ();
8519 return 0;
8521 _ACEOF
8522 if ac_fn_c_try_link "$LINENO"; then :
8523 ac_cv_lib_dl_dlopen=yes
8524 else
8525 ac_cv_lib_dl_dlopen=no
8527 rm -f core conftest.err conftest.$ac_objext \
8528 conftest$ac_exeext conftest.$ac_ext
8529 LIBS=$ac_check_lib_save_LIBS
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8532 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8533 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
8534 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8535 else
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8537 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
8538 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
8539 $as_echo_n "(cached) " >&6
8540 else
8541 ac_check_lib_save_LIBS=$LIBS
8542 LIBS="-lsvld $LIBS"
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8546 /* Override any GCC internal prototype to avoid an error.
8547 Use char because int might match the return type of a GCC
8548 builtin and then its argument prototype would still apply. */
8549 #ifdef __cplusplus
8550 extern "C"
8551 #endif
8552 char dlopen ();
8554 main ()
8556 return dlopen ();
8558 return 0;
8560 _ACEOF
8561 if ac_fn_c_try_link "$LINENO"; then :
8562 ac_cv_lib_svld_dlopen=yes
8563 else
8564 ac_cv_lib_svld_dlopen=no
8566 rm -f core conftest.err conftest.$ac_objext \
8567 conftest$ac_exeext conftest.$ac_ext
8568 LIBS=$ac_check_lib_save_LIBS
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8571 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
8572 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
8573 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8574 else
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8576 $as_echo_n "checking for dld_link in -ldld... " >&6; }
8577 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
8579 else
8580 ac_check_lib_save_LIBS=$LIBS
8581 LIBS="-ldld $LIBS"
8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8583 /* end confdefs.h. */
8585 /* Override any GCC internal prototype to avoid an error.
8586 Use char because int might match the return type of a GCC
8587 builtin and then its argument prototype would still apply. */
8588 #ifdef __cplusplus
8589 extern "C"
8590 #endif
8591 char dld_link ();
8593 main ()
8595 return dld_link ();
8597 return 0;
8599 _ACEOF
8600 if ac_fn_c_try_link "$LINENO"; then :
8601 ac_cv_lib_dld_dld_link=yes
8602 else
8603 ac_cv_lib_dld_dld_link=no
8605 rm -f core conftest.err conftest.$ac_objext \
8606 conftest$ac_exeext conftest.$ac_ext
8607 LIBS=$ac_check_lib_save_LIBS
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8610 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
8611 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
8612 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8631 esac
8633 if test "x$lt_cv_dlopen" != xno; then
8634 enable_dlopen=yes
8635 else
8636 enable_dlopen=no
8639 case $lt_cv_dlopen in
8640 dlopen)
8641 save_CPPFLAGS="$CPPFLAGS"
8642 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8644 save_LDFLAGS="$LDFLAGS"
8645 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8647 save_LIBS="$LIBS"
8648 LIBS="$lt_cv_dlopen_libs $LIBS"
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8651 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
8652 if test "${lt_cv_dlopen_self+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
8654 else
8655 if test "$cross_compiling" = yes; then :
8656 lt_cv_dlopen_self=cross
8657 else
8658 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8659 lt_status=$lt_dlunknown
8660 cat > conftest.$ac_ext <<EOF
8661 #line 8661 "configure"
8662 #include "confdefs.h"
8664 #if HAVE_DLFCN_H
8665 #include <dlfcn.h>
8666 #endif
8668 #include <stdio.h>
8670 #ifdef RTLD_GLOBAL
8671 # define LT_DLGLOBAL RTLD_GLOBAL
8672 #else
8673 # ifdef DL_GLOBAL
8674 # define LT_DLGLOBAL DL_GLOBAL
8675 # else
8676 # define LT_DLGLOBAL 0
8677 # endif
8678 #endif
8680 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8681 find out it does not work in some platform. */
8682 #ifndef LT_DLLAZY_OR_NOW
8683 # ifdef RTLD_LAZY
8684 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8685 # else
8686 # ifdef DL_LAZY
8687 # define LT_DLLAZY_OR_NOW DL_LAZY
8688 # else
8689 # ifdef RTLD_NOW
8690 # define LT_DLLAZY_OR_NOW RTLD_NOW
8691 # else
8692 # ifdef DL_NOW
8693 # define LT_DLLAZY_OR_NOW DL_NOW
8694 # else
8695 # define LT_DLLAZY_OR_NOW 0
8696 # endif
8697 # endif
8698 # endif
8699 # endif
8700 #endif
8702 #ifdef __cplusplus
8703 extern "C" void exit (int);
8704 #endif
8706 void fnord() { int i=42;}
8707 int main ()
8709 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8710 int status = $lt_dlunknown;
8712 if (self)
8714 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8715 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8716 /* dlclose (self); */
8719 exit (status);
8722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8723 (eval $ac_link) 2>&5
8724 ac_status=$?
8725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8726 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8727 (./conftest; exit; ) 2>/dev/null
8728 lt_status=$?
8729 case x$lt_status in
8730 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8731 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8732 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8733 esac
8734 else :
8735 # compilation failed
8736 lt_cv_dlopen_self=no
8739 rm -fr conftest*
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8744 $as_echo "$lt_cv_dlopen_self" >&6; }
8746 if test "x$lt_cv_dlopen_self" = xyes; then
8747 LDFLAGS="$LDFLAGS $link_static_flag"
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8749 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
8750 if test "${lt_cv_dlopen_self_static+set}" = set; then :
8751 $as_echo_n "(cached) " >&6
8752 else
8753 if test "$cross_compiling" = yes; then :
8754 lt_cv_dlopen_self_static=cross
8755 else
8756 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8757 lt_status=$lt_dlunknown
8758 cat > conftest.$ac_ext <<EOF
8759 #line 8759 "configure"
8760 #include "confdefs.h"
8762 #if HAVE_DLFCN_H
8763 #include <dlfcn.h>
8764 #endif
8766 #include <stdio.h>
8768 #ifdef RTLD_GLOBAL
8769 # define LT_DLGLOBAL RTLD_GLOBAL
8770 #else
8771 # ifdef DL_GLOBAL
8772 # define LT_DLGLOBAL DL_GLOBAL
8773 # else
8774 # define LT_DLGLOBAL 0
8775 # endif
8776 #endif
8778 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8779 find out it does not work in some platform. */
8780 #ifndef LT_DLLAZY_OR_NOW
8781 # ifdef RTLD_LAZY
8782 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8783 # else
8784 # ifdef DL_LAZY
8785 # define LT_DLLAZY_OR_NOW DL_LAZY
8786 # else
8787 # ifdef RTLD_NOW
8788 # define LT_DLLAZY_OR_NOW RTLD_NOW
8789 # else
8790 # ifdef DL_NOW
8791 # define LT_DLLAZY_OR_NOW DL_NOW
8792 # else
8793 # define LT_DLLAZY_OR_NOW 0
8794 # endif
8795 # endif
8796 # endif
8797 # endif
8798 #endif
8800 #ifdef __cplusplus
8801 extern "C" void exit (int);
8802 #endif
8804 void fnord() { int i=42;}
8805 int main ()
8807 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8808 int status = $lt_dlunknown;
8810 if (self)
8812 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8813 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8814 /* dlclose (self); */
8817 exit (status);
8820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8821 (eval $ac_link) 2>&5
8822 ac_status=$?
8823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8824 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8825 (./conftest; exit; ) 2>/dev/null
8826 lt_status=$?
8827 case x$lt_status in
8828 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8829 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8830 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8831 esac
8832 else :
8833 # compilation failed
8834 lt_cv_dlopen_self_static=no
8837 rm -fr conftest*
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
8842 $as_echo "$lt_cv_dlopen_self_static" >&6; }
8845 CPPFLAGS="$save_CPPFLAGS"
8846 LDFLAGS="$save_LDFLAGS"
8847 LIBS="$save_LIBS"
8849 esac
8851 case $lt_cv_dlopen_self in
8852 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8853 *) enable_dlopen_self=unknown ;;
8854 esac
8856 case $lt_cv_dlopen_self_static in
8857 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8858 *) enable_dlopen_self_static=unknown ;;
8859 esac
8863 # Report which librarie types wil actually be built
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
8865 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
8867 $as_echo "$can_build_shared" >&6; }
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
8870 $as_echo_n "checking whether to build shared libraries... " >&6; }
8871 test "$can_build_shared" = "no" && enable_shared=no
8873 # On AIX, shared libraries and static libraries use the same namespace, and
8874 # are all built from PIC.
8875 case "$host_os" in
8876 aix3*)
8877 test "$enable_shared" = yes && enable_static=no
8878 if test -n "$RANLIB"; then
8879 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8880 postinstall_cmds='$RANLIB $lib'
8884 aix4* | aix5*)
8885 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8886 test "$enable_shared" = yes && enable_static=no
8889 esac
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
8891 $as_echo "$enable_shared" >&6; }
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
8894 $as_echo_n "checking whether to build static libraries... " >&6; }
8895 # Make sure either enable_shared or enable_static is yes.
8896 test "$enable_shared" = yes || enable_static=yes
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
8898 $as_echo "$enable_static" >&6; }
8900 # The else clause should only fire when bootstrapping the
8901 # libtool distribution, otherwise you forgot to ship ltmain.sh
8902 # with your package, and you will get complaints that there are
8903 # no rules to generate ltmain.sh.
8904 if test -f "$ltmain"; then
8905 # See if we are running on zsh, and set the options which allow our commands through
8906 # without removal of \ escapes.
8907 if test -n "${ZSH_VERSION+set}" ; then
8908 setopt NO_GLOB_SUBST
8910 # Now quote all the things that may contain metacharacters while being
8911 # careful not to overquote the AC_SUBSTed values. We take copies of the
8912 # variables and quote the copies for generation of the libtool script.
8913 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8914 SED SHELL STRIP \
8915 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8916 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8917 deplibs_check_method reload_flag reload_cmds need_locks \
8918 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8919 lt_cv_sys_global_symbol_to_c_name_address \
8920 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8921 old_postinstall_cmds old_postuninstall_cmds \
8922 compiler \
8923 CC \
8924 LD \
8925 lt_prog_compiler_wl \
8926 lt_prog_compiler_pic \
8927 lt_prog_compiler_static \
8928 lt_prog_compiler_no_builtin_flag \
8929 export_dynamic_flag_spec \
8930 thread_safe_flag_spec \
8931 whole_archive_flag_spec \
8932 enable_shared_with_static_runtimes \
8933 old_archive_cmds \
8934 old_archive_from_new_cmds \
8935 predep_objects \
8936 postdep_objects \
8937 predeps \
8938 postdeps \
8939 compiler_lib_search_path \
8940 archive_cmds \
8941 archive_expsym_cmds \
8942 postinstall_cmds \
8943 postuninstall_cmds \
8944 old_archive_from_expsyms_cmds \
8945 allow_undefined_flag \
8946 no_undefined_flag \
8947 export_symbols_cmds \
8948 hardcode_libdir_flag_spec \
8949 hardcode_libdir_flag_spec_ld \
8950 hardcode_libdir_separator \
8951 hardcode_automatic \
8952 module_cmds \
8953 module_expsym_cmds \
8954 lt_cv_prog_compiler_c_o \
8955 exclude_expsyms \
8956 include_expsyms; do
8958 case $var in
8959 old_archive_cmds | \
8960 old_archive_from_new_cmds | \
8961 archive_cmds | \
8962 archive_expsym_cmds | \
8963 module_cmds | \
8964 module_expsym_cmds | \
8965 old_archive_from_expsyms_cmds | \
8966 export_symbols_cmds | \
8967 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8968 postinstall_cmds | postuninstall_cmds | \
8969 old_postinstall_cmds | old_postuninstall_cmds | \
8970 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8971 # Double-quote double-evaled strings.
8972 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8975 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8977 esac
8978 done
8980 case $lt_echo in
8981 *'\$0 --fallback-echo"')
8982 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8984 esac
8986 cfgfile="${ofile}T"
8987 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8988 $rm -f "$cfgfile"
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
8990 $as_echo "$as_me: creating $ofile" >&6;}
8992 cat <<__EOF__ >> "$cfgfile"
8993 #! $SHELL
8995 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8996 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8997 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8999 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9000 # Free Software Foundation, Inc.
9002 # This file is part of GNU Libtool:
9003 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9005 # This program is free software; you can redistribute it and/or modify
9006 # it under the terms of the GNU General Public License as published by
9007 # the Free Software Foundation; either version 2 of the License, or
9008 # (at your option) any later version.
9010 # This program is distributed in the hope that it will be useful, but
9011 # WITHOUT ANY WARRANTY; without even the implied warranty of
9012 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9013 # General Public License for more details.
9015 # You should have received a copy of the GNU General Public License
9016 # along with this program; if not, write to the Free Software
9017 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9019 # As a special exception to the GNU General Public License, if you
9020 # distribute this file as part of a program that contains a
9021 # configuration script generated by Autoconf, you may include it under
9022 # the same distribution terms that you use for the rest of that program.
9024 # A sed program that does not truncate output.
9025 SED=$lt_SED
9027 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9028 Xsed="$SED -e 1s/^X//"
9030 # The HP-UX ksh and POSIX shell print the target directory to stdout
9031 # if CDPATH is set.
9032 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9034 # The names of the tagged configurations supported by this script.
9035 available_tags=
9037 # ### BEGIN LIBTOOL CONFIG
9039 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9041 # Shell to use when invoking shell scripts.
9042 SHELL=$lt_SHELL
9044 # Whether or not to build shared libraries.
9045 build_libtool_libs=$enable_shared
9047 # Whether or not to build static libraries.
9048 build_old_libs=$enable_static
9050 # Whether or not to add -lc for building shared libraries.
9051 build_libtool_need_lc=$archive_cmds_need_lc
9053 # Whether or not to disallow shared libs when runtime libs are static
9054 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9056 # Whether or not to optimize for fast installation.
9057 fast_install=$enable_fast_install
9059 # The host system.
9060 host_alias=$host_alias
9061 host=$host
9062 host_os=$host_os
9064 # The build system.
9065 build_alias=$build_alias
9066 build=$build
9067 build_os=$build_os
9069 # An echo program that does not interpret backslashes.
9070 echo=$lt_echo
9072 # The archiver.
9073 AR=$lt_AR
9074 AR_FLAGS=$lt_AR_FLAGS
9076 # A C compiler.
9077 LTCC=$lt_LTCC
9079 # A language-specific compiler.
9080 CC=$lt_compiler
9082 # Is the compiler the GNU C compiler?
9083 with_gcc=$GCC
9085 # An ERE matcher.
9086 EGREP=$lt_EGREP
9088 # The linker used to build libraries.
9089 LD=$lt_LD
9091 # Whether we need hard or soft links.
9092 LN_S=$lt_LN_S
9094 # A BSD-compatible nm program.
9095 NM=$lt_NM
9097 # A symbol stripping program
9098 STRIP=$lt_STRIP
9100 # Used to examine libraries when file_magic_cmd begins "file"
9101 MAGIC_CMD=$MAGIC_CMD
9103 # Used on cygwin: DLL creation program.
9104 DLLTOOL="$DLLTOOL"
9106 # Used on cygwin: object dumper.
9107 OBJDUMP="$OBJDUMP"
9109 # Used on cygwin: assembler.
9110 AS="$AS"
9112 # The name of the directory that contains temporary libtool files.
9113 objdir=$objdir
9115 # How to create reloadable object files.
9116 reload_flag=$lt_reload_flag
9117 reload_cmds=$lt_reload_cmds
9119 # How to pass a linker flag through the compiler.
9120 wl=$lt_lt_prog_compiler_wl
9122 # Object file suffix (normally "o").
9123 objext="$ac_objext"
9125 # Old archive suffix (normally "a").
9126 libext="$libext"
9128 # Shared library suffix (normally ".so").
9129 shrext_cmds='$shrext_cmds'
9131 # Executable file suffix (normally "").
9132 exeext="$exeext"
9134 # Additional compiler flags for building library objects.
9135 pic_flag=$lt_lt_prog_compiler_pic
9136 pic_mode=$pic_mode
9138 # What is the maximum length of a command?
9139 max_cmd_len=$lt_cv_sys_max_cmd_len
9141 # Does compiler simultaneously support -c and -o options?
9142 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9144 # Must we lock files when doing compilation?
9145 need_locks=$lt_need_locks
9147 # Do we need the lib prefix for modules?
9148 need_lib_prefix=$need_lib_prefix
9150 # Do we need a version for libraries?
9151 need_version=$need_version
9153 # Whether dlopen is supported.
9154 dlopen_support=$enable_dlopen
9156 # Whether dlopen of programs is supported.
9157 dlopen_self=$enable_dlopen_self
9159 # Whether dlopen of statically linked programs is supported.
9160 dlopen_self_static=$enable_dlopen_self_static
9162 # Compiler flag to prevent dynamic linking.
9163 link_static_flag=$lt_lt_prog_compiler_static
9165 # Compiler flag to turn off builtin functions.
9166 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9168 # Compiler flag to allow reflexive dlopens.
9169 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9171 # Compiler flag to generate shared objects directly from archives.
9172 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9174 # Compiler flag to generate thread-safe objects.
9175 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9177 # Library versioning type.
9178 version_type=$version_type
9180 # Format of library name prefix.
9181 libname_spec=$lt_libname_spec
9183 # List of archive names. First name is the real one, the rest are links.
9184 # The last name is the one that the linker finds with -lNAME.
9185 library_names_spec=$lt_library_names_spec
9187 # The coded name of the library, if different from the real name.
9188 soname_spec=$lt_soname_spec
9190 # Commands used to build and install an old-style archive.
9191 RANLIB=$lt_RANLIB
9192 old_archive_cmds=$lt_old_archive_cmds
9193 old_postinstall_cmds=$lt_old_postinstall_cmds
9194 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9196 # Create an old-style archive from a shared archive.
9197 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9199 # Create a temporary old-style archive to link instead of a shared archive.
9200 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9202 # Commands used to build and install a shared archive.
9203 archive_cmds=$lt_archive_cmds
9204 archive_expsym_cmds=$lt_archive_expsym_cmds
9205 postinstall_cmds=$lt_postinstall_cmds
9206 postuninstall_cmds=$lt_postuninstall_cmds
9208 # Commands used to build a loadable module (assumed same as above if empty)
9209 module_cmds=$lt_module_cmds
9210 module_expsym_cmds=$lt_module_expsym_cmds
9212 # Commands to strip libraries.
9213 old_striplib=$lt_old_striplib
9214 striplib=$lt_striplib
9216 # Dependencies to place before the objects being linked to create a
9217 # shared library.
9218 predep_objects=$lt_predep_objects
9220 # Dependencies to place after the objects being linked to create a
9221 # shared library.
9222 postdep_objects=$lt_postdep_objects
9224 # Dependencies to place before the objects being linked to create a
9225 # shared library.
9226 predeps=$lt_predeps
9228 # Dependencies to place after the objects being linked to create a
9229 # shared library.
9230 postdeps=$lt_postdeps
9232 # The library search path used internally by the compiler when linking
9233 # a shared library.
9234 compiler_lib_search_path=$lt_compiler_lib_search_path
9236 # Method to check whether dependent libraries are shared objects.
9237 deplibs_check_method=$lt_deplibs_check_method
9239 # Command to use when deplibs_check_method == file_magic.
9240 file_magic_cmd=$lt_file_magic_cmd
9242 # Flag that allows shared libraries with undefined symbols to be built.
9243 allow_undefined_flag=$lt_allow_undefined_flag
9245 # Flag that forces no undefined symbols.
9246 no_undefined_flag=$lt_no_undefined_flag
9248 # Commands used to finish a libtool library installation in a directory.
9249 finish_cmds=$lt_finish_cmds
9251 # Same as above, but a single script fragment to be evaled but not shown.
9252 finish_eval=$lt_finish_eval
9254 # Take the output of nm and produce a listing of raw symbols and C names.
9255 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9257 # Transform the output of nm in a proper C declaration
9258 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9260 # Transform the output of nm in a C name address pair
9261 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9263 # This is the shared library runtime path variable.
9264 runpath_var=$runpath_var
9266 # This is the shared library path variable.
9267 shlibpath_var=$shlibpath_var
9269 # Is shlibpath searched before the hard-coded library search path?
9270 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9272 # How to hardcode a shared library path into an executable.
9273 hardcode_action=$hardcode_action
9275 # Whether we should hardcode library paths into libraries.
9276 hardcode_into_libs=$hardcode_into_libs
9278 # Flag to hardcode \$libdir into a binary during linking.
9279 # This must work even if \$libdir does not exist.
9280 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9282 # If ld is used when linking, flag to hardcode \$libdir into
9283 # a binary during linking. This must work even if \$libdir does
9284 # not exist.
9285 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9287 # Whether we need a single -rpath flag with a separated argument.
9288 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9290 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9291 # resulting binary.
9292 hardcode_direct=$hardcode_direct
9294 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9295 # resulting binary.
9296 hardcode_minus_L=$hardcode_minus_L
9298 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9299 # the resulting binary.
9300 hardcode_shlibpath_var=$hardcode_shlibpath_var
9302 # Set to yes if building a shared library automatically hardcodes DIR into the library
9303 # and all subsequent libraries and executables linked against it.
9304 hardcode_automatic=$hardcode_automatic
9306 # Variables whose values should be saved in libtool wrapper scripts and
9307 # restored at relink time.
9308 variables_saved_for_relink="$variables_saved_for_relink"
9310 # Whether libtool must link a program against all its dependency libraries.
9311 link_all_deplibs=$link_all_deplibs
9313 # Compile-time system search path for libraries
9314 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9316 # Run-time system search path for libraries
9317 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9319 # Fix the shell variable \$srcfile for the compiler.
9320 fix_srcfile_path="$fix_srcfile_path"
9322 # Set to yes if exported symbols are required.
9323 always_export_symbols=$always_export_symbols
9325 # The commands to list exported symbols.
9326 export_symbols_cmds=$lt_export_symbols_cmds
9328 # The commands to extract the exported symbol list from a shared archive.
9329 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9331 # Symbols that should not be listed in the preloaded symbols.
9332 exclude_expsyms=$lt_exclude_expsyms
9334 # Symbols that must always be exported.
9335 include_expsyms=$lt_include_expsyms
9337 # ### END LIBTOOL CONFIG
9339 __EOF__
9342 case $host_os in
9343 aix3*)
9344 cat <<\EOF >> "$cfgfile"
9346 # AIX sometimes has problems with the GCC collect2 program. For some
9347 # reason, if we set the COLLECT_NAMES environment variable, the problems
9348 # vanish in a puff of smoke.
9349 if test "X${COLLECT_NAMES+set}" != Xset; then
9350 COLLECT_NAMES=
9351 export COLLECT_NAMES
9355 esac
9357 # We use sed instead of cat because bash on DJGPP gets confused if
9358 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9359 # text mode, it properly converts lines to CR/LF. This bash problem
9360 # is reportedly fixed, but why not run on old versions too?
9361 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9363 mv -f "$cfgfile" "$ofile" || \
9364 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9365 chmod +x "$ofile"
9367 else
9368 # If there is no Makefile yet, we rely on a make rule to execute
9369 # `config.status --recheck' to rerun these tests and create the
9370 # libtool script then.
9371 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9372 if test -f "$ltmain_in"; then
9373 test -f Makefile && make "$ltmain"
9378 ac_ext=c
9379 ac_cpp='$CPP $CPPFLAGS'
9380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9384 CC="$lt_save_CC"
9387 # Check whether --with-tags was given.
9388 if test "${with_tags+set}" = set; then :
9389 withval=$with_tags; tagnames="$withval"
9393 if test -f "$ltmain" && test -n "$tagnames"; then
9394 if test ! -f "${ofile}"; then
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
9396 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9399 if test -z "$LTCC"; then
9400 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9401 if test -z "$LTCC"; then
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9403 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9404 else
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9406 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9410 # Extract list of available tagged configurations in $ofile.
9411 # Note that this assumes the entire list is on one line.
9412 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9414 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9415 for tagname in $tagnames; do
9416 IFS="$lt_save_ifs"
9417 # Check whether tagname contains only valid characters
9418 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9419 "") ;;
9420 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5
9422 esac
9424 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9425 then
9426 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
9429 # Update the list of available tags.
9430 if test -n "$tagname"; then
9431 echo appending configuration tag \"$tagname\" to $ofile
9433 case $tagname in
9434 CXX)
9435 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9436 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9437 (test "X$CXX" != "Xg++"))) ; then
9439 else
9440 tagname=""
9444 F77)
9445 if test -n "$F77" && test "X$F77" != "Xno"; then
9447 else
9448 tagname=""
9452 GCJ)
9453 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
9455 else
9456 tagname=""
9463 # Source file extension for RC test sources.
9464 ac_ext=rc
9466 # Object file extension for compiled RC test sources.
9467 objext=o
9468 objext_RC=$objext
9470 # Code to be used in simple compile tests
9471 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
9473 # Code to be used in simple link tests
9474 lt_simple_link_test_code="$lt_simple_compile_test_code"
9476 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9478 # If no C compiler was specified, use CC.
9479 LTCC=${LTCC-"$CC"}
9481 # Allow CC to be a program name with arguments.
9482 compiler=$CC
9485 # save warnings/boilerplate of simple test code
9486 ac_outfile=conftest.$ac_objext
9487 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9488 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9489 _lt_compiler_boilerplate=`cat conftest.err`
9490 $rm conftest*
9492 ac_outfile=conftest.$ac_objext
9493 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9494 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9495 _lt_linker_boilerplate=`cat conftest.err`
9496 $rm conftest*
9499 # Allow CC to be a program name with arguments.
9500 lt_save_CC="$CC"
9501 CC=${RC-"windres"}
9502 compiler=$CC
9503 compiler_RC=$CC
9504 for cc_temp in $compiler""; do
9505 case $cc_temp in
9506 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9507 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9508 \-*) ;;
9509 *) break;;
9510 esac
9511 done
9512 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9514 lt_cv_prog_compiler_c_o_RC=yes
9516 # The else clause should only fire when bootstrapping the
9517 # libtool distribution, otherwise you forgot to ship ltmain.sh
9518 # with your package, and you will get complaints that there are
9519 # no rules to generate ltmain.sh.
9520 if test -f "$ltmain"; then
9521 # See if we are running on zsh, and set the options which allow our commands through
9522 # without removal of \ escapes.
9523 if test -n "${ZSH_VERSION+set}" ; then
9524 setopt NO_GLOB_SUBST
9526 # Now quote all the things that may contain metacharacters while being
9527 # careful not to overquote the AC_SUBSTed values. We take copies of the
9528 # variables and quote the copies for generation of the libtool script.
9529 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9530 SED SHELL STRIP \
9531 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9532 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9533 deplibs_check_method reload_flag reload_cmds need_locks \
9534 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9535 lt_cv_sys_global_symbol_to_c_name_address \
9536 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9537 old_postinstall_cmds old_postuninstall_cmds \
9538 compiler_RC \
9539 CC_RC \
9540 LD_RC \
9541 lt_prog_compiler_wl_RC \
9542 lt_prog_compiler_pic_RC \
9543 lt_prog_compiler_static_RC \
9544 lt_prog_compiler_no_builtin_flag_RC \
9545 export_dynamic_flag_spec_RC \
9546 thread_safe_flag_spec_RC \
9547 whole_archive_flag_spec_RC \
9548 enable_shared_with_static_runtimes_RC \
9549 old_archive_cmds_RC \
9550 old_archive_from_new_cmds_RC \
9551 predep_objects_RC \
9552 postdep_objects_RC \
9553 predeps_RC \
9554 postdeps_RC \
9555 compiler_lib_search_path_RC \
9556 archive_cmds_RC \
9557 archive_expsym_cmds_RC \
9558 postinstall_cmds_RC \
9559 postuninstall_cmds_RC \
9560 old_archive_from_expsyms_cmds_RC \
9561 allow_undefined_flag_RC \
9562 no_undefined_flag_RC \
9563 export_symbols_cmds_RC \
9564 hardcode_libdir_flag_spec_RC \
9565 hardcode_libdir_flag_spec_ld_RC \
9566 hardcode_libdir_separator_RC \
9567 hardcode_automatic_RC \
9568 module_cmds_RC \
9569 module_expsym_cmds_RC \
9570 lt_cv_prog_compiler_c_o_RC \
9571 exclude_expsyms_RC \
9572 include_expsyms_RC; do
9574 case $var in
9575 old_archive_cmds_RC | \
9576 old_archive_from_new_cmds_RC | \
9577 archive_cmds_RC | \
9578 archive_expsym_cmds_RC | \
9579 module_cmds_RC | \
9580 module_expsym_cmds_RC | \
9581 old_archive_from_expsyms_cmds_RC | \
9582 export_symbols_cmds_RC | \
9583 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9584 postinstall_cmds | postuninstall_cmds | \
9585 old_postinstall_cmds | old_postuninstall_cmds | \
9586 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9587 # Double-quote double-evaled strings.
9588 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9591 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9593 esac
9594 done
9596 case $lt_echo in
9597 *'\$0 --fallback-echo"')
9598 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9600 esac
9602 cfgfile="$ofile"
9604 cat <<__EOF__ >> "$cfgfile"
9605 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
9607 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9609 # Shell to use when invoking shell scripts.
9610 SHELL=$lt_SHELL
9612 # Whether or not to build shared libraries.
9613 build_libtool_libs=$enable_shared
9615 # Whether or not to build static libraries.
9616 build_old_libs=$enable_static
9618 # Whether or not to add -lc for building shared libraries.
9619 build_libtool_need_lc=$archive_cmds_need_lc_RC
9621 # Whether or not to disallow shared libs when runtime libs are static
9622 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
9624 # Whether or not to optimize for fast installation.
9625 fast_install=$enable_fast_install
9627 # The host system.
9628 host_alias=$host_alias
9629 host=$host
9630 host_os=$host_os
9632 # The build system.
9633 build_alias=$build_alias
9634 build=$build
9635 build_os=$build_os
9637 # An echo program that does not interpret backslashes.
9638 echo=$lt_echo
9640 # The archiver.
9641 AR=$lt_AR
9642 AR_FLAGS=$lt_AR_FLAGS
9644 # A C compiler.
9645 LTCC=$lt_LTCC
9647 # A language-specific compiler.
9648 CC=$lt_compiler_RC
9650 # Is the compiler the GNU C compiler?
9651 with_gcc=$GCC_RC
9653 # An ERE matcher.
9654 EGREP=$lt_EGREP
9656 # The linker used to build libraries.
9657 LD=$lt_LD_RC
9659 # Whether we need hard or soft links.
9660 LN_S=$lt_LN_S
9662 # A BSD-compatible nm program.
9663 NM=$lt_NM
9665 # A symbol stripping program
9666 STRIP=$lt_STRIP
9668 # Used to examine libraries when file_magic_cmd begins "file"
9669 MAGIC_CMD=$MAGIC_CMD
9671 # Used on cygwin: DLL creation program.
9672 DLLTOOL="$DLLTOOL"
9674 # Used on cygwin: object dumper.
9675 OBJDUMP="$OBJDUMP"
9677 # Used on cygwin: assembler.
9678 AS="$AS"
9680 # The name of the directory that contains temporary libtool files.
9681 objdir=$objdir
9683 # How to create reloadable object files.
9684 reload_flag=$lt_reload_flag
9685 reload_cmds=$lt_reload_cmds
9687 # How to pass a linker flag through the compiler.
9688 wl=$lt_lt_prog_compiler_wl_RC
9690 # Object file suffix (normally "o").
9691 objext="$ac_objext"
9693 # Old archive suffix (normally "a").
9694 libext="$libext"
9696 # Shared library suffix (normally ".so").
9697 shrext_cmds='$shrext_cmds'
9699 # Executable file suffix (normally "").
9700 exeext="$exeext"
9702 # Additional compiler flags for building library objects.
9703 pic_flag=$lt_lt_prog_compiler_pic_RC
9704 pic_mode=$pic_mode
9706 # What is the maximum length of a command?
9707 max_cmd_len=$lt_cv_sys_max_cmd_len
9709 # Does compiler simultaneously support -c and -o options?
9710 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
9712 # Must we lock files when doing compilation?
9713 need_locks=$lt_need_locks
9715 # Do we need the lib prefix for modules?
9716 need_lib_prefix=$need_lib_prefix
9718 # Do we need a version for libraries?
9719 need_version=$need_version
9721 # Whether dlopen is supported.
9722 dlopen_support=$enable_dlopen
9724 # Whether dlopen of programs is supported.
9725 dlopen_self=$enable_dlopen_self
9727 # Whether dlopen of statically linked programs is supported.
9728 dlopen_self_static=$enable_dlopen_self_static
9730 # Compiler flag to prevent dynamic linking.
9731 link_static_flag=$lt_lt_prog_compiler_static_RC
9733 # Compiler flag to turn off builtin functions.
9734 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
9736 # Compiler flag to allow reflexive dlopens.
9737 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
9739 # Compiler flag to generate shared objects directly from archives.
9740 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
9742 # Compiler flag to generate thread-safe objects.
9743 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
9745 # Library versioning type.
9746 version_type=$version_type
9748 # Format of library name prefix.
9749 libname_spec=$lt_libname_spec
9751 # List of archive names. First name is the real one, the rest are links.
9752 # The last name is the one that the linker finds with -lNAME.
9753 library_names_spec=$lt_library_names_spec
9755 # The coded name of the library, if different from the real name.
9756 soname_spec=$lt_soname_spec
9758 # Commands used to build and install an old-style archive.
9759 RANLIB=$lt_RANLIB
9760 old_archive_cmds=$lt_old_archive_cmds_RC
9761 old_postinstall_cmds=$lt_old_postinstall_cmds
9762 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9764 # Create an old-style archive from a shared archive.
9765 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
9767 # Create a temporary old-style archive to link instead of a shared archive.
9768 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
9770 # Commands used to build and install a shared archive.
9771 archive_cmds=$lt_archive_cmds_RC
9772 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
9773 postinstall_cmds=$lt_postinstall_cmds
9774 postuninstall_cmds=$lt_postuninstall_cmds
9776 # Commands used to build a loadable module (assumed same as above if empty)
9777 module_cmds=$lt_module_cmds_RC
9778 module_expsym_cmds=$lt_module_expsym_cmds_RC
9780 # Commands to strip libraries.
9781 old_striplib=$lt_old_striplib
9782 striplib=$lt_striplib
9784 # Dependencies to place before the objects being linked to create a
9785 # shared library.
9786 predep_objects=$lt_predep_objects_RC
9788 # Dependencies to place after the objects being linked to create a
9789 # shared library.
9790 postdep_objects=$lt_postdep_objects_RC
9792 # Dependencies to place before the objects being linked to create a
9793 # shared library.
9794 predeps=$lt_predeps_RC
9796 # Dependencies to place after the objects being linked to create a
9797 # shared library.
9798 postdeps=$lt_postdeps_RC
9800 # The library search path used internally by the compiler when linking
9801 # a shared library.
9802 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
9804 # Method to check whether dependent libraries are shared objects.
9805 deplibs_check_method=$lt_deplibs_check_method
9807 # Command to use when deplibs_check_method == file_magic.
9808 file_magic_cmd=$lt_file_magic_cmd
9810 # Flag that allows shared libraries with undefined symbols to be built.
9811 allow_undefined_flag=$lt_allow_undefined_flag_RC
9813 # Flag that forces no undefined symbols.
9814 no_undefined_flag=$lt_no_undefined_flag_RC
9816 # Commands used to finish a libtool library installation in a directory.
9817 finish_cmds=$lt_finish_cmds
9819 # Same as above, but a single script fragment to be evaled but not shown.
9820 finish_eval=$lt_finish_eval
9822 # Take the output of nm and produce a listing of raw symbols and C names.
9823 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9825 # Transform the output of nm in a proper C declaration
9826 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9828 # Transform the output of nm in a C name address pair
9829 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9831 # This is the shared library runtime path variable.
9832 runpath_var=$runpath_var
9834 # This is the shared library path variable.
9835 shlibpath_var=$shlibpath_var
9837 # Is shlibpath searched before the hard-coded library search path?
9838 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9840 # How to hardcode a shared library path into an executable.
9841 hardcode_action=$hardcode_action_RC
9843 # Whether we should hardcode library paths into libraries.
9844 hardcode_into_libs=$hardcode_into_libs
9846 # Flag to hardcode \$libdir into a binary during linking.
9847 # This must work even if \$libdir does not exist.
9848 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
9850 # If ld is used when linking, flag to hardcode \$libdir into
9851 # a binary during linking. This must work even if \$libdir does
9852 # not exist.
9853 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
9855 # Whether we need a single -rpath flag with a separated argument.
9856 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
9858 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9859 # resulting binary.
9860 hardcode_direct=$hardcode_direct_RC
9862 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9863 # resulting binary.
9864 hardcode_minus_L=$hardcode_minus_L_RC
9866 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9867 # the resulting binary.
9868 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
9870 # Set to yes if building a shared library automatically hardcodes DIR into the library
9871 # and all subsequent libraries and executables linked against it.
9872 hardcode_automatic=$hardcode_automatic_RC
9874 # Variables whose values should be saved in libtool wrapper scripts and
9875 # restored at relink time.
9876 variables_saved_for_relink="$variables_saved_for_relink"
9878 # Whether libtool must link a program against all its dependency libraries.
9879 link_all_deplibs=$link_all_deplibs_RC
9881 # Compile-time system search path for libraries
9882 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9884 # Run-time system search path for libraries
9885 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9887 # Fix the shell variable \$srcfile for the compiler.
9888 fix_srcfile_path="$fix_srcfile_path_RC"
9890 # Set to yes if exported symbols are required.
9891 always_export_symbols=$always_export_symbols_RC
9893 # The commands to list exported symbols.
9894 export_symbols_cmds=$lt_export_symbols_cmds_RC
9896 # The commands to extract the exported symbol list from a shared archive.
9897 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9899 # Symbols that should not be listed in the preloaded symbols.
9900 exclude_expsyms=$lt_exclude_expsyms_RC
9902 # Symbols that must always be exported.
9903 include_expsyms=$lt_include_expsyms_RC
9905 # ### END LIBTOOL TAG CONFIG: $tagname
9907 __EOF__
9910 else
9911 # If there is no Makefile yet, we rely on a make rule to execute
9912 # `config.status --recheck' to rerun these tests and create the
9913 # libtool script then.
9914 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9915 if test -f "$ltmain_in"; then
9916 test -f Makefile && make "$ltmain"
9921 ac_ext=c
9922 ac_cpp='$CPP $CPPFLAGS'
9923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9927 CC="$lt_save_CC"
9932 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
9934 esac
9936 # Append the new tag name to the list of available tags.
9937 if test -n "$tagname" ; then
9938 available_tags="$available_tags $tagname"
9941 done
9942 IFS="$lt_save_ifs"
9944 # Now substitute the updated list of available tags.
9945 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
9946 mv "${ofile}T" "$ofile"
9947 chmod +x "$ofile"
9948 else
9949 rm -f "${ofile}T"
9950 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
9956 # This can be used to rebuild libtool when needed
9957 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
9959 # Always use our own libtool.
9960 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9962 # Prevent multiple expansion
9974 ac_header_dirent=no
9975 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9976 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9978 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
9980 $as_echo_n "(cached) " >&6
9981 else
9982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9983 /* end confdefs.h. */
9984 #include <sys/types.h>
9985 #include <$ac_hdr>
9988 main ()
9990 if ((DIR *) 0)
9991 return 0;
9993 return 0;
9995 _ACEOF
9996 if ac_fn_c_try_compile "$LINENO"; then :
9997 eval "$as_ac_Header=yes"
9998 else
9999 eval "$as_ac_Header=no"
10001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10003 eval ac_res=\$$as_ac_Header
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10005 $as_echo "$ac_res" >&6; }
10006 eval as_val=\$$as_ac_Header
10007 if test "x$as_val" = x""yes; then :
10008 cat >>confdefs.h <<_ACEOF
10009 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10010 _ACEOF
10012 ac_header_dirent=$ac_hdr; break
10015 done
10016 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10017 if test $ac_header_dirent = dirent.h; then
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10019 $as_echo_n "checking for library containing opendir... " >&6; }
10020 if test "${ac_cv_search_opendir+set}" = set; then :
10021 $as_echo_n "(cached) " >&6
10022 else
10023 ac_func_search_save_LIBS=$LIBS
10024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10025 /* end confdefs.h. */
10027 /* Override any GCC internal prototype to avoid an error.
10028 Use char because int might match the return type of a GCC
10029 builtin and then its argument prototype would still apply. */
10030 #ifdef __cplusplus
10031 extern "C"
10032 #endif
10033 char opendir ();
10035 main ()
10037 return opendir ();
10039 return 0;
10041 _ACEOF
10042 for ac_lib in '' dir; do
10043 if test -z "$ac_lib"; then
10044 ac_res="none required"
10045 else
10046 ac_res=-l$ac_lib
10047 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10049 if ac_fn_c_try_link "$LINENO"; then :
10050 ac_cv_search_opendir=$ac_res
10052 rm -f core conftest.err conftest.$ac_objext \
10053 conftest$ac_exeext
10054 if test "${ac_cv_search_opendir+set}" = set; then :
10055 break
10057 done
10058 if test "${ac_cv_search_opendir+set}" = set; then :
10060 else
10061 ac_cv_search_opendir=no
10063 rm conftest.$ac_ext
10064 LIBS=$ac_func_search_save_LIBS
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10067 $as_echo "$ac_cv_search_opendir" >&6; }
10068 ac_res=$ac_cv_search_opendir
10069 if test "$ac_res" != no; then :
10070 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10074 else
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10076 $as_echo_n "checking for library containing opendir... " >&6; }
10077 if test "${ac_cv_search_opendir+set}" = set; then :
10078 $as_echo_n "(cached) " >&6
10079 else
10080 ac_func_search_save_LIBS=$LIBS
10081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082 /* end confdefs.h. */
10084 /* Override any GCC internal prototype to avoid an error.
10085 Use char because int might match the return type of a GCC
10086 builtin and then its argument prototype would still apply. */
10087 #ifdef __cplusplus
10088 extern "C"
10089 #endif
10090 char opendir ();
10092 main ()
10094 return opendir ();
10096 return 0;
10098 _ACEOF
10099 for ac_lib in '' x; do
10100 if test -z "$ac_lib"; then
10101 ac_res="none required"
10102 else
10103 ac_res=-l$ac_lib
10104 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10106 if ac_fn_c_try_link "$LINENO"; then :
10107 ac_cv_search_opendir=$ac_res
10109 rm -f core conftest.err conftest.$ac_objext \
10110 conftest$ac_exeext
10111 if test "${ac_cv_search_opendir+set}" = set; then :
10112 break
10114 done
10115 if test "${ac_cv_search_opendir+set}" = set; then :
10117 else
10118 ac_cv_search_opendir=no
10120 rm conftest.$ac_ext
10121 LIBS=$ac_func_search_save_LIBS
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10124 $as_echo "$ac_cv_search_opendir" >&6; }
10125 ac_res=$ac_cv_search_opendir
10126 if test "$ac_res" != no; then :
10127 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10133 # Check whether --enable-ltdl-install was given.
10134 if test "${enable_ltdl_install+set}" = set; then :
10135 enableval=$enable_ltdl_install;
10139 if test x"${enable_ltdl_install-no}" != xno; then
10140 INSTALL_LTDL_TRUE=
10141 INSTALL_LTDL_FALSE='#'
10142 else
10143 INSTALL_LTDL_TRUE='#'
10144 INSTALL_LTDL_FALSE=
10147 if test x"${enable_ltdl_convenience-no}" != xno; then
10148 CONVENIENCE_LTDL_TRUE=
10149 CONVENIENCE_LTDL_FALSE='#'
10150 else
10151 CONVENIENCE_LTDL_TRUE='#'
10152 CONVENIENCE_LTDL_FALSE=
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for loadable modules" >&5
10158 $as_echo_n "checking which extension is used for loadable modules... " >&6; }
10159 if test "${libltdl_cv_shlibext+set}" = set; then :
10160 $as_echo_n "(cached) " >&6
10161 else
10163 ## GCJ LOCAL: gcj specific stuff. Please keep it.
10164 # Here in libltdl for libgcj we don't build modules for darwin.
10165 # So we say no. Then the extension gets .dylib which is the right
10166 # thing for shared libraries on darwin. Please keep me next time you
10167 # import libltdl.
10168 case "$host_os" in
10169 darwin*)
10170 module=no
10173 module=yes
10175 esac
10176 eval libltdl_cv_shlibext=$shrext_cmds
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
10180 $as_echo "$libltdl_cv_shlibext" >&6; }
10181 if test -n "$libltdl_cv_shlibext"; then
10183 cat >>confdefs.h <<_ACEOF
10184 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10185 _ACEOF
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
10191 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
10192 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
10193 $as_echo_n "(cached) " >&6
10194 else
10195 libltdl_cv_shlibpath_var="$shlibpath_var"
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
10198 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
10199 if test -n "$libltdl_cv_shlibpath_var"; then
10201 cat >>confdefs.h <<_ACEOF
10202 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10203 _ACEOF
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
10209 $as_echo_n "checking for the default library search path... " >&6; }
10210 if test "${libltdl_cv_sys_search_path+set}" = set; then :
10211 $as_echo_n "(cached) " >&6
10212 else
10213 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_search_path" >&5
10216 $as_echo "$libltdl_cv_sys_search_path" >&6; }
10217 if test -n "$libltdl_cv_sys_search_path"; then
10218 sys_search_path=
10219 for dir in $libltdl_cv_sys_search_path; do
10220 if test -z "$sys_search_path"; then
10221 sys_search_path="$dir"
10222 else
10223 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10225 done
10227 cat >>confdefs.h <<_ACEOF
10228 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10229 _ACEOF
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10234 $as_echo_n "checking for objdir... " >&6; }
10235 if test "${libltdl_cv_objdir+set}" = set; then :
10236 $as_echo_n "(cached) " >&6
10237 else
10238 libltdl_cv_objdir="$objdir"
10239 if test -n "$objdir"; then
10241 else
10242 rm -f .libs 2>/dev/null
10243 mkdir .libs 2>/dev/null
10244 if test -d .libs; then
10245 libltdl_cv_objdir=.libs
10246 else
10247 # MS-DOS does not allow filenames that begin with a dot.
10248 libltdl_cv_objdir=_libs
10250 rmdir .libs 2>/dev/null
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_objdir" >&5
10255 $as_echo "$libltdl_cv_objdir" >&6; }
10257 cat >>confdefs.h <<_ACEOF
10258 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10259 _ACEOF
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
10264 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
10265 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
10266 $as_echo_n "(cached) " >&6
10267 else
10268 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10269 libltdl_cv_preloaded_symbols=yes
10270 else
10271 libltdl_cv_preloaded_symbols=no
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
10276 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
10277 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10279 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
10283 LIBADD_DL=
10285 ac_ext=c
10286 ac_cpp='$CPP $CPPFLAGS'
10287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10292 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10293 if test "x$ac_cv_func_shl_load" = x""yes; then :
10295 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
10297 else
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10299 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10300 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10301 $as_echo_n "(cached) " >&6
10302 else
10303 ac_check_lib_save_LIBS=$LIBS
10304 LIBS="-ldld $LIBS"
10305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10306 /* end confdefs.h. */
10308 /* Override any GCC internal prototype to avoid an error.
10309 Use char because int might match the return type of a GCC
10310 builtin and then its argument prototype would still apply. */
10311 #ifdef __cplusplus
10312 extern "C"
10313 #endif
10314 char shl_load ();
10316 main ()
10318 return shl_load ();
10320 return 0;
10322 _ACEOF
10323 if ac_fn_c_try_link "$LINENO"; then :
10324 ac_cv_lib_dld_shl_load=yes
10325 else
10326 ac_cv_lib_dld_shl_load=no
10328 rm -f core conftest.err conftest.$ac_objext \
10329 conftest$ac_exeext conftest.$ac_ext
10330 LIBS=$ac_check_lib_save_LIBS
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10333 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10334 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10336 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
10338 LIBADD_DL="$LIBADD_DL -ldld"
10339 else
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10341 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10342 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10343 $as_echo_n "(cached) " >&6
10344 else
10345 ac_check_lib_save_LIBS=$LIBS
10346 LIBS="-ldl $LIBS"
10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h. */
10350 /* Override any GCC internal prototype to avoid an error.
10351 Use char because int might match the return type of a GCC
10352 builtin and then its argument prototype would still apply. */
10353 #ifdef __cplusplus
10354 extern "C"
10355 #endif
10356 char dlopen ();
10358 main ()
10360 return dlopen ();
10362 return 0;
10364 _ACEOF
10365 if ac_fn_c_try_link "$LINENO"; then :
10366 ac_cv_lib_dl_dlopen=yes
10367 else
10368 ac_cv_lib_dl_dlopen=no
10370 rm -f core conftest.err conftest.$ac_objext \
10371 conftest$ac_exeext conftest.$ac_ext
10372 LIBS=$ac_check_lib_save_LIBS
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10375 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10376 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10378 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
10380 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10381 else
10382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h. */
10384 #if HAVE_DLFCN_H
10385 # include <dlfcn.h>
10386 #endif
10389 main ()
10391 dlopen(0, 0);
10393 return 0;
10395 _ACEOF
10396 if ac_fn_c_try_link "$LINENO"; then :
10398 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
10399 libltdl_cv_func_dlopen="yes"
10400 else
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10402 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10403 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10404 $as_echo_n "(cached) " >&6
10405 else
10406 ac_check_lib_save_LIBS=$LIBS
10407 LIBS="-lsvld $LIBS"
10408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h. */
10411 /* Override any GCC internal prototype to avoid an error.
10412 Use char because int might match the return type of a GCC
10413 builtin and then its argument prototype would still apply. */
10414 #ifdef __cplusplus
10415 extern "C"
10416 #endif
10417 char dlopen ();
10419 main ()
10421 return dlopen ();
10423 return 0;
10425 _ACEOF
10426 if ac_fn_c_try_link "$LINENO"; then :
10427 ac_cv_lib_svld_dlopen=yes
10428 else
10429 ac_cv_lib_svld_dlopen=no
10431 rm -f core conftest.err conftest.$ac_objext \
10432 conftest$ac_exeext conftest.$ac_ext
10433 LIBS=$ac_check_lib_save_LIBS
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10436 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10437 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10439 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
10441 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10442 else
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10444 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10445 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10446 $as_echo_n "(cached) " >&6
10447 else
10448 ac_check_lib_save_LIBS=$LIBS
10449 LIBS="-ldld $LIBS"
10450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451 /* end confdefs.h. */
10453 /* Override any GCC internal prototype to avoid an error.
10454 Use char because int might match the return type of a GCC
10455 builtin and then its argument prototype would still apply. */
10456 #ifdef __cplusplus
10457 extern "C"
10458 #endif
10459 char dld_link ();
10461 main ()
10463 return dld_link ();
10465 return 0;
10467 _ACEOF
10468 if ac_fn_c_try_link "$LINENO"; then :
10469 ac_cv_lib_dld_dld_link=yes
10470 else
10471 ac_cv_lib_dld_dld_link=no
10473 rm -f core conftest.err conftest.$ac_objext \
10474 conftest$ac_exeext conftest.$ac_ext
10475 LIBS=$ac_check_lib_save_LIBS
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10478 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10479 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10481 $as_echo "#define HAVE_DLD 1" >>confdefs.h
10483 LIBADD_DL="$LIBADD_DL -ldld"
10484 else
10485 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
10486 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
10488 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
10500 rm -f core conftest.err conftest.$ac_objext \
10501 conftest$ac_exeext conftest.$ac_ext
10512 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10513 then
10514 lt_save_LIBS="$LIBS"
10515 LIBS="$LIBS $LIBADD_DL"
10516 for ac_func in dlerror
10517 do :
10518 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
10519 if test "x$ac_cv_func_dlerror" = x""yes; then :
10520 cat >>confdefs.h <<_ACEOF
10521 #define HAVE_DLERROR 1
10522 _ACEOF
10525 done
10527 LIBS="$lt_save_LIBS"
10529 ac_ext=c
10530 ac_cpp='$CPP $CPPFLAGS'
10531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
10538 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
10539 if test "${ac_cv_sys_symbol_underscore+set}" = set; then :
10540 $as_echo_n "(cached) " >&6
10541 else
10542 ac_cv_sys_symbol_underscore=no
10543 cat > conftest.$ac_ext <<EOF
10544 void nm_test_func(){}
10545 int main(){nm_test_func;return 0;}
10547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10548 (eval $ac_compile) 2>&5
10549 ac_status=$?
10550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10551 test $ac_status = 0; }; then
10552 # Now try to grab the symbols.
10553 ac_nlist=conftest.nm
10554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
10555 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10556 ac_status=$?
10557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10558 test $ac_status = 0; } && test -s "$ac_nlist"; then
10559 # See whether the symbols have a leading underscore.
10560 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10561 ac_cv_sys_symbol_underscore=yes
10562 else
10563 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10565 else
10566 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10569 else
10570 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10572 else
10573 echo "configure: failed program was:" >&5
10574 cat conftest.c >&5
10576 rm -rf conftest*
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_symbol_underscore" >&5
10580 $as_echo "$ac_cv_sys_symbol_underscore" >&6; }
10583 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10584 if test x"$libltdl_cv_func_dlopen" = xyes ||
10585 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
10587 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
10588 if test "${libltdl_cv_need_uscore+set}" = set; then :
10589 $as_echo_n "(cached) " >&6
10590 else
10591 libltdl_cv_need_uscore=unknown
10592 save_LIBS="$LIBS"
10593 LIBS="$LIBS $LIBADD_DL"
10594 if test "$cross_compiling" = yes; then :
10595 libltdl_cv_need_uscore=cross
10596 else
10597 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10598 lt_status=$lt_dlunknown
10599 cat > conftest.$ac_ext <<EOF
10600 #line 10600 "configure"
10601 #include "confdefs.h"
10603 #if HAVE_DLFCN_H
10604 #include <dlfcn.h>
10605 #endif
10607 #include <stdio.h>
10609 #ifdef RTLD_GLOBAL
10610 # define LT_DLGLOBAL RTLD_GLOBAL
10611 #else
10612 # ifdef DL_GLOBAL
10613 # define LT_DLGLOBAL DL_GLOBAL
10614 # else
10615 # define LT_DLGLOBAL 0
10616 # endif
10617 #endif
10619 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10620 find out it does not work in some platform. */
10621 #ifndef LT_DLLAZY_OR_NOW
10622 # ifdef RTLD_LAZY
10623 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10624 # else
10625 # ifdef DL_LAZY
10626 # define LT_DLLAZY_OR_NOW DL_LAZY
10627 # else
10628 # ifdef RTLD_NOW
10629 # define LT_DLLAZY_OR_NOW RTLD_NOW
10630 # else
10631 # ifdef DL_NOW
10632 # define LT_DLLAZY_OR_NOW DL_NOW
10633 # else
10634 # define LT_DLLAZY_OR_NOW 0
10635 # endif
10636 # endif
10637 # endif
10638 # endif
10639 #endif
10641 #ifdef __cplusplus
10642 extern "C" void exit (int);
10643 #endif
10645 void fnord() { int i=42;}
10646 int main ()
10648 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10649 int status = $lt_dlunknown;
10651 if (self)
10653 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10654 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10655 /* dlclose (self); */
10658 exit (status);
10661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10662 (eval $ac_link) 2>&5
10663 ac_status=$?
10664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10665 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10666 (./conftest; exit; ) 2>/dev/null
10667 lt_status=$?
10668 case x$lt_status in
10669 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10670 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10671 x$lt_unknown|x*) ;;
10672 esac
10673 else :
10674 # compilation failed
10678 rm -fr conftest*
10680 LIBS="$save_LIBS"
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
10684 $as_echo "$libltdl_cv_need_uscore" >&6; }
10688 if test x"$libltdl_cv_need_uscore" = xyes; then
10690 $as_echo "#define NEED_USCORE 1" >>confdefs.h
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
10696 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
10697 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then :
10698 $as_echo_n "(cached) " >&6
10699 else
10700 # PORTME does your system automatically load deplibs for dlopen?
10701 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10702 # For now, we just catch OSes we know something about -- in the
10703 # future, we'll try test this programmatically.
10704 libltdl_cv_sys_dlopen_deplibs=unknown
10705 case "$host_os" in
10706 aix3*|aix4.1.*|aix4.2.*)
10707 # Unknown whether this is true for these versions of AIX, but
10708 # we want this `case' here to explicitly catch those versions.
10709 libltdl_cv_sys_dlopen_deplibs=unknown
10711 aix[45]*)
10712 libltdl_cv_sys_dlopen_deplibs=yes
10714 darwin*)
10715 # Assuming the user has installed a libdl from somewhere, this is true
10716 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10717 libltdl_cv_sys_dlopen_deplibs=yes
10719 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10720 # GNU and its variants, using gnu ld.so (Glibc)
10721 libltdl_cv_sys_dlopen_deplibs=yes
10723 hpux10*|hpux11*)
10724 libltdl_cv_sys_dlopen_deplibs=yes
10726 irix[12345]*|irix6.[01]*)
10727 # Catch all versions of IRIX before 6.2, and indicate that we don't
10728 # know how it worked for any of those versions.
10729 libltdl_cv_sys_dlopen_deplibs=unknown
10731 irix*)
10732 # The case above catches anything before 6.2, and it's known that
10733 # at 6.2 and later dlopen does load deplibs.
10734 libltdl_cv_sys_dlopen_deplibs=yes
10736 netbsd*)
10737 libltdl_cv_sys_dlopen_deplibs=yes
10739 openbsd*)
10740 libltdl_cv_sys_dlopen_deplibs=yes
10742 osf[1234]*)
10743 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10744 # it did *not* use an RPATH in a shared library to find objects the
10745 # library depends on, so we explictly say `no'.
10746 libltdl_cv_sys_dlopen_deplibs=no
10748 osf5.0|osf5.0a|osf5.1)
10749 # dlopen *does* load deplibs and with the right loader patch applied
10750 # it even uses RPATH in a shared library to search for shared objects
10751 # that the library depends on, but there's no easy way to know if that
10752 # patch is installed. Since this is the case, all we can really
10753 # say is unknown -- it depends on the patch being installed. If
10754 # it is, this changes to `yes'. Without it, it would be `no'.
10755 libltdl_cv_sys_dlopen_deplibs=unknown
10757 osf*)
10758 # the two cases above should catch all versions of osf <= 5.1. Read
10759 # the comments above for what we know about them.
10760 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10761 # is used to find them so we can finally say `yes'.
10762 libltdl_cv_sys_dlopen_deplibs=yes
10764 solaris*)
10765 libltdl_cv_sys_dlopen_deplibs=yes
10767 esac
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10771 $as_echo "$libltdl_cv_sys_dlopen_deplibs" >&6; }
10772 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10774 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
10778 for ac_header in argz.h
10779 do :
10780 ac_fn_c_check_header_mongrel "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default"
10781 if test "x$ac_cv_header_argz_h" = x""yes; then :
10782 cat >>confdefs.h <<_ACEOF
10783 #define HAVE_ARGZ_H 1
10784 _ACEOF
10788 done
10791 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if HAVE_ARGZ_H
10792 # include <argz.h>
10793 #endif
10795 if test "x$ac_cv_type_error_t" = x""yes; then :
10797 cat >>confdefs.h <<_ACEOF
10798 #define HAVE_ERROR_T 1
10799 _ACEOF
10802 else
10804 $as_echo "#define error_t int" >>confdefs.h
10809 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10810 do :
10811 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10812 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10813 eval as_val=\$$as_ac_var
10814 if test "x$as_val" = x""yes; then :
10815 cat >>confdefs.h <<_ACEOF
10816 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10817 _ACEOF
10820 done
10841 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10842 stdio.h unistd.h
10843 do :
10844 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10845 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10846 eval as_val=\$$as_ac_Header
10847 if test "x$as_val" = x""yes; then :
10848 cat >>confdefs.h <<_ACEOF
10849 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10850 _ACEOF
10854 done
10856 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10857 do :
10858 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10859 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10860 eval as_val=\$$as_ac_Header
10861 if test "x$as_val" = x""yes; then :
10862 cat >>confdefs.h <<_ACEOF
10863 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10864 _ACEOF
10868 done
10870 for ac_header in string.h strings.h
10871 do :
10872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10873 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10874 eval as_val=\$$as_ac_Header
10875 if test "x$as_val" = x""yes; then :
10876 cat >>confdefs.h <<_ACEOF
10877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10878 _ACEOF
10879 break
10882 done
10885 for ac_func in strchr index
10886 do :
10887 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10888 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10889 eval as_val=\$$as_ac_var
10890 if test "x$as_val" = x""yes; then :
10891 cat >>confdefs.h <<_ACEOF
10892 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10893 _ACEOF
10894 break
10896 done
10898 for ac_func in strrchr rindex
10899 do :
10900 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10901 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10902 eval as_val=\$$as_ac_var
10903 if test "x$as_val" = x""yes; then :
10904 cat >>confdefs.h <<_ACEOF
10905 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10906 _ACEOF
10907 break
10909 done
10911 for ac_func in memcpy bcopy
10912 do :
10913 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10914 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10915 eval as_val=\$$as_ac_var
10916 if test "x$as_val" = x""yes; then :
10917 cat >>confdefs.h <<_ACEOF
10918 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10919 _ACEOF
10920 break
10922 done
10924 for ac_func in memmove strcmp
10925 do :
10926 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10927 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10928 eval as_val=\$$as_ac_var
10929 if test "x$as_val" = x""yes; then :
10930 cat >>confdefs.h <<_ACEOF
10931 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10932 _ACEOF
10935 done
10937 for ac_func in closedir opendir readdir
10938 do :
10939 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10940 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10941 eval as_val=\$$as_ac_var
10942 if test "x$as_val" = x""yes; then :
10943 cat >>confdefs.h <<_ACEOF
10944 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10945 _ACEOF
10948 done
10953 ## -------- ##
10954 ## Outputs. ##
10955 ## -------- ##
10956 ac_config_files="$ac_config_files Makefile"
10958 cat >confcache <<\_ACEOF
10959 # This file is a shell script that caches the results of configure
10960 # tests run on this system so they can be shared between configure
10961 # scripts and configure runs, see configure's option --config-cache.
10962 # It is not useful on other systems. If it contains results you don't
10963 # want to keep, you may remove or edit it.
10965 # config.status only pays attention to the cache file if you give it
10966 # the --recheck option to rerun configure.
10968 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10969 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10970 # following values.
10972 _ACEOF
10974 # The following way of writing the cache mishandles newlines in values,
10975 # but we know of no workaround that is simple, portable, and efficient.
10976 # So, we kill variables containing newlines.
10977 # Ultrix sh set writes to stderr and can't be redirected directly,
10978 # and sets the high bit in the cache file unless we assign to the vars.
10980 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10981 eval ac_val=\$$ac_var
10982 case $ac_val in #(
10983 *${as_nl}*)
10984 case $ac_var in #(
10985 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10986 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10987 esac
10988 case $ac_var in #(
10989 _ | IFS | as_nl) ;; #(
10990 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10991 *) { eval $ac_var=; unset $ac_var;} ;;
10992 esac ;;
10993 esac
10994 done
10996 (set) 2>&1 |
10997 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10998 *${as_nl}ac_space=\ *)
10999 # `set' does not quote correctly, so add quotes: double-quote
11000 # substitution turns \\\\ into \\, and sed turns \\ into \.
11001 sed -n \
11002 "s/'/'\\\\''/g;
11003 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11004 ;; #(
11006 # `set' quotes correctly as required by POSIX, so do not add quotes.
11007 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11009 esac |
11010 sort
11012 sed '
11013 /^ac_cv_env_/b end
11014 t clear
11015 :clear
11016 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11017 t end
11018 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11019 :end' >>confcache
11020 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11021 if test -w "$cache_file"; then
11022 test "x$cache_file" != "x/dev/null" &&
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11024 $as_echo "$as_me: updating cache $cache_file" >&6;}
11025 cat confcache >$cache_file
11026 else
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11028 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11031 rm -f confcache
11033 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11034 # Let make expand exec_prefix.
11035 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11037 DEFS=-DHAVE_CONFIG_H
11039 ac_libobjs=
11040 ac_ltlibobjs=
11041 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11042 # 1. Remove the extension, and $U if already installed.
11043 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11044 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11045 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11046 # will be set to the directory where LIBOBJS objects are built.
11047 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11048 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11049 done
11050 LIBOBJS=$ac_libobjs
11052 LTLIBOBJS=$ac_ltlibobjs
11055 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11056 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11059 if test -n "$EXEEXT"; then
11060 am__EXEEXT_TRUE=
11061 am__EXEEXT_FALSE='#'
11062 else
11063 am__EXEEXT_TRUE='#'
11064 am__EXEEXT_FALSE=
11067 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11068 as_fn_error "conditional \"AMDEP\" was never defined.
11069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11071 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11072 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11075 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
11076 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
11077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11079 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
11080 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
11081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11084 : ${CONFIG_STATUS=./config.status}
11085 ac_write_fail=0
11086 ac_clean_files_save=$ac_clean_files
11087 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11089 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11090 as_write_fail=0
11091 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11092 #! $SHELL
11093 # Generated by $as_me.
11094 # Run this file to recreate the current configuration.
11095 # Compiler output produced by configure, useful for debugging
11096 # configure, is in config.log if it exists.
11098 debug=false
11099 ac_cs_recheck=false
11100 ac_cs_silent=false
11102 SHELL=\${CONFIG_SHELL-$SHELL}
11103 export SHELL
11104 _ASEOF
11105 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11106 ## -------------------- ##
11107 ## M4sh Initialization. ##
11108 ## -------------------- ##
11110 # Be more Bourne compatible
11111 DUALCASE=1; export DUALCASE # for MKS sh
11112 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11113 emulate sh
11114 NULLCMD=:
11115 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11116 # is contrary to our usage. Disable this feature.
11117 alias -g '${1+"$@"}'='"$@"'
11118 setopt NO_GLOB_SUBST
11119 else
11120 case `(set -o) 2>/dev/null` in #(
11121 *posix*) :
11122 set -o posix ;; #(
11123 *) :
11125 esac
11129 as_nl='
11131 export as_nl
11132 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11133 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11134 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11135 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11136 # Prefer a ksh shell builtin over an external printf program on Solaris,
11137 # but without wasting forks for bash or zsh.
11138 if test -z "$BASH_VERSION$ZSH_VERSION" \
11139 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11140 as_echo='print -r --'
11141 as_echo_n='print -rn --'
11142 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11143 as_echo='printf %s\n'
11144 as_echo_n='printf %s'
11145 else
11146 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11147 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11148 as_echo_n='/usr/ucb/echo -n'
11149 else
11150 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11151 as_echo_n_body='eval
11152 arg=$1;
11153 case $arg in #(
11154 *"$as_nl"*)
11155 expr "X$arg" : "X\\(.*\\)$as_nl";
11156 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11157 esac;
11158 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11160 export as_echo_n_body
11161 as_echo_n='sh -c $as_echo_n_body as_echo'
11163 export as_echo_body
11164 as_echo='sh -c $as_echo_body as_echo'
11167 # The user is always right.
11168 if test "${PATH_SEPARATOR+set}" != set; then
11169 PATH_SEPARATOR=:
11170 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11171 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11172 PATH_SEPARATOR=';'
11177 # IFS
11178 # We need space, tab and new line, in precisely that order. Quoting is
11179 # there to prevent editors from complaining about space-tab.
11180 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11181 # splitting by setting IFS to empty value.)
11182 IFS=" "" $as_nl"
11184 # Find who we are. Look in the path if we contain no directory separator.
11185 case $0 in #((
11186 *[\\/]* ) as_myself=$0 ;;
11187 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188 for as_dir in $PATH
11190 IFS=$as_save_IFS
11191 test -z "$as_dir" && as_dir=.
11192 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11193 done
11194 IFS=$as_save_IFS
11197 esac
11198 # We did not find ourselves, most probably we were run as `sh COMMAND'
11199 # in which case we are not to be found in the path.
11200 if test "x$as_myself" = x; then
11201 as_myself=$0
11203 if test ! -f "$as_myself"; then
11204 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11205 exit 1
11208 # Unset variables that we do not need and which cause bugs (e.g. in
11209 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11210 # suppresses any "Segmentation fault" message there. '((' could
11211 # trigger a bug in pdksh 5.2.14.
11212 for as_var in BASH_ENV ENV MAIL MAILPATH
11213 do eval test x\${$as_var+set} = xset \
11214 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11215 done
11216 PS1='$ '
11217 PS2='> '
11218 PS4='+ '
11220 # NLS nuisances.
11221 LC_ALL=C
11222 export LC_ALL
11223 LANGUAGE=C
11224 export LANGUAGE
11226 # CDPATH.
11227 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11230 # as_fn_error ERROR [LINENO LOG_FD]
11231 # ---------------------------------
11232 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11233 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11234 # script with status $?, using 1 if that was 0.
11235 as_fn_error ()
11237 as_status=$?; test $as_status -eq 0 && as_status=1
11238 if test "$3"; then
11239 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11240 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11242 $as_echo "$as_me: error: $1" >&2
11243 as_fn_exit $as_status
11244 } # as_fn_error
11247 # as_fn_set_status STATUS
11248 # -----------------------
11249 # Set $? to STATUS, without forking.
11250 as_fn_set_status ()
11252 return $1
11253 } # as_fn_set_status
11255 # as_fn_exit STATUS
11256 # -----------------
11257 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11258 as_fn_exit ()
11260 set +e
11261 as_fn_set_status $1
11262 exit $1
11263 } # as_fn_exit
11265 # as_fn_unset VAR
11266 # ---------------
11267 # Portably unset VAR.
11268 as_fn_unset ()
11270 { eval $1=; unset $1;}
11272 as_unset=as_fn_unset
11273 # as_fn_append VAR VALUE
11274 # ----------------------
11275 # Append the text in VALUE to the end of the definition contained in VAR. Take
11276 # advantage of any shell optimizations that allow amortized linear growth over
11277 # repeated appends, instead of the typical quadratic growth present in naive
11278 # implementations.
11279 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11280 eval 'as_fn_append ()
11282 eval $1+=\$2
11284 else
11285 as_fn_append ()
11287 eval $1=\$$1\$2
11289 fi # as_fn_append
11291 # as_fn_arith ARG...
11292 # ------------------
11293 # Perform arithmetic evaluation on the ARGs, and store the result in the
11294 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11295 # must be portable across $(()) and expr.
11296 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11297 eval 'as_fn_arith ()
11299 as_val=$(( $* ))
11301 else
11302 as_fn_arith ()
11304 as_val=`expr "$@" || test $? -eq 1`
11306 fi # as_fn_arith
11309 if expr a : '\(a\)' >/dev/null 2>&1 &&
11310 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11311 as_expr=expr
11312 else
11313 as_expr=false
11316 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11317 as_basename=basename
11318 else
11319 as_basename=false
11322 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11323 as_dirname=dirname
11324 else
11325 as_dirname=false
11328 as_me=`$as_basename -- "$0" ||
11329 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11330 X"$0" : 'X\(//\)$' \| \
11331 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11332 $as_echo X/"$0" |
11333 sed '/^.*\/\([^/][^/]*\)\/*$/{
11334 s//\1/
11337 /^X\/\(\/\/\)$/{
11338 s//\1/
11341 /^X\/\(\/\).*/{
11342 s//\1/
11345 s/.*/./; q'`
11347 # Avoid depending upon Character Ranges.
11348 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11349 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11350 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11351 as_cr_digits='0123456789'
11352 as_cr_alnum=$as_cr_Letters$as_cr_digits
11354 ECHO_C= ECHO_N= ECHO_T=
11355 case `echo -n x` in #(((((
11356 -n*)
11357 case `echo 'xy\c'` in
11358 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11359 xy) ECHO_C='\c';;
11360 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11361 ECHO_T=' ';;
11362 esac;;
11364 ECHO_N='-n';;
11365 esac
11367 rm -f conf$$ conf$$.exe conf$$.file
11368 if test -d conf$$.dir; then
11369 rm -f conf$$.dir/conf$$.file
11370 else
11371 rm -f conf$$.dir
11372 mkdir conf$$.dir 2>/dev/null
11374 if (echo >conf$$.file) 2>/dev/null; then
11375 if ln -s conf$$.file conf$$ 2>/dev/null; then
11376 as_ln_s='ln -s'
11377 # ... but there are two gotchas:
11378 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11379 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11380 # In both cases, we have to default to `cp -p'.
11381 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11382 as_ln_s='cp -p'
11383 elif ln conf$$.file conf$$ 2>/dev/null; then
11384 as_ln_s=ln
11385 else
11386 as_ln_s='cp -p'
11388 else
11389 as_ln_s='cp -p'
11391 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11392 rmdir conf$$.dir 2>/dev/null
11395 # as_fn_mkdir_p
11396 # -------------
11397 # Create "$as_dir" as a directory, including parents if necessary.
11398 as_fn_mkdir_p ()
11401 case $as_dir in #(
11402 -*) as_dir=./$as_dir;;
11403 esac
11404 test -d "$as_dir" || eval $as_mkdir_p || {
11405 as_dirs=
11406 while :; do
11407 case $as_dir in #(
11408 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11409 *) as_qdir=$as_dir;;
11410 esac
11411 as_dirs="'$as_qdir' $as_dirs"
11412 as_dir=`$as_dirname -- "$as_dir" ||
11413 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11414 X"$as_dir" : 'X\(//\)[^/]' \| \
11415 X"$as_dir" : 'X\(//\)$' \| \
11416 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11417 $as_echo X"$as_dir" |
11418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11419 s//\1/
11422 /^X\(\/\/\)[^/].*/{
11423 s//\1/
11426 /^X\(\/\/\)$/{
11427 s//\1/
11430 /^X\(\/\).*/{
11431 s//\1/
11434 s/.*/./; q'`
11435 test -d "$as_dir" && break
11436 done
11437 test -z "$as_dirs" || eval "mkdir $as_dirs"
11438 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11441 } # as_fn_mkdir_p
11442 if mkdir -p . 2>/dev/null; then
11443 as_mkdir_p='mkdir -p "$as_dir"'
11444 else
11445 test -d ./-p && rmdir ./-p
11446 as_mkdir_p=false
11449 if test -x / >/dev/null 2>&1; then
11450 as_test_x='test -x'
11451 else
11452 if ls -dL / >/dev/null 2>&1; then
11453 as_ls_L_option=L
11454 else
11455 as_ls_L_option=
11457 as_test_x='
11458 eval sh -c '\''
11459 if test -d "$1"; then
11460 test -d "$1/.";
11461 else
11462 case $1 in #(
11463 -*)set "./$1";;
11464 esac;
11465 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11466 ???[sx]*):;;*)false;;esac;fi
11467 '\'' sh
11470 as_executable_p=$as_test_x
11472 # Sed expression to map a string onto a valid CPP name.
11473 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11475 # Sed expression to map a string onto a valid variable name.
11476 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11479 exec 6>&1
11480 ## ----------------------------------- ##
11481 ## Main body of $CONFIG_STATUS script. ##
11482 ## ----------------------------------- ##
11483 _ASEOF
11484 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11487 # Save the log message, to keep $0 and so on meaningful, and to
11488 # report actual input values of CONFIG_FILES etc. instead of their
11489 # values after options handling.
11490 ac_log="
11491 This file was extended by libltdl $as_me 1.2, which was
11492 generated by GNU Autoconf 2.64. Invocation command line was
11494 CONFIG_FILES = $CONFIG_FILES
11495 CONFIG_HEADERS = $CONFIG_HEADERS
11496 CONFIG_LINKS = $CONFIG_LINKS
11497 CONFIG_COMMANDS = $CONFIG_COMMANDS
11498 $ $0 $@
11500 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11503 _ACEOF
11505 case $ac_config_files in *"
11506 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11507 esac
11509 case $ac_config_headers in *"
11510 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11511 esac
11514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11515 # Files that config.status was made for.
11516 config_files="$ac_config_files"
11517 config_headers="$ac_config_headers"
11518 config_commands="$ac_config_commands"
11520 _ACEOF
11522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11523 ac_cs_usage="\
11524 \`$as_me' instantiates files and other configuration actions
11525 from templates according to the current configuration. Unless the files
11526 and actions are specified as TAGs, all are instantiated by default.
11528 Usage: $0 [OPTION]... [TAG]...
11530 -h, --help print this help, then exit
11531 -V, --version print version number and configuration settings, then exit
11532 -q, --quiet, --silent
11533 do not print progress messages
11534 -d, --debug don't remove temporary files
11535 --recheck update $as_me by reconfiguring in the same conditions
11536 --file=FILE[:TEMPLATE]
11537 instantiate the configuration file FILE
11538 --header=FILE[:TEMPLATE]
11539 instantiate the configuration header FILE
11541 Configuration files:
11542 $config_files
11544 Configuration headers:
11545 $config_headers
11547 Configuration commands:
11548 $config_commands
11550 Report bugs to <bug-libtool@gnu.org>."
11552 _ACEOF
11553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11554 ac_cs_version="\\
11555 libltdl config.status 1.2
11556 configured by $0, generated by GNU Autoconf 2.64,
11557 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11559 Copyright (C) 2009 Free Software Foundation, Inc.
11560 This config.status script is free software; the Free Software Foundation
11561 gives unlimited permission to copy, distribute and modify it."
11563 ac_pwd='$ac_pwd'
11564 srcdir='$srcdir'
11565 INSTALL='$INSTALL'
11566 MKDIR_P='$MKDIR_P'
11567 AWK='$AWK'
11568 test -n "\$AWK" || AWK=awk
11569 _ACEOF
11571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11572 # The default lists apply if the user does not specify any file.
11573 ac_need_defaults=:
11574 while test $# != 0
11576 case $1 in
11577 --*=*)
11578 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11579 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11580 ac_shift=:
11583 ac_option=$1
11584 ac_optarg=$2
11585 ac_shift=shift
11587 esac
11589 case $ac_option in
11590 # Handling of the options.
11591 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11592 ac_cs_recheck=: ;;
11593 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11594 $as_echo "$ac_cs_version"; exit ;;
11595 --debug | --debu | --deb | --de | --d | -d )
11596 debug=: ;;
11597 --file | --fil | --fi | --f )
11598 $ac_shift
11599 case $ac_optarg in
11600 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11601 esac
11602 as_fn_append CONFIG_FILES " '$ac_optarg'"
11603 ac_need_defaults=false;;
11604 --header | --heade | --head | --hea )
11605 $ac_shift
11606 case $ac_optarg in
11607 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11608 esac
11609 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11610 ac_need_defaults=false;;
11611 --he | --h)
11612 # Conflict between --help and --header
11613 as_fn_error "ambiguous option: \`$1'
11614 Try \`$0 --help' for more information.";;
11615 --help | --hel | -h )
11616 $as_echo "$ac_cs_usage"; exit ;;
11617 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11618 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11619 ac_cs_silent=: ;;
11621 # This is an error.
11622 -*) as_fn_error "unrecognized option: \`$1'
11623 Try \`$0 --help' for more information." ;;
11625 *) as_fn_append ac_config_targets " $1"
11626 ac_need_defaults=false ;;
11628 esac
11629 shift
11630 done
11632 ac_configure_extra_args=
11634 if $ac_cs_silent; then
11635 exec 6>/dev/null
11636 ac_configure_extra_args="$ac_configure_extra_args --silent"
11639 _ACEOF
11640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11641 if \$ac_cs_recheck; then
11642 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11643 shift
11644 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11645 CONFIG_SHELL='$SHELL'
11646 export CONFIG_SHELL
11647 exec "\$@"
11650 _ACEOF
11651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11652 exec 5>>config.log
11654 echo
11655 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11656 ## Running $as_me. ##
11657 _ASBOX
11658 $as_echo "$ac_log"
11659 } >&5
11661 _ACEOF
11662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11664 # INIT-COMMANDS
11667 srcdir="$srcdir"
11668 host="$host"
11669 target="$target"
11670 with_multisubdir="$with_multisubdir"
11671 with_multisrctop="$with_multisrctop"
11672 with_target_subdir="$with_target_subdir"
11673 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11674 multi_basedir="$multi_basedir"
11675 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11676 CC="$CC"
11677 CXX="$CXX"
11678 GFORTRAN="$GFORTRAN"
11679 GCJ="$GCJ"
11680 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11682 _ACEOF
11684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11686 # Handling of arguments.
11687 for ac_config_target in $ac_config_targets
11689 case $ac_config_target in
11690 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11691 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
11692 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11693 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11695 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11696 esac
11697 done
11700 # If the user did not use the arguments to specify the items to instantiate,
11701 # then the envvar interface is used. Set only those that are not.
11702 # We use the long form for the default assignment because of an extremely
11703 # bizarre bug on SunOS 4.1.3.
11704 if $ac_need_defaults; then
11705 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11706 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11707 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11710 # Have a temporary directory for convenience. Make it in the build tree
11711 # simply because there is no reason against having it here, and in addition,
11712 # creating and moving files from /tmp can sometimes cause problems.
11713 # Hook for its removal unless debugging.
11714 # Note that there is a small window in which the directory will not be cleaned:
11715 # after its creation but before its name has been assigned to `$tmp'.
11716 $debug ||
11718 tmp=
11719 trap 'exit_status=$?
11720 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11722 trap 'as_fn_exit 1' 1 2 13 15
11724 # Create a (secure) tmp directory for tmp files.
11727 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11728 test -n "$tmp" && test -d "$tmp"
11729 } ||
11731 tmp=./conf$$-$RANDOM
11732 (umask 077 && mkdir "$tmp")
11733 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11735 # Set up the scripts for CONFIG_FILES section.
11736 # No need to generate them if there are no CONFIG_FILES.
11737 # This happens for instance with `./config.status config.h'.
11738 if test -n "$CONFIG_FILES"; then
11741 ac_cr=`echo X | tr X '\015'`
11742 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11743 # But we know of no other shell where ac_cr would be empty at this
11744 # point, so we can use a bashism as a fallback.
11745 if test "x$ac_cr" = x; then
11746 eval ac_cr=\$\'\\r\'
11748 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11749 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11750 ac_cs_awk_cr='\r'
11751 else
11752 ac_cs_awk_cr=$ac_cr
11755 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11756 _ACEOF
11760 echo "cat >conf$$subs.awk <<_ACEOF" &&
11761 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11762 echo "_ACEOF"
11763 } >conf$$subs.sh ||
11764 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11765 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11766 ac_delim='%!_!# '
11767 for ac_last_try in false false false false false :; do
11768 . ./conf$$subs.sh ||
11769 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11771 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11772 if test $ac_delim_n = $ac_delim_num; then
11773 break
11774 elif $ac_last_try; then
11775 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11776 else
11777 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11779 done
11780 rm -f conf$$subs.sh
11782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11783 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11784 _ACEOF
11785 sed -n '
11787 s/^/S["/; s/!.*/"]=/
11790 s/^[^!]*!//
11791 :repl
11792 t repl
11793 s/'"$ac_delim"'$//
11794 t delim
11797 s/\(.\{148\}\).*/\1/
11798 t more1
11799 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11802 b repl
11803 :more1
11804 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11807 s/.\{148\}//
11808 t nl
11809 :delim
11811 s/\(.\{148\}\).*/\1/
11812 t more2
11813 s/["\\]/\\&/g; s/^/"/; s/$/"/
11816 :more2
11817 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11820 s/.\{148\}//
11821 t delim
11822 ' <conf$$subs.awk | sed '
11823 /^[^""]/{
11825 s/\n//
11827 ' >>$CONFIG_STATUS || ac_write_fail=1
11828 rm -f conf$$subs.awk
11829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11830 _ACAWK
11831 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11832 for (key in S) S_is_set[key] = 1
11833 FS = "\a"
11837 line = $ 0
11838 nfields = split(line, field, "@")
11839 substed = 0
11840 len = length(field[1])
11841 for (i = 2; i < nfields; i++) {
11842 key = field[i]
11843 keylen = length(key)
11844 if (S_is_set[key]) {
11845 value = S[key]
11846 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11847 len += length(value) + length(field[++i])
11848 substed = 1
11849 } else
11850 len += 1 + keylen
11853 print line
11856 _ACAWK
11857 _ACEOF
11858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11859 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11860 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11861 else
11863 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11864 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11865 _ACEOF
11867 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11868 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11869 # trailing colons and then remove the whole line if VPATH becomes empty
11870 # (actually we leave an empty line to preserve line numbers).
11871 if test "x$srcdir" = x.; then
11872 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11873 s/:*\$(srcdir):*/:/
11874 s/:*\${srcdir}:*/:/
11875 s/:*@srcdir@:*/:/
11876 s/^\([^=]*=[ ]*\):*/\1/
11877 s/:*$//
11878 s/^[^=]*=[ ]*$//
11882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11883 fi # test -n "$CONFIG_FILES"
11885 # Set up the scripts for CONFIG_HEADERS section.
11886 # No need to generate them if there are no CONFIG_HEADERS.
11887 # This happens for instance with `./config.status Makefile'.
11888 if test -n "$CONFIG_HEADERS"; then
11889 cat >"$tmp/defines.awk" <<\_ACAWK ||
11890 BEGIN {
11891 _ACEOF
11893 # Transform confdefs.h into an awk script `defines.awk', embedded as
11894 # here-document in config.status, that substitutes the proper values into
11895 # config.h.in to produce config.h.
11897 # Create a delimiter string that does not exist in confdefs.h, to ease
11898 # handling of long lines.
11899 ac_delim='%!_!# '
11900 for ac_last_try in false false :; do
11901 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11902 if test -z "$ac_t"; then
11903 break
11904 elif $ac_last_try; then
11905 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
11906 else
11907 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11909 done
11911 # For the awk script, D is an array of macro values keyed by name,
11912 # likewise P contains macro parameters if any. Preserve backslash
11913 # newline sequences.
11915 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11916 sed -n '
11917 s/.\{148\}/&'"$ac_delim"'/g
11918 t rset
11919 :rset
11920 s/^[ ]*#[ ]*define[ ][ ]*/ /
11921 t def
11923 :def
11924 s/\\$//
11925 t bsnl
11926 s/["\\]/\\&/g
11927 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11928 D["\1"]=" \3"/p
11929 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11931 :bsnl
11932 s/["\\]/\\&/g
11933 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11934 D["\1"]=" \3\\\\\\n"\\/p
11935 t cont
11936 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11937 t cont
11939 :cont
11941 s/.\{148\}/&'"$ac_delim"'/g
11942 t clear
11943 :clear
11944 s/\\$//
11945 t bsnlc
11946 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11948 :bsnlc
11949 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11950 b cont
11951 ' <confdefs.h | sed '
11952 s/'"$ac_delim"'/"\\\
11953 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11956 for (key in D) D_is_set[key] = 1
11957 FS = "\a"
11959 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11960 line = \$ 0
11961 split(line, arg, " ")
11962 if (arg[1] == "#") {
11963 defundef = arg[2]
11964 mac1 = arg[3]
11965 } else {
11966 defundef = substr(arg[1], 2)
11967 mac1 = arg[2]
11969 split(mac1, mac2, "(") #)
11970 macro = mac2[1]
11971 prefix = substr(line, 1, index(line, defundef) - 1)
11972 if (D_is_set[macro]) {
11973 # Preserve the white space surrounding the "#".
11974 print prefix "define", macro P[macro] D[macro]
11975 next
11976 } else {
11977 # Replace #undef with comments. This is necessary, for example,
11978 # in the case of _POSIX_SOURCE, which is predefined and required
11979 # on some systems where configure will not decide to define it.
11980 if (defundef == "undef") {
11981 print "/*", prefix defundef, macro, "*/"
11982 next
11986 { print }
11987 _ACAWK
11988 _ACEOF
11989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11990 as_fn_error "could not setup config headers machinery" "$LINENO" 5
11991 fi # test -n "$CONFIG_HEADERS"
11994 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11995 shift
11996 for ac_tag
11998 case $ac_tag in
11999 :[FHLC]) ac_mode=$ac_tag; continue;;
12000 esac
12001 case $ac_mode$ac_tag in
12002 :[FHL]*:*);;
12003 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12004 :[FH]-) ac_tag=-:-;;
12005 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12006 esac
12007 ac_save_IFS=$IFS
12008 IFS=:
12009 set x $ac_tag
12010 IFS=$ac_save_IFS
12011 shift
12012 ac_file=$1
12013 shift
12015 case $ac_mode in
12016 :L) ac_source=$1;;
12017 :[FH])
12018 ac_file_inputs=
12019 for ac_f
12021 case $ac_f in
12022 -) ac_f="$tmp/stdin";;
12023 *) # Look for the file first in the build tree, then in the source tree
12024 # (if the path is not absolute). The absolute path cannot be DOS-style,
12025 # because $ac_f cannot contain `:'.
12026 test -f "$ac_f" ||
12027 case $ac_f in
12028 [\\/$]*) false;;
12029 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12030 esac ||
12031 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12032 esac
12033 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12034 as_fn_append ac_file_inputs " '$ac_f'"
12035 done
12037 # Let's still pretend it is `configure' which instantiates (i.e., don't
12038 # use $as_me), people would be surprised to read:
12039 # /* config.h. Generated by config.status. */
12040 configure_input='Generated from '`
12041 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12042 `' by configure.'
12043 if test x"$ac_file" != x-; then
12044 configure_input="$ac_file. $configure_input"
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12046 $as_echo "$as_me: creating $ac_file" >&6;}
12048 # Neutralize special characters interpreted by sed in replacement strings.
12049 case $configure_input in #(
12050 *\&* | *\|* | *\\* )
12051 ac_sed_conf_input=`$as_echo "$configure_input" |
12052 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12053 *) ac_sed_conf_input=$configure_input;;
12054 esac
12056 case $ac_tag in
12057 *:-:* | *:-) cat >"$tmp/stdin" \
12058 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12059 esac
12061 esac
12063 ac_dir=`$as_dirname -- "$ac_file" ||
12064 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12065 X"$ac_file" : 'X\(//\)[^/]' \| \
12066 X"$ac_file" : 'X\(//\)$' \| \
12067 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12068 $as_echo X"$ac_file" |
12069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12070 s//\1/
12073 /^X\(\/\/\)[^/].*/{
12074 s//\1/
12077 /^X\(\/\/\)$/{
12078 s//\1/
12081 /^X\(\/\).*/{
12082 s//\1/
12085 s/.*/./; q'`
12086 as_dir="$ac_dir"; as_fn_mkdir_p
12087 ac_builddir=.
12089 case "$ac_dir" in
12090 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12092 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12093 # A ".." for each directory in $ac_dir_suffix.
12094 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12095 case $ac_top_builddir_sub in
12096 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12097 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12098 esac ;;
12099 esac
12100 ac_abs_top_builddir=$ac_pwd
12101 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12102 # for backward compatibility:
12103 ac_top_builddir=$ac_top_build_prefix
12105 case $srcdir in
12106 .) # We are building in place.
12107 ac_srcdir=.
12108 ac_top_srcdir=$ac_top_builddir_sub
12109 ac_abs_top_srcdir=$ac_pwd ;;
12110 [\\/]* | ?:[\\/]* ) # Absolute name.
12111 ac_srcdir=$srcdir$ac_dir_suffix;
12112 ac_top_srcdir=$srcdir
12113 ac_abs_top_srcdir=$srcdir ;;
12114 *) # Relative name.
12115 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12116 ac_top_srcdir=$ac_top_build_prefix$srcdir
12117 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12118 esac
12119 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12122 case $ac_mode in
12125 # CONFIG_FILE
12128 case $INSTALL in
12129 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12130 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12131 esac
12132 ac_MKDIR_P=$MKDIR_P
12133 case $MKDIR_P in
12134 [\\/$]* | ?:[\\/]* ) ;;
12135 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12136 esac
12137 _ACEOF
12139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12140 # If the template does not know about datarootdir, expand it.
12141 # FIXME: This hack should be removed a few years after 2.60.
12142 ac_datarootdir_hack=; ac_datarootdir_seen=
12143 ac_sed_dataroot='
12144 /datarootdir/ {
12148 /@datadir@/p
12149 /@docdir@/p
12150 /@infodir@/p
12151 /@localedir@/p
12152 /@mandir@/p'
12153 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12154 *datarootdir*) ac_datarootdir_seen=yes;;
12155 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12157 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12158 _ACEOF
12159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12160 ac_datarootdir_hack='
12161 s&@datadir@&$datadir&g
12162 s&@docdir@&$docdir&g
12163 s&@infodir@&$infodir&g
12164 s&@localedir@&$localedir&g
12165 s&@mandir@&$mandir&g
12166 s&\\\${datarootdir}&$datarootdir&g' ;;
12167 esac
12168 _ACEOF
12170 # Neutralize VPATH when `$srcdir' = `.'.
12171 # Shell code in configure.ac might set extrasub.
12172 # FIXME: do we really want to maintain this feature?
12173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12174 ac_sed_extra="$ac_vpsub
12175 $extrasub
12176 _ACEOF
12177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12179 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12180 s|@configure_input@|$ac_sed_conf_input|;t t
12181 s&@top_builddir@&$ac_top_builddir_sub&;t t
12182 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12183 s&@srcdir@&$ac_srcdir&;t t
12184 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12185 s&@top_srcdir@&$ac_top_srcdir&;t t
12186 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12187 s&@builddir@&$ac_builddir&;t t
12188 s&@abs_builddir@&$ac_abs_builddir&;t t
12189 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12190 s&@INSTALL@&$ac_INSTALL&;t t
12191 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12192 $ac_datarootdir_hack
12194 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12195 || as_fn_error "could not create $ac_file" "$LINENO" 5
12197 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12198 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12199 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12201 which seems to be undefined. Please make sure it is defined." >&5
12202 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12203 which seems to be undefined. Please make sure it is defined." >&2;}
12205 rm -f "$tmp/stdin"
12206 case $ac_file in
12207 -) cat "$tmp/out" && rm -f "$tmp/out";;
12208 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12209 esac \
12210 || as_fn_error "could not create $ac_file" "$LINENO" 5
12214 # CONFIG_HEADER
12216 if test x"$ac_file" != x-; then
12218 $as_echo "/* $configure_input */" \
12219 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12220 } >"$tmp/config.h" \
12221 || as_fn_error "could not create $ac_file" "$LINENO" 5
12222 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12224 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12225 else
12226 rm -f "$ac_file"
12227 mv "$tmp/config.h" "$ac_file" \
12228 || as_fn_error "could not create $ac_file" "$LINENO" 5
12230 else
12231 $as_echo "/* $configure_input */" \
12232 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12233 || as_fn_error "could not create -" "$LINENO" 5
12235 # Compute "$ac_file"'s index in $config_headers.
12236 _am_arg="$ac_file"
12237 _am_stamp_count=1
12238 for _am_header in $config_headers :; do
12239 case $_am_header in
12240 $_am_arg | $_am_arg:* )
12241 break ;;
12243 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12244 esac
12245 done
12246 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12247 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12248 X"$_am_arg" : 'X\(//\)[^/]' \| \
12249 X"$_am_arg" : 'X\(//\)$' \| \
12250 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12251 $as_echo X"$_am_arg" |
12252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12253 s//\1/
12256 /^X\(\/\/\)[^/].*/{
12257 s//\1/
12260 /^X\(\/\/\)$/{
12261 s//\1/
12264 /^X\(\/\).*/{
12265 s//\1/
12268 s/.*/./; q'`/stamp-h$_am_stamp_count
12271 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12272 $as_echo "$as_me: executing $ac_file commands" >&6;}
12274 esac
12277 case $ac_file$ac_mode in
12278 "default-1":C)
12279 # Only add multilib support code if we just rebuilt the top-level
12280 # Makefile.
12281 case " $CONFIG_FILES " in
12282 *" Makefile "*)
12283 ac_file=Makefile . ${multi_basedir}/config-ml.in
12285 esac ;;
12286 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12287 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12288 # are listed without --file. Let's play safe and only enable the eval
12289 # if we detect the quoting.
12290 case $CONFIG_FILES in
12291 *\'*) eval set x "$CONFIG_FILES" ;;
12292 *) set x $CONFIG_FILES ;;
12293 esac
12294 shift
12295 for mf
12297 # Strip MF so we end up with the name of the file.
12298 mf=`echo "$mf" | sed -e 's/:.*$//'`
12299 # Check whether this is an Automake generated Makefile or not.
12300 # We used to match only the files named `Makefile.in', but
12301 # some people rename them; so instead we look at the file content.
12302 # Grep'ing the first line is not enough: some people post-process
12303 # each Makefile.in and add a new line on top of each file to say so.
12304 # Grep'ing the whole file is not good either: AIX grep has a line
12305 # limit of 2048, but all sed's we know have understand at least 4000.
12306 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12307 dirpart=`$as_dirname -- "$mf" ||
12308 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12309 X"$mf" : 'X\(//\)[^/]' \| \
12310 X"$mf" : 'X\(//\)$' \| \
12311 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12312 $as_echo X"$mf" |
12313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12314 s//\1/
12317 /^X\(\/\/\)[^/].*/{
12318 s//\1/
12321 /^X\(\/\/\)$/{
12322 s//\1/
12325 /^X\(\/\).*/{
12326 s//\1/
12329 s/.*/./; q'`
12330 else
12331 continue
12333 # Extract the definition of DEPDIR, am__include, and am__quote
12334 # from the Makefile without running `make'.
12335 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12336 test -z "$DEPDIR" && continue
12337 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12338 test -z "am__include" && continue
12339 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12340 # When using ansi2knr, U may be empty or an underscore; expand it
12341 U=`sed -n 's/^U = //p' < "$mf"`
12342 # Find all dependency output files, they are included files with
12343 # $(DEPDIR) in their names. We invoke sed twice because it is the
12344 # simplest approach to changing $(DEPDIR) to its actual value in the
12345 # expansion.
12346 for file in `sed -n "
12347 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12348 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12349 # Make sure the directory exists.
12350 test -f "$dirpart/$file" && continue
12351 fdir=`$as_dirname -- "$file" ||
12352 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12353 X"$file" : 'X\(//\)[^/]' \| \
12354 X"$file" : 'X\(//\)$' \| \
12355 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12356 $as_echo X"$file" |
12357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12358 s//\1/
12361 /^X\(\/\/\)[^/].*/{
12362 s//\1/
12365 /^X\(\/\/\)$/{
12366 s//\1/
12369 /^X\(\/\).*/{
12370 s//\1/
12373 s/.*/./; q'`
12374 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12375 # echo "creating $dirpart/$file"
12376 echo '# dummy' > "$dirpart/$file"
12377 done
12378 done
12382 esac
12383 done # for ac_tag
12386 as_fn_exit 0
12387 _ACEOF
12388 ac_clean_files=$ac_clean_files_save
12390 test $ac_write_fail = 0 ||
12391 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12394 # configure is writing to config.log, and then calls config.status.
12395 # config.status does its own redirection, appending to config.log.
12396 # Unfortunately, on DOS this fails, as config.log is still kept open
12397 # by configure, so config.status won't be able to write to it; its
12398 # output is simply discarded. So we exec the FD to /dev/null,
12399 # effectively closing config.log, so it can be properly (re)opened and
12400 # appended to by config.status. When coming back to configure, we
12401 # need to make the FD available again.
12402 if test "$no_create" != yes; then
12403 ac_cs_success=:
12404 ac_config_status_args=
12405 test "$silent" = yes &&
12406 ac_config_status_args="$ac_config_status_args --quiet"
12407 exec 5>/dev/null
12408 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12409 exec 5>>config.log
12410 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12411 # would make configure fail if this is the last instruction.
12412 $ac_cs_success || as_fn_exit $?
12414 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12416 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}