2013-08-02 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git] / libjava / libltdl / configure
blob35b89dc5551b03c73455c035e89d9a9f24a35fed
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*|ppc*-*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 ppc64-*linux*|powerpc64-*linux*)
4824 LD="${LD-ld} -m elf32ppclinux"
4826 s390x-*linux*)
4827 LD="${LD-ld} -m elf_s390"
4829 sparc64-*linux*)
4830 LD="${LD-ld} -m elf32_sparc"
4832 esac
4834 *64-bit*)
4835 case $host in
4836 x86_64-*linux*)
4837 LD="${LD-ld} -m elf_x86_64"
4839 ppc*-*linux*|powerpc*-*linux*)
4840 LD="${LD-ld} -m elf64ppc"
4842 s390*-*linux*)
4843 LD="${LD-ld} -m elf64_s390"
4845 sparc*-*linux*)
4846 LD="${LD-ld} -m elf64_sparc"
4848 esac
4850 esac
4852 rm -rf conftest*
4855 *-*-sco3.2v5*)
4856 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4857 SAVE_CFLAGS="$CFLAGS"
4858 CFLAGS="$CFLAGS -belf"
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
4860 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4861 if test "${lt_cv_cc_needs_belf+set}" = set; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 ac_ext=c
4865 ac_cpp='$CPP $CPPFLAGS'
4866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4874 main ()
4878 return 0;
4880 _ACEOF
4881 if ac_fn_c_try_link "$LINENO"; then :
4882 lt_cv_cc_needs_belf=yes
4883 else
4884 lt_cv_cc_needs_belf=no
4886 rm -f core conftest.err conftest.$ac_objext \
4887 conftest$ac_exeext conftest.$ac_ext
4888 ac_ext=c
4889 ac_cpp='$CPP $CPPFLAGS'
4890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
4896 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4897 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4898 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4899 CFLAGS="$SAVE_CFLAGS"
4902 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4903 if test -n "$ac_tool_prefix"; then
4904 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4905 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907 $as_echo_n "checking for $ac_word... " >&6; }
4908 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
4909 $as_echo_n "(cached) " >&6
4910 else
4911 if test -n "$DLLTOOL"; then
4912 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4913 else
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4917 IFS=$as_save_IFS
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 break 2
4925 done
4926 done
4927 IFS=$as_save_IFS
4931 DLLTOOL=$ac_cv_prog_DLLTOOL
4932 if test -n "$DLLTOOL"; then
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4934 $as_echo "$DLLTOOL" >&6; }
4935 else
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4937 $as_echo "no" >&6; }
4942 if test -z "$ac_cv_prog_DLLTOOL"; then
4943 ac_ct_DLLTOOL=$DLLTOOL
4944 # Extract the first word of "dlltool", so it can be a program name with args.
4945 set dummy dlltool; ac_word=$2
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947 $as_echo_n "checking for $ac_word... " >&6; }
4948 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
4949 $as_echo_n "(cached) " >&6
4950 else
4951 if test -n "$ac_ct_DLLTOOL"; then
4952 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4953 else
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4957 IFS=$as_save_IFS
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 break 2
4965 done
4966 done
4967 IFS=$as_save_IFS
4971 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4972 if test -n "$ac_ct_DLLTOOL"; then
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4974 $as_echo "$ac_ct_DLLTOOL" >&6; }
4975 else
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977 $as_echo "no" >&6; }
4980 if test "x$ac_ct_DLLTOOL" = x; then
4981 DLLTOOL="false"
4982 else
4983 case $cross_compiling:$ac_tool_warned in
4984 yes:)
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4987 ac_tool_warned=yes ;;
4988 esac
4989 DLLTOOL=$ac_ct_DLLTOOL
4991 else
4992 DLLTOOL="$ac_cv_prog_DLLTOOL"
4995 if test -n "$ac_tool_prefix"; then
4996 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4997 set dummy ${ac_tool_prefix}as; ac_word=$2
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4999 $as_echo_n "checking for $ac_word... " >&6; }
5000 if test "${ac_cv_prog_AS+set}" = set; then :
5001 $as_echo_n "(cached) " >&6
5002 else
5003 if test -n "$AS"; then
5004 ac_cv_prog_AS="$AS" # Let the user override the test.
5005 else
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5009 IFS=$as_save_IFS
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5013 ac_cv_prog_AS="${ac_tool_prefix}as"
5014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 break 2
5017 done
5018 done
5019 IFS=$as_save_IFS
5023 AS=$ac_cv_prog_AS
5024 if test -n "$AS"; then
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5026 $as_echo "$AS" >&6; }
5027 else
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029 $as_echo "no" >&6; }
5034 if test -z "$ac_cv_prog_AS"; then
5035 ac_ct_AS=$AS
5036 # Extract the first word of "as", so it can be a program name with args.
5037 set dummy as; ac_word=$2
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5039 $as_echo_n "checking for $ac_word... " >&6; }
5040 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 if test -n "$ac_ct_AS"; then
5044 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5045 else
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5053 ac_cv_prog_ac_ct_AS="as"
5054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 break 2
5057 done
5058 done
5059 IFS=$as_save_IFS
5063 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5064 if test -n "$ac_ct_AS"; then
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5066 $as_echo "$ac_ct_AS" >&6; }
5067 else
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069 $as_echo "no" >&6; }
5072 if test "x$ac_ct_AS" = x; then
5073 AS="false"
5074 else
5075 case $cross_compiling:$ac_tool_warned in
5076 yes:)
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5079 ac_tool_warned=yes ;;
5080 esac
5081 AS=$ac_ct_AS
5083 else
5084 AS="$ac_cv_prog_AS"
5087 if test -n "$ac_tool_prefix"; then
5088 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5089 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095 if test -n "$OBJDUMP"; then
5096 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5097 else
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH
5101 IFS=$as_save_IFS
5102 test -z "$as_dir" && as_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5105 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 break 2
5109 done
5110 done
5111 IFS=$as_save_IFS
5115 OBJDUMP=$ac_cv_prog_OBJDUMP
5116 if test -n "$OBJDUMP"; then
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5118 $as_echo "$OBJDUMP" >&6; }
5119 else
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121 $as_echo "no" >&6; }
5126 if test -z "$ac_cv_prog_OBJDUMP"; then
5127 ac_ct_OBJDUMP=$OBJDUMP
5128 # Extract the first word of "objdump", so it can be a program name with args.
5129 set dummy objdump; ac_word=$2
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5131 $as_echo_n "checking for $ac_word... " >&6; }
5132 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 if test -n "$ac_ct_OBJDUMP"; then
5136 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5137 else
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5145 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 break 2
5149 done
5150 done
5151 IFS=$as_save_IFS
5155 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5156 if test -n "$ac_ct_OBJDUMP"; then
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5158 $as_echo "$ac_ct_OBJDUMP" >&6; }
5159 else
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5161 $as_echo "no" >&6; }
5164 if test "x$ac_ct_OBJDUMP" = x; then
5165 OBJDUMP="false"
5166 else
5167 case $cross_compiling:$ac_tool_warned in
5168 yes:)
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5171 ac_tool_warned=yes ;;
5172 esac
5173 OBJDUMP=$ac_ct_OBJDUMP
5175 else
5176 OBJDUMP="$ac_cv_prog_OBJDUMP"
5181 esac
5183 need_locks="$enable_libtool_lock"
5186 ac_ext=c
5187 ac_cpp='$CPP $CPPFLAGS'
5188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5192 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5193 # On Suns, sometimes $CPP names a directory.
5194 if test -n "$CPP" && test -d "$CPP"; then
5195 CPP=
5197 if test -z "$CPP"; then
5198 if test "${ac_cv_prog_CPP+set}" = set; then :
5199 $as_echo_n "(cached) " >&6
5200 else
5201 # Double quotes because CPP needs to be expanded
5202 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5204 ac_preproc_ok=false
5205 for ac_c_preproc_warn_flag in '' yes
5207 # Use a header file that comes with gcc, so configuring glibc
5208 # with a fresh cross-compiler works.
5209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5210 # <limits.h> exists even on freestanding compilers.
5211 # On the NeXT, cc -E runs the code through the compiler's parser,
5212 # not just through cpp. "Syntax error" is here to catch this case.
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5215 #ifdef __STDC__
5216 # include <limits.h>
5217 #else
5218 # include <assert.h>
5219 #endif
5220 Syntax error
5221 _ACEOF
5222 if ac_fn_c_try_cpp "$LINENO"; then :
5224 else
5225 # Broken: fails on valid input.
5226 continue
5228 rm -f conftest.err conftest.$ac_ext
5230 # OK, works on sane cases. Now check whether nonexistent headers
5231 # can be detected and how.
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h. */
5234 #include <ac_nonexistent.h>
5235 _ACEOF
5236 if ac_fn_c_try_cpp "$LINENO"; then :
5237 # Broken: success on invalid input.
5238 continue
5239 else
5240 # Passes both tests.
5241 ac_preproc_ok=:
5242 break
5244 rm -f conftest.err conftest.$ac_ext
5246 done
5247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5248 rm -f conftest.err conftest.$ac_ext
5249 if $ac_preproc_ok; then :
5250 break
5253 done
5254 ac_cv_prog_CPP=$CPP
5257 CPP=$ac_cv_prog_CPP
5258 else
5259 ac_cv_prog_CPP=$CPP
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5262 $as_echo "$CPP" >&6; }
5263 ac_preproc_ok=false
5264 for ac_c_preproc_warn_flag in '' yes
5266 # Use a header file that comes with gcc, so configuring glibc
5267 # with a fresh cross-compiler works.
5268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5269 # <limits.h> exists even on freestanding compilers.
5270 # On the NeXT, cc -E runs the code through the compiler's parser,
5271 # not just through cpp. "Syntax error" is here to catch this case.
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5274 #ifdef __STDC__
5275 # include <limits.h>
5276 #else
5277 # include <assert.h>
5278 #endif
5279 Syntax error
5280 _ACEOF
5281 if ac_fn_c_try_cpp "$LINENO"; then :
5283 else
5284 # Broken: fails on valid input.
5285 continue
5287 rm -f conftest.err conftest.$ac_ext
5289 # OK, works on sane cases. Now check whether nonexistent headers
5290 # can be detected and how.
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 #include <ac_nonexistent.h>
5294 _ACEOF
5295 if ac_fn_c_try_cpp "$LINENO"; then :
5296 # Broken: success on invalid input.
5297 continue
5298 else
5299 # Passes both tests.
5300 ac_preproc_ok=:
5301 break
5303 rm -f conftest.err conftest.$ac_ext
5305 done
5306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5307 rm -f conftest.err conftest.$ac_ext
5308 if $ac_preproc_ok; then :
5310 else
5311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5313 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5314 See \`config.log' for more details." "$LINENO" 5; }
5317 ac_ext=c
5318 ac_cpp='$CPP $CPPFLAGS'
5319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5325 $as_echo_n "checking for ANSI C header files... " >&6; }
5326 if test "${ac_cv_header_stdc+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5328 else
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5331 #include <stdlib.h>
5332 #include <stdarg.h>
5333 #include <string.h>
5334 #include <float.h>
5337 main ()
5341 return 0;
5343 _ACEOF
5344 if ac_fn_c_try_compile "$LINENO"; then :
5345 ac_cv_header_stdc=yes
5346 else
5347 ac_cv_header_stdc=no
5349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351 if test $ac_cv_header_stdc = yes; then
5352 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5355 #include <string.h>
5357 _ACEOF
5358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5359 $EGREP "memchr" >/dev/null 2>&1; then :
5361 else
5362 ac_cv_header_stdc=no
5364 rm -f conftest*
5368 if test $ac_cv_header_stdc = yes; then
5369 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5372 #include <stdlib.h>
5374 _ACEOF
5375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5376 $EGREP "free" >/dev/null 2>&1; then :
5378 else
5379 ac_cv_header_stdc=no
5381 rm -f conftest*
5385 if test $ac_cv_header_stdc = yes; then
5386 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5387 if test "$cross_compiling" = yes; then :
5389 else
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5392 #include <ctype.h>
5393 #include <stdlib.h>
5394 #if ((' ' & 0x0FF) == 0x020)
5395 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5396 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5397 #else
5398 # define ISLOWER(c) \
5399 (('a' <= (c) && (c) <= 'i') \
5400 || ('j' <= (c) && (c) <= 'r') \
5401 || ('s' <= (c) && (c) <= 'z'))
5402 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5403 #endif
5405 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5407 main ()
5409 int i;
5410 for (i = 0; i < 256; i++)
5411 if (XOR (islower (i), ISLOWER (i))
5412 || toupper (i) != TOUPPER (i))
5413 return 2;
5414 return 0;
5416 _ACEOF
5417 if ac_fn_c_try_run "$LINENO"; then :
5419 else
5420 ac_cv_header_stdc=no
5422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5423 conftest.$ac_objext conftest.beam conftest.$ac_ext
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5429 $as_echo "$ac_cv_header_stdc" >&6; }
5430 if test $ac_cv_header_stdc = yes; then
5432 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5436 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5437 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5438 inttypes.h stdint.h unistd.h
5439 do :
5440 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5441 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5443 eval as_val=\$$as_ac_Header
5444 if test "x$as_val" = x""yes; then :
5445 cat >>confdefs.h <<_ACEOF
5446 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5447 _ACEOF
5451 done
5454 for ac_header in dlfcn.h
5455 do :
5456 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5457 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
5458 cat >>confdefs.h <<_ACEOF
5459 #define HAVE_DLFCN_H 1
5460 _ACEOF
5464 done
5467 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5469 # find the maximum length of command line arguments
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5471 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5472 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5473 $as_echo_n "(cached) " >&6
5474 else
5476 teststring="ABCD"
5478 case $build_os in
5479 msdosdjgpp*)
5480 # On DJGPP, this test can blow up pretty badly due to problems in libc
5481 # (any single argument exceeding 2000 bytes causes a buffer overrun
5482 # during glob expansion). Even if it were fixed, the result of this
5483 # check would be larger than it should be.
5484 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5487 gnu*)
5488 # Under GNU Hurd, this test is not required because there is
5489 # no limit to the length of command line arguments.
5490 # Libtool will interpret -1 as no limit whatsoever
5491 lt_cv_sys_max_cmd_len=-1;
5494 cygwin* | mingw*)
5495 # On Win9x/ME, this test blows up -- it succeeds, but takes
5496 # about 5 minutes as the teststring grows exponentially.
5497 # Worse, since 9x/ME are not pre-emptively multitasking,
5498 # you end up with a "frozen" computer, even though with patience
5499 # the test eventually succeeds (with a max line length of 256k).
5500 # Instead, let's just punt: use the minimum linelength reported by
5501 # all of the supported platforms: 8192 (on NT/2K/XP).
5502 lt_cv_sys_max_cmd_len=8192;
5505 amigaos*)
5506 # On AmigaOS with pdksh, this test takes hours, literally.
5507 # So we just punt and use a minimum line length of 8192.
5508 lt_cv_sys_max_cmd_len=8192;
5511 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5512 # This has been around since 386BSD, at least. Likely further.
5513 if test -x /sbin/sysctl; then
5514 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5515 elif test -x /usr/sbin/sysctl; then
5516 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5517 else
5518 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5520 # And add a safety zone
5521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5524 osf*)
5525 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5526 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5527 # nice to cause kernel panics so lets avoid the loop below.
5528 # First set a reasonable default.
5529 lt_cv_sys_max_cmd_len=16384
5531 if test -x /sbin/sysconfig; then
5532 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5533 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5534 esac
5538 # If test is not a shell built-in, we'll probably end up computing a
5539 # maximum length that is only half of the actual maximum length, but
5540 # we can't tell.
5541 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5542 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5543 = "XX$teststring") >/dev/null 2>&1 &&
5544 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5545 lt_cv_sys_max_cmd_len=$new_result &&
5546 test $i != 17 # 1/2 MB should be enough
5548 i=`expr $i + 1`
5549 teststring=$teststring$teststring
5550 done
5551 teststring=
5552 # Add a significant safety factor because C++ compilers can tack on massive
5553 # amounts of additional arguments before passing them to the linker.
5554 # It appears as though 1/2 is a usable value.
5555 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5557 esac
5561 if test -n $lt_cv_sys_max_cmd_len ; then
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5563 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5564 else
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5566 $as_echo "none" >&6; }
5572 # Check for command to grab the raw symbol name followed by C symbol from nm.
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5574 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5575 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5576 $as_echo_n "(cached) " >&6
5577 else
5579 # These are sane defaults that work on at least a few old systems.
5580 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5582 # Character class describing NM global symbol codes.
5583 symcode='[BCDEGRST]'
5585 # Regexp to match symbols that can be accessed directly from C.
5586 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5588 # Transform an extracted symbol line into a proper C declaration
5589 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5591 # Transform an extracted symbol line into symbol name and symbol address
5592 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'"
5594 # Define system-specific variables.
5595 case $host_os in
5596 aix*)
5597 symcode='[BCDT]'
5599 cygwin* | mingw* | pw32*)
5600 symcode='[ABCDGISTW]'
5602 hpux*) # Its linker distinguishes data from code symbols
5603 if test "$host_cpu" = ia64; then
5604 symcode='[ABCDEGRST]'
5606 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5607 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'"
5609 linux*)
5610 if test "$host_cpu" = ia64; then
5611 symcode='[ABCDGIRSTW]'
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'"
5616 irix* | nonstopux*)
5617 symcode='[BCDEGRST]'
5619 osf*)
5620 symcode='[BCDEGQRST]'
5622 solaris* | sysv5*)
5623 symcode='[BDRT]'
5625 sysv4)
5626 symcode='[DFNSTU]'
5628 esac
5630 # Handle CRLF in mingw tool chain
5631 opt_cr=
5632 case $build_os in
5633 mingw*)
5634 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5636 esac
5638 # If we're using GNU nm, then use its standard symbol codes.
5639 case `$NM -V 2>&1` in
5640 *GNU* | *'with BFD'*)
5641 symcode='[ABCDGIRSTW]' ;;
5642 esac
5644 # Try without a prefix undercore, then with it.
5645 for ac_symprfx in "" "_"; do
5647 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5648 symxfrm="\\1 $ac_symprfx\\2 \\2"
5650 # Write the raw and C identifiers.
5651 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5653 # Check to see that the pipe works correctly.
5654 pipe_works=no
5656 rm -f conftest*
5657 cat > conftest.$ac_ext <<EOF
5658 #ifdef __cplusplus
5659 extern "C" {
5660 #endif
5661 char nm_test_var;
5662 void nm_test_func(){}
5663 #ifdef __cplusplus
5665 #endif
5666 int main(){nm_test_var='a';nm_test_func();return(0);}
5669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5670 (eval $ac_compile) 2>&5
5671 ac_status=$?
5672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5673 test $ac_status = 0; }; then
5674 # Now try to grab the symbols.
5675 nlist=conftest.nm
5676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5677 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5678 ac_status=$?
5679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5680 test $ac_status = 0; } && test -s "$nlist"; then
5681 # Try sorting and uniquifying the output.
5682 if sort "$nlist" | uniq > "$nlist"T; then
5683 mv -f "$nlist"T "$nlist"
5684 else
5685 rm -f "$nlist"T
5688 # Make sure that we snagged all the symbols we need.
5689 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5690 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5691 cat <<EOF > conftest.$ac_ext
5692 #ifdef __cplusplus
5693 extern "C" {
5694 #endif
5697 # Now generate the symbol file.
5698 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5700 cat <<EOF >> conftest.$ac_ext
5701 #if defined (__STDC__) && __STDC__
5702 # define lt_ptr_t void *
5703 #else
5704 # define lt_ptr_t char *
5705 # define const
5706 #endif
5708 /* The mapping between symbol names and symbols. */
5709 const struct {
5710 const char *name;
5711 lt_ptr_t address;
5713 lt_preloaded_symbols[] =
5716 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5717 cat <<\EOF >> conftest.$ac_ext
5718 {0, (lt_ptr_t) 0}
5721 #ifdef __cplusplus
5723 #endif
5725 # Now try linking the two files.
5726 mv conftest.$ac_objext conftstm.$ac_objext
5727 lt_save_LIBS="$LIBS"
5728 lt_save_CFLAGS="$CFLAGS"
5729 LIBS="conftstm.$ac_objext"
5730 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5732 (eval $ac_link) 2>&5
5733 ac_status=$?
5734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5735 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5736 pipe_works=yes
5738 LIBS="$lt_save_LIBS"
5739 CFLAGS="$lt_save_CFLAGS"
5740 else
5741 echo "cannot find nm_test_func in $nlist" >&5
5743 else
5744 echo "cannot find nm_test_var in $nlist" >&5
5746 else
5747 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5749 else
5750 echo "$progname: failed program was:" >&5
5751 cat conftest.$ac_ext >&5
5753 rm -f conftest* conftst*
5755 # Do not use the global_symbol_pipe unless it works.
5756 if test "$pipe_works" = yes; then
5757 break
5758 else
5759 lt_cv_sys_global_symbol_pipe=
5761 done
5765 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5766 lt_cv_sys_global_symbol_to_cdecl=
5768 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5770 $as_echo "failed" >&6; }
5771 else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5773 $as_echo "ok" >&6; }
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5777 $as_echo_n "checking for objdir... " >&6; }
5778 if test "${lt_cv_objdir+set}" = set; then :
5779 $as_echo_n "(cached) " >&6
5780 else
5781 rm -f .libs 2>/dev/null
5782 mkdir .libs 2>/dev/null
5783 if test -d .libs; then
5784 lt_cv_objdir=.libs
5785 else
5786 # MS-DOS does not allow filenames that begin with a dot.
5787 lt_cv_objdir=_libs
5789 rmdir .libs 2>/dev/null
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5792 $as_echo "$lt_cv_objdir" >&6; }
5793 objdir=$lt_cv_objdir
5799 case $host_os in
5800 aix3*)
5801 # AIX sometimes has problems with the GCC collect2 program. For some
5802 # reason, if we set the COLLECT_NAMES environment variable, the problems
5803 # vanish in a puff of smoke.
5804 if test "X${COLLECT_NAMES+set}" != Xset; then
5805 COLLECT_NAMES=
5806 export COLLECT_NAMES
5809 esac
5811 # Sed substitution that helps us do robust quoting. It backslashifies
5812 # metacharacters that are still active within double-quoted strings.
5813 Xsed='sed -e 1s/^X//'
5814 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5816 # Same as above, but do not quote variable references.
5817 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5819 # Sed substitution to delay expansion of an escaped shell variable in a
5820 # double_quote_subst'ed string.
5821 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5823 # Sed substitution to avoid accidental globbing in evaled expressions
5824 no_glob_subst='s/\*/\\\*/g'
5826 # Constants:
5827 rm="rm -f"
5829 # Global variables:
5830 default_ofile=libtool
5831 can_build_shared=yes
5833 # All known linkers require a `.a' archive for static linking (except M$VC,
5834 # which needs '.lib').
5835 libext=a
5836 ltmain="$ac_aux_dir/ltmain.sh"
5837 ofile="$default_ofile"
5838 with_gnu_ld="$lt_cv_prog_gnu_ld"
5840 if test -n "$ac_tool_prefix"; then
5841 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5842 set dummy ${ac_tool_prefix}ar; ac_word=$2
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if test "${ac_cv_prog_AR+set}" = set; then :
5846 $as_echo_n "(cached) " >&6
5847 else
5848 if test -n "$AR"; then
5849 ac_cv_prog_AR="$AR" # Let the user override the test.
5850 else
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5854 IFS=$as_save_IFS
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_prog_AR="${ac_tool_prefix}ar"
5859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 break 2
5862 done
5863 done
5864 IFS=$as_save_IFS
5868 AR=$ac_cv_prog_AR
5869 if test -n "$AR"; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5871 $as_echo "$AR" >&6; }
5872 else
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5879 if test -z "$ac_cv_prog_AR"; then
5880 ac_ct_AR=$AR
5881 # Extract the first word of "ar", so it can be a program name with args.
5882 set dummy ar; ac_word=$2
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884 $as_echo_n "checking for $ac_word... " >&6; }
5885 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5886 $as_echo_n "(cached) " >&6
5887 else
5888 if test -n "$ac_ct_AR"; then
5889 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5890 else
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5894 IFS=$as_save_IFS
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5898 ac_cv_prog_ac_ct_AR="ar"
5899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 break 2
5902 done
5903 done
5904 IFS=$as_save_IFS
5908 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5909 if test -n "$ac_ct_AR"; then
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5911 $as_echo "$ac_ct_AR" >&6; }
5912 else
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914 $as_echo "no" >&6; }
5917 if test "x$ac_ct_AR" = x; then
5918 AR="false"
5919 else
5920 case $cross_compiling:$ac_tool_warned in
5921 yes:)
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5924 ac_tool_warned=yes ;;
5925 esac
5926 AR=$ac_ct_AR
5928 else
5929 AR="$ac_cv_prog_AR"
5932 if test -n "$ac_tool_prefix"; then
5933 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5934 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936 $as_echo_n "checking for $ac_word... " >&6; }
5937 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 if test -n "$RANLIB"; then
5941 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5942 else
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 break 2
5954 done
5955 done
5956 IFS=$as_save_IFS
5960 RANLIB=$ac_cv_prog_RANLIB
5961 if test -n "$RANLIB"; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5963 $as_echo "$RANLIB" >&6; }
5964 else
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5971 if test -z "$ac_cv_prog_RANLIB"; then
5972 ac_ct_RANLIB=$RANLIB
5973 # Extract the first word of "ranlib", so it can be a program name with args.
5974 set dummy ranlib; ac_word=$2
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976 $as_echo_n "checking for $ac_word... " >&6; }
5977 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5978 $as_echo_n "(cached) " >&6
5979 else
5980 if test -n "$ac_ct_RANLIB"; then
5981 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5982 else
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5990 ac_cv_prog_ac_ct_RANLIB="ranlib"
5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 break 2
5994 done
5995 done
5996 IFS=$as_save_IFS
6000 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6001 if test -n "$ac_ct_RANLIB"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6003 $as_echo "$ac_ct_RANLIB" >&6; }
6004 else
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6009 if test "x$ac_ct_RANLIB" = x; then
6010 RANLIB=":"
6011 else
6012 case $cross_compiling:$ac_tool_warned in
6013 yes:)
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6016 ac_tool_warned=yes ;;
6017 esac
6018 RANLIB=$ac_ct_RANLIB
6020 else
6021 RANLIB="$ac_cv_prog_RANLIB"
6024 if test -n "$ac_tool_prefix"; then
6025 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6026 set dummy ${ac_tool_prefix}strip; ac_word=$2
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if test "${ac_cv_prog_STRIP+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
6031 else
6032 if test -n "$STRIP"; then
6033 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6034 else
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6038 IFS=$as_save_IFS
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 break 2
6046 done
6047 done
6048 IFS=$as_save_IFS
6052 STRIP=$ac_cv_prog_STRIP
6053 if test -n "$STRIP"; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6055 $as_echo "$STRIP" >&6; }
6056 else
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6063 if test -z "$ac_cv_prog_STRIP"; then
6064 ac_ct_STRIP=$STRIP
6065 # Extract the first word of "strip", so it can be a program name with args.
6066 set dummy strip; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 if test -n "$ac_ct_STRIP"; then
6073 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6082 ac_cv_prog_ac_ct_STRIP="strip"
6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 break 2
6086 done
6087 done
6088 IFS=$as_save_IFS
6092 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6093 if test -n "$ac_ct_STRIP"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6095 $as_echo "$ac_ct_STRIP" >&6; }
6096 else
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6101 if test "x$ac_ct_STRIP" = x; then
6102 STRIP=":"
6103 else
6104 case $cross_compiling:$ac_tool_warned in
6105 yes:)
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6108 ac_tool_warned=yes ;;
6109 esac
6110 STRIP=$ac_ct_STRIP
6112 else
6113 STRIP="$ac_cv_prog_STRIP"
6117 old_CC="$CC"
6118 old_CFLAGS="$CFLAGS"
6120 # Set sane defaults for various variables
6121 test -z "$AR" && AR=ar
6122 test -z "$AR_FLAGS" && AR_FLAGS=cru
6123 test -z "$AS" && AS=as
6124 test -z "$CC" && CC=cc
6125 test -z "$LTCC" && LTCC=$CC
6126 test -z "$DLLTOOL" && DLLTOOL=dlltool
6127 test -z "$LD" && LD=ld
6128 test -z "$LN_S" && LN_S="ln -s"
6129 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6130 test -z "$NM" && NM=nm
6131 test -z "$SED" && SED=sed
6132 test -z "$OBJDUMP" && OBJDUMP=objdump
6133 test -z "$RANLIB" && RANLIB=:
6134 test -z "$STRIP" && STRIP=:
6135 test -z "$ac_objext" && ac_objext=o
6137 # Determine commands to create old-style static archives.
6138 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6139 old_postinstall_cmds='chmod 644 $oldlib'
6140 old_postuninstall_cmds=
6142 if test -n "$RANLIB"; then
6143 case $host_os in
6144 openbsd*)
6145 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6148 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6150 esac
6151 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6154 for cc_temp in $compiler""; do
6155 case $cc_temp in
6156 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6157 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6158 \-*) ;;
6159 *) break;;
6160 esac
6161 done
6162 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6165 # Only perform the check for file, if the check method requires it
6166 case $deplibs_check_method in
6167 file_magic*)
6168 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6170 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6171 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6172 $as_echo_n "(cached) " >&6
6173 else
6174 case $MAGIC_CMD in
6175 [\\/*] | ?:[\\/]*)
6176 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6179 lt_save_MAGIC_CMD="$MAGIC_CMD"
6180 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6181 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6182 for ac_dir in $ac_dummy; do
6183 IFS="$lt_save_ifs"
6184 test -z "$ac_dir" && ac_dir=.
6185 if test -f $ac_dir/${ac_tool_prefix}file; then
6186 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6187 if test -n "$file_magic_test_file"; then
6188 case $deplibs_check_method in
6189 "file_magic "*)
6190 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6191 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6192 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6193 $EGREP "$file_magic_regex" > /dev/null; then
6195 else
6196 cat <<EOF 1>&2
6198 *** Warning: the command libtool uses to detect shared libraries,
6199 *** $file_magic_cmd, produces output that libtool cannot recognize.
6200 *** The result is that libtool may fail to recognize shared libraries
6201 *** as such. This will affect the creation of libtool libraries that
6202 *** depend on shared libraries, but programs linked with such libtool
6203 *** libraries will work regardless of this problem. Nevertheless, you
6204 *** may want to report the problem to your system manager and/or to
6205 *** bug-libtool@gnu.org
6208 fi ;;
6209 esac
6211 break
6213 done
6214 IFS="$lt_save_ifs"
6215 MAGIC_CMD="$lt_save_MAGIC_CMD"
6217 esac
6220 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6221 if test -n "$MAGIC_CMD"; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6223 $as_echo "$MAGIC_CMD" >&6; }
6224 else
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226 $as_echo "no" >&6; }
6229 if test -z "$lt_cv_path_MAGIC_CMD"; then
6230 if test -n "$ac_tool_prefix"; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6232 $as_echo_n "checking for file... " >&6; }
6233 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6234 $as_echo_n "(cached) " >&6
6235 else
6236 case $MAGIC_CMD in
6237 [\\/*] | ?:[\\/]*)
6238 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6241 lt_save_MAGIC_CMD="$MAGIC_CMD"
6242 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6243 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6244 for ac_dir in $ac_dummy; do
6245 IFS="$lt_save_ifs"
6246 test -z "$ac_dir" && ac_dir=.
6247 if test -f $ac_dir/file; then
6248 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6249 if test -n "$file_magic_test_file"; then
6250 case $deplibs_check_method in
6251 "file_magic "*)
6252 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6253 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6254 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6255 $EGREP "$file_magic_regex" > /dev/null; then
6257 else
6258 cat <<EOF 1>&2
6260 *** Warning: the command libtool uses to detect shared libraries,
6261 *** $file_magic_cmd, produces output that libtool cannot recognize.
6262 *** The result is that libtool may fail to recognize shared libraries
6263 *** as such. This will affect the creation of libtool libraries that
6264 *** depend on shared libraries, but programs linked with such libtool
6265 *** libraries will work regardless of this problem. Nevertheless, you
6266 *** may want to report the problem to your system manager and/or to
6267 *** bug-libtool@gnu.org
6270 fi ;;
6271 esac
6273 break
6275 done
6276 IFS="$lt_save_ifs"
6277 MAGIC_CMD="$lt_save_MAGIC_CMD"
6279 esac
6282 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6283 if test -n "$MAGIC_CMD"; then
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6285 $as_echo "$MAGIC_CMD" >&6; }
6286 else
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288 $as_echo "no" >&6; }
6291 else
6292 MAGIC_CMD=:
6298 esac
6300 enable_dlopen=no
6301 enable_win32_dll=yes
6303 # Check whether --enable-libtool-lock was given.
6304 if test "${enable_libtool_lock+set}" = set; then :
6305 enableval=$enable_libtool_lock;
6308 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6311 # Check whether --with-pic was given.
6312 if test "${with_pic+set}" = set; then :
6313 withval=$with_pic; pic_mode="$withval"
6314 else
6315 pic_mode=default
6318 test -z "$pic_mode" && pic_mode=default
6320 # Use C for the default configuration in the libtool script
6321 tagname=
6322 lt_save_CC="$CC"
6323 ac_ext=c
6324 ac_cpp='$CPP $CPPFLAGS'
6325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6330 # Source file extension for C test sources.
6331 ac_ext=c
6333 # Object file extension for compiled C test sources.
6334 objext=o
6335 objext=$objext
6337 # Code to be used in simple compile tests
6338 lt_simple_compile_test_code="int some_variable = 0;\n"
6340 # Code to be used in simple link tests
6341 lt_simple_link_test_code='int main(){return(0);}\n'
6344 # If no C compiler was specified, use CC.
6345 LTCC=${LTCC-"$CC"}
6347 # Allow CC to be a program name with arguments.
6348 compiler=$CC
6351 # save warnings/boilerplate of simple test code
6352 ac_outfile=conftest.$ac_objext
6353 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6354 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6355 _lt_compiler_boilerplate=`cat conftest.err`
6356 $rm conftest*
6358 ac_outfile=conftest.$ac_objext
6359 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6360 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6361 _lt_linker_boilerplate=`cat conftest.err`
6362 $rm conftest*
6366 # Check for any special shared library compilation flags.
6368 lt_prog_cc_shlib=
6369 if test "$GCC" = no; then
6370 case $host_os in
6371 sco3.2v5*)
6372 lt_prog_cc_shlib='-belf'
6374 esac
6376 if test -n "$lt_prog_cc_shlib"; then
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6378 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6379 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6380 else
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6382 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6383 lt_cv_prog_cc_can_build_shared=no
6389 # Check to make sure the static flag actually works.
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6392 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
6393 if test "${lt_prog_compiler_static_works+set}" = set; then :
6394 $as_echo_n "(cached) " >&6
6395 else
6396 lt_prog_compiler_static_works=no
6397 save_LDFLAGS="$LDFLAGS"
6398 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6399 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6400 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6401 # The compiler can only warn and ignore the option if not recognized
6402 # So say no if there are warnings
6403 if test -s conftest.err; then
6404 # Append any errors to the config.log.
6405 cat conftest.err 1>&5
6406 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6407 $SED '/^$/d' conftest.err >conftest.er2
6408 if diff conftest.exp conftest.er2 >/dev/null; then
6409 lt_prog_compiler_static_works=yes
6411 else
6412 lt_prog_compiler_static_works=yes
6415 $rm conftest*
6416 LDFLAGS="$save_LDFLAGS"
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
6420 $as_echo "$lt_prog_compiler_static_works" >&6; }
6422 if test x"$lt_prog_compiler_static_works" = xyes; then
6424 else
6425 lt_prog_compiler_static=
6430 ## CAVEAT EMPTOR:
6431 ## There is no encapsulation within the following macros, do not change
6432 ## the running order or otherwise move them around unless you know exactly
6433 ## what you are doing...
6435 lt_prog_compiler_no_builtin_flag=
6437 if test "$GCC" = yes; then
6438 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6442 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6443 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 lt_cv_prog_compiler_rtti_exceptions=no
6447 ac_outfile=conftest.$ac_objext
6448 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6449 lt_compiler_flag="-fno-rtti -fno-exceptions"
6450 # Insert the option either (1) after the last *FLAGS variable, or
6451 # (2) before a word containing "conftest.", or (3) at the end.
6452 # Note that $ac_compile itself does not contain backslashes and begins
6453 # with a dollar sign (not a hyphen), so the echo should work correctly.
6454 # The option is referenced via a variable to avoid confusing sed.
6455 lt_compile=`echo "$ac_compile" | $SED \
6456 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6458 -e 's:$: $lt_compiler_flag:'`
6459 (eval echo "\"\$as_me:6459: $lt_compile\"" >&5)
6460 (eval "$lt_compile" 2>conftest.err)
6461 ac_status=$?
6462 cat conftest.err >&5
6463 echo "$as_me:6463: \$? = $ac_status" >&5
6464 if (exit $ac_status) && test -s "$ac_outfile"; then
6465 # The compiler can only warn and ignore the option if not recognized
6466 # So say no if there are warnings other than the usual output.
6467 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6468 $SED '/^$/d' conftest.err >conftest.er2
6469 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6470 lt_cv_prog_compiler_rtti_exceptions=yes
6473 $rm conftest*
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6477 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6479 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6480 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6481 else
6487 lt_prog_compiler_wl=
6488 lt_prog_compiler_pic=
6489 lt_prog_compiler_static=
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6492 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6494 if test "$GCC" = yes; then
6495 lt_prog_compiler_wl='-Wl,'
6496 lt_prog_compiler_static='-static'
6498 case $host_os in
6499 aix*)
6500 # All AIX code is PIC.
6501 if test "$host_cpu" = ia64; then
6502 # AIX 5 now supports IA64 processor
6503 lt_prog_compiler_static='-Bstatic'
6507 amigaos*)
6508 # FIXME: we need at least 68020 code to build shared libraries, but
6509 # adding the `-m68020' flag to GCC prevents building anything better,
6510 # like `-m68040'.
6511 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6514 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6515 # PIC is the default for these OSes.
6518 mingw* | pw32* | os2*)
6519 # This hack is so that the source file can tell whether it is being
6520 # built for inclusion in a dll (and should export symbols for example).
6521 lt_prog_compiler_pic='-DDLL_EXPORT'
6524 darwin* | rhapsody*)
6525 # PIC is the default on this platform
6526 # Common symbols not allowed in MH_DYLIB files
6527 lt_prog_compiler_pic='-fno-common'
6530 msdosdjgpp*)
6531 # Just because we use GCC doesn't mean we suddenly get shared libraries
6532 # on systems that don't support them.
6533 lt_prog_compiler_can_build_shared=no
6534 enable_shared=no
6537 sysv4*MP*)
6538 if test -d /usr/nec; then
6539 lt_prog_compiler_pic=-Kconform_pic
6543 hpux*)
6544 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6545 # not for PA HP-UX.
6546 case "$host_cpu" in
6547 hppa*64*|ia64*)
6548 # +Z the default
6551 lt_prog_compiler_pic='-fPIC'
6553 esac
6557 lt_prog_compiler_pic='-fPIC'
6559 esac
6560 else
6561 # PORTME Check for flag to pass linker flags through the system compiler.
6562 case $host_os in
6563 aix*)
6564 lt_prog_compiler_wl='-Wl,'
6565 if test "$host_cpu" = ia64; then
6566 # AIX 5 now supports IA64 processor
6567 lt_prog_compiler_static='-Bstatic'
6568 else
6569 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6572 darwin*)
6573 # PIC is the default on this platform
6574 # Common symbols not allowed in MH_DYLIB files
6575 case $cc_basename in
6576 xlc*)
6577 lt_prog_compiler_pic='-qnocommon'
6578 lt_prog_compiler_wl='-Wl,'
6580 esac
6583 mingw* | pw32* | os2*)
6584 # This hack is so that the source file can tell whether it is being
6585 # built for inclusion in a dll (and should export symbols for example).
6586 lt_prog_compiler_pic='-DDLL_EXPORT'
6589 hpux9* | hpux10* | hpux11*)
6590 lt_prog_compiler_wl='-Wl,'
6591 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6592 # not for PA HP-UX.
6593 case "$host_cpu" in
6594 hppa*64*|ia64*)
6595 # +Z the default
6598 lt_prog_compiler_pic='+Z'
6600 esac
6601 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6602 lt_prog_compiler_static='${wl}-a ${wl}archive'
6605 irix5* | irix6* | nonstopux*)
6606 lt_prog_compiler_wl='-Wl,'
6607 # PIC (with -KPIC) is the default.
6608 lt_prog_compiler_static='-non_shared'
6611 newsos6)
6612 lt_prog_compiler_pic='-KPIC'
6613 lt_prog_compiler_static='-Bstatic'
6616 linux*)
6617 case $cc_basename in
6618 icc* | ecc*)
6619 lt_prog_compiler_wl='-Wl,'
6620 lt_prog_compiler_pic='-KPIC'
6621 lt_prog_compiler_static='-static'
6623 pgcc* | pgf77* | pgf90*)
6624 # Portland Group compilers (*not* the Pentium gcc compiler,
6625 # which looks to be a dead project)
6626 lt_prog_compiler_wl='-Wl,'
6627 lt_prog_compiler_pic='-fpic'
6628 lt_prog_compiler_static='-static'
6630 ccc*)
6631 lt_prog_compiler_wl='-Wl,'
6632 # All Alpha code is PIC.
6633 lt_prog_compiler_static='-non_shared'
6635 esac
6638 osf3* | osf4* | osf5*)
6639 lt_prog_compiler_wl='-Wl,'
6640 # All OSF/1 code is PIC.
6641 lt_prog_compiler_static='-non_shared'
6644 sco3.2v5*)
6645 lt_prog_compiler_pic='-Kpic'
6646 lt_prog_compiler_static='-dn'
6649 solaris*)
6650 lt_prog_compiler_pic='-KPIC'
6651 lt_prog_compiler_static='-Bstatic'
6652 case $cc_basename in
6653 f77* | f90* | f95*)
6654 lt_prog_compiler_wl='-Qoption ld ';;
6656 lt_prog_compiler_wl='-Wl,';;
6657 esac
6660 sunos4*)
6661 lt_prog_compiler_wl='-Qoption ld '
6662 lt_prog_compiler_pic='-PIC'
6663 lt_prog_compiler_static='-Bstatic'
6666 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6667 lt_prog_compiler_wl='-Wl,'
6668 lt_prog_compiler_pic='-KPIC'
6669 lt_prog_compiler_static='-Bstatic'
6672 sysv4*MP*)
6673 if test -d /usr/nec ;then
6674 lt_prog_compiler_pic='-Kconform_pic'
6675 lt_prog_compiler_static='-Bstatic'
6679 unicos*)
6680 lt_prog_compiler_wl='-Wl,'
6681 lt_prog_compiler_can_build_shared=no
6684 uts4*)
6685 lt_prog_compiler_pic='-pic'
6686 lt_prog_compiler_static='-Bstatic'
6690 lt_prog_compiler_can_build_shared=no
6692 esac
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6696 $as_echo "$lt_prog_compiler_pic" >&6; }
6699 # Check to make sure the PIC flag actually works.
6701 if test -n "$lt_prog_compiler_pic"; then
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6704 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6705 if test "${lt_prog_compiler_pic_works+set}" = set; then :
6706 $as_echo_n "(cached) " >&6
6707 else
6708 lt_prog_compiler_pic_works=no
6709 ac_outfile=conftest.$ac_objext
6710 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6711 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6712 # Insert the option either (1) after the last *FLAGS variable, or
6713 # (2) before a word containing "conftest.", or (3) at the end.
6714 # Note that $ac_compile itself does not contain backslashes and begins
6715 # with a dollar sign (not a hyphen), so the echo should work correctly.
6716 # The option is referenced via a variable to avoid confusing sed.
6717 lt_compile=`echo "$ac_compile" | $SED \
6718 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6719 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6720 -e 's:$: $lt_compiler_flag:'`
6721 (eval echo "\"\$as_me:6721: $lt_compile\"" >&5)
6722 (eval "$lt_compile" 2>conftest.err)
6723 ac_status=$?
6724 cat conftest.err >&5
6725 echo "$as_me:6725: \$? = $ac_status" >&5
6726 if (exit $ac_status) && test -s "$ac_outfile"; then
6727 # The compiler can only warn and ignore the option if not recognized
6728 # So say no if there are warnings other than the usual output.
6729 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6730 $SED '/^$/d' conftest.err >conftest.er2
6731 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6732 lt_prog_compiler_pic_works=yes
6735 $rm conftest*
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
6739 $as_echo "$lt_prog_compiler_pic_works" >&6; }
6741 if test x"$lt_prog_compiler_pic_works" = xyes; then
6742 case $lt_prog_compiler_pic in
6743 "" | " "*) ;;
6744 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6745 esac
6746 else
6747 lt_prog_compiler_pic=
6748 lt_prog_compiler_can_build_shared=no
6752 case "$host_os" in
6753 # For platforms which do not support PIC, -DPIC is meaningless:
6754 *djgpp*)
6755 lt_prog_compiler_pic=
6758 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6760 esac
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
6763 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
6764 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
6765 $as_echo_n "(cached) " >&6
6766 else
6767 lt_cv_prog_compiler_c_o=no
6768 $rm -r conftest 2>/dev/null
6769 mkdir conftest
6770 cd conftest
6771 mkdir out
6772 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6774 lt_compiler_flag="-o out/conftest2.$ac_objext"
6775 # Insert the option either (1) after the last *FLAGS variable, or
6776 # (2) before a word containing "conftest.", or (3) at the end.
6777 # Note that $ac_compile itself does not contain backslashes and begins
6778 # with a dollar sign (not a hyphen), so the echo should work correctly.
6779 lt_compile=`echo "$ac_compile" | $SED \
6780 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6782 -e 's:$: $lt_compiler_flag:'`
6783 (eval echo "\"\$as_me:6783: $lt_compile\"" >&5)
6784 (eval "$lt_compile" 2>out/conftest.err)
6785 ac_status=$?
6786 cat out/conftest.err >&5
6787 echo "$as_me:6787: \$? = $ac_status" >&5
6788 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6789 then
6790 # The compiler can only warn and ignore the option if not recognized
6791 # So say no if there are warnings
6792 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6793 $SED '/^$/d' out/conftest.err >out/conftest.er2
6794 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6795 lt_cv_prog_compiler_c_o=yes
6798 chmod u+w .
6799 $rm conftest*
6800 # SGI C++ compiler will create directory out/ii_files/ for
6801 # template instantiation
6802 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6803 $rm out/* && rmdir out
6804 cd ..
6805 rmdir conftest
6806 $rm conftest*
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
6810 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
6813 hard_links="nottested"
6814 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6815 # do not overwrite the value of need_locks provided by the user
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
6817 $as_echo_n "checking if we can lock with hard links... " >&6; }
6818 hard_links=yes
6819 $rm conftest*
6820 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6821 touch conftest.a
6822 ln conftest.a conftest.b 2>&5 || hard_links=no
6823 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
6825 $as_echo "$hard_links" >&6; }
6826 if test "$hard_links" = no; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6828 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6829 need_locks=warn
6831 else
6832 need_locks=no
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6836 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
6838 runpath_var=
6839 allow_undefined_flag=
6840 enable_shared_with_static_runtimes=no
6841 archive_cmds=
6842 archive_expsym_cmds=
6843 old_archive_From_new_cmds=
6844 old_archive_from_expsyms_cmds=
6845 export_dynamic_flag_spec=
6846 whole_archive_flag_spec=
6847 thread_safe_flag_spec=
6848 hardcode_libdir_flag_spec=
6849 hardcode_libdir_flag_spec_ld=
6850 hardcode_libdir_separator=
6851 hardcode_direct=no
6852 hardcode_minus_L=no
6853 hardcode_shlibpath_var=unsupported
6854 link_all_deplibs=unknown
6855 hardcode_automatic=no
6856 module_cmds=
6857 module_expsym_cmds=
6858 always_export_symbols=no
6859 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6860 # include_expsyms should be a list of space-separated symbols to be *always*
6861 # included in the symbol list
6862 include_expsyms=
6863 # exclude_expsyms can be an extended regexp of symbols to exclude
6864 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6865 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6866 # as well as any symbol that contains `d'.
6867 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6868 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6869 # platforms (ab)use it in PIC code, but their linkers get confused if
6870 # the symbol is explicitly referenced. Since portable code cannot
6871 # rely on this symbol name, it's probably fine to never include it in
6872 # preloaded symbol tables.
6873 extract_expsyms_cmds=
6874 # Just being paranoid about ensuring that cc_basename is set.
6875 for cc_temp in $compiler""; do
6876 case $cc_temp in
6877 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6878 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6879 \-*) ;;
6880 *) break;;
6881 esac
6882 done
6883 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6885 case $host_os in
6886 cygwin* | mingw* | pw32*)
6887 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6888 # When not using gcc, we currently assume that we are using
6889 # Microsoft Visual C++.
6890 if test "$GCC" != yes; then
6891 with_gnu_ld=no
6894 openbsd*)
6895 with_gnu_ld=no
6897 esac
6899 ld_shlibs=yes
6900 if test "$with_gnu_ld" = yes; then
6901 # If archive_cmds runs LD, not CC, wlarc should be empty
6902 wlarc='${wl}'
6904 # Set some defaults for GNU ld with shared library support. These
6905 # are reset later if shared libraries are not supported. Putting them
6906 # here allows them to be overridden if necessary.
6907 runpath_var=LD_RUN_PATH
6908 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6909 export_dynamic_flag_spec='${wl}--export-dynamic'
6910 # ancient GNU ld didn't support --whole-archive et. al.
6911 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6912 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6913 else
6914 whole_archive_flag_spec=
6916 supports_anon_versioning=no
6917 case `$LD -v 2>/dev/null` in
6918 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6919 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6920 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6921 *\ 2.11.*) ;; # other 2.11 versions
6922 *) supports_anon_versioning=yes ;;
6923 esac
6925 # See if GNU ld supports shared libraries.
6926 case $host_os in
6927 aix3* | aix4* | aix5*)
6928 # On AIX/PPC, the GNU linker is very broken
6929 if test "$host_cpu" != ia64; then
6930 ld_shlibs=no
6931 cat <<EOF 1>&2
6933 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6934 *** to be unable to reliably create shared libraries on AIX.
6935 *** Therefore, libtool is disabling shared libraries support. If you
6936 *** really care for shared libraries, you may want to modify your PATH
6937 *** so that a non-GNU linker is found, and then restart.
6943 amigaos*)
6944 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)'
6945 hardcode_libdir_flag_spec='-L$libdir'
6946 hardcode_minus_L=yes
6948 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6949 # that the semantics of dynamic libraries on AmigaOS, at least up
6950 # to version 4, is to share data among multiple programs linked
6951 # with the same dynamic library. Since this doesn't match the
6952 # behavior of shared libraries on other platforms, we can't use
6953 # them.
6954 ld_shlibs=no
6957 beos*)
6958 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6959 allow_undefined_flag=unsupported
6960 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6961 # support --undefined. This deserves some investigation. FIXME
6962 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6963 else
6964 ld_shlibs=no
6968 cygwin* | mingw* | pw32*)
6969 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6970 # as there is no search path for DLLs.
6971 hardcode_libdir_flag_spec='-L$libdir'
6972 allow_undefined_flag=unsupported
6973 always_export_symbols=no
6974 enable_shared_with_static_runtimes=yes
6975 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6977 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6979 # If the export-symbols file already is a .def file (1st line
6980 # is EXPORTS), use it as is; otherwise, prepend...
6981 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6982 cp $export_symbols $output_objdir/$soname.def;
6983 else
6984 echo EXPORTS > $output_objdir/$soname.def;
6985 cat $export_symbols >> $output_objdir/$soname.def;
6987 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6988 else
6989 ld_shlibs=no
6993 linux*)
6994 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6995 tmp_addflag=
6996 case $cc_basename,$host_cpu in
6997 pgcc*) # Portland Group C compiler
6998 whole_archive_flag_spec=
7000 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
7001 whole_archive_flag_spec=
7002 tmp_addflag=' -fpic -Mnomain' ;;
7003 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7004 tmp_addflag=' -i_dynamic' ;;
7005 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7006 tmp_addflag=' -i_dynamic -nofor_main' ;;
7007 ifc* | ifort*) # Intel Fortran compiler
7008 tmp_addflag=' -nofor_main' ;;
7009 esac
7010 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7012 if test $supports_anon_versioning = yes; then
7013 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7014 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7015 $echo "local: *; };" >> $output_objdir/$libname.ver~
7016 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7018 else
7019 ld_shlibs=no
7023 netbsd*)
7024 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7025 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7026 wlarc=
7027 else
7028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7029 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7033 solaris* | sysv5*)
7034 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7035 ld_shlibs=no
7036 cat <<EOF 1>&2
7038 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7039 *** create shared libraries on Solaris systems. Therefore, libtool
7040 *** is disabling shared libraries support. We urge you to upgrade GNU
7041 *** binutils to release 2.9.1 or newer. Another option is to modify
7042 *** your PATH or compiler configuration so that the native linker is
7043 *** used, and then restart.
7046 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7049 else
7050 ld_shlibs=no
7054 sunos4*)
7055 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7056 wlarc=
7057 hardcode_direct=yes
7058 hardcode_shlibpath_var=no
7062 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7064 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7065 else
7066 ld_shlibs=no
7069 esac
7071 if test "$ld_shlibs" = no; then
7072 runpath_var=
7073 hardcode_libdir_flag_spec=
7074 export_dynamic_flag_spec=
7075 whole_archive_flag_spec=
7077 else
7078 # PORTME fill in a description of your system's linker (not GNU ld)
7079 case $host_os in
7080 aix3*)
7081 allow_undefined_flag=unsupported
7082 always_export_symbols=yes
7083 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'
7084 # Note: this linker hardcodes the directories in LIBPATH if there
7085 # are no directories specified by -L.
7086 hardcode_minus_L=yes
7087 if test "$GCC" = yes && test -z "$link_static_flag"; then
7088 # Neither direct hardcoding nor static linking is supported with a
7089 # broken collect2.
7090 hardcode_direct=unsupported
7094 aix4* | aix5*)
7095 if test "$host_cpu" = ia64; then
7096 # On IA64, the linker does run time linking by default, so we don't
7097 # have to do anything special.
7098 aix_use_runtimelinking=no
7099 exp_sym_flag='-Bexport'
7100 no_entry_flag=""
7101 else
7102 # If we're using GNU nm, then we don't want the "-C" option.
7103 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7104 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7105 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'
7106 else
7107 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'
7109 aix_use_runtimelinking=no
7111 # Test if we are trying to use run time linking or normal
7112 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7113 # need to do runtime linking.
7114 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7115 for ld_flag in $LDFLAGS; do
7116 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7117 aix_use_runtimelinking=yes
7118 break
7120 done
7121 esac
7123 exp_sym_flag='-bexport'
7124 no_entry_flag='-bnoentry'
7127 # When large executables or shared objects are built, AIX ld can
7128 # have problems creating the table of contents. If linking a library
7129 # or program results in "error TOC overflow" add -mminimal-toc to
7130 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7131 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7133 archive_cmds=''
7134 hardcode_direct=yes
7135 hardcode_libdir_separator=':'
7136 link_all_deplibs=yes
7138 if test "$GCC" = yes; then
7139 case $host_os in aix4.[012]|aix4.[012].*)
7140 # We only want to do this on AIX 4.2 and lower, the check
7141 # below for broken collect2 doesn't work under 4.3+
7142 collect2name=`${CC} -print-prog-name=collect2`
7143 if test -f "$collect2name" && \
7144 strings "$collect2name" | grep resolve_lib_name >/dev/null
7145 then
7146 # We have reworked collect2
7147 hardcode_direct=yes
7148 else
7149 # We have old collect2
7150 hardcode_direct=unsupported
7151 # It fails to find uninstalled libraries when the uninstalled
7152 # path is not listed in the libpath. Setting hardcode_minus_L
7153 # to unsupported forces relinking
7154 hardcode_minus_L=yes
7155 hardcode_libdir_flag_spec='-L$libdir'
7156 hardcode_libdir_separator=
7158 esac
7159 shared_flag='-shared'
7160 if test "$aix_use_runtimelinking" = yes; then
7161 shared_flag="$shared_flag "'${wl}-G'
7163 else
7164 # not using gcc
7165 if test "$host_cpu" = ia64; then
7166 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7167 # chokes on -Wl,-G. The following line is correct:
7168 shared_flag='-G'
7169 else
7170 if test "$aix_use_runtimelinking" = yes; then
7171 shared_flag='${wl}-G'
7172 else
7173 shared_flag='${wl}-bM:SRE'
7178 # It seems that -bexpall does not export symbols beginning with
7179 # underscore (_), so it is better to generate a list of symbols to export.
7180 always_export_symbols=yes
7181 if test "$aix_use_runtimelinking" = yes; then
7182 # Warning - without using the other runtime loading flags (-brtl),
7183 # -berok will link without error, but may produce a broken library.
7184 allow_undefined_flag='-berok'
7185 # Determine the default libpath from the value encoded in an empty executable.
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7190 main ()
7194 return 0;
7196 _ACEOF
7197 if ac_fn_c_try_link "$LINENO"; then :
7199 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7201 # Check for a 64-bit object if we didn't find anything.
7202 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; }
7203 }'`; fi
7205 rm -f core conftest.err conftest.$ac_objext \
7206 conftest$ac_exeext conftest.$ac_ext
7207 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7209 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7210 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"
7211 else
7212 if test "$host_cpu" = ia64; then
7213 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7214 allow_undefined_flag="-z nodefs"
7215 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"
7216 else
7217 # Determine the default libpath from the value encoded in an empty executable.
7218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h. */
7222 main ()
7226 return 0;
7228 _ACEOF
7229 if ac_fn_c_try_link "$LINENO"; then :
7231 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7233 # Check for a 64-bit object if we didn't find anything.
7234 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; }
7235 }'`; fi
7237 rm -f core conftest.err conftest.$ac_objext \
7238 conftest$ac_exeext conftest.$ac_ext
7239 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7241 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7242 # Warning - without using the other run time loading flags,
7243 # -berok will link without error, but may produce a broken library.
7244 no_undefined_flag=' ${wl}-bernotok'
7245 allow_undefined_flag=' ${wl}-berok'
7246 # -bexpall does not export symbols beginning with underscore (_)
7247 always_export_symbols=yes
7248 # Exported symbols can be pulled into shared objects from archives
7249 whole_archive_flag_spec=' '
7250 archive_cmds_need_lc=yes
7251 # This is similar to how AIX traditionally builds it's shared libraries.
7252 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'
7257 amigaos*)
7258 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)'
7259 hardcode_libdir_flag_spec='-L$libdir'
7260 hardcode_minus_L=yes
7261 # see comment about different semantics on the GNU ld section
7262 ld_shlibs=no
7265 bsdi[45]*)
7266 export_dynamic_flag_spec=-rdynamic
7269 cygwin* | mingw* | pw32*)
7270 # When not using gcc, we currently assume that we are using
7271 # Microsoft Visual C++.
7272 # hardcode_libdir_flag_spec is actually meaningless, as there is
7273 # no search path for DLLs.
7274 hardcode_libdir_flag_spec=' '
7275 allow_undefined_flag=unsupported
7276 # Tell ltmain to make .lib files, not .a files.
7277 libext=lib
7278 # Tell ltmain to make .dll files, not .so files.
7279 shrext_cmds=".dll"
7280 # FIXME: Setting linknames here is a bad hack.
7281 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7282 # The linker will automatically build a .lib file if we build a DLL.
7283 old_archive_From_new_cmds='true'
7284 # FIXME: Should let the user specify the lib program.
7285 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7286 fix_srcfile_path='`cygpath -w "$srcfile"`'
7287 enable_shared_with_static_runtimes=yes
7290 darwin* | rhapsody*)
7291 case "$host_os" in
7292 rhapsody* | darwin1.[012])
7293 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7295 *) # Darwin 1.3 on
7296 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7297 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7298 else
7299 case ${MACOSX_DEPLOYMENT_TARGET} in
7300 10.[012])
7301 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7303 10.*)
7304 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7306 esac
7309 esac
7310 archive_cmds_need_lc=no
7311 hardcode_direct=no
7312 hardcode_automatic=yes
7313 hardcode_shlibpath_var=unsupported
7314 whole_archive_flag_spec=''
7315 link_all_deplibs=yes
7316 if test "$GCC" = yes ; then
7317 output_verbose_link_cmd='echo'
7318 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7319 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7320 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7321 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}'
7322 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}'
7323 else
7324 case $cc_basename in
7325 xlc*)
7326 output_verbose_link_cmd='echo'
7327 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7328 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7329 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7330 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}'
7331 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}'
7334 ld_shlibs=no
7336 esac
7340 dgux*)
7341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7342 hardcode_libdir_flag_spec='-L$libdir'
7343 hardcode_shlibpath_var=no
7346 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7347 # support. Future versions do this automatically, but an explicit c++rt0.o
7348 # does not break anything, and helps significantly (at the cost of a little
7349 # extra space).
7350 freebsd2.2*)
7351 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7352 hardcode_libdir_flag_spec='-R$libdir'
7353 hardcode_direct=yes
7354 hardcode_shlibpath_var=no
7357 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7358 freebsd2.*)
7359 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7360 hardcode_direct=yes
7361 hardcode_minus_L=yes
7362 hardcode_shlibpath_var=no
7365 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7366 freebsd* | kfreebsd*-gnu | dragonfly*)
7367 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7368 hardcode_libdir_flag_spec='-R$libdir'
7369 hardcode_direct=yes
7370 hardcode_shlibpath_var=no
7373 hpux9*)
7374 if test "$GCC" = yes; then
7375 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'
7376 else
7377 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'
7379 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7380 hardcode_libdir_separator=:
7381 hardcode_direct=yes
7383 # hardcode_minus_L: Not really in the search PATH,
7384 # but as the default location of the library.
7385 hardcode_minus_L=yes
7386 export_dynamic_flag_spec='${wl}-E'
7389 hpux10* | hpux11*)
7390 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7391 case "$host_cpu" in
7392 hppa*64*|ia64*)
7393 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7396 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7398 esac
7399 else
7400 case "$host_cpu" in
7401 hppa*64*|ia64*)
7402 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7405 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7407 esac
7409 if test "$with_gnu_ld" = no; then
7410 case "$host_cpu" in
7411 hppa*64*)
7412 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7413 hardcode_libdir_flag_spec_ld='+b $libdir'
7414 hardcode_libdir_separator=:
7415 hardcode_direct=no
7416 hardcode_shlibpath_var=no
7418 ia64*)
7419 hardcode_libdir_flag_spec='-L$libdir'
7420 hardcode_direct=no
7421 hardcode_shlibpath_var=no
7423 # hardcode_minus_L: Not really in the search PATH,
7424 # but as the default location of the library.
7425 hardcode_minus_L=yes
7428 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7429 hardcode_libdir_separator=:
7430 hardcode_direct=yes
7431 export_dynamic_flag_spec='${wl}-E'
7433 # hardcode_minus_L: Not really in the search PATH,
7434 # but as the default location of the library.
7435 hardcode_minus_L=yes
7437 esac
7441 irix5* | irix6* | nonstopux*)
7442 if test "$GCC" = yes; then
7443 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'
7444 else
7445 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'
7446 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7449 hardcode_libdir_separator=:
7450 link_all_deplibs=yes
7453 netbsd*)
7454 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7455 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7456 else
7457 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7459 hardcode_libdir_flag_spec='-R$libdir'
7460 hardcode_direct=yes
7461 hardcode_shlibpath_var=no
7464 newsos6)
7465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7466 hardcode_direct=yes
7467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7468 hardcode_libdir_separator=:
7469 hardcode_shlibpath_var=no
7472 openbsd*)
7473 hardcode_direct=yes
7474 hardcode_shlibpath_var=no
7475 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7476 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7477 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7478 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7479 export_dynamic_flag_spec='${wl}-E'
7480 else
7481 case $host_os in
7482 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7483 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7484 hardcode_libdir_flag_spec='-R$libdir'
7487 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7488 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7490 esac
7494 os2*)
7495 hardcode_libdir_flag_spec='-L$libdir'
7496 hardcode_minus_L=yes
7497 allow_undefined_flag=unsupported
7498 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'
7499 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7502 osf3*)
7503 if test "$GCC" = yes; then
7504 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7505 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'
7506 else
7507 allow_undefined_flag=' -expect_unresolved \*'
7508 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'
7510 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7511 hardcode_libdir_separator=:
7514 osf4* | osf5*) # as osf3* with the addition of -msym flag
7515 if test "$GCC" = yes; then
7516 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7517 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'
7518 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7519 else
7520 allow_undefined_flag=' -expect_unresolved \*'
7521 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'
7522 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7523 $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'
7525 # Both c and cxx compiler support -rpath directly
7526 hardcode_libdir_flag_spec='-rpath $libdir'
7528 hardcode_libdir_separator=:
7531 sco3.2v5*)
7532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7533 hardcode_shlibpath_var=no
7534 export_dynamic_flag_spec='${wl}-Bexport'
7535 runpath_var=LD_RUN_PATH
7536 hardcode_runpath_var=yes
7539 solaris*)
7540 no_undefined_flag=' -z text'
7541 if test "$GCC" = yes; then
7542 wlarc='${wl}'
7543 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7544 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7545 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7546 else
7547 wlarc=''
7548 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7549 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7550 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7552 hardcode_libdir_flag_spec='-R$libdir'
7553 hardcode_shlibpath_var=no
7554 case $host_os in
7555 solaris2.[0-5] | solaris2.[0-5].*) ;;
7557 # The compiler driver will combine linker options so we
7558 # cannot just pass the convience library names through
7559 # without $wl, iff we do not link with $LD.
7560 # Luckily, gcc supports the same syntax we need for Sun Studio.
7561 # Supported since Solaris 2.6 (maybe 2.5.1?)
7562 case $wlarc in
7564 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7566 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' ;;
7567 esac ;;
7568 esac
7569 link_all_deplibs=yes
7572 sunos4*)
7573 if test "x$host_vendor" = xsequent; then
7574 # Use $CC to link under sequent, because it throws in some extra .o
7575 # files that make .init and .fini sections work.
7576 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7577 else
7578 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7580 hardcode_libdir_flag_spec='-L$libdir'
7581 hardcode_direct=yes
7582 hardcode_minus_L=yes
7583 hardcode_shlibpath_var=no
7586 sysv4)
7587 case $host_vendor in
7588 sni)
7589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7590 hardcode_direct=yes # is this really true???
7592 siemens)
7593 ## LD is ld it makes a PLAMLIB
7594 ## CC just makes a GrossModule.
7595 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7596 reload_cmds='$CC -r -o $output$reload_objs'
7597 hardcode_direct=no
7599 motorola)
7600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7601 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7603 esac
7604 runpath_var='LD_RUN_PATH'
7605 hardcode_shlibpath_var=no
7608 sysv4.3*)
7609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7610 hardcode_shlibpath_var=no
7611 export_dynamic_flag_spec='-Bexport'
7614 sysv4*MP*)
7615 if test -d /usr/nec; then
7616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7617 hardcode_shlibpath_var=no
7618 runpath_var=LD_RUN_PATH
7619 hardcode_runpath_var=yes
7620 ld_shlibs=yes
7624 sysv4.2uw2*)
7625 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7626 hardcode_direct=yes
7627 hardcode_minus_L=no
7628 hardcode_shlibpath_var=no
7629 hardcode_runpath_var=yes
7630 runpath_var=LD_RUN_PATH
7633 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7634 no_undefined_flag='${wl}-z ${wl}text'
7635 if test "$GCC" = yes; then
7636 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7637 else
7638 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7640 runpath_var='LD_RUN_PATH'
7641 hardcode_shlibpath_var=no
7644 sysv5*)
7645 no_undefined_flag=' -z text'
7646 # $CC -shared without GNU ld will not create a library from C++
7647 # object files and a static libstdc++, better avoid it by now
7648 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7649 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7650 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7651 hardcode_libdir_flag_spec=
7652 hardcode_shlibpath_var=no
7653 runpath_var='LD_RUN_PATH'
7656 uts4*)
7657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7658 hardcode_libdir_flag_spec='-L$libdir'
7659 hardcode_shlibpath_var=no
7663 ld_shlibs=no
7665 esac
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
7669 $as_echo "$ld_shlibs" >&6; }
7670 test "$ld_shlibs" = no && can_build_shared=no
7672 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7673 if test "$GCC" = yes; then
7674 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7678 # Do we need to explicitly link libc?
7680 case "x$archive_cmds_need_lc" in
7681 x|xyes)
7682 # Assume -lc should be added
7683 archive_cmds_need_lc=yes
7685 if test "$enable_shared" = yes && test "$GCC" = yes; then
7686 case $archive_cmds in
7687 *'~'*)
7688 # FIXME: we may have to deal with multi-command sequences.
7690 '$CC '*)
7691 # Test whether the compiler implicitly links with -lc since on some
7692 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7693 # to ld, don't add -lc before -lgcc.
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
7695 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
7696 $rm conftest*
7697 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7700 (eval $ac_compile) 2>&5
7701 ac_status=$?
7702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7703 test $ac_status = 0; } 2>conftest.err; then
7704 soname=conftest
7705 lib=conftest
7706 libobjs=conftest.$ac_objext
7707 deplibs=
7708 wl=$lt_prog_compiler_wl
7709 compiler_flags=-v
7710 linker_flags=-v
7711 verstring=
7712 output_objdir=.
7713 libname=conftest
7714 lt_save_allow_undefined_flag=$allow_undefined_flag
7715 allow_undefined_flag=
7716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
7717 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7718 ac_status=$?
7719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7720 test $ac_status = 0; }
7721 then
7722 archive_cmds_need_lc=no
7723 else
7724 archive_cmds_need_lc=yes
7726 allow_undefined_flag=$lt_save_allow_undefined_flag
7727 else
7728 cat conftest.err 1>&5
7730 $rm conftest*
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
7732 $as_echo "$archive_cmds_need_lc" >&6; }
7734 esac
7737 esac
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
7740 $as_echo_n "checking dynamic linker characteristics... " >&6; }
7741 library_names_spec=
7742 libname_spec='lib$name'
7743 soname_spec=
7744 shrext_cmds=".so"
7745 postinstall_cmds=
7746 postuninstall_cmds=
7747 finish_cmds=
7748 finish_eval=
7749 shlibpath_var=
7750 shlibpath_overrides_runpath=unknown
7751 version_type=none
7752 dynamic_linker="$host_os ld.so"
7753 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7754 if test "$GCC" = yes; then
7755 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7756 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7757 # if the path contains ";" then we assume it to be the separator
7758 # otherwise default to the standard path separator (i.e. ":") - it is
7759 # assumed that no part of a normal pathname contains ";" but that should
7760 # okay in the real world where ";" in dirpaths is itself problematic.
7761 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7762 else
7763 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7765 else
7766 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7768 need_lib_prefix=unknown
7769 hardcode_into_libs=no
7771 # when you set need_version to no, make sure it does not cause -set_version
7772 # flags to be left without arguments
7773 need_version=unknown
7775 case $host_os in
7776 aix3*)
7777 version_type=linux
7778 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7779 shlibpath_var=LIBPATH
7781 # AIX 3 has no versioning support, so we append a major version to the name.
7782 soname_spec='${libname}${release}${shared_ext}$major'
7785 aix4* | aix5*)
7786 version_type=linux
7787 need_lib_prefix=no
7788 need_version=no
7789 hardcode_into_libs=yes
7790 if test "$host_cpu" = ia64; then
7791 # AIX 5 supports IA64
7792 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7793 shlibpath_var=LD_LIBRARY_PATH
7794 else
7795 # With GCC up to 2.95.x, collect2 would create an import file
7796 # for dependence libraries. The import file would start with
7797 # the line `#! .'. This would cause the generated library to
7798 # depend on `.', always an invalid library. This was fixed in
7799 # development snapshots of GCC prior to 3.0.
7800 case $host_os in
7801 aix4 | aix4.[01] | aix4.[01].*)
7802 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7803 echo ' yes '
7804 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7806 else
7807 can_build_shared=no
7810 esac
7811 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7812 # soname into executable. Probably we can add versioning support to
7813 # collect2, so additional links can be useful in future.
7814 if test "$aix_use_runtimelinking" = yes; then
7815 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7816 # instead of lib<name>.a to let people know that these are not
7817 # typical AIX shared libraries.
7818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7819 else
7820 # We preserve .a as extension for shared libraries through AIX4.2
7821 # and later when we are not doing run time linking.
7822 library_names_spec='${libname}${release}.a $libname.a'
7823 soname_spec='${libname}${release}${shared_ext}$major'
7825 shlibpath_var=LIBPATH
7829 amigaos*)
7830 library_names_spec='$libname.ixlibrary $libname.a'
7831 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7832 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'
7835 beos*)
7836 library_names_spec='${libname}${shared_ext}'
7837 dynamic_linker="$host_os ld.so"
7838 shlibpath_var=LIBRARY_PATH
7841 bsdi[45]*)
7842 version_type=linux
7843 need_version=no
7844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7845 soname_spec='${libname}${release}${shared_ext}$major'
7846 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7847 shlibpath_var=LD_LIBRARY_PATH
7848 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7849 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7850 # the default ld.so.conf also contains /usr/contrib/lib and
7851 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7852 # libtool to hard-code these into programs
7855 cygwin* | mingw* | pw32*)
7856 version_type=windows
7857 shrext_cmds=".dll"
7858 need_version=no
7859 need_lib_prefix=no
7861 case $GCC,$host_os in
7862 yes,cygwin* | yes,mingw* | yes,pw32*)
7863 library_names_spec='$libname.dll.a'
7864 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7865 postinstall_cmds='base_file=`basename \${file}`~
7866 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7867 dldir=$destdir/`dirname \$dlpath`~
7868 test -d \$dldir || mkdir -p \$dldir~
7869 $install_prog $dir/$dlname \$dldir/$dlname'
7870 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7871 dlpath=$dir/\$dldll~
7872 $rm \$dlpath'
7873 shlibpath_overrides_runpath=yes
7875 case $host_os in
7876 cygwin*)
7877 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7878 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7879 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7881 mingw*)
7882 # MinGW DLLs use traditional 'lib' prefix
7883 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7884 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7885 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7886 # It is most probably a Windows format PATH printed by
7887 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7888 # path with ; separators, and with drive letters. We can handle the
7889 # drive letters (cygwin fileutils understands them), so leave them,
7890 # especially as we might pass files found there to a mingw objdump,
7891 # which wouldn't understand a cygwinified path. Ahh.
7892 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7893 else
7894 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7897 pw32*)
7898 # pw32 DLLs use 'pw' prefix rather than 'lib'
7899 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7901 esac
7905 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7907 esac
7908 dynamic_linker='Win32 ld.exe'
7909 # FIXME: first we should search . and the directory the executable is in
7910 shlibpath_var=PATH
7913 darwin* | rhapsody*)
7914 dynamic_linker="$host_os dyld"
7915 version_type=darwin
7916 need_lib_prefix=no
7917 need_version=no
7918 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7919 soname_spec='${libname}${release}${major}$shared_ext'
7920 shlibpath_overrides_runpath=yes
7921 shlibpath_var=DYLD_LIBRARY_PATH
7922 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7923 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7924 if test "$GCC" = yes; then
7925 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"`
7926 else
7927 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7929 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7932 dgux*)
7933 version_type=linux
7934 need_lib_prefix=no
7935 need_version=no
7936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7937 soname_spec='${libname}${release}${shared_ext}$major'
7938 shlibpath_var=LD_LIBRARY_PATH
7941 kfreebsd*-gnu)
7942 version_type=linux
7943 need_lib_prefix=no
7944 need_version=no
7945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7946 soname_spec='${libname}${release}${shared_ext}$major'
7947 shlibpath_var=LD_LIBRARY_PATH
7948 shlibpath_overrides_runpath=no
7949 hardcode_into_libs=yes
7950 dynamic_linker='GNU ld.so'
7953 freebsd* | dragonfly*)
7954 # DragonFly does not have aout. When/if they implement a new
7955 # versioning mechanism, adjust this.
7956 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7957 version_type=freebsd-$objformat
7958 case $version_type in
7959 freebsd-elf*)
7960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7961 need_version=no
7962 need_lib_prefix=no
7964 freebsd-*)
7965 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7966 need_version=yes
7968 esac
7969 shlibpath_var=LD_LIBRARY_PATH
7970 case $host_os in
7971 freebsd2.*)
7972 shlibpath_overrides_runpath=yes
7974 freebsd3.[01]* | freebsdelf3.[01]*)
7975 shlibpath_overrides_runpath=yes
7976 hardcode_into_libs=yes
7978 *) # from 3.2 on
7979 shlibpath_overrides_runpath=no
7980 hardcode_into_libs=yes
7982 esac
7985 gnu*)
7986 version_type=linux
7987 need_lib_prefix=no
7988 need_version=no
7989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7990 soname_spec='${libname}${release}${shared_ext}$major'
7991 shlibpath_var=LD_LIBRARY_PATH
7992 hardcode_into_libs=yes
7995 hpux9* | hpux10* | hpux11*)
7996 # Give a soname corresponding to the major version so that dld.sl refuses to
7997 # link against other versions.
7998 version_type=sunos
7999 need_lib_prefix=no
8000 need_version=no
8001 case "$host_cpu" in
8002 ia64*)
8003 shrext_cmds='.so'
8004 hardcode_into_libs=yes
8005 dynamic_linker="$host_os dld.so"
8006 shlibpath_var=LD_LIBRARY_PATH
8007 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8009 soname_spec='${libname}${release}${shared_ext}$major'
8010 if test "X$HPUX_IA64_MODE" = X32; then
8011 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8012 else
8013 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8015 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8017 hppa*64*)
8018 shrext_cmds='.sl'
8019 hardcode_into_libs=yes
8020 dynamic_linker="$host_os dld.sl"
8021 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8022 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8024 soname_spec='${libname}${release}${shared_ext}$major'
8025 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8026 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8029 shrext_cmds='.sl'
8030 dynamic_linker="$host_os dld.sl"
8031 shlibpath_var=SHLIB_PATH
8032 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8034 soname_spec='${libname}${release}${shared_ext}$major'
8036 esac
8037 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8038 postinstall_cmds='chmod 555 $lib'
8041 irix5* | irix6* | nonstopux*)
8042 case $host_os in
8043 nonstopux*) version_type=nonstopux ;;
8045 if test "$lt_cv_prog_gnu_ld" = yes; then
8046 version_type=linux
8047 else
8048 version_type=irix
8049 fi ;;
8050 esac
8051 need_lib_prefix=no
8052 need_version=no
8053 soname_spec='${libname}${release}${shared_ext}$major'
8054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8055 case $host_os in
8056 irix5* | nonstopux*)
8057 libsuff= shlibsuff=
8060 case $LD in # libtool.m4 will add one of these switches to LD
8061 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8062 libsuff= shlibsuff= libmagic=32-bit;;
8063 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8064 libsuff=32 shlibsuff=N32 libmagic=N32;;
8065 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8066 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8067 *) libsuff= shlibsuff= libmagic=never-match;;
8068 esac
8070 esac
8071 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8072 shlibpath_overrides_runpath=no
8073 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8074 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8075 hardcode_into_libs=yes
8078 # No shared lib support for Linux oldld, aout, or coff.
8079 linux*oldld* | linux*aout* | linux*coff*)
8080 dynamic_linker=no
8083 # This must be Linux ELF.
8084 linux*)
8085 version_type=linux
8086 need_lib_prefix=no
8087 need_version=no
8088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8089 soname_spec='${libname}${release}${shared_ext}$major'
8090 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8091 shlibpath_var=LD_LIBRARY_PATH
8092 shlibpath_overrides_runpath=no
8093 # This implies no fast_install, which is unacceptable.
8094 # Some rework will be needed to allow for fast_install
8095 # before this can be enabled.
8096 hardcode_into_libs=yes
8098 # find out which ABI we are using
8099 libsuff=
8100 case "$host_cpu" in
8101 x86_64*|s390x*|powerpc64*)
8102 echo '#line 8102 "configure"' > conftest.$ac_ext
8103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8104 (eval $ac_compile) 2>&5
8105 ac_status=$?
8106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8107 test $ac_status = 0; }; then
8108 case `/usr/bin/file conftest.$ac_objext` in
8109 *64-bit*)
8110 libsuff=64
8111 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8113 esac
8115 rm -rf conftest*
8117 esac
8119 # Append ld.so.conf contents to the search path
8120 if test -f /etc/ld.so.conf; then
8121 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' ' '`
8122 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8125 # We used to test for /lib/ld.so.1 and disable shared libraries on
8126 # powerpc, because MkLinux only supported shared libraries with the
8127 # GNU dynamic linker. Since this was broken with cross compilers,
8128 # most powerpc-linux boxes support dynamic linking these days and
8129 # people can always --disable-shared, the test was removed, and we
8130 # assume the GNU/Linux dynamic linker is in use.
8131 dynamic_linker='GNU/Linux ld.so'
8134 knetbsd*-gnu)
8135 version_type=linux
8136 need_lib_prefix=no
8137 need_version=no
8138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8139 soname_spec='${libname}${release}${shared_ext}$major'
8140 shlibpath_var=LD_LIBRARY_PATH
8141 shlibpath_overrides_runpath=no
8142 hardcode_into_libs=yes
8143 dynamic_linker='GNU ld.so'
8146 netbsd*)
8147 version_type=sunos
8148 need_lib_prefix=no
8149 need_version=no
8150 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8153 dynamic_linker='NetBSD (a.out) ld.so'
8154 else
8155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8156 soname_spec='${libname}${release}${shared_ext}$major'
8157 dynamic_linker='NetBSD ld.elf_so'
8159 shlibpath_var=LD_LIBRARY_PATH
8160 shlibpath_overrides_runpath=yes
8161 hardcode_into_libs=yes
8164 newsos6)
8165 version_type=linux
8166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8167 shlibpath_var=LD_LIBRARY_PATH
8168 shlibpath_overrides_runpath=yes
8171 nto-qnx*)
8172 version_type=linux
8173 need_lib_prefix=no
8174 need_version=no
8175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8176 soname_spec='${libname}${release}${shared_ext}$major'
8177 shlibpath_var=LD_LIBRARY_PATH
8178 shlibpath_overrides_runpath=yes
8181 openbsd*)
8182 version_type=sunos
8183 need_lib_prefix=no
8184 need_version=no
8185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8187 shlibpath_var=LD_LIBRARY_PATH
8188 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8189 case $host_os in
8190 openbsd2.[89] | openbsd2.[89].*)
8191 shlibpath_overrides_runpath=no
8194 shlibpath_overrides_runpath=yes
8196 esac
8197 else
8198 shlibpath_overrides_runpath=yes
8202 os2*)
8203 libname_spec='$name'
8204 shrext_cmds=".dll"
8205 need_lib_prefix=no
8206 library_names_spec='$libname${shared_ext} $libname.a'
8207 dynamic_linker='OS/2 ld.exe'
8208 shlibpath_var=LIBPATH
8211 osf3* | osf4* | osf5*)
8212 version_type=osf
8213 need_lib_prefix=no
8214 need_version=no
8215 soname_spec='${libname}${release}${shared_ext}$major'
8216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8217 shlibpath_var=LD_LIBRARY_PATH
8218 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8219 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8222 sco3.2v5*)
8223 version_type=osf
8224 soname_spec='${libname}${release}${shared_ext}$major'
8225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8226 shlibpath_var=LD_LIBRARY_PATH
8229 solaris*)
8230 version_type=linux
8231 need_lib_prefix=no
8232 need_version=no
8233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8234 soname_spec='${libname}${release}${shared_ext}$major'
8235 shlibpath_var=LD_LIBRARY_PATH
8236 shlibpath_overrides_runpath=yes
8237 hardcode_into_libs=yes
8238 # ldd complains unless libraries are executable
8239 postinstall_cmds='chmod +x $lib'
8242 sunos4*)
8243 version_type=sunos
8244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8245 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8246 shlibpath_var=LD_LIBRARY_PATH
8247 shlibpath_overrides_runpath=yes
8248 if test "$with_gnu_ld" = yes; then
8249 need_lib_prefix=no
8251 need_version=yes
8254 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8255 version_type=linux
8256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8257 soname_spec='${libname}${release}${shared_ext}$major'
8258 shlibpath_var=LD_LIBRARY_PATH
8259 case $host_vendor in
8260 sni)
8261 shlibpath_overrides_runpath=no
8262 need_lib_prefix=no
8263 export_dynamic_flag_spec='${wl}-Blargedynsym'
8264 runpath_var=LD_RUN_PATH
8266 siemens)
8267 need_lib_prefix=no
8269 motorola)
8270 need_lib_prefix=no
8271 need_version=no
8272 shlibpath_overrides_runpath=no
8273 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8275 esac
8278 sysv4*MP*)
8279 if test -d /usr/nec ;then
8280 version_type=linux
8281 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8282 soname_spec='$libname${shared_ext}.$major'
8283 shlibpath_var=LD_LIBRARY_PATH
8287 uts4*)
8288 version_type=linux
8289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8290 soname_spec='${libname}${release}${shared_ext}$major'
8291 shlibpath_var=LD_LIBRARY_PATH
8295 dynamic_linker=no
8297 esac
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8299 $as_echo "$dynamic_linker" >&6; }
8300 test "$dynamic_linker" = no && can_build_shared=no
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8303 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
8304 hardcode_action=
8305 if test -n "$hardcode_libdir_flag_spec" || \
8306 test -n "$runpath_var" || \
8307 test "X$hardcode_automatic" = "Xyes" ; then
8309 # We can hardcode non-existant directories.
8310 if test "$hardcode_direct" != no &&
8311 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8312 # have to relink, otherwise we might link with an installed library
8313 # when we should be linking with a yet-to-be-installed one
8314 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8315 test "$hardcode_minus_L" != no; then
8316 # Linking always hardcodes the temporary library directory.
8317 hardcode_action=relink
8318 else
8319 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8320 hardcode_action=immediate
8322 else
8323 # We cannot hardcode anything, or else we can only hardcode existing
8324 # directories.
8325 hardcode_action=unsupported
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8328 $as_echo "$hardcode_action" >&6; }
8330 if test "$hardcode_action" = relink; then
8331 # Fast installation is not supported
8332 enable_fast_install=no
8333 elif test "$shlibpath_overrides_runpath" = yes ||
8334 test "$enable_shared" = no; then
8335 # Fast installation is not necessary
8336 enable_fast_install=needless
8339 striplib=
8340 old_striplib=
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8342 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
8343 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8344 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8345 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8347 $as_echo "yes" >&6; }
8348 else
8349 # FIXME - insert some real tests, host_os isn't really good enough
8350 case $host_os in
8351 darwin*)
8352 if test -n "$STRIP" ; then
8353 striplib="$STRIP -x"
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8355 $as_echo "yes" >&6; }
8356 else
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 $as_echo "no" >&6; }
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8363 $as_echo "no" >&6; }
8365 esac
8368 if test "x$enable_dlopen" != xyes; then
8369 enable_dlopen=unknown
8370 enable_dlopen_self=unknown
8371 enable_dlopen_self_static=unknown
8372 else
8373 lt_cv_dlopen=no
8374 lt_cv_dlopen_libs=
8376 case $host_os in
8377 beos*)
8378 lt_cv_dlopen="load_add_on"
8379 lt_cv_dlopen_libs=
8380 lt_cv_dlopen_self=yes
8383 mingw* | pw32*)
8384 lt_cv_dlopen="LoadLibrary"
8385 lt_cv_dlopen_libs=
8388 cygwin*)
8389 lt_cv_dlopen="dlopen"
8390 lt_cv_dlopen_libs=
8393 darwin*)
8394 # if libdl is installed we need to link against it
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8396 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8397 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8398 $as_echo_n "(cached) " >&6
8399 else
8400 ac_check_lib_save_LIBS=$LIBS
8401 LIBS="-ldl $LIBS"
8402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8403 /* end confdefs.h. */
8405 /* Override any GCC internal prototype to avoid an error.
8406 Use char because int might match the return type of a GCC
8407 builtin and then its argument prototype would still apply. */
8408 #ifdef __cplusplus
8409 extern "C"
8410 #endif
8411 char dlopen ();
8413 main ()
8415 return dlopen ();
8417 return 0;
8419 _ACEOF
8420 if ac_fn_c_try_link "$LINENO"; then :
8421 ac_cv_lib_dl_dlopen=yes
8422 else
8423 ac_cv_lib_dl_dlopen=no
8425 rm -f core conftest.err conftest.$ac_objext \
8426 conftest$ac_exeext conftest.$ac_ext
8427 LIBS=$ac_check_lib_save_LIBS
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8430 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8431 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
8432 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8433 else
8435 lt_cv_dlopen="dyld"
8436 lt_cv_dlopen_libs=
8437 lt_cv_dlopen_self=yes
8444 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
8445 if test "x$ac_cv_func_shl_load" = x""yes; then :
8446 lt_cv_dlopen="shl_load"
8447 else
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8449 $as_echo_n "checking for shl_load in -ldld... " >&6; }
8450 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
8451 $as_echo_n "(cached) " >&6
8452 else
8453 ac_check_lib_save_LIBS=$LIBS
8454 LIBS="-ldld $LIBS"
8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h. */
8458 /* Override any GCC internal prototype to avoid an error.
8459 Use char because int might match the return type of a GCC
8460 builtin and then its argument prototype would still apply. */
8461 #ifdef __cplusplus
8462 extern "C"
8463 #endif
8464 char shl_load ();
8466 main ()
8468 return shl_load ();
8470 return 0;
8472 _ACEOF
8473 if ac_fn_c_try_link "$LINENO"; then :
8474 ac_cv_lib_dld_shl_load=yes
8475 else
8476 ac_cv_lib_dld_shl_load=no
8478 rm -f core conftest.err conftest.$ac_objext \
8479 conftest$ac_exeext conftest.$ac_ext
8480 LIBS=$ac_check_lib_save_LIBS
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8483 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
8484 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
8485 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8486 else
8487 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
8488 if test "x$ac_cv_func_dlopen" = x""yes; then :
8489 lt_cv_dlopen="dlopen"
8490 else
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8492 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8493 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8494 $as_echo_n "(cached) " >&6
8495 else
8496 ac_check_lib_save_LIBS=$LIBS
8497 LIBS="-ldl $LIBS"
8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499 /* end confdefs.h. */
8501 /* Override any GCC internal prototype to avoid an error.
8502 Use char because int might match the return type of a GCC
8503 builtin and then its argument prototype would still apply. */
8504 #ifdef __cplusplus
8505 extern "C"
8506 #endif
8507 char dlopen ();
8509 main ()
8511 return dlopen ();
8513 return 0;
8515 _ACEOF
8516 if ac_fn_c_try_link "$LINENO"; then :
8517 ac_cv_lib_dl_dlopen=yes
8518 else
8519 ac_cv_lib_dl_dlopen=no
8521 rm -f core conftest.err conftest.$ac_objext \
8522 conftest$ac_exeext conftest.$ac_ext
8523 LIBS=$ac_check_lib_save_LIBS
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8526 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8527 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
8528 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8529 else
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8531 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
8532 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
8533 $as_echo_n "(cached) " >&6
8534 else
8535 ac_check_lib_save_LIBS=$LIBS
8536 LIBS="-lsvld $LIBS"
8537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h. */
8540 /* Override any GCC internal prototype to avoid an error.
8541 Use char because int might match the return type of a GCC
8542 builtin and then its argument prototype would still apply. */
8543 #ifdef __cplusplus
8544 extern "C"
8545 #endif
8546 char dlopen ();
8548 main ()
8550 return dlopen ();
8552 return 0;
8554 _ACEOF
8555 if ac_fn_c_try_link "$LINENO"; then :
8556 ac_cv_lib_svld_dlopen=yes
8557 else
8558 ac_cv_lib_svld_dlopen=no
8560 rm -f core conftest.err conftest.$ac_objext \
8561 conftest$ac_exeext conftest.$ac_ext
8562 LIBS=$ac_check_lib_save_LIBS
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8565 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
8566 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
8567 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8568 else
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8570 $as_echo_n "checking for dld_link in -ldld... " >&6; }
8571 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
8572 $as_echo_n "(cached) " >&6
8573 else
8574 ac_check_lib_save_LIBS=$LIBS
8575 LIBS="-ldld $LIBS"
8576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8577 /* end confdefs.h. */
8579 /* Override any GCC internal prototype to avoid an error.
8580 Use char because int might match the return type of a GCC
8581 builtin and then its argument prototype would still apply. */
8582 #ifdef __cplusplus
8583 extern "C"
8584 #endif
8585 char dld_link ();
8587 main ()
8589 return dld_link ();
8591 return 0;
8593 _ACEOF
8594 if ac_fn_c_try_link "$LINENO"; then :
8595 ac_cv_lib_dld_dld_link=yes
8596 else
8597 ac_cv_lib_dld_dld_link=no
8599 rm -f core conftest.err conftest.$ac_objext \
8600 conftest$ac_exeext conftest.$ac_ext
8601 LIBS=$ac_check_lib_save_LIBS
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8604 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
8605 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
8606 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8625 esac
8627 if test "x$lt_cv_dlopen" != xno; then
8628 enable_dlopen=yes
8629 else
8630 enable_dlopen=no
8633 case $lt_cv_dlopen in
8634 dlopen)
8635 save_CPPFLAGS="$CPPFLAGS"
8636 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8638 save_LDFLAGS="$LDFLAGS"
8639 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8641 save_LIBS="$LIBS"
8642 LIBS="$lt_cv_dlopen_libs $LIBS"
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8645 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
8646 if test "${lt_cv_dlopen_self+set}" = set; then :
8647 $as_echo_n "(cached) " >&6
8648 else
8649 if test "$cross_compiling" = yes; then :
8650 lt_cv_dlopen_self=cross
8651 else
8652 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8653 lt_status=$lt_dlunknown
8654 cat > conftest.$ac_ext <<EOF
8655 #line 8655 "configure"
8656 #include "confdefs.h"
8658 #if HAVE_DLFCN_H
8659 #include <dlfcn.h>
8660 #endif
8662 #include <stdio.h>
8664 #ifdef RTLD_GLOBAL
8665 # define LT_DLGLOBAL RTLD_GLOBAL
8666 #else
8667 # ifdef DL_GLOBAL
8668 # define LT_DLGLOBAL DL_GLOBAL
8669 # else
8670 # define LT_DLGLOBAL 0
8671 # endif
8672 #endif
8674 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8675 find out it does not work in some platform. */
8676 #ifndef LT_DLLAZY_OR_NOW
8677 # ifdef RTLD_LAZY
8678 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8679 # else
8680 # ifdef DL_LAZY
8681 # define LT_DLLAZY_OR_NOW DL_LAZY
8682 # else
8683 # ifdef RTLD_NOW
8684 # define LT_DLLAZY_OR_NOW RTLD_NOW
8685 # else
8686 # ifdef DL_NOW
8687 # define LT_DLLAZY_OR_NOW DL_NOW
8688 # else
8689 # define LT_DLLAZY_OR_NOW 0
8690 # endif
8691 # endif
8692 # endif
8693 # endif
8694 #endif
8696 #ifdef __cplusplus
8697 extern "C" void exit (int);
8698 #endif
8700 void fnord() { int i=42;}
8701 int main ()
8703 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8704 int status = $lt_dlunknown;
8706 if (self)
8708 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8709 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8710 /* dlclose (self); */
8713 exit (status);
8716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8717 (eval $ac_link) 2>&5
8718 ac_status=$?
8719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8720 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8721 (./conftest; exit; ) 2>/dev/null
8722 lt_status=$?
8723 case x$lt_status in
8724 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8725 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8726 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8727 esac
8728 else :
8729 # compilation failed
8730 lt_cv_dlopen_self=no
8733 rm -fr conftest*
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8738 $as_echo "$lt_cv_dlopen_self" >&6; }
8740 if test "x$lt_cv_dlopen_self" = xyes; then
8741 LDFLAGS="$LDFLAGS $link_static_flag"
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8743 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
8744 if test "${lt_cv_dlopen_self_static+set}" = set; then :
8745 $as_echo_n "(cached) " >&6
8746 else
8747 if test "$cross_compiling" = yes; then :
8748 lt_cv_dlopen_self_static=cross
8749 else
8750 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8751 lt_status=$lt_dlunknown
8752 cat > conftest.$ac_ext <<EOF
8753 #line 8753 "configure"
8754 #include "confdefs.h"
8756 #if HAVE_DLFCN_H
8757 #include <dlfcn.h>
8758 #endif
8760 #include <stdio.h>
8762 #ifdef RTLD_GLOBAL
8763 # define LT_DLGLOBAL RTLD_GLOBAL
8764 #else
8765 # ifdef DL_GLOBAL
8766 # define LT_DLGLOBAL DL_GLOBAL
8767 # else
8768 # define LT_DLGLOBAL 0
8769 # endif
8770 #endif
8772 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8773 find out it does not work in some platform. */
8774 #ifndef LT_DLLAZY_OR_NOW
8775 # ifdef RTLD_LAZY
8776 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8777 # else
8778 # ifdef DL_LAZY
8779 # define LT_DLLAZY_OR_NOW DL_LAZY
8780 # else
8781 # ifdef RTLD_NOW
8782 # define LT_DLLAZY_OR_NOW RTLD_NOW
8783 # else
8784 # ifdef DL_NOW
8785 # define LT_DLLAZY_OR_NOW DL_NOW
8786 # else
8787 # define LT_DLLAZY_OR_NOW 0
8788 # endif
8789 # endif
8790 # endif
8791 # endif
8792 #endif
8794 #ifdef __cplusplus
8795 extern "C" void exit (int);
8796 #endif
8798 void fnord() { int i=42;}
8799 int main ()
8801 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8802 int status = $lt_dlunknown;
8804 if (self)
8806 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8807 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8808 /* dlclose (self); */
8811 exit (status);
8814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8815 (eval $ac_link) 2>&5
8816 ac_status=$?
8817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8818 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8819 (./conftest; exit; ) 2>/dev/null
8820 lt_status=$?
8821 case x$lt_status in
8822 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8823 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8824 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8825 esac
8826 else :
8827 # compilation failed
8828 lt_cv_dlopen_self_static=no
8831 rm -fr conftest*
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
8836 $as_echo "$lt_cv_dlopen_self_static" >&6; }
8839 CPPFLAGS="$save_CPPFLAGS"
8840 LDFLAGS="$save_LDFLAGS"
8841 LIBS="$save_LIBS"
8843 esac
8845 case $lt_cv_dlopen_self in
8846 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8847 *) enable_dlopen_self=unknown ;;
8848 esac
8850 case $lt_cv_dlopen_self_static in
8851 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8852 *) enable_dlopen_self_static=unknown ;;
8853 esac
8857 # Report which librarie types wil actually be built
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
8859 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
8861 $as_echo "$can_build_shared" >&6; }
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
8864 $as_echo_n "checking whether to build shared libraries... " >&6; }
8865 test "$can_build_shared" = "no" && enable_shared=no
8867 # On AIX, shared libraries and static libraries use the same namespace, and
8868 # are all built from PIC.
8869 case "$host_os" in
8870 aix3*)
8871 test "$enable_shared" = yes && enable_static=no
8872 if test -n "$RANLIB"; then
8873 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8874 postinstall_cmds='$RANLIB $lib'
8878 aix4* | aix5*)
8879 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8880 test "$enable_shared" = yes && enable_static=no
8883 esac
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
8885 $as_echo "$enable_shared" >&6; }
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
8888 $as_echo_n "checking whether to build static libraries... " >&6; }
8889 # Make sure either enable_shared or enable_static is yes.
8890 test "$enable_shared" = yes || enable_static=yes
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
8892 $as_echo "$enable_static" >&6; }
8894 # The else clause should only fire when bootstrapping the
8895 # libtool distribution, otherwise you forgot to ship ltmain.sh
8896 # with your package, and you will get complaints that there are
8897 # no rules to generate ltmain.sh.
8898 if test -f "$ltmain"; then
8899 # See if we are running on zsh, and set the options which allow our commands through
8900 # without removal of \ escapes.
8901 if test -n "${ZSH_VERSION+set}" ; then
8902 setopt NO_GLOB_SUBST
8904 # Now quote all the things that may contain metacharacters while being
8905 # careful not to overquote the AC_SUBSTed values. We take copies of the
8906 # variables and quote the copies for generation of the libtool script.
8907 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8908 SED SHELL STRIP \
8909 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8910 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8911 deplibs_check_method reload_flag reload_cmds need_locks \
8912 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8913 lt_cv_sys_global_symbol_to_c_name_address \
8914 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8915 old_postinstall_cmds old_postuninstall_cmds \
8916 compiler \
8917 CC \
8918 LD \
8919 lt_prog_compiler_wl \
8920 lt_prog_compiler_pic \
8921 lt_prog_compiler_static \
8922 lt_prog_compiler_no_builtin_flag \
8923 export_dynamic_flag_spec \
8924 thread_safe_flag_spec \
8925 whole_archive_flag_spec \
8926 enable_shared_with_static_runtimes \
8927 old_archive_cmds \
8928 old_archive_from_new_cmds \
8929 predep_objects \
8930 postdep_objects \
8931 predeps \
8932 postdeps \
8933 compiler_lib_search_path \
8934 archive_cmds \
8935 archive_expsym_cmds \
8936 postinstall_cmds \
8937 postuninstall_cmds \
8938 old_archive_from_expsyms_cmds \
8939 allow_undefined_flag \
8940 no_undefined_flag \
8941 export_symbols_cmds \
8942 hardcode_libdir_flag_spec \
8943 hardcode_libdir_flag_spec_ld \
8944 hardcode_libdir_separator \
8945 hardcode_automatic \
8946 module_cmds \
8947 module_expsym_cmds \
8948 lt_cv_prog_compiler_c_o \
8949 exclude_expsyms \
8950 include_expsyms; do
8952 case $var in
8953 old_archive_cmds | \
8954 old_archive_from_new_cmds | \
8955 archive_cmds | \
8956 archive_expsym_cmds | \
8957 module_cmds | \
8958 module_expsym_cmds | \
8959 old_archive_from_expsyms_cmds | \
8960 export_symbols_cmds | \
8961 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8962 postinstall_cmds | postuninstall_cmds | \
8963 old_postinstall_cmds | old_postuninstall_cmds | \
8964 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8965 # Double-quote double-evaled strings.
8966 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8969 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8971 esac
8972 done
8974 case $lt_echo in
8975 *'\$0 --fallback-echo"')
8976 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8978 esac
8980 cfgfile="${ofile}T"
8981 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8982 $rm -f "$cfgfile"
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
8984 $as_echo "$as_me: creating $ofile" >&6;}
8986 cat <<__EOF__ >> "$cfgfile"
8987 #! $SHELL
8989 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8990 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8991 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8993 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8994 # Free Software Foundation, Inc.
8996 # This file is part of GNU Libtool:
8997 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8999 # This program is free software; you can redistribute it and/or modify
9000 # it under the terms of the GNU General Public License as published by
9001 # the Free Software Foundation; either version 2 of the License, or
9002 # (at your option) any later version.
9004 # This program is distributed in the hope that it will be useful, but
9005 # WITHOUT ANY WARRANTY; without even the implied warranty of
9006 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9007 # General Public License for more details.
9009 # You should have received a copy of the GNU General Public License
9010 # along with this program; if not, write to the Free Software
9011 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9013 # As a special exception to the GNU General Public License, if you
9014 # distribute this file as part of a program that contains a
9015 # configuration script generated by Autoconf, you may include it under
9016 # the same distribution terms that you use for the rest of that program.
9018 # A sed program that does not truncate output.
9019 SED=$lt_SED
9021 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9022 Xsed="$SED -e 1s/^X//"
9024 # The HP-UX ksh and POSIX shell print the target directory to stdout
9025 # if CDPATH is set.
9026 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9028 # The names of the tagged configurations supported by this script.
9029 available_tags=
9031 # ### BEGIN LIBTOOL CONFIG
9033 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9035 # Shell to use when invoking shell scripts.
9036 SHELL=$lt_SHELL
9038 # Whether or not to build shared libraries.
9039 build_libtool_libs=$enable_shared
9041 # Whether or not to build static libraries.
9042 build_old_libs=$enable_static
9044 # Whether or not to add -lc for building shared libraries.
9045 build_libtool_need_lc=$archive_cmds_need_lc
9047 # Whether or not to disallow shared libs when runtime libs are static
9048 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9050 # Whether or not to optimize for fast installation.
9051 fast_install=$enable_fast_install
9053 # The host system.
9054 host_alias=$host_alias
9055 host=$host
9056 host_os=$host_os
9058 # The build system.
9059 build_alias=$build_alias
9060 build=$build
9061 build_os=$build_os
9063 # An echo program that does not interpret backslashes.
9064 echo=$lt_echo
9066 # The archiver.
9067 AR=$lt_AR
9068 AR_FLAGS=$lt_AR_FLAGS
9070 # A C compiler.
9071 LTCC=$lt_LTCC
9073 # A language-specific compiler.
9074 CC=$lt_compiler
9076 # Is the compiler the GNU C compiler?
9077 with_gcc=$GCC
9079 # An ERE matcher.
9080 EGREP=$lt_EGREP
9082 # The linker used to build libraries.
9083 LD=$lt_LD
9085 # Whether we need hard or soft links.
9086 LN_S=$lt_LN_S
9088 # A BSD-compatible nm program.
9089 NM=$lt_NM
9091 # A symbol stripping program
9092 STRIP=$lt_STRIP
9094 # Used to examine libraries when file_magic_cmd begins "file"
9095 MAGIC_CMD=$MAGIC_CMD
9097 # Used on cygwin: DLL creation program.
9098 DLLTOOL="$DLLTOOL"
9100 # Used on cygwin: object dumper.
9101 OBJDUMP="$OBJDUMP"
9103 # Used on cygwin: assembler.
9104 AS="$AS"
9106 # The name of the directory that contains temporary libtool files.
9107 objdir=$objdir
9109 # How to create reloadable object files.
9110 reload_flag=$lt_reload_flag
9111 reload_cmds=$lt_reload_cmds
9113 # How to pass a linker flag through the compiler.
9114 wl=$lt_lt_prog_compiler_wl
9116 # Object file suffix (normally "o").
9117 objext="$ac_objext"
9119 # Old archive suffix (normally "a").
9120 libext="$libext"
9122 # Shared library suffix (normally ".so").
9123 shrext_cmds='$shrext_cmds'
9125 # Executable file suffix (normally "").
9126 exeext="$exeext"
9128 # Additional compiler flags for building library objects.
9129 pic_flag=$lt_lt_prog_compiler_pic
9130 pic_mode=$pic_mode
9132 # What is the maximum length of a command?
9133 max_cmd_len=$lt_cv_sys_max_cmd_len
9135 # Does compiler simultaneously support -c and -o options?
9136 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9138 # Must we lock files when doing compilation?
9139 need_locks=$lt_need_locks
9141 # Do we need the lib prefix for modules?
9142 need_lib_prefix=$need_lib_prefix
9144 # Do we need a version for libraries?
9145 need_version=$need_version
9147 # Whether dlopen is supported.
9148 dlopen_support=$enable_dlopen
9150 # Whether dlopen of programs is supported.
9151 dlopen_self=$enable_dlopen_self
9153 # Whether dlopen of statically linked programs is supported.
9154 dlopen_self_static=$enable_dlopen_self_static
9156 # Compiler flag to prevent dynamic linking.
9157 link_static_flag=$lt_lt_prog_compiler_static
9159 # Compiler flag to turn off builtin functions.
9160 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9162 # Compiler flag to allow reflexive dlopens.
9163 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9165 # Compiler flag to generate shared objects directly from archives.
9166 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9168 # Compiler flag to generate thread-safe objects.
9169 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9171 # Library versioning type.
9172 version_type=$version_type
9174 # Format of library name prefix.
9175 libname_spec=$lt_libname_spec
9177 # List of archive names. First name is the real one, the rest are links.
9178 # The last name is the one that the linker finds with -lNAME.
9179 library_names_spec=$lt_library_names_spec
9181 # The coded name of the library, if different from the real name.
9182 soname_spec=$lt_soname_spec
9184 # Commands used to build and install an old-style archive.
9185 RANLIB=$lt_RANLIB
9186 old_archive_cmds=$lt_old_archive_cmds
9187 old_postinstall_cmds=$lt_old_postinstall_cmds
9188 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9190 # Create an old-style archive from a shared archive.
9191 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9193 # Create a temporary old-style archive to link instead of a shared archive.
9194 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9196 # Commands used to build and install a shared archive.
9197 archive_cmds=$lt_archive_cmds
9198 archive_expsym_cmds=$lt_archive_expsym_cmds
9199 postinstall_cmds=$lt_postinstall_cmds
9200 postuninstall_cmds=$lt_postuninstall_cmds
9202 # Commands used to build a loadable module (assumed same as above if empty)
9203 module_cmds=$lt_module_cmds
9204 module_expsym_cmds=$lt_module_expsym_cmds
9206 # Commands to strip libraries.
9207 old_striplib=$lt_old_striplib
9208 striplib=$lt_striplib
9210 # Dependencies to place before the objects being linked to create a
9211 # shared library.
9212 predep_objects=$lt_predep_objects
9214 # Dependencies to place after the objects being linked to create a
9215 # shared library.
9216 postdep_objects=$lt_postdep_objects
9218 # Dependencies to place before the objects being linked to create a
9219 # shared library.
9220 predeps=$lt_predeps
9222 # Dependencies to place after the objects being linked to create a
9223 # shared library.
9224 postdeps=$lt_postdeps
9226 # The library search path used internally by the compiler when linking
9227 # a shared library.
9228 compiler_lib_search_path=$lt_compiler_lib_search_path
9230 # Method to check whether dependent libraries are shared objects.
9231 deplibs_check_method=$lt_deplibs_check_method
9233 # Command to use when deplibs_check_method == file_magic.
9234 file_magic_cmd=$lt_file_magic_cmd
9236 # Flag that allows shared libraries with undefined symbols to be built.
9237 allow_undefined_flag=$lt_allow_undefined_flag
9239 # Flag that forces no undefined symbols.
9240 no_undefined_flag=$lt_no_undefined_flag
9242 # Commands used to finish a libtool library installation in a directory.
9243 finish_cmds=$lt_finish_cmds
9245 # Same as above, but a single script fragment to be evaled but not shown.
9246 finish_eval=$lt_finish_eval
9248 # Take the output of nm and produce a listing of raw symbols and C names.
9249 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9251 # Transform the output of nm in a proper C declaration
9252 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9254 # Transform the output of nm in a C name address pair
9255 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9257 # This is the shared library runtime path variable.
9258 runpath_var=$runpath_var
9260 # This is the shared library path variable.
9261 shlibpath_var=$shlibpath_var
9263 # Is shlibpath searched before the hard-coded library search path?
9264 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9266 # How to hardcode a shared library path into an executable.
9267 hardcode_action=$hardcode_action
9269 # Whether we should hardcode library paths into libraries.
9270 hardcode_into_libs=$hardcode_into_libs
9272 # Flag to hardcode \$libdir into a binary during linking.
9273 # This must work even if \$libdir does not exist.
9274 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9276 # If ld is used when linking, flag to hardcode \$libdir into
9277 # a binary during linking. This must work even if \$libdir does
9278 # not exist.
9279 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9281 # Whether we need a single -rpath flag with a separated argument.
9282 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9284 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9285 # resulting binary.
9286 hardcode_direct=$hardcode_direct
9288 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9289 # resulting binary.
9290 hardcode_minus_L=$hardcode_minus_L
9292 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9293 # the resulting binary.
9294 hardcode_shlibpath_var=$hardcode_shlibpath_var
9296 # Set to yes if building a shared library automatically hardcodes DIR into the library
9297 # and all subsequent libraries and executables linked against it.
9298 hardcode_automatic=$hardcode_automatic
9300 # Variables whose values should be saved in libtool wrapper scripts and
9301 # restored at relink time.
9302 variables_saved_for_relink="$variables_saved_for_relink"
9304 # Whether libtool must link a program against all its dependency libraries.
9305 link_all_deplibs=$link_all_deplibs
9307 # Compile-time system search path for libraries
9308 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9310 # Run-time system search path for libraries
9311 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9313 # Fix the shell variable \$srcfile for the compiler.
9314 fix_srcfile_path="$fix_srcfile_path"
9316 # Set to yes if exported symbols are required.
9317 always_export_symbols=$always_export_symbols
9319 # The commands to list exported symbols.
9320 export_symbols_cmds=$lt_export_symbols_cmds
9322 # The commands to extract the exported symbol list from a shared archive.
9323 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9325 # Symbols that should not be listed in the preloaded symbols.
9326 exclude_expsyms=$lt_exclude_expsyms
9328 # Symbols that must always be exported.
9329 include_expsyms=$lt_include_expsyms
9331 # ### END LIBTOOL CONFIG
9333 __EOF__
9336 case $host_os in
9337 aix3*)
9338 cat <<\EOF >> "$cfgfile"
9340 # AIX sometimes has problems with the GCC collect2 program. For some
9341 # reason, if we set the COLLECT_NAMES environment variable, the problems
9342 # vanish in a puff of smoke.
9343 if test "X${COLLECT_NAMES+set}" != Xset; then
9344 COLLECT_NAMES=
9345 export COLLECT_NAMES
9349 esac
9351 # We use sed instead of cat because bash on DJGPP gets confused if
9352 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9353 # text mode, it properly converts lines to CR/LF. This bash problem
9354 # is reportedly fixed, but why not run on old versions too?
9355 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9357 mv -f "$cfgfile" "$ofile" || \
9358 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9359 chmod +x "$ofile"
9361 else
9362 # If there is no Makefile yet, we rely on a make rule to execute
9363 # `config.status --recheck' to rerun these tests and create the
9364 # libtool script then.
9365 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9366 if test -f "$ltmain_in"; then
9367 test -f Makefile && make "$ltmain"
9372 ac_ext=c
9373 ac_cpp='$CPP $CPPFLAGS'
9374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9378 CC="$lt_save_CC"
9381 # Check whether --with-tags was given.
9382 if test "${with_tags+set}" = set; then :
9383 withval=$with_tags; tagnames="$withval"
9387 if test -f "$ltmain" && test -n "$tagnames"; then
9388 if test ! -f "${ofile}"; then
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
9390 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9393 if test -z "$LTCC"; then
9394 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9395 if test -z "$LTCC"; then
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9397 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9398 else
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9400 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9404 # Extract list of available tagged configurations in $ofile.
9405 # Note that this assumes the entire list is on one line.
9406 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9408 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9409 for tagname in $tagnames; do
9410 IFS="$lt_save_ifs"
9411 # Check whether tagname contains only valid characters
9412 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9413 "") ;;
9414 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5
9416 esac
9418 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9419 then
9420 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
9423 # Update the list of available tags.
9424 if test -n "$tagname"; then
9425 echo appending configuration tag \"$tagname\" to $ofile
9427 case $tagname in
9428 CXX)
9429 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9430 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9431 (test "X$CXX" != "Xg++"))) ; then
9433 else
9434 tagname=""
9438 F77)
9439 if test -n "$F77" && test "X$F77" != "Xno"; then
9441 else
9442 tagname=""
9446 GCJ)
9447 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
9449 else
9450 tagname=""
9457 # Source file extension for RC test sources.
9458 ac_ext=rc
9460 # Object file extension for compiled RC test sources.
9461 objext=o
9462 objext_RC=$objext
9464 # Code to be used in simple compile tests
9465 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
9467 # Code to be used in simple link tests
9468 lt_simple_link_test_code="$lt_simple_compile_test_code"
9470 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9472 # If no C compiler was specified, use CC.
9473 LTCC=${LTCC-"$CC"}
9475 # Allow CC to be a program name with arguments.
9476 compiler=$CC
9479 # save warnings/boilerplate of simple test code
9480 ac_outfile=conftest.$ac_objext
9481 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9482 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9483 _lt_compiler_boilerplate=`cat conftest.err`
9484 $rm conftest*
9486 ac_outfile=conftest.$ac_objext
9487 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9488 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9489 _lt_linker_boilerplate=`cat conftest.err`
9490 $rm conftest*
9493 # Allow CC to be a program name with arguments.
9494 lt_save_CC="$CC"
9495 CC=${RC-"windres"}
9496 compiler=$CC
9497 compiler_RC=$CC
9498 for cc_temp in $compiler""; do
9499 case $cc_temp in
9500 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9501 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9502 \-*) ;;
9503 *) break;;
9504 esac
9505 done
9506 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9508 lt_cv_prog_compiler_c_o_RC=yes
9510 # The else clause should only fire when bootstrapping the
9511 # libtool distribution, otherwise you forgot to ship ltmain.sh
9512 # with your package, and you will get complaints that there are
9513 # no rules to generate ltmain.sh.
9514 if test -f "$ltmain"; then
9515 # See if we are running on zsh, and set the options which allow our commands through
9516 # without removal of \ escapes.
9517 if test -n "${ZSH_VERSION+set}" ; then
9518 setopt NO_GLOB_SUBST
9520 # Now quote all the things that may contain metacharacters while being
9521 # careful not to overquote the AC_SUBSTed values. We take copies of the
9522 # variables and quote the copies for generation of the libtool script.
9523 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9524 SED SHELL STRIP \
9525 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9526 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9527 deplibs_check_method reload_flag reload_cmds need_locks \
9528 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9529 lt_cv_sys_global_symbol_to_c_name_address \
9530 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9531 old_postinstall_cmds old_postuninstall_cmds \
9532 compiler_RC \
9533 CC_RC \
9534 LD_RC \
9535 lt_prog_compiler_wl_RC \
9536 lt_prog_compiler_pic_RC \
9537 lt_prog_compiler_static_RC \
9538 lt_prog_compiler_no_builtin_flag_RC \
9539 export_dynamic_flag_spec_RC \
9540 thread_safe_flag_spec_RC \
9541 whole_archive_flag_spec_RC \
9542 enable_shared_with_static_runtimes_RC \
9543 old_archive_cmds_RC \
9544 old_archive_from_new_cmds_RC \
9545 predep_objects_RC \
9546 postdep_objects_RC \
9547 predeps_RC \
9548 postdeps_RC \
9549 compiler_lib_search_path_RC \
9550 archive_cmds_RC \
9551 archive_expsym_cmds_RC \
9552 postinstall_cmds_RC \
9553 postuninstall_cmds_RC \
9554 old_archive_from_expsyms_cmds_RC \
9555 allow_undefined_flag_RC \
9556 no_undefined_flag_RC \
9557 export_symbols_cmds_RC \
9558 hardcode_libdir_flag_spec_RC \
9559 hardcode_libdir_flag_spec_ld_RC \
9560 hardcode_libdir_separator_RC \
9561 hardcode_automatic_RC \
9562 module_cmds_RC \
9563 module_expsym_cmds_RC \
9564 lt_cv_prog_compiler_c_o_RC \
9565 exclude_expsyms_RC \
9566 include_expsyms_RC; do
9568 case $var in
9569 old_archive_cmds_RC | \
9570 old_archive_from_new_cmds_RC | \
9571 archive_cmds_RC | \
9572 archive_expsym_cmds_RC | \
9573 module_cmds_RC | \
9574 module_expsym_cmds_RC | \
9575 old_archive_from_expsyms_cmds_RC | \
9576 export_symbols_cmds_RC | \
9577 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9578 postinstall_cmds | postuninstall_cmds | \
9579 old_postinstall_cmds | old_postuninstall_cmds | \
9580 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9581 # Double-quote double-evaled strings.
9582 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9585 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9587 esac
9588 done
9590 case $lt_echo in
9591 *'\$0 --fallback-echo"')
9592 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9594 esac
9596 cfgfile="$ofile"
9598 cat <<__EOF__ >> "$cfgfile"
9599 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
9601 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9603 # Shell to use when invoking shell scripts.
9604 SHELL=$lt_SHELL
9606 # Whether or not to build shared libraries.
9607 build_libtool_libs=$enable_shared
9609 # Whether or not to build static libraries.
9610 build_old_libs=$enable_static
9612 # Whether or not to add -lc for building shared libraries.
9613 build_libtool_need_lc=$archive_cmds_need_lc_RC
9615 # Whether or not to disallow shared libs when runtime libs are static
9616 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
9618 # Whether or not to optimize for fast installation.
9619 fast_install=$enable_fast_install
9621 # The host system.
9622 host_alias=$host_alias
9623 host=$host
9624 host_os=$host_os
9626 # The build system.
9627 build_alias=$build_alias
9628 build=$build
9629 build_os=$build_os
9631 # An echo program that does not interpret backslashes.
9632 echo=$lt_echo
9634 # The archiver.
9635 AR=$lt_AR
9636 AR_FLAGS=$lt_AR_FLAGS
9638 # A C compiler.
9639 LTCC=$lt_LTCC
9641 # A language-specific compiler.
9642 CC=$lt_compiler_RC
9644 # Is the compiler the GNU C compiler?
9645 with_gcc=$GCC_RC
9647 # An ERE matcher.
9648 EGREP=$lt_EGREP
9650 # The linker used to build libraries.
9651 LD=$lt_LD_RC
9653 # Whether we need hard or soft links.
9654 LN_S=$lt_LN_S
9656 # A BSD-compatible nm program.
9657 NM=$lt_NM
9659 # A symbol stripping program
9660 STRIP=$lt_STRIP
9662 # Used to examine libraries when file_magic_cmd begins "file"
9663 MAGIC_CMD=$MAGIC_CMD
9665 # Used on cygwin: DLL creation program.
9666 DLLTOOL="$DLLTOOL"
9668 # Used on cygwin: object dumper.
9669 OBJDUMP="$OBJDUMP"
9671 # Used on cygwin: assembler.
9672 AS="$AS"
9674 # The name of the directory that contains temporary libtool files.
9675 objdir=$objdir
9677 # How to create reloadable object files.
9678 reload_flag=$lt_reload_flag
9679 reload_cmds=$lt_reload_cmds
9681 # How to pass a linker flag through the compiler.
9682 wl=$lt_lt_prog_compiler_wl_RC
9684 # Object file suffix (normally "o").
9685 objext="$ac_objext"
9687 # Old archive suffix (normally "a").
9688 libext="$libext"
9690 # Shared library suffix (normally ".so").
9691 shrext_cmds='$shrext_cmds'
9693 # Executable file suffix (normally "").
9694 exeext="$exeext"
9696 # Additional compiler flags for building library objects.
9697 pic_flag=$lt_lt_prog_compiler_pic_RC
9698 pic_mode=$pic_mode
9700 # What is the maximum length of a command?
9701 max_cmd_len=$lt_cv_sys_max_cmd_len
9703 # Does compiler simultaneously support -c and -o options?
9704 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
9706 # Must we lock files when doing compilation?
9707 need_locks=$lt_need_locks
9709 # Do we need the lib prefix for modules?
9710 need_lib_prefix=$need_lib_prefix
9712 # Do we need a version for libraries?
9713 need_version=$need_version
9715 # Whether dlopen is supported.
9716 dlopen_support=$enable_dlopen
9718 # Whether dlopen of programs is supported.
9719 dlopen_self=$enable_dlopen_self
9721 # Whether dlopen of statically linked programs is supported.
9722 dlopen_self_static=$enable_dlopen_self_static
9724 # Compiler flag to prevent dynamic linking.
9725 link_static_flag=$lt_lt_prog_compiler_static_RC
9727 # Compiler flag to turn off builtin functions.
9728 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
9730 # Compiler flag to allow reflexive dlopens.
9731 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
9733 # Compiler flag to generate shared objects directly from archives.
9734 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
9736 # Compiler flag to generate thread-safe objects.
9737 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
9739 # Library versioning type.
9740 version_type=$version_type
9742 # Format of library name prefix.
9743 libname_spec=$lt_libname_spec
9745 # List of archive names. First name is the real one, the rest are links.
9746 # The last name is the one that the linker finds with -lNAME.
9747 library_names_spec=$lt_library_names_spec
9749 # The coded name of the library, if different from the real name.
9750 soname_spec=$lt_soname_spec
9752 # Commands used to build and install an old-style archive.
9753 RANLIB=$lt_RANLIB
9754 old_archive_cmds=$lt_old_archive_cmds_RC
9755 old_postinstall_cmds=$lt_old_postinstall_cmds
9756 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9758 # Create an old-style archive from a shared archive.
9759 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
9761 # Create a temporary old-style archive to link instead of a shared archive.
9762 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
9764 # Commands used to build and install a shared archive.
9765 archive_cmds=$lt_archive_cmds_RC
9766 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
9767 postinstall_cmds=$lt_postinstall_cmds
9768 postuninstall_cmds=$lt_postuninstall_cmds
9770 # Commands used to build a loadable module (assumed same as above if empty)
9771 module_cmds=$lt_module_cmds_RC
9772 module_expsym_cmds=$lt_module_expsym_cmds_RC
9774 # Commands to strip libraries.
9775 old_striplib=$lt_old_striplib
9776 striplib=$lt_striplib
9778 # Dependencies to place before the objects being linked to create a
9779 # shared library.
9780 predep_objects=$lt_predep_objects_RC
9782 # Dependencies to place after the objects being linked to create a
9783 # shared library.
9784 postdep_objects=$lt_postdep_objects_RC
9786 # Dependencies to place before the objects being linked to create a
9787 # shared library.
9788 predeps=$lt_predeps_RC
9790 # Dependencies to place after the objects being linked to create a
9791 # shared library.
9792 postdeps=$lt_postdeps_RC
9794 # The library search path used internally by the compiler when linking
9795 # a shared library.
9796 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
9798 # Method to check whether dependent libraries are shared objects.
9799 deplibs_check_method=$lt_deplibs_check_method
9801 # Command to use when deplibs_check_method == file_magic.
9802 file_magic_cmd=$lt_file_magic_cmd
9804 # Flag that allows shared libraries with undefined symbols to be built.
9805 allow_undefined_flag=$lt_allow_undefined_flag_RC
9807 # Flag that forces no undefined symbols.
9808 no_undefined_flag=$lt_no_undefined_flag_RC
9810 # Commands used to finish a libtool library installation in a directory.
9811 finish_cmds=$lt_finish_cmds
9813 # Same as above, but a single script fragment to be evaled but not shown.
9814 finish_eval=$lt_finish_eval
9816 # Take the output of nm and produce a listing of raw symbols and C names.
9817 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9819 # Transform the output of nm in a proper C declaration
9820 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9822 # Transform the output of nm in a C name address pair
9823 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9825 # This is the shared library runtime path variable.
9826 runpath_var=$runpath_var
9828 # This is the shared library path variable.
9829 shlibpath_var=$shlibpath_var
9831 # Is shlibpath searched before the hard-coded library search path?
9832 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9834 # How to hardcode a shared library path into an executable.
9835 hardcode_action=$hardcode_action_RC
9837 # Whether we should hardcode library paths into libraries.
9838 hardcode_into_libs=$hardcode_into_libs
9840 # Flag to hardcode \$libdir into a binary during linking.
9841 # This must work even if \$libdir does not exist.
9842 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
9844 # If ld is used when linking, flag to hardcode \$libdir into
9845 # a binary during linking. This must work even if \$libdir does
9846 # not exist.
9847 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
9849 # Whether we need a single -rpath flag with a separated argument.
9850 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
9852 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9853 # resulting binary.
9854 hardcode_direct=$hardcode_direct_RC
9856 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9857 # resulting binary.
9858 hardcode_minus_L=$hardcode_minus_L_RC
9860 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9861 # the resulting binary.
9862 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
9864 # Set to yes if building a shared library automatically hardcodes DIR into the library
9865 # and all subsequent libraries and executables linked against it.
9866 hardcode_automatic=$hardcode_automatic_RC
9868 # Variables whose values should be saved in libtool wrapper scripts and
9869 # restored at relink time.
9870 variables_saved_for_relink="$variables_saved_for_relink"
9872 # Whether libtool must link a program against all its dependency libraries.
9873 link_all_deplibs=$link_all_deplibs_RC
9875 # Compile-time system search path for libraries
9876 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9878 # Run-time system search path for libraries
9879 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9881 # Fix the shell variable \$srcfile for the compiler.
9882 fix_srcfile_path="$fix_srcfile_path_RC"
9884 # Set to yes if exported symbols are required.
9885 always_export_symbols=$always_export_symbols_RC
9887 # The commands to list exported symbols.
9888 export_symbols_cmds=$lt_export_symbols_cmds_RC
9890 # The commands to extract the exported symbol list from a shared archive.
9891 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9893 # Symbols that should not be listed in the preloaded symbols.
9894 exclude_expsyms=$lt_exclude_expsyms_RC
9896 # Symbols that must always be exported.
9897 include_expsyms=$lt_include_expsyms_RC
9899 # ### END LIBTOOL TAG CONFIG: $tagname
9901 __EOF__
9904 else
9905 # If there is no Makefile yet, we rely on a make rule to execute
9906 # `config.status --recheck' to rerun these tests and create the
9907 # libtool script then.
9908 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9909 if test -f "$ltmain_in"; then
9910 test -f Makefile && make "$ltmain"
9915 ac_ext=c
9916 ac_cpp='$CPP $CPPFLAGS'
9917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9921 CC="$lt_save_CC"
9926 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
9928 esac
9930 # Append the new tag name to the list of available tags.
9931 if test -n "$tagname" ; then
9932 available_tags="$available_tags $tagname"
9935 done
9936 IFS="$lt_save_ifs"
9938 # Now substitute the updated list of available tags.
9939 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
9940 mv "${ofile}T" "$ofile"
9941 chmod +x "$ofile"
9942 else
9943 rm -f "${ofile}T"
9944 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
9950 # This can be used to rebuild libtool when needed
9951 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
9953 # Always use our own libtool.
9954 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9956 # Prevent multiple expansion
9968 ac_header_dirent=no
9969 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9970 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9972 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
9974 $as_echo_n "(cached) " >&6
9975 else
9976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9977 /* end confdefs.h. */
9978 #include <sys/types.h>
9979 #include <$ac_hdr>
9982 main ()
9984 if ((DIR *) 0)
9985 return 0;
9987 return 0;
9989 _ACEOF
9990 if ac_fn_c_try_compile "$LINENO"; then :
9991 eval "$as_ac_Header=yes"
9992 else
9993 eval "$as_ac_Header=no"
9995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9997 eval ac_res=\$$as_ac_Header
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9999 $as_echo "$ac_res" >&6; }
10000 eval as_val=\$$as_ac_Header
10001 if test "x$as_val" = x""yes; then :
10002 cat >>confdefs.h <<_ACEOF
10003 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10004 _ACEOF
10006 ac_header_dirent=$ac_hdr; break
10009 done
10010 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10011 if test $ac_header_dirent = dirent.h; then
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10013 $as_echo_n "checking for library containing opendir... " >&6; }
10014 if test "${ac_cv_search_opendir+set}" = set; then :
10015 $as_echo_n "(cached) " >&6
10016 else
10017 ac_func_search_save_LIBS=$LIBS
10018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10019 /* end confdefs.h. */
10021 /* Override any GCC internal prototype to avoid an error.
10022 Use char because int might match the return type of a GCC
10023 builtin and then its argument prototype would still apply. */
10024 #ifdef __cplusplus
10025 extern "C"
10026 #endif
10027 char opendir ();
10029 main ()
10031 return opendir ();
10033 return 0;
10035 _ACEOF
10036 for ac_lib in '' dir; do
10037 if test -z "$ac_lib"; then
10038 ac_res="none required"
10039 else
10040 ac_res=-l$ac_lib
10041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10043 if ac_fn_c_try_link "$LINENO"; then :
10044 ac_cv_search_opendir=$ac_res
10046 rm -f core conftest.err conftest.$ac_objext \
10047 conftest$ac_exeext
10048 if test "${ac_cv_search_opendir+set}" = set; then :
10049 break
10051 done
10052 if test "${ac_cv_search_opendir+set}" = set; then :
10054 else
10055 ac_cv_search_opendir=no
10057 rm conftest.$ac_ext
10058 LIBS=$ac_func_search_save_LIBS
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10061 $as_echo "$ac_cv_search_opendir" >&6; }
10062 ac_res=$ac_cv_search_opendir
10063 if test "$ac_res" != no; then :
10064 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10068 else
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10070 $as_echo_n "checking for library containing opendir... " >&6; }
10071 if test "${ac_cv_search_opendir+set}" = set; then :
10072 $as_echo_n "(cached) " >&6
10073 else
10074 ac_func_search_save_LIBS=$LIBS
10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h. */
10078 /* Override any GCC internal prototype to avoid an error.
10079 Use char because int might match the return type of a GCC
10080 builtin and then its argument prototype would still apply. */
10081 #ifdef __cplusplus
10082 extern "C"
10083 #endif
10084 char opendir ();
10086 main ()
10088 return opendir ();
10090 return 0;
10092 _ACEOF
10093 for ac_lib in '' x; do
10094 if test -z "$ac_lib"; then
10095 ac_res="none required"
10096 else
10097 ac_res=-l$ac_lib
10098 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10100 if ac_fn_c_try_link "$LINENO"; then :
10101 ac_cv_search_opendir=$ac_res
10103 rm -f core conftest.err conftest.$ac_objext \
10104 conftest$ac_exeext
10105 if test "${ac_cv_search_opendir+set}" = set; then :
10106 break
10108 done
10109 if test "${ac_cv_search_opendir+set}" = set; then :
10111 else
10112 ac_cv_search_opendir=no
10114 rm conftest.$ac_ext
10115 LIBS=$ac_func_search_save_LIBS
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10118 $as_echo "$ac_cv_search_opendir" >&6; }
10119 ac_res=$ac_cv_search_opendir
10120 if test "$ac_res" != no; then :
10121 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10127 # Check whether --enable-ltdl-install was given.
10128 if test "${enable_ltdl_install+set}" = set; then :
10129 enableval=$enable_ltdl_install;
10133 if test x"${enable_ltdl_install-no}" != xno; then
10134 INSTALL_LTDL_TRUE=
10135 INSTALL_LTDL_FALSE='#'
10136 else
10137 INSTALL_LTDL_TRUE='#'
10138 INSTALL_LTDL_FALSE=
10141 if test x"${enable_ltdl_convenience-no}" != xno; then
10142 CONVENIENCE_LTDL_TRUE=
10143 CONVENIENCE_LTDL_FALSE='#'
10144 else
10145 CONVENIENCE_LTDL_TRUE='#'
10146 CONVENIENCE_LTDL_FALSE=
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for loadable modules" >&5
10152 $as_echo_n "checking which extension is used for loadable modules... " >&6; }
10153 if test "${libltdl_cv_shlibext+set}" = set; then :
10154 $as_echo_n "(cached) " >&6
10155 else
10157 ## GCJ LOCAL: gcj specific stuff. Please keep it.
10158 # Here in libltdl for libgcj we don't build modules for darwin.
10159 # So we say no. Then the extension gets .dylib which is the right
10160 # thing for shared libraries on darwin. Please keep me next time you
10161 # import libltdl.
10162 case "$host_os" in
10163 darwin*)
10164 module=no
10167 module=yes
10169 esac
10170 eval libltdl_cv_shlibext=$shrext_cmds
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
10174 $as_echo "$libltdl_cv_shlibext" >&6; }
10175 if test -n "$libltdl_cv_shlibext"; then
10177 cat >>confdefs.h <<_ACEOF
10178 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10179 _ACEOF
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
10185 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
10186 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
10187 $as_echo_n "(cached) " >&6
10188 else
10189 libltdl_cv_shlibpath_var="$shlibpath_var"
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
10192 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
10193 if test -n "$libltdl_cv_shlibpath_var"; then
10195 cat >>confdefs.h <<_ACEOF
10196 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10197 _ACEOF
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
10203 $as_echo_n "checking for the default library search path... " >&6; }
10204 if test "${libltdl_cv_sys_search_path+set}" = set; then :
10205 $as_echo_n "(cached) " >&6
10206 else
10207 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_search_path" >&5
10210 $as_echo "$libltdl_cv_sys_search_path" >&6; }
10211 if test -n "$libltdl_cv_sys_search_path"; then
10212 sys_search_path=
10213 for dir in $libltdl_cv_sys_search_path; do
10214 if test -z "$sys_search_path"; then
10215 sys_search_path="$dir"
10216 else
10217 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10219 done
10221 cat >>confdefs.h <<_ACEOF
10222 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10223 _ACEOF
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10228 $as_echo_n "checking for objdir... " >&6; }
10229 if test "${libltdl_cv_objdir+set}" = set; then :
10230 $as_echo_n "(cached) " >&6
10231 else
10232 libltdl_cv_objdir="$objdir"
10233 if test -n "$objdir"; then
10235 else
10236 rm -f .libs 2>/dev/null
10237 mkdir .libs 2>/dev/null
10238 if test -d .libs; then
10239 libltdl_cv_objdir=.libs
10240 else
10241 # MS-DOS does not allow filenames that begin with a dot.
10242 libltdl_cv_objdir=_libs
10244 rmdir .libs 2>/dev/null
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_objdir" >&5
10249 $as_echo "$libltdl_cv_objdir" >&6; }
10251 cat >>confdefs.h <<_ACEOF
10252 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10253 _ACEOF
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
10258 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
10259 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
10260 $as_echo_n "(cached) " >&6
10261 else
10262 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10263 libltdl_cv_preloaded_symbols=yes
10264 else
10265 libltdl_cv_preloaded_symbols=no
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
10270 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
10271 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10273 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
10277 LIBADD_DL=
10279 ac_ext=c
10280 ac_cpp='$CPP $CPPFLAGS'
10281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10286 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10287 if test "x$ac_cv_func_shl_load" = x""yes; then :
10289 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
10291 else
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10293 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10294 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10295 $as_echo_n "(cached) " >&6
10296 else
10297 ac_check_lib_save_LIBS=$LIBS
10298 LIBS="-ldld $LIBS"
10299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300 /* end confdefs.h. */
10302 /* Override any GCC internal prototype to avoid an error.
10303 Use char because int might match the return type of a GCC
10304 builtin and then its argument prototype would still apply. */
10305 #ifdef __cplusplus
10306 extern "C"
10307 #endif
10308 char shl_load ();
10310 main ()
10312 return shl_load ();
10314 return 0;
10316 _ACEOF
10317 if ac_fn_c_try_link "$LINENO"; then :
10318 ac_cv_lib_dld_shl_load=yes
10319 else
10320 ac_cv_lib_dld_shl_load=no
10322 rm -f core conftest.err conftest.$ac_objext \
10323 conftest$ac_exeext conftest.$ac_ext
10324 LIBS=$ac_check_lib_save_LIBS
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10327 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10328 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10330 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
10332 LIBADD_DL="$LIBADD_DL -ldld"
10333 else
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10335 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10336 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10337 $as_echo_n "(cached) " >&6
10338 else
10339 ac_check_lib_save_LIBS=$LIBS
10340 LIBS="-ldl $LIBS"
10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h. */
10344 /* Override any GCC internal prototype to avoid an error.
10345 Use char because int might match the return type of a GCC
10346 builtin and then its argument prototype would still apply. */
10347 #ifdef __cplusplus
10348 extern "C"
10349 #endif
10350 char dlopen ();
10352 main ()
10354 return dlopen ();
10356 return 0;
10358 _ACEOF
10359 if ac_fn_c_try_link "$LINENO"; then :
10360 ac_cv_lib_dl_dlopen=yes
10361 else
10362 ac_cv_lib_dl_dlopen=no
10364 rm -f core conftest.err conftest.$ac_objext \
10365 conftest$ac_exeext conftest.$ac_ext
10366 LIBS=$ac_check_lib_save_LIBS
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10369 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10370 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10372 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
10374 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10375 else
10376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10377 /* end confdefs.h. */
10378 #if HAVE_DLFCN_H
10379 # include <dlfcn.h>
10380 #endif
10383 main ()
10385 dlopen(0, 0);
10387 return 0;
10389 _ACEOF
10390 if ac_fn_c_try_link "$LINENO"; then :
10392 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
10393 libltdl_cv_func_dlopen="yes"
10394 else
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10396 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10397 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10398 $as_echo_n "(cached) " >&6
10399 else
10400 ac_check_lib_save_LIBS=$LIBS
10401 LIBS="-lsvld $LIBS"
10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10405 /* Override any GCC internal prototype to avoid an error.
10406 Use char because int might match the return type of a GCC
10407 builtin and then its argument prototype would still apply. */
10408 #ifdef __cplusplus
10409 extern "C"
10410 #endif
10411 char dlopen ();
10413 main ()
10415 return dlopen ();
10417 return 0;
10419 _ACEOF
10420 if ac_fn_c_try_link "$LINENO"; then :
10421 ac_cv_lib_svld_dlopen=yes
10422 else
10423 ac_cv_lib_svld_dlopen=no
10425 rm -f core conftest.err conftest.$ac_objext \
10426 conftest$ac_exeext conftest.$ac_ext
10427 LIBS=$ac_check_lib_save_LIBS
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10430 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10431 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10433 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
10435 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10436 else
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10438 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10439 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10440 $as_echo_n "(cached) " >&6
10441 else
10442 ac_check_lib_save_LIBS=$LIBS
10443 LIBS="-ldld $LIBS"
10444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10445 /* end confdefs.h. */
10447 /* Override any GCC internal prototype to avoid an error.
10448 Use char because int might match the return type of a GCC
10449 builtin and then its argument prototype would still apply. */
10450 #ifdef __cplusplus
10451 extern "C"
10452 #endif
10453 char dld_link ();
10455 main ()
10457 return dld_link ();
10459 return 0;
10461 _ACEOF
10462 if ac_fn_c_try_link "$LINENO"; then :
10463 ac_cv_lib_dld_dld_link=yes
10464 else
10465 ac_cv_lib_dld_dld_link=no
10467 rm -f core conftest.err conftest.$ac_objext \
10468 conftest$ac_exeext conftest.$ac_ext
10469 LIBS=$ac_check_lib_save_LIBS
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10472 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10473 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10475 $as_echo "#define HAVE_DLD 1" >>confdefs.h
10477 LIBADD_DL="$LIBADD_DL -ldld"
10478 else
10479 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
10480 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
10482 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
10494 rm -f core conftest.err conftest.$ac_objext \
10495 conftest$ac_exeext conftest.$ac_ext
10506 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10507 then
10508 lt_save_LIBS="$LIBS"
10509 LIBS="$LIBS $LIBADD_DL"
10510 for ac_func in dlerror
10511 do :
10512 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
10513 if test "x$ac_cv_func_dlerror" = x""yes; then :
10514 cat >>confdefs.h <<_ACEOF
10515 #define HAVE_DLERROR 1
10516 _ACEOF
10519 done
10521 LIBS="$lt_save_LIBS"
10523 ac_ext=c
10524 ac_cpp='$CPP $CPPFLAGS'
10525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
10532 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
10533 if test "${ac_cv_sys_symbol_underscore+set}" = set; then :
10534 $as_echo_n "(cached) " >&6
10535 else
10536 ac_cv_sys_symbol_underscore=no
10537 cat > conftest.$ac_ext <<EOF
10538 void nm_test_func(){}
10539 int main(){nm_test_func;return 0;}
10541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10542 (eval $ac_compile) 2>&5
10543 ac_status=$?
10544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10545 test $ac_status = 0; }; then
10546 # Now try to grab the symbols.
10547 ac_nlist=conftest.nm
10548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
10549 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10550 ac_status=$?
10551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10552 test $ac_status = 0; } && test -s "$ac_nlist"; then
10553 # See whether the symbols have a leading underscore.
10554 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10555 ac_cv_sys_symbol_underscore=yes
10556 else
10557 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10559 else
10560 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10563 else
10564 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10566 else
10567 echo "configure: failed program was:" >&5
10568 cat conftest.c >&5
10570 rm -rf conftest*
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_symbol_underscore" >&5
10574 $as_echo "$ac_cv_sys_symbol_underscore" >&6; }
10577 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10578 if test x"$libltdl_cv_func_dlopen" = xyes ||
10579 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
10581 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
10582 if test "${libltdl_cv_need_uscore+set}" = set; then :
10583 $as_echo_n "(cached) " >&6
10584 else
10585 libltdl_cv_need_uscore=unknown
10586 save_LIBS="$LIBS"
10587 LIBS="$LIBS $LIBADD_DL"
10588 if test "$cross_compiling" = yes; then :
10589 libltdl_cv_need_uscore=cross
10590 else
10591 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10592 lt_status=$lt_dlunknown
10593 cat > conftest.$ac_ext <<EOF
10594 #line 10594 "configure"
10595 #include "confdefs.h"
10597 #if HAVE_DLFCN_H
10598 #include <dlfcn.h>
10599 #endif
10601 #include <stdio.h>
10603 #ifdef RTLD_GLOBAL
10604 # define LT_DLGLOBAL RTLD_GLOBAL
10605 #else
10606 # ifdef DL_GLOBAL
10607 # define LT_DLGLOBAL DL_GLOBAL
10608 # else
10609 # define LT_DLGLOBAL 0
10610 # endif
10611 #endif
10613 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10614 find out it does not work in some platform. */
10615 #ifndef LT_DLLAZY_OR_NOW
10616 # ifdef RTLD_LAZY
10617 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10618 # else
10619 # ifdef DL_LAZY
10620 # define LT_DLLAZY_OR_NOW DL_LAZY
10621 # else
10622 # ifdef RTLD_NOW
10623 # define LT_DLLAZY_OR_NOW RTLD_NOW
10624 # else
10625 # ifdef DL_NOW
10626 # define LT_DLLAZY_OR_NOW DL_NOW
10627 # else
10628 # define LT_DLLAZY_OR_NOW 0
10629 # endif
10630 # endif
10631 # endif
10632 # endif
10633 #endif
10635 #ifdef __cplusplus
10636 extern "C" void exit (int);
10637 #endif
10639 void fnord() { int i=42;}
10640 int main ()
10642 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10643 int status = $lt_dlunknown;
10645 if (self)
10647 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10648 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10649 /* dlclose (self); */
10652 exit (status);
10655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10656 (eval $ac_link) 2>&5
10657 ac_status=$?
10658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10659 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10660 (./conftest; exit; ) 2>/dev/null
10661 lt_status=$?
10662 case x$lt_status in
10663 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10664 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10665 x$lt_unknown|x*) ;;
10666 esac
10667 else :
10668 # compilation failed
10672 rm -fr conftest*
10674 LIBS="$save_LIBS"
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
10678 $as_echo "$libltdl_cv_need_uscore" >&6; }
10682 if test x"$libltdl_cv_need_uscore" = xyes; then
10684 $as_echo "#define NEED_USCORE 1" >>confdefs.h
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
10690 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
10691 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then :
10692 $as_echo_n "(cached) " >&6
10693 else
10694 # PORTME does your system automatically load deplibs for dlopen?
10695 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10696 # For now, we just catch OSes we know something about -- in the
10697 # future, we'll try test this programmatically.
10698 libltdl_cv_sys_dlopen_deplibs=unknown
10699 case "$host_os" in
10700 aix3*|aix4.1.*|aix4.2.*)
10701 # Unknown whether this is true for these versions of AIX, but
10702 # we want this `case' here to explicitly catch those versions.
10703 libltdl_cv_sys_dlopen_deplibs=unknown
10705 aix[45]*)
10706 libltdl_cv_sys_dlopen_deplibs=yes
10708 darwin*)
10709 # Assuming the user has installed a libdl from somewhere, this is true
10710 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10711 libltdl_cv_sys_dlopen_deplibs=yes
10713 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10714 # GNU and its variants, using gnu ld.so (Glibc)
10715 libltdl_cv_sys_dlopen_deplibs=yes
10717 hpux10*|hpux11*)
10718 libltdl_cv_sys_dlopen_deplibs=yes
10720 irix[12345]*|irix6.[01]*)
10721 # Catch all versions of IRIX before 6.2, and indicate that we don't
10722 # know how it worked for any of those versions.
10723 libltdl_cv_sys_dlopen_deplibs=unknown
10725 irix*)
10726 # The case above catches anything before 6.2, and it's known that
10727 # at 6.2 and later dlopen does load deplibs.
10728 libltdl_cv_sys_dlopen_deplibs=yes
10730 netbsd*)
10731 libltdl_cv_sys_dlopen_deplibs=yes
10733 openbsd*)
10734 libltdl_cv_sys_dlopen_deplibs=yes
10736 osf[1234]*)
10737 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10738 # it did *not* use an RPATH in a shared library to find objects the
10739 # library depends on, so we explictly say `no'.
10740 libltdl_cv_sys_dlopen_deplibs=no
10742 osf5.0|osf5.0a|osf5.1)
10743 # dlopen *does* load deplibs and with the right loader patch applied
10744 # it even uses RPATH in a shared library to search for shared objects
10745 # that the library depends on, but there's no easy way to know if that
10746 # patch is installed. Since this is the case, all we can really
10747 # say is unknown -- it depends on the patch being installed. If
10748 # it is, this changes to `yes'. Without it, it would be `no'.
10749 libltdl_cv_sys_dlopen_deplibs=unknown
10751 osf*)
10752 # the two cases above should catch all versions of osf <= 5.1. Read
10753 # the comments above for what we know about them.
10754 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10755 # is used to find them so we can finally say `yes'.
10756 libltdl_cv_sys_dlopen_deplibs=yes
10758 solaris*)
10759 libltdl_cv_sys_dlopen_deplibs=yes
10761 esac
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10765 $as_echo "$libltdl_cv_sys_dlopen_deplibs" >&6; }
10766 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10768 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
10772 for ac_header in argz.h
10773 do :
10774 ac_fn_c_check_header_mongrel "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default"
10775 if test "x$ac_cv_header_argz_h" = x""yes; then :
10776 cat >>confdefs.h <<_ACEOF
10777 #define HAVE_ARGZ_H 1
10778 _ACEOF
10782 done
10785 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if HAVE_ARGZ_H
10786 # include <argz.h>
10787 #endif
10789 if test "x$ac_cv_type_error_t" = x""yes; then :
10791 cat >>confdefs.h <<_ACEOF
10792 #define HAVE_ERROR_T 1
10793 _ACEOF
10796 else
10798 $as_echo "#define error_t int" >>confdefs.h
10803 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10804 do :
10805 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10806 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10807 eval as_val=\$$as_ac_var
10808 if test "x$as_val" = x""yes; then :
10809 cat >>confdefs.h <<_ACEOF
10810 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10811 _ACEOF
10814 done
10835 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10836 stdio.h unistd.h
10837 do :
10838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10839 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10840 eval as_val=\$$as_ac_Header
10841 if test "x$as_val" = x""yes; then :
10842 cat >>confdefs.h <<_ACEOF
10843 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10844 _ACEOF
10848 done
10850 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10851 do :
10852 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10853 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10854 eval as_val=\$$as_ac_Header
10855 if test "x$as_val" = x""yes; then :
10856 cat >>confdefs.h <<_ACEOF
10857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10858 _ACEOF
10862 done
10864 for ac_header in string.h strings.h
10865 do :
10866 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10867 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10868 eval as_val=\$$as_ac_Header
10869 if test "x$as_val" = x""yes; then :
10870 cat >>confdefs.h <<_ACEOF
10871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10872 _ACEOF
10873 break
10876 done
10879 for ac_func in strchr index
10880 do :
10881 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10882 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10883 eval as_val=\$$as_ac_var
10884 if test "x$as_val" = x""yes; then :
10885 cat >>confdefs.h <<_ACEOF
10886 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10887 _ACEOF
10888 break
10890 done
10892 for ac_func in strrchr rindex
10893 do :
10894 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10895 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10896 eval as_val=\$$as_ac_var
10897 if test "x$as_val" = x""yes; then :
10898 cat >>confdefs.h <<_ACEOF
10899 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10900 _ACEOF
10901 break
10903 done
10905 for ac_func in memcpy bcopy
10906 do :
10907 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10908 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10909 eval as_val=\$$as_ac_var
10910 if test "x$as_val" = x""yes; then :
10911 cat >>confdefs.h <<_ACEOF
10912 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10913 _ACEOF
10914 break
10916 done
10918 for ac_func in memmove strcmp
10919 do :
10920 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10921 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10922 eval as_val=\$$as_ac_var
10923 if test "x$as_val" = x""yes; then :
10924 cat >>confdefs.h <<_ACEOF
10925 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10926 _ACEOF
10929 done
10931 for ac_func in closedir opendir readdir
10932 do :
10933 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10934 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10935 eval as_val=\$$as_ac_var
10936 if test "x$as_val" = x""yes; then :
10937 cat >>confdefs.h <<_ACEOF
10938 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10939 _ACEOF
10942 done
10947 ## -------- ##
10948 ## Outputs. ##
10949 ## -------- ##
10950 ac_config_files="$ac_config_files Makefile"
10952 cat >confcache <<\_ACEOF
10953 # This file is a shell script that caches the results of configure
10954 # tests run on this system so they can be shared between configure
10955 # scripts and configure runs, see configure's option --config-cache.
10956 # It is not useful on other systems. If it contains results you don't
10957 # want to keep, you may remove or edit it.
10959 # config.status only pays attention to the cache file if you give it
10960 # the --recheck option to rerun configure.
10962 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10963 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10964 # following values.
10966 _ACEOF
10968 # The following way of writing the cache mishandles newlines in values,
10969 # but we know of no workaround that is simple, portable, and efficient.
10970 # So, we kill variables containing newlines.
10971 # Ultrix sh set writes to stderr and can't be redirected directly,
10972 # and sets the high bit in the cache file unless we assign to the vars.
10974 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10975 eval ac_val=\$$ac_var
10976 case $ac_val in #(
10977 *${as_nl}*)
10978 case $ac_var in #(
10979 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10980 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10981 esac
10982 case $ac_var in #(
10983 _ | IFS | as_nl) ;; #(
10984 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10985 *) { eval $ac_var=; unset $ac_var;} ;;
10986 esac ;;
10987 esac
10988 done
10990 (set) 2>&1 |
10991 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10992 *${as_nl}ac_space=\ *)
10993 # `set' does not quote correctly, so add quotes: double-quote
10994 # substitution turns \\\\ into \\, and sed turns \\ into \.
10995 sed -n \
10996 "s/'/'\\\\''/g;
10997 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10998 ;; #(
11000 # `set' quotes correctly as required by POSIX, so do not add quotes.
11001 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11003 esac |
11004 sort
11006 sed '
11007 /^ac_cv_env_/b end
11008 t clear
11009 :clear
11010 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11011 t end
11012 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11013 :end' >>confcache
11014 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11015 if test -w "$cache_file"; then
11016 test "x$cache_file" != "x/dev/null" &&
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11018 $as_echo "$as_me: updating cache $cache_file" >&6;}
11019 cat confcache >$cache_file
11020 else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11022 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11025 rm -f confcache
11027 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11028 # Let make expand exec_prefix.
11029 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11031 DEFS=-DHAVE_CONFIG_H
11033 ac_libobjs=
11034 ac_ltlibobjs=
11035 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11036 # 1. Remove the extension, and $U if already installed.
11037 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11038 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11039 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11040 # will be set to the directory where LIBOBJS objects are built.
11041 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11042 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11043 done
11044 LIBOBJS=$ac_libobjs
11046 LTLIBOBJS=$ac_ltlibobjs
11049 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11050 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11053 if test -n "$EXEEXT"; then
11054 am__EXEEXT_TRUE=
11055 am__EXEEXT_FALSE='#'
11056 else
11057 am__EXEEXT_TRUE='#'
11058 am__EXEEXT_FALSE=
11061 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11062 as_fn_error "conditional \"AMDEP\" was never defined.
11063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11065 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11066 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11069 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
11070 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
11071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11073 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
11074 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
11075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11078 : ${CONFIG_STATUS=./config.status}
11079 ac_write_fail=0
11080 ac_clean_files_save=$ac_clean_files
11081 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11083 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11084 as_write_fail=0
11085 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11086 #! $SHELL
11087 # Generated by $as_me.
11088 # Run this file to recreate the current configuration.
11089 # Compiler output produced by configure, useful for debugging
11090 # configure, is in config.log if it exists.
11092 debug=false
11093 ac_cs_recheck=false
11094 ac_cs_silent=false
11096 SHELL=\${CONFIG_SHELL-$SHELL}
11097 export SHELL
11098 _ASEOF
11099 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11100 ## -------------------- ##
11101 ## M4sh Initialization. ##
11102 ## -------------------- ##
11104 # Be more Bourne compatible
11105 DUALCASE=1; export DUALCASE # for MKS sh
11106 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11107 emulate sh
11108 NULLCMD=:
11109 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11110 # is contrary to our usage. Disable this feature.
11111 alias -g '${1+"$@"}'='"$@"'
11112 setopt NO_GLOB_SUBST
11113 else
11114 case `(set -o) 2>/dev/null` in #(
11115 *posix*) :
11116 set -o posix ;; #(
11117 *) :
11119 esac
11123 as_nl='
11125 export as_nl
11126 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11127 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11128 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11129 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11130 # Prefer a ksh shell builtin over an external printf program on Solaris,
11131 # but without wasting forks for bash or zsh.
11132 if test -z "$BASH_VERSION$ZSH_VERSION" \
11133 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11134 as_echo='print -r --'
11135 as_echo_n='print -rn --'
11136 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11137 as_echo='printf %s\n'
11138 as_echo_n='printf %s'
11139 else
11140 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11141 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11142 as_echo_n='/usr/ucb/echo -n'
11143 else
11144 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11145 as_echo_n_body='eval
11146 arg=$1;
11147 case $arg in #(
11148 *"$as_nl"*)
11149 expr "X$arg" : "X\\(.*\\)$as_nl";
11150 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11151 esac;
11152 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11154 export as_echo_n_body
11155 as_echo_n='sh -c $as_echo_n_body as_echo'
11157 export as_echo_body
11158 as_echo='sh -c $as_echo_body as_echo'
11161 # The user is always right.
11162 if test "${PATH_SEPARATOR+set}" != set; then
11163 PATH_SEPARATOR=:
11164 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11165 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11166 PATH_SEPARATOR=';'
11171 # IFS
11172 # We need space, tab and new line, in precisely that order. Quoting is
11173 # there to prevent editors from complaining about space-tab.
11174 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11175 # splitting by setting IFS to empty value.)
11176 IFS=" "" $as_nl"
11178 # Find who we are. Look in the path if we contain no directory separator.
11179 case $0 in #((
11180 *[\\/]* ) as_myself=$0 ;;
11181 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11182 for as_dir in $PATH
11184 IFS=$as_save_IFS
11185 test -z "$as_dir" && as_dir=.
11186 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11187 done
11188 IFS=$as_save_IFS
11191 esac
11192 # We did not find ourselves, most probably we were run as `sh COMMAND'
11193 # in which case we are not to be found in the path.
11194 if test "x$as_myself" = x; then
11195 as_myself=$0
11197 if test ! -f "$as_myself"; then
11198 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11199 exit 1
11202 # Unset variables that we do not need and which cause bugs (e.g. in
11203 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11204 # suppresses any "Segmentation fault" message there. '((' could
11205 # trigger a bug in pdksh 5.2.14.
11206 for as_var in BASH_ENV ENV MAIL MAILPATH
11207 do eval test x\${$as_var+set} = xset \
11208 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11209 done
11210 PS1='$ '
11211 PS2='> '
11212 PS4='+ '
11214 # NLS nuisances.
11215 LC_ALL=C
11216 export LC_ALL
11217 LANGUAGE=C
11218 export LANGUAGE
11220 # CDPATH.
11221 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11224 # as_fn_error ERROR [LINENO LOG_FD]
11225 # ---------------------------------
11226 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11227 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11228 # script with status $?, using 1 if that was 0.
11229 as_fn_error ()
11231 as_status=$?; test $as_status -eq 0 && as_status=1
11232 if test "$3"; then
11233 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11234 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11236 $as_echo "$as_me: error: $1" >&2
11237 as_fn_exit $as_status
11238 } # as_fn_error
11241 # as_fn_set_status STATUS
11242 # -----------------------
11243 # Set $? to STATUS, without forking.
11244 as_fn_set_status ()
11246 return $1
11247 } # as_fn_set_status
11249 # as_fn_exit STATUS
11250 # -----------------
11251 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11252 as_fn_exit ()
11254 set +e
11255 as_fn_set_status $1
11256 exit $1
11257 } # as_fn_exit
11259 # as_fn_unset VAR
11260 # ---------------
11261 # Portably unset VAR.
11262 as_fn_unset ()
11264 { eval $1=; unset $1;}
11266 as_unset=as_fn_unset
11267 # as_fn_append VAR VALUE
11268 # ----------------------
11269 # Append the text in VALUE to the end of the definition contained in VAR. Take
11270 # advantage of any shell optimizations that allow amortized linear growth over
11271 # repeated appends, instead of the typical quadratic growth present in naive
11272 # implementations.
11273 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11274 eval 'as_fn_append ()
11276 eval $1+=\$2
11278 else
11279 as_fn_append ()
11281 eval $1=\$$1\$2
11283 fi # as_fn_append
11285 # as_fn_arith ARG...
11286 # ------------------
11287 # Perform arithmetic evaluation on the ARGs, and store the result in the
11288 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11289 # must be portable across $(()) and expr.
11290 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11291 eval 'as_fn_arith ()
11293 as_val=$(( $* ))
11295 else
11296 as_fn_arith ()
11298 as_val=`expr "$@" || test $? -eq 1`
11300 fi # as_fn_arith
11303 if expr a : '\(a\)' >/dev/null 2>&1 &&
11304 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11305 as_expr=expr
11306 else
11307 as_expr=false
11310 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11311 as_basename=basename
11312 else
11313 as_basename=false
11316 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11317 as_dirname=dirname
11318 else
11319 as_dirname=false
11322 as_me=`$as_basename -- "$0" ||
11323 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11324 X"$0" : 'X\(//\)$' \| \
11325 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11326 $as_echo X/"$0" |
11327 sed '/^.*\/\([^/][^/]*\)\/*$/{
11328 s//\1/
11331 /^X\/\(\/\/\)$/{
11332 s//\1/
11335 /^X\/\(\/\).*/{
11336 s//\1/
11339 s/.*/./; q'`
11341 # Avoid depending upon Character Ranges.
11342 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11343 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11344 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11345 as_cr_digits='0123456789'
11346 as_cr_alnum=$as_cr_Letters$as_cr_digits
11348 ECHO_C= ECHO_N= ECHO_T=
11349 case `echo -n x` in #(((((
11350 -n*)
11351 case `echo 'xy\c'` in
11352 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11353 xy) ECHO_C='\c';;
11354 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11355 ECHO_T=' ';;
11356 esac;;
11358 ECHO_N='-n';;
11359 esac
11361 rm -f conf$$ conf$$.exe conf$$.file
11362 if test -d conf$$.dir; then
11363 rm -f conf$$.dir/conf$$.file
11364 else
11365 rm -f conf$$.dir
11366 mkdir conf$$.dir 2>/dev/null
11368 if (echo >conf$$.file) 2>/dev/null; then
11369 if ln -s conf$$.file conf$$ 2>/dev/null; then
11370 as_ln_s='ln -s'
11371 # ... but there are two gotchas:
11372 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11373 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11374 # In both cases, we have to default to `cp -p'.
11375 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11376 as_ln_s='cp -p'
11377 elif ln conf$$.file conf$$ 2>/dev/null; then
11378 as_ln_s=ln
11379 else
11380 as_ln_s='cp -p'
11382 else
11383 as_ln_s='cp -p'
11385 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11386 rmdir conf$$.dir 2>/dev/null
11389 # as_fn_mkdir_p
11390 # -------------
11391 # Create "$as_dir" as a directory, including parents if necessary.
11392 as_fn_mkdir_p ()
11395 case $as_dir in #(
11396 -*) as_dir=./$as_dir;;
11397 esac
11398 test -d "$as_dir" || eval $as_mkdir_p || {
11399 as_dirs=
11400 while :; do
11401 case $as_dir in #(
11402 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11403 *) as_qdir=$as_dir;;
11404 esac
11405 as_dirs="'$as_qdir' $as_dirs"
11406 as_dir=`$as_dirname -- "$as_dir" ||
11407 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11408 X"$as_dir" : 'X\(//\)[^/]' \| \
11409 X"$as_dir" : 'X\(//\)$' \| \
11410 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11411 $as_echo X"$as_dir" |
11412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11413 s//\1/
11416 /^X\(\/\/\)[^/].*/{
11417 s//\1/
11420 /^X\(\/\/\)$/{
11421 s//\1/
11424 /^X\(\/\).*/{
11425 s//\1/
11428 s/.*/./; q'`
11429 test -d "$as_dir" && break
11430 done
11431 test -z "$as_dirs" || eval "mkdir $as_dirs"
11432 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11435 } # as_fn_mkdir_p
11436 if mkdir -p . 2>/dev/null; then
11437 as_mkdir_p='mkdir -p "$as_dir"'
11438 else
11439 test -d ./-p && rmdir ./-p
11440 as_mkdir_p=false
11443 if test -x / >/dev/null 2>&1; then
11444 as_test_x='test -x'
11445 else
11446 if ls -dL / >/dev/null 2>&1; then
11447 as_ls_L_option=L
11448 else
11449 as_ls_L_option=
11451 as_test_x='
11452 eval sh -c '\''
11453 if test -d "$1"; then
11454 test -d "$1/.";
11455 else
11456 case $1 in #(
11457 -*)set "./$1";;
11458 esac;
11459 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11460 ???[sx]*):;;*)false;;esac;fi
11461 '\'' sh
11464 as_executable_p=$as_test_x
11466 # Sed expression to map a string onto a valid CPP name.
11467 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11469 # Sed expression to map a string onto a valid variable name.
11470 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11473 exec 6>&1
11474 ## ----------------------------------- ##
11475 ## Main body of $CONFIG_STATUS script. ##
11476 ## ----------------------------------- ##
11477 _ASEOF
11478 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11481 # Save the log message, to keep $0 and so on meaningful, and to
11482 # report actual input values of CONFIG_FILES etc. instead of their
11483 # values after options handling.
11484 ac_log="
11485 This file was extended by libltdl $as_me 1.2, which was
11486 generated by GNU Autoconf 2.64. Invocation command line was
11488 CONFIG_FILES = $CONFIG_FILES
11489 CONFIG_HEADERS = $CONFIG_HEADERS
11490 CONFIG_LINKS = $CONFIG_LINKS
11491 CONFIG_COMMANDS = $CONFIG_COMMANDS
11492 $ $0 $@
11494 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11497 _ACEOF
11499 case $ac_config_files in *"
11500 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11501 esac
11503 case $ac_config_headers in *"
11504 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11505 esac
11508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11509 # Files that config.status was made for.
11510 config_files="$ac_config_files"
11511 config_headers="$ac_config_headers"
11512 config_commands="$ac_config_commands"
11514 _ACEOF
11516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11517 ac_cs_usage="\
11518 \`$as_me' instantiates files and other configuration actions
11519 from templates according to the current configuration. Unless the files
11520 and actions are specified as TAGs, all are instantiated by default.
11522 Usage: $0 [OPTION]... [TAG]...
11524 -h, --help print this help, then exit
11525 -V, --version print version number and configuration settings, then exit
11526 -q, --quiet, --silent
11527 do not print progress messages
11528 -d, --debug don't remove temporary files
11529 --recheck update $as_me by reconfiguring in the same conditions
11530 --file=FILE[:TEMPLATE]
11531 instantiate the configuration file FILE
11532 --header=FILE[:TEMPLATE]
11533 instantiate the configuration header FILE
11535 Configuration files:
11536 $config_files
11538 Configuration headers:
11539 $config_headers
11541 Configuration commands:
11542 $config_commands
11544 Report bugs to <bug-libtool@gnu.org>."
11546 _ACEOF
11547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11548 ac_cs_version="\\
11549 libltdl config.status 1.2
11550 configured by $0, generated by GNU Autoconf 2.64,
11551 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11553 Copyright (C) 2009 Free Software Foundation, Inc.
11554 This config.status script is free software; the Free Software Foundation
11555 gives unlimited permission to copy, distribute and modify it."
11557 ac_pwd='$ac_pwd'
11558 srcdir='$srcdir'
11559 INSTALL='$INSTALL'
11560 MKDIR_P='$MKDIR_P'
11561 AWK='$AWK'
11562 test -n "\$AWK" || AWK=awk
11563 _ACEOF
11565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11566 # The default lists apply if the user does not specify any file.
11567 ac_need_defaults=:
11568 while test $# != 0
11570 case $1 in
11571 --*=*)
11572 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11573 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11574 ac_shift=:
11577 ac_option=$1
11578 ac_optarg=$2
11579 ac_shift=shift
11581 esac
11583 case $ac_option in
11584 # Handling of the options.
11585 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11586 ac_cs_recheck=: ;;
11587 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11588 $as_echo "$ac_cs_version"; exit ;;
11589 --debug | --debu | --deb | --de | --d | -d )
11590 debug=: ;;
11591 --file | --fil | --fi | --f )
11592 $ac_shift
11593 case $ac_optarg in
11594 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11595 esac
11596 as_fn_append CONFIG_FILES " '$ac_optarg'"
11597 ac_need_defaults=false;;
11598 --header | --heade | --head | --hea )
11599 $ac_shift
11600 case $ac_optarg in
11601 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11602 esac
11603 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11604 ac_need_defaults=false;;
11605 --he | --h)
11606 # Conflict between --help and --header
11607 as_fn_error "ambiguous option: \`$1'
11608 Try \`$0 --help' for more information.";;
11609 --help | --hel | -h )
11610 $as_echo "$ac_cs_usage"; exit ;;
11611 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11612 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11613 ac_cs_silent=: ;;
11615 # This is an error.
11616 -*) as_fn_error "unrecognized option: \`$1'
11617 Try \`$0 --help' for more information." ;;
11619 *) as_fn_append ac_config_targets " $1"
11620 ac_need_defaults=false ;;
11622 esac
11623 shift
11624 done
11626 ac_configure_extra_args=
11628 if $ac_cs_silent; then
11629 exec 6>/dev/null
11630 ac_configure_extra_args="$ac_configure_extra_args --silent"
11633 _ACEOF
11634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11635 if \$ac_cs_recheck; then
11636 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11637 shift
11638 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11639 CONFIG_SHELL='$SHELL'
11640 export CONFIG_SHELL
11641 exec "\$@"
11644 _ACEOF
11645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11646 exec 5>>config.log
11648 echo
11649 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11650 ## Running $as_me. ##
11651 _ASBOX
11652 $as_echo "$ac_log"
11653 } >&5
11655 _ACEOF
11656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11658 # INIT-COMMANDS
11661 srcdir="$srcdir"
11662 host="$host"
11663 target="$target"
11664 with_multisubdir="$with_multisubdir"
11665 with_multisrctop="$with_multisrctop"
11666 with_target_subdir="$with_target_subdir"
11667 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11668 multi_basedir="$multi_basedir"
11669 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11670 CC="$CC"
11671 CXX="$CXX"
11672 GFORTRAN="$GFORTRAN"
11673 GCJ="$GCJ"
11674 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11676 _ACEOF
11678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11680 # Handling of arguments.
11681 for ac_config_target in $ac_config_targets
11683 case $ac_config_target in
11684 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11685 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
11686 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11687 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11689 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11690 esac
11691 done
11694 # If the user did not use the arguments to specify the items to instantiate,
11695 # then the envvar interface is used. Set only those that are not.
11696 # We use the long form for the default assignment because of an extremely
11697 # bizarre bug on SunOS 4.1.3.
11698 if $ac_need_defaults; then
11699 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11700 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11701 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11704 # Have a temporary directory for convenience. Make it in the build tree
11705 # simply because there is no reason against having it here, and in addition,
11706 # creating and moving files from /tmp can sometimes cause problems.
11707 # Hook for its removal unless debugging.
11708 # Note that there is a small window in which the directory will not be cleaned:
11709 # after its creation but before its name has been assigned to `$tmp'.
11710 $debug ||
11712 tmp=
11713 trap 'exit_status=$?
11714 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11716 trap 'as_fn_exit 1' 1 2 13 15
11718 # Create a (secure) tmp directory for tmp files.
11721 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11722 test -n "$tmp" && test -d "$tmp"
11723 } ||
11725 tmp=./conf$$-$RANDOM
11726 (umask 077 && mkdir "$tmp")
11727 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11729 # Set up the scripts for CONFIG_FILES section.
11730 # No need to generate them if there are no CONFIG_FILES.
11731 # This happens for instance with `./config.status config.h'.
11732 if test -n "$CONFIG_FILES"; then
11735 ac_cr=`echo X | tr X '\015'`
11736 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11737 # But we know of no other shell where ac_cr would be empty at this
11738 # point, so we can use a bashism as a fallback.
11739 if test "x$ac_cr" = x; then
11740 eval ac_cr=\$\'\\r\'
11742 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11743 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11744 ac_cs_awk_cr='\r'
11745 else
11746 ac_cs_awk_cr=$ac_cr
11749 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11750 _ACEOF
11754 echo "cat >conf$$subs.awk <<_ACEOF" &&
11755 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11756 echo "_ACEOF"
11757 } >conf$$subs.sh ||
11758 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11759 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11760 ac_delim='%!_!# '
11761 for ac_last_try in false false false false false :; do
11762 . ./conf$$subs.sh ||
11763 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11765 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11766 if test $ac_delim_n = $ac_delim_num; then
11767 break
11768 elif $ac_last_try; then
11769 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11770 else
11771 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11773 done
11774 rm -f conf$$subs.sh
11776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11777 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11778 _ACEOF
11779 sed -n '
11781 s/^/S["/; s/!.*/"]=/
11784 s/^[^!]*!//
11785 :repl
11786 t repl
11787 s/'"$ac_delim"'$//
11788 t delim
11791 s/\(.\{148\}\).*/\1/
11792 t more1
11793 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11796 b repl
11797 :more1
11798 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11801 s/.\{148\}//
11802 t nl
11803 :delim
11805 s/\(.\{148\}\).*/\1/
11806 t more2
11807 s/["\\]/\\&/g; s/^/"/; s/$/"/
11810 :more2
11811 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11814 s/.\{148\}//
11815 t delim
11816 ' <conf$$subs.awk | sed '
11817 /^[^""]/{
11819 s/\n//
11821 ' >>$CONFIG_STATUS || ac_write_fail=1
11822 rm -f conf$$subs.awk
11823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11824 _ACAWK
11825 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11826 for (key in S) S_is_set[key] = 1
11827 FS = "\a"
11831 line = $ 0
11832 nfields = split(line, field, "@")
11833 substed = 0
11834 len = length(field[1])
11835 for (i = 2; i < nfields; i++) {
11836 key = field[i]
11837 keylen = length(key)
11838 if (S_is_set[key]) {
11839 value = S[key]
11840 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11841 len += length(value) + length(field[++i])
11842 substed = 1
11843 } else
11844 len += 1 + keylen
11847 print line
11850 _ACAWK
11851 _ACEOF
11852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11853 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11854 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11855 else
11857 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11858 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11859 _ACEOF
11861 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11862 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11863 # trailing colons and then remove the whole line if VPATH becomes empty
11864 # (actually we leave an empty line to preserve line numbers).
11865 if test "x$srcdir" = x.; then
11866 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11867 s/:*\$(srcdir):*/:/
11868 s/:*\${srcdir}:*/:/
11869 s/:*@srcdir@:*/:/
11870 s/^\([^=]*=[ ]*\):*/\1/
11871 s/:*$//
11872 s/^[^=]*=[ ]*$//
11876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11877 fi # test -n "$CONFIG_FILES"
11879 # Set up the scripts for CONFIG_HEADERS section.
11880 # No need to generate them if there are no CONFIG_HEADERS.
11881 # This happens for instance with `./config.status Makefile'.
11882 if test -n "$CONFIG_HEADERS"; then
11883 cat >"$tmp/defines.awk" <<\_ACAWK ||
11884 BEGIN {
11885 _ACEOF
11887 # Transform confdefs.h into an awk script `defines.awk', embedded as
11888 # here-document in config.status, that substitutes the proper values into
11889 # config.h.in to produce config.h.
11891 # Create a delimiter string that does not exist in confdefs.h, to ease
11892 # handling of long lines.
11893 ac_delim='%!_!# '
11894 for ac_last_try in false false :; do
11895 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11896 if test -z "$ac_t"; then
11897 break
11898 elif $ac_last_try; then
11899 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
11900 else
11901 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11903 done
11905 # For the awk script, D is an array of macro values keyed by name,
11906 # likewise P contains macro parameters if any. Preserve backslash
11907 # newline sequences.
11909 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11910 sed -n '
11911 s/.\{148\}/&'"$ac_delim"'/g
11912 t rset
11913 :rset
11914 s/^[ ]*#[ ]*define[ ][ ]*/ /
11915 t def
11917 :def
11918 s/\\$//
11919 t bsnl
11920 s/["\\]/\\&/g
11921 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11922 D["\1"]=" \3"/p
11923 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11925 :bsnl
11926 s/["\\]/\\&/g
11927 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11928 D["\1"]=" \3\\\\\\n"\\/p
11929 t cont
11930 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11931 t cont
11933 :cont
11935 s/.\{148\}/&'"$ac_delim"'/g
11936 t clear
11937 :clear
11938 s/\\$//
11939 t bsnlc
11940 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11942 :bsnlc
11943 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11944 b cont
11945 ' <confdefs.h | sed '
11946 s/'"$ac_delim"'/"\\\
11947 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11950 for (key in D) D_is_set[key] = 1
11951 FS = "\a"
11953 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11954 line = \$ 0
11955 split(line, arg, " ")
11956 if (arg[1] == "#") {
11957 defundef = arg[2]
11958 mac1 = arg[3]
11959 } else {
11960 defundef = substr(arg[1], 2)
11961 mac1 = arg[2]
11963 split(mac1, mac2, "(") #)
11964 macro = mac2[1]
11965 prefix = substr(line, 1, index(line, defundef) - 1)
11966 if (D_is_set[macro]) {
11967 # Preserve the white space surrounding the "#".
11968 print prefix "define", macro P[macro] D[macro]
11969 next
11970 } else {
11971 # Replace #undef with comments. This is necessary, for example,
11972 # in the case of _POSIX_SOURCE, which is predefined and required
11973 # on some systems where configure will not decide to define it.
11974 if (defundef == "undef") {
11975 print "/*", prefix defundef, macro, "*/"
11976 next
11980 { print }
11981 _ACAWK
11982 _ACEOF
11983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11984 as_fn_error "could not setup config headers machinery" "$LINENO" 5
11985 fi # test -n "$CONFIG_HEADERS"
11988 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11989 shift
11990 for ac_tag
11992 case $ac_tag in
11993 :[FHLC]) ac_mode=$ac_tag; continue;;
11994 esac
11995 case $ac_mode$ac_tag in
11996 :[FHL]*:*);;
11997 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
11998 :[FH]-) ac_tag=-:-;;
11999 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12000 esac
12001 ac_save_IFS=$IFS
12002 IFS=:
12003 set x $ac_tag
12004 IFS=$ac_save_IFS
12005 shift
12006 ac_file=$1
12007 shift
12009 case $ac_mode in
12010 :L) ac_source=$1;;
12011 :[FH])
12012 ac_file_inputs=
12013 for ac_f
12015 case $ac_f in
12016 -) ac_f="$tmp/stdin";;
12017 *) # Look for the file first in the build tree, then in the source tree
12018 # (if the path is not absolute). The absolute path cannot be DOS-style,
12019 # because $ac_f cannot contain `:'.
12020 test -f "$ac_f" ||
12021 case $ac_f in
12022 [\\/$]*) false;;
12023 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12024 esac ||
12025 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12026 esac
12027 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12028 as_fn_append ac_file_inputs " '$ac_f'"
12029 done
12031 # Let's still pretend it is `configure' which instantiates (i.e., don't
12032 # use $as_me), people would be surprised to read:
12033 # /* config.h. Generated by config.status. */
12034 configure_input='Generated from '`
12035 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12036 `' by configure.'
12037 if test x"$ac_file" != x-; then
12038 configure_input="$ac_file. $configure_input"
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12040 $as_echo "$as_me: creating $ac_file" >&6;}
12042 # Neutralize special characters interpreted by sed in replacement strings.
12043 case $configure_input in #(
12044 *\&* | *\|* | *\\* )
12045 ac_sed_conf_input=`$as_echo "$configure_input" |
12046 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12047 *) ac_sed_conf_input=$configure_input;;
12048 esac
12050 case $ac_tag in
12051 *:-:* | *:-) cat >"$tmp/stdin" \
12052 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12053 esac
12055 esac
12057 ac_dir=`$as_dirname -- "$ac_file" ||
12058 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12059 X"$ac_file" : 'X\(//\)[^/]' \| \
12060 X"$ac_file" : 'X\(//\)$' \| \
12061 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12062 $as_echo X"$ac_file" |
12063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12064 s//\1/
12067 /^X\(\/\/\)[^/].*/{
12068 s//\1/
12071 /^X\(\/\/\)$/{
12072 s//\1/
12075 /^X\(\/\).*/{
12076 s//\1/
12079 s/.*/./; q'`
12080 as_dir="$ac_dir"; as_fn_mkdir_p
12081 ac_builddir=.
12083 case "$ac_dir" in
12084 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12086 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12087 # A ".." for each directory in $ac_dir_suffix.
12088 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12089 case $ac_top_builddir_sub in
12090 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12091 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12092 esac ;;
12093 esac
12094 ac_abs_top_builddir=$ac_pwd
12095 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12096 # for backward compatibility:
12097 ac_top_builddir=$ac_top_build_prefix
12099 case $srcdir in
12100 .) # We are building in place.
12101 ac_srcdir=.
12102 ac_top_srcdir=$ac_top_builddir_sub
12103 ac_abs_top_srcdir=$ac_pwd ;;
12104 [\\/]* | ?:[\\/]* ) # Absolute name.
12105 ac_srcdir=$srcdir$ac_dir_suffix;
12106 ac_top_srcdir=$srcdir
12107 ac_abs_top_srcdir=$srcdir ;;
12108 *) # Relative name.
12109 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12110 ac_top_srcdir=$ac_top_build_prefix$srcdir
12111 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12112 esac
12113 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12116 case $ac_mode in
12119 # CONFIG_FILE
12122 case $INSTALL in
12123 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12124 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12125 esac
12126 ac_MKDIR_P=$MKDIR_P
12127 case $MKDIR_P in
12128 [\\/$]* | ?:[\\/]* ) ;;
12129 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12130 esac
12131 _ACEOF
12133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12134 # If the template does not know about datarootdir, expand it.
12135 # FIXME: This hack should be removed a few years after 2.60.
12136 ac_datarootdir_hack=; ac_datarootdir_seen=
12137 ac_sed_dataroot='
12138 /datarootdir/ {
12142 /@datadir@/p
12143 /@docdir@/p
12144 /@infodir@/p
12145 /@localedir@/p
12146 /@mandir@/p'
12147 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12148 *datarootdir*) ac_datarootdir_seen=yes;;
12149 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12151 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12152 _ACEOF
12153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12154 ac_datarootdir_hack='
12155 s&@datadir@&$datadir&g
12156 s&@docdir@&$docdir&g
12157 s&@infodir@&$infodir&g
12158 s&@localedir@&$localedir&g
12159 s&@mandir@&$mandir&g
12160 s&\\\${datarootdir}&$datarootdir&g' ;;
12161 esac
12162 _ACEOF
12164 # Neutralize VPATH when `$srcdir' = `.'.
12165 # Shell code in configure.ac might set extrasub.
12166 # FIXME: do we really want to maintain this feature?
12167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12168 ac_sed_extra="$ac_vpsub
12169 $extrasub
12170 _ACEOF
12171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12174 s|@configure_input@|$ac_sed_conf_input|;t t
12175 s&@top_builddir@&$ac_top_builddir_sub&;t t
12176 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12177 s&@srcdir@&$ac_srcdir&;t t
12178 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12179 s&@top_srcdir@&$ac_top_srcdir&;t t
12180 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12181 s&@builddir@&$ac_builddir&;t t
12182 s&@abs_builddir@&$ac_abs_builddir&;t t
12183 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12184 s&@INSTALL@&$ac_INSTALL&;t t
12185 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12186 $ac_datarootdir_hack
12188 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12189 || as_fn_error "could not create $ac_file" "$LINENO" 5
12191 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12192 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12193 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12195 which seems to be undefined. Please make sure it is defined." >&5
12196 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12197 which seems to be undefined. Please make sure it is defined." >&2;}
12199 rm -f "$tmp/stdin"
12200 case $ac_file in
12201 -) cat "$tmp/out" && rm -f "$tmp/out";;
12202 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12203 esac \
12204 || as_fn_error "could not create $ac_file" "$LINENO" 5
12208 # CONFIG_HEADER
12210 if test x"$ac_file" != x-; then
12212 $as_echo "/* $configure_input */" \
12213 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12214 } >"$tmp/config.h" \
12215 || as_fn_error "could not create $ac_file" "$LINENO" 5
12216 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12218 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12219 else
12220 rm -f "$ac_file"
12221 mv "$tmp/config.h" "$ac_file" \
12222 || as_fn_error "could not create $ac_file" "$LINENO" 5
12224 else
12225 $as_echo "/* $configure_input */" \
12226 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12227 || as_fn_error "could not create -" "$LINENO" 5
12229 # Compute "$ac_file"'s index in $config_headers.
12230 _am_arg="$ac_file"
12231 _am_stamp_count=1
12232 for _am_header in $config_headers :; do
12233 case $_am_header in
12234 $_am_arg | $_am_arg:* )
12235 break ;;
12237 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12238 esac
12239 done
12240 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12241 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12242 X"$_am_arg" : 'X\(//\)[^/]' \| \
12243 X"$_am_arg" : 'X\(//\)$' \| \
12244 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12245 $as_echo X"$_am_arg" |
12246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12247 s//\1/
12250 /^X\(\/\/\)[^/].*/{
12251 s//\1/
12254 /^X\(\/\/\)$/{
12255 s//\1/
12258 /^X\(\/\).*/{
12259 s//\1/
12262 s/.*/./; q'`/stamp-h$_am_stamp_count
12265 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12266 $as_echo "$as_me: executing $ac_file commands" >&6;}
12268 esac
12271 case $ac_file$ac_mode in
12272 "default-1":C)
12273 # Only add multilib support code if we just rebuilt the top-level
12274 # Makefile.
12275 case " $CONFIG_FILES " in
12276 *" Makefile "*)
12277 ac_file=Makefile . ${multi_basedir}/config-ml.in
12279 esac ;;
12280 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12281 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12282 # are listed without --file. Let's play safe and only enable the eval
12283 # if we detect the quoting.
12284 case $CONFIG_FILES in
12285 *\'*) eval set x "$CONFIG_FILES" ;;
12286 *) set x $CONFIG_FILES ;;
12287 esac
12288 shift
12289 for mf
12291 # Strip MF so we end up with the name of the file.
12292 mf=`echo "$mf" | sed -e 's/:.*$//'`
12293 # Check whether this is an Automake generated Makefile or not.
12294 # We used to match only the files named `Makefile.in', but
12295 # some people rename them; so instead we look at the file content.
12296 # Grep'ing the first line is not enough: some people post-process
12297 # each Makefile.in and add a new line on top of each file to say so.
12298 # Grep'ing the whole file is not good either: AIX grep has a line
12299 # limit of 2048, but all sed's we know have understand at least 4000.
12300 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12301 dirpart=`$as_dirname -- "$mf" ||
12302 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12303 X"$mf" : 'X\(//\)[^/]' \| \
12304 X"$mf" : 'X\(//\)$' \| \
12305 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12306 $as_echo X"$mf" |
12307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12308 s//\1/
12311 /^X\(\/\/\)[^/].*/{
12312 s//\1/
12315 /^X\(\/\/\)$/{
12316 s//\1/
12319 /^X\(\/\).*/{
12320 s//\1/
12323 s/.*/./; q'`
12324 else
12325 continue
12327 # Extract the definition of DEPDIR, am__include, and am__quote
12328 # from the Makefile without running `make'.
12329 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12330 test -z "$DEPDIR" && continue
12331 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12332 test -z "am__include" && continue
12333 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12334 # When using ansi2knr, U may be empty or an underscore; expand it
12335 U=`sed -n 's/^U = //p' < "$mf"`
12336 # Find all dependency output files, they are included files with
12337 # $(DEPDIR) in their names. We invoke sed twice because it is the
12338 # simplest approach to changing $(DEPDIR) to its actual value in the
12339 # expansion.
12340 for file in `sed -n "
12341 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12342 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12343 # Make sure the directory exists.
12344 test -f "$dirpart/$file" && continue
12345 fdir=`$as_dirname -- "$file" ||
12346 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12347 X"$file" : 'X\(//\)[^/]' \| \
12348 X"$file" : 'X\(//\)$' \| \
12349 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12350 $as_echo X"$file" |
12351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12352 s//\1/
12355 /^X\(\/\/\)[^/].*/{
12356 s//\1/
12359 /^X\(\/\/\)$/{
12360 s//\1/
12363 /^X\(\/\).*/{
12364 s//\1/
12367 s/.*/./; q'`
12368 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12369 # echo "creating $dirpart/$file"
12370 echo '# dummy' > "$dirpart/$file"
12371 done
12372 done
12376 esac
12377 done # for ac_tag
12380 as_fn_exit 0
12381 _ACEOF
12382 ac_clean_files=$ac_clean_files_save
12384 test $ac_write_fail = 0 ||
12385 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12388 # configure is writing to config.log, and then calls config.status.
12389 # config.status does its own redirection, appending to config.log.
12390 # Unfortunately, on DOS this fails, as config.log is still kept open
12391 # by configure, so config.status won't be able to write to it; its
12392 # output is simply discarded. So we exec the FD to /dev/null,
12393 # effectively closing config.log, so it can be properly (re)opened and
12394 # appended to by config.status. When coming back to configure, we
12395 # need to make the FD available again.
12396 if test "$no_create" != yes; then
12397 ac_cs_success=:
12398 ac_config_status_args=
12399 test "$silent" = yes &&
12400 ac_config_status_args="$ac_config_status_args --quiet"
12401 exec 5>/dev/null
12402 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12403 exec 5>>config.log
12404 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12405 # would make configure fail if this is the last instruction.
12406 $ac_cs_success || as_fn_exit $?
12408 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12410 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}