dnscrypto-proxy: Update to release 1.3.0
[tomato.git] / release / src / router / dnscrypt / libltdl / configure
blob15d673dc88bda75307f7556baf96fe6c154f87a1
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libltdl 2.4.2.
5 # Report bugs to <bug-libtool@gnu.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software 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 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: bug-libtool@gnu.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
283 exit 1
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
301 { eval $1=; unset $1;}
303 as_unset=as_fn_unset
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
310 return $1
311 } # as_fn_set_status
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
354 /^X\(\/\/\)$/{
355 s//\1/
358 /^X\(\/\).*/{
359 s//\1/
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369 } # as_fn_mkdir_p
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
387 eval $1+=\$2
389 else
390 as_fn_append ()
392 eval $1=\$$1\$2
394 fi # as_fn_append
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
404 as_val=$(( $* ))
406 else
407 as_fn_arith ()
409 as_val=`expr "$@" || test $? -eq 1`
411 fi # as_fn_arith
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
458 /^X\/\(\/\/\)$/{
459 s//\1/
462 /^X\/\(\/\).*/{
463 s//\1/
466 s/.*/./; q'`
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
489 :lineno
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
521 ECHO_N='-n';;
522 esac
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
545 else
546 as_ln_s='cp -pR'
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579 # Initializations.
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
590 # Identity of this package.
591 PACKAGE_NAME='libltdl'
592 PACKAGE_TARNAME='libltdl'
593 PACKAGE_VERSION='2.4.2'
594 PACKAGE_STRING='libltdl 2.4.2'
595 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
596 PACKAGE_URL=''
598 ac_unique_file="ltdl.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LTDLOPEN
639 LT_CONFIG_H
640 CONVENIENCE_LTDL_FALSE
641 CONVENIENCE_LTDL_TRUE
642 INSTALL_LTDL_FALSE
643 INSTALL_LTDL_TRUE
644 ARGZ_H
645 LIBOBJS
646 sys_symbol_underscore
647 LIBADD_DL
648 LT_DLPREOPEN
649 LIBADD_DLD_LINK
650 LIBADD_SHL_LOAD
651 LIBADD_DLOPEN
652 LT_DLLOADERS
654 OTOOL64
655 OTOOL
656 LIPO
657 NMEDIT
658 DSYMUTIL
659 MANIFEST_TOOL
660 RANLIB
661 ac_ct_AR
663 LN_S
665 ac_ct_DUMPBIN
666 DUMPBIN
668 FGREP
669 EGREP
670 GREP
672 am__fastdepCC_FALSE
673 am__fastdepCC_TRUE
674 CCDEPMODE
675 am__nodep
676 AMDEPBACKSLASH
677 AMDEP_FALSE
678 AMDEP_TRUE
679 am__quote
680 am__include
681 DEPDIR
682 OBJEXT
683 EXEEXT
684 ac_ct_CC
685 CPPFLAGS
686 LDFLAGS
687 CFLAGS
689 host_os
690 host_vendor
691 host_cpu
692 host
693 build_os
694 build_vendor
695 build_cpu
696 build
697 LIBTOOL
698 OBJDUMP
699 DLLTOOL
701 am__untar
702 am__tar
703 AMTAR
704 am__leading_dot
705 SET_MAKE
707 mkdir_p
708 MKDIR_P
709 INSTALL_STRIP_PROGRAM
710 STRIP
711 install_sh
712 MAKEINFO
713 AUTOHEADER
714 AUTOMAKE
715 AUTOCONF
716 ACLOCAL
717 VERSION
718 PACKAGE
719 CYGPATH_W
720 am__isrc
721 INSTALL_DATA
722 INSTALL_SCRIPT
723 INSTALL_PROGRAM
724 target_alias
725 host_alias
726 build_alias
727 LIBS
728 ECHO_T
729 ECHO_N
730 ECHO_C
731 DEFS
732 mandir
733 localedir
734 libdir
735 psdir
736 pdfdir
737 dvidir
738 htmldir
739 infodir
740 docdir
741 oldincludedir
742 includedir
743 localstatedir
744 sharedstatedir
745 sysconfdir
746 datadir
747 datarootdir
748 libexecdir
749 sbindir
750 bindir
751 program_transform_name
752 prefix
753 exec_prefix
754 PACKAGE_URL
755 PACKAGE_BUGREPORT
756 PACKAGE_STRING
757 PACKAGE_VERSION
758 PACKAGE_TARNAME
759 PACKAGE_NAME
760 PATH_SEPARATOR
761 SHELL'
762 ac_subst_files=''
763 ac_user_opts='
764 enable_option_checking
765 enable_shared
766 enable_static
767 with_pic
768 enable_fast_install
769 enable_dependency_tracking
770 with_gnu_ld
771 with_sysroot
772 enable_libtool_lock
773 enable_ltdl_install
775 ac_precious_vars='build_alias
776 host_alias
777 target_alias
779 CFLAGS
780 LDFLAGS
781 LIBS
782 CPPFLAGS
783 CPP'
786 # Initialize some variables set by options.
787 ac_init_help=
788 ac_init_version=false
789 ac_unrecognized_opts=
790 ac_unrecognized_sep=
791 # The variables have the same names as the options, with
792 # dashes changed to underlines.
793 cache_file=/dev/null
794 exec_prefix=NONE
795 no_create=
796 no_recursion=
797 prefix=NONE
798 program_prefix=NONE
799 program_suffix=NONE
800 program_transform_name=s,x,x,
801 silent=
802 site=
803 srcdir=
804 verbose=
805 x_includes=NONE
806 x_libraries=NONE
808 # Installation directory options.
809 # These are left unexpanded so users can "make install exec_prefix=/foo"
810 # and all the variables that are supposed to be based on exec_prefix
811 # by default will actually change.
812 # Use braces instead of parens because sh, perl, etc. also accept them.
813 # (The list follows the same order as the GNU Coding Standards.)
814 bindir='${exec_prefix}/bin'
815 sbindir='${exec_prefix}/sbin'
816 libexecdir='${exec_prefix}/libexec'
817 datarootdir='${prefix}/share'
818 datadir='${datarootdir}'
819 sysconfdir='${prefix}/etc'
820 sharedstatedir='${prefix}/com'
821 localstatedir='${prefix}/var'
822 includedir='${prefix}/include'
823 oldincludedir='/usr/include'
824 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
825 infodir='${datarootdir}/info'
826 htmldir='${docdir}'
827 dvidir='${docdir}'
828 pdfdir='${docdir}'
829 psdir='${docdir}'
830 libdir='${exec_prefix}/lib'
831 localedir='${datarootdir}/locale'
832 mandir='${datarootdir}/man'
834 ac_prev=
835 ac_dashdash=
836 for ac_option
838 # If the previous option needs an argument, assign it.
839 if test -n "$ac_prev"; then
840 eval $ac_prev=\$ac_option
841 ac_prev=
842 continue
845 case $ac_option in
846 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 *=) ac_optarg= ;;
848 *) ac_optarg=yes ;;
849 esac
851 # Accept the important Cygnus configure options, so we can diagnose typos.
853 case $ac_dashdash$ac_option in
855 ac_dashdash=yes ;;
857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 ac_prev=bindir ;;
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860 bindir=$ac_optarg ;;
862 -build | --build | --buil | --bui | --bu)
863 ac_prev=build_alias ;;
864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865 build_alias=$ac_optarg ;;
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872 cache_file=$ac_optarg ;;
874 --config-cache | -C)
875 cache_file=config.cache ;;
877 -datadir | --datadir | --datadi | --datad)
878 ac_prev=datadir ;;
879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
880 datadir=$ac_optarg ;;
882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
889 -disable-* | --disable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error $? "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
898 "enable_$ac_useropt"
899 "*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=no ;;
905 -docdir | --docdir | --docdi | --doc | --do)
906 ac_prev=docdir ;;
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908 docdir=$ac_optarg ;;
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 ac_prev=dvidir ;;
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913 dvidir=$ac_optarg ;;
915 -enable-* | --enable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error $? "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
924 "enable_$ac_useropt"
925 "*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=\$ac_optarg ;;
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 libdir=$ac_optarg ;;
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
991 -localstatedir | --localstatedir | --localstatedi | --localstated \
992 | --localstate | --localstat | --localsta | --localst | --locals)
993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996 localstatedir=$ac_optarg ;;
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1009 no_create=yes ;;
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1119 -with-* | --with-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error $? "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1128 "with_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=\$ac_optarg ;;
1135 -without-* | --without-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=no ;;
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1169 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1170 Try \`$0 --help' for more information"
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1179 esac
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1184 # FIXME: should be removed in autoconf 3.0.
1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1191 esac
1192 done
1194 if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 as_fn_error $? "missing argument to $ac_option"
1199 if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1201 no) ;;
1202 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204 esac
1207 # Check all directory arguments for consistency.
1208 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1215 case $ac_val in
1216 */ )
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1219 esac
1220 # Be sure to have absolute directory names.
1221 case $ac_val in
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 esac
1225 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1226 done
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1231 build=$build_alias
1232 host=$host_alias
1233 target=$target_alias
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
1239 elif test "x$build_alias" != "x$host_alias"; then
1240 cross_compiling=yes
1244 ac_tool_prefix=
1245 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247 test "$silent" = yes && exec 6>/dev/null
1250 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251 ac_ls_di=`ls -di .` &&
1252 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253 as_fn_error $? "working directory cannot be determined"
1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255 as_fn_error $? "pwd does not report name of working directory"
1258 # Find the source files, if location was not specified.
1259 if test -z "$srcdir"; then
1260 ac_srcdir_defaulted=yes
1261 # Try the directory containing this script, then the parent directory.
1262 ac_confdir=`$as_dirname -- "$as_myself" ||
1263 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$as_myself" : 'X\(//\)[^/]' \| \
1265 X"$as_myself" : 'X\(//\)$' \| \
1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267 $as_echo X"$as_myself" |
1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269 s//\1/
1272 /^X\(\/\/\)[^/].*/{
1273 s//\1/
1276 /^X\(\/\/\)$/{
1277 s//\1/
1280 /^X\(\/\).*/{
1281 s//\1/
1284 s/.*/./; q'`
1285 srcdir=$ac_confdir
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 srcdir=..
1289 else
1290 ac_srcdir_defaulted=no
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 ac_abs_confdir=`(
1298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1299 pwd)`
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 srcdir=.
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1307 case $srcdir in
1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 esac
1310 for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 done
1318 # Report the --help message.
1320 if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1323 cat <<_ACEOF
1324 \`configure' configures libltdl 2.4.2 to adapt to many kinds of systems.
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE. See below for descriptions of some of the useful variables.
1331 Defaults for the options are specified in brackets.
1333 Configuration:
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print \`checking ...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for \`--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344 Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
1346 [$ac_default_prefix]
1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 [PREFIX]
1350 By default, \`make install' will install all the files in
1351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353 for instance \`--prefix=\$HOME'.
1355 For better control, use the options below.
1357 Fine tuning of the installation directories:
1358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
1372 --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
1373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
1377 _ACEOF
1379 cat <<\_ACEOF
1381 Program names:
1382 --program-prefix=PREFIX prepend PREFIX to installed program names
1383 --program-suffix=SUFFIX append SUFFIX to installed program names
1384 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1386 System types:
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 _ACEOF
1392 if test -n "$ac_init_help"; then
1393 case $ac_init_help in
1394 short | recursive ) echo "Configuration of libltdl 2.4.2:";;
1395 esac
1396 cat <<\_ACEOF
1398 Optional Features:
1399 --disable-option-checking ignore unrecognized --enable/--with options
1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1402 --enable-shared[=PKGS] build shared libraries [default=yes]
1403 --enable-static[=PKGS] build static libraries [default=yes]
1404 --enable-fast-install[=PKGS]
1405 optimize for fast installation [default=yes]
1406 --disable-dependency-tracking speeds up one-time build
1407 --enable-dependency-tracking do not reject slow dependency extractors
1408 --disable-libtool-lock avoid locking (might break parallel builds)
1409 --enable-ltdl-install install libltdl
1411 Optional Packages:
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1414 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1415 both]
1416 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1417 --with-sysroot=DIR Search for dependent libraries within DIR
1418 (or the compiler's sysroot if not specified).
1420 Some influential environment variables:
1421 CC C compiler command
1422 CFLAGS C compiler flags
1423 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1424 nonstandard directory <lib dir>
1425 LIBS libraries to pass to the linker, e.g. -l<library>
1426 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1427 you have headers in a nonstandard directory <include dir>
1428 CPP C preprocessor
1430 Use these variables to override the choices made by `configure' or to help
1431 it to find libraries and programs with nonstandard names/locations.
1433 Report bugs to <bug-libtool@gnu.org>.
1434 _ACEOF
1435 ac_status=$?
1438 if test "$ac_init_help" = "recursive"; then
1439 # If there are subdirs, report their specific --help.
1440 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1441 test -d "$ac_dir" ||
1442 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1443 continue
1444 ac_builddir=.
1446 case "$ac_dir" in
1447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1450 # A ".." for each directory in $ac_dir_suffix.
1451 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1452 case $ac_top_builddir_sub in
1453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1455 esac ;;
1456 esac
1457 ac_abs_top_builddir=$ac_pwd
1458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1459 # for backward compatibility:
1460 ac_top_builddir=$ac_top_build_prefix
1462 case $srcdir in
1463 .) # We are building in place.
1464 ac_srcdir=.
1465 ac_top_srcdir=$ac_top_builddir_sub
1466 ac_abs_top_srcdir=$ac_pwd ;;
1467 [\\/]* | ?:[\\/]* ) # Absolute name.
1468 ac_srcdir=$srcdir$ac_dir_suffix;
1469 ac_top_srcdir=$srcdir
1470 ac_abs_top_srcdir=$srcdir ;;
1471 *) # Relative name.
1472 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1473 ac_top_srcdir=$ac_top_build_prefix$srcdir
1474 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1475 esac
1476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1478 cd "$ac_dir" || { ac_status=$?; continue; }
1479 # Check for guested configure.
1480 if test -f "$ac_srcdir/configure.gnu"; then
1481 echo &&
1482 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1483 elif test -f "$ac_srcdir/configure"; then
1484 echo &&
1485 $SHELL "$ac_srcdir/configure" --help=recursive
1486 else
1487 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1488 fi || ac_status=$?
1489 cd "$ac_pwd" || { ac_status=$?; break; }
1490 done
1493 test -n "$ac_init_help" && exit $ac_status
1494 if $ac_init_version; then
1495 cat <<\_ACEOF
1496 libltdl configure 2.4.2
1497 generated by GNU Autoconf 2.69
1499 Copyright (C) 2012 Free Software Foundation, Inc.
1500 This configure script is free software; the Free Software Foundation
1501 gives unlimited permission to copy, distribute and modify it.
1502 _ACEOF
1503 exit
1506 ## ------------------------ ##
1507 ## Autoconf initialization. ##
1508 ## ------------------------ ##
1510 # ac_fn_c_try_compile LINENO
1511 # --------------------------
1512 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1513 ac_fn_c_try_compile ()
1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516 rm -f conftest.$ac_objext
1517 if { { ac_try="$ac_compile"
1518 case "(($ac_try" in
1519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520 *) ac_try_echo=$ac_try;;
1521 esac
1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523 $as_echo "$ac_try_echo"; } >&5
1524 (eval "$ac_compile") 2>conftest.err
1525 ac_status=$?
1526 if test -s conftest.err; then
1527 grep -v '^ *+' conftest.err >conftest.er1
1528 cat conftest.er1 >&5
1529 mv -f conftest.er1 conftest.err
1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532 test $ac_status = 0; } && {
1533 test -z "$ac_c_werror_flag" ||
1534 test ! -s conftest.err
1535 } && test -s conftest.$ac_objext; then :
1536 ac_retval=0
1537 else
1538 $as_echo "$as_me: failed program was:" >&5
1539 sed 's/^/| /' conftest.$ac_ext >&5
1541 ac_retval=1
1543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1544 as_fn_set_status $ac_retval
1546 } # ac_fn_c_try_compile
1548 # ac_fn_c_try_link LINENO
1549 # -----------------------
1550 # Try to link conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_link ()
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 rm -f conftest.$ac_objext conftest$ac_exeext
1555 if { { ac_try="$ac_link"
1556 case "(($ac_try" in
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562 (eval "$ac_link") 2>conftest.err
1563 ac_status=$?
1564 if test -s conftest.err; then
1565 grep -v '^ *+' conftest.err >conftest.er1
1566 cat conftest.er1 >&5
1567 mv -f conftest.er1 conftest.err
1569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } && {
1571 test -z "$ac_c_werror_flag" ||
1572 test ! -s conftest.err
1573 } && test -s conftest$ac_exeext && {
1574 test "$cross_compiling" = yes ||
1575 test -x conftest$ac_exeext
1576 }; then :
1577 ac_retval=0
1578 else
1579 $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1582 ac_retval=1
1584 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1585 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1586 # interfere with the next link command; also delete a directory that is
1587 # left behind by Apple's compiler. We do this before executing the actions.
1588 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status $ac_retval
1592 } # ac_fn_c_try_link
1594 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1595 # -------------------------------------------------------
1596 # Tests whether HEADER exists and can be compiled using the include files in
1597 # INCLUDES, setting the cache variable VAR accordingly.
1598 ac_fn_c_check_header_compile ()
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1602 $as_echo_n "checking for $2... " >&6; }
1603 if eval \${$3+:} false; then :
1604 $as_echo_n "(cached) " >&6
1605 else
1606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607 /* end confdefs.h. */
1609 #include <$2>
1610 _ACEOF
1611 if ac_fn_c_try_compile "$LINENO"; then :
1612 eval "$3=yes"
1613 else
1614 eval "$3=no"
1616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1618 eval ac_res=\$$3
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620 $as_echo "$ac_res" >&6; }
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623 } # ac_fn_c_check_header_compile
1625 # ac_fn_c_try_cpp LINENO
1626 # ----------------------
1627 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_c_try_cpp ()
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 if { { ac_try="$ac_cpp conftest.$ac_ext"
1632 case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1639 ac_status=$?
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } > conftest.i && {
1647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 }; then :
1650 ac_retval=0
1651 else
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1655 ac_retval=1
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658 as_fn_set_status $ac_retval
1660 } # ac_fn_c_try_cpp
1662 # ac_fn_c_try_run LINENO
1663 # ----------------------
1664 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1665 # that executables *can* be run.
1666 ac_fn_c_try_run ()
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 if { { ac_try="$ac_link"
1670 case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_link") 2>&5
1677 ac_status=$?
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1680 { { case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_try") 2>&5
1687 ac_status=$?
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; }; }; then :
1690 ac_retval=0
1691 else
1692 $as_echo "$as_me: program exited with status $ac_status" >&5
1693 $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1696 ac_retval=$ac_status
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1702 } # ac_fn_c_try_run
1704 # ac_fn_c_check_func LINENO FUNC VAR
1705 # ----------------------------------
1706 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1707 ac_fn_c_check_func ()
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1714 else
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1717 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1719 #define $2 innocuous_$2
1721 /* System header to define __stub macros and hopefully few prototypes,
1722 which can conflict with char $2 (); below.
1723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1724 <limits.h> exists even on freestanding compilers. */
1726 #ifdef __STDC__
1727 # include <limits.h>
1728 #else
1729 # include <assert.h>
1730 #endif
1732 #undef $2
1734 /* Override any GCC internal prototype to avoid an error.
1735 Use char because int might match the return type of a GCC
1736 builtin and then its argument prototype would still apply. */
1737 #ifdef __cplusplus
1738 extern "C"
1739 #endif
1740 char $2 ();
1741 /* The GNU C library defines this for functions which it implements
1742 to always fail with ENOSYS. Some functions are actually named
1743 something starting with __ and the normal name is an alias. */
1744 #if defined __stub_$2 || defined __stub___$2
1745 choke me
1746 #endif
1749 main ()
1751 return $2 ();
1753 return 0;
1755 _ACEOF
1756 if ac_fn_c_try_link "$LINENO"; then :
1757 eval "$3=yes"
1758 else
1759 eval "$3=no"
1761 rm -f core conftest.err conftest.$ac_objext \
1762 conftest$ac_exeext conftest.$ac_ext
1764 eval ac_res=\$$3
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 $as_echo "$ac_res" >&6; }
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 } # ac_fn_c_check_func
1771 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1772 # ---------------------------------------------
1773 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1774 # accordingly.
1775 ac_fn_c_check_decl ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 as_decl_name=`echo $2|sed 's/ *(.*//'`
1779 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1781 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1782 if eval \${$3+:} false; then :
1783 $as_echo_n "(cached) " >&6
1784 else
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1789 main ()
1791 #ifndef $as_decl_name
1792 #ifdef __cplusplus
1793 (void) $as_decl_use;
1794 #else
1795 (void) $as_decl_name;
1796 #endif
1797 #endif
1800 return 0;
1802 _ACEOF
1803 if ac_fn_c_try_compile "$LINENO"; then :
1804 eval "$3=yes"
1805 else
1806 eval "$3=no"
1808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810 eval ac_res=\$$3
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812 $as_echo "$ac_res" >&6; }
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815 } # ac_fn_c_check_decl
1817 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1818 # -------------------------------------------
1819 # Tests whether TYPE exists after having included INCLUDES, setting cache
1820 # variable VAR accordingly.
1821 ac_fn_c_check_type ()
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if eval \${$3+:} false; then :
1827 $as_echo_n "(cached) " >&6
1828 else
1829 eval "$3=no"
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1834 main ()
1836 if (sizeof ($2))
1837 return 0;
1839 return 0;
1841 _ACEOF
1842 if ac_fn_c_try_compile "$LINENO"; then :
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1847 main ()
1849 if (sizeof (($2)))
1850 return 0;
1852 return 0;
1854 _ACEOF
1855 if ac_fn_c_try_compile "$LINENO"; then :
1857 else
1858 eval "$3=yes"
1860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864 eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 } # ac_fn_c_check_type
1870 cat >config.log <<_ACEOF
1871 This file contains any messages produced by compilers while
1872 running configure, to aid debugging if configure makes a mistake.
1874 It was created by libltdl $as_me 2.4.2, which was
1875 generated by GNU Autoconf 2.69. Invocation command line was
1877 $ $0 $@
1879 _ACEOF
1880 exec 5>>config.log
1882 cat <<_ASUNAME
1883 ## --------- ##
1884 ## Platform. ##
1885 ## --------- ##
1887 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1888 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1889 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1890 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1891 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1893 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1894 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1896 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1897 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1898 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1899 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1900 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1901 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1902 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1904 _ASUNAME
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 for as_dir in $PATH
1909 IFS=$as_save_IFS
1910 test -z "$as_dir" && as_dir=.
1911 $as_echo "PATH: $as_dir"
1912 done
1913 IFS=$as_save_IFS
1915 } >&5
1917 cat >&5 <<_ACEOF
1920 ## ----------- ##
1921 ## Core tests. ##
1922 ## ----------- ##
1924 _ACEOF
1927 # Keep a trace of the command line.
1928 # Strip out --no-create and --no-recursion so they do not pile up.
1929 # Strip out --silent because we don't want to record it for future runs.
1930 # Also quote any args containing shell meta-characters.
1931 # Make two passes to allow for proper duplicate-argument suppression.
1932 ac_configure_args=
1933 ac_configure_args0=
1934 ac_configure_args1=
1935 ac_must_keep_next=false
1936 for ac_pass in 1 2
1938 for ac_arg
1940 case $ac_arg in
1941 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1943 | -silent | --silent | --silen | --sile | --sil)
1944 continue ;;
1945 *\'*)
1946 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1947 esac
1948 case $ac_pass in
1949 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1951 as_fn_append ac_configure_args1 " '$ac_arg'"
1952 if test $ac_must_keep_next = true; then
1953 ac_must_keep_next=false # Got value, back to normal.
1954 else
1955 case $ac_arg in
1956 *=* | --config-cache | -C | -disable-* | --disable-* \
1957 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1958 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1959 | -with-* | --with-* | -without-* | --without-* | --x)
1960 case "$ac_configure_args0 " in
1961 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1962 esac
1964 -* ) ac_must_keep_next=true ;;
1965 esac
1967 as_fn_append ac_configure_args " '$ac_arg'"
1969 esac
1970 done
1971 done
1972 { ac_configure_args0=; unset ac_configure_args0;}
1973 { ac_configure_args1=; unset ac_configure_args1;}
1975 # When interrupted or exit'd, cleanup temporary files, and complete
1976 # config.log. We remove comments because anyway the quotes in there
1977 # would cause problems or look ugly.
1978 # WARNING: Use '\'' to represent an apostrophe within the trap.
1979 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1980 trap 'exit_status=$?
1981 # Save into config.log some information that might help in debugging.
1983 echo
1985 $as_echo "## ---------------- ##
1986 ## Cache variables. ##
1987 ## ---------------- ##"
1988 echo
1989 # The following way of writing the cache mishandles newlines in values,
1991 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1992 eval ac_val=\$$ac_var
1993 case $ac_val in #(
1994 *${as_nl}*)
1995 case $ac_var in #(
1996 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1997 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1998 esac
1999 case $ac_var in #(
2000 _ | IFS | as_nl) ;; #(
2001 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2002 *) { eval $ac_var=; unset $ac_var;} ;;
2003 esac ;;
2004 esac
2005 done
2006 (set) 2>&1 |
2007 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2008 *${as_nl}ac_space=\ *)
2009 sed -n \
2010 "s/'\''/'\''\\\\'\'''\''/g;
2011 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2012 ;; #(
2014 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2016 esac |
2017 sort
2019 echo
2021 $as_echo "## ----------------- ##
2022 ## Output variables. ##
2023 ## ----------------- ##"
2024 echo
2025 for ac_var in $ac_subst_vars
2027 eval ac_val=\$$ac_var
2028 case $ac_val in
2029 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2030 esac
2031 $as_echo "$ac_var='\''$ac_val'\''"
2032 done | sort
2033 echo
2035 if test -n "$ac_subst_files"; then
2036 $as_echo "## ------------------- ##
2037 ## File substitutions. ##
2038 ## ------------------- ##"
2039 echo
2040 for ac_var in $ac_subst_files
2042 eval ac_val=\$$ac_var
2043 case $ac_val in
2044 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2045 esac
2046 $as_echo "$ac_var='\''$ac_val'\''"
2047 done | sort
2048 echo
2051 if test -s confdefs.h; then
2052 $as_echo "## ----------- ##
2053 ## confdefs.h. ##
2054 ## ----------- ##"
2055 echo
2056 cat confdefs.h
2057 echo
2059 test "$ac_signal" != 0 &&
2060 $as_echo "$as_me: caught signal $ac_signal"
2061 $as_echo "$as_me: exit $exit_status"
2062 } >&5
2063 rm -f core *.core core.conftest.* &&
2064 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2065 exit $exit_status
2067 for ac_signal in 1 2 13 15; do
2068 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2069 done
2070 ac_signal=0
2072 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2073 rm -f -r conftest* confdefs.h
2075 $as_echo "/* confdefs.h */" > confdefs.h
2077 # Predefined preprocessor variables.
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_NAME "$PACKAGE_NAME"
2081 _ACEOF
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2085 _ACEOF
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2089 _ACEOF
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_STRING "$PACKAGE_STRING"
2093 _ACEOF
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2097 _ACEOF
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_URL "$PACKAGE_URL"
2101 _ACEOF
2104 # Let the site file select an alternate cache file if it wants to.
2105 # Prefer an explicitly selected file to automatically selected ones.
2106 ac_site_file1=NONE
2107 ac_site_file2=NONE
2108 if test -n "$CONFIG_SITE"; then
2109 # We do not want a PATH search for config.site.
2110 case $CONFIG_SITE in #((
2111 -*) ac_site_file1=./$CONFIG_SITE;;
2112 */*) ac_site_file1=$CONFIG_SITE;;
2113 *) ac_site_file1=./$CONFIG_SITE;;
2114 esac
2115 elif test "x$prefix" != xNONE; then
2116 ac_site_file1=$prefix/share/config.site
2117 ac_site_file2=$prefix/etc/config.site
2118 else
2119 ac_site_file1=$ac_default_prefix/share/config.site
2120 ac_site_file2=$ac_default_prefix/etc/config.site
2122 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2124 test "x$ac_site_file" = xNONE && continue
2125 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2127 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2128 sed 's/^/| /' "$ac_site_file" >&5
2129 . "$ac_site_file" \
2130 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2132 as_fn_error $? "failed to load site script $ac_site_file
2133 See \`config.log' for more details" "$LINENO" 5; }
2135 done
2137 if test -r "$cache_file"; then
2138 # Some versions of bash will fail to source /dev/null (special files
2139 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2140 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2142 $as_echo "$as_me: loading cache $cache_file" >&6;}
2143 case $cache_file in
2144 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2145 *) . "./$cache_file";;
2146 esac
2148 else
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2150 $as_echo "$as_me: creating cache $cache_file" >&6;}
2151 >$cache_file
2154 # Check that the precious variables saved in the cache have kept the same
2155 # value.
2156 ac_cache_corrupted=false
2157 for ac_var in $ac_precious_vars; do
2158 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2159 eval ac_new_set=\$ac_env_${ac_var}_set
2160 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2161 eval ac_new_val=\$ac_env_${ac_var}_value
2162 case $ac_old_set,$ac_new_set in
2163 set,)
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2165 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2166 ac_cache_corrupted=: ;;
2167 ,set)
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2169 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2170 ac_cache_corrupted=: ;;
2171 ,);;
2173 if test "x$ac_old_val" != "x$ac_new_val"; then
2174 # differences in whitespace do not lead to failure.
2175 ac_old_val_w=`echo x $ac_old_val`
2176 ac_new_val_w=`echo x $ac_new_val`
2177 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2179 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2180 ac_cache_corrupted=:
2181 else
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2183 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2184 eval $ac_var=\$ac_old_val
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2187 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2189 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2190 fi;;
2191 esac
2192 # Pass precious variables to config.status.
2193 if test "$ac_new_set" = set; then
2194 case $ac_new_val in
2195 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2196 *) ac_arg=$ac_var=$ac_new_val ;;
2197 esac
2198 case " $ac_configure_args " in
2199 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2200 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2201 esac
2203 done
2204 if $ac_cache_corrupted; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2208 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2209 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2211 ## -------------------- ##
2212 ## Main body of script. ##
2213 ## -------------------- ##
2215 ac_ext=c
2216 ac_cpp='$CPP $CPPFLAGS'
2217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2222 ac_config_headers="$ac_config_headers config.h:config-h.in"
2225 ac_aux_dir=
2226 for ac_dir in config "$srcdir"/config; do
2227 if test -f "$ac_dir/install-sh"; then
2228 ac_aux_dir=$ac_dir
2229 ac_install_sh="$ac_aux_dir/install-sh -c"
2230 break
2231 elif test -f "$ac_dir/install.sh"; then
2232 ac_aux_dir=$ac_dir
2233 ac_install_sh="$ac_aux_dir/install.sh -c"
2234 break
2235 elif test -f "$ac_dir/shtool"; then
2236 ac_aux_dir=$ac_dir
2237 ac_install_sh="$ac_aux_dir/shtool install -c"
2238 break
2240 done
2241 if test -z "$ac_aux_dir"; then
2242 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2245 # These three variables are undocumented and unsupported,
2246 # and are intended to be withdrawn in a future Autoconf release.
2247 # They can cause serious problems if a builder's source tree is in a directory
2248 # whose full name contains unusual characters.
2249 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2250 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2251 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2260 # I am me!
2263 ## ------------------------ ##
2264 ## Automake Initialisation. ##
2265 ## ------------------------ ##
2267 am__api_version='1.11'
2269 # Find a good install program. We prefer a C program (faster),
2270 # so one script is as good as another. But avoid the broken or
2271 # incompatible versions:
2272 # SysV /etc/install, /usr/sbin/install
2273 # SunOS /usr/etc/install
2274 # IRIX /sbin/install
2275 # AIX /bin/install
2276 # AmigaOS /C/install, which installs bootblocks on floppy discs
2277 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2278 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2279 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2280 # OS/2's system install, which has a completely different semantic
2281 # ./install, which can be erroneously created by make from ./install.sh.
2282 # Reject install programs that cannot install multiple files.
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2284 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2285 if test -z "$INSTALL"; then
2286 if ${ac_cv_path_install+:} false; then :
2287 $as_echo_n "(cached) " >&6
2288 else
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
2294 # Account for people who put trailing slashes in PATH elements.
2295 case $as_dir/ in #((
2296 ./ | .// | /[cC]/* | \
2297 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2298 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2299 /usr/ucb/* ) ;;
2301 # OSF1 and SCO ODT 3.0 have their own names for install.
2302 # Don't use installbsd from OSF since it installs stuff as root
2303 # by default.
2304 for ac_prog in ginstall scoinst install; do
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2307 if test $ac_prog = install &&
2308 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2309 # AIX install. It has an incompatible calling convention.
2311 elif test $ac_prog = install &&
2312 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2313 # program-specific install script used by HP pwplus--don't use.
2315 else
2316 rm -rf conftest.one conftest.two conftest.dir
2317 echo one > conftest.one
2318 echo two > conftest.two
2319 mkdir conftest.dir
2320 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2321 test -s conftest.one && test -s conftest.two &&
2322 test -s conftest.dir/conftest.one &&
2323 test -s conftest.dir/conftest.two
2324 then
2325 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2326 break 3
2330 done
2331 done
2333 esac
2335 done
2336 IFS=$as_save_IFS
2338 rm -rf conftest.one conftest.two conftest.dir
2341 if test "${ac_cv_path_install+set}" = set; then
2342 INSTALL=$ac_cv_path_install
2343 else
2344 # As a last resort, use the slow shell script. Don't cache a
2345 # value for INSTALL within a source directory, because that will
2346 # break other packages using the cache if that directory is
2347 # removed, or if the value is a relative name.
2348 INSTALL=$ac_install_sh
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2352 $as_echo "$INSTALL" >&6; }
2354 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2355 # It thinks the first close brace ends the variable substitution.
2356 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2358 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2360 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2363 $as_echo_n "checking whether build environment is sane... " >&6; }
2364 # Just in case
2365 sleep 1
2366 echo timestamp > conftest.file
2367 # Reject unsafe characters in $srcdir or the absolute working directory
2368 # name. Accept space and tab only in the latter.
2369 am_lf='
2371 case `pwd` in
2372 *[\\\"\#\$\&\'\`$am_lf]*)
2373 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2374 esac
2375 case $srcdir in
2376 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2377 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2378 esac
2380 # Do `set' in a subshell so we don't clobber the current shell's
2381 # arguments. Must try -L first in case configure is actually a
2382 # symlink; some systems play weird games with the mod time of symlinks
2383 # (eg FreeBSD returns the mod time of the symlink's containing
2384 # directory).
2385 if (
2386 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2387 if test "$*" = "X"; then
2388 # -L didn't work.
2389 set X `ls -t "$srcdir/configure" conftest.file`
2391 rm -f conftest.file
2392 if test "$*" != "X $srcdir/configure conftest.file" \
2393 && test "$*" != "X conftest.file $srcdir/configure"; then
2395 # If neither matched, then we have a broken ls. This can happen
2396 # if, for instance, CONFIG_SHELL is bash and it inherits a
2397 # broken ls alias from the environment. This has actually
2398 # happened. Such a system could not be considered "sane".
2399 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2400 alias in your environment" "$LINENO" 5
2403 test "$2" = conftest.file
2405 then
2406 # Ok.
2408 else
2409 as_fn_error $? "newly created file is older than distributed files!
2410 Check your system clock" "$LINENO" 5
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2413 $as_echo "yes" >&6; }
2414 test "$program_prefix" != NONE &&
2415 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2416 # Use a double $ so make ignores it.
2417 test "$program_suffix" != NONE &&
2418 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2419 # Double any \ or $.
2420 # By default was `s,x,x', remove it if useless.
2421 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2422 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2424 # expand $ac_aux_dir to an absolute path
2425 am_aux_dir=`cd $ac_aux_dir && pwd`
2427 if test x"${MISSING+set}" != xset; then
2428 case $am_aux_dir in
2429 *\ * | *\ *)
2430 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2432 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2433 esac
2435 # Use eval to expand $SHELL
2436 if eval "$MISSING --run true"; then
2437 am_missing_run="$MISSING --run "
2438 else
2439 am_missing_run=
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2441 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2444 if test x"${install_sh}" != xset; then
2445 case $am_aux_dir in
2446 *\ * | *\ *)
2447 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2449 install_sh="\${SHELL} $am_aux_dir/install-sh"
2450 esac
2453 # Installed binaries are usually stripped using `strip' when the user
2454 # run `make install-strip'. However `strip' might not be the right
2455 # tool to use in cross-compilation environments, therefore Automake
2456 # will honor the `STRIP' environment variable to overrule this program.
2457 if test "$cross_compiling" != no; then
2458 if test -n "$ac_tool_prefix"; then
2459 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2460 set dummy ${ac_tool_prefix}strip; ac_word=$2
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2462 $as_echo_n "checking for $ac_word... " >&6; }
2463 if ${ac_cv_prog_STRIP+:} false; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 if test -n "$STRIP"; then
2467 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2476 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 break 2
2480 done
2481 done
2482 IFS=$as_save_IFS
2486 STRIP=$ac_cv_prog_STRIP
2487 if test -n "$STRIP"; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2489 $as_echo "$STRIP" >&6; }
2490 else
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492 $as_echo "no" >&6; }
2497 if test -z "$ac_cv_prog_STRIP"; then
2498 ac_ct_STRIP=$STRIP
2499 # Extract the first word of "strip", so it can be a program name with args.
2500 set dummy strip; ac_word=$2
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2502 $as_echo_n "checking for $ac_word... " >&6; }
2503 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2504 $as_echo_n "(cached) " >&6
2505 else
2506 if test -n "$ac_ct_STRIP"; then
2507 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2516 ac_cv_prog_ac_ct_STRIP="strip"
2517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 break 2
2520 done
2521 done
2522 IFS=$as_save_IFS
2526 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2527 if test -n "$ac_ct_STRIP"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2529 $as_echo "$ac_ct_STRIP" >&6; }
2530 else
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2532 $as_echo "no" >&6; }
2535 if test "x$ac_ct_STRIP" = x; then
2536 STRIP=":"
2537 else
2538 case $cross_compiling:$ac_tool_warned in
2539 yes:)
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2542 ac_tool_warned=yes ;;
2543 esac
2544 STRIP=$ac_ct_STRIP
2546 else
2547 STRIP="$ac_cv_prog_STRIP"
2551 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2554 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2555 if test -z "$MKDIR_P"; then
2556 if ${ac_cv_path_mkdir+:} false; then :
2557 $as_echo_n "(cached) " >&6
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
2564 for ac_prog in mkdir gmkdir; do
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2567 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2568 'mkdir (GNU coreutils) '* | \
2569 'mkdir (coreutils) '* | \
2570 'mkdir (fileutils) '4.1*)
2571 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2572 break 3;;
2573 esac
2574 done
2575 done
2576 done
2577 IFS=$as_save_IFS
2581 test -d ./--version && rmdir ./--version
2582 if test "${ac_cv_path_mkdir+set}" = set; then
2583 MKDIR_P="$ac_cv_path_mkdir -p"
2584 else
2585 # As a last resort, use the slow shell script. Don't cache a
2586 # value for MKDIR_P within a source directory, because that will
2587 # break other packages using the cache if that directory is
2588 # removed, or if the value is a relative name.
2589 MKDIR_P="$ac_install_sh -d"
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2593 $as_echo "$MKDIR_P" >&6; }
2595 mkdir_p="$MKDIR_P"
2596 case $mkdir_p in
2597 [\\/$]* | ?:[\\/]*) ;;
2598 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2599 esac
2601 for ac_prog in gawk mawk nawk awk
2603 # Extract the first word of "$ac_prog", so it can be a program name with args.
2604 set dummy $ac_prog; ac_word=$2
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606 $as_echo_n "checking for $ac_word... " >&6; }
2607 if ${ac_cv_prog_AWK+:} false; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 if test -n "$AWK"; then
2611 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2612 else
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH
2616 IFS=$as_save_IFS
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2620 ac_cv_prog_AWK="$ac_prog"
2621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2622 break 2
2624 done
2625 done
2626 IFS=$as_save_IFS
2630 AWK=$ac_cv_prog_AWK
2631 if test -n "$AWK"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2633 $as_echo "$AWK" >&6; }
2634 else
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 $as_echo "no" >&6; }
2640 test -n "$AWK" && break
2641 done
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2644 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2645 set x ${MAKE-make}
2646 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2647 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2648 $as_echo_n "(cached) " >&6
2649 else
2650 cat >conftest.make <<\_ACEOF
2651 SHELL = /bin/sh
2652 all:
2653 @echo '@@@%%%=$(MAKE)=@@@%%%'
2654 _ACEOF
2655 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2656 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2657 *@@@%%%=?*=@@@%%%*)
2658 eval ac_cv_prog_make_${ac_make}_set=yes;;
2660 eval ac_cv_prog_make_${ac_make}_set=no;;
2661 esac
2662 rm -f conftest.make
2664 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2666 $as_echo "yes" >&6; }
2667 SET_MAKE=
2668 else
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2670 $as_echo "no" >&6; }
2671 SET_MAKE="MAKE=${MAKE-make}"
2674 rm -rf .tst 2>/dev/null
2675 mkdir .tst 2>/dev/null
2676 if test -d .tst; then
2677 am__leading_dot=.
2678 else
2679 am__leading_dot=_
2681 rmdir .tst 2>/dev/null
2683 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2684 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2685 # is not polluted with repeated "-I."
2686 am__isrc=' -I$(srcdir)'
2687 # test to see if srcdir already configured
2688 if test -f $srcdir/config.status; then
2689 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2693 # test whether we have cygpath
2694 if test -z "$CYGPATH_W"; then
2695 if (cygpath --version) >/dev/null 2>/dev/null; then
2696 CYGPATH_W='cygpath -w'
2697 else
2698 CYGPATH_W=echo
2703 # Define the identity of the package.
2704 PACKAGE='libltdl'
2705 VERSION='2.4.2'
2708 cat >>confdefs.h <<_ACEOF
2709 #define PACKAGE "$PACKAGE"
2710 _ACEOF
2713 cat >>confdefs.h <<_ACEOF
2714 #define VERSION "$VERSION"
2715 _ACEOF
2717 # Some tools Automake needs.
2719 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2722 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2725 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2728 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2731 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2733 # We need awk for the "check" target. The system "awk" is bad on
2734 # some platforms.
2735 # Always define AMTAR for backward compatibility. Yes, it's still used
2736 # in the wild :-( We should find a proper way to deprecate it ...
2737 AMTAR='$${TAR-tar}'
2739 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2747 ## ------------------------------- ##
2748 ## Libtool specific configuration. ##
2749 ## ------------------------------- ##
2750 pkgdatadir='${datadir}'"/${PACKAGE}"
2753 ## ----------------------- ##
2754 ## Libtool initialisation. ##
2755 ## ----------------------- ##
2756 case `pwd` in
2757 *\ * | *\ *)
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2759 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2760 esac
2764 macro_version='2.4.2'
2765 macro_revision='1.3337'
2779 ltmain="$ac_aux_dir/ltmain.sh"
2781 # Make sure we can run config.sub.
2782 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2783 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2786 $as_echo_n "checking build system type... " >&6; }
2787 if ${ac_cv_build+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 ac_build_alias=$build_alias
2791 test "x$ac_build_alias" = x &&
2792 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2793 test "x$ac_build_alias" = x &&
2794 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2795 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2796 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2800 $as_echo "$ac_cv_build" >&6; }
2801 case $ac_cv_build in
2802 *-*-*) ;;
2803 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2804 esac
2805 build=$ac_cv_build
2806 ac_save_IFS=$IFS; IFS='-'
2807 set x $ac_cv_build
2808 shift
2809 build_cpu=$1
2810 build_vendor=$2
2811 shift; shift
2812 # Remember, the first character of IFS is used to create $*,
2813 # except with old shells:
2814 build_os=$*
2815 IFS=$ac_save_IFS
2816 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2820 $as_echo_n "checking host system type... " >&6; }
2821 if ${ac_cv_host+:} false; then :
2822 $as_echo_n "(cached) " >&6
2823 else
2824 if test "x$host_alias" = x; then
2825 ac_cv_host=$ac_cv_build
2826 else
2827 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2828 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2833 $as_echo "$ac_cv_host" >&6; }
2834 case $ac_cv_host in
2835 *-*-*) ;;
2836 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2837 esac
2838 host=$ac_cv_host
2839 ac_save_IFS=$IFS; IFS='-'
2840 set x $ac_cv_host
2841 shift
2842 host_cpu=$1
2843 host_vendor=$2
2844 shift; shift
2845 # Remember, the first character of IFS is used to create $*,
2846 # except with old shells:
2847 host_os=$*
2848 IFS=$ac_save_IFS
2849 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2852 # Backslashify metacharacters that are still active within
2853 # double-quoted strings.
2854 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2856 # Same as above, but do not quote variable references.
2857 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2859 # Sed substitution to delay expansion of an escaped shell variable in a
2860 # double_quote_subst'ed string.
2861 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2863 # Sed substitution to delay expansion of an escaped single quote.
2864 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2866 # Sed substitution to avoid accidental globbing in evaled expressions
2867 no_glob_subst='s/\*/\\\*/g'
2869 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2870 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2871 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2874 $as_echo_n "checking how to print strings... " >&6; }
2875 # Test print first, because it will be a builtin if present.
2876 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2877 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2878 ECHO='print -r --'
2879 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2880 ECHO='printf %s\n'
2881 else
2882 # Use this function as a fallback that always works.
2883 func_fallback_echo ()
2885 eval 'cat <<_LTECHO_EOF
2887 _LTECHO_EOF'
2889 ECHO='func_fallback_echo'
2892 # func_echo_all arg...
2893 # Invoke $ECHO with all args, space-separated.
2894 func_echo_all ()
2896 $ECHO ""
2899 case "$ECHO" in
2900 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2901 $as_echo "printf" >&6; } ;;
2902 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2903 $as_echo "print -r" >&6; } ;;
2904 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2905 $as_echo "cat" >&6; } ;;
2906 esac
2921 DEPDIR="${am__leading_dot}deps"
2923 ac_config_commands="$ac_config_commands depfiles"
2926 am_make=${MAKE-make}
2927 cat > confinc << 'END'
2928 am__doit:
2929 @echo this is the am__doit target
2930 .PHONY: am__doit
2932 # If we don't find an include directive, just comment out the code.
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2934 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2935 am__include="#"
2936 am__quote=
2937 _am_result=none
2938 # First try GNU make style include.
2939 echo "include confinc" > confmf
2940 # Ignore all kinds of additional output from `make'.
2941 case `$am_make -s -f confmf 2> /dev/null` in #(
2942 *the\ am__doit\ target*)
2943 am__include=include
2944 am__quote=
2945 _am_result=GNU
2947 esac
2948 # Now try BSD make style include.
2949 if test "$am__include" = "#"; then
2950 echo '.include "confinc"' > confmf
2951 case `$am_make -s -f confmf 2> /dev/null` in #(
2952 *the\ am__doit\ target*)
2953 am__include=.include
2954 am__quote="\""
2955 _am_result=BSD
2957 esac
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2962 $as_echo "$_am_result" >&6; }
2963 rm -f confinc confmf
2965 # Check whether --enable-dependency-tracking was given.
2966 if test "${enable_dependency_tracking+set}" = set; then :
2967 enableval=$enable_dependency_tracking;
2970 if test "x$enable_dependency_tracking" != xno; then
2971 am_depcomp="$ac_aux_dir/depcomp"
2972 AMDEPBACKSLASH='\'
2973 am__nodep='_no'
2975 if test "x$enable_dependency_tracking" != xno; then
2976 AMDEP_TRUE=
2977 AMDEP_FALSE='#'
2978 else
2979 AMDEP_TRUE='#'
2980 AMDEP_FALSE=
2984 ac_ext=c
2985 ac_cpp='$CPP $CPPFLAGS'
2986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989 if test -n "$ac_tool_prefix"; then
2990 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2991 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if ${ac_cv_prog_CC+:} false; then :
2995 $as_echo_n "(cached) " >&6
2996 else
2997 if test -n "$CC"; then
2998 ac_cv_prog_CC="$CC" # Let the user override the test.
2999 else
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3003 IFS=$as_save_IFS
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3007 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 break 2
3011 done
3012 done
3013 IFS=$as_save_IFS
3017 CC=$ac_cv_prog_CC
3018 if test -n "$CC"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3020 $as_echo "$CC" >&6; }
3021 else
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3028 if test -z "$ac_cv_prog_CC"; then
3029 ac_ct_CC=$CC
3030 # Extract the first word of "gcc", so it can be a program name with args.
3031 set dummy gcc; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3035 $as_echo_n "(cached) " >&6
3036 else
3037 if test -n "$ac_ct_CC"; then
3038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_ac_ct_CC="gcc"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3051 done
3052 done
3053 IFS=$as_save_IFS
3057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3058 if test -n "$ac_ct_CC"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3060 $as_echo "$ac_ct_CC" >&6; }
3061 else
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3066 if test "x$ac_ct_CC" = x; then
3067 CC=""
3068 else
3069 case $cross_compiling:$ac_tool_warned in
3070 yes:)
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3073 ac_tool_warned=yes ;;
3074 esac
3075 CC=$ac_ct_CC
3077 else
3078 CC="$ac_cv_prog_CC"
3081 if test -z "$CC"; then
3082 if test -n "$ac_tool_prefix"; then
3083 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3084 set dummy ${ac_tool_prefix}cc; ac_word=$2
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086 $as_echo_n "checking for $ac_word... " >&6; }
3087 if ${ac_cv_prog_CC+:} false; then :
3088 $as_echo_n "(cached) " >&6
3089 else
3090 if test -n "$CC"; then
3091 ac_cv_prog_CC="$CC" # Let the user override the test.
3092 else
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100 ac_cv_prog_CC="${ac_tool_prefix}cc"
3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 break 2
3104 done
3105 done
3106 IFS=$as_save_IFS
3110 CC=$ac_cv_prog_CC
3111 if test -n "$CC"; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3113 $as_echo "$CC" >&6; }
3114 else
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3122 if test -z "$CC"; then
3123 # Extract the first word of "cc", so it can be a program name with args.
3124 set dummy cc; ac_word=$2
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 $as_echo_n "checking for $ac_word... " >&6; }
3127 if ${ac_cv_prog_CC+:} false; then :
3128 $as_echo_n "(cached) " >&6
3129 else
3130 if test -n "$CC"; then
3131 ac_cv_prog_CC="$CC" # Let the user override the test.
3132 else
3133 ac_prog_rejected=no
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 for as_dir in $PATH
3137 IFS=$as_save_IFS
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3142 ac_prog_rejected=yes
3143 continue
3145 ac_cv_prog_CC="cc"
3146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 break 2
3149 done
3150 done
3151 IFS=$as_save_IFS
3153 if test $ac_prog_rejected = yes; then
3154 # We found a bogon in the path, so make sure we never use it.
3155 set dummy $ac_cv_prog_CC
3156 shift
3157 if test $# != 0; then
3158 # We chose a different compiler from the bogus one.
3159 # However, it has the same basename, so the bogon will be chosen
3160 # first if we set CC to just the basename; use the full file name.
3161 shift
3162 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3167 CC=$ac_cv_prog_CC
3168 if test -n "$CC"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3170 $as_echo "$CC" >&6; }
3171 else
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3178 if test -z "$CC"; then
3179 if test -n "$ac_tool_prefix"; then
3180 for ac_prog in cl.exe
3182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if ${ac_cv_prog_CC+:} false; then :
3187 $as_echo_n "(cached) " >&6
3188 else
3189 if test -n "$CC"; then
3190 ac_cv_prog_CC="$CC" # Let the user override the test.
3191 else
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3195 IFS=$as_save_IFS
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 break 2
3203 done
3204 done
3205 IFS=$as_save_IFS
3209 CC=$ac_cv_prog_CC
3210 if test -n "$CC"; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3212 $as_echo "$CC" >&6; }
3213 else
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3219 test -n "$CC" && break
3220 done
3222 if test -z "$CC"; then
3223 ac_ct_CC=$CC
3224 for ac_prog in cl.exe
3226 # Extract the first word of "$ac_prog", so it can be a program name with args.
3227 set dummy $ac_prog; ac_word=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3231 $as_echo_n "(cached) " >&6
3232 else
3233 if test -n "$ac_ct_CC"; then
3234 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3235 else
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243 ac_cv_prog_ac_ct_CC="$ac_prog"
3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 break 2
3247 done
3248 done
3249 IFS=$as_save_IFS
3253 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3254 if test -n "$ac_ct_CC"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3256 $as_echo "$ac_ct_CC" >&6; }
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3263 test -n "$ac_ct_CC" && break
3264 done
3266 if test "x$ac_ct_CC" = x; then
3267 CC=""
3268 else
3269 case $cross_compiling:$ac_tool_warned in
3270 yes:)
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3273 ac_tool_warned=yes ;;
3274 esac
3275 CC=$ac_ct_CC
3282 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3284 as_fn_error $? "no acceptable C compiler found in \$PATH
3285 See \`config.log' for more details" "$LINENO" 5; }
3287 # Provide some information about the compiler.
3288 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3289 set X $ac_compile
3290 ac_compiler=$2
3291 for ac_option in --version -v -V -qversion; do
3292 { { ac_try="$ac_compiler $ac_option >&5"
3293 case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296 esac
3297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298 $as_echo "$ac_try_echo"; } >&5
3299 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3300 ac_status=$?
3301 if test -s conftest.err; then
3302 sed '10a\
3303 ... rest of stderr output deleted ...
3304 10q' conftest.err >conftest.er1
3305 cat conftest.er1 >&5
3307 rm -f conftest.er1 conftest.err
3308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3309 test $ac_status = 0; }
3310 done
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3316 main ()
3320 return 0;
3322 _ACEOF
3323 ac_clean_files_save=$ac_clean_files
3324 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3325 # Try to create an executable without -o first, disregard a.out.
3326 # It will help us diagnose broken compilers, and finding out an intuition
3327 # of exeext.
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3329 $as_echo_n "checking whether the C compiler works... " >&6; }
3330 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3332 # The possible output files:
3333 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3335 ac_rmfiles=
3336 for ac_file in $ac_files
3338 case $ac_file in
3339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3340 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3341 esac
3342 done
3343 rm -f $ac_rmfiles
3345 if { { ac_try="$ac_link_default"
3346 case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3349 esac
3350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3351 $as_echo "$ac_try_echo"; } >&5
3352 (eval "$ac_link_default") 2>&5
3353 ac_status=$?
3354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355 test $ac_status = 0; }; then :
3356 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3357 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3358 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3359 # so that the user can short-circuit this test for compilers unknown to
3360 # Autoconf.
3361 for ac_file in $ac_files ''
3363 test -f "$ac_file" || continue
3364 case $ac_file in
3365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3367 [ab].out )
3368 # We found the default executable, but exeext='' is most
3369 # certainly right.
3370 break;;
3371 *.* )
3372 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3373 then :; else
3374 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3376 # We set ac_cv_exeext here because the later test for it is not
3377 # safe: cross compilers may not add the suffix if given an `-o'
3378 # argument, so we may need to know it at that point already.
3379 # Even if this section looks crufty: it has the advantage of
3380 # actually working.
3381 break;;
3383 break;;
3384 esac
3385 done
3386 test "$ac_cv_exeext" = no && ac_cv_exeext=
3388 else
3389 ac_file=''
3391 if test -z "$ac_file"; then :
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3394 $as_echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399 as_fn_error 77 "C compiler cannot create executables
3400 See \`config.log' for more details" "$LINENO" 5; }
3401 else
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3403 $as_echo "yes" >&6; }
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3406 $as_echo_n "checking for C compiler default output file name... " >&6; }
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3408 $as_echo "$ac_file" >&6; }
3409 ac_exeext=$ac_cv_exeext
3411 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3412 ac_clean_files=$ac_clean_files_save
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3414 $as_echo_n "checking for suffix of executables... " >&6; }
3415 if { { ac_try="$ac_link"
3416 case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3419 esac
3420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3421 $as_echo "$ac_try_echo"; } >&5
3422 (eval "$ac_link") 2>&5
3423 ac_status=$?
3424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3425 test $ac_status = 0; }; then :
3426 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3427 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3428 # work properly (i.e., refer to `conftest.exe'), while it won't with
3429 # `rm'.
3430 for ac_file in conftest.exe conftest conftest.*; do
3431 test -f "$ac_file" || continue
3432 case $ac_file in
3433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3434 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3435 break;;
3436 * ) break;;
3437 esac
3438 done
3439 else
3440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3443 See \`config.log' for more details" "$LINENO" 5; }
3445 rm -f conftest conftest$ac_cv_exeext
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3447 $as_echo "$ac_cv_exeext" >&6; }
3449 rm -f conftest.$ac_ext
3450 EXEEXT=$ac_cv_exeext
3451 ac_exeext=$EXEEXT
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3454 #include <stdio.h>
3456 main ()
3458 FILE *f = fopen ("conftest.out", "w");
3459 return ferror (f) || fclose (f) != 0;
3462 return 0;
3464 _ACEOF
3465 ac_clean_files="$ac_clean_files conftest.out"
3466 # Check that the compiler produces executables we can run. If not, either
3467 # the compiler is broken, or we cross compile.
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3469 $as_echo_n "checking whether we are cross compiling... " >&6; }
3470 if test "$cross_compiling" != yes; then
3471 { { ac_try="$ac_link"
3472 case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475 esac
3476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477 $as_echo "$ac_try_echo"; } >&5
3478 (eval "$ac_link") 2>&5
3479 ac_status=$?
3480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481 test $ac_status = 0; }
3482 if { ac_try='./conftest$ac_cv_exeext'
3483 { { case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486 esac
3487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488 $as_echo "$ac_try_echo"; } >&5
3489 (eval "$ac_try") 2>&5
3490 ac_status=$?
3491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3492 test $ac_status = 0; }; }; then
3493 cross_compiling=no
3494 else
3495 if test "$cross_compiling" = maybe; then
3496 cross_compiling=yes
3497 else
3498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500 as_fn_error $? "cannot run C compiled programs.
3501 If you meant to cross compile, use \`--host'.
3502 See \`config.log' for more details" "$LINENO" 5; }
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3507 $as_echo "$cross_compiling" >&6; }
3509 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3510 ac_clean_files=$ac_clean_files_save
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3512 $as_echo_n "checking for suffix of object files... " >&6; }
3513 if ${ac_cv_objext+:} false; then :
3514 $as_echo_n "(cached) " >&6
3515 else
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3520 main ()
3524 return 0;
3526 _ACEOF
3527 rm -f conftest.o conftest.obj
3528 if { { ac_try="$ac_compile"
3529 case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3532 esac
3533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534 $as_echo "$ac_try_echo"; } >&5
3535 (eval "$ac_compile") 2>&5
3536 ac_status=$?
3537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538 test $ac_status = 0; }; then :
3539 for ac_file in conftest.o conftest.obj conftest.*; do
3540 test -f "$ac_file" || continue;
3541 case $ac_file in
3542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3543 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3544 break;;
3545 esac
3546 done
3547 else
3548 $as_echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553 as_fn_error $? "cannot compute suffix of object files: cannot compile
3554 See \`config.log' for more details" "$LINENO" 5; }
3556 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3559 $as_echo "$ac_cv_objext" >&6; }
3560 OBJEXT=$ac_cv_objext
3561 ac_objext=$OBJEXT
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3563 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3564 if ${ac_cv_c_compiler_gnu+:} false; then :
3565 $as_echo_n "(cached) " >&6
3566 else
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3571 main ()
3573 #ifndef __GNUC__
3574 choke me
3575 #endif
3578 return 0;
3580 _ACEOF
3581 if ac_fn_c_try_compile "$LINENO"; then :
3582 ac_compiler_gnu=yes
3583 else
3584 ac_compiler_gnu=no
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3591 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3592 if test $ac_compiler_gnu = yes; then
3593 GCC=yes
3594 else
3595 GCC=
3597 ac_test_CFLAGS=${CFLAGS+set}
3598 ac_save_CFLAGS=$CFLAGS
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3600 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3601 if ${ac_cv_prog_cc_g+:} false; then :
3602 $as_echo_n "(cached) " >&6
3603 else
3604 ac_save_c_werror_flag=$ac_c_werror_flag
3605 ac_c_werror_flag=yes
3606 ac_cv_prog_cc_g=no
3607 CFLAGS="-g"
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3612 main ()
3616 return 0;
3618 _ACEOF
3619 if ac_fn_c_try_compile "$LINENO"; then :
3620 ac_cv_prog_cc_g=yes
3621 else
3622 CFLAGS=""
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3627 main ()
3631 return 0;
3633 _ACEOF
3634 if ac_fn_c_try_compile "$LINENO"; then :
3636 else
3637 ac_c_werror_flag=$ac_save_c_werror_flag
3638 CFLAGS="-g"
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3643 main ()
3647 return 0;
3649 _ACEOF
3650 if ac_fn_c_try_compile "$LINENO"; then :
3651 ac_cv_prog_cc_g=yes
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658 ac_c_werror_flag=$ac_save_c_werror_flag
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3661 $as_echo "$ac_cv_prog_cc_g" >&6; }
3662 if test "$ac_test_CFLAGS" = set; then
3663 CFLAGS=$ac_save_CFLAGS
3664 elif test $ac_cv_prog_cc_g = yes; then
3665 if test "$GCC" = yes; then
3666 CFLAGS="-g -O2"
3667 else
3668 CFLAGS="-g"
3670 else
3671 if test "$GCC" = yes; then
3672 CFLAGS="-O2"
3673 else
3674 CFLAGS=
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3678 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3679 if ${ac_cv_prog_cc_c89+:} false; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 ac_cv_prog_cc_c89=no
3683 ac_save_CC=$CC
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3686 #include <stdarg.h>
3687 #include <stdio.h>
3688 struct stat;
3689 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3690 struct buf { int x; };
3691 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3692 static char *e (p, i)
3693 char **p;
3694 int i;
3696 return p[i];
3698 static char *f (char * (*g) (char **, int), char **p, ...)
3700 char *s;
3701 va_list v;
3702 va_start (v,p);
3703 s = g (p, va_arg (v,int));
3704 va_end (v);
3705 return s;
3708 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3709 function prototypes and stuff, but not '\xHH' hex character constants.
3710 These don't provoke an error unfortunately, instead are silently treated
3711 as 'x'. The following induces an error, until -std is added to get
3712 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3713 array size at least. It's necessary to write '\x00'==0 to get something
3714 that's true only with -std. */
3715 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3717 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3718 inside strings and character constants. */
3719 #define FOO(x) 'x'
3720 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3722 int test (int i, double x);
3723 struct s1 {int (*f) (int a);};
3724 struct s2 {int (*f) (double a);};
3725 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3726 int argc;
3727 char **argv;
3729 main ()
3731 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3733 return 0;
3735 _ACEOF
3736 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3737 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3739 CC="$ac_save_CC $ac_arg"
3740 if ac_fn_c_try_compile "$LINENO"; then :
3741 ac_cv_prog_cc_c89=$ac_arg
3743 rm -f core conftest.err conftest.$ac_objext
3744 test "x$ac_cv_prog_cc_c89" != "xno" && break
3745 done
3746 rm -f conftest.$ac_ext
3747 CC=$ac_save_CC
3750 # AC_CACHE_VAL
3751 case "x$ac_cv_prog_cc_c89" in
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3754 $as_echo "none needed" >&6; } ;;
3755 xno)
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3757 $as_echo "unsupported" >&6; } ;;
3759 CC="$CC $ac_cv_prog_cc_c89"
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3761 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3762 esac
3763 if test "x$ac_cv_prog_cc_c89" != xno; then :
3767 ac_ext=c
3768 ac_cpp='$CPP $CPPFLAGS'
3769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773 depcc="$CC" am_compiler_list=
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3776 $as_echo_n "checking dependency style of $depcc... " >&6; }
3777 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3778 $as_echo_n "(cached) " >&6
3779 else
3780 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3781 # We make a subdir and do the tests there. Otherwise we can end up
3782 # making bogus files that we don't know about and never remove. For
3783 # instance it was reported that on HP-UX the gcc test will end up
3784 # making a dummy file named `D' -- because `-MD' means `put the output
3785 # in D'.
3786 rm -rf conftest.dir
3787 mkdir conftest.dir
3788 # Copy depcomp to subdir because otherwise we won't find it if we're
3789 # using a relative directory.
3790 cp "$am_depcomp" conftest.dir
3791 cd conftest.dir
3792 # We will build objects and dependencies in a subdirectory because
3793 # it helps to detect inapplicable dependency modes. For instance
3794 # both Tru64's cc and ICC support -MD to output dependencies as a
3795 # side effect of compilation, but ICC will put the dependencies in
3796 # the current directory while Tru64 will put them in the object
3797 # directory.
3798 mkdir sub
3800 am_cv_CC_dependencies_compiler_type=none
3801 if test "$am_compiler_list" = ""; then
3802 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3804 am__universal=false
3805 case " $depcc " in #(
3806 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3807 esac
3809 for depmode in $am_compiler_list; do
3810 # Setup a source with many dependencies, because some compilers
3811 # like to wrap large dependency lists on column 80 (with \), and
3812 # we should not choose a depcomp mode which is confused by this.
3814 # We need to recreate these files for each test, as the compiler may
3815 # overwrite some of them when testing with obscure command lines.
3816 # This happens at least with the AIX C compiler.
3817 : > sub/conftest.c
3818 for i in 1 2 3 4 5 6; do
3819 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3820 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3821 # Solaris 8's {/usr,}/bin/sh.
3822 touch sub/conftst$i.h
3823 done
3824 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3826 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3827 # mode. It turns out that the SunPro C++ compiler does not properly
3828 # handle `-M -o', and we need to detect this. Also, some Intel
3829 # versions had trouble with output in subdirs
3830 am__obj=sub/conftest.${OBJEXT-o}
3831 am__minus_obj="-o $am__obj"
3832 case $depmode in
3833 gcc)
3834 # This depmode causes a compiler race in universal mode.
3835 test "$am__universal" = false || continue
3837 nosideeffect)
3838 # after this tag, mechanisms are not by side-effect, so they'll
3839 # only be used when explicitly requested
3840 if test "x$enable_dependency_tracking" = xyes; then
3841 continue
3842 else
3843 break
3846 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3847 # This compiler won't grok `-c -o', but also, the minuso test has
3848 # not run yet. These depmodes are late enough in the game, and
3849 # so weak that their functioning should not be impacted.
3850 am__obj=conftest.${OBJEXT-o}
3851 am__minus_obj=
3853 none) break ;;
3854 esac
3855 if depmode=$depmode \
3856 source=sub/conftest.c object=$am__obj \
3857 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3858 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3859 >/dev/null 2>conftest.err &&
3860 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3861 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3862 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3863 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3864 # icc doesn't choke on unknown options, it will just issue warnings
3865 # or remarks (even with -Werror). So we grep stderr for any message
3866 # that says an option was ignored or not supported.
3867 # When given -MP, icc 7.0 and 7.1 complain thusly:
3868 # icc: Command line warning: ignoring option '-M'; no argument required
3869 # The diagnosis changed in icc 8.0:
3870 # icc: Command line remark: option '-MP' not supported
3871 if (grep 'ignoring option' conftest.err ||
3872 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3873 am_cv_CC_dependencies_compiler_type=$depmode
3874 break
3877 done
3879 cd ..
3880 rm -rf conftest.dir
3881 else
3882 am_cv_CC_dependencies_compiler_type=none
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3887 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3888 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3891 test "x$enable_dependency_tracking" != xno \
3892 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3893 am__fastdepCC_TRUE=
3894 am__fastdepCC_FALSE='#'
3895 else
3896 am__fastdepCC_TRUE='#'
3897 am__fastdepCC_FALSE=
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3902 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3903 if ${ac_cv_path_SED+:} false; then :
3904 $as_echo_n "(cached) " >&6
3905 else
3906 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3907 for ac_i in 1 2 3 4 5 6 7; do
3908 ac_script="$ac_script$as_nl$ac_script"
3909 done
3910 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3911 { ac_script=; unset ac_script;}
3912 if test -z "$SED"; then
3913 ac_path_SED_found=false
3914 # Loop through the user's path and test for each of PROGNAME-LIST
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH
3918 IFS=$as_save_IFS
3919 test -z "$as_dir" && as_dir=.
3920 for ac_prog in sed gsed; do
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3923 as_fn_executable_p "$ac_path_SED" || continue
3924 # Check for GNU ac_path_SED and select it if it is found.
3925 # Check for GNU $ac_path_SED
3926 case `"$ac_path_SED" --version 2>&1` in
3927 *GNU*)
3928 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3930 ac_count=0
3931 $as_echo_n 0123456789 >"conftest.in"
3932 while :
3934 cat "conftest.in" "conftest.in" >"conftest.tmp"
3935 mv "conftest.tmp" "conftest.in"
3936 cp "conftest.in" "conftest.nl"
3937 $as_echo '' >> "conftest.nl"
3938 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3940 as_fn_arith $ac_count + 1 && ac_count=$as_val
3941 if test $ac_count -gt ${ac_path_SED_max-0}; then
3942 # Best one so far, save it but keep looking for a better one
3943 ac_cv_path_SED="$ac_path_SED"
3944 ac_path_SED_max=$ac_count
3946 # 10*(2^10) chars as input seems more than enough
3947 test $ac_count -gt 10 && break
3948 done
3949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3950 esac
3952 $ac_path_SED_found && break 3
3953 done
3954 done
3955 done
3956 IFS=$as_save_IFS
3957 if test -z "$ac_cv_path_SED"; then
3958 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3960 else
3961 ac_cv_path_SED=$SED
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3966 $as_echo "$ac_cv_path_SED" >&6; }
3967 SED="$ac_cv_path_SED"
3968 rm -f conftest.sed
3970 test -z "$SED" && SED=sed
3971 Xsed="$SED -e 1s/^X//"
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3984 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3985 if ${ac_cv_path_GREP+:} false; then :
3986 $as_echo_n "(cached) " >&6
3987 else
3988 if test -z "$GREP"; then
3989 ac_path_GREP_found=false
3990 # Loop through the user's path and test for each of PROGNAME-LIST
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3994 IFS=$as_save_IFS
3995 test -z "$as_dir" && as_dir=.
3996 for ac_prog in grep ggrep; do
3997 for ac_exec_ext in '' $ac_executable_extensions; do
3998 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3999 as_fn_executable_p "$ac_path_GREP" || continue
4000 # Check for GNU ac_path_GREP and select it if it is found.
4001 # Check for GNU $ac_path_GREP
4002 case `"$ac_path_GREP" --version 2>&1` in
4003 *GNU*)
4004 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4006 ac_count=0
4007 $as_echo_n 0123456789 >"conftest.in"
4008 while :
4010 cat "conftest.in" "conftest.in" >"conftest.tmp"
4011 mv "conftest.tmp" "conftest.in"
4012 cp "conftest.in" "conftest.nl"
4013 $as_echo 'GREP' >> "conftest.nl"
4014 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4015 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4016 as_fn_arith $ac_count + 1 && ac_count=$as_val
4017 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4018 # Best one so far, save it but keep looking for a better one
4019 ac_cv_path_GREP="$ac_path_GREP"
4020 ac_path_GREP_max=$ac_count
4022 # 10*(2^10) chars as input seems more than enough
4023 test $ac_count -gt 10 && break
4024 done
4025 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4026 esac
4028 $ac_path_GREP_found && break 3
4029 done
4030 done
4031 done
4032 IFS=$as_save_IFS
4033 if test -z "$ac_cv_path_GREP"; then
4034 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4036 else
4037 ac_cv_path_GREP=$GREP
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4042 $as_echo "$ac_cv_path_GREP" >&6; }
4043 GREP="$ac_cv_path_GREP"
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4047 $as_echo_n "checking for egrep... " >&6; }
4048 if ${ac_cv_path_EGREP+:} false; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4052 then ac_cv_path_EGREP="$GREP -E"
4053 else
4054 if test -z "$EGREP"; then
4055 ac_path_EGREP_found=false
4056 # Loop through the user's path and test for each of PROGNAME-LIST
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4060 IFS=$as_save_IFS
4061 test -z "$as_dir" && as_dir=.
4062 for ac_prog in egrep; do
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4065 as_fn_executable_p "$ac_path_EGREP" || continue
4066 # Check for GNU ac_path_EGREP and select it if it is found.
4067 # Check for GNU $ac_path_EGREP
4068 case `"$ac_path_EGREP" --version 2>&1` in
4069 *GNU*)
4070 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4072 ac_count=0
4073 $as_echo_n 0123456789 >"conftest.in"
4074 while :
4076 cat "conftest.in" "conftest.in" >"conftest.tmp"
4077 mv "conftest.tmp" "conftest.in"
4078 cp "conftest.in" "conftest.nl"
4079 $as_echo 'EGREP' >> "conftest.nl"
4080 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4081 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4082 as_fn_arith $ac_count + 1 && ac_count=$as_val
4083 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4084 # Best one so far, save it but keep looking for a better one
4085 ac_cv_path_EGREP="$ac_path_EGREP"
4086 ac_path_EGREP_max=$ac_count
4088 # 10*(2^10) chars as input seems more than enough
4089 test $ac_count -gt 10 && break
4090 done
4091 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4092 esac
4094 $ac_path_EGREP_found && break 3
4095 done
4096 done
4097 done
4098 IFS=$as_save_IFS
4099 if test -z "$ac_cv_path_EGREP"; then
4100 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4102 else
4103 ac_cv_path_EGREP=$EGREP
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4109 $as_echo "$ac_cv_path_EGREP" >&6; }
4110 EGREP="$ac_cv_path_EGREP"
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4114 $as_echo_n "checking for fgrep... " >&6; }
4115 if ${ac_cv_path_FGREP+:} false; then :
4116 $as_echo_n "(cached) " >&6
4117 else
4118 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4119 then ac_cv_path_FGREP="$GREP -F"
4120 else
4121 if test -z "$FGREP"; then
4122 ac_path_FGREP_found=false
4123 # Loop through the user's path and test for each of PROGNAME-LIST
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4127 IFS=$as_save_IFS
4128 test -z "$as_dir" && as_dir=.
4129 for ac_prog in fgrep; do
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4132 as_fn_executable_p "$ac_path_FGREP" || continue
4133 # Check for GNU ac_path_FGREP and select it if it is found.
4134 # Check for GNU $ac_path_FGREP
4135 case `"$ac_path_FGREP" --version 2>&1` in
4136 *GNU*)
4137 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4139 ac_count=0
4140 $as_echo_n 0123456789 >"conftest.in"
4141 while :
4143 cat "conftest.in" "conftest.in" >"conftest.tmp"
4144 mv "conftest.tmp" "conftest.in"
4145 cp "conftest.in" "conftest.nl"
4146 $as_echo 'FGREP' >> "conftest.nl"
4147 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4148 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4149 as_fn_arith $ac_count + 1 && ac_count=$as_val
4150 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4151 # Best one so far, save it but keep looking for a better one
4152 ac_cv_path_FGREP="$ac_path_FGREP"
4153 ac_path_FGREP_max=$ac_count
4155 # 10*(2^10) chars as input seems more than enough
4156 test $ac_count -gt 10 && break
4157 done
4158 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4159 esac
4161 $ac_path_FGREP_found && break 3
4162 done
4163 done
4164 done
4165 IFS=$as_save_IFS
4166 if test -z "$ac_cv_path_FGREP"; then
4167 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4169 else
4170 ac_cv_path_FGREP=$FGREP
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4176 $as_echo "$ac_cv_path_FGREP" >&6; }
4177 FGREP="$ac_cv_path_FGREP"
4180 test -z "$GREP" && GREP=grep
4200 # Check whether --with-gnu-ld was given.
4201 if test "${with_gnu_ld+set}" = set; then :
4202 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4203 else
4204 with_gnu_ld=no
4207 ac_prog=ld
4208 if test "$GCC" = yes; then
4209 # Check if gcc -print-prog-name=ld gives a path.
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4211 $as_echo_n "checking for ld used by $CC... " >&6; }
4212 case $host in
4213 *-*-mingw*)
4214 # gcc leaves a trailing carriage return which upsets mingw
4215 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4217 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4218 esac
4219 case $ac_prog in
4220 # Accept absolute paths.
4221 [\\/]* | ?:[\\/]*)
4222 re_direlt='/[^/][^/]*/\.\./'
4223 # Canonicalize the pathname of ld
4224 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4225 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4226 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4227 done
4228 test -z "$LD" && LD="$ac_prog"
4231 # If it fails, then pretend we aren't using GCC.
4232 ac_prog=ld
4235 # If it is relative, then search for the first ld in PATH.
4236 with_gnu_ld=unknown
4238 esac
4239 elif test "$with_gnu_ld" = yes; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4241 $as_echo_n "checking for GNU ld... " >&6; }
4242 else
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4244 $as_echo_n "checking for non-GNU ld... " >&6; }
4246 if ${lt_cv_path_LD+:} false; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 if test -z "$LD"; then
4250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4251 for ac_dir in $PATH; do
4252 IFS="$lt_save_ifs"
4253 test -z "$ac_dir" && ac_dir=.
4254 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4255 lt_cv_path_LD="$ac_dir/$ac_prog"
4256 # Check to see if the program is GNU ld. I'd rather use --version,
4257 # but apparently some variants of GNU ld only accept -v.
4258 # Break only if it was the GNU/non-GNU ld that we prefer.
4259 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4260 *GNU* | *'with BFD'*)
4261 test "$with_gnu_ld" != no && break
4264 test "$with_gnu_ld" != yes && break
4266 esac
4268 done
4269 IFS="$lt_save_ifs"
4270 else
4271 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4275 LD="$lt_cv_path_LD"
4276 if test -n "$LD"; then
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4278 $as_echo "$LD" >&6; }
4279 else
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4281 $as_echo "no" >&6; }
4283 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4285 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4286 if ${lt_cv_prog_gnu_ld+:} false; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4290 case `$LD -v 2>&1 </dev/null` in
4291 *GNU* | *'with BFD'*)
4292 lt_cv_prog_gnu_ld=yes
4295 lt_cv_prog_gnu_ld=no
4297 esac
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4300 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4301 with_gnu_ld=$lt_cv_prog_gnu_ld
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4312 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4313 if ${lt_cv_path_NM+:} false; then :
4314 $as_echo_n "(cached) " >&6
4315 else
4316 if test -n "$NM"; then
4317 # Let the user override the test.
4318 lt_cv_path_NM="$NM"
4319 else
4320 lt_nm_to_check="${ac_tool_prefix}nm"
4321 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4322 lt_nm_to_check="$lt_nm_to_check nm"
4324 for lt_tmp_nm in $lt_nm_to_check; do
4325 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4326 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4327 IFS="$lt_save_ifs"
4328 test -z "$ac_dir" && ac_dir=.
4329 tmp_nm="$ac_dir/$lt_tmp_nm"
4330 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4331 # Check to see if the nm accepts a BSD-compat flag.
4332 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4333 # nm: unknown option "B" ignored
4334 # Tru64's nm complains that /dev/null is an invalid object file
4335 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4336 */dev/null* | *'Invalid file or object type'*)
4337 lt_cv_path_NM="$tmp_nm -B"
4338 break
4341 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4342 */dev/null*)
4343 lt_cv_path_NM="$tmp_nm -p"
4344 break
4347 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4348 continue # so that we can try to find one that supports BSD flags
4350 esac
4352 esac
4354 done
4355 IFS="$lt_save_ifs"
4356 done
4357 : ${lt_cv_path_NM=no}
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4361 $as_echo "$lt_cv_path_NM" >&6; }
4362 if test "$lt_cv_path_NM" != "no"; then
4363 NM="$lt_cv_path_NM"
4364 else
4365 # Didn't find any BSD compatible name lister, look for dumpbin.
4366 if test -n "$DUMPBIN"; then :
4367 # Let the user override the test.
4368 else
4369 if test -n "$ac_tool_prefix"; then
4370 for ac_prog in dumpbin "link -dump"
4372 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4373 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4375 $as_echo_n "checking for $ac_word... " >&6; }
4376 if ${ac_cv_prog_DUMPBIN+:} false; then :
4377 $as_echo_n "(cached) " >&6
4378 else
4379 if test -n "$DUMPBIN"; then
4380 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4381 else
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 for as_dir in $PATH
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4389 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 break 2
4393 done
4394 done
4395 IFS=$as_save_IFS
4399 DUMPBIN=$ac_cv_prog_DUMPBIN
4400 if test -n "$DUMPBIN"; then
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4402 $as_echo "$DUMPBIN" >&6; }
4403 else
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4409 test -n "$DUMPBIN" && break
4410 done
4412 if test -z "$DUMPBIN"; then
4413 ac_ct_DUMPBIN=$DUMPBIN
4414 for ac_prog in dumpbin "link -dump"
4416 # Extract the first word of "$ac_prog", so it can be a program name with args.
4417 set dummy $ac_prog; ac_word=$2
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419 $as_echo_n "checking for $ac_word... " >&6; }
4420 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4421 $as_echo_n "(cached) " >&6
4422 else
4423 if test -n "$ac_ct_DUMPBIN"; then
4424 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4433 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 break 2
4437 done
4438 done
4439 IFS=$as_save_IFS
4443 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4444 if test -n "$ac_ct_DUMPBIN"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4446 $as_echo "$ac_ct_DUMPBIN" >&6; }
4447 else
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4453 test -n "$ac_ct_DUMPBIN" && break
4454 done
4456 if test "x$ac_ct_DUMPBIN" = x; then
4457 DUMPBIN=":"
4458 else
4459 case $cross_compiling:$ac_tool_warned in
4460 yes:)
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4463 ac_tool_warned=yes ;;
4464 esac
4465 DUMPBIN=$ac_ct_DUMPBIN
4469 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4470 *COFF*)
4471 DUMPBIN="$DUMPBIN -symbols"
4474 DUMPBIN=:
4476 esac
4479 if test "$DUMPBIN" != ":"; then
4480 NM="$DUMPBIN"
4483 test -z "$NM" && NM=nm
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4491 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4492 if ${lt_cv_nm_interface+:} false; then :
4493 $as_echo_n "(cached) " >&6
4494 else
4495 lt_cv_nm_interface="BSD nm"
4496 echo "int some_variable = 0;" > conftest.$ac_ext
4497 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4498 (eval "$ac_compile" 2>conftest.err)
4499 cat conftest.err >&5
4500 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4501 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4502 cat conftest.err >&5
4503 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4504 cat conftest.out >&5
4505 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4506 lt_cv_nm_interface="MS dumpbin"
4508 rm -f conftest*
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4511 $as_echo "$lt_cv_nm_interface" >&6; }
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4514 $as_echo_n "checking whether ln -s works... " >&6; }
4515 LN_S=$as_ln_s
4516 if test "$LN_S" = "ln -s"; then
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4518 $as_echo "yes" >&6; }
4519 else
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4521 $as_echo "no, using $LN_S" >&6; }
4524 # find the maximum length of command line arguments
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4526 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4527 if ${lt_cv_sys_max_cmd_len+:} false; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4531 teststring="ABCD"
4533 case $build_os in
4534 msdosdjgpp*)
4535 # On DJGPP, this test can blow up pretty badly due to problems in libc
4536 # (any single argument exceeding 2000 bytes causes a buffer overrun
4537 # during glob expansion). Even if it were fixed, the result of this
4538 # check would be larger than it should be.
4539 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4542 gnu*)
4543 # Under GNU Hurd, this test is not required because there is
4544 # no limit to the length of command line arguments.
4545 # Libtool will interpret -1 as no limit whatsoever
4546 lt_cv_sys_max_cmd_len=-1;
4549 cygwin* | mingw* | cegcc*)
4550 # On Win9x/ME, this test blows up -- it succeeds, but takes
4551 # about 5 minutes as the teststring grows exponentially.
4552 # Worse, since 9x/ME are not pre-emptively multitasking,
4553 # you end up with a "frozen" computer, even though with patience
4554 # the test eventually succeeds (with a max line length of 256k).
4555 # Instead, let's just punt: use the minimum linelength reported by
4556 # all of the supported platforms: 8192 (on NT/2K/XP).
4557 lt_cv_sys_max_cmd_len=8192;
4560 mint*)
4561 # On MiNT this can take a long time and run out of memory.
4562 lt_cv_sys_max_cmd_len=8192;
4565 amigaos*)
4566 # On AmigaOS with pdksh, this test takes hours, literally.
4567 # So we just punt and use a minimum line length of 8192.
4568 lt_cv_sys_max_cmd_len=8192;
4571 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4572 # This has been around since 386BSD, at least. Likely further.
4573 if test -x /sbin/sysctl; then
4574 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4575 elif test -x /usr/sbin/sysctl; then
4576 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4577 else
4578 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4580 # And add a safety zone
4581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4585 interix*)
4586 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4587 lt_cv_sys_max_cmd_len=196608
4590 os2*)
4591 # The test takes a long time on OS/2.
4592 lt_cv_sys_max_cmd_len=8192
4595 osf*)
4596 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4597 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4598 # nice to cause kernel panics so lets avoid the loop below.
4599 # First set a reasonable default.
4600 lt_cv_sys_max_cmd_len=16384
4602 if test -x /sbin/sysconfig; then
4603 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4604 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4605 esac
4608 sco3.2v5*)
4609 lt_cv_sys_max_cmd_len=102400
4611 sysv5* | sco5v6* | sysv4.2uw2*)
4612 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4613 if test -n "$kargmax"; then
4614 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4615 else
4616 lt_cv_sys_max_cmd_len=32768
4620 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4621 if test -n "$lt_cv_sys_max_cmd_len"; then
4622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4623 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4624 else
4625 # Make teststring a little bigger before we do anything with it.
4626 # a 1K string should be a reasonable start.
4627 for i in 1 2 3 4 5 6 7 8 ; do
4628 teststring=$teststring$teststring
4629 done
4630 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4631 # If test is not a shell built-in, we'll probably end up computing a
4632 # maximum length that is only half of the actual maximum length, but
4633 # we can't tell.
4634 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4635 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4636 test $i != 17 # 1/2 MB should be enough
4638 i=`expr $i + 1`
4639 teststring=$teststring$teststring
4640 done
4641 # Only check the string length outside the loop.
4642 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4643 teststring=
4644 # Add a significant safety factor because C++ compilers can tack on
4645 # massive amounts of additional arguments before passing them to the
4646 # linker. It appears as though 1/2 is a usable value.
4647 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4650 esac
4654 if test -n $lt_cv_sys_max_cmd_len ; then
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4656 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4657 else
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4659 $as_echo "none" >&6; }
4661 max_cmd_len=$lt_cv_sys_max_cmd_len
4668 : ${CP="cp -f"}
4669 : ${MV="mv -f"}
4670 : ${RM="rm -f"}
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4673 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4674 # Try some XSI features
4675 xsi_shell=no
4676 ( _lt_dummy="a/b/c"
4677 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4678 = c,a/b,b/c, \
4679 && eval 'test $(( 1 + 1 )) -eq 2 \
4680 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4681 && xsi_shell=yes
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4683 $as_echo "$xsi_shell" >&6; }
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4687 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4688 lt_shell_append=no
4689 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4690 >/dev/null 2>&1 \
4691 && lt_shell_append=yes
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4693 $as_echo "$lt_shell_append" >&6; }
4696 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4697 lt_unset=unset
4698 else
4699 lt_unset=false
4706 # test EBCDIC or ASCII
4707 case `echo X|tr X '\101'` in
4708 A) # ASCII based system
4709 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4710 lt_SP2NL='tr \040 \012'
4711 lt_NL2SP='tr \015\012 \040\040'
4713 *) # EBCDIC based system
4714 lt_SP2NL='tr \100 \n'
4715 lt_NL2SP='tr \r\n \100\100'
4717 esac
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4728 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4729 if ${lt_cv_to_host_file_cmd+:} false; then :
4730 $as_echo_n "(cached) " >&6
4731 else
4732 case $host in
4733 *-*-mingw* )
4734 case $build in
4735 *-*-mingw* ) # actually msys
4736 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4738 *-*-cygwin* )
4739 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4741 * ) # otherwise, assume *nix
4742 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4744 esac
4746 *-*-cygwin* )
4747 case $build in
4748 *-*-mingw* ) # actually msys
4749 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4751 *-*-cygwin* )
4752 lt_cv_to_host_file_cmd=func_convert_file_noop
4754 * ) # otherwise, assume *nix
4755 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4757 esac
4759 * ) # unhandled hosts (and "normal" native builds)
4760 lt_cv_to_host_file_cmd=func_convert_file_noop
4762 esac
4766 to_host_file_cmd=$lt_cv_to_host_file_cmd
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4768 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4775 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4776 if ${lt_cv_to_tool_file_cmd+:} false; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 #assume ordinary cross tools, or native build.
4780 lt_cv_to_tool_file_cmd=func_convert_file_noop
4781 case $host in
4782 *-*-mingw* )
4783 case $build in
4784 *-*-mingw* ) # actually msys
4785 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4787 esac
4789 esac
4793 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4795 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4802 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4803 if ${lt_cv_ld_reload_flag+:} false; then :
4804 $as_echo_n "(cached) " >&6
4805 else
4806 lt_cv_ld_reload_flag='-r'
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4809 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4810 reload_flag=$lt_cv_ld_reload_flag
4811 case $reload_flag in
4812 "" | " "*) ;;
4813 *) reload_flag=" $reload_flag" ;;
4814 esac
4815 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4816 case $host_os in
4817 cygwin* | mingw* | pw32* | cegcc*)
4818 if test "$GCC" != yes; then
4819 reload_cmds=false
4822 darwin*)
4823 if test "$GCC" = yes; then
4824 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4825 else
4826 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4829 esac
4839 if test -n "$ac_tool_prefix"; then
4840 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4841 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843 $as_echo_n "checking for $ac_word... " >&6; }
4844 if ${ac_cv_prog_OBJDUMP+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 if test -n "$OBJDUMP"; then
4848 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4849 else
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4853 IFS=$as_save_IFS
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4857 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 break 2
4861 done
4862 done
4863 IFS=$as_save_IFS
4867 OBJDUMP=$ac_cv_prog_OBJDUMP
4868 if test -n "$OBJDUMP"; then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4870 $as_echo "$OBJDUMP" >&6; }
4871 else
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4873 $as_echo "no" >&6; }
4878 if test -z "$ac_cv_prog_OBJDUMP"; then
4879 ac_ct_OBJDUMP=$OBJDUMP
4880 # Extract the first word of "objdump", so it can be a program name with args.
4881 set dummy objdump; ac_word=$2
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4883 $as_echo_n "checking for $ac_word... " >&6; }
4884 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4885 $as_echo_n "(cached) " >&6
4886 else
4887 if test -n "$ac_ct_OBJDUMP"; then
4888 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4889 else
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 for as_dir in $PATH
4893 IFS=$as_save_IFS
4894 test -z "$as_dir" && as_dir=.
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4897 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4899 break 2
4901 done
4902 done
4903 IFS=$as_save_IFS
4907 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4908 if test -n "$ac_ct_OBJDUMP"; then
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4910 $as_echo "$ac_ct_OBJDUMP" >&6; }
4911 else
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913 $as_echo "no" >&6; }
4916 if test "x$ac_ct_OBJDUMP" = x; then
4917 OBJDUMP="false"
4918 else
4919 case $cross_compiling:$ac_tool_warned in
4920 yes:)
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4923 ac_tool_warned=yes ;;
4924 esac
4925 OBJDUMP=$ac_ct_OBJDUMP
4927 else
4928 OBJDUMP="$ac_cv_prog_OBJDUMP"
4931 test -z "$OBJDUMP" && OBJDUMP=objdump
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4939 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4940 if ${lt_cv_deplibs_check_method+:} false; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 lt_cv_file_magic_cmd='$MAGIC_CMD'
4944 lt_cv_file_magic_test_file=
4945 lt_cv_deplibs_check_method='unknown'
4946 # Need to set the preceding variable on all platforms that support
4947 # interlibrary dependencies.
4948 # 'none' -- dependencies not supported.
4949 # `unknown' -- same as none, but documents that we really don't know.
4950 # 'pass_all' -- all dependencies passed with no checks.
4951 # 'test_compile' -- check by making test program.
4952 # 'file_magic [[regex]]' -- check by looking for files in library path
4953 # which responds to the $file_magic_cmd with a given extended regex.
4954 # If you have `file' or equivalent on your system and you're not sure
4955 # whether `pass_all' will *always* work, you probably want this one.
4957 case $host_os in
4958 aix[4-9]*)
4959 lt_cv_deplibs_check_method=pass_all
4962 beos*)
4963 lt_cv_deplibs_check_method=pass_all
4966 bsdi[45]*)
4967 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4968 lt_cv_file_magic_cmd='/usr/bin/file -L'
4969 lt_cv_file_magic_test_file=/shlib/libc.so
4972 cygwin*)
4973 # func_win32_libid is a shell function defined in ltmain.sh
4974 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4975 lt_cv_file_magic_cmd='func_win32_libid'
4978 mingw* | pw32*)
4979 # Base MSYS/MinGW do not provide the 'file' command needed by
4980 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4981 # unless we find 'file', for example because we are cross-compiling.
4982 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4983 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4984 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4985 lt_cv_file_magic_cmd='func_win32_libid'
4986 else
4987 # Keep this pattern in sync with the one in func_win32_libid.
4988 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4989 lt_cv_file_magic_cmd='$OBJDUMP -f'
4993 cegcc*)
4994 # use the weaker test based on 'objdump'. See mingw*.
4995 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4996 lt_cv_file_magic_cmd='$OBJDUMP -f'
4999 darwin* | rhapsody*)
5000 lt_cv_deplibs_check_method=pass_all
5003 freebsd* | dragonfly*)
5004 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5005 case $host_cpu in
5006 i*86 )
5007 # Not sure whether the presence of OpenBSD here was a mistake.
5008 # Let's accept both of them until this is cleared up.
5009 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5010 lt_cv_file_magic_cmd=/usr/bin/file
5011 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5013 esac
5014 else
5015 lt_cv_deplibs_check_method=pass_all
5019 haiku*)
5020 lt_cv_deplibs_check_method=pass_all
5023 hpux10.20* | hpux11*)
5024 lt_cv_file_magic_cmd=/usr/bin/file
5025 case $host_cpu in
5026 ia64*)
5027 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5028 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5030 hppa*64*)
5031 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5032 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5035 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5036 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5038 esac
5041 interix[3-9]*)
5042 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5043 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5046 irix5* | irix6* | nonstopux*)
5047 case $LD in
5048 *-32|*"-32 ") libmagic=32-bit;;
5049 *-n32|*"-n32 ") libmagic=N32;;
5050 *-64|*"-64 ") libmagic=64-bit;;
5051 *) libmagic=never-match;;
5052 esac
5053 lt_cv_deplibs_check_method=pass_all
5056 # This must be glibc/ELF.
5057 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5058 lt_cv_deplibs_check_method=pass_all
5061 netbsd* | netbsdelf*-gnu)
5062 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5064 else
5065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5069 newos6*)
5070 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5071 lt_cv_file_magic_cmd=/usr/bin/file
5072 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5075 *nto* | *qnx*)
5076 lt_cv_deplibs_check_method=pass_all
5079 openbsd*)
5080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5082 else
5083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5087 osf3* | osf4* | osf5*)
5088 lt_cv_deplibs_check_method=pass_all
5091 rdos*)
5092 lt_cv_deplibs_check_method=pass_all
5095 solaris*)
5096 lt_cv_deplibs_check_method=pass_all
5099 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5100 lt_cv_deplibs_check_method=pass_all
5103 sysv4 | sysv4.3*)
5104 case $host_vendor in
5105 motorola)
5106 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]'
5107 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5109 ncr)
5110 lt_cv_deplibs_check_method=pass_all
5112 sequent)
5113 lt_cv_file_magic_cmd='/bin/file'
5114 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5116 sni)
5117 lt_cv_file_magic_cmd='/bin/file'
5118 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5119 lt_cv_file_magic_test_file=/lib/libc.so
5121 siemens)
5122 lt_cv_deplibs_check_method=pass_all
5125 lt_cv_deplibs_check_method=pass_all
5127 esac
5130 tpf*)
5131 lt_cv_deplibs_check_method=pass_all
5133 esac
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5137 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5139 file_magic_glob=
5140 want_nocaseglob=no
5141 if test "$build" = "$host"; then
5142 case $host_os in
5143 mingw* | pw32*)
5144 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5145 want_nocaseglob=yes
5146 else
5147 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5150 esac
5153 file_magic_cmd=$lt_cv_file_magic_cmd
5154 deplibs_check_method=$lt_cv_deplibs_check_method
5155 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5178 if test -n "$ac_tool_prefix"; then
5179 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5180 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if ${ac_cv_prog_DLLTOOL+:} false; then :
5184 $as_echo_n "(cached) " >&6
5185 else
5186 if test -n "$DLLTOOL"; then
5187 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5200 done
5201 done
5202 IFS=$as_save_IFS
5206 DLLTOOL=$ac_cv_prog_DLLTOOL
5207 if test -n "$DLLTOOL"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5209 $as_echo "$DLLTOOL" >&6; }
5210 else
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5217 if test -z "$ac_cv_prog_DLLTOOL"; then
5218 ac_ct_DLLTOOL=$DLLTOOL
5219 # Extract the first word of "dlltool", so it can be a program name with args.
5220 set dummy dlltool; ac_word=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5224 $as_echo_n "(cached) " >&6
5225 else
5226 if test -n "$ac_ct_DLLTOOL"; then
5227 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5228 else
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5236 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 break 2
5240 done
5241 done
5242 IFS=$as_save_IFS
5246 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5247 if test -n "$ac_ct_DLLTOOL"; then
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5249 $as_echo "$ac_ct_DLLTOOL" >&6; }
5250 else
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5255 if test "x$ac_ct_DLLTOOL" = x; then
5256 DLLTOOL="false"
5257 else
5258 case $cross_compiling:$ac_tool_warned in
5259 yes:)
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5262 ac_tool_warned=yes ;;
5263 esac
5264 DLLTOOL=$ac_ct_DLLTOOL
5266 else
5267 DLLTOOL="$ac_cv_prog_DLLTOOL"
5270 test -z "$DLLTOOL" && DLLTOOL=dlltool
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5279 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5280 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 lt_cv_sharedlib_from_linklib_cmd='unknown'
5285 case $host_os in
5286 cygwin* | mingw* | pw32* | cegcc*)
5287 # two different shell functions defined in ltmain.sh
5288 # decide which to use based on capabilities of $DLLTOOL
5289 case `$DLLTOOL --help 2>&1` in
5290 *--identify-strict*)
5291 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5294 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5296 esac
5299 # fallback: assume linklib IS sharedlib
5300 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5302 esac
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5306 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5307 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5308 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5317 if test -n "$ac_tool_prefix"; then
5318 for ac_prog in ar
5320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5321 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5323 $as_echo_n "checking for $ac_word... " >&6; }
5324 if ${ac_cv_prog_AR+:} false; then :
5325 $as_echo_n "(cached) " >&6
5326 else
5327 if test -n "$AR"; then
5328 ac_cv_prog_AR="$AR" # Let the user override the test.
5329 else
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 for as_dir in $PATH
5333 IFS=$as_save_IFS
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5337 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 break 2
5341 done
5342 done
5343 IFS=$as_save_IFS
5347 AR=$ac_cv_prog_AR
5348 if test -n "$AR"; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5350 $as_echo "$AR" >&6; }
5351 else
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5357 test -n "$AR" && break
5358 done
5360 if test -z "$AR"; then
5361 ac_ct_AR=$AR
5362 for ac_prog in ar
5364 # Extract the first word of "$ac_prog", so it can be a program name with args.
5365 set dummy $ac_prog; ac_word=$2
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367 $as_echo_n "checking for $ac_word... " >&6; }
5368 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 if test -n "$ac_ct_AR"; then
5372 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5373 else
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5381 ac_cv_prog_ac_ct_AR="$ac_prog"
5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
5385 done
5386 done
5387 IFS=$as_save_IFS
5391 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5392 if test -n "$ac_ct_AR"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5394 $as_echo "$ac_ct_AR" >&6; }
5395 else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5401 test -n "$ac_ct_AR" && break
5402 done
5404 if test "x$ac_ct_AR" = x; then
5405 AR="false"
5406 else
5407 case $cross_compiling:$ac_tool_warned in
5408 yes:)
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5411 ac_tool_warned=yes ;;
5412 esac
5413 AR=$ac_ct_AR
5417 : ${AR=ar}
5418 : ${AR_FLAGS=cru}
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5431 $as_echo_n "checking for archiver @FILE support... " >&6; }
5432 if ${lt_cv_ar_at_file+:} false; then :
5433 $as_echo_n "(cached) " >&6
5434 else
5435 lt_cv_ar_at_file=no
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5440 main ()
5444 return 0;
5446 _ACEOF
5447 if ac_fn_c_try_compile "$LINENO"; then :
5448 echo conftest.$ac_objext > conftest.lst
5449 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5451 (eval $lt_ar_try) 2>&5
5452 ac_status=$?
5453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5454 test $ac_status = 0; }
5455 if test "$ac_status" -eq 0; then
5456 # Ensure the archiver fails upon bogus file names.
5457 rm -f conftest.$ac_objext libconftest.a
5458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5459 (eval $lt_ar_try) 2>&5
5460 ac_status=$?
5461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5462 test $ac_status = 0; }
5463 if test "$ac_status" -ne 0; then
5464 lt_cv_ar_at_file=@
5467 rm -f conftest.* libconftest.a
5470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5474 $as_echo "$lt_cv_ar_at_file" >&6; }
5476 if test "x$lt_cv_ar_at_file" = xno; then
5477 archiver_list_spec=
5478 else
5479 archiver_list_spec=$lt_cv_ar_at_file
5488 if test -n "$ac_tool_prefix"; then
5489 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5490 set dummy ${ac_tool_prefix}strip; ac_word=$2
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5492 $as_echo_n "checking for $ac_word... " >&6; }
5493 if ${ac_cv_prog_STRIP+:} false; then :
5494 $as_echo_n "(cached) " >&6
5495 else
5496 if test -n "$STRIP"; then
5497 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5498 else
5499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500 for as_dir in $PATH
5502 IFS=$as_save_IFS
5503 test -z "$as_dir" && as_dir=.
5504 for ac_exec_ext in '' $ac_executable_extensions; do
5505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5506 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5508 break 2
5510 done
5511 done
5512 IFS=$as_save_IFS
5516 STRIP=$ac_cv_prog_STRIP
5517 if test -n "$STRIP"; then
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5519 $as_echo "$STRIP" >&6; }
5520 else
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522 $as_echo "no" >&6; }
5527 if test -z "$ac_cv_prog_STRIP"; then
5528 ac_ct_STRIP=$STRIP
5529 # Extract the first word of "strip", so it can be a program name with args.
5530 set dummy strip; ac_word=$2
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5532 $as_echo_n "checking for $ac_word... " >&6; }
5533 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5534 $as_echo_n "(cached) " >&6
5535 else
5536 if test -n "$ac_ct_STRIP"; then
5537 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5538 else
5539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 for as_dir in $PATH
5542 IFS=$as_save_IFS
5543 test -z "$as_dir" && as_dir=.
5544 for ac_exec_ext in '' $ac_executable_extensions; do
5545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5546 ac_cv_prog_ac_ct_STRIP="strip"
5547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5548 break 2
5550 done
5551 done
5552 IFS=$as_save_IFS
5556 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5557 if test -n "$ac_ct_STRIP"; then
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5559 $as_echo "$ac_ct_STRIP" >&6; }
5560 else
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562 $as_echo "no" >&6; }
5565 if test "x$ac_ct_STRIP" = x; then
5566 STRIP=":"
5567 else
5568 case $cross_compiling:$ac_tool_warned in
5569 yes:)
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5572 ac_tool_warned=yes ;;
5573 esac
5574 STRIP=$ac_ct_STRIP
5576 else
5577 STRIP="$ac_cv_prog_STRIP"
5580 test -z "$STRIP" && STRIP=:
5587 if test -n "$ac_tool_prefix"; then
5588 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5589 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if ${ac_cv_prog_RANLIB+:} false; then :
5593 $as_echo_n "(cached) " >&6
5594 else
5595 if test -n "$RANLIB"; then
5596 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5597 else
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 for as_dir in $PATH
5601 IFS=$as_save_IFS
5602 test -z "$as_dir" && as_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5605 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 break 2
5609 done
5610 done
5611 IFS=$as_save_IFS
5615 RANLIB=$ac_cv_prog_RANLIB
5616 if test -n "$RANLIB"; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5618 $as_echo "$RANLIB" >&6; }
5619 else
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5626 if test -z "$ac_cv_prog_RANLIB"; then
5627 ac_ct_RANLIB=$RANLIB
5628 # Extract the first word of "ranlib", so it can be a program name with args.
5629 set dummy ranlib; ac_word=$2
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631 $as_echo_n "checking for $ac_word... " >&6; }
5632 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 if test -n "$ac_ct_RANLIB"; then
5636 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5637 else
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5645 ac_cv_prog_ac_ct_RANLIB="ranlib"
5646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 break 2
5649 done
5650 done
5651 IFS=$as_save_IFS
5655 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5656 if test -n "$ac_ct_RANLIB"; then
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5658 $as_echo "$ac_ct_RANLIB" >&6; }
5659 else
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5664 if test "x$ac_ct_RANLIB" = x; then
5665 RANLIB=":"
5666 else
5667 case $cross_compiling:$ac_tool_warned in
5668 yes:)
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5671 ac_tool_warned=yes ;;
5672 esac
5673 RANLIB=$ac_ct_RANLIB
5675 else
5676 RANLIB="$ac_cv_prog_RANLIB"
5679 test -z "$RANLIB" && RANLIB=:
5686 # Determine commands to create old-style static archives.
5687 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5688 old_postinstall_cmds='chmod 644 $oldlib'
5689 old_postuninstall_cmds=
5691 if test -n "$RANLIB"; then
5692 case $host_os in
5693 openbsd*)
5694 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5697 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5699 esac
5700 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5703 case $host_os in
5704 darwin*)
5705 lock_old_archive_extraction=yes ;;
5707 lock_old_archive_extraction=no ;;
5708 esac
5748 # If no C compiler was specified, use CC.
5749 LTCC=${LTCC-"$CC"}
5751 # If no C compiler flags were specified, use CFLAGS.
5752 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5754 # Allow CC to be a program name with arguments.
5755 compiler=$CC
5758 # Check for command to grab the raw symbol name followed by C symbol from nm.
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5760 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5761 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5765 # These are sane defaults that work on at least a few old systems.
5766 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5768 # Character class describing NM global symbol codes.
5769 symcode='[BCDEGRST]'
5771 # Regexp to match symbols that can be accessed directly from C.
5772 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5774 # Define system-specific variables.
5775 case $host_os in
5776 aix*)
5777 symcode='[BCDT]'
5779 cygwin* | mingw* | pw32* | cegcc*)
5780 symcode='[ABCDGISTW]'
5782 hpux*)
5783 if test "$host_cpu" = ia64; then
5784 symcode='[ABCDEGRST]'
5787 irix* | nonstopux*)
5788 symcode='[BCDEGRST]'
5790 osf*)
5791 symcode='[BCDEGQRST]'
5793 solaris*)
5794 symcode='[BDRT]'
5796 sco3.2v5*)
5797 symcode='[DT]'
5799 sysv4.2uw2*)
5800 symcode='[DT]'
5802 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5803 symcode='[ABDT]'
5805 sysv4)
5806 symcode='[DFNSTU]'
5808 esac
5810 # If we're using GNU nm, then use its standard symbol codes.
5811 case `$NM -V 2>&1` in
5812 *GNU* | *'with BFD'*)
5813 symcode='[ABCDGIRSTW]' ;;
5814 esac
5816 # Transform an extracted symbol line into a proper C declaration.
5817 # Some systems (esp. on ia64) link data and code symbols differently,
5818 # so use this general approach.
5819 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5821 # Transform an extracted symbol line into symbol name and symbol address
5822 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5823 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5825 # Handle CRLF in mingw tool chain
5826 opt_cr=
5827 case $build_os in
5828 mingw*)
5829 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5831 esac
5833 # Try without a prefix underscore, then with it.
5834 for ac_symprfx in "" "_"; do
5836 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5837 symxfrm="\\1 $ac_symprfx\\2 \\2"
5839 # Write the raw and C identifiers.
5840 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5841 # Fake it for dumpbin and say T for any non-static function
5842 # and D for any global variable.
5843 # Also find C++ and __fastcall symbols from MSVC++,
5844 # which start with @ or ?.
5845 lt_cv_sys_global_symbol_pipe="$AWK '"\
5846 " {last_section=section; section=\$ 3};"\
5847 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5848 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5849 " \$ 0!~/External *\|/{next};"\
5850 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5851 " {if(hide[section]) next};"\
5852 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5853 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5854 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5855 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5856 " ' prfx=^$ac_symprfx"
5857 else
5858 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5860 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5862 # Check to see that the pipe works correctly.
5863 pipe_works=no
5865 rm -f conftest*
5866 cat > conftest.$ac_ext <<_LT_EOF
5867 #ifdef __cplusplus
5868 extern "C" {
5869 #endif
5870 char nm_test_var;
5871 void nm_test_func(void);
5872 void nm_test_func(void){}
5873 #ifdef __cplusplus
5875 #endif
5876 int main(){nm_test_var='a';nm_test_func();return(0);}
5877 _LT_EOF
5879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5880 (eval $ac_compile) 2>&5
5881 ac_status=$?
5882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5883 test $ac_status = 0; }; then
5884 # Now try to grab the symbols.
5885 nlist=conftest.nm
5886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5887 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5888 ac_status=$?
5889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5890 test $ac_status = 0; } && test -s "$nlist"; then
5891 # Try sorting and uniquifying the output.
5892 if sort "$nlist" | uniq > "$nlist"T; then
5893 mv -f "$nlist"T "$nlist"
5894 else
5895 rm -f "$nlist"T
5898 # Make sure that we snagged all the symbols we need.
5899 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5900 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5901 cat <<_LT_EOF > conftest.$ac_ext
5902 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5903 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5904 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5905 relocations are performed -- see ld's documentation on pseudo-relocs. */
5906 # define LT_DLSYM_CONST
5907 #elif defined(__osf__)
5908 /* This system does not cope well with relocations in const data. */
5909 # define LT_DLSYM_CONST
5910 #else
5911 # define LT_DLSYM_CONST const
5912 #endif
5914 #ifdef __cplusplus
5915 extern "C" {
5916 #endif
5918 _LT_EOF
5919 # Now generate the symbol file.
5920 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5922 cat <<_LT_EOF >> conftest.$ac_ext
5924 /* The mapping between symbol names and symbols. */
5925 LT_DLSYM_CONST struct {
5926 const char *name;
5927 void *address;
5929 lt__PROGRAM__LTX_preloaded_symbols[] =
5931 { "@PROGRAM@", (void *) 0 },
5932 _LT_EOF
5933 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5934 cat <<\_LT_EOF >> conftest.$ac_ext
5935 {0, (void *) 0}
5938 /* This works around a problem in FreeBSD linker */
5939 #ifdef FREEBSD_WORKAROUND
5940 static const void *lt_preloaded_setup() {
5941 return lt__PROGRAM__LTX_preloaded_symbols;
5943 #endif
5945 #ifdef __cplusplus
5947 #endif
5948 _LT_EOF
5949 # Now try linking the two files.
5950 mv conftest.$ac_objext conftstm.$ac_objext
5951 lt_globsym_save_LIBS=$LIBS
5952 lt_globsym_save_CFLAGS=$CFLAGS
5953 LIBS="conftstm.$ac_objext"
5954 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5956 (eval $ac_link) 2>&5
5957 ac_status=$?
5958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5959 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5960 pipe_works=yes
5962 LIBS=$lt_globsym_save_LIBS
5963 CFLAGS=$lt_globsym_save_CFLAGS
5964 else
5965 echo "cannot find nm_test_func in $nlist" >&5
5967 else
5968 echo "cannot find nm_test_var in $nlist" >&5
5970 else
5971 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5973 else
5974 echo "$progname: failed program was:" >&5
5975 cat conftest.$ac_ext >&5
5977 rm -rf conftest* conftst*
5979 # Do not use the global_symbol_pipe unless it works.
5980 if test "$pipe_works" = yes; then
5981 break
5982 else
5983 lt_cv_sys_global_symbol_pipe=
5985 done
5989 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5990 lt_cv_sys_global_symbol_to_cdecl=
5992 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5994 $as_echo "failed" >&6; }
5995 else
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5997 $as_echo "ok" >&6; }
6000 # Response file support.
6001 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6002 nm_file_list_spec='@'
6003 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6004 nm_file_list_spec='@'
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6034 $as_echo_n "checking for sysroot... " >&6; }
6036 # Check whether --with-sysroot was given.
6037 if test "${with_sysroot+set}" = set; then :
6038 withval=$with_sysroot;
6039 else
6040 with_sysroot=no
6044 lt_sysroot=
6045 case ${with_sysroot} in #(
6046 yes)
6047 if test "$GCC" = yes; then
6048 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6050 ;; #(
6052 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6053 ;; #(
6054 no|'')
6055 ;; #(
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6058 $as_echo "${with_sysroot}" >&6; }
6059 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6061 esac
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6064 $as_echo "${lt_sysroot:-no}" >&6; }
6070 # Check whether --enable-libtool-lock was given.
6071 if test "${enable_libtool_lock+set}" = set; then :
6072 enableval=$enable_libtool_lock;
6075 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6077 # Some flags need to be propagated to the compiler or linker for good
6078 # libtool support.
6079 case $host in
6080 ia64-*-hpux*)
6081 # Find out which ABI we are using.
6082 echo 'int i;' > conftest.$ac_ext
6083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6084 (eval $ac_compile) 2>&5
6085 ac_status=$?
6086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6087 test $ac_status = 0; }; then
6088 case `/usr/bin/file conftest.$ac_objext` in
6089 *ELF-32*)
6090 HPUX_IA64_MODE="32"
6092 *ELF-64*)
6093 HPUX_IA64_MODE="64"
6095 esac
6097 rm -rf conftest*
6099 *-*-irix6*)
6100 # Find out which ABI we are using.
6101 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6103 (eval $ac_compile) 2>&5
6104 ac_status=$?
6105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6106 test $ac_status = 0; }; then
6107 if test "$lt_cv_prog_gnu_ld" = yes; then
6108 case `/usr/bin/file conftest.$ac_objext` in
6109 *32-bit*)
6110 LD="${LD-ld} -melf32bsmip"
6112 *N32*)
6113 LD="${LD-ld} -melf32bmipn32"
6115 *64-bit*)
6116 LD="${LD-ld} -melf64bmip"
6118 esac
6119 else
6120 case `/usr/bin/file conftest.$ac_objext` in
6121 *32-bit*)
6122 LD="${LD-ld} -32"
6124 *N32*)
6125 LD="${LD-ld} -n32"
6127 *64-bit*)
6128 LD="${LD-ld} -64"
6130 esac
6133 rm -rf conftest*
6136 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6137 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6138 # Find out which ABI we are using.
6139 echo 'int i;' > conftest.$ac_ext
6140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6141 (eval $ac_compile) 2>&5
6142 ac_status=$?
6143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6144 test $ac_status = 0; }; then
6145 case `/usr/bin/file conftest.o` in
6146 *32-bit*)
6147 case $host in
6148 x86_64-*kfreebsd*-gnu)
6149 LD="${LD-ld} -m elf_i386_fbsd"
6151 x86_64-*linux*)
6152 LD="${LD-ld} -m elf_i386"
6154 ppc64-*linux*|powerpc64-*linux*)
6155 LD="${LD-ld} -m elf32ppclinux"
6157 s390x-*linux*)
6158 LD="${LD-ld} -m elf_s390"
6160 sparc64-*linux*)
6161 LD="${LD-ld} -m elf32_sparc"
6163 esac
6165 *64-bit*)
6166 case $host in
6167 x86_64-*kfreebsd*-gnu)
6168 LD="${LD-ld} -m elf_x86_64_fbsd"
6170 x86_64-*linux*)
6171 LD="${LD-ld} -m elf_x86_64"
6173 ppc*-*linux*|powerpc*-*linux*)
6174 LD="${LD-ld} -m elf64ppc"
6176 s390*-*linux*|s390*-*tpf*)
6177 LD="${LD-ld} -m elf64_s390"
6179 sparc*-*linux*)
6180 LD="${LD-ld} -m elf64_sparc"
6182 esac
6184 esac
6186 rm -rf conftest*
6189 *-*-sco3.2v5*)
6190 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6191 SAVE_CFLAGS="$CFLAGS"
6192 CFLAGS="$CFLAGS -belf"
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6194 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6195 if ${lt_cv_cc_needs_belf+:} false; then :
6196 $as_echo_n "(cached) " >&6
6197 else
6198 ac_ext=c
6199 ac_cpp='$CPP $CPPFLAGS'
6200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h. */
6208 main ()
6212 return 0;
6214 _ACEOF
6215 if ac_fn_c_try_link "$LINENO"; then :
6216 lt_cv_cc_needs_belf=yes
6217 else
6218 lt_cv_cc_needs_belf=no
6220 rm -f core conftest.err conftest.$ac_objext \
6221 conftest$ac_exeext conftest.$ac_ext
6222 ac_ext=c
6223 ac_cpp='$CPP $CPPFLAGS'
6224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6230 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6231 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6232 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6233 CFLAGS="$SAVE_CFLAGS"
6236 *-*solaris*)
6237 # Find out which ABI we are using.
6238 echo 'int i;' > conftest.$ac_ext
6239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6240 (eval $ac_compile) 2>&5
6241 ac_status=$?
6242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6243 test $ac_status = 0; }; then
6244 case `/usr/bin/file conftest.o` in
6245 *64-bit*)
6246 case $lt_cv_prog_gnu_ld in
6247 yes*)
6248 case $host in
6249 i?86-*-solaris*)
6250 LD="${LD-ld} -m elf_x86_64"
6252 sparc*-*-solaris*)
6253 LD="${LD-ld} -m elf64_sparc"
6255 esac
6256 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6257 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6258 LD="${LD-ld}_sol2"
6262 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6263 LD="${LD-ld} -64"
6266 esac
6268 esac
6270 rm -rf conftest*
6272 esac
6274 need_locks="$enable_libtool_lock"
6276 if test -n "$ac_tool_prefix"; then
6277 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6278 set dummy ${ac_tool_prefix}mt; ac_word=$2
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280 $as_echo_n "checking for $ac_word... " >&6; }
6281 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6282 $as_echo_n "(cached) " >&6
6283 else
6284 if test -n "$MANIFEST_TOOL"; then
6285 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6286 else
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 for as_dir in $PATH
6290 IFS=$as_save_IFS
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6294 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 break 2
6298 done
6299 done
6300 IFS=$as_save_IFS
6304 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6305 if test -n "$MANIFEST_TOOL"; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6307 $as_echo "$MANIFEST_TOOL" >&6; }
6308 else
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310 $as_echo "no" >&6; }
6315 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6316 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6317 # Extract the first word of "mt", so it can be a program name with args.
6318 set dummy mt; ac_word=$2
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6320 $as_echo_n "checking for $ac_word... " >&6; }
6321 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6322 $as_echo_n "(cached) " >&6
6323 else
6324 if test -n "$ac_ct_MANIFEST_TOOL"; then
6325 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6326 else
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 for as_dir in $PATH
6330 IFS=$as_save_IFS
6331 test -z "$as_dir" && as_dir=.
6332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6334 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 break 2
6338 done
6339 done
6340 IFS=$as_save_IFS
6344 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6345 if test -n "$ac_ct_MANIFEST_TOOL"; then
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6347 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6348 else
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 $as_echo "no" >&6; }
6353 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6354 MANIFEST_TOOL=":"
6355 else
6356 case $cross_compiling:$ac_tool_warned in
6357 yes:)
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6360 ac_tool_warned=yes ;;
6361 esac
6362 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6364 else
6365 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6368 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6370 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6371 if ${lt_cv_path_mainfest_tool+:} false; then :
6372 $as_echo_n "(cached) " >&6
6373 else
6374 lt_cv_path_mainfest_tool=no
6375 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6376 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6377 cat conftest.err >&5
6378 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6379 lt_cv_path_mainfest_tool=yes
6381 rm -f conftest*
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6384 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6385 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6386 MANIFEST_TOOL=:
6394 case $host_os in
6395 rhapsody* | darwin*)
6396 if test -n "$ac_tool_prefix"; then
6397 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6398 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6402 $as_echo_n "(cached) " >&6
6403 else
6404 if test -n "$DSYMUTIL"; then
6405 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6406 else
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6410 IFS=$as_save_IFS
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6414 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 break 2
6418 done
6419 done
6420 IFS=$as_save_IFS
6424 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6425 if test -n "$DSYMUTIL"; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6427 $as_echo "$DSYMUTIL" >&6; }
6428 else
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6435 if test -z "$ac_cv_prog_DSYMUTIL"; then
6436 ac_ct_DSYMUTIL=$DSYMUTIL
6437 # Extract the first word of "dsymutil", so it can be a program name with args.
6438 set dummy dsymutil; ac_word=$2
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440 $as_echo_n "checking for $ac_word... " >&6; }
6441 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6442 $as_echo_n "(cached) " >&6
6443 else
6444 if test -n "$ac_ct_DSYMUTIL"; then
6445 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6446 else
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 for as_dir in $PATH
6450 IFS=$as_save_IFS
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6454 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 break 2
6458 done
6459 done
6460 IFS=$as_save_IFS
6464 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6465 if test -n "$ac_ct_DSYMUTIL"; then
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6467 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6468 else
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470 $as_echo "no" >&6; }
6473 if test "x$ac_ct_DSYMUTIL" = x; then
6474 DSYMUTIL=":"
6475 else
6476 case $cross_compiling:$ac_tool_warned in
6477 yes:)
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6480 ac_tool_warned=yes ;;
6481 esac
6482 DSYMUTIL=$ac_ct_DSYMUTIL
6484 else
6485 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6488 if test -n "$ac_tool_prefix"; then
6489 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6490 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492 $as_echo_n "checking for $ac_word... " >&6; }
6493 if ${ac_cv_prog_NMEDIT+:} false; then :
6494 $as_echo_n "(cached) " >&6
6495 else
6496 if test -n "$NMEDIT"; then
6497 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6498 else
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 for as_dir in $PATH
6502 IFS=$as_save_IFS
6503 test -z "$as_dir" && as_dir=.
6504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6506 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508 break 2
6510 done
6511 done
6512 IFS=$as_save_IFS
6516 NMEDIT=$ac_cv_prog_NMEDIT
6517 if test -n "$NMEDIT"; then
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6519 $as_echo "$NMEDIT" >&6; }
6520 else
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522 $as_echo "no" >&6; }
6527 if test -z "$ac_cv_prog_NMEDIT"; then
6528 ac_ct_NMEDIT=$NMEDIT
6529 # Extract the first word of "nmedit", so it can be a program name with args.
6530 set dummy nmedit; ac_word=$2
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532 $as_echo_n "checking for $ac_word... " >&6; }
6533 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6534 $as_echo_n "(cached) " >&6
6535 else
6536 if test -n "$ac_ct_NMEDIT"; then
6537 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6538 else
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 for as_dir in $PATH
6542 IFS=$as_save_IFS
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6546 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 break 2
6550 done
6551 done
6552 IFS=$as_save_IFS
6556 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6557 if test -n "$ac_ct_NMEDIT"; then
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6559 $as_echo "$ac_ct_NMEDIT" >&6; }
6560 else
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562 $as_echo "no" >&6; }
6565 if test "x$ac_ct_NMEDIT" = x; then
6566 NMEDIT=":"
6567 else
6568 case $cross_compiling:$ac_tool_warned in
6569 yes:)
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6572 ac_tool_warned=yes ;;
6573 esac
6574 NMEDIT=$ac_ct_NMEDIT
6576 else
6577 NMEDIT="$ac_cv_prog_NMEDIT"
6580 if test -n "$ac_tool_prefix"; then
6581 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6582 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if ${ac_cv_prog_LIPO+:} false; then :
6586 $as_echo_n "(cached) " >&6
6587 else
6588 if test -n "$LIPO"; then
6589 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6590 else
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6594 IFS=$as_save_IFS
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6598 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 break 2
6602 done
6603 done
6604 IFS=$as_save_IFS
6608 LIPO=$ac_cv_prog_LIPO
6609 if test -n "$LIPO"; then
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6611 $as_echo "$LIPO" >&6; }
6612 else
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 $as_echo "no" >&6; }
6619 if test -z "$ac_cv_prog_LIPO"; then
6620 ac_ct_LIPO=$LIPO
6621 # Extract the first word of "lipo", so it can be a program name with args.
6622 set dummy lipo; ac_word=$2
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6624 $as_echo_n "checking for $ac_word... " >&6; }
6625 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6626 $as_echo_n "(cached) " >&6
6627 else
6628 if test -n "$ac_ct_LIPO"; then
6629 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6630 else
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH
6634 IFS=$as_save_IFS
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6638 ac_cv_prog_ac_ct_LIPO="lipo"
6639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 break 2
6642 done
6643 done
6644 IFS=$as_save_IFS
6648 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6649 if test -n "$ac_ct_LIPO"; then
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6651 $as_echo "$ac_ct_LIPO" >&6; }
6652 else
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 $as_echo "no" >&6; }
6657 if test "x$ac_ct_LIPO" = x; then
6658 LIPO=":"
6659 else
6660 case $cross_compiling:$ac_tool_warned in
6661 yes:)
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6664 ac_tool_warned=yes ;;
6665 esac
6666 LIPO=$ac_ct_LIPO
6668 else
6669 LIPO="$ac_cv_prog_LIPO"
6672 if test -n "$ac_tool_prefix"; then
6673 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6674 set dummy ${ac_tool_prefix}otool; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if ${ac_cv_prog_OTOOL+:} false; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 if test -n "$OTOOL"; then
6681 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6690 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 break 2
6694 done
6695 done
6696 IFS=$as_save_IFS
6700 OTOOL=$ac_cv_prog_OTOOL
6701 if test -n "$OTOOL"; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6703 $as_echo "$OTOOL" >&6; }
6704 else
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6711 if test -z "$ac_cv_prog_OTOOL"; then
6712 ac_ct_OTOOL=$OTOOL
6713 # Extract the first word of "otool", so it can be a program name with args.
6714 set dummy otool; ac_word=$2
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716 $as_echo_n "checking for $ac_word... " >&6; }
6717 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6718 $as_echo_n "(cached) " >&6
6719 else
6720 if test -n "$ac_ct_OTOOL"; then
6721 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6722 else
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6726 IFS=$as_save_IFS
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6730 ac_cv_prog_ac_ct_OTOOL="otool"
6731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 break 2
6734 done
6735 done
6736 IFS=$as_save_IFS
6740 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6741 if test -n "$ac_ct_OTOOL"; then
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6743 $as_echo "$ac_ct_OTOOL" >&6; }
6744 else
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746 $as_echo "no" >&6; }
6749 if test "x$ac_ct_OTOOL" = x; then
6750 OTOOL=":"
6751 else
6752 case $cross_compiling:$ac_tool_warned in
6753 yes:)
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6756 ac_tool_warned=yes ;;
6757 esac
6758 OTOOL=$ac_ct_OTOOL
6760 else
6761 OTOOL="$ac_cv_prog_OTOOL"
6764 if test -n "$ac_tool_prefix"; then
6765 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6766 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if ${ac_cv_prog_OTOOL64+:} false; then :
6770 $as_echo_n "(cached) " >&6
6771 else
6772 if test -n "$OTOOL64"; then
6773 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6774 else
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 for as_dir in $PATH
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6782 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6786 done
6787 done
6788 IFS=$as_save_IFS
6792 OTOOL64=$ac_cv_prog_OTOOL64
6793 if test -n "$OTOOL64"; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6795 $as_echo "$OTOOL64" >&6; }
6796 else
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6803 if test -z "$ac_cv_prog_OTOOL64"; then
6804 ac_ct_OTOOL64=$OTOOL64
6805 # Extract the first word of "otool64", so it can be a program name with args.
6806 set dummy otool64; ac_word=$2
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808 $as_echo_n "checking for $ac_word... " >&6; }
6809 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6810 $as_echo_n "(cached) " >&6
6811 else
6812 if test -n "$ac_ct_OTOOL64"; then
6813 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6814 else
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 for as_dir in $PATH
6818 IFS=$as_save_IFS
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6822 ac_cv_prog_ac_ct_OTOOL64="otool64"
6823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 break 2
6826 done
6827 done
6828 IFS=$as_save_IFS
6832 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6833 if test -n "$ac_ct_OTOOL64"; then
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6835 $as_echo "$ac_ct_OTOOL64" >&6; }
6836 else
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6841 if test "x$ac_ct_OTOOL64" = x; then
6842 OTOOL64=":"
6843 else
6844 case $cross_compiling:$ac_tool_warned in
6845 yes:)
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6848 ac_tool_warned=yes ;;
6849 esac
6850 OTOOL64=$ac_ct_OTOOL64
6852 else
6853 OTOOL64="$ac_cv_prog_OTOOL64"
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6883 $as_echo_n "checking for -single_module linker flag... " >&6; }
6884 if ${lt_cv_apple_cc_single_mod+:} false; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 lt_cv_apple_cc_single_mod=no
6888 if test -z "${LT_MULTI_MODULE}"; then
6889 # By default we will add the -single_module flag. You can override
6890 # by either setting the environment variable LT_MULTI_MODULE
6891 # non-empty at configure time, or by adding -multi_module to the
6892 # link flags.
6893 rm -rf libconftest.dylib*
6894 echo "int foo(void){return 1;}" > conftest.c
6895 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6896 -dynamiclib -Wl,-single_module conftest.c" >&5
6897 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6898 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6899 _lt_result=$?
6900 # If there is a non-empty error log, and "single_module"
6901 # appears in it, assume the flag caused a linker warning
6902 if test -s conftest.err && $GREP single_module conftest.err; then
6903 cat conftest.err >&5
6904 # Otherwise, if the output was created with a 0 exit code from
6905 # the compiler, it worked.
6906 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6907 lt_cv_apple_cc_single_mod=yes
6908 else
6909 cat conftest.err >&5
6911 rm -rf libconftest.dylib*
6912 rm -f conftest.*
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6916 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6919 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6920 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6921 $as_echo_n "(cached) " >&6
6922 else
6923 lt_cv_ld_exported_symbols_list=no
6924 save_LDFLAGS=$LDFLAGS
6925 echo "_main" > conftest.sym
6926 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928 /* end confdefs.h. */
6931 main ()
6935 return 0;
6937 _ACEOF
6938 if ac_fn_c_try_link "$LINENO"; then :
6939 lt_cv_ld_exported_symbols_list=yes
6940 else
6941 lt_cv_ld_exported_symbols_list=no
6943 rm -f core conftest.err conftest.$ac_objext \
6944 conftest$ac_exeext conftest.$ac_ext
6945 LDFLAGS="$save_LDFLAGS"
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6949 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6952 $as_echo_n "checking for -force_load linker flag... " >&6; }
6953 if ${lt_cv_ld_force_load+:} false; then :
6954 $as_echo_n "(cached) " >&6
6955 else
6956 lt_cv_ld_force_load=no
6957 cat > conftest.c << _LT_EOF
6958 int forced_loaded() { return 2;}
6959 _LT_EOF
6960 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6961 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6962 echo "$AR cru libconftest.a conftest.o" >&5
6963 $AR cru libconftest.a conftest.o 2>&5
6964 echo "$RANLIB libconftest.a" >&5
6965 $RANLIB libconftest.a 2>&5
6966 cat > conftest.c << _LT_EOF
6967 int main() { return 0;}
6968 _LT_EOF
6969 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6970 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6971 _lt_result=$?
6972 if test -s conftest.err && $GREP force_load conftest.err; then
6973 cat conftest.err >&5
6974 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6975 lt_cv_ld_force_load=yes
6976 else
6977 cat conftest.err >&5
6979 rm -f conftest.err libconftest.a conftest conftest.c
6980 rm -rf conftest.dSYM
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6984 $as_echo "$lt_cv_ld_force_load" >&6; }
6985 case $host_os in
6986 rhapsody* | darwin1.[012])
6987 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6988 darwin1.*)
6989 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6990 darwin*) # darwin 5.x on
6991 # if running on 10.5 or later, the deployment target defaults
6992 # to the OS version, if on x86, and 10.4, the deployment
6993 # target defaults to 10.4. Don't you love it?
6994 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6995 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6996 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6997 10.[012]*)
6998 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6999 10.*)
7000 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7001 esac
7003 esac
7004 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7005 _lt_dar_single_mod='$single_module'
7007 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7008 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7009 else
7010 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7012 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7013 _lt_dsymutil='~$DSYMUTIL $lib || :'
7014 else
7015 _lt_dsymutil=
7018 esac
7020 ac_ext=c
7021 ac_cpp='$CPP $CPPFLAGS'
7022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7026 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7027 # On Suns, sometimes $CPP names a directory.
7028 if test -n "$CPP" && test -d "$CPP"; then
7029 CPP=
7031 if test -z "$CPP"; then
7032 if ${ac_cv_prog_CPP+:} false; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 # Double quotes because CPP needs to be expanded
7036 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7038 ac_preproc_ok=false
7039 for ac_c_preproc_warn_flag in '' yes
7041 # Use a header file that comes with gcc, so configuring glibc
7042 # with a fresh cross-compiler works.
7043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7044 # <limits.h> exists even on freestanding compilers.
7045 # On the NeXT, cc -E runs the code through the compiler's parser,
7046 # not just through cpp. "Syntax error" is here to catch this case.
7047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048 /* end confdefs.h. */
7049 #ifdef __STDC__
7050 # include <limits.h>
7051 #else
7052 # include <assert.h>
7053 #endif
7054 Syntax error
7055 _ACEOF
7056 if ac_fn_c_try_cpp "$LINENO"; then :
7058 else
7059 # Broken: fails on valid input.
7060 continue
7062 rm -f conftest.err conftest.i conftest.$ac_ext
7064 # OK, works on sane cases. Now check whether nonexistent headers
7065 # can be detected and how.
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7068 #include <ac_nonexistent.h>
7069 _ACEOF
7070 if ac_fn_c_try_cpp "$LINENO"; then :
7071 # Broken: success on invalid input.
7072 continue
7073 else
7074 # Passes both tests.
7075 ac_preproc_ok=:
7076 break
7078 rm -f conftest.err conftest.i conftest.$ac_ext
7080 done
7081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7082 rm -f conftest.i conftest.err conftest.$ac_ext
7083 if $ac_preproc_ok; then :
7084 break
7087 done
7088 ac_cv_prog_CPP=$CPP
7091 CPP=$ac_cv_prog_CPP
7092 else
7093 ac_cv_prog_CPP=$CPP
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7096 $as_echo "$CPP" >&6; }
7097 ac_preproc_ok=false
7098 for ac_c_preproc_warn_flag in '' yes
7100 # Use a header file that comes with gcc, so configuring glibc
7101 # with a fresh cross-compiler works.
7102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7103 # <limits.h> exists even on freestanding compilers.
7104 # On the NeXT, cc -E runs the code through the compiler's parser,
7105 # not just through cpp. "Syntax error" is here to catch this case.
7106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h. */
7108 #ifdef __STDC__
7109 # include <limits.h>
7110 #else
7111 # include <assert.h>
7112 #endif
7113 Syntax error
7114 _ACEOF
7115 if ac_fn_c_try_cpp "$LINENO"; then :
7117 else
7118 # Broken: fails on valid input.
7119 continue
7121 rm -f conftest.err conftest.i conftest.$ac_ext
7123 # OK, works on sane cases. Now check whether nonexistent headers
7124 # can be detected and how.
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7127 #include <ac_nonexistent.h>
7128 _ACEOF
7129 if ac_fn_c_try_cpp "$LINENO"; then :
7130 # Broken: success on invalid input.
7131 continue
7132 else
7133 # Passes both tests.
7134 ac_preproc_ok=:
7135 break
7137 rm -f conftest.err conftest.i conftest.$ac_ext
7139 done
7140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7141 rm -f conftest.i conftest.err conftest.$ac_ext
7142 if $ac_preproc_ok; then :
7144 else
7145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7147 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7148 See \`config.log' for more details" "$LINENO" 5; }
7151 ac_ext=c
7152 ac_cpp='$CPP $CPPFLAGS'
7153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7159 $as_echo_n "checking for ANSI C header files... " >&6; }
7160 if ${ac_cv_header_stdc+:} false; then :
7161 $as_echo_n "(cached) " >&6
7162 else
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7165 #include <stdlib.h>
7166 #include <stdarg.h>
7167 #include <string.h>
7168 #include <float.h>
7171 main ()
7175 return 0;
7177 _ACEOF
7178 if ac_fn_c_try_compile "$LINENO"; then :
7179 ac_cv_header_stdc=yes
7180 else
7181 ac_cv_header_stdc=no
7183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185 if test $ac_cv_header_stdc = yes; then
7186 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7189 #include <string.h>
7191 _ACEOF
7192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7193 $EGREP "memchr" >/dev/null 2>&1; then :
7195 else
7196 ac_cv_header_stdc=no
7198 rm -f conftest*
7202 if test $ac_cv_header_stdc = yes; then
7203 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h. */
7206 #include <stdlib.h>
7208 _ACEOF
7209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7210 $EGREP "free" >/dev/null 2>&1; then :
7212 else
7213 ac_cv_header_stdc=no
7215 rm -f conftest*
7219 if test $ac_cv_header_stdc = yes; then
7220 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7221 if test "$cross_compiling" = yes; then :
7223 else
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7226 #include <ctype.h>
7227 #include <stdlib.h>
7228 #if ((' ' & 0x0FF) == 0x020)
7229 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7230 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7231 #else
7232 # define ISLOWER(c) \
7233 (('a' <= (c) && (c) <= 'i') \
7234 || ('j' <= (c) && (c) <= 'r') \
7235 || ('s' <= (c) && (c) <= 'z'))
7236 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7237 #endif
7239 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7241 main ()
7243 int i;
7244 for (i = 0; i < 256; i++)
7245 if (XOR (islower (i), ISLOWER (i))
7246 || toupper (i) != TOUPPER (i))
7247 return 2;
7248 return 0;
7250 _ACEOF
7251 if ac_fn_c_try_run "$LINENO"; then :
7253 else
7254 ac_cv_header_stdc=no
7256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7257 conftest.$ac_objext conftest.beam conftest.$ac_ext
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7263 $as_echo "$ac_cv_header_stdc" >&6; }
7264 if test $ac_cv_header_stdc = yes; then
7266 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7270 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7271 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7272 inttypes.h stdint.h unistd.h
7273 do :
7274 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7275 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7277 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7278 cat >>confdefs.h <<_ACEOF
7279 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7280 _ACEOF
7284 done
7287 for ac_header in dlfcn.h
7288 do :
7289 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7291 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7292 cat >>confdefs.h <<_ACEOF
7293 #define HAVE_DLFCN_H 1
7294 _ACEOF
7298 done
7304 # Set options
7305 enable_dlopen=yes
7306 enable_win32_dll=yes
7308 case $host in
7309 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7310 if test -n "$ac_tool_prefix"; then
7311 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7312 set dummy ${ac_tool_prefix}as; ac_word=$2
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314 $as_echo_n "checking for $ac_word... " >&6; }
7315 if ${ac_cv_prog_AS+:} false; then :
7316 $as_echo_n "(cached) " >&6
7317 else
7318 if test -n "$AS"; then
7319 ac_cv_prog_AS="$AS" # Let the user override the test.
7320 else
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 for as_dir in $PATH
7324 IFS=$as_save_IFS
7325 test -z "$as_dir" && as_dir=.
7326 for ac_exec_ext in '' $ac_executable_extensions; do
7327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7328 ac_cv_prog_AS="${ac_tool_prefix}as"
7329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 break 2
7332 done
7333 done
7334 IFS=$as_save_IFS
7338 AS=$ac_cv_prog_AS
7339 if test -n "$AS"; then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7341 $as_echo "$AS" >&6; }
7342 else
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344 $as_echo "no" >&6; }
7349 if test -z "$ac_cv_prog_AS"; then
7350 ac_ct_AS=$AS
7351 # Extract the first word of "as", so it can be a program name with args.
7352 set dummy as; ac_word=$2
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354 $as_echo_n "checking for $ac_word... " >&6; }
7355 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7356 $as_echo_n "(cached) " >&6
7357 else
7358 if test -n "$ac_ct_AS"; then
7359 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7360 else
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7364 IFS=$as_save_IFS
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368 ac_cv_prog_ac_ct_AS="as"
7369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 break 2
7372 done
7373 done
7374 IFS=$as_save_IFS
7378 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7379 if test -n "$ac_ct_AS"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7381 $as_echo "$ac_ct_AS" >&6; }
7382 else
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7387 if test "x$ac_ct_AS" = x; then
7388 AS="false"
7389 else
7390 case $cross_compiling:$ac_tool_warned in
7391 yes:)
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7394 ac_tool_warned=yes ;;
7395 esac
7396 AS=$ac_ct_AS
7398 else
7399 AS="$ac_cv_prog_AS"
7402 if test -n "$ac_tool_prefix"; then
7403 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7404 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406 $as_echo_n "checking for $ac_word... " >&6; }
7407 if ${ac_cv_prog_DLLTOOL+:} false; then :
7408 $as_echo_n "(cached) " >&6
7409 else
7410 if test -n "$DLLTOOL"; then
7411 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7412 else
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 for as_dir in $PATH
7416 IFS=$as_save_IFS
7417 test -z "$as_dir" && as_dir=.
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7420 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 break 2
7424 done
7425 done
7426 IFS=$as_save_IFS
7430 DLLTOOL=$ac_cv_prog_DLLTOOL
7431 if test -n "$DLLTOOL"; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7433 $as_echo "$DLLTOOL" >&6; }
7434 else
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 $as_echo "no" >&6; }
7441 if test -z "$ac_cv_prog_DLLTOOL"; then
7442 ac_ct_DLLTOOL=$DLLTOOL
7443 # Extract the first word of "dlltool", so it can be a program name with args.
7444 set dummy dlltool; ac_word=$2
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446 $as_echo_n "checking for $ac_word... " >&6; }
7447 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7448 $as_echo_n "(cached) " >&6
7449 else
7450 if test -n "$ac_ct_DLLTOOL"; then
7451 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7452 else
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7456 IFS=$as_save_IFS
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7460 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 break 2
7464 done
7465 done
7466 IFS=$as_save_IFS
7470 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7471 if test -n "$ac_ct_DLLTOOL"; then
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7473 $as_echo "$ac_ct_DLLTOOL" >&6; }
7474 else
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7479 if test "x$ac_ct_DLLTOOL" = x; then
7480 DLLTOOL="false"
7481 else
7482 case $cross_compiling:$ac_tool_warned in
7483 yes:)
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7486 ac_tool_warned=yes ;;
7487 esac
7488 DLLTOOL=$ac_ct_DLLTOOL
7490 else
7491 DLLTOOL="$ac_cv_prog_DLLTOOL"
7494 if test -n "$ac_tool_prefix"; then
7495 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7496 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if ${ac_cv_prog_OBJDUMP+:} false; then :
7500 $as_echo_n "(cached) " >&6
7501 else
7502 if test -n "$OBJDUMP"; then
7503 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7504 else
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 for as_dir in $PATH
7508 IFS=$as_save_IFS
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7512 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514 break 2
7516 done
7517 done
7518 IFS=$as_save_IFS
7522 OBJDUMP=$ac_cv_prog_OBJDUMP
7523 if test -n "$OBJDUMP"; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7525 $as_echo "$OBJDUMP" >&6; }
7526 else
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7533 if test -z "$ac_cv_prog_OBJDUMP"; then
7534 ac_ct_OBJDUMP=$OBJDUMP
7535 # Extract the first word of "objdump", so it can be a program name with args.
7536 set dummy objdump; ac_word=$2
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7540 $as_echo_n "(cached) " >&6
7541 else
7542 if test -n "$ac_ct_OBJDUMP"; then
7543 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7544 else
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7548 IFS=$as_save_IFS
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7552 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7554 break 2
7556 done
7557 done
7558 IFS=$as_save_IFS
7562 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7563 if test -n "$ac_ct_OBJDUMP"; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7565 $as_echo "$ac_ct_OBJDUMP" >&6; }
7566 else
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7571 if test "x$ac_ct_OBJDUMP" = x; then
7572 OBJDUMP="false"
7573 else
7574 case $cross_compiling:$ac_tool_warned in
7575 yes:)
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7578 ac_tool_warned=yes ;;
7579 esac
7580 OBJDUMP=$ac_ct_OBJDUMP
7582 else
7583 OBJDUMP="$ac_cv_prog_OBJDUMP"
7587 esac
7589 test -z "$AS" && AS=as
7595 test -z "$DLLTOOL" && DLLTOOL=dlltool
7601 test -z "$OBJDUMP" && OBJDUMP=objdump
7611 # Check whether --enable-shared was given.
7612 if test "${enable_shared+set}" = set; then :
7613 enableval=$enable_shared; p=${PACKAGE-default}
7614 case $enableval in
7615 yes) enable_shared=yes ;;
7616 no) enable_shared=no ;;
7618 enable_shared=no
7619 # Look at the argument we got. We use all the common list separators.
7620 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7621 for pkg in $enableval; do
7622 IFS="$lt_save_ifs"
7623 if test "X$pkg" = "X$p"; then
7624 enable_shared=yes
7626 done
7627 IFS="$lt_save_ifs"
7629 esac
7630 else
7631 enable_shared=yes
7642 # Check whether --enable-static was given.
7643 if test "${enable_static+set}" = set; then :
7644 enableval=$enable_static; p=${PACKAGE-default}
7645 case $enableval in
7646 yes) enable_static=yes ;;
7647 no) enable_static=no ;;
7649 enable_static=no
7650 # Look at the argument we got. We use all the common list separators.
7651 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7652 for pkg in $enableval; do
7653 IFS="$lt_save_ifs"
7654 if test "X$pkg" = "X$p"; then
7655 enable_static=yes
7657 done
7658 IFS="$lt_save_ifs"
7660 esac
7661 else
7662 enable_static=yes
7674 # Check whether --with-pic was given.
7675 if test "${with_pic+set}" = set; then :
7676 withval=$with_pic; lt_p=${PACKAGE-default}
7677 case $withval in
7678 yes|no) pic_mode=$withval ;;
7680 pic_mode=default
7681 # Look at the argument we got. We use all the common list separators.
7682 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7683 for lt_pkg in $withval; do
7684 IFS="$lt_save_ifs"
7685 if test "X$lt_pkg" = "X$lt_p"; then
7686 pic_mode=yes
7688 done
7689 IFS="$lt_save_ifs"
7691 esac
7692 else
7693 pic_mode=default
7697 test -z "$pic_mode" && pic_mode=default
7705 # Check whether --enable-fast-install was given.
7706 if test "${enable_fast_install+set}" = set; then :
7707 enableval=$enable_fast_install; p=${PACKAGE-default}
7708 case $enableval in
7709 yes) enable_fast_install=yes ;;
7710 no) enable_fast_install=no ;;
7712 enable_fast_install=no
7713 # Look at the argument we got. We use all the common list separators.
7714 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7715 for pkg in $enableval; do
7716 IFS="$lt_save_ifs"
7717 if test "X$pkg" = "X$p"; then
7718 enable_fast_install=yes
7720 done
7721 IFS="$lt_save_ifs"
7723 esac
7724 else
7725 enable_fast_install=yes
7738 # This can be used to rebuild libtool when needed
7739 LIBTOOL_DEPS="$ltmain"
7741 # Always use our own libtool.
7742 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7773 test -z "$LN_S" && LN_S="ln -s"
7788 if test -n "${ZSH_VERSION+set}" ; then
7789 setopt NO_GLOB_SUBST
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7793 $as_echo_n "checking for objdir... " >&6; }
7794 if ${lt_cv_objdir+:} false; then :
7795 $as_echo_n "(cached) " >&6
7796 else
7797 rm -f .libs 2>/dev/null
7798 mkdir .libs 2>/dev/null
7799 if test -d .libs; then
7800 lt_cv_objdir=.libs
7801 else
7802 # MS-DOS does not allow filenames that begin with a dot.
7803 lt_cv_objdir=_libs
7805 rmdir .libs 2>/dev/null
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7808 $as_echo "$lt_cv_objdir" >&6; }
7809 objdir=$lt_cv_objdir
7815 cat >>confdefs.h <<_ACEOF
7816 #define LT_OBJDIR "$lt_cv_objdir/"
7817 _ACEOF
7822 case $host_os in
7823 aix3*)
7824 # AIX sometimes has problems with the GCC collect2 program. For some
7825 # reason, if we set the COLLECT_NAMES environment variable, the problems
7826 # vanish in a puff of smoke.
7827 if test "X${COLLECT_NAMES+set}" != Xset; then
7828 COLLECT_NAMES=
7829 export COLLECT_NAMES
7832 esac
7834 # Global variables:
7835 ofile=libtool
7836 can_build_shared=yes
7838 # All known linkers require a `.a' archive for static linking (except MSVC,
7839 # which needs '.lib').
7840 libext=a
7842 with_gnu_ld="$lt_cv_prog_gnu_ld"
7844 old_CC="$CC"
7845 old_CFLAGS="$CFLAGS"
7847 # Set sane defaults for various variables
7848 test -z "$CC" && CC=cc
7849 test -z "$LTCC" && LTCC=$CC
7850 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7851 test -z "$LD" && LD=ld
7852 test -z "$ac_objext" && ac_objext=o
7854 for cc_temp in $compiler""; do
7855 case $cc_temp in
7856 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7857 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7858 \-*) ;;
7859 *) break;;
7860 esac
7861 done
7862 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7865 # Only perform the check for file, if the check method requires it
7866 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7867 case $deplibs_check_method in
7868 file_magic*)
7869 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7871 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7872 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7873 $as_echo_n "(cached) " >&6
7874 else
7875 case $MAGIC_CMD in
7876 [\\/*] | ?:[\\/]*)
7877 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7880 lt_save_MAGIC_CMD="$MAGIC_CMD"
7881 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7882 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7883 for ac_dir in $ac_dummy; do
7884 IFS="$lt_save_ifs"
7885 test -z "$ac_dir" && ac_dir=.
7886 if test -f $ac_dir/${ac_tool_prefix}file; then
7887 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7888 if test -n "$file_magic_test_file"; then
7889 case $deplibs_check_method in
7890 "file_magic "*)
7891 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7892 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7893 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7894 $EGREP "$file_magic_regex" > /dev/null; then
7896 else
7897 cat <<_LT_EOF 1>&2
7899 *** Warning: the command libtool uses to detect shared libraries,
7900 *** $file_magic_cmd, produces output that libtool cannot recognize.
7901 *** The result is that libtool may fail to recognize shared libraries
7902 *** as such. This will affect the creation of libtool libraries that
7903 *** depend on shared libraries, but programs linked with such libtool
7904 *** libraries will work regardless of this problem. Nevertheless, you
7905 *** may want to report the problem to your system manager and/or to
7906 *** bug-libtool@gnu.org
7908 _LT_EOF
7909 fi ;;
7910 esac
7912 break
7914 done
7915 IFS="$lt_save_ifs"
7916 MAGIC_CMD="$lt_save_MAGIC_CMD"
7918 esac
7921 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7922 if test -n "$MAGIC_CMD"; then
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7924 $as_echo "$MAGIC_CMD" >&6; }
7925 else
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7927 $as_echo "no" >&6; }
7934 if test -z "$lt_cv_path_MAGIC_CMD"; then
7935 if test -n "$ac_tool_prefix"; then
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7937 $as_echo_n "checking for file... " >&6; }
7938 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7939 $as_echo_n "(cached) " >&6
7940 else
7941 case $MAGIC_CMD in
7942 [\\/*] | ?:[\\/]*)
7943 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7946 lt_save_MAGIC_CMD="$MAGIC_CMD"
7947 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7948 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7949 for ac_dir in $ac_dummy; do
7950 IFS="$lt_save_ifs"
7951 test -z "$ac_dir" && ac_dir=.
7952 if test -f $ac_dir/file; then
7953 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7954 if test -n "$file_magic_test_file"; then
7955 case $deplibs_check_method in
7956 "file_magic "*)
7957 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7958 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7959 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7960 $EGREP "$file_magic_regex" > /dev/null; then
7962 else
7963 cat <<_LT_EOF 1>&2
7965 *** Warning: the command libtool uses to detect shared libraries,
7966 *** $file_magic_cmd, produces output that libtool cannot recognize.
7967 *** The result is that libtool may fail to recognize shared libraries
7968 *** as such. This will affect the creation of libtool libraries that
7969 *** depend on shared libraries, but programs linked with such libtool
7970 *** libraries will work regardless of this problem. Nevertheless, you
7971 *** may want to report the problem to your system manager and/or to
7972 *** bug-libtool@gnu.org
7974 _LT_EOF
7975 fi ;;
7976 esac
7978 break
7980 done
7981 IFS="$lt_save_ifs"
7982 MAGIC_CMD="$lt_save_MAGIC_CMD"
7984 esac
7987 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7988 if test -n "$MAGIC_CMD"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7990 $as_echo "$MAGIC_CMD" >&6; }
7991 else
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7997 else
7998 MAGIC_CMD=:
8004 esac
8006 # Use C for the default configuration in the libtool script
8008 lt_save_CC="$CC"
8009 ac_ext=c
8010 ac_cpp='$CPP $CPPFLAGS'
8011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8016 # Source file extension for C test sources.
8017 ac_ext=c
8019 # Object file extension for compiled C test sources.
8020 objext=o
8021 objext=$objext
8023 # Code to be used in simple compile tests
8024 lt_simple_compile_test_code="int some_variable = 0;"
8026 # Code to be used in simple link tests
8027 lt_simple_link_test_code='int main(){return(0);}'
8035 # If no C compiler was specified, use CC.
8036 LTCC=${LTCC-"$CC"}
8038 # If no C compiler flags were specified, use CFLAGS.
8039 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8041 # Allow CC to be a program name with arguments.
8042 compiler=$CC
8044 # Save the default compiler, since it gets overwritten when the other
8045 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8046 compiler_DEFAULT=$CC
8048 # save warnings/boilerplate of simple test code
8049 ac_outfile=conftest.$ac_objext
8050 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8051 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8052 _lt_compiler_boilerplate=`cat conftest.err`
8053 $RM conftest*
8055 ac_outfile=conftest.$ac_objext
8056 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8057 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8058 _lt_linker_boilerplate=`cat conftest.err`
8059 $RM -r conftest*
8062 ## CAVEAT EMPTOR:
8063 ## There is no encapsulation within the following macros, do not change
8064 ## the running order or otherwise move them around unless you know exactly
8065 ## what you are doing...
8066 if test -n "$compiler"; then
8068 lt_prog_compiler_no_builtin_flag=
8070 if test "$GCC" = yes; then
8071 case $cc_basename in
8072 nvcc*)
8073 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8075 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8076 esac
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8079 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8080 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8081 $as_echo_n "(cached) " >&6
8082 else
8083 lt_cv_prog_compiler_rtti_exceptions=no
8084 ac_outfile=conftest.$ac_objext
8085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8086 lt_compiler_flag="-fno-rtti -fno-exceptions"
8087 # Insert the option either (1) after the last *FLAGS variable, or
8088 # (2) before a word containing "conftest.", or (3) at the end.
8089 # Note that $ac_compile itself does not contain backslashes and begins
8090 # with a dollar sign (not a hyphen), so the echo should work correctly.
8091 # The option is referenced via a variable to avoid confusing sed.
8092 lt_compile=`echo "$ac_compile" | $SED \
8093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8095 -e 's:$: $lt_compiler_flag:'`
8096 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8097 (eval "$lt_compile" 2>conftest.err)
8098 ac_status=$?
8099 cat conftest.err >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 if (exit $ac_status) && test -s "$ac_outfile"; then
8102 # The compiler can only warn and ignore the option if not recognized
8103 # So say no if there are warnings other than the usual output.
8104 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8106 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8107 lt_cv_prog_compiler_rtti_exceptions=yes
8110 $RM conftest*
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8114 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8116 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8117 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8118 else
8129 lt_prog_compiler_wl=
8130 lt_prog_compiler_pic=
8131 lt_prog_compiler_static=
8134 if test "$GCC" = yes; then
8135 lt_prog_compiler_wl='-Wl,'
8136 lt_prog_compiler_static='-static'
8138 case $host_os in
8139 aix*)
8140 # All AIX code is PIC.
8141 if test "$host_cpu" = ia64; then
8142 # AIX 5 now supports IA64 processor
8143 lt_prog_compiler_static='-Bstatic'
8147 amigaos*)
8148 case $host_cpu in
8149 powerpc)
8150 # see comment about AmigaOS4 .so support
8151 lt_prog_compiler_pic='-fPIC'
8153 m68k)
8154 # FIXME: we need at least 68020 code to build shared libraries, but
8155 # adding the `-m68020' flag to GCC prevents building anything better,
8156 # like `-m68040'.
8157 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8159 esac
8162 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8163 # PIC is the default for these OSes.
8166 mingw* | cygwin* | pw32* | os2* | cegcc*)
8167 # This hack is so that the source file can tell whether it is being
8168 # built for inclusion in a dll (and should export symbols for example).
8169 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8170 # (--disable-auto-import) libraries
8171 lt_prog_compiler_pic='-DDLL_EXPORT'
8174 darwin* | rhapsody*)
8175 # PIC is the default on this platform
8176 # Common symbols not allowed in MH_DYLIB files
8177 lt_prog_compiler_pic='-fno-common'
8180 haiku*)
8181 # PIC is the default for Haiku.
8182 # The "-static" flag exists, but is broken.
8183 lt_prog_compiler_static=
8186 hpux*)
8187 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8188 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8189 # sets the default TLS model and affects inlining.
8190 case $host_cpu in
8191 hppa*64*)
8192 # +Z the default
8195 lt_prog_compiler_pic='-fPIC'
8197 esac
8200 interix[3-9]*)
8201 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8202 # Instead, we relocate shared libraries at runtime.
8205 msdosdjgpp*)
8206 # Just because we use GCC doesn't mean we suddenly get shared libraries
8207 # on systems that don't support them.
8208 lt_prog_compiler_can_build_shared=no
8209 enable_shared=no
8212 *nto* | *qnx*)
8213 # QNX uses GNU C++, but need to define -shared option too, otherwise
8214 # it will coredump.
8215 lt_prog_compiler_pic='-fPIC -shared'
8218 sysv4*MP*)
8219 if test -d /usr/nec; then
8220 lt_prog_compiler_pic=-Kconform_pic
8225 lt_prog_compiler_pic='-fPIC'
8227 esac
8229 case $cc_basename in
8230 nvcc*) # Cuda Compiler Driver 2.2
8231 lt_prog_compiler_wl='-Xlinker '
8232 if test -n "$lt_prog_compiler_pic"; then
8233 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8236 esac
8237 else
8238 # PORTME Check for flag to pass linker flags through the system compiler.
8239 case $host_os in
8240 aix*)
8241 lt_prog_compiler_wl='-Wl,'
8242 if test "$host_cpu" = ia64; then
8243 # AIX 5 now supports IA64 processor
8244 lt_prog_compiler_static='-Bstatic'
8245 else
8246 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8250 mingw* | cygwin* | pw32* | os2* | cegcc*)
8251 # This hack is so that the source file can tell whether it is being
8252 # built for inclusion in a dll (and should export symbols for example).
8253 lt_prog_compiler_pic='-DDLL_EXPORT'
8256 hpux9* | hpux10* | hpux11*)
8257 lt_prog_compiler_wl='-Wl,'
8258 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8259 # not for PA HP-UX.
8260 case $host_cpu in
8261 hppa*64*|ia64*)
8262 # +Z the default
8265 lt_prog_compiler_pic='+Z'
8267 esac
8268 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8269 lt_prog_compiler_static='${wl}-a ${wl}archive'
8272 irix5* | irix6* | nonstopux*)
8273 lt_prog_compiler_wl='-Wl,'
8274 # PIC (with -KPIC) is the default.
8275 lt_prog_compiler_static='-non_shared'
8278 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8279 case $cc_basename in
8280 # old Intel for x86_64 which still supported -KPIC.
8281 ecc*)
8282 lt_prog_compiler_wl='-Wl,'
8283 lt_prog_compiler_pic='-KPIC'
8284 lt_prog_compiler_static='-static'
8286 # icc used to be incompatible with GCC.
8287 # ICC 10 doesn't accept -KPIC any more.
8288 icc* | ifort*)
8289 lt_prog_compiler_wl='-Wl,'
8290 lt_prog_compiler_pic='-fPIC'
8291 lt_prog_compiler_static='-static'
8293 # Lahey Fortran 8.1.
8294 lf95*)
8295 lt_prog_compiler_wl='-Wl,'
8296 lt_prog_compiler_pic='--shared'
8297 lt_prog_compiler_static='--static'
8299 nagfor*)
8300 # NAG Fortran compiler
8301 lt_prog_compiler_wl='-Wl,-Wl,,'
8302 lt_prog_compiler_pic='-PIC'
8303 lt_prog_compiler_static='-Bstatic'
8305 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8306 # Portland Group compilers (*not* the Pentium gcc compiler,
8307 # which looks to be a dead project)
8308 lt_prog_compiler_wl='-Wl,'
8309 lt_prog_compiler_pic='-fpic'
8310 lt_prog_compiler_static='-Bstatic'
8312 ccc*)
8313 lt_prog_compiler_wl='-Wl,'
8314 # All Alpha code is PIC.
8315 lt_prog_compiler_static='-non_shared'
8317 xl* | bgxl* | bgf* | mpixl*)
8318 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8319 lt_prog_compiler_wl='-Wl,'
8320 lt_prog_compiler_pic='-qpic'
8321 lt_prog_compiler_static='-qstaticlink'
8324 case `$CC -V 2>&1 | sed 5q` in
8325 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8326 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8327 lt_prog_compiler_pic='-KPIC'
8328 lt_prog_compiler_static='-Bstatic'
8329 lt_prog_compiler_wl=''
8331 *Sun\ F* | *Sun*Fortran*)
8332 lt_prog_compiler_pic='-KPIC'
8333 lt_prog_compiler_static='-Bstatic'
8334 lt_prog_compiler_wl='-Qoption ld '
8336 *Sun\ C*)
8337 # Sun C 5.9
8338 lt_prog_compiler_pic='-KPIC'
8339 lt_prog_compiler_static='-Bstatic'
8340 lt_prog_compiler_wl='-Wl,'
8342 *Intel*\ [CF]*Compiler*)
8343 lt_prog_compiler_wl='-Wl,'
8344 lt_prog_compiler_pic='-fPIC'
8345 lt_prog_compiler_static='-static'
8347 *Portland\ Group*)
8348 lt_prog_compiler_wl='-Wl,'
8349 lt_prog_compiler_pic='-fpic'
8350 lt_prog_compiler_static='-Bstatic'
8352 esac
8354 esac
8357 newsos6)
8358 lt_prog_compiler_pic='-KPIC'
8359 lt_prog_compiler_static='-Bstatic'
8362 *nto* | *qnx*)
8363 # QNX uses GNU C++, but need to define -shared option too, otherwise
8364 # it will coredump.
8365 lt_prog_compiler_pic='-fPIC -shared'
8368 osf3* | osf4* | osf5*)
8369 lt_prog_compiler_wl='-Wl,'
8370 # All OSF/1 code is PIC.
8371 lt_prog_compiler_static='-non_shared'
8374 rdos*)
8375 lt_prog_compiler_static='-non_shared'
8378 solaris*)
8379 lt_prog_compiler_pic='-KPIC'
8380 lt_prog_compiler_static='-Bstatic'
8381 case $cc_basename in
8382 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8383 lt_prog_compiler_wl='-Qoption ld ';;
8385 lt_prog_compiler_wl='-Wl,';;
8386 esac
8389 sunos4*)
8390 lt_prog_compiler_wl='-Qoption ld '
8391 lt_prog_compiler_pic='-PIC'
8392 lt_prog_compiler_static='-Bstatic'
8395 sysv4 | sysv4.2uw2* | sysv4.3*)
8396 lt_prog_compiler_wl='-Wl,'
8397 lt_prog_compiler_pic='-KPIC'
8398 lt_prog_compiler_static='-Bstatic'
8401 sysv4*MP*)
8402 if test -d /usr/nec ;then
8403 lt_prog_compiler_pic='-Kconform_pic'
8404 lt_prog_compiler_static='-Bstatic'
8408 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8409 lt_prog_compiler_wl='-Wl,'
8410 lt_prog_compiler_pic='-KPIC'
8411 lt_prog_compiler_static='-Bstatic'
8414 unicos*)
8415 lt_prog_compiler_wl='-Wl,'
8416 lt_prog_compiler_can_build_shared=no
8419 uts4*)
8420 lt_prog_compiler_pic='-pic'
8421 lt_prog_compiler_static='-Bstatic'
8425 lt_prog_compiler_can_build_shared=no
8427 esac
8430 case $host_os in
8431 # For platforms which do not support PIC, -DPIC is meaningless:
8432 *djgpp*)
8433 lt_prog_compiler_pic=
8436 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8438 esac
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8441 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8442 if ${lt_cv_prog_compiler_pic+:} false; then :
8443 $as_echo_n "(cached) " >&6
8444 else
8445 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8448 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8449 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8452 # Check to make sure the PIC flag actually works.
8454 if test -n "$lt_prog_compiler_pic"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8456 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8457 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8458 $as_echo_n "(cached) " >&6
8459 else
8460 lt_cv_prog_compiler_pic_works=no
8461 ac_outfile=conftest.$ac_objext
8462 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8463 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8464 # Insert the option either (1) after the last *FLAGS variable, or
8465 # (2) before a word containing "conftest.", or (3) at the end.
8466 # Note that $ac_compile itself does not contain backslashes and begins
8467 # with a dollar sign (not a hyphen), so the echo should work correctly.
8468 # The option is referenced via a variable to avoid confusing sed.
8469 lt_compile=`echo "$ac_compile" | $SED \
8470 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8472 -e 's:$: $lt_compiler_flag:'`
8473 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8474 (eval "$lt_compile" 2>conftest.err)
8475 ac_status=$?
8476 cat conftest.err >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 if (exit $ac_status) && test -s "$ac_outfile"; then
8479 # The compiler can only warn and ignore the option if not recognized
8480 # So say no if there are warnings other than the usual output.
8481 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8482 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8483 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8484 lt_cv_prog_compiler_pic_works=yes
8487 $RM conftest*
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8491 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8493 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8494 case $lt_prog_compiler_pic in
8495 "" | " "*) ;;
8496 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8497 esac
8498 else
8499 lt_prog_compiler_pic=
8500 lt_prog_compiler_can_build_shared=no
8516 # Check to make sure the static flag actually works.
8518 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8520 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8521 if ${lt_cv_prog_compiler_static_works+:} false; then :
8522 $as_echo_n "(cached) " >&6
8523 else
8524 lt_cv_prog_compiler_static_works=no
8525 save_LDFLAGS="$LDFLAGS"
8526 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8527 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8528 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8529 # The linker can only warn and ignore the option if not recognized
8530 # So say no if there are warnings
8531 if test -s conftest.err; then
8532 # Append any errors to the config.log.
8533 cat conftest.err 1>&5
8534 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8536 if diff conftest.exp conftest.er2 >/dev/null; then
8537 lt_cv_prog_compiler_static_works=yes
8539 else
8540 lt_cv_prog_compiler_static_works=yes
8543 $RM -r conftest*
8544 LDFLAGS="$save_LDFLAGS"
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8548 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8550 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8552 else
8553 lt_prog_compiler_static=
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8563 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8564 if ${lt_cv_prog_compiler_c_o+:} false; then :
8565 $as_echo_n "(cached) " >&6
8566 else
8567 lt_cv_prog_compiler_c_o=no
8568 $RM -r conftest 2>/dev/null
8569 mkdir conftest
8570 cd conftest
8571 mkdir out
8572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8574 lt_compiler_flag="-o out/conftest2.$ac_objext"
8575 # Insert the option either (1) after the last *FLAGS variable, or
8576 # (2) before a word containing "conftest.", or (3) at the end.
8577 # Note that $ac_compile itself does not contain backslashes and begins
8578 # with a dollar sign (not a hyphen), so the echo should work correctly.
8579 lt_compile=`echo "$ac_compile" | $SED \
8580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8582 -e 's:$: $lt_compiler_flag:'`
8583 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8584 (eval "$lt_compile" 2>out/conftest.err)
8585 ac_status=$?
8586 cat out/conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8589 then
8590 # The compiler can only warn and ignore the option if not recognized
8591 # So say no if there are warnings
8592 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8593 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8594 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8595 lt_cv_prog_compiler_c_o=yes
8598 chmod u+w . 2>&5
8599 $RM conftest*
8600 # SGI C++ compiler will create directory out/ii_files/ for
8601 # template instantiation
8602 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8603 $RM out/* && rmdir out
8604 cd ..
8605 $RM -r conftest
8606 $RM conftest*
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8610 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8618 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8619 if ${lt_cv_prog_compiler_c_o+:} false; then :
8620 $as_echo_n "(cached) " >&6
8621 else
8622 lt_cv_prog_compiler_c_o=no
8623 $RM -r conftest 2>/dev/null
8624 mkdir conftest
8625 cd conftest
8626 mkdir out
8627 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8629 lt_compiler_flag="-o out/conftest2.$ac_objext"
8630 # Insert the option either (1) after the last *FLAGS variable, or
8631 # (2) before a word containing "conftest.", or (3) at the end.
8632 # Note that $ac_compile itself does not contain backslashes and begins
8633 # with a dollar sign (not a hyphen), so the echo should work correctly.
8634 lt_compile=`echo "$ac_compile" | $SED \
8635 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8636 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8637 -e 's:$: $lt_compiler_flag:'`
8638 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8639 (eval "$lt_compile" 2>out/conftest.err)
8640 ac_status=$?
8641 cat out/conftest.err >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8644 then
8645 # The compiler can only warn and ignore the option if not recognized
8646 # So say no if there are warnings
8647 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8648 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8649 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8650 lt_cv_prog_compiler_c_o=yes
8653 chmod u+w . 2>&5
8654 $RM conftest*
8655 # SGI C++ compiler will create directory out/ii_files/ for
8656 # template instantiation
8657 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8658 $RM out/* && rmdir out
8659 cd ..
8660 $RM -r conftest
8661 $RM conftest*
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8665 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8670 hard_links="nottested"
8671 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8672 # do not overwrite the value of need_locks provided by the user
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8674 $as_echo_n "checking if we can lock with hard links... " >&6; }
8675 hard_links=yes
8676 $RM conftest*
8677 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8678 touch conftest.a
8679 ln conftest.a conftest.b 2>&5 || hard_links=no
8680 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8682 $as_echo "$hard_links" >&6; }
8683 if test "$hard_links" = no; then
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8685 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8686 need_locks=warn
8688 else
8689 need_locks=no
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8698 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8700 runpath_var=
8701 allow_undefined_flag=
8702 always_export_symbols=no
8703 archive_cmds=
8704 archive_expsym_cmds=
8705 compiler_needs_object=no
8706 enable_shared_with_static_runtimes=no
8707 export_dynamic_flag_spec=
8708 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8709 hardcode_automatic=no
8710 hardcode_direct=no
8711 hardcode_direct_absolute=no
8712 hardcode_libdir_flag_spec=
8713 hardcode_libdir_separator=
8714 hardcode_minus_L=no
8715 hardcode_shlibpath_var=unsupported
8716 inherit_rpath=no
8717 link_all_deplibs=unknown
8718 module_cmds=
8719 module_expsym_cmds=
8720 old_archive_from_new_cmds=
8721 old_archive_from_expsyms_cmds=
8722 thread_safe_flag_spec=
8723 whole_archive_flag_spec=
8724 # include_expsyms should be a list of space-separated symbols to be *always*
8725 # included in the symbol list
8726 include_expsyms=
8727 # exclude_expsyms can be an extended regexp of symbols to exclude
8728 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8729 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8730 # as well as any symbol that contains `d'.
8731 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8732 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8733 # platforms (ab)use it in PIC code, but their linkers get confused if
8734 # the symbol is explicitly referenced. Since portable code cannot
8735 # rely on this symbol name, it's probably fine to never include it in
8736 # preloaded symbol tables.
8737 # Exclude shared library initialization/finalization symbols.
8738 extract_expsyms_cmds=
8740 case $host_os in
8741 cygwin* | mingw* | pw32* | cegcc*)
8742 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8743 # When not using gcc, we currently assume that we are using
8744 # Microsoft Visual C++.
8745 if test "$GCC" != yes; then
8746 with_gnu_ld=no
8749 interix*)
8750 # we just hope/assume this is gcc and not c89 (= MSVC++)
8751 with_gnu_ld=yes
8753 openbsd*)
8754 with_gnu_ld=no
8756 linux* | k*bsd*-gnu | gnu*)
8757 link_all_deplibs=no
8759 esac
8761 ld_shlibs=yes
8763 # On some targets, GNU ld is compatible enough with the native linker
8764 # that we're better off using the native interface for both.
8765 lt_use_gnu_ld_interface=no
8766 if test "$with_gnu_ld" = yes; then
8767 case $host_os in
8768 aix*)
8769 # The AIX port of GNU ld has always aspired to compatibility
8770 # with the native linker. However, as the warning in the GNU ld
8771 # block says, versions before 2.19.5* couldn't really create working
8772 # shared libraries, regardless of the interface used.
8773 case `$LD -v 2>&1` in
8774 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8775 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8776 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8778 lt_use_gnu_ld_interface=yes
8780 esac
8783 lt_use_gnu_ld_interface=yes
8785 esac
8788 if test "$lt_use_gnu_ld_interface" = yes; then
8789 # If archive_cmds runs LD, not CC, wlarc should be empty
8790 wlarc='${wl}'
8792 # Set some defaults for GNU ld with shared library support. These
8793 # are reset later if shared libraries are not supported. Putting them
8794 # here allows them to be overridden if necessary.
8795 runpath_var=LD_RUN_PATH
8796 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8797 export_dynamic_flag_spec='${wl}--export-dynamic'
8798 # ancient GNU ld didn't support --whole-archive et. al.
8799 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8800 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8801 else
8802 whole_archive_flag_spec=
8804 supports_anon_versioning=no
8805 case `$LD -v 2>&1` in
8806 *GNU\ gold*) supports_anon_versioning=yes ;;
8807 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8808 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8809 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8810 *\ 2.11.*) ;; # other 2.11 versions
8811 *) supports_anon_versioning=yes ;;
8812 esac
8814 # See if GNU ld supports shared libraries.
8815 case $host_os in
8816 aix[3-9]*)
8817 # On AIX/PPC, the GNU linker is very broken
8818 if test "$host_cpu" != ia64; then
8819 ld_shlibs=no
8820 cat <<_LT_EOF 1>&2
8822 *** Warning: the GNU linker, at least up to release 2.19, is reported
8823 *** to be unable to reliably create shared libraries on AIX.
8824 *** Therefore, libtool is disabling shared libraries support. If you
8825 *** really care for shared libraries, you may want to install binutils
8826 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8827 *** You will then need to restart the configuration process.
8829 _LT_EOF
8833 amigaos*)
8834 case $host_cpu in
8835 powerpc)
8836 # see comment about AmigaOS4 .so support
8837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8838 archive_expsym_cmds=''
8840 m68k)
8841 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)'
8842 hardcode_libdir_flag_spec='-L$libdir'
8843 hardcode_minus_L=yes
8845 esac
8848 beos*)
8849 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8850 allow_undefined_flag=unsupported
8851 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8852 # support --undefined. This deserves some investigation. FIXME
8853 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8854 else
8855 ld_shlibs=no
8859 cygwin* | mingw* | pw32* | cegcc*)
8860 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8861 # as there is no search path for DLLs.
8862 hardcode_libdir_flag_spec='-L$libdir'
8863 export_dynamic_flag_spec='${wl}--export-all-symbols'
8864 allow_undefined_flag=unsupported
8865 always_export_symbols=no
8866 enable_shared_with_static_runtimes=yes
8867 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8868 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8870 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8872 # If the export-symbols file already is a .def file (1st line
8873 # is EXPORTS), use it as is; otherwise, prepend...
8874 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8875 cp $export_symbols $output_objdir/$soname.def;
8876 else
8877 echo EXPORTS > $output_objdir/$soname.def;
8878 cat $export_symbols >> $output_objdir/$soname.def;
8880 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8881 else
8882 ld_shlibs=no
8886 haiku*)
8887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8888 link_all_deplibs=yes
8891 interix[3-9]*)
8892 hardcode_direct=no
8893 hardcode_shlibpath_var=no
8894 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8895 export_dynamic_flag_spec='${wl}-E'
8896 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8897 # Instead, shared libraries are loaded at an image base (0x10000000 by
8898 # default) and relocated if they conflict, which is a slow very memory
8899 # consuming and fragmenting process. To avoid this, we pick a random,
8900 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8901 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8902 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8903 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8906 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8907 tmp_diet=no
8908 if test "$host_os" = linux-dietlibc; then
8909 case $cc_basename in
8910 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8911 esac
8913 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8914 && test "$tmp_diet" = no
8915 then
8916 tmp_addflag=' $pic_flag'
8917 tmp_sharedflag='-shared'
8918 case $cc_basename,$host_cpu in
8919 pgcc*) # Portland Group C compiler
8920 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8921 tmp_addflag=' $pic_flag'
8923 pgf77* | pgf90* | pgf95* | pgfortran*)
8924 # Portland Group f77 and f90 compilers
8925 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8926 tmp_addflag=' $pic_flag -Mnomain' ;;
8927 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8928 tmp_addflag=' -i_dynamic' ;;
8929 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8930 tmp_addflag=' -i_dynamic -nofor_main' ;;
8931 ifc* | ifort*) # Intel Fortran compiler
8932 tmp_addflag=' -nofor_main' ;;
8933 lf95*) # Lahey Fortran 8.1
8934 whole_archive_flag_spec=
8935 tmp_sharedflag='--shared' ;;
8936 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8937 tmp_sharedflag='-qmkshrobj'
8938 tmp_addflag= ;;
8939 nvcc*) # Cuda Compiler Driver 2.2
8940 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8941 compiler_needs_object=yes
8943 esac
8944 case `$CC -V 2>&1 | sed 5q` in
8945 *Sun\ C*) # Sun C 5.9
8946 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8947 compiler_needs_object=yes
8948 tmp_sharedflag='-G' ;;
8949 *Sun\ F*) # Sun Fortran 8.3
8950 tmp_sharedflag='-G' ;;
8951 esac
8952 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8954 if test "x$supports_anon_versioning" = xyes; then
8955 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8956 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8957 echo "local: *; };" >> $output_objdir/$libname.ver~
8958 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8961 case $cc_basename in
8962 xlf* | bgf* | bgxlf* | mpixlf*)
8963 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8964 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8965 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8966 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8967 if test "x$supports_anon_versioning" = xyes; then
8968 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8969 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8970 echo "local: *; };" >> $output_objdir/$libname.ver~
8971 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8974 esac
8975 else
8976 ld_shlibs=no
8980 netbsd* | netbsdelf*-gnu)
8981 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8982 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8983 wlarc=
8984 else
8985 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8990 solaris*)
8991 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8992 ld_shlibs=no
8993 cat <<_LT_EOF 1>&2
8995 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8996 *** create shared libraries on Solaris systems. Therefore, libtool
8997 *** is disabling shared libraries support. We urge you to upgrade GNU
8998 *** binutils to release 2.9.1 or newer. Another option is to modify
8999 *** your PATH or compiler configuration so that the native linker is
9000 *** used, and then restart.
9002 _LT_EOF
9003 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9004 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9005 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9006 else
9007 ld_shlibs=no
9011 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9012 case `$LD -v 2>&1` in
9013 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9014 ld_shlibs=no
9015 cat <<_LT_EOF 1>&2
9017 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9018 *** reliably create shared libraries on SCO systems. Therefore, libtool
9019 *** is disabling shared libraries support. We urge you to upgrade GNU
9020 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9021 *** your PATH or compiler configuration so that the native linker is
9022 *** used, and then restart.
9024 _LT_EOF
9027 # For security reasons, it is highly recommended that you always
9028 # use absolute paths for naming shared libraries, and exclude the
9029 # DT_RUNPATH tag from executables and libraries. But doing so
9030 # requires that you compile everything twice, which is a pain.
9031 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9032 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9035 else
9036 ld_shlibs=no
9039 esac
9042 sunos4*)
9043 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9044 wlarc=
9045 hardcode_direct=yes
9046 hardcode_shlibpath_var=no
9050 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9051 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9052 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9053 else
9054 ld_shlibs=no
9057 esac
9059 if test "$ld_shlibs" = no; then
9060 runpath_var=
9061 hardcode_libdir_flag_spec=
9062 export_dynamic_flag_spec=
9063 whole_archive_flag_spec=
9065 else
9066 # PORTME fill in a description of your system's linker (not GNU ld)
9067 case $host_os in
9068 aix3*)
9069 allow_undefined_flag=unsupported
9070 always_export_symbols=yes
9071 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'
9072 # Note: this linker hardcodes the directories in LIBPATH if there
9073 # are no directories specified by -L.
9074 hardcode_minus_L=yes
9075 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9076 # Neither direct hardcoding nor static linking is supported with a
9077 # broken collect2.
9078 hardcode_direct=unsupported
9082 aix[4-9]*)
9083 if test "$host_cpu" = ia64; then
9084 # On IA64, the linker does run time linking by default, so we don't
9085 # have to do anything special.
9086 aix_use_runtimelinking=no
9087 exp_sym_flag='-Bexport'
9088 no_entry_flag=""
9089 else
9090 # If we're using GNU nm, then we don't want the "-C" option.
9091 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9092 # Also, AIX nm treats weak defined symbols like other global
9093 # defined symbols, whereas GNU nm marks them as "W".
9094 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9095 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9096 else
9097 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'
9099 aix_use_runtimelinking=no
9101 # Test if we are trying to use run time linking or normal
9102 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9103 # need to do runtime linking.
9104 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9105 for ld_flag in $LDFLAGS; do
9106 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9107 aix_use_runtimelinking=yes
9108 break
9110 done
9112 esac
9114 exp_sym_flag='-bexport'
9115 no_entry_flag='-bnoentry'
9118 # When large executables or shared objects are built, AIX ld can
9119 # have problems creating the table of contents. If linking a library
9120 # or program results in "error TOC overflow" add -mminimal-toc to
9121 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9122 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9124 archive_cmds=''
9125 hardcode_direct=yes
9126 hardcode_direct_absolute=yes
9127 hardcode_libdir_separator=':'
9128 link_all_deplibs=yes
9129 file_list_spec='${wl}-f,'
9131 if test "$GCC" = yes; then
9132 case $host_os in aix4.[012]|aix4.[012].*)
9133 # We only want to do this on AIX 4.2 and lower, the check
9134 # below for broken collect2 doesn't work under 4.3+
9135 collect2name=`${CC} -print-prog-name=collect2`
9136 if test -f "$collect2name" &&
9137 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9138 then
9139 # We have reworked collect2
9141 else
9142 # We have old collect2
9143 hardcode_direct=unsupported
9144 # It fails to find uninstalled libraries when the uninstalled
9145 # path is not listed in the libpath. Setting hardcode_minus_L
9146 # to unsupported forces relinking
9147 hardcode_minus_L=yes
9148 hardcode_libdir_flag_spec='-L$libdir'
9149 hardcode_libdir_separator=
9152 esac
9153 shared_flag='-shared'
9154 if test "$aix_use_runtimelinking" = yes; then
9155 shared_flag="$shared_flag "'${wl}-G'
9157 link_all_deplibs=no
9158 else
9159 # not using gcc
9160 if test "$host_cpu" = ia64; then
9161 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9162 # chokes on -Wl,-G. The following line is correct:
9163 shared_flag='-G'
9164 else
9165 if test "$aix_use_runtimelinking" = yes; then
9166 shared_flag='${wl}-G'
9167 else
9168 shared_flag='${wl}-bM:SRE'
9173 export_dynamic_flag_spec='${wl}-bexpall'
9174 # It seems that -bexpall does not export symbols beginning with
9175 # underscore (_), so it is better to generate a list of symbols to export.
9176 always_export_symbols=yes
9177 if test "$aix_use_runtimelinking" = yes; then
9178 # Warning - without using the other runtime loading flags (-brtl),
9179 # -berok will link without error, but may produce a broken library.
9180 allow_undefined_flag='-berok'
9181 # Determine the default libpath from the value encoded in an
9182 # empty executable.
9183 if test "${lt_cv_aix_libpath+set}" = set; then
9184 aix_libpath=$lt_cv_aix_libpath
9185 else
9186 if ${lt_cv_aix_libpath_+:} false; then :
9187 $as_echo_n "(cached) " >&6
9188 else
9189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9193 main ()
9197 return 0;
9199 _ACEOF
9200 if ac_fn_c_try_link "$LINENO"; then :
9202 lt_aix_libpath_sed='
9203 /Import File Strings/,/^$/ {
9204 /^0/ {
9205 s/^0 *\([^ ]*\) *$/\1/
9209 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9210 # Check for a 64-bit object if we didn't find anything.
9211 if test -z "$lt_cv_aix_libpath_"; then
9212 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9215 rm -f core conftest.err conftest.$ac_objext \
9216 conftest$ac_exeext conftest.$ac_ext
9217 if test -z "$lt_cv_aix_libpath_"; then
9218 lt_cv_aix_libpath_="/usr/lib:/lib"
9223 aix_libpath=$lt_cv_aix_libpath_
9226 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9227 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9228 else
9229 if test "$host_cpu" = ia64; then
9230 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9231 allow_undefined_flag="-z nodefs"
9232 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9233 else
9234 # Determine the default libpath from the value encoded in an
9235 # empty executable.
9236 if test "${lt_cv_aix_libpath+set}" = set; then
9237 aix_libpath=$lt_cv_aix_libpath
9238 else
9239 if ${lt_cv_aix_libpath_+:} false; then :
9240 $as_echo_n "(cached) " >&6
9241 else
9242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243 /* end confdefs.h. */
9246 main ()
9250 return 0;
9252 _ACEOF
9253 if ac_fn_c_try_link "$LINENO"; then :
9255 lt_aix_libpath_sed='
9256 /Import File Strings/,/^$/ {
9257 /^0/ {
9258 s/^0 *\([^ ]*\) *$/\1/
9262 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9263 # Check for a 64-bit object if we didn't find anything.
9264 if test -z "$lt_cv_aix_libpath_"; then
9265 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9268 rm -f core conftest.err conftest.$ac_objext \
9269 conftest$ac_exeext conftest.$ac_ext
9270 if test -z "$lt_cv_aix_libpath_"; then
9271 lt_cv_aix_libpath_="/usr/lib:/lib"
9276 aix_libpath=$lt_cv_aix_libpath_
9279 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9280 # Warning - without using the other run time loading flags,
9281 # -berok will link without error, but may produce a broken library.
9282 no_undefined_flag=' ${wl}-bernotok'
9283 allow_undefined_flag=' ${wl}-berok'
9284 if test "$with_gnu_ld" = yes; then
9285 # We only use this code for GNU lds that support --whole-archive.
9286 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9287 else
9288 # Exported symbols can be pulled into shared objects from archives
9289 whole_archive_flag_spec='$convenience'
9291 archive_cmds_need_lc=yes
9292 # This is similar to how AIX traditionally builds its shared libraries.
9293 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9298 amigaos*)
9299 case $host_cpu in
9300 powerpc)
9301 # see comment about AmigaOS4 .so support
9302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9303 archive_expsym_cmds=''
9305 m68k)
9306 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)'
9307 hardcode_libdir_flag_spec='-L$libdir'
9308 hardcode_minus_L=yes
9310 esac
9313 bsdi[45]*)
9314 export_dynamic_flag_spec=-rdynamic
9317 cygwin* | mingw* | pw32* | cegcc*)
9318 # When not using gcc, we currently assume that we are using
9319 # Microsoft Visual C++.
9320 # hardcode_libdir_flag_spec is actually meaningless, as there is
9321 # no search path for DLLs.
9322 case $cc_basename in
9323 cl*)
9324 # Native MSVC
9325 hardcode_libdir_flag_spec=' '
9326 allow_undefined_flag=unsupported
9327 always_export_symbols=yes
9328 file_list_spec='@'
9329 # Tell ltmain to make .lib files, not .a files.
9330 libext=lib
9331 # Tell ltmain to make .dll files, not .so files.
9332 shrext_cmds=".dll"
9333 # FIXME: Setting linknames here is a bad hack.
9334 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9335 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9336 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9337 else
9338 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9340 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9341 linknames='
9342 # The linker will not automatically build a static lib if we build a DLL.
9343 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9344 enable_shared_with_static_runtimes=yes
9345 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9346 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9347 # Don't use ranlib
9348 old_postinstall_cmds='chmod 644 $oldlib'
9349 postlink_cmds='lt_outputfile="@OUTPUT@"~
9350 lt_tool_outputfile="@TOOL_OUTPUT@"~
9351 case $lt_outputfile in
9352 *.exe|*.EXE) ;;
9354 lt_outputfile="$lt_outputfile.exe"
9355 lt_tool_outputfile="$lt_tool_outputfile.exe"
9357 esac~
9358 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9359 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9360 $RM "$lt_outputfile.manifest";
9364 # Assume MSVC wrapper
9365 hardcode_libdir_flag_spec=' '
9366 allow_undefined_flag=unsupported
9367 # Tell ltmain to make .lib files, not .a files.
9368 libext=lib
9369 # Tell ltmain to make .dll files, not .so files.
9370 shrext_cmds=".dll"
9371 # FIXME: Setting linknames here is a bad hack.
9372 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9373 # The linker will automatically build a .lib file if we build a DLL.
9374 old_archive_from_new_cmds='true'
9375 # FIXME: Should let the user specify the lib program.
9376 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9377 enable_shared_with_static_runtimes=yes
9379 esac
9382 darwin* | rhapsody*)
9385 archive_cmds_need_lc=no
9386 hardcode_direct=no
9387 hardcode_automatic=yes
9388 hardcode_shlibpath_var=unsupported
9389 if test "$lt_cv_ld_force_load" = "yes"; then
9390 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9392 else
9393 whole_archive_flag_spec=''
9395 link_all_deplibs=yes
9396 allow_undefined_flag="$_lt_dar_allow_undefined"
9397 case $cc_basename in
9398 ifort*) _lt_dar_can_shared=yes ;;
9399 *) _lt_dar_can_shared=$GCC ;;
9400 esac
9401 if test "$_lt_dar_can_shared" = "yes"; then
9402 output_verbose_link_cmd=func_echo_all
9403 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9404 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9405 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9406 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9408 else
9409 ld_shlibs=no
9414 dgux*)
9415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9416 hardcode_libdir_flag_spec='-L$libdir'
9417 hardcode_shlibpath_var=no
9420 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9421 # support. Future versions do this automatically, but an explicit c++rt0.o
9422 # does not break anything, and helps significantly (at the cost of a little
9423 # extra space).
9424 freebsd2.2*)
9425 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9426 hardcode_libdir_flag_spec='-R$libdir'
9427 hardcode_direct=yes
9428 hardcode_shlibpath_var=no
9431 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9432 freebsd2.*)
9433 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9434 hardcode_direct=yes
9435 hardcode_minus_L=yes
9436 hardcode_shlibpath_var=no
9439 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9440 freebsd* | dragonfly*)
9441 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9442 hardcode_libdir_flag_spec='-R$libdir'
9443 hardcode_direct=yes
9444 hardcode_shlibpath_var=no
9447 hpux9*)
9448 if test "$GCC" = yes; then
9449 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9450 else
9451 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'
9453 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9454 hardcode_libdir_separator=:
9455 hardcode_direct=yes
9457 # hardcode_minus_L: Not really in the search PATH,
9458 # but as the default location of the library.
9459 hardcode_minus_L=yes
9460 export_dynamic_flag_spec='${wl}-E'
9463 hpux10*)
9464 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9465 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9466 else
9467 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9469 if test "$with_gnu_ld" = no; then
9470 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9471 hardcode_libdir_separator=:
9472 hardcode_direct=yes
9473 hardcode_direct_absolute=yes
9474 export_dynamic_flag_spec='${wl}-E'
9475 # hardcode_minus_L: Not really in the search PATH,
9476 # but as the default location of the library.
9477 hardcode_minus_L=yes
9481 hpux11*)
9482 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9483 case $host_cpu in
9484 hppa*64*)
9485 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9487 ia64*)
9488 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9491 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9493 esac
9494 else
9495 case $host_cpu in
9496 hppa*64*)
9497 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9499 ia64*)
9500 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9504 # Older versions of the 11.00 compiler do not understand -b yet
9505 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9507 $as_echo_n "checking if $CC understands -b... " >&6; }
9508 if ${lt_cv_prog_compiler__b+:} false; then :
9509 $as_echo_n "(cached) " >&6
9510 else
9511 lt_cv_prog_compiler__b=no
9512 save_LDFLAGS="$LDFLAGS"
9513 LDFLAGS="$LDFLAGS -b"
9514 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9515 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9516 # The linker can only warn and ignore the option if not recognized
9517 # So say no if there are warnings
9518 if test -s conftest.err; then
9519 # Append any errors to the config.log.
9520 cat conftest.err 1>&5
9521 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9522 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9523 if diff conftest.exp conftest.er2 >/dev/null; then
9524 lt_cv_prog_compiler__b=yes
9526 else
9527 lt_cv_prog_compiler__b=yes
9530 $RM -r conftest*
9531 LDFLAGS="$save_LDFLAGS"
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9535 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9537 if test x"$lt_cv_prog_compiler__b" = xyes; then
9538 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9539 else
9540 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9544 esac
9546 if test "$with_gnu_ld" = no; then
9547 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9548 hardcode_libdir_separator=:
9550 case $host_cpu in
9551 hppa*64*|ia64*)
9552 hardcode_direct=no
9553 hardcode_shlibpath_var=no
9556 hardcode_direct=yes
9557 hardcode_direct_absolute=yes
9558 export_dynamic_flag_spec='${wl}-E'
9560 # hardcode_minus_L: Not really in the search PATH,
9561 # but as the default location of the library.
9562 hardcode_minus_L=yes
9564 esac
9568 irix5* | irix6* | nonstopux*)
9569 if test "$GCC" = yes; then
9570 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9571 # Try to use the -exported_symbol ld option, if it does not
9572 # work, assume that -exports_file does not work either and
9573 # implicitly export all symbols.
9574 # This should be the same for all languages, so no per-tag cache variable.
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9576 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9577 if ${lt_cv_irix_exported_symbol+:} false; then :
9578 $as_echo_n "(cached) " >&6
9579 else
9580 save_LDFLAGS="$LDFLAGS"
9581 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h. */
9584 int foo (void) { return 0; }
9585 _ACEOF
9586 if ac_fn_c_try_link "$LINENO"; then :
9587 lt_cv_irix_exported_symbol=yes
9588 else
9589 lt_cv_irix_exported_symbol=no
9591 rm -f core conftest.err conftest.$ac_objext \
9592 conftest$ac_exeext conftest.$ac_ext
9593 LDFLAGS="$save_LDFLAGS"
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9596 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9597 if test "$lt_cv_irix_exported_symbol" = yes; then
9598 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9600 else
9601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9602 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9604 archive_cmds_need_lc='no'
9605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9606 hardcode_libdir_separator=:
9607 inherit_rpath=yes
9608 link_all_deplibs=yes
9611 netbsd* | netbsdelf*-gnu)
9612 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9613 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9614 else
9615 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9617 hardcode_libdir_flag_spec='-R$libdir'
9618 hardcode_direct=yes
9619 hardcode_shlibpath_var=no
9622 newsos6)
9623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9624 hardcode_direct=yes
9625 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9626 hardcode_libdir_separator=:
9627 hardcode_shlibpath_var=no
9630 *nto* | *qnx*)
9633 openbsd*)
9634 if test -f /usr/libexec/ld.so; then
9635 hardcode_direct=yes
9636 hardcode_shlibpath_var=no
9637 hardcode_direct_absolute=yes
9638 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9639 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9640 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9641 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9642 export_dynamic_flag_spec='${wl}-E'
9643 else
9644 case $host_os in
9645 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9646 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9647 hardcode_libdir_flag_spec='-R$libdir'
9650 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9651 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9653 esac
9655 else
9656 ld_shlibs=no
9660 os2*)
9661 hardcode_libdir_flag_spec='-L$libdir'
9662 hardcode_minus_L=yes
9663 allow_undefined_flag=unsupported
9664 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'
9665 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9668 osf3*)
9669 if test "$GCC" = yes; then
9670 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9671 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9672 else
9673 allow_undefined_flag=' -expect_unresolved \*'
9674 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9676 archive_cmds_need_lc='no'
9677 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9678 hardcode_libdir_separator=:
9681 osf4* | osf5*) # as osf3* with the addition of -msym flag
9682 if test "$GCC" = yes; then
9683 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9684 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9686 else
9687 allow_undefined_flag=' -expect_unresolved \*'
9688 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9689 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9690 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9692 # Both c and cxx compiler support -rpath directly
9693 hardcode_libdir_flag_spec='-rpath $libdir'
9695 archive_cmds_need_lc='no'
9696 hardcode_libdir_separator=:
9699 solaris*)
9700 no_undefined_flag=' -z defs'
9701 if test "$GCC" = yes; then
9702 wlarc='${wl}'
9703 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9704 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9705 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9706 else
9707 case `$CC -V 2>&1` in
9708 *"Compilers 5.0"*)
9709 wlarc=''
9710 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9711 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9712 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9715 wlarc='${wl}'
9716 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9717 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9718 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9720 esac
9722 hardcode_libdir_flag_spec='-R$libdir'
9723 hardcode_shlibpath_var=no
9724 case $host_os in
9725 solaris2.[0-5] | solaris2.[0-5].*) ;;
9727 # The compiler driver will combine and reorder linker options,
9728 # but understands `-z linker_flag'. GCC discards it without `$wl',
9729 # but is careful enough not to reorder.
9730 # Supported since Solaris 2.6 (maybe 2.5.1?)
9731 if test "$GCC" = yes; then
9732 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9733 else
9734 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9737 esac
9738 link_all_deplibs=yes
9741 sunos4*)
9742 if test "x$host_vendor" = xsequent; then
9743 # Use $CC to link under sequent, because it throws in some extra .o
9744 # files that make .init and .fini sections work.
9745 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9746 else
9747 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9749 hardcode_libdir_flag_spec='-L$libdir'
9750 hardcode_direct=yes
9751 hardcode_minus_L=yes
9752 hardcode_shlibpath_var=no
9755 sysv4)
9756 case $host_vendor in
9757 sni)
9758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9759 hardcode_direct=yes # is this really true???
9761 siemens)
9762 ## LD is ld it makes a PLAMLIB
9763 ## CC just makes a GrossModule.
9764 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9765 reload_cmds='$CC -r -o $output$reload_objs'
9766 hardcode_direct=no
9768 motorola)
9769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9770 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9772 esac
9773 runpath_var='LD_RUN_PATH'
9774 hardcode_shlibpath_var=no
9777 sysv4.3*)
9778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9779 hardcode_shlibpath_var=no
9780 export_dynamic_flag_spec='-Bexport'
9783 sysv4*MP*)
9784 if test -d /usr/nec; then
9785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9786 hardcode_shlibpath_var=no
9787 runpath_var=LD_RUN_PATH
9788 hardcode_runpath_var=yes
9789 ld_shlibs=yes
9793 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9794 no_undefined_flag='${wl}-z,text'
9795 archive_cmds_need_lc=no
9796 hardcode_shlibpath_var=no
9797 runpath_var='LD_RUN_PATH'
9799 if test "$GCC" = yes; then
9800 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9801 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9802 else
9803 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9804 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9808 sysv5* | sco3.2v5* | sco5v6*)
9809 # Note: We can NOT use -z defs as we might desire, because we do not
9810 # link with -lc, and that would cause any symbols used from libc to
9811 # always be unresolved, which means just about no library would
9812 # ever link correctly. If we're not using GNU ld we use -z text
9813 # though, which does catch some bad symbols but isn't as heavy-handed
9814 # as -z defs.
9815 no_undefined_flag='${wl}-z,text'
9816 allow_undefined_flag='${wl}-z,nodefs'
9817 archive_cmds_need_lc=no
9818 hardcode_shlibpath_var=no
9819 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9820 hardcode_libdir_separator=':'
9821 link_all_deplibs=yes
9822 export_dynamic_flag_spec='${wl}-Bexport'
9823 runpath_var='LD_RUN_PATH'
9825 if test "$GCC" = yes; then
9826 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9827 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9828 else
9829 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9830 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9834 uts4*)
9835 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9836 hardcode_libdir_flag_spec='-L$libdir'
9837 hardcode_shlibpath_var=no
9841 ld_shlibs=no
9843 esac
9845 if test x$host_vendor = xsni; then
9846 case $host in
9847 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9848 export_dynamic_flag_spec='${wl}-Blargedynsym'
9850 esac
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9855 $as_echo "$ld_shlibs" >&6; }
9856 test "$ld_shlibs" = no && can_build_shared=no
9858 with_gnu_ld=$with_gnu_ld
9875 # Do we need to explicitly link libc?
9877 case "x$archive_cmds_need_lc" in
9878 x|xyes)
9879 # Assume -lc should be added
9880 archive_cmds_need_lc=yes
9882 if test "$enable_shared" = yes && test "$GCC" = yes; then
9883 case $archive_cmds in
9884 *'~'*)
9885 # FIXME: we may have to deal with multi-command sequences.
9887 '$CC '*)
9888 # Test whether the compiler implicitly links with -lc since on some
9889 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9890 # to ld, don't add -lc before -lgcc.
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9892 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9893 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9894 $as_echo_n "(cached) " >&6
9895 else
9896 $RM conftest*
9897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9900 (eval $ac_compile) 2>&5
9901 ac_status=$?
9902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9903 test $ac_status = 0; } 2>conftest.err; then
9904 soname=conftest
9905 lib=conftest
9906 libobjs=conftest.$ac_objext
9907 deplibs=
9908 wl=$lt_prog_compiler_wl
9909 pic_flag=$lt_prog_compiler_pic
9910 compiler_flags=-v
9911 linker_flags=-v
9912 verstring=
9913 output_objdir=.
9914 libname=conftest
9915 lt_save_allow_undefined_flag=$allow_undefined_flag
9916 allow_undefined_flag=
9917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9918 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9919 ac_status=$?
9920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9921 test $ac_status = 0; }
9922 then
9923 lt_cv_archive_cmds_need_lc=no
9924 else
9925 lt_cv_archive_cmds_need_lc=yes
9927 allow_undefined_flag=$lt_save_allow_undefined_flag
9928 else
9929 cat conftest.err 1>&5
9931 $RM conftest*
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9935 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9936 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9938 esac
9941 esac
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10095 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10097 if test "$GCC" = yes; then
10098 case $host_os in
10099 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10100 *) lt_awk_arg="/^libraries:/" ;;
10101 esac
10102 case $host_os in
10103 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10104 *) lt_sed_strip_eq="s,=/,/,g" ;;
10105 esac
10106 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10107 case $lt_search_path_spec in
10108 *\;*)
10109 # if the path contains ";" then we assume it to be the separator
10110 # otherwise default to the standard path separator (i.e. ":") - it is
10111 # assumed that no part of a normal pathname contains ";" but that should
10112 # okay in the real world where ";" in dirpaths is itself problematic.
10113 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10116 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10118 esac
10119 # Ok, now we have the path, separated by spaces, we can step through it
10120 # and add multilib dir if necessary.
10121 lt_tmp_lt_search_path_spec=
10122 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10123 for lt_sys_path in $lt_search_path_spec; do
10124 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10125 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10126 else
10127 test -d "$lt_sys_path" && \
10128 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10130 done
10131 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10132 BEGIN {RS=" "; FS="/|\n";} {
10133 lt_foo="";
10134 lt_count=0;
10135 for (lt_i = NF; lt_i > 0; lt_i--) {
10136 if ($lt_i != "" && $lt_i != ".") {
10137 if ($lt_i == "..") {
10138 lt_count++;
10139 } else {
10140 if (lt_count == 0) {
10141 lt_foo="/" $lt_i lt_foo;
10142 } else {
10143 lt_count--;
10148 if (lt_foo != "") { lt_freq[lt_foo]++; }
10149 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10151 # AWK program above erroneously prepends '/' to C:/dos/paths
10152 # for these hosts.
10153 case $host_os in
10154 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10155 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10156 esac
10157 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10158 else
10159 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10161 library_names_spec=
10162 libname_spec='lib$name'
10163 soname_spec=
10164 shrext_cmds=".so"
10165 postinstall_cmds=
10166 postuninstall_cmds=
10167 finish_cmds=
10168 finish_eval=
10169 shlibpath_var=
10170 shlibpath_overrides_runpath=unknown
10171 version_type=none
10172 dynamic_linker="$host_os ld.so"
10173 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10174 need_lib_prefix=unknown
10175 hardcode_into_libs=no
10177 # when you set need_version to no, make sure it does not cause -set_version
10178 # flags to be left without arguments
10179 need_version=unknown
10181 case $host_os in
10182 aix3*)
10183 version_type=linux # correct to gnu/linux during the next big refactor
10184 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10185 shlibpath_var=LIBPATH
10187 # AIX 3 has no versioning support, so we append a major version to the name.
10188 soname_spec='${libname}${release}${shared_ext}$major'
10191 aix[4-9]*)
10192 version_type=linux # correct to gnu/linux during the next big refactor
10193 need_lib_prefix=no
10194 need_version=no
10195 hardcode_into_libs=yes
10196 if test "$host_cpu" = ia64; then
10197 # AIX 5 supports IA64
10198 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10199 shlibpath_var=LD_LIBRARY_PATH
10200 else
10201 # With GCC up to 2.95.x, collect2 would create an import file
10202 # for dependence libraries. The import file would start with
10203 # the line `#! .'. This would cause the generated library to
10204 # depend on `.', always an invalid library. This was fixed in
10205 # development snapshots of GCC prior to 3.0.
10206 case $host_os in
10207 aix4 | aix4.[01] | aix4.[01].*)
10208 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10209 echo ' yes '
10210 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10212 else
10213 can_build_shared=no
10216 esac
10217 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10218 # soname into executable. Probably we can add versioning support to
10219 # collect2, so additional links can be useful in future.
10220 if test "$aix_use_runtimelinking" = yes; then
10221 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10222 # instead of lib<name>.a to let people know that these are not
10223 # typical AIX shared libraries.
10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10225 else
10226 # We preserve .a as extension for shared libraries through AIX4.2
10227 # and later when we are not doing run time linking.
10228 library_names_spec='${libname}${release}.a $libname.a'
10229 soname_spec='${libname}${release}${shared_ext}$major'
10231 shlibpath_var=LIBPATH
10235 amigaos*)
10236 case $host_cpu in
10237 powerpc)
10238 # Since July 2007 AmigaOS4 officially supports .so libraries.
10239 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10242 m68k)
10243 library_names_spec='$libname.ixlibrary $libname.a'
10244 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10245 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10247 esac
10250 beos*)
10251 library_names_spec='${libname}${shared_ext}'
10252 dynamic_linker="$host_os ld.so"
10253 shlibpath_var=LIBRARY_PATH
10256 bsdi[45]*)
10257 version_type=linux # correct to gnu/linux during the next big refactor
10258 need_version=no
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10260 soname_spec='${libname}${release}${shared_ext}$major'
10261 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10262 shlibpath_var=LD_LIBRARY_PATH
10263 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10264 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10265 # the default ld.so.conf also contains /usr/contrib/lib and
10266 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10267 # libtool to hard-code these into programs
10270 cygwin* | mingw* | pw32* | cegcc*)
10271 version_type=windows
10272 shrext_cmds=".dll"
10273 need_version=no
10274 need_lib_prefix=no
10276 case $GCC,$cc_basename in
10277 yes,*)
10278 # gcc
10279 library_names_spec='$libname.dll.a'
10280 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10281 postinstall_cmds='base_file=`basename \${file}`~
10282 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10283 dldir=$destdir/`dirname \$dlpath`~
10284 test -d \$dldir || mkdir -p \$dldir~
10285 $install_prog $dir/$dlname \$dldir/$dlname~
10286 chmod a+x \$dldir/$dlname~
10287 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10288 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10290 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10291 dlpath=$dir/\$dldll~
10292 $RM \$dlpath'
10293 shlibpath_overrides_runpath=yes
10295 case $host_os in
10296 cygwin*)
10297 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10298 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10300 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10302 mingw* | cegcc*)
10303 # MinGW DLLs use traditional 'lib' prefix
10304 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10306 pw32*)
10307 # pw32 DLLs use 'pw' prefix rather than 'lib'
10308 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10310 esac
10311 dynamic_linker='Win32 ld.exe'
10314 *,cl*)
10315 # Native MSVC
10316 libname_spec='$name'
10317 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10318 library_names_spec='${libname}.dll.lib'
10320 case $build_os in
10321 mingw*)
10322 sys_lib_search_path_spec=
10323 lt_save_ifs=$IFS
10324 IFS=';'
10325 for lt_path in $LIB
10327 IFS=$lt_save_ifs
10328 # Let DOS variable expansion print the short 8.3 style file name.
10329 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10330 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10331 done
10332 IFS=$lt_save_ifs
10333 # Convert to MSYS style.
10334 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10336 cygwin*)
10337 # Convert to unix form, then to dos form, then back to unix form
10338 # but this time dos style (no spaces!) so that the unix form looks
10339 # like /cygdrive/c/PROGRA~1:/cygdr...
10340 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10341 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10342 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10345 sys_lib_search_path_spec="$LIB"
10346 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10347 # It is most probably a Windows format PATH.
10348 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10349 else
10350 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10352 # FIXME: find the short name or the path components, as spaces are
10353 # common. (e.g. "Program Files" -> "PROGRA~1")
10355 esac
10357 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10358 postinstall_cmds='base_file=`basename \${file}`~
10359 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10360 dldir=$destdir/`dirname \$dlpath`~
10361 test -d \$dldir || mkdir -p \$dldir~
10362 $install_prog $dir/$dlname \$dldir/$dlname'
10363 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10364 dlpath=$dir/\$dldll~
10365 $RM \$dlpath'
10366 shlibpath_overrides_runpath=yes
10367 dynamic_linker='Win32 link.exe'
10371 # Assume MSVC wrapper
10372 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10373 dynamic_linker='Win32 ld.exe'
10375 esac
10376 # FIXME: first we should search . and the directory the executable is in
10377 shlibpath_var=PATH
10380 darwin* | rhapsody*)
10381 dynamic_linker="$host_os dyld"
10382 version_type=darwin
10383 need_lib_prefix=no
10384 need_version=no
10385 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10386 soname_spec='${libname}${release}${major}$shared_ext'
10387 shlibpath_overrides_runpath=yes
10388 shlibpath_var=DYLD_LIBRARY_PATH
10389 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10391 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10392 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10395 dgux*)
10396 version_type=linux # correct to gnu/linux during the next big refactor
10397 need_lib_prefix=no
10398 need_version=no
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 shlibpath_var=LD_LIBRARY_PATH
10404 freebsd* | dragonfly*)
10405 # DragonFly does not have aout. When/if they implement a new
10406 # versioning mechanism, adjust this.
10407 if test -x /usr/bin/objformat; then
10408 objformat=`/usr/bin/objformat`
10409 else
10410 case $host_os in
10411 freebsd[23].*) objformat=aout ;;
10412 *) objformat=elf ;;
10413 esac
10415 version_type=freebsd-$objformat
10416 case $version_type in
10417 freebsd-elf*)
10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10419 need_version=no
10420 need_lib_prefix=no
10422 freebsd-*)
10423 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10424 need_version=yes
10426 esac
10427 shlibpath_var=LD_LIBRARY_PATH
10428 case $host_os in
10429 freebsd2.*)
10430 shlibpath_overrides_runpath=yes
10432 freebsd3.[01]* | freebsdelf3.[01]*)
10433 shlibpath_overrides_runpath=yes
10434 hardcode_into_libs=yes
10436 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10437 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10438 shlibpath_overrides_runpath=no
10439 hardcode_into_libs=yes
10441 *) # from 4.6 on, and DragonFly
10442 shlibpath_overrides_runpath=yes
10443 hardcode_into_libs=yes
10445 esac
10448 haiku*)
10449 version_type=linux # correct to gnu/linux during the next big refactor
10450 need_lib_prefix=no
10451 need_version=no
10452 dynamic_linker="$host_os runtime_loader"
10453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10454 soname_spec='${libname}${release}${shared_ext}$major'
10455 shlibpath_var=LIBRARY_PATH
10456 shlibpath_overrides_runpath=yes
10457 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10458 hardcode_into_libs=yes
10461 hpux9* | hpux10* | hpux11*)
10462 # Give a soname corresponding to the major version so that dld.sl refuses to
10463 # link against other versions.
10464 version_type=sunos
10465 need_lib_prefix=no
10466 need_version=no
10467 case $host_cpu in
10468 ia64*)
10469 shrext_cmds='.so'
10470 hardcode_into_libs=yes
10471 dynamic_linker="$host_os dld.so"
10472 shlibpath_var=LD_LIBRARY_PATH
10473 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475 soname_spec='${libname}${release}${shared_ext}$major'
10476 if test "X$HPUX_IA64_MODE" = X32; then
10477 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10478 else
10479 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10481 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10483 hppa*64*)
10484 shrext_cmds='.sl'
10485 hardcode_into_libs=yes
10486 dynamic_linker="$host_os dld.sl"
10487 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10488 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490 soname_spec='${libname}${release}${shared_ext}$major'
10491 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10492 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10495 shrext_cmds='.sl'
10496 dynamic_linker="$host_os dld.sl"
10497 shlibpath_var=SHLIB_PATH
10498 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500 soname_spec='${libname}${release}${shared_ext}$major'
10502 esac
10503 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10504 postinstall_cmds='chmod 555 $lib'
10505 # or fails outright, so override atomically:
10506 install_override_mode=555
10509 interix[3-9]*)
10510 version_type=linux # correct to gnu/linux during the next big refactor
10511 need_lib_prefix=no
10512 need_version=no
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10514 soname_spec='${libname}${release}${shared_ext}$major'
10515 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10516 shlibpath_var=LD_LIBRARY_PATH
10517 shlibpath_overrides_runpath=no
10518 hardcode_into_libs=yes
10521 irix5* | irix6* | nonstopux*)
10522 case $host_os in
10523 nonstopux*) version_type=nonstopux ;;
10525 if test "$lt_cv_prog_gnu_ld" = yes; then
10526 version_type=linux # correct to gnu/linux during the next big refactor
10527 else
10528 version_type=irix
10529 fi ;;
10530 esac
10531 need_lib_prefix=no
10532 need_version=no
10533 soname_spec='${libname}${release}${shared_ext}$major'
10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10535 case $host_os in
10536 irix5* | nonstopux*)
10537 libsuff= shlibsuff=
10540 case $LD in # libtool.m4 will add one of these switches to LD
10541 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10542 libsuff= shlibsuff= libmagic=32-bit;;
10543 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10544 libsuff=32 shlibsuff=N32 libmagic=N32;;
10545 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10546 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10547 *) libsuff= shlibsuff= libmagic=never-match;;
10548 esac
10550 esac
10551 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10552 shlibpath_overrides_runpath=no
10553 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10554 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10555 hardcode_into_libs=yes
10558 # No shared lib support for Linux oldld, aout, or coff.
10559 linux*oldld* | linux*aout* | linux*coff*)
10560 dynamic_linker=no
10563 # This must be glibc/ELF.
10564 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10565 version_type=linux # correct to gnu/linux during the next big refactor
10566 need_lib_prefix=no
10567 need_version=no
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10569 soname_spec='${libname}${release}${shared_ext}$major'
10570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10571 shlibpath_var=LD_LIBRARY_PATH
10572 shlibpath_overrides_runpath=no
10574 # Some binutils ld are patched to set DT_RUNPATH
10575 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10576 $as_echo_n "(cached) " >&6
10577 else
10578 lt_cv_shlibpath_overrides_runpath=no
10579 save_LDFLAGS=$LDFLAGS
10580 save_libdir=$libdir
10581 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10582 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10587 main ()
10591 return 0;
10593 _ACEOF
10594 if ac_fn_c_try_link "$LINENO"; then :
10595 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10596 lt_cv_shlibpath_overrides_runpath=yes
10599 rm -f core conftest.err conftest.$ac_objext \
10600 conftest$ac_exeext conftest.$ac_ext
10601 LDFLAGS=$save_LDFLAGS
10602 libdir=$save_libdir
10606 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10608 # This implies no fast_install, which is unacceptable.
10609 # Some rework will be needed to allow for fast_install
10610 # before this can be enabled.
10611 hardcode_into_libs=yes
10613 # Append ld.so.conf contents to the search path
10614 if test -f /etc/ld.so.conf; then
10615 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10616 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10619 # We used to test for /lib/ld.so.1 and disable shared libraries on
10620 # powerpc, because MkLinux only supported shared libraries with the
10621 # GNU dynamic linker. Since this was broken with cross compilers,
10622 # most powerpc-linux boxes support dynamic linking these days and
10623 # people can always --disable-shared, the test was removed, and we
10624 # assume the GNU/Linux dynamic linker is in use.
10625 dynamic_linker='GNU/Linux ld.so'
10628 netbsdelf*-gnu)
10629 version_type=linux
10630 need_lib_prefix=no
10631 need_version=no
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10633 soname_spec='${libname}${release}${shared_ext}$major'
10634 shlibpath_var=LD_LIBRARY_PATH
10635 shlibpath_overrides_runpath=no
10636 hardcode_into_libs=yes
10637 dynamic_linker='NetBSD ld.elf_so'
10640 netbsd*)
10641 version_type=sunos
10642 need_lib_prefix=no
10643 need_version=no
10644 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10647 dynamic_linker='NetBSD (a.out) ld.so'
10648 else
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10650 soname_spec='${libname}${release}${shared_ext}$major'
10651 dynamic_linker='NetBSD ld.elf_so'
10653 shlibpath_var=LD_LIBRARY_PATH
10654 shlibpath_overrides_runpath=yes
10655 hardcode_into_libs=yes
10658 newsos6)
10659 version_type=linux # correct to gnu/linux during the next big refactor
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661 shlibpath_var=LD_LIBRARY_PATH
10662 shlibpath_overrides_runpath=yes
10665 *nto* | *qnx*)
10666 version_type=qnx
10667 need_lib_prefix=no
10668 need_version=no
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10670 soname_spec='${libname}${release}${shared_ext}$major'
10671 shlibpath_var=LD_LIBRARY_PATH
10672 shlibpath_overrides_runpath=no
10673 hardcode_into_libs=yes
10674 dynamic_linker='ldqnx.so'
10677 openbsd*)
10678 version_type=sunos
10679 sys_lib_dlsearch_path_spec="/usr/lib"
10680 need_lib_prefix=no
10681 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10682 case $host_os in
10683 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10684 *) need_version=no ;;
10685 esac
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10688 shlibpath_var=LD_LIBRARY_PATH
10689 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10690 case $host_os in
10691 openbsd2.[89] | openbsd2.[89].*)
10692 shlibpath_overrides_runpath=no
10695 shlibpath_overrides_runpath=yes
10697 esac
10698 else
10699 shlibpath_overrides_runpath=yes
10703 os2*)
10704 libname_spec='$name'
10705 shrext_cmds=".dll"
10706 need_lib_prefix=no
10707 library_names_spec='$libname${shared_ext} $libname.a'
10708 dynamic_linker='OS/2 ld.exe'
10709 shlibpath_var=LIBPATH
10712 osf3* | osf4* | osf5*)
10713 version_type=osf
10714 need_lib_prefix=no
10715 need_version=no
10716 soname_spec='${libname}${release}${shared_ext}$major'
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718 shlibpath_var=LD_LIBRARY_PATH
10719 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10720 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10723 rdos*)
10724 dynamic_linker=no
10727 solaris*)
10728 version_type=linux # correct to gnu/linux during the next big refactor
10729 need_lib_prefix=no
10730 need_version=no
10731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10732 soname_spec='${libname}${release}${shared_ext}$major'
10733 shlibpath_var=LD_LIBRARY_PATH
10734 shlibpath_overrides_runpath=yes
10735 hardcode_into_libs=yes
10736 # ldd complains unless libraries are executable
10737 postinstall_cmds='chmod +x $lib'
10740 sunos4*)
10741 version_type=sunos
10742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10743 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10744 shlibpath_var=LD_LIBRARY_PATH
10745 shlibpath_overrides_runpath=yes
10746 if test "$with_gnu_ld" = yes; then
10747 need_lib_prefix=no
10749 need_version=yes
10752 sysv4 | sysv4.3*)
10753 version_type=linux # correct to gnu/linux during the next big refactor
10754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10755 soname_spec='${libname}${release}${shared_ext}$major'
10756 shlibpath_var=LD_LIBRARY_PATH
10757 case $host_vendor in
10758 sni)
10759 shlibpath_overrides_runpath=no
10760 need_lib_prefix=no
10761 runpath_var=LD_RUN_PATH
10763 siemens)
10764 need_lib_prefix=no
10766 motorola)
10767 need_lib_prefix=no
10768 need_version=no
10769 shlibpath_overrides_runpath=no
10770 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10772 esac
10775 sysv4*MP*)
10776 if test -d /usr/nec ;then
10777 version_type=linux # correct to gnu/linux during the next big refactor
10778 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10779 soname_spec='$libname${shared_ext}.$major'
10780 shlibpath_var=LD_LIBRARY_PATH
10784 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10785 version_type=freebsd-elf
10786 need_lib_prefix=no
10787 need_version=no
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10789 soname_spec='${libname}${release}${shared_ext}$major'
10790 shlibpath_var=LD_LIBRARY_PATH
10791 shlibpath_overrides_runpath=yes
10792 hardcode_into_libs=yes
10793 if test "$with_gnu_ld" = yes; then
10794 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10795 else
10796 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10797 case $host_os in
10798 sco3.2v5*)
10799 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10801 esac
10803 sys_lib_dlsearch_path_spec='/usr/lib'
10806 tpf*)
10807 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10808 version_type=linux # correct to gnu/linux during the next big refactor
10809 need_lib_prefix=no
10810 need_version=no
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812 shlibpath_var=LD_LIBRARY_PATH
10813 shlibpath_overrides_runpath=no
10814 hardcode_into_libs=yes
10817 uts4*)
10818 version_type=linux # correct to gnu/linux during the next big refactor
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820 soname_spec='${libname}${release}${shared_ext}$major'
10821 shlibpath_var=LD_LIBRARY_PATH
10825 dynamic_linker=no
10827 esac
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10829 $as_echo "$dynamic_linker" >&6; }
10830 test "$dynamic_linker" = no && can_build_shared=no
10832 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10833 if test "$GCC" = yes; then
10834 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10837 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10838 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10840 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10841 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10936 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10937 hardcode_action=
10938 if test -n "$hardcode_libdir_flag_spec" ||
10939 test -n "$runpath_var" ||
10940 test "X$hardcode_automatic" = "Xyes" ; then
10942 # We can hardcode non-existent directories.
10943 if test "$hardcode_direct" != no &&
10944 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10945 # have to relink, otherwise we might link with an installed library
10946 # when we should be linking with a yet-to-be-installed one
10947 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10948 test "$hardcode_minus_L" != no; then
10949 # Linking always hardcodes the temporary library directory.
10950 hardcode_action=relink
10951 else
10952 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10953 hardcode_action=immediate
10955 else
10956 # We cannot hardcode anything, or else we can only hardcode existing
10957 # directories.
10958 hardcode_action=unsupported
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10961 $as_echo "$hardcode_action" >&6; }
10963 if test "$hardcode_action" = relink ||
10964 test "$inherit_rpath" = yes; then
10965 # Fast installation is not supported
10966 enable_fast_install=no
10967 elif test "$shlibpath_overrides_runpath" = yes ||
10968 test "$enable_shared" = no; then
10969 # Fast installation is not necessary
10970 enable_fast_install=needless
10978 if test "x$enable_dlopen" != xyes; then
10979 enable_dlopen=unknown
10980 enable_dlopen_self=unknown
10981 enable_dlopen_self_static=unknown
10982 else
10983 lt_cv_dlopen=no
10984 lt_cv_dlopen_libs=
10986 case $host_os in
10987 beos*)
10988 lt_cv_dlopen="load_add_on"
10989 lt_cv_dlopen_libs=
10990 lt_cv_dlopen_self=yes
10993 mingw* | pw32* | cegcc*)
10994 lt_cv_dlopen="LoadLibrary"
10995 lt_cv_dlopen_libs=
10998 cygwin*)
10999 lt_cv_dlopen="dlopen"
11000 lt_cv_dlopen_libs=
11003 darwin*)
11004 # if libdl is installed we need to link against it
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11006 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11007 if ${ac_cv_lib_dl_dlopen+:} false; then :
11008 $as_echo_n "(cached) " >&6
11009 else
11010 ac_check_lib_save_LIBS=$LIBS
11011 LIBS="-ldl $LIBS"
11012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11013 /* end confdefs.h. */
11015 /* Override any GCC internal prototype to avoid an error.
11016 Use char because int might match the return type of a GCC
11017 builtin and then its argument prototype would still apply. */
11018 #ifdef __cplusplus
11019 extern "C"
11020 #endif
11021 char dlopen ();
11023 main ()
11025 return dlopen ();
11027 return 0;
11029 _ACEOF
11030 if ac_fn_c_try_link "$LINENO"; then :
11031 ac_cv_lib_dl_dlopen=yes
11032 else
11033 ac_cv_lib_dl_dlopen=no
11035 rm -f core conftest.err conftest.$ac_objext \
11036 conftest$ac_exeext conftest.$ac_ext
11037 LIBS=$ac_check_lib_save_LIBS
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11040 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11041 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11042 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11043 else
11045 lt_cv_dlopen="dyld"
11046 lt_cv_dlopen_libs=
11047 lt_cv_dlopen_self=yes
11054 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11055 if test "x$ac_cv_func_shl_load" = xyes; then :
11056 lt_cv_dlopen="shl_load"
11057 else
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11059 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11060 if ${ac_cv_lib_dld_shl_load+:} false; then :
11061 $as_echo_n "(cached) " >&6
11062 else
11063 ac_check_lib_save_LIBS=$LIBS
11064 LIBS="-ldld $LIBS"
11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h. */
11068 /* Override any GCC internal prototype to avoid an error.
11069 Use char because int might match the return type of a GCC
11070 builtin and then its argument prototype would still apply. */
11071 #ifdef __cplusplus
11072 extern "C"
11073 #endif
11074 char shl_load ();
11076 main ()
11078 return shl_load ();
11080 return 0;
11082 _ACEOF
11083 if ac_fn_c_try_link "$LINENO"; then :
11084 ac_cv_lib_dld_shl_load=yes
11085 else
11086 ac_cv_lib_dld_shl_load=no
11088 rm -f core conftest.err conftest.$ac_objext \
11089 conftest$ac_exeext conftest.$ac_ext
11090 LIBS=$ac_check_lib_save_LIBS
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11093 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11094 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11095 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11096 else
11097 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11098 if test "x$ac_cv_func_dlopen" = xyes; then :
11099 lt_cv_dlopen="dlopen"
11100 else
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11102 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11103 if ${ac_cv_lib_dl_dlopen+:} false; then :
11104 $as_echo_n "(cached) " >&6
11105 else
11106 ac_check_lib_save_LIBS=$LIBS
11107 LIBS="-ldl $LIBS"
11108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11109 /* end confdefs.h. */
11111 /* Override any GCC internal prototype to avoid an error.
11112 Use char because int might match the return type of a GCC
11113 builtin and then its argument prototype would still apply. */
11114 #ifdef __cplusplus
11115 extern "C"
11116 #endif
11117 char dlopen ();
11119 main ()
11121 return dlopen ();
11123 return 0;
11125 _ACEOF
11126 if ac_fn_c_try_link "$LINENO"; then :
11127 ac_cv_lib_dl_dlopen=yes
11128 else
11129 ac_cv_lib_dl_dlopen=no
11131 rm -f core conftest.err conftest.$ac_objext \
11132 conftest$ac_exeext conftest.$ac_ext
11133 LIBS=$ac_check_lib_save_LIBS
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11136 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11137 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11138 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11139 else
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11141 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11142 if ${ac_cv_lib_svld_dlopen+:} false; then :
11143 $as_echo_n "(cached) " >&6
11144 else
11145 ac_check_lib_save_LIBS=$LIBS
11146 LIBS="-lsvld $LIBS"
11147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11148 /* end confdefs.h. */
11150 /* Override any GCC internal prototype to avoid an error.
11151 Use char because int might match the return type of a GCC
11152 builtin and then its argument prototype would still apply. */
11153 #ifdef __cplusplus
11154 extern "C"
11155 #endif
11156 char dlopen ();
11158 main ()
11160 return dlopen ();
11162 return 0;
11164 _ACEOF
11165 if ac_fn_c_try_link "$LINENO"; then :
11166 ac_cv_lib_svld_dlopen=yes
11167 else
11168 ac_cv_lib_svld_dlopen=no
11170 rm -f core conftest.err conftest.$ac_objext \
11171 conftest$ac_exeext conftest.$ac_ext
11172 LIBS=$ac_check_lib_save_LIBS
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11175 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11176 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11177 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11178 else
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11180 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11181 if ${ac_cv_lib_dld_dld_link+:} false; then :
11182 $as_echo_n "(cached) " >&6
11183 else
11184 ac_check_lib_save_LIBS=$LIBS
11185 LIBS="-ldld $LIBS"
11186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187 /* end confdefs.h. */
11189 /* Override any GCC internal prototype to avoid an error.
11190 Use char because int might match the return type of a GCC
11191 builtin and then its argument prototype would still apply. */
11192 #ifdef __cplusplus
11193 extern "C"
11194 #endif
11195 char dld_link ();
11197 main ()
11199 return dld_link ();
11201 return 0;
11203 _ACEOF
11204 if ac_fn_c_try_link "$LINENO"; then :
11205 ac_cv_lib_dld_dld_link=yes
11206 else
11207 ac_cv_lib_dld_dld_link=no
11209 rm -f core conftest.err conftest.$ac_objext \
11210 conftest$ac_exeext conftest.$ac_ext
11211 LIBS=$ac_check_lib_save_LIBS
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11214 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11215 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11216 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11235 esac
11237 if test "x$lt_cv_dlopen" != xno; then
11238 enable_dlopen=yes
11239 else
11240 enable_dlopen=no
11243 case $lt_cv_dlopen in
11244 dlopen)
11245 save_CPPFLAGS="$CPPFLAGS"
11246 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11248 save_LDFLAGS="$LDFLAGS"
11249 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11251 save_LIBS="$LIBS"
11252 LIBS="$lt_cv_dlopen_libs $LIBS"
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11255 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11256 if ${lt_cv_dlopen_self+:} false; then :
11257 $as_echo_n "(cached) " >&6
11258 else
11259 if test "$cross_compiling" = yes; then :
11260 lt_cv_dlopen_self=cross
11261 else
11262 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11263 lt_status=$lt_dlunknown
11264 cat > conftest.$ac_ext <<_LT_EOF
11265 #line $LINENO "configure"
11266 #include "confdefs.h"
11268 #if HAVE_DLFCN_H
11269 #include <dlfcn.h>
11270 #endif
11272 #include <stdio.h>
11274 #ifdef RTLD_GLOBAL
11275 # define LT_DLGLOBAL RTLD_GLOBAL
11276 #else
11277 # ifdef DL_GLOBAL
11278 # define LT_DLGLOBAL DL_GLOBAL
11279 # else
11280 # define LT_DLGLOBAL 0
11281 # endif
11282 #endif
11284 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11285 find out it does not work in some platform. */
11286 #ifndef LT_DLLAZY_OR_NOW
11287 # ifdef RTLD_LAZY
11288 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11289 # else
11290 # ifdef DL_LAZY
11291 # define LT_DLLAZY_OR_NOW DL_LAZY
11292 # else
11293 # ifdef RTLD_NOW
11294 # define LT_DLLAZY_OR_NOW RTLD_NOW
11295 # else
11296 # ifdef DL_NOW
11297 # define LT_DLLAZY_OR_NOW DL_NOW
11298 # else
11299 # define LT_DLLAZY_OR_NOW 0
11300 # endif
11301 # endif
11302 # endif
11303 # endif
11304 #endif
11306 /* When -fvisbility=hidden is used, assume the code has been annotated
11307 correspondingly for the symbols needed. */
11308 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11309 int fnord () __attribute__((visibility("default")));
11310 #endif
11312 int fnord () { return 42; }
11313 int main ()
11315 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11316 int status = $lt_dlunknown;
11318 if (self)
11320 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11321 else
11323 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11324 else puts (dlerror ());
11326 /* dlclose (self); */
11328 else
11329 puts (dlerror ());
11331 return status;
11333 _LT_EOF
11334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11335 (eval $ac_link) 2>&5
11336 ac_status=$?
11337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11338 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11339 (./conftest; exit; ) >&5 2>/dev/null
11340 lt_status=$?
11341 case x$lt_status in
11342 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11343 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11344 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11345 esac
11346 else :
11347 # compilation failed
11348 lt_cv_dlopen_self=no
11351 rm -fr conftest*
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11356 $as_echo "$lt_cv_dlopen_self" >&6; }
11358 if test "x$lt_cv_dlopen_self" = xyes; then
11359 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11361 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11362 if ${lt_cv_dlopen_self_static+:} false; then :
11363 $as_echo_n "(cached) " >&6
11364 else
11365 if test "$cross_compiling" = yes; then :
11366 lt_cv_dlopen_self_static=cross
11367 else
11368 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11369 lt_status=$lt_dlunknown
11370 cat > conftest.$ac_ext <<_LT_EOF
11371 #line $LINENO "configure"
11372 #include "confdefs.h"
11374 #if HAVE_DLFCN_H
11375 #include <dlfcn.h>
11376 #endif
11378 #include <stdio.h>
11380 #ifdef RTLD_GLOBAL
11381 # define LT_DLGLOBAL RTLD_GLOBAL
11382 #else
11383 # ifdef DL_GLOBAL
11384 # define LT_DLGLOBAL DL_GLOBAL
11385 # else
11386 # define LT_DLGLOBAL 0
11387 # endif
11388 #endif
11390 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11391 find out it does not work in some platform. */
11392 #ifndef LT_DLLAZY_OR_NOW
11393 # ifdef RTLD_LAZY
11394 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11395 # else
11396 # ifdef DL_LAZY
11397 # define LT_DLLAZY_OR_NOW DL_LAZY
11398 # else
11399 # ifdef RTLD_NOW
11400 # define LT_DLLAZY_OR_NOW RTLD_NOW
11401 # else
11402 # ifdef DL_NOW
11403 # define LT_DLLAZY_OR_NOW DL_NOW
11404 # else
11405 # define LT_DLLAZY_OR_NOW 0
11406 # endif
11407 # endif
11408 # endif
11409 # endif
11410 #endif
11412 /* When -fvisbility=hidden is used, assume the code has been annotated
11413 correspondingly for the symbols needed. */
11414 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11415 int fnord () __attribute__((visibility("default")));
11416 #endif
11418 int fnord () { return 42; }
11419 int main ()
11421 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11422 int status = $lt_dlunknown;
11424 if (self)
11426 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11427 else
11429 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11430 else puts (dlerror ());
11432 /* dlclose (self); */
11434 else
11435 puts (dlerror ());
11437 return status;
11439 _LT_EOF
11440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11441 (eval $ac_link) 2>&5
11442 ac_status=$?
11443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11444 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11445 (./conftest; exit; ) >&5 2>/dev/null
11446 lt_status=$?
11447 case x$lt_status in
11448 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11449 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11450 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11451 esac
11452 else :
11453 # compilation failed
11454 lt_cv_dlopen_self_static=no
11457 rm -fr conftest*
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11462 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11465 CPPFLAGS="$save_CPPFLAGS"
11466 LDFLAGS="$save_LDFLAGS"
11467 LIBS="$save_LIBS"
11469 esac
11471 case $lt_cv_dlopen_self in
11472 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11473 *) enable_dlopen_self=unknown ;;
11474 esac
11476 case $lt_cv_dlopen_self_static in
11477 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11478 *) enable_dlopen_self_static=unknown ;;
11479 esac
11498 striplib=
11499 old_striplib=
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11501 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11502 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11503 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11504 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11506 $as_echo "yes" >&6; }
11507 else
11508 # FIXME - insert some real tests, host_os isn't really good enough
11509 case $host_os in
11510 darwin*)
11511 if test -n "$STRIP" ; then
11512 striplib="$STRIP -x"
11513 old_striplib="$STRIP -S"
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11515 $as_echo "yes" >&6; }
11516 else
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11518 $as_echo "no" >&6; }
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523 $as_echo "no" >&6; }
11525 esac
11539 # Report which library types will actually be built
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11541 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11543 $as_echo "$can_build_shared" >&6; }
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11546 $as_echo_n "checking whether to build shared libraries... " >&6; }
11547 test "$can_build_shared" = "no" && enable_shared=no
11549 # On AIX, shared libraries and static libraries use the same namespace, and
11550 # are all built from PIC.
11551 case $host_os in
11552 aix3*)
11553 test "$enable_shared" = yes && enable_static=no
11554 if test -n "$RANLIB"; then
11555 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11556 postinstall_cmds='$RANLIB $lib'
11560 aix[4-9]*)
11561 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11562 test "$enable_shared" = yes && enable_static=no
11565 esac
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11567 $as_echo "$enable_shared" >&6; }
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11570 $as_echo_n "checking whether to build static libraries... " >&6; }
11571 # Make sure either enable_shared or enable_static is yes.
11572 test "$enable_shared" = yes || enable_static=yes
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11574 $as_echo "$enable_static" >&6; }
11580 ac_ext=c
11581 ac_cpp='$CPP $CPPFLAGS'
11582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11586 CC="$lt_save_CC"
11602 ac_config_commands="$ac_config_commands libtool"
11607 # Only expand once:
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11611 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11612 if ${libltdl_cv_shlibext+:} false; then :
11613 $as_echo_n "(cached) " >&6
11614 else
11616 module=yes
11617 eval libltdl_cv_shlibext=$shrext_cmds
11618 module=no
11619 eval libltdl_cv_shrext=$shrext_cmds
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11623 $as_echo "$libltdl_cv_shlibext" >&6; }
11624 if test -n "$libltdl_cv_shlibext"; then
11626 cat >>confdefs.h <<_ACEOF
11627 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11628 _ACEOF
11631 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
11633 cat >>confdefs.h <<_ACEOF
11634 #define LT_SHARED_EXT "$libltdl_cv_shrext"
11635 _ACEOF
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11640 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11641 if ${lt_cv_module_path_var+:} false; then :
11642 $as_echo_n "(cached) " >&6
11643 else
11644 lt_cv_module_path_var="$shlibpath_var"
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11647 $as_echo "$lt_cv_module_path_var" >&6; }
11648 if test -n "$lt_cv_module_path_var"; then
11650 cat >>confdefs.h <<_ACEOF
11651 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11652 _ACEOF
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11657 $as_echo_n "checking for the default library search path... " >&6; }
11658 if ${lt_cv_sys_dlsearch_path+:} false; then :
11659 $as_echo_n "(cached) " >&6
11660 else
11661 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11664 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11665 if test -n "$lt_cv_sys_dlsearch_path"; then
11666 sys_dlsearch_path=
11667 for dir in $lt_cv_sys_dlsearch_path; do
11668 if test -z "$sys_dlsearch_path"; then
11669 sys_dlsearch_path="$dir"
11670 else
11671 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11673 done
11675 cat >>confdefs.h <<_ACEOF
11676 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11677 _ACEOF
11682 LT_DLLOADERS=
11685 ac_ext=c
11686 ac_cpp='$CPP $CPPFLAGS'
11687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11692 LIBADD_DLOPEN=
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11694 $as_echo_n "checking for library containing dlopen... " >&6; }
11695 if ${ac_cv_search_dlopen+:} false; then :
11696 $as_echo_n "(cached) " >&6
11697 else
11698 ac_func_search_save_LIBS=$LIBS
11699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11700 /* end confdefs.h. */
11702 /* Override any GCC internal prototype to avoid an error.
11703 Use char because int might match the return type of a GCC
11704 builtin and then its argument prototype would still apply. */
11705 #ifdef __cplusplus
11706 extern "C"
11707 #endif
11708 char dlopen ();
11710 main ()
11712 return dlopen ();
11714 return 0;
11716 _ACEOF
11717 for ac_lib in '' dl; do
11718 if test -z "$ac_lib"; then
11719 ac_res="none required"
11720 else
11721 ac_res=-l$ac_lib
11722 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11724 if ac_fn_c_try_link "$LINENO"; then :
11725 ac_cv_search_dlopen=$ac_res
11727 rm -f core conftest.err conftest.$ac_objext \
11728 conftest$ac_exeext
11729 if ${ac_cv_search_dlopen+:} false; then :
11730 break
11732 done
11733 if ${ac_cv_search_dlopen+:} false; then :
11735 else
11736 ac_cv_search_dlopen=no
11738 rm conftest.$ac_ext
11739 LIBS=$ac_func_search_save_LIBS
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11742 $as_echo "$ac_cv_search_dlopen" >&6; }
11743 ac_res=$ac_cv_search_dlopen
11744 if test "$ac_res" != no; then :
11745 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11747 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11749 if test "$ac_cv_search_dlopen" != "none required" ; then
11750 LIBADD_DLOPEN="-ldl"
11752 libltdl_cv_lib_dl_dlopen="yes"
11753 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11754 else
11755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11756 /* end confdefs.h. */
11757 #if HAVE_DLFCN_H
11758 # include <dlfcn.h>
11759 #endif
11762 main ()
11764 dlopen(0, 0);
11766 return 0;
11768 _ACEOF
11769 if ac_fn_c_try_link "$LINENO"; then :
11771 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11773 libltdl_cv_func_dlopen="yes"
11774 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11775 else
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11777 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11778 if ${ac_cv_lib_svld_dlopen+:} false; then :
11779 $as_echo_n "(cached) " >&6
11780 else
11781 ac_check_lib_save_LIBS=$LIBS
11782 LIBS="-lsvld $LIBS"
11783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h. */
11786 /* Override any GCC internal prototype to avoid an error.
11787 Use char because int might match the return type of a GCC
11788 builtin and then its argument prototype would still apply. */
11789 #ifdef __cplusplus
11790 extern "C"
11791 #endif
11792 char dlopen ();
11794 main ()
11796 return dlopen ();
11798 return 0;
11800 _ACEOF
11801 if ac_fn_c_try_link "$LINENO"; then :
11802 ac_cv_lib_svld_dlopen=yes
11803 else
11804 ac_cv_lib_svld_dlopen=no
11806 rm -f core conftest.err conftest.$ac_objext \
11807 conftest$ac_exeext conftest.$ac_ext
11808 LIBS=$ac_check_lib_save_LIBS
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11811 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11812 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11814 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11816 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11817 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11821 rm -f core conftest.err conftest.$ac_objext \
11822 conftest$ac_exeext conftest.$ac_ext
11825 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11826 then
11827 lt_save_LIBS="$LIBS"
11828 LIBS="$LIBS $LIBADD_DLOPEN"
11829 for ac_func in dlerror
11830 do :
11831 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
11832 if test "x$ac_cv_func_dlerror" = xyes; then :
11833 cat >>confdefs.h <<_ACEOF
11834 #define HAVE_DLERROR 1
11835 _ACEOF
11838 done
11840 LIBS="$lt_save_LIBS"
11844 LIBADD_SHL_LOAD=
11845 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11846 if test "x$ac_cv_func_shl_load" = xyes; then :
11848 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11850 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11851 else
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11853 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11854 if ${ac_cv_lib_dld_shl_load+:} false; then :
11855 $as_echo_n "(cached) " >&6
11856 else
11857 ac_check_lib_save_LIBS=$LIBS
11858 LIBS="-ldld $LIBS"
11859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11860 /* end confdefs.h. */
11862 /* Override any GCC internal prototype to avoid an error.
11863 Use char because int might match the return type of a GCC
11864 builtin and then its argument prototype would still apply. */
11865 #ifdef __cplusplus
11866 extern "C"
11867 #endif
11868 char shl_load ();
11870 main ()
11872 return shl_load ();
11874 return 0;
11876 _ACEOF
11877 if ac_fn_c_try_link "$LINENO"; then :
11878 ac_cv_lib_dld_shl_load=yes
11879 else
11880 ac_cv_lib_dld_shl_load=no
11882 rm -f core conftest.err conftest.$ac_objext \
11883 conftest$ac_exeext conftest.$ac_ext
11884 LIBS=$ac_check_lib_save_LIBS
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11887 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11888 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11890 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11892 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11893 LIBADD_SHL_LOAD="-ldld"
11900 case $host_os in
11901 darwin[1567].*)
11902 # We only want this for pre-Mac OS X 10.4.
11903 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
11904 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
11906 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
11908 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
11912 beos*)
11913 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
11915 cygwin* | mingw* | os2* | pw32*)
11916 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
11918 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
11919 ac_have_decl=1
11920 else
11921 ac_have_decl=0
11924 cat >>confdefs.h <<_ACEOF
11925 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
11926 _ACEOF
11928 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
11930 esac
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11933 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11934 if ${ac_cv_lib_dld_dld_link+:} false; then :
11935 $as_echo_n "(cached) " >&6
11936 else
11937 ac_check_lib_save_LIBS=$LIBS
11938 LIBS="-ldld $LIBS"
11939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11940 /* end confdefs.h. */
11942 /* Override any GCC internal prototype to avoid an error.
11943 Use char because int might match the return type of a GCC
11944 builtin and then its argument prototype would still apply. */
11945 #ifdef __cplusplus
11946 extern "C"
11947 #endif
11948 char dld_link ();
11950 main ()
11952 return dld_link ();
11954 return 0;
11956 _ACEOF
11957 if ac_fn_c_try_link "$LINENO"; then :
11958 ac_cv_lib_dld_dld_link=yes
11959 else
11960 ac_cv_lib_dld_dld_link=no
11962 rm -f core conftest.err conftest.$ac_objext \
11963 conftest$ac_exeext conftest.$ac_ext
11964 LIBS=$ac_check_lib_save_LIBS
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11967 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11968 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11970 $as_echo "#define HAVE_DLD 1" >>confdefs.h
11972 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
11978 LT_DLPREOPEN=
11979 if test -n "$LT_DLLOADERS"
11980 then
11981 for lt_loader in $LT_DLLOADERS; do
11982 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
11983 done
11985 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
11990 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
11993 ac_ext=c
11994 ac_cpp='$CPP $CPPFLAGS'
11995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12001 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12002 if ${lt_cv_sys_symbol_underscore+:} false; then :
12003 $as_echo_n "(cached) " >&6
12004 else
12005 lt_cv_sys_symbol_underscore=no
12006 cat > conftest.$ac_ext <<_LT_EOF
12007 void nm_test_func(){}
12008 int main(){nm_test_func;return 0;}
12009 _LT_EOF
12010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12011 (eval $ac_compile) 2>&5
12012 ac_status=$?
12013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12014 test $ac_status = 0; }; then
12015 # Now try to grab the symbols.
12016 ac_nlist=conftest.nm
12017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12018 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12019 ac_status=$?
12020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12021 test $ac_status = 0; } && test -s "$ac_nlist"; then
12022 # See whether the symbols have a leading underscore.
12023 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12024 lt_cv_sys_symbol_underscore=yes
12025 else
12026 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12028 else
12029 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12032 else
12033 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12035 else
12036 echo "configure: failed program was:" >&5
12037 cat conftest.c >&5
12039 rm -rf conftest*
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12043 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12044 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12047 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12048 if test x"$libltdl_cv_func_dlopen" = xyes ||
12049 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12051 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12052 if ${libltdl_cv_need_uscore+:} false; then :
12053 $as_echo_n "(cached) " >&6
12054 else
12055 libltdl_cv_need_uscore=unknown
12056 save_LIBS="$LIBS"
12057 LIBS="$LIBS $LIBADD_DLOPEN"
12058 if test "$cross_compiling" = yes; then :
12059 libltdl_cv_need_uscore=cross
12060 else
12061 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12062 lt_status=$lt_dlunknown
12063 cat > conftest.$ac_ext <<_LT_EOF
12064 #line $LINENO "configure"
12065 #include "confdefs.h"
12067 #if HAVE_DLFCN_H
12068 #include <dlfcn.h>
12069 #endif
12071 #include <stdio.h>
12073 #ifdef RTLD_GLOBAL
12074 # define LT_DLGLOBAL RTLD_GLOBAL
12075 #else
12076 # ifdef DL_GLOBAL
12077 # define LT_DLGLOBAL DL_GLOBAL
12078 # else
12079 # define LT_DLGLOBAL 0
12080 # endif
12081 #endif
12083 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12084 find out it does not work in some platform. */
12085 #ifndef LT_DLLAZY_OR_NOW
12086 # ifdef RTLD_LAZY
12087 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12088 # else
12089 # ifdef DL_LAZY
12090 # define LT_DLLAZY_OR_NOW DL_LAZY
12091 # else
12092 # ifdef RTLD_NOW
12093 # define LT_DLLAZY_OR_NOW RTLD_NOW
12094 # else
12095 # ifdef DL_NOW
12096 # define LT_DLLAZY_OR_NOW DL_NOW
12097 # else
12098 # define LT_DLLAZY_OR_NOW 0
12099 # endif
12100 # endif
12101 # endif
12102 # endif
12103 #endif
12105 /* When -fvisbility=hidden is used, assume the code has been annotated
12106 correspondingly for the symbols needed. */
12107 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12108 int fnord () __attribute__((visibility("default")));
12109 #endif
12111 int fnord () { return 42; }
12112 int main ()
12114 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12115 int status = $lt_dlunknown;
12117 if (self)
12119 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12120 else
12122 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12123 else puts (dlerror ());
12125 /* dlclose (self); */
12127 else
12128 puts (dlerror ());
12130 return status;
12132 _LT_EOF
12133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12134 (eval $ac_link) 2>&5
12135 ac_status=$?
12136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12137 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12138 (./conftest; exit; ) >&5 2>/dev/null
12139 lt_status=$?
12140 case x$lt_status in
12141 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12142 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12143 x$lt_dlunknown|x*) ;;
12144 esac
12145 else :
12146 # compilation failed
12150 rm -fr conftest*
12152 LIBS="$save_LIBS"
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12156 $as_echo "$libltdl_cv_need_uscore" >&6; }
12160 if test x"$libltdl_cv_need_uscore" = xyes; then
12162 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12167 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12168 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12169 $as_echo_n "(cached) " >&6
12170 else
12171 # PORTME does your system automatically load deplibs for dlopen?
12172 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12173 # For now, we just catch OSes we know something about -- in the
12174 # future, we'll try test this programmatically.
12175 lt_cv_sys_dlopen_deplibs=unknown
12176 case $host_os in
12177 aix3*|aix4.1.*|aix4.2.*)
12178 # Unknown whether this is true for these versions of AIX, but
12179 # we want this `case' here to explicitly catch those versions.
12180 lt_cv_sys_dlopen_deplibs=unknown
12182 aix[4-9]*)
12183 lt_cv_sys_dlopen_deplibs=yes
12185 amigaos*)
12186 case $host_cpu in
12187 powerpc)
12188 lt_cv_sys_dlopen_deplibs=no
12190 esac
12192 darwin*)
12193 # Assuming the user has installed a libdl from somewhere, this is true
12194 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12195 lt_cv_sys_dlopen_deplibs=yes
12197 freebsd* | dragonfly*)
12198 lt_cv_sys_dlopen_deplibs=yes
12200 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12201 # GNU and its variants, using gnu ld.so (Glibc)
12202 lt_cv_sys_dlopen_deplibs=yes
12204 hpux10*|hpux11*)
12205 lt_cv_sys_dlopen_deplibs=yes
12207 interix*)
12208 lt_cv_sys_dlopen_deplibs=yes
12210 irix[12345]*|irix6.[01]*)
12211 # Catch all versions of IRIX before 6.2, and indicate that we don't
12212 # know how it worked for any of those versions.
12213 lt_cv_sys_dlopen_deplibs=unknown
12215 irix*)
12216 # The case above catches anything before 6.2, and it's known that
12217 # at 6.2 and later dlopen does load deplibs.
12218 lt_cv_sys_dlopen_deplibs=yes
12220 netbsd* | netbsdelf*-gnu)
12221 lt_cv_sys_dlopen_deplibs=yes
12223 openbsd*)
12224 lt_cv_sys_dlopen_deplibs=yes
12226 osf[1234]*)
12227 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12228 # it did *not* use an RPATH in a shared library to find objects the
12229 # library depends on, so we explicitly say `no'.
12230 lt_cv_sys_dlopen_deplibs=no
12232 osf5.0|osf5.0a|osf5.1)
12233 # dlopen *does* load deplibs and with the right loader patch applied
12234 # it even uses RPATH in a shared library to search for shared objects
12235 # that the library depends on, but there's no easy way to know if that
12236 # patch is installed. Since this is the case, all we can really
12237 # say is unknown -- it depends on the patch being installed. If
12238 # it is, this changes to `yes'. Without it, it would be `no'.
12239 lt_cv_sys_dlopen_deplibs=unknown
12241 osf*)
12242 # the two cases above should catch all versions of osf <= 5.1. Read
12243 # the comments above for what we know about them.
12244 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12245 # is used to find them so we can finally say `yes'.
12246 lt_cv_sys_dlopen_deplibs=yes
12248 qnx*)
12249 lt_cv_sys_dlopen_deplibs=yes
12251 solaris*)
12252 lt_cv_sys_dlopen_deplibs=yes
12254 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12255 libltdl_cv_sys_dlopen_deplibs=yes
12257 esac
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12261 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12262 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12264 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12270 for ac_header in argz.h
12271 do :
12272 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12274 if test "x$ac_cv_header_argz_h" = xyes; then :
12275 cat >>confdefs.h <<_ACEOF
12276 #define HAVE_ARGZ_H 1
12277 _ACEOF
12281 done
12284 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12285 # include <argz.h>
12286 #endif
12288 if test "x$ac_cv_type_error_t" = xyes; then :
12290 cat >>confdefs.h <<_ACEOF
12291 #define HAVE_ERROR_T 1
12292 _ACEOF
12295 else
12297 $as_echo "#define error_t int" >>confdefs.h
12300 $as_echo "#define __error_t_defined 1" >>confdefs.h
12305 ARGZ_H=
12306 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12307 argz_next argz_stringify
12308 do :
12309 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12310 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12311 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12312 cat >>confdefs.h <<_ACEOF
12313 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12314 _ACEOF
12316 else
12317 ARGZ_H=argz.h; case " $LIBOBJS " in
12318 *" argz.$ac_objext "* ) ;;
12319 *) LIBOBJS="$LIBOBJS argz.$ac_objext"
12321 esac
12324 done
12327 if test -z "$ARGZ_H"; then :
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12329 $as_echo_n "checking if argz actually works... " >&6; }
12330 if ${lt_cv_sys_argz_works+:} false; then :
12331 $as_echo_n "(cached) " >&6
12332 else
12333 case $host_os in #(
12334 *cygwin*)
12335 lt_cv_sys_argz_works=no
12336 if test "$cross_compiling" != no; then
12337 lt_cv_sys_argz_works="guessing no"
12338 else
12339 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12340 save_IFS=$IFS
12341 IFS=-.
12342 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12343 IFS=$save_IFS
12344 lt_os_major=${2-0}
12345 lt_os_minor=${3-0}
12346 lt_os_micro=${4-0}
12347 if test "$lt_os_major" -gt 1 \
12348 || { test "$lt_os_major" -eq 1 \
12349 && { test "$lt_os_minor" -gt 5 \
12350 || { test "$lt_os_minor" -eq 5 \
12351 && test "$lt_os_micro" -gt 24; }; }; }; then
12352 lt_cv_sys_argz_works=yes
12355 ;; #(
12356 *) lt_cv_sys_argz_works=yes ;;
12357 esac
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12360 $as_echo "$lt_cv_sys_argz_works" >&6; }
12361 if test "$lt_cv_sys_argz_works" = yes; then :
12363 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12365 else
12366 ARGZ_H=argz.h
12367 case " $LIBOBJS " in
12368 *" argz.$ac_objext "* ) ;;
12369 *) LIBOBJS="$LIBOBJS argz.$ac_objext"
12371 esac
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12379 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12380 if ${libltdl_cv_preloaded_symbols+:} false; then :
12381 $as_echo_n "(cached) " >&6
12382 else
12383 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12384 libltdl_cv_preloaded_symbols=yes
12385 else
12386 libltdl_cv_preloaded_symbols=no
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12391 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12392 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12394 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12400 # Check whether --enable-ltdl-install was given.
12401 if test "${enable_ltdl_install+set}" = set; then :
12402 enableval=$enable_ltdl_install;
12406 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12407 *yes*) ;;
12408 *) enable_ltdl_convenience=yes ;;
12409 esac
12411 if test x"${enable_ltdl_install-no}" != xno; then
12412 INSTALL_LTDL_TRUE=
12413 INSTALL_LTDL_FALSE='#'
12414 else
12415 INSTALL_LTDL_TRUE='#'
12416 INSTALL_LTDL_FALSE=
12419 if test x"${enable_ltdl_convenience-no}" != xno; then
12420 CONVENIENCE_LTDL_TRUE=
12421 CONVENIENCE_LTDL_FALSE='#'
12422 else
12423 CONVENIENCE_LTDL_TRUE='#'
12424 CONVENIENCE_LTDL_FALSE=
12432 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12433 # the user used. This is so that ltdl.h can pick up the parent projects
12434 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12435 # definitions required by ltdl.c.
12436 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12440 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12441 do :
12442 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12443 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12445 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12446 cat >>confdefs.h <<_ACEOF
12447 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12448 _ACEOF
12452 done
12455 for ac_func in closedir opendir readdir
12456 do :
12457 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12458 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12459 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12460 cat >>confdefs.h <<_ACEOF
12461 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12462 _ACEOF
12464 else
12465 case " $LIBOBJS " in
12466 *" lt__dirent.$ac_objext "* ) ;;
12467 *) LIBOBJS="$LIBOBJS lt__dirent.$ac_objext"
12469 esac
12472 done
12474 for ac_func in strlcat strlcpy
12475 do :
12476 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12477 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12478 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12479 cat >>confdefs.h <<_ACEOF
12480 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12481 _ACEOF
12483 else
12484 case " $LIBOBJS " in
12485 *" lt__strl.$ac_objext "* ) ;;
12486 *) LIBOBJS="$LIBOBJS lt__strl.$ac_objext"
12488 esac
12491 done
12495 cat >>confdefs.h <<_ACEOF
12496 #define LT_LIBEXT "$libext"
12497 _ACEOF
12500 name=
12501 eval "lt_libprefix=\"$libname_spec\""
12503 cat >>confdefs.h <<_ACEOF
12504 #define LT_LIBPREFIX "$lt_libprefix"
12505 _ACEOF
12508 name=ltdl
12509 eval "LTDLOPEN=\"$libname_spec\""
12514 ## -------- ##
12515 ## Outputs. ##
12516 ## -------- ##
12517 ac_config_files="$ac_config_files Makefile"
12519 cat >confcache <<\_ACEOF
12520 # This file is a shell script that caches the results of configure
12521 # tests run on this system so they can be shared between configure
12522 # scripts and configure runs, see configure's option --config-cache.
12523 # It is not useful on other systems. If it contains results you don't
12524 # want to keep, you may remove or edit it.
12526 # config.status only pays attention to the cache file if you give it
12527 # the --recheck option to rerun configure.
12529 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12530 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12531 # following values.
12533 _ACEOF
12535 # The following way of writing the cache mishandles newlines in values,
12536 # but we know of no workaround that is simple, portable, and efficient.
12537 # So, we kill variables containing newlines.
12538 # Ultrix sh set writes to stderr and can't be redirected directly,
12539 # and sets the high bit in the cache file unless we assign to the vars.
12541 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12542 eval ac_val=\$$ac_var
12543 case $ac_val in #(
12544 *${as_nl}*)
12545 case $ac_var in #(
12546 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12547 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12548 esac
12549 case $ac_var in #(
12550 _ | IFS | as_nl) ;; #(
12551 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12552 *) { eval $ac_var=; unset $ac_var;} ;;
12553 esac ;;
12554 esac
12555 done
12557 (set) 2>&1 |
12558 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12559 *${as_nl}ac_space=\ *)
12560 # `set' does not quote correctly, so add quotes: double-quote
12561 # substitution turns \\\\ into \\, and sed turns \\ into \.
12562 sed -n \
12563 "s/'/'\\\\''/g;
12564 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12565 ;; #(
12567 # `set' quotes correctly as required by POSIX, so do not add quotes.
12568 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12570 esac |
12571 sort
12573 sed '
12574 /^ac_cv_env_/b end
12575 t clear
12576 :clear
12577 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12578 t end
12579 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12580 :end' >>confcache
12581 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12582 if test -w "$cache_file"; then
12583 if test "x$cache_file" != "x/dev/null"; then
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12585 $as_echo "$as_me: updating cache $cache_file" >&6;}
12586 if test ! -f "$cache_file" || test -h "$cache_file"; then
12587 cat confcache >"$cache_file"
12588 else
12589 case $cache_file in #(
12590 */* | ?:*)
12591 mv -f confcache "$cache_file"$$ &&
12592 mv -f "$cache_file"$$ "$cache_file" ;; #(
12594 mv -f confcache "$cache_file" ;;
12595 esac
12598 else
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12600 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12603 rm -f confcache
12605 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12606 # Let make expand exec_prefix.
12607 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12609 DEFS=-DHAVE_CONFIG_H
12611 ac_libobjs=
12612 ac_ltlibobjs=
12614 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12615 # 1. Remove the extension, and $U if already installed.
12616 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12617 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12618 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12619 # will be set to the directory where LIBOBJS objects are built.
12620 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12621 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12622 done
12623 LIBOBJS=$ac_libobjs
12625 LTLIBOBJS=$ac_ltlibobjs
12628 if test -n "$EXEEXT"; then
12629 am__EXEEXT_TRUE=
12630 am__EXEEXT_FALSE='#'
12631 else
12632 am__EXEEXT_TRUE='#'
12633 am__EXEEXT_FALSE=
12636 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12637 as_fn_error $? "conditional \"AMDEP\" was never defined.
12638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12640 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12641 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12644 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
12645 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
12646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12648 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
12649 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
12650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12652 LT_CONFIG_H=config.h
12654 : "${CONFIG_STATUS=./config.status}"
12655 ac_write_fail=0
12656 ac_clean_files_save=$ac_clean_files
12657 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12659 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12660 as_write_fail=0
12661 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12662 #! $SHELL
12663 # Generated by $as_me.
12664 # Run this file to recreate the current configuration.
12665 # Compiler output produced by configure, useful for debugging
12666 # configure, is in config.log if it exists.
12668 debug=false
12669 ac_cs_recheck=false
12670 ac_cs_silent=false
12672 SHELL=\${CONFIG_SHELL-$SHELL}
12673 export SHELL
12674 _ASEOF
12675 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12676 ## -------------------- ##
12677 ## M4sh Initialization. ##
12678 ## -------------------- ##
12680 # Be more Bourne compatible
12681 DUALCASE=1; export DUALCASE # for MKS sh
12682 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12683 emulate sh
12684 NULLCMD=:
12685 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12686 # is contrary to our usage. Disable this feature.
12687 alias -g '${1+"$@"}'='"$@"'
12688 setopt NO_GLOB_SUBST
12689 else
12690 case `(set -o) 2>/dev/null` in #(
12691 *posix*) :
12692 set -o posix ;; #(
12693 *) :
12695 esac
12699 as_nl='
12701 export as_nl
12702 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12703 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12704 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12705 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12706 # Prefer a ksh shell builtin over an external printf program on Solaris,
12707 # but without wasting forks for bash or zsh.
12708 if test -z "$BASH_VERSION$ZSH_VERSION" \
12709 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12710 as_echo='print -r --'
12711 as_echo_n='print -rn --'
12712 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12713 as_echo='printf %s\n'
12714 as_echo_n='printf %s'
12715 else
12716 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12717 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12718 as_echo_n='/usr/ucb/echo -n'
12719 else
12720 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12721 as_echo_n_body='eval
12722 arg=$1;
12723 case $arg in #(
12724 *"$as_nl"*)
12725 expr "X$arg" : "X\\(.*\\)$as_nl";
12726 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12727 esac;
12728 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12730 export as_echo_n_body
12731 as_echo_n='sh -c $as_echo_n_body as_echo'
12733 export as_echo_body
12734 as_echo='sh -c $as_echo_body as_echo'
12737 # The user is always right.
12738 if test "${PATH_SEPARATOR+set}" != set; then
12739 PATH_SEPARATOR=:
12740 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12741 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12742 PATH_SEPARATOR=';'
12747 # IFS
12748 # We need space, tab and new line, in precisely that order. Quoting is
12749 # there to prevent editors from complaining about space-tab.
12750 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12751 # splitting by setting IFS to empty value.)
12752 IFS=" "" $as_nl"
12754 # Find who we are. Look in the path if we contain no directory separator.
12755 as_myself=
12756 case $0 in #((
12757 *[\\/]* ) as_myself=$0 ;;
12758 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12759 for as_dir in $PATH
12761 IFS=$as_save_IFS
12762 test -z "$as_dir" && as_dir=.
12763 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12764 done
12765 IFS=$as_save_IFS
12768 esac
12769 # We did not find ourselves, most probably we were run as `sh COMMAND'
12770 # in which case we are not to be found in the path.
12771 if test "x$as_myself" = x; then
12772 as_myself=$0
12774 if test ! -f "$as_myself"; then
12775 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12776 exit 1
12779 # Unset variables that we do not need and which cause bugs (e.g. in
12780 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12781 # suppresses any "Segmentation fault" message there. '((' could
12782 # trigger a bug in pdksh 5.2.14.
12783 for as_var in BASH_ENV ENV MAIL MAILPATH
12784 do eval test x\${$as_var+set} = xset \
12785 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12786 done
12787 PS1='$ '
12788 PS2='> '
12789 PS4='+ '
12791 # NLS nuisances.
12792 LC_ALL=C
12793 export LC_ALL
12794 LANGUAGE=C
12795 export LANGUAGE
12797 # CDPATH.
12798 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12801 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12802 # ----------------------------------------
12803 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12804 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12805 # script with STATUS, using 1 if that was 0.
12806 as_fn_error ()
12808 as_status=$1; test $as_status -eq 0 && as_status=1
12809 if test "$4"; then
12810 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12811 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12813 $as_echo "$as_me: error: $2" >&2
12814 as_fn_exit $as_status
12815 } # as_fn_error
12818 # as_fn_set_status STATUS
12819 # -----------------------
12820 # Set $? to STATUS, without forking.
12821 as_fn_set_status ()
12823 return $1
12824 } # as_fn_set_status
12826 # as_fn_exit STATUS
12827 # -----------------
12828 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12829 as_fn_exit ()
12831 set +e
12832 as_fn_set_status $1
12833 exit $1
12834 } # as_fn_exit
12836 # as_fn_unset VAR
12837 # ---------------
12838 # Portably unset VAR.
12839 as_fn_unset ()
12841 { eval $1=; unset $1;}
12843 as_unset=as_fn_unset
12844 # as_fn_append VAR VALUE
12845 # ----------------------
12846 # Append the text in VALUE to the end of the definition contained in VAR. Take
12847 # advantage of any shell optimizations that allow amortized linear growth over
12848 # repeated appends, instead of the typical quadratic growth present in naive
12849 # implementations.
12850 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12851 eval 'as_fn_append ()
12853 eval $1+=\$2
12855 else
12856 as_fn_append ()
12858 eval $1=\$$1\$2
12860 fi # as_fn_append
12862 # as_fn_arith ARG...
12863 # ------------------
12864 # Perform arithmetic evaluation on the ARGs, and store the result in the
12865 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12866 # must be portable across $(()) and expr.
12867 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12868 eval 'as_fn_arith ()
12870 as_val=$(( $* ))
12872 else
12873 as_fn_arith ()
12875 as_val=`expr "$@" || test $? -eq 1`
12877 fi # as_fn_arith
12880 if expr a : '\(a\)' >/dev/null 2>&1 &&
12881 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12882 as_expr=expr
12883 else
12884 as_expr=false
12887 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12888 as_basename=basename
12889 else
12890 as_basename=false
12893 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12894 as_dirname=dirname
12895 else
12896 as_dirname=false
12899 as_me=`$as_basename -- "$0" ||
12900 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12901 X"$0" : 'X\(//\)$' \| \
12902 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12903 $as_echo X/"$0" |
12904 sed '/^.*\/\([^/][^/]*\)\/*$/{
12905 s//\1/
12908 /^X\/\(\/\/\)$/{
12909 s//\1/
12912 /^X\/\(\/\).*/{
12913 s//\1/
12916 s/.*/./; q'`
12918 # Avoid depending upon Character Ranges.
12919 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12920 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12921 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12922 as_cr_digits='0123456789'
12923 as_cr_alnum=$as_cr_Letters$as_cr_digits
12925 ECHO_C= ECHO_N= ECHO_T=
12926 case `echo -n x` in #(((((
12927 -n*)
12928 case `echo 'xy\c'` in
12929 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12930 xy) ECHO_C='\c';;
12931 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12932 ECHO_T=' ';;
12933 esac;;
12935 ECHO_N='-n';;
12936 esac
12938 rm -f conf$$ conf$$.exe conf$$.file
12939 if test -d conf$$.dir; then
12940 rm -f conf$$.dir/conf$$.file
12941 else
12942 rm -f conf$$.dir
12943 mkdir conf$$.dir 2>/dev/null
12945 if (echo >conf$$.file) 2>/dev/null; then
12946 if ln -s conf$$.file conf$$ 2>/dev/null; then
12947 as_ln_s='ln -s'
12948 # ... but there are two gotchas:
12949 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12950 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12951 # In both cases, we have to default to `cp -pR'.
12952 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12953 as_ln_s='cp -pR'
12954 elif ln conf$$.file conf$$ 2>/dev/null; then
12955 as_ln_s=ln
12956 else
12957 as_ln_s='cp -pR'
12959 else
12960 as_ln_s='cp -pR'
12962 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12963 rmdir conf$$.dir 2>/dev/null
12966 # as_fn_mkdir_p
12967 # -------------
12968 # Create "$as_dir" as a directory, including parents if necessary.
12969 as_fn_mkdir_p ()
12972 case $as_dir in #(
12973 -*) as_dir=./$as_dir;;
12974 esac
12975 test -d "$as_dir" || eval $as_mkdir_p || {
12976 as_dirs=
12977 while :; do
12978 case $as_dir in #(
12979 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12980 *) as_qdir=$as_dir;;
12981 esac
12982 as_dirs="'$as_qdir' $as_dirs"
12983 as_dir=`$as_dirname -- "$as_dir" ||
12984 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12985 X"$as_dir" : 'X\(//\)[^/]' \| \
12986 X"$as_dir" : 'X\(//\)$' \| \
12987 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12988 $as_echo X"$as_dir" |
12989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12990 s//\1/
12993 /^X\(\/\/\)[^/].*/{
12994 s//\1/
12997 /^X\(\/\/\)$/{
12998 s//\1/
13001 /^X\(\/\).*/{
13002 s//\1/
13005 s/.*/./; q'`
13006 test -d "$as_dir" && break
13007 done
13008 test -z "$as_dirs" || eval "mkdir $as_dirs"
13009 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13012 } # as_fn_mkdir_p
13013 if mkdir -p . 2>/dev/null; then
13014 as_mkdir_p='mkdir -p "$as_dir"'
13015 else
13016 test -d ./-p && rmdir ./-p
13017 as_mkdir_p=false
13021 # as_fn_executable_p FILE
13022 # -----------------------
13023 # Test if FILE is an executable regular file.
13024 as_fn_executable_p ()
13026 test -f "$1" && test -x "$1"
13027 } # as_fn_executable_p
13028 as_test_x='test -x'
13029 as_executable_p=as_fn_executable_p
13031 # Sed expression to map a string onto a valid CPP name.
13032 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13034 # Sed expression to map a string onto a valid variable name.
13035 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13038 exec 6>&1
13039 ## ----------------------------------- ##
13040 ## Main body of $CONFIG_STATUS script. ##
13041 ## ----------------------------------- ##
13042 _ASEOF
13043 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13046 # Save the log message, to keep $0 and so on meaningful, and to
13047 # report actual input values of CONFIG_FILES etc. instead of their
13048 # values after options handling.
13049 ac_log="
13050 This file was extended by libltdl $as_me 2.4.2, which was
13051 generated by GNU Autoconf 2.69. Invocation command line was
13053 CONFIG_FILES = $CONFIG_FILES
13054 CONFIG_HEADERS = $CONFIG_HEADERS
13055 CONFIG_LINKS = $CONFIG_LINKS
13056 CONFIG_COMMANDS = $CONFIG_COMMANDS
13057 $ $0 $@
13059 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13062 _ACEOF
13064 case $ac_config_files in *"
13065 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13066 esac
13068 case $ac_config_headers in *"
13069 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13070 esac
13073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13074 # Files that config.status was made for.
13075 config_files="$ac_config_files"
13076 config_headers="$ac_config_headers"
13077 config_commands="$ac_config_commands"
13079 _ACEOF
13081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13082 ac_cs_usage="\
13083 \`$as_me' instantiates files and other configuration actions
13084 from templates according to the current configuration. Unless the files
13085 and actions are specified as TAGs, all are instantiated by default.
13087 Usage: $0 [OPTION]... [TAG]...
13089 -h, --help print this help, then exit
13090 -V, --version print version number and configuration settings, then exit
13091 --config print configuration, then exit
13092 -q, --quiet, --silent
13093 do not print progress messages
13094 -d, --debug don't remove temporary files
13095 --recheck update $as_me by reconfiguring in the same conditions
13096 --file=FILE[:TEMPLATE]
13097 instantiate the configuration file FILE
13098 --header=FILE[:TEMPLATE]
13099 instantiate the configuration header FILE
13101 Configuration files:
13102 $config_files
13104 Configuration headers:
13105 $config_headers
13107 Configuration commands:
13108 $config_commands
13110 Report bugs to <bug-libtool@gnu.org>."
13112 _ACEOF
13113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13114 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13115 ac_cs_version="\\
13116 libltdl config.status 2.4.2
13117 configured by $0, generated by GNU Autoconf 2.69,
13118 with options \\"\$ac_cs_config\\"
13120 Copyright (C) 2012 Free Software Foundation, Inc.
13121 This config.status script is free software; the Free Software Foundation
13122 gives unlimited permission to copy, distribute and modify it."
13124 ac_pwd='$ac_pwd'
13125 srcdir='$srcdir'
13126 INSTALL='$INSTALL'
13127 MKDIR_P='$MKDIR_P'
13128 AWK='$AWK'
13129 test -n "\$AWK" || AWK=awk
13130 _ACEOF
13132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13133 # The default lists apply if the user does not specify any file.
13134 ac_need_defaults=:
13135 while test $# != 0
13137 case $1 in
13138 --*=?*)
13139 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13140 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13141 ac_shift=:
13143 --*=)
13144 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13145 ac_optarg=
13146 ac_shift=:
13149 ac_option=$1
13150 ac_optarg=$2
13151 ac_shift=shift
13153 esac
13155 case $ac_option in
13156 # Handling of the options.
13157 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13158 ac_cs_recheck=: ;;
13159 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13160 $as_echo "$ac_cs_version"; exit ;;
13161 --config | --confi | --conf | --con | --co | --c )
13162 $as_echo "$ac_cs_config"; exit ;;
13163 --debug | --debu | --deb | --de | --d | -d )
13164 debug=: ;;
13165 --file | --fil | --fi | --f )
13166 $ac_shift
13167 case $ac_optarg in
13168 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13169 '') as_fn_error $? "missing file argument" ;;
13170 esac
13171 as_fn_append CONFIG_FILES " '$ac_optarg'"
13172 ac_need_defaults=false;;
13173 --header | --heade | --head | --hea )
13174 $ac_shift
13175 case $ac_optarg in
13176 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13177 esac
13178 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13179 ac_need_defaults=false;;
13180 --he | --h)
13181 # Conflict between --help and --header
13182 as_fn_error $? "ambiguous option: \`$1'
13183 Try \`$0 --help' for more information.";;
13184 --help | --hel | -h )
13185 $as_echo "$ac_cs_usage"; exit ;;
13186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13187 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13188 ac_cs_silent=: ;;
13190 # This is an error.
13191 -*) as_fn_error $? "unrecognized option: \`$1'
13192 Try \`$0 --help' for more information." ;;
13194 *) as_fn_append ac_config_targets " $1"
13195 ac_need_defaults=false ;;
13197 esac
13198 shift
13199 done
13201 ac_configure_extra_args=
13203 if $ac_cs_silent; then
13204 exec 6>/dev/null
13205 ac_configure_extra_args="$ac_configure_extra_args --silent"
13208 _ACEOF
13209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13210 if \$ac_cs_recheck; then
13211 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13212 shift
13213 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13214 CONFIG_SHELL='$SHELL'
13215 export CONFIG_SHELL
13216 exec "\$@"
13219 _ACEOF
13220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13221 exec 5>>config.log
13223 echo
13224 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13225 ## Running $as_me. ##
13226 _ASBOX
13227 $as_echo "$ac_log"
13228 } >&5
13230 _ACEOF
13231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13233 # INIT-COMMANDS
13235 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13238 # The HP-UX ksh and POSIX shell print the target directory to stdout
13239 # if CDPATH is set.
13240 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13242 sed_quote_subst='$sed_quote_subst'
13243 double_quote_subst='$double_quote_subst'
13244 delay_variable_subst='$delay_variable_subst'
13245 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13246 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13247 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13248 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13249 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13250 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13251 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13252 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13253 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13254 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13255 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13256 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13257 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13258 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13259 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13260 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13261 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13262 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13263 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13264 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13265 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13266 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13267 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13268 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13269 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13270 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13271 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13272 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13273 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13274 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13275 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13276 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13277 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13278 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13279 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13280 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13281 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13282 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13283 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13284 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13285 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13286 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13287 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13288 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13289 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13290 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13291 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13292 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13293 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13294 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13295 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13296 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13297 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13298 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13299 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13300 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13301 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13302 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13303 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13304 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13305 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13306 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13307 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13308 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13309 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13310 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13311 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13312 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13313 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13314 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13315 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13316 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13317 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13318 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13319 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13320 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13321 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13322 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13323 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13324 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13325 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13326 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13327 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13328 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13329 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13330 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13331 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13332 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13333 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13334 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13335 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13336 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13337 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13338 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13339 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13340 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13341 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13342 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13343 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13344 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13345 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13346 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13347 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13348 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13349 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13350 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13351 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13352 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13353 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13354 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13355 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13356 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13357 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13358 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13359 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13360 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13361 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13362 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13363 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13364 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13365 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13366 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13367 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13368 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13369 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13370 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13371 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13372 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13373 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13374 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13375 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13377 LTCC='$LTCC'
13378 LTCFLAGS='$LTCFLAGS'
13379 compiler='$compiler_DEFAULT'
13381 # A function that is used when there is no print builtin or printf.
13382 func_fallback_echo ()
13384 eval 'cat <<_LTECHO_EOF
13386 _LTECHO_EOF'
13389 # Quote evaled strings.
13390 for var in AS \
13391 DLLTOOL \
13392 OBJDUMP \
13393 SHELL \
13394 ECHO \
13395 PATH_SEPARATOR \
13396 SED \
13397 GREP \
13398 EGREP \
13399 FGREP \
13400 LD \
13401 NM \
13402 LN_S \
13403 lt_SP2NL \
13404 lt_NL2SP \
13405 reload_flag \
13406 deplibs_check_method \
13407 file_magic_cmd \
13408 file_magic_glob \
13409 want_nocaseglob \
13410 sharedlib_from_linklib_cmd \
13411 AR \
13412 AR_FLAGS \
13413 archiver_list_spec \
13414 STRIP \
13415 RANLIB \
13416 CC \
13417 CFLAGS \
13418 compiler \
13419 lt_cv_sys_global_symbol_pipe \
13420 lt_cv_sys_global_symbol_to_cdecl \
13421 lt_cv_sys_global_symbol_to_c_name_address \
13422 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13423 nm_file_list_spec \
13424 lt_prog_compiler_no_builtin_flag \
13425 lt_prog_compiler_pic \
13426 lt_prog_compiler_wl \
13427 lt_prog_compiler_static \
13428 lt_cv_prog_compiler_c_o \
13429 need_locks \
13430 MANIFEST_TOOL \
13431 DSYMUTIL \
13432 NMEDIT \
13433 LIPO \
13434 OTOOL \
13435 OTOOL64 \
13436 shrext_cmds \
13437 export_dynamic_flag_spec \
13438 whole_archive_flag_spec \
13439 compiler_needs_object \
13440 with_gnu_ld \
13441 allow_undefined_flag \
13442 no_undefined_flag \
13443 hardcode_libdir_flag_spec \
13444 hardcode_libdir_separator \
13445 exclude_expsyms \
13446 include_expsyms \
13447 file_list_spec \
13448 variables_saved_for_relink \
13449 libname_spec \
13450 library_names_spec \
13451 soname_spec \
13452 install_override_mode \
13453 finish_eval \
13454 old_striplib \
13455 striplib; do
13456 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13457 *[\\\\\\\`\\"\\\$]*)
13458 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13461 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13463 esac
13464 done
13466 # Double-quote double-evaled strings.
13467 for var in reload_cmds \
13468 old_postinstall_cmds \
13469 old_postuninstall_cmds \
13470 old_archive_cmds \
13471 extract_expsyms_cmds \
13472 old_archive_from_new_cmds \
13473 old_archive_from_expsyms_cmds \
13474 archive_cmds \
13475 archive_expsym_cmds \
13476 module_cmds \
13477 module_expsym_cmds \
13478 export_symbols_cmds \
13479 prelink_cmds \
13480 postlink_cmds \
13481 postinstall_cmds \
13482 postuninstall_cmds \
13483 finish_cmds \
13484 sys_lib_search_path_spec \
13485 sys_lib_dlsearch_path_spec; do
13486 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13487 *[\\\\\\\`\\"\\\$]*)
13488 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13491 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13493 esac
13494 done
13496 ac_aux_dir='$ac_aux_dir'
13497 xsi_shell='$xsi_shell'
13498 lt_shell_append='$lt_shell_append'
13500 # See if we are running on zsh, and set the options which allow our
13501 # commands through without removal of \ escapes INIT.
13502 if test -n "\${ZSH_VERSION+set}" ; then
13503 setopt NO_GLOB_SUBST
13507 PACKAGE='$PACKAGE'
13508 VERSION='$VERSION'
13509 TIMESTAMP='$TIMESTAMP'
13510 RM='$RM'
13511 ofile='$ofile'
13516 _ACEOF
13518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13520 # Handling of arguments.
13521 for ac_config_target in $ac_config_targets
13523 case $ac_config_target in
13524 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
13525 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13526 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13527 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13529 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13530 esac
13531 done
13534 # If the user did not use the arguments to specify the items to instantiate,
13535 # then the envvar interface is used. Set only those that are not.
13536 # We use the long form for the default assignment because of an extremely
13537 # bizarre bug on SunOS 4.1.3.
13538 if $ac_need_defaults; then
13539 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13540 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13541 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13544 # Have a temporary directory for convenience. Make it in the build tree
13545 # simply because there is no reason against having it here, and in addition,
13546 # creating and moving files from /tmp can sometimes cause problems.
13547 # Hook for its removal unless debugging.
13548 # Note that there is a small window in which the directory will not be cleaned:
13549 # after its creation but before its name has been assigned to `$tmp'.
13550 $debug ||
13552 tmp= ac_tmp=
13553 trap 'exit_status=$?
13554 : "${ac_tmp:=$tmp}"
13555 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13557 trap 'as_fn_exit 1' 1 2 13 15
13559 # Create a (secure) tmp directory for tmp files.
13562 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13563 test -d "$tmp"
13564 } ||
13566 tmp=./conf$$-$RANDOM
13567 (umask 077 && mkdir "$tmp")
13568 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13569 ac_tmp=$tmp
13571 # Set up the scripts for CONFIG_FILES section.
13572 # No need to generate them if there are no CONFIG_FILES.
13573 # This happens for instance with `./config.status config.h'.
13574 if test -n "$CONFIG_FILES"; then
13577 ac_cr=`echo X | tr X '\015'`
13578 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13579 # But we know of no other shell where ac_cr would be empty at this
13580 # point, so we can use a bashism as a fallback.
13581 if test "x$ac_cr" = x; then
13582 eval ac_cr=\$\'\\r\'
13584 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13585 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13586 ac_cs_awk_cr='\\r'
13587 else
13588 ac_cs_awk_cr=$ac_cr
13591 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13592 _ACEOF
13596 echo "cat >conf$$subs.awk <<_ACEOF" &&
13597 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13598 echo "_ACEOF"
13599 } >conf$$subs.sh ||
13600 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13601 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13602 ac_delim='%!_!# '
13603 for ac_last_try in false false false false false :; do
13604 . ./conf$$subs.sh ||
13605 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13607 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13608 if test $ac_delim_n = $ac_delim_num; then
13609 break
13610 elif $ac_last_try; then
13611 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13612 else
13613 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13615 done
13616 rm -f conf$$subs.sh
13618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13619 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13620 _ACEOF
13621 sed -n '
13623 s/^/S["/; s/!.*/"]=/
13626 s/^[^!]*!//
13627 :repl
13628 t repl
13629 s/'"$ac_delim"'$//
13630 t delim
13633 s/\(.\{148\}\)..*/\1/
13634 t more1
13635 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13638 b repl
13639 :more1
13640 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13643 s/.\{148\}//
13644 t nl
13645 :delim
13647 s/\(.\{148\}\)..*/\1/
13648 t more2
13649 s/["\\]/\\&/g; s/^/"/; s/$/"/
13652 :more2
13653 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13656 s/.\{148\}//
13657 t delim
13658 ' <conf$$subs.awk | sed '
13659 /^[^""]/{
13661 s/\n//
13663 ' >>$CONFIG_STATUS || ac_write_fail=1
13664 rm -f conf$$subs.awk
13665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13666 _ACAWK
13667 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13668 for (key in S) S_is_set[key] = 1
13669 FS = "\a"
13673 line = $ 0
13674 nfields = split(line, field, "@")
13675 substed = 0
13676 len = length(field[1])
13677 for (i = 2; i < nfields; i++) {
13678 key = field[i]
13679 keylen = length(key)
13680 if (S_is_set[key]) {
13681 value = S[key]
13682 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13683 len += length(value) + length(field[++i])
13684 substed = 1
13685 } else
13686 len += 1 + keylen
13689 print line
13692 _ACAWK
13693 _ACEOF
13694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13695 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13696 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13697 else
13699 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13700 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13701 _ACEOF
13703 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13704 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13705 # trailing colons and then remove the whole line if VPATH becomes empty
13706 # (actually we leave an empty line to preserve line numbers).
13707 if test "x$srcdir" = x.; then
13708 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13710 s///
13711 s/^/:/
13712 s/[ ]*$/:/
13713 s/:\$(srcdir):/:/g
13714 s/:\${srcdir}:/:/g
13715 s/:@srcdir@:/:/g
13716 s/^:*//
13717 s/:*$//
13719 s/\(=[ ]*\).*/\1/
13721 s/\n//
13722 s/^[^=]*=[ ]*$//
13726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13727 fi # test -n "$CONFIG_FILES"
13729 # Set up the scripts for CONFIG_HEADERS section.
13730 # No need to generate them if there are no CONFIG_HEADERS.
13731 # This happens for instance with `./config.status Makefile'.
13732 if test -n "$CONFIG_HEADERS"; then
13733 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13734 BEGIN {
13735 _ACEOF
13737 # Transform confdefs.h into an awk script `defines.awk', embedded as
13738 # here-document in config.status, that substitutes the proper values into
13739 # config.h.in to produce config.h.
13741 # Create a delimiter string that does not exist in confdefs.h, to ease
13742 # handling of long lines.
13743 ac_delim='%!_!# '
13744 for ac_last_try in false false :; do
13745 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13746 if test -z "$ac_tt"; then
13747 break
13748 elif $ac_last_try; then
13749 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13750 else
13751 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13753 done
13755 # For the awk script, D is an array of macro values keyed by name,
13756 # likewise P contains macro parameters if any. Preserve backslash
13757 # newline sequences.
13759 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13760 sed -n '
13761 s/.\{148\}/&'"$ac_delim"'/g
13762 t rset
13763 :rset
13764 s/^[ ]*#[ ]*define[ ][ ]*/ /
13765 t def
13767 :def
13768 s/\\$//
13769 t bsnl
13770 s/["\\]/\\&/g
13771 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13772 D["\1"]=" \3"/p
13773 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13775 :bsnl
13776 s/["\\]/\\&/g
13777 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13778 D["\1"]=" \3\\\\\\n"\\/p
13779 t cont
13780 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13781 t cont
13783 :cont
13785 s/.\{148\}/&'"$ac_delim"'/g
13786 t clear
13787 :clear
13788 s/\\$//
13789 t bsnlc
13790 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13792 :bsnlc
13793 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13794 b cont
13795 ' <confdefs.h | sed '
13796 s/'"$ac_delim"'/"\\\
13797 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13800 for (key in D) D_is_set[key] = 1
13801 FS = "\a"
13803 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13804 line = \$ 0
13805 split(line, arg, " ")
13806 if (arg[1] == "#") {
13807 defundef = arg[2]
13808 mac1 = arg[3]
13809 } else {
13810 defundef = substr(arg[1], 2)
13811 mac1 = arg[2]
13813 split(mac1, mac2, "(") #)
13814 macro = mac2[1]
13815 prefix = substr(line, 1, index(line, defundef) - 1)
13816 if (D_is_set[macro]) {
13817 # Preserve the white space surrounding the "#".
13818 print prefix "define", macro P[macro] D[macro]
13819 next
13820 } else {
13821 # Replace #undef with comments. This is necessary, for example,
13822 # in the case of _POSIX_SOURCE, which is predefined and required
13823 # on some systems where configure will not decide to define it.
13824 if (defundef == "undef") {
13825 print "/*", prefix defundef, macro, "*/"
13826 next
13830 { print }
13831 _ACAWK
13832 _ACEOF
13833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13834 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13835 fi # test -n "$CONFIG_HEADERS"
13838 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13839 shift
13840 for ac_tag
13842 case $ac_tag in
13843 :[FHLC]) ac_mode=$ac_tag; continue;;
13844 esac
13845 case $ac_mode$ac_tag in
13846 :[FHL]*:*);;
13847 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13848 :[FH]-) ac_tag=-:-;;
13849 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13850 esac
13851 ac_save_IFS=$IFS
13852 IFS=:
13853 set x $ac_tag
13854 IFS=$ac_save_IFS
13855 shift
13856 ac_file=$1
13857 shift
13859 case $ac_mode in
13860 :L) ac_source=$1;;
13861 :[FH])
13862 ac_file_inputs=
13863 for ac_f
13865 case $ac_f in
13866 -) ac_f="$ac_tmp/stdin";;
13867 *) # Look for the file first in the build tree, then in the source tree
13868 # (if the path is not absolute). The absolute path cannot be DOS-style,
13869 # because $ac_f cannot contain `:'.
13870 test -f "$ac_f" ||
13871 case $ac_f in
13872 [\\/$]*) false;;
13873 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13874 esac ||
13875 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13876 esac
13877 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13878 as_fn_append ac_file_inputs " '$ac_f'"
13879 done
13881 # Let's still pretend it is `configure' which instantiates (i.e., don't
13882 # use $as_me), people would be surprised to read:
13883 # /* config.h. Generated by config.status. */
13884 configure_input='Generated from '`
13885 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13886 `' by configure.'
13887 if test x"$ac_file" != x-; then
13888 configure_input="$ac_file. $configure_input"
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13890 $as_echo "$as_me: creating $ac_file" >&6;}
13892 # Neutralize special characters interpreted by sed in replacement strings.
13893 case $configure_input in #(
13894 *\&* | *\|* | *\\* )
13895 ac_sed_conf_input=`$as_echo "$configure_input" |
13896 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13897 *) ac_sed_conf_input=$configure_input;;
13898 esac
13900 case $ac_tag in
13901 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13902 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13903 esac
13905 esac
13907 ac_dir=`$as_dirname -- "$ac_file" ||
13908 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13909 X"$ac_file" : 'X\(//\)[^/]' \| \
13910 X"$ac_file" : 'X\(//\)$' \| \
13911 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13912 $as_echo X"$ac_file" |
13913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13914 s//\1/
13917 /^X\(\/\/\)[^/].*/{
13918 s//\1/
13921 /^X\(\/\/\)$/{
13922 s//\1/
13925 /^X\(\/\).*/{
13926 s//\1/
13929 s/.*/./; q'`
13930 as_dir="$ac_dir"; as_fn_mkdir_p
13931 ac_builddir=.
13933 case "$ac_dir" in
13934 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13936 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13937 # A ".." for each directory in $ac_dir_suffix.
13938 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13939 case $ac_top_builddir_sub in
13940 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13941 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13942 esac ;;
13943 esac
13944 ac_abs_top_builddir=$ac_pwd
13945 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13946 # for backward compatibility:
13947 ac_top_builddir=$ac_top_build_prefix
13949 case $srcdir in
13950 .) # We are building in place.
13951 ac_srcdir=.
13952 ac_top_srcdir=$ac_top_builddir_sub
13953 ac_abs_top_srcdir=$ac_pwd ;;
13954 [\\/]* | ?:[\\/]* ) # Absolute name.
13955 ac_srcdir=$srcdir$ac_dir_suffix;
13956 ac_top_srcdir=$srcdir
13957 ac_abs_top_srcdir=$srcdir ;;
13958 *) # Relative name.
13959 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13960 ac_top_srcdir=$ac_top_build_prefix$srcdir
13961 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13962 esac
13963 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13966 case $ac_mode in
13969 # CONFIG_FILE
13972 case $INSTALL in
13973 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13974 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13975 esac
13976 ac_MKDIR_P=$MKDIR_P
13977 case $MKDIR_P in
13978 [\\/$]* | ?:[\\/]* ) ;;
13979 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13980 esac
13981 _ACEOF
13983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13984 # If the template does not know about datarootdir, expand it.
13985 # FIXME: This hack should be removed a few years after 2.60.
13986 ac_datarootdir_hack=; ac_datarootdir_seen=
13987 ac_sed_dataroot='
13988 /datarootdir/ {
13992 /@datadir@/p
13993 /@docdir@/p
13994 /@infodir@/p
13995 /@localedir@/p
13996 /@mandir@/p'
13997 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13998 *datarootdir*) ac_datarootdir_seen=yes;;
13999 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14001 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14002 _ACEOF
14003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14004 ac_datarootdir_hack='
14005 s&@datadir@&$datadir&g
14006 s&@docdir@&$docdir&g
14007 s&@infodir@&$infodir&g
14008 s&@localedir@&$localedir&g
14009 s&@mandir@&$mandir&g
14010 s&\\\${datarootdir}&$datarootdir&g' ;;
14011 esac
14012 _ACEOF
14014 # Neutralize VPATH when `$srcdir' = `.'.
14015 # Shell code in configure.ac might set extrasub.
14016 # FIXME: do we really want to maintain this feature?
14017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14018 ac_sed_extra="$ac_vpsub
14019 $extrasub
14020 _ACEOF
14021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14023 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14024 s|@configure_input@|$ac_sed_conf_input|;t t
14025 s&@top_builddir@&$ac_top_builddir_sub&;t t
14026 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14027 s&@srcdir@&$ac_srcdir&;t t
14028 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14029 s&@top_srcdir@&$ac_top_srcdir&;t t
14030 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14031 s&@builddir@&$ac_builddir&;t t
14032 s&@abs_builddir@&$ac_abs_builddir&;t t
14033 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14034 s&@INSTALL@&$ac_INSTALL&;t t
14035 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14036 $ac_datarootdir_hack
14038 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14039 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14041 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14042 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14043 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14044 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14046 which seems to be undefined. Please make sure it is defined" >&5
14047 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14048 which seems to be undefined. Please make sure it is defined" >&2;}
14050 rm -f "$ac_tmp/stdin"
14051 case $ac_file in
14052 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14053 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14054 esac \
14055 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14059 # CONFIG_HEADER
14061 if test x"$ac_file" != x-; then
14063 $as_echo "/* $configure_input */" \
14064 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14065 } >"$ac_tmp/config.h" \
14066 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14067 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14069 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14070 else
14071 rm -f "$ac_file"
14072 mv "$ac_tmp/config.h" "$ac_file" \
14073 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14075 else
14076 $as_echo "/* $configure_input */" \
14077 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14078 || as_fn_error $? "could not create -" "$LINENO" 5
14080 # Compute "$ac_file"'s index in $config_headers.
14081 _am_arg="$ac_file"
14082 _am_stamp_count=1
14083 for _am_header in $config_headers :; do
14084 case $_am_header in
14085 $_am_arg | $_am_arg:* )
14086 break ;;
14088 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14089 esac
14090 done
14091 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14092 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14093 X"$_am_arg" : 'X\(//\)[^/]' \| \
14094 X"$_am_arg" : 'X\(//\)$' \| \
14095 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14096 $as_echo X"$_am_arg" |
14097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14098 s//\1/
14101 /^X\(\/\/\)[^/].*/{
14102 s//\1/
14105 /^X\(\/\/\)$/{
14106 s//\1/
14109 /^X\(\/\).*/{
14110 s//\1/
14113 s/.*/./; q'`/stamp-h$_am_stamp_count
14116 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14117 $as_echo "$as_me: executing $ac_file commands" >&6;}
14119 esac
14122 case $ac_file$ac_mode in
14123 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14124 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14125 # are listed without --file. Let's play safe and only enable the eval
14126 # if we detect the quoting.
14127 case $CONFIG_FILES in
14128 *\'*) eval set x "$CONFIG_FILES" ;;
14129 *) set x $CONFIG_FILES ;;
14130 esac
14131 shift
14132 for mf
14134 # Strip MF so we end up with the name of the file.
14135 mf=`echo "$mf" | sed -e 's/:.*$//'`
14136 # Check whether this is an Automake generated Makefile or not.
14137 # We used to match only the files named `Makefile.in', but
14138 # some people rename them; so instead we look at the file content.
14139 # Grep'ing the first line is not enough: some people post-process
14140 # each Makefile.in and add a new line on top of each file to say so.
14141 # Grep'ing the whole file is not good either: AIX grep has a line
14142 # limit of 2048, but all sed's we know have understand at least 4000.
14143 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14144 dirpart=`$as_dirname -- "$mf" ||
14145 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14146 X"$mf" : 'X\(//\)[^/]' \| \
14147 X"$mf" : 'X\(//\)$' \| \
14148 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14149 $as_echo X"$mf" |
14150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14151 s//\1/
14154 /^X\(\/\/\)[^/].*/{
14155 s//\1/
14158 /^X\(\/\/\)$/{
14159 s//\1/
14162 /^X\(\/\).*/{
14163 s//\1/
14166 s/.*/./; q'`
14167 else
14168 continue
14170 # Extract the definition of DEPDIR, am__include, and am__quote
14171 # from the Makefile without running `make'.
14172 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14173 test -z "$DEPDIR" && continue
14174 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14175 test -z "am__include" && continue
14176 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14177 # When using ansi2knr, U may be empty or an underscore; expand it
14178 U=`sed -n 's/^U = //p' < "$mf"`
14179 # Find all dependency output files, they are included files with
14180 # $(DEPDIR) in their names. We invoke sed twice because it is the
14181 # simplest approach to changing $(DEPDIR) to its actual value in the
14182 # expansion.
14183 for file in `sed -n "
14184 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14185 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14186 # Make sure the directory exists.
14187 test -f "$dirpart/$file" && continue
14188 fdir=`$as_dirname -- "$file" ||
14189 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14190 X"$file" : 'X\(//\)[^/]' \| \
14191 X"$file" : 'X\(//\)$' \| \
14192 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14193 $as_echo X"$file" |
14194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14195 s//\1/
14198 /^X\(\/\/\)[^/].*/{
14199 s//\1/
14202 /^X\(\/\/\)$/{
14203 s//\1/
14206 /^X\(\/\).*/{
14207 s//\1/
14210 s/.*/./; q'`
14211 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14212 # echo "creating $dirpart/$file"
14213 echo '# dummy' > "$dirpart/$file"
14214 done
14215 done
14218 "libtool":C)
14220 # See if we are running on zsh, and set the options which allow our
14221 # commands through without removal of \ escapes.
14222 if test -n "${ZSH_VERSION+set}" ; then
14223 setopt NO_GLOB_SUBST
14226 cfgfile="${ofile}T"
14227 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14228 $RM "$cfgfile"
14230 cat <<_LT_EOF >> "$cfgfile"
14231 #! $SHELL
14233 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14234 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14235 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14236 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14238 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14239 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14240 # Foundation, Inc.
14241 # Written by Gordon Matzigkeit, 1996
14243 # This file is part of GNU Libtool.
14245 # GNU Libtool is free software; you can redistribute it and/or
14246 # modify it under the terms of the GNU General Public License as
14247 # published by the Free Software Foundation; either version 2 of
14248 # the License, or (at your option) any later version.
14250 # As a special exception to the GNU General Public License,
14251 # if you distribute this file as part of a program or library that
14252 # is built using GNU Libtool, you may include this file under the
14253 # same distribution terms that you use for the rest of that program.
14255 # GNU Libtool is distributed in the hope that it will be useful,
14256 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14257 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14258 # GNU General Public License for more details.
14260 # You should have received a copy of the GNU General Public License
14261 # along with GNU Libtool; see the file COPYING. If not, a copy
14262 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14263 # obtained by writing to the Free Software Foundation, Inc.,
14264 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14267 # The names of the tagged configurations supported by this script.
14268 available_tags=""
14270 # ### BEGIN LIBTOOL CONFIG
14272 # Which release of libtool.m4 was used?
14273 macro_version=$macro_version
14274 macro_revision=$macro_revision
14276 # Assembler program.
14277 AS=$lt_AS
14279 # DLL creation program.
14280 DLLTOOL=$lt_DLLTOOL
14282 # Object dumper program.
14283 OBJDUMP=$lt_OBJDUMP
14285 # Whether or not to build shared libraries.
14286 build_libtool_libs=$enable_shared
14288 # Whether or not to build static libraries.
14289 build_old_libs=$enable_static
14291 # What type of objects to build.
14292 pic_mode=$pic_mode
14294 # Whether or not to optimize for fast installation.
14295 fast_install=$enable_fast_install
14297 # Shell to use when invoking shell scripts.
14298 SHELL=$lt_SHELL
14300 # An echo program that protects backslashes.
14301 ECHO=$lt_ECHO
14303 # The PATH separator for the build system.
14304 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14306 # The host system.
14307 host_alias=$host_alias
14308 host=$host
14309 host_os=$host_os
14311 # The build system.
14312 build_alias=$build_alias
14313 build=$build
14314 build_os=$build_os
14316 # A sed program that does not truncate output.
14317 SED=$lt_SED
14319 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14320 Xsed="\$SED -e 1s/^X//"
14322 # A grep program that handles long lines.
14323 GREP=$lt_GREP
14325 # An ERE matcher.
14326 EGREP=$lt_EGREP
14328 # A literal string matcher.
14329 FGREP=$lt_FGREP
14331 # A BSD- or MS-compatible name lister.
14332 NM=$lt_NM
14334 # Whether we need soft or hard links.
14335 LN_S=$lt_LN_S
14337 # What is the maximum length of a command?
14338 max_cmd_len=$max_cmd_len
14340 # Object file suffix (normally "o").
14341 objext=$ac_objext
14343 # Executable file suffix (normally "").
14344 exeext=$exeext
14346 # whether the shell understands "unset".
14347 lt_unset=$lt_unset
14349 # turn spaces into newlines.
14350 SP2NL=$lt_lt_SP2NL
14352 # turn newlines into spaces.
14353 NL2SP=$lt_lt_NL2SP
14355 # convert \$build file names to \$host format.
14356 to_host_file_cmd=$lt_cv_to_host_file_cmd
14358 # convert \$build files to toolchain format.
14359 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14361 # Method to check whether dependent libraries are shared objects.
14362 deplibs_check_method=$lt_deplibs_check_method
14364 # Command to use when deplibs_check_method = "file_magic".
14365 file_magic_cmd=$lt_file_magic_cmd
14367 # How to find potential files when deplibs_check_method = "file_magic".
14368 file_magic_glob=$lt_file_magic_glob
14370 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14371 want_nocaseglob=$lt_want_nocaseglob
14373 # Command to associate shared and link libraries.
14374 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14376 # The archiver.
14377 AR=$lt_AR
14379 # Flags to create an archive.
14380 AR_FLAGS=$lt_AR_FLAGS
14382 # How to feed a file listing to the archiver.
14383 archiver_list_spec=$lt_archiver_list_spec
14385 # A symbol stripping program.
14386 STRIP=$lt_STRIP
14388 # Commands used to install an old-style archive.
14389 RANLIB=$lt_RANLIB
14390 old_postinstall_cmds=$lt_old_postinstall_cmds
14391 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14393 # Whether to use a lock for old archive extraction.
14394 lock_old_archive_extraction=$lock_old_archive_extraction
14396 # A C compiler.
14397 LTCC=$lt_CC
14399 # LTCC compiler flags.
14400 LTCFLAGS=$lt_CFLAGS
14402 # Take the output of nm and produce a listing of raw symbols and C names.
14403 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14405 # Transform the output of nm in a proper C declaration.
14406 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14408 # Transform the output of nm in a C name address pair.
14409 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14411 # Transform the output of nm in a C name address pair when lib prefix is needed.
14412 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14414 # Specify filename containing input files for \$NM.
14415 nm_file_list_spec=$lt_nm_file_list_spec
14417 # The root where to search for dependent libraries,and in which our libraries should be installed.
14418 lt_sysroot=$lt_sysroot
14420 # The name of the directory that contains temporary libtool files.
14421 objdir=$objdir
14423 # Used to examine libraries when file_magic_cmd begins with "file".
14424 MAGIC_CMD=$MAGIC_CMD
14426 # Must we lock files when doing compilation?
14427 need_locks=$lt_need_locks
14429 # Manifest tool.
14430 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14432 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14433 DSYMUTIL=$lt_DSYMUTIL
14435 # Tool to change global to local symbols on Mac OS X.
14436 NMEDIT=$lt_NMEDIT
14438 # Tool to manipulate fat objects and archives on Mac OS X.
14439 LIPO=$lt_LIPO
14441 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14442 OTOOL=$lt_OTOOL
14444 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14445 OTOOL64=$lt_OTOOL64
14447 # Old archive suffix (normally "a").
14448 libext=$libext
14450 # Shared library suffix (normally ".so").
14451 shrext_cmds=$lt_shrext_cmds
14453 # The commands to extract the exported symbol list from a shared archive.
14454 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14456 # Variables whose values should be saved in libtool wrapper scripts and
14457 # restored at link time.
14458 variables_saved_for_relink=$lt_variables_saved_for_relink
14460 # Do we need the "lib" prefix for modules?
14461 need_lib_prefix=$need_lib_prefix
14463 # Do we need a version for libraries?
14464 need_version=$need_version
14466 # Library versioning type.
14467 version_type=$version_type
14469 # Shared library runtime path variable.
14470 runpath_var=$runpath_var
14472 # Shared library path variable.
14473 shlibpath_var=$shlibpath_var
14475 # Is shlibpath searched before the hard-coded library search path?
14476 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14478 # Format of library name prefix.
14479 libname_spec=$lt_libname_spec
14481 # List of archive names. First name is the real one, the rest are links.
14482 # The last name is the one that the linker finds with -lNAME
14483 library_names_spec=$lt_library_names_spec
14485 # The coded name of the library, if different from the real name.
14486 soname_spec=$lt_soname_spec
14488 # Permission mode override for installation of shared libraries.
14489 install_override_mode=$lt_install_override_mode
14491 # Command to use after installation of a shared archive.
14492 postinstall_cmds=$lt_postinstall_cmds
14494 # Command to use after uninstallation of a shared archive.
14495 postuninstall_cmds=$lt_postuninstall_cmds
14497 # Commands used to finish a libtool library installation in a directory.
14498 finish_cmds=$lt_finish_cmds
14500 # As "finish_cmds", except a single script fragment to be evaled but
14501 # not shown.
14502 finish_eval=$lt_finish_eval
14504 # Whether we should hardcode library paths into libraries.
14505 hardcode_into_libs=$hardcode_into_libs
14507 # Compile-time system search path for libraries.
14508 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14510 # Run-time system search path for libraries.
14511 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14513 # Whether dlopen is supported.
14514 dlopen_support=$enable_dlopen
14516 # Whether dlopen of programs is supported.
14517 dlopen_self=$enable_dlopen_self
14519 # Whether dlopen of statically linked programs is supported.
14520 dlopen_self_static=$enable_dlopen_self_static
14522 # Commands to strip libraries.
14523 old_striplib=$lt_old_striplib
14524 striplib=$lt_striplib
14527 # The linker used to build libraries.
14528 LD=$lt_LD
14530 # How to create reloadable object files.
14531 reload_flag=$lt_reload_flag
14532 reload_cmds=$lt_reload_cmds
14534 # Commands used to build an old-style archive.
14535 old_archive_cmds=$lt_old_archive_cmds
14537 # A language specific compiler.
14538 CC=$lt_compiler
14540 # Is the compiler the GNU compiler?
14541 with_gcc=$GCC
14543 # Compiler flag to turn off builtin functions.
14544 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14546 # Additional compiler flags for building library objects.
14547 pic_flag=$lt_lt_prog_compiler_pic
14549 # How to pass a linker flag through the compiler.
14550 wl=$lt_lt_prog_compiler_wl
14552 # Compiler flag to prevent dynamic linking.
14553 link_static_flag=$lt_lt_prog_compiler_static
14555 # Does compiler simultaneously support -c and -o options?
14556 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14558 # Whether or not to add -lc for building shared libraries.
14559 build_libtool_need_lc=$archive_cmds_need_lc
14561 # Whether or not to disallow shared libs when runtime libs are static.
14562 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14564 # Compiler flag to allow reflexive dlopens.
14565 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14567 # Compiler flag to generate shared objects directly from archives.
14568 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14570 # Whether the compiler copes with passing no objects directly.
14571 compiler_needs_object=$lt_compiler_needs_object
14573 # Create an old-style archive from a shared archive.
14574 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14576 # Create a temporary old-style archive to link instead of a shared archive.
14577 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14579 # Commands used to build a shared archive.
14580 archive_cmds=$lt_archive_cmds
14581 archive_expsym_cmds=$lt_archive_expsym_cmds
14583 # Commands used to build a loadable module if different from building
14584 # a shared archive.
14585 module_cmds=$lt_module_cmds
14586 module_expsym_cmds=$lt_module_expsym_cmds
14588 # Whether we are building with GNU ld or not.
14589 with_gnu_ld=$lt_with_gnu_ld
14591 # Flag that allows shared libraries with undefined symbols to be built.
14592 allow_undefined_flag=$lt_allow_undefined_flag
14594 # Flag that enforces no undefined symbols.
14595 no_undefined_flag=$lt_no_undefined_flag
14597 # Flag to hardcode \$libdir into a binary during linking.
14598 # This must work even if \$libdir does not exist
14599 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14601 # Whether we need a single "-rpath" flag with a separated argument.
14602 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14604 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14605 # DIR into the resulting binary.
14606 hardcode_direct=$hardcode_direct
14608 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14609 # DIR into the resulting binary and the resulting library dependency is
14610 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14611 # library is relocated.
14612 hardcode_direct_absolute=$hardcode_direct_absolute
14614 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14615 # into the resulting binary.
14616 hardcode_minus_L=$hardcode_minus_L
14618 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14619 # into the resulting binary.
14620 hardcode_shlibpath_var=$hardcode_shlibpath_var
14622 # Set to "yes" if building a shared library automatically hardcodes DIR
14623 # into the library and all subsequent libraries and executables linked
14624 # against it.
14625 hardcode_automatic=$hardcode_automatic
14627 # Set to yes if linker adds runtime paths of dependent libraries
14628 # to runtime path list.
14629 inherit_rpath=$inherit_rpath
14631 # Whether libtool must link a program against all its dependency libraries.
14632 link_all_deplibs=$link_all_deplibs
14634 # Set to "yes" if exported symbols are required.
14635 always_export_symbols=$always_export_symbols
14637 # The commands to list exported symbols.
14638 export_symbols_cmds=$lt_export_symbols_cmds
14640 # Symbols that should not be listed in the preloaded symbols.
14641 exclude_expsyms=$lt_exclude_expsyms
14643 # Symbols that must always be exported.
14644 include_expsyms=$lt_include_expsyms
14646 # Commands necessary for linking programs (against libraries) with templates.
14647 prelink_cmds=$lt_prelink_cmds
14649 # Commands necessary for finishing linking programs.
14650 postlink_cmds=$lt_postlink_cmds
14652 # Specify filename containing input files.
14653 file_list_spec=$lt_file_list_spec
14655 # How to hardcode a shared library path into an executable.
14656 hardcode_action=$hardcode_action
14658 # ### END LIBTOOL CONFIG
14660 _LT_EOF
14662 case $host_os in
14663 aix3*)
14664 cat <<\_LT_EOF >> "$cfgfile"
14665 # AIX sometimes has problems with the GCC collect2 program. For some
14666 # reason, if we set the COLLECT_NAMES environment variable, the problems
14667 # vanish in a puff of smoke.
14668 if test "X${COLLECT_NAMES+set}" != Xset; then
14669 COLLECT_NAMES=
14670 export COLLECT_NAMES
14672 _LT_EOF
14674 esac
14677 ltmain="$ac_aux_dir/ltmain.sh"
14680 # We use sed instead of cat because bash on DJGPP gets confused if
14681 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14682 # text mode, it properly converts lines to CR/LF. This bash problem
14683 # is reportedly fixed, but why not run on old versions too?
14684 sed '$q' "$ltmain" >> "$cfgfile" \
14685 || (rm -f "$cfgfile"; exit 1)
14687 if test x"$xsi_shell" = xyes; then
14688 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14689 func_dirname ()\
14691 \ case ${1} in\
14692 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14693 \ * ) func_dirname_result="${3}" ;;\
14694 \ esac\
14695 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14696 && mv -f "$cfgfile.tmp" "$cfgfile" \
14697 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14698 test 0 -eq $? || _lt_function_replace_fail=:
14701 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14702 func_basename ()\
14704 \ func_basename_result="${1##*/}"\
14705 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14706 && mv -f "$cfgfile.tmp" "$cfgfile" \
14707 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14708 test 0 -eq $? || _lt_function_replace_fail=:
14711 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14712 func_dirname_and_basename ()\
14714 \ case ${1} in\
14715 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14716 \ * ) func_dirname_result="${3}" ;;\
14717 \ esac\
14718 \ func_basename_result="${1##*/}"\
14719 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14720 && mv -f "$cfgfile.tmp" "$cfgfile" \
14721 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14722 test 0 -eq $? || _lt_function_replace_fail=:
14725 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14726 func_stripname ()\
14728 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14729 \ # positional parameters, so assign one to ordinary parameter first.\
14730 \ func_stripname_result=${3}\
14731 \ func_stripname_result=${func_stripname_result#"${1}"}\
14732 \ func_stripname_result=${func_stripname_result%"${2}"}\
14733 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14734 && mv -f "$cfgfile.tmp" "$cfgfile" \
14735 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14736 test 0 -eq $? || _lt_function_replace_fail=:
14739 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14740 func_split_long_opt ()\
14742 \ func_split_long_opt_name=${1%%=*}\
14743 \ func_split_long_opt_arg=${1#*=}\
14744 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14745 && mv -f "$cfgfile.tmp" "$cfgfile" \
14746 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14747 test 0 -eq $? || _lt_function_replace_fail=:
14750 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14751 func_split_short_opt ()\
14753 \ func_split_short_opt_arg=${1#??}\
14754 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14755 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14756 && mv -f "$cfgfile.tmp" "$cfgfile" \
14757 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14758 test 0 -eq $? || _lt_function_replace_fail=:
14761 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14762 func_lo2o ()\
14764 \ case ${1} in\
14765 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14766 \ *) func_lo2o_result=${1} ;;\
14767 \ esac\
14768 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14769 && mv -f "$cfgfile.tmp" "$cfgfile" \
14770 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14771 test 0 -eq $? || _lt_function_replace_fail=:
14774 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14775 func_xform ()\
14777 func_xform_result=${1%.*}.lo\
14778 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14779 && mv -f "$cfgfile.tmp" "$cfgfile" \
14780 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14781 test 0 -eq $? || _lt_function_replace_fail=:
14784 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14785 func_arith ()\
14787 func_arith_result=$(( $* ))\
14788 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14789 && mv -f "$cfgfile.tmp" "$cfgfile" \
14790 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14791 test 0 -eq $? || _lt_function_replace_fail=:
14794 sed -e '/^func_len ()$/,/^} # func_len /c\
14795 func_len ()\
14797 func_len_result=${#1}\
14798 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14799 && mv -f "$cfgfile.tmp" "$cfgfile" \
14800 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14801 test 0 -eq $? || _lt_function_replace_fail=:
14805 if test x"$lt_shell_append" = xyes; then
14806 sed -e '/^func_append ()$/,/^} # func_append /c\
14807 func_append ()\
14809 eval "${1}+=\\${2}"\
14810 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14811 && mv -f "$cfgfile.tmp" "$cfgfile" \
14812 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14813 test 0 -eq $? || _lt_function_replace_fail=:
14816 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14817 func_append_quoted ()\
14819 \ func_quote_for_eval "${2}"\
14820 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14821 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14822 && mv -f "$cfgfile.tmp" "$cfgfile" \
14823 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14824 test 0 -eq $? || _lt_function_replace_fail=:
14827 # Save a `func_append' function call where possible by direct use of '+='
14828 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14829 && mv -f "$cfgfile.tmp" "$cfgfile" \
14830 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14831 test 0 -eq $? || _lt_function_replace_fail=:
14832 else
14833 # Save a `func_append' function call even when '+=' is not available
14834 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14835 && mv -f "$cfgfile.tmp" "$cfgfile" \
14836 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14837 test 0 -eq $? || _lt_function_replace_fail=:
14840 if test x"$_lt_function_replace_fail" = x":"; then
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14842 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14846 mv -f "$cfgfile" "$ofile" ||
14847 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14848 chmod +x "$ofile"
14852 esac
14853 done # for ac_tag
14856 as_fn_exit 0
14857 _ACEOF
14858 ac_clean_files=$ac_clean_files_save
14860 test $ac_write_fail = 0 ||
14861 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14864 # configure is writing to config.log, and then calls config.status.
14865 # config.status does its own redirection, appending to config.log.
14866 # Unfortunately, on DOS this fails, as config.log is still kept open
14867 # by configure, so config.status won't be able to write to it; its
14868 # output is simply discarded. So we exec the FD to /dev/null,
14869 # effectively closing config.log, so it can be properly (re)opened and
14870 # appended to by config.status. When coming back to configure, we
14871 # need to make the FD available again.
14872 if test "$no_create" != yes; then
14873 ac_cs_success=:
14874 ac_config_status_args=
14875 test "$silent" = yes &&
14876 ac_config_status_args="$ac_config_status_args --quiet"
14877 exec 5>/dev/null
14878 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14879 exec 5>>config.log
14880 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14881 # would make configure fail if this is the last instruction.
14882 $ac_cs_success || as_fn_exit 1
14884 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14886 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}