dnscrypt-proxy 1.6.0
[tomato.git] / release / src / router / dnscrypt / libltdl / configure
blob5f1a748d5833a83d30909c89db4cacdda19296cc
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libltdl 2.4.3a.
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.3a'
594 PACKAGE_STRING='libltdl 2.4.3a'
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 LT_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 LT_SYS_LIBRARY_PATH
655 OTOOL64
656 OTOOL
657 LIPO
658 NMEDIT
659 DSYMUTIL
660 MANIFEST_TOOL
661 RANLIB
662 ac_ct_AR
664 LN_S
666 ac_ct_DUMPBIN
667 DUMPBIN
669 FGREP
670 EGREP
671 GREP
673 am__fastdepCC_FALSE
674 am__fastdepCC_TRUE
675 CCDEPMODE
676 am__nodep
677 AMDEPBACKSLASH
678 AMDEP_FALSE
679 AMDEP_TRUE
680 am__quote
681 am__include
682 DEPDIR
683 OBJEXT
684 EXEEXT
685 ac_ct_CC
686 CPPFLAGS
687 LDFLAGS
688 CFLAGS
690 host_os
691 host_vendor
692 host_cpu
693 host
694 build_os
695 build_vendor
696 build_cpu
697 build
698 LIBTOOL
699 OBJDUMP
700 DLLTOOL
702 AM_BACKSLASH
703 AM_DEFAULT_VERBOSITY
704 AM_DEFAULT_V
705 AM_V
706 am__untar
707 am__tar
708 AMTAR
709 am__leading_dot
710 SET_MAKE
712 mkdir_p
713 MKDIR_P
714 INSTALL_STRIP_PROGRAM
715 STRIP
716 install_sh
717 MAKEINFO
718 AUTOHEADER
719 AUTOMAKE
720 AUTOCONF
721 ACLOCAL
722 VERSION
723 PACKAGE
724 CYGPATH_W
725 am__isrc
726 INSTALL_DATA
727 INSTALL_SCRIPT
728 INSTALL_PROGRAM
729 target_alias
730 host_alias
731 build_alias
732 LIBS
733 ECHO_T
734 ECHO_N
735 ECHO_C
736 DEFS
737 mandir
738 localedir
739 libdir
740 psdir
741 pdfdir
742 dvidir
743 htmldir
744 infodir
745 docdir
746 oldincludedir
747 includedir
748 localstatedir
749 sharedstatedir
750 sysconfdir
751 datadir
752 datarootdir
753 libexecdir
754 sbindir
755 bindir
756 program_transform_name
757 prefix
758 exec_prefix
759 PACKAGE_URL
760 PACKAGE_BUGREPORT
761 PACKAGE_STRING
762 PACKAGE_VERSION
763 PACKAGE_TARNAME
764 PACKAGE_NAME
765 PATH_SEPARATOR
766 SHELL'
767 ac_subst_files=''
768 ac_user_opts='
769 enable_option_checking
770 enable_silent_rules
771 enable_shared
772 enable_static
773 with_pic
774 enable_fast_install
775 with_aix_soname
776 enable_dependency_tracking
777 with_gnu_ld
778 with_sysroot
779 enable_libtool_lock
780 enable_ltdl_install
782 ac_precious_vars='build_alias
783 host_alias
784 target_alias
786 CFLAGS
787 LDFLAGS
788 LIBS
789 CPPFLAGS
790 LT_SYS_LIBRARY_PATH
791 CPP'
794 # Initialize some variables set by options.
795 ac_init_help=
796 ac_init_version=false
797 ac_unrecognized_opts=
798 ac_unrecognized_sep=
799 # The variables have the same names as the options, with
800 # dashes changed to underlines.
801 cache_file=/dev/null
802 exec_prefix=NONE
803 no_create=
804 no_recursion=
805 prefix=NONE
806 program_prefix=NONE
807 program_suffix=NONE
808 program_transform_name=s,x,x,
809 silent=
810 site=
811 srcdir=
812 verbose=
813 x_includes=NONE
814 x_libraries=NONE
816 # Installation directory options.
817 # These are left unexpanded so users can "make install exec_prefix=/foo"
818 # and all the variables that are supposed to be based on exec_prefix
819 # by default will actually change.
820 # Use braces instead of parens because sh, perl, etc. also accept them.
821 # (The list follows the same order as the GNU Coding Standards.)
822 bindir='${exec_prefix}/bin'
823 sbindir='${exec_prefix}/sbin'
824 libexecdir='${exec_prefix}/libexec'
825 datarootdir='${prefix}/share'
826 datadir='${datarootdir}'
827 sysconfdir='${prefix}/etc'
828 sharedstatedir='${prefix}/com'
829 localstatedir='${prefix}/var'
830 includedir='${prefix}/include'
831 oldincludedir='/usr/include'
832 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
833 infodir='${datarootdir}/info'
834 htmldir='${docdir}'
835 dvidir='${docdir}'
836 pdfdir='${docdir}'
837 psdir='${docdir}'
838 libdir='${exec_prefix}/lib'
839 localedir='${datarootdir}/locale'
840 mandir='${datarootdir}/man'
842 ac_prev=
843 ac_dashdash=
844 for ac_option
846 # If the previous option needs an argument, assign it.
847 if test -n "$ac_prev"; then
848 eval $ac_prev=\$ac_option
849 ac_prev=
850 continue
853 case $ac_option in
854 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855 *=) ac_optarg= ;;
856 *) ac_optarg=yes ;;
857 esac
859 # Accept the important Cygnus configure options, so we can diagnose typos.
861 case $ac_dashdash$ac_option in
863 ac_dashdash=yes ;;
865 -bindir | --bindir | --bindi | --bind | --bin | --bi)
866 ac_prev=bindir ;;
867 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868 bindir=$ac_optarg ;;
870 -build | --build | --buil | --bui | --bu)
871 ac_prev=build_alias ;;
872 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
873 build_alias=$ac_optarg ;;
875 -cache-file | --cache-file | --cache-fil | --cache-fi \
876 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
877 ac_prev=cache_file ;;
878 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
879 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
880 cache_file=$ac_optarg ;;
882 --config-cache | -C)
883 cache_file=config.cache ;;
885 -datadir | --datadir | --datadi | --datad)
886 ac_prev=datadir ;;
887 -datadir=* | --datadir=* | --datadi=* | --datad=*)
888 datadir=$ac_optarg ;;
890 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
891 | --dataroo | --dataro | --datar)
892 ac_prev=datarootdir ;;
893 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
894 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
895 datarootdir=$ac_optarg ;;
897 -disable-* | --disable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error $? "invalid feature name: $ac_useropt"
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
906 "enable_$ac_useropt"
907 "*) ;;
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
910 esac
911 eval enable_$ac_useropt=no ;;
913 -docdir | --docdir | --docdi | --doc | --do)
914 ac_prev=docdir ;;
915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916 docdir=$ac_optarg ;;
918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919 ac_prev=dvidir ;;
920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921 dvidir=$ac_optarg ;;
923 -enable-* | --enable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error $? "invalid feature name: $ac_useropt"
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
932 "enable_$ac_useropt"
933 "*) ;;
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
936 esac
937 eval enable_$ac_useropt=\$ac_optarg ;;
939 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
940 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
941 | --exec | --exe | --ex)
942 ac_prev=exec_prefix ;;
943 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
944 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
945 | --exec=* | --exe=* | --ex=*)
946 exec_prefix=$ac_optarg ;;
948 -gas | --gas | --ga | --g)
949 # Obsolete; use --with-gas.
950 with_gas=yes ;;
952 -help | --help | --hel | --he | -h)
953 ac_init_help=long ;;
954 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
955 ac_init_help=recursive ;;
956 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
957 ac_init_help=short ;;
959 -host | --host | --hos | --ho)
960 ac_prev=host_alias ;;
961 -host=* | --host=* | --hos=* | --ho=*)
962 host_alias=$ac_optarg ;;
964 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
965 ac_prev=htmldir ;;
966 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
967 | --ht=*)
968 htmldir=$ac_optarg ;;
970 -includedir | --includedir | --includedi | --included | --include \
971 | --includ | --inclu | --incl | --inc)
972 ac_prev=includedir ;;
973 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
974 | --includ=* | --inclu=* | --incl=* | --inc=*)
975 includedir=$ac_optarg ;;
977 -infodir | --infodir | --infodi | --infod | --info | --inf)
978 ac_prev=infodir ;;
979 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
980 infodir=$ac_optarg ;;
982 -libdir | --libdir | --libdi | --libd)
983 ac_prev=libdir ;;
984 -libdir=* | --libdir=* | --libdi=* | --libd=*)
985 libdir=$ac_optarg ;;
987 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
988 | --libexe | --libex | --libe)
989 ac_prev=libexecdir ;;
990 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
991 | --libexe=* | --libex=* | --libe=*)
992 libexecdir=$ac_optarg ;;
994 -localedir | --localedir | --localedi | --localed | --locale)
995 ac_prev=localedir ;;
996 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
997 localedir=$ac_optarg ;;
999 -localstatedir | --localstatedir | --localstatedi | --localstated \
1000 | --localstate | --localstat | --localsta | --localst | --locals)
1001 ac_prev=localstatedir ;;
1002 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1003 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1004 localstatedir=$ac_optarg ;;
1006 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1007 ac_prev=mandir ;;
1008 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1009 mandir=$ac_optarg ;;
1011 -nfp | --nfp | --nf)
1012 # Obsolete; use --without-fp.
1013 with_fp=no ;;
1015 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1016 | --no-cr | --no-c | -n)
1017 no_create=yes ;;
1019 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1020 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1021 no_recursion=yes ;;
1023 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1024 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1025 | --oldin | --oldi | --old | --ol | --o)
1026 ac_prev=oldincludedir ;;
1027 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1028 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1029 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1030 oldincludedir=$ac_optarg ;;
1032 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1033 ac_prev=prefix ;;
1034 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1035 prefix=$ac_optarg ;;
1037 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1038 | --program-pre | --program-pr | --program-p)
1039 ac_prev=program_prefix ;;
1040 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1041 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1042 program_prefix=$ac_optarg ;;
1044 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1045 | --program-suf | --program-su | --program-s)
1046 ac_prev=program_suffix ;;
1047 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1048 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1049 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1059 -program-transform-name=* | --program-transform-name=* \
1060 | --program-transform-nam=* | --program-transform-na=* \
1061 | --program-transform-n=* | --program-transform-=* \
1062 | --program-transform=* | --program-transfor=* \
1063 | --program-transfo=* | --program-transf=* \
1064 | --program-trans=* | --program-tran=* \
1065 | --progr-tra=* | --program-tr=* | --program-t=*)
1066 program_transform_name=$ac_optarg ;;
1068 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1069 ac_prev=pdfdir ;;
1070 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1071 pdfdir=$ac_optarg ;;
1073 -psdir | --psdir | --psdi | --psd | --ps)
1074 ac_prev=psdir ;;
1075 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1076 psdir=$ac_optarg ;;
1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079 | -silent | --silent | --silen | --sile | --sil)
1080 silent=yes ;;
1082 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1083 ac_prev=sbindir ;;
1084 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1085 | --sbi=* | --sb=*)
1086 sbindir=$ac_optarg ;;
1088 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1089 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1090 | --sharedst | --shareds | --shared | --share | --shar \
1091 | --sha | --sh)
1092 ac_prev=sharedstatedir ;;
1093 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1094 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1095 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1096 | --sha=* | --sh=*)
1097 sharedstatedir=$ac_optarg ;;
1099 -site | --site | --sit)
1100 ac_prev=site ;;
1101 -site=* | --site=* | --sit=*)
1102 site=$ac_optarg ;;
1104 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1105 ac_prev=srcdir ;;
1106 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1107 srcdir=$ac_optarg ;;
1109 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1110 | --syscon | --sysco | --sysc | --sys | --sy)
1111 ac_prev=sysconfdir ;;
1112 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1113 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1114 sysconfdir=$ac_optarg ;;
1116 -target | --target | --targe | --targ | --tar | --ta | --t)
1117 ac_prev=target_alias ;;
1118 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1119 target_alias=$ac_optarg ;;
1121 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1122 verbose=yes ;;
1124 -version | --version | --versio | --versi | --vers | -V)
1125 ac_init_version=: ;;
1127 -with-* | --with-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid package name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1136 "with_$ac_useropt"
1137 "*) ;;
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1140 esac
1141 eval with_$ac_useropt=\$ac_optarg ;;
1143 -without-* | --without-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid package name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1152 "with_$ac_useropt"
1153 "*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1156 esac
1157 eval with_$ac_useropt=no ;;
1159 --x)
1160 # Obsolete; use --with-x.
1161 with_x=yes ;;
1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164 | --x-incl | --x-inc | --x-in | --x-i)
1165 ac_prev=x_includes ;;
1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168 x_includes=$ac_optarg ;;
1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172 ac_prev=x_libraries ;;
1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175 x_libraries=$ac_optarg ;;
1177 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1178 Try \`$0 --help' for more information"
1181 *=*)
1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183 # Reject names that are not valid shell variable names.
1184 case $ac_envvar in #(
1185 '' | [0-9]* | *[!_$as_cr_alnum]* )
1186 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1187 esac
1188 eval $ac_envvar=\$ac_optarg
1189 export $ac_envvar ;;
1192 # FIXME: should be removed in autoconf 3.0.
1193 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1199 esac
1200 done
1202 if test -n "$ac_prev"; then
1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204 as_fn_error $? "missing argument to $ac_option"
1207 if test -n "$ac_unrecognized_opts"; then
1208 case $enable_option_checking in
1209 no) ;;
1210 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1211 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1212 esac
1215 # Check all directory arguments for consistency.
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1221 eval ac_val=\$$ac_var
1222 # Remove trailing slashes.
1223 case $ac_val in
1224 */ )
1225 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226 eval $ac_var=\$ac_val;;
1227 esac
1228 # Be sure to have absolute directory names.
1229 case $ac_val in
1230 [\\/$]* | ?:[\\/]* ) continue;;
1231 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1232 esac
1233 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1234 done
1236 # There might be people who depend on the old broken behavior: `$host'
1237 # used to hold the argument of --host etc.
1238 # FIXME: To remove some day.
1239 build=$build_alias
1240 host=$host_alias
1241 target=$target_alias
1243 # FIXME: To remove some day.
1244 if test "x$host_alias" != x; then
1245 if test "x$build_alias" = x; then
1246 cross_compiling=maybe
1247 elif test "x$build_alias" != "x$host_alias"; then
1248 cross_compiling=yes
1252 ac_tool_prefix=
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255 test "$silent" = yes && exec 6>/dev/null
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 as_fn_error $? "working directory cannot be determined"
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 as_fn_error $? "pwd does not report name of working directory"
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$as_myself" ||
1271 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275 $as_echo X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 s//\1/
1280 /^X\(\/\/\)[^/].*/{
1281 s//\1/
1284 /^X\(\/\/\)$/{
1285 s//\1/
1288 /^X\(\/\).*/{
1289 s//\1/
1292 s/.*/./; q'`
1293 srcdir=$ac_confdir
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 srcdir=..
1297 else
1298 ac_srcdir_defaulted=no
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 ac_abs_confdir=`(
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1307 pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
1332 \`configure' configures libltdl 2.4.3a to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1341 Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking ...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 [PREFIX]
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1385 _ACEOF
1387 cat <<\_ACEOF
1389 Program names:
1390 --program-prefix=PREFIX prepend PREFIX to installed program names
1391 --program-suffix=SUFFIX append SUFFIX to installed program names
1392 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1394 System types:
1395 --build=BUILD configure for building on BUILD [guessed]
1396 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1397 _ACEOF
1400 if test -n "$ac_init_help"; then
1401 case $ac_init_help in
1402 short | recursive ) echo "Configuration of libltdl 2.4.3a:";;
1403 esac
1404 cat <<\_ACEOF
1406 Optional Features:
1407 --disable-option-checking ignore unrecognized --enable/--with options
1408 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1409 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1410 --enable-silent-rules less verbose build output (undo: "make V=1")
1411 --disable-silent-rules verbose build output (undo: "make V=0")
1412 --enable-shared[=PKGS] build shared libraries [default=yes]
1413 --enable-static[=PKGS] build static libraries [default=yes]
1414 --enable-fast-install[=PKGS]
1415 optimize for fast installation [default=yes]
1416 --enable-dependency-tracking
1417 do not reject slow dependency extractors
1418 --disable-dependency-tracking
1419 speeds up one-time build
1420 --disable-libtool-lock avoid locking (might break parallel builds)
1421 --enable-ltdl-install install libltdl
1423 Optional Packages:
1424 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1425 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1426 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1427 both]
1428 --with-aix-soname=aix|svr4|both
1429 shared library versioning (aka "SONAME") variant to
1430 provide on AIX, [default=aix].
1431 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1432 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1433 compiler's sysroot if not specified).
1435 Some influential environment variables:
1436 CC C compiler command
1437 CFLAGS C compiler flags
1438 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1439 nonstandard directory <lib dir>
1440 LIBS libraries to pass to the linker, e.g. -l<library>
1441 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1442 you have headers in a nonstandard directory <include dir>
1443 LT_SYS_LIBRARY_PATH
1444 User-defined run-time library search path.
1445 CPP C preprocessor
1447 Use these variables to override the choices made by `configure' or to help
1448 it to find libraries and programs with nonstandard names/locations.
1450 Report bugs to <bug-libtool@gnu.org>.
1451 _ACEOF
1452 ac_status=$?
1455 if test "$ac_init_help" = "recursive"; then
1456 # If there are subdirs, report their specific --help.
1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1458 test -d "$ac_dir" ||
1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460 continue
1461 ac_builddir=.
1463 case "$ac_dir" in
1464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467 # A ".." for each directory in $ac_dir_suffix.
1468 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469 case $ac_top_builddir_sub in
1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472 esac ;;
1473 esac
1474 ac_abs_top_builddir=$ac_pwd
1475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476 # for backward compatibility:
1477 ac_top_builddir=$ac_top_build_prefix
1479 case $srcdir in
1480 .) # We are building in place.
1481 ac_srcdir=.
1482 ac_top_srcdir=$ac_top_builddir_sub
1483 ac_abs_top_srcdir=$ac_pwd ;;
1484 [\\/]* | ?:[\\/]* ) # Absolute name.
1485 ac_srcdir=$srcdir$ac_dir_suffix;
1486 ac_top_srcdir=$srcdir
1487 ac_abs_top_srcdir=$srcdir ;;
1488 *) # Relative name.
1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490 ac_top_srcdir=$ac_top_build_prefix$srcdir
1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492 esac
1493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495 cd "$ac_dir" || { ac_status=$?; continue; }
1496 # Check for guested configure.
1497 if test -f "$ac_srcdir/configure.gnu"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500 elif test -f "$ac_srcdir/configure"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure" --help=recursive
1503 else
1504 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505 fi || ac_status=$?
1506 cd "$ac_pwd" || { ac_status=$?; break; }
1507 done
1510 test -n "$ac_init_help" && exit $ac_status
1511 if $ac_init_version; then
1512 cat <<\_ACEOF
1513 libltdl configure 2.4.3a
1514 generated by GNU Autoconf 2.69
1516 Copyright (C) 2012 Free Software Foundation, Inc.
1517 This configure script is free software; the Free Software Foundation
1518 gives unlimited permission to copy, distribute and modify it.
1519 _ACEOF
1520 exit
1523 ## ------------------------ ##
1524 ## Autoconf initialization. ##
1525 ## ------------------------ ##
1527 # ac_fn_c_try_compile LINENO
1528 # --------------------------
1529 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_c_try_compile ()
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 rm -f conftest.$ac_objext
1534 if { { ac_try="$ac_compile"
1535 case "(($ac_try" in
1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1538 esac
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_compile") 2>conftest.err
1542 ac_status=$?
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } && {
1550 test -z "$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1552 } && test -s conftest.$ac_objext; then :
1553 ac_retval=0
1554 else
1555 $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.$ac_ext >&5
1558 ac_retval=1
1560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561 as_fn_set_status $ac_retval
1563 } # ac_fn_c_try_compile
1565 # ac_fn_c_try_link LINENO
1566 # -----------------------
1567 # Try to link conftest.$ac_ext, and return whether this succeeded.
1568 ac_fn_c_try_link ()
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 rm -f conftest.$ac_objext conftest$ac_exeext
1572 if { { ac_try="$ac_link"
1573 case "(($ac_try" in
1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575 *) ac_try_echo=$ac_try;;
1576 esac
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 $as_echo "$ac_try_echo"; } >&5
1579 (eval "$ac_link") 2>conftest.err
1580 ac_status=$?
1581 if test -s conftest.err; then
1582 grep -v '^ *+' conftest.err >conftest.er1
1583 cat conftest.er1 >&5
1584 mv -f conftest.er1 conftest.err
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; } && {
1588 test -z "$ac_c_werror_flag" ||
1589 test ! -s conftest.err
1590 } && test -s conftest$ac_exeext && {
1591 test "$cross_compiling" = yes ||
1592 test -x conftest$ac_exeext
1593 }; then :
1594 ac_retval=0
1595 else
1596 $as_echo "$as_me: failed program was:" >&5
1597 sed 's/^/| /' conftest.$ac_ext >&5
1599 ac_retval=1
1601 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1602 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1603 # interfere with the next link command; also delete a directory that is
1604 # left behind by Apple's compiler. We do this before executing the actions.
1605 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1609 } # ac_fn_c_try_link
1611 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1612 # -------------------------------------------------------
1613 # Tests whether HEADER exists and can be compiled using the include files in
1614 # INCLUDES, setting the cache variable VAR accordingly.
1615 ac_fn_c_check_header_compile ()
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1619 $as_echo_n "checking for $2... " >&6; }
1620 if eval \${$3+:} false; then :
1621 $as_echo_n "(cached) " >&6
1622 else
1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624 /* end confdefs.h. */
1626 #include <$2>
1627 _ACEOF
1628 if ac_fn_c_try_compile "$LINENO"; then :
1629 eval "$3=yes"
1630 else
1631 eval "$3=no"
1633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1635 eval ac_res=\$$3
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1637 $as_echo "$ac_res" >&6; }
1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 } # ac_fn_c_check_header_compile
1642 # ac_fn_c_try_cpp LINENO
1643 # ----------------------
1644 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_c_try_cpp ()
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 if { { ac_try="$ac_cpp conftest.$ac_ext"
1649 case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1656 ac_status=$?
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } > conftest.i && {
1664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 }; then :
1667 ac_retval=0
1668 else
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1672 ac_retval=1
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675 as_fn_set_status $ac_retval
1677 } # ac_fn_c_try_cpp
1679 # ac_fn_c_try_run LINENO
1680 # ----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1682 # that executables *can* be run.
1683 ac_fn_c_try_run ()
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 if { { ac_try="$ac_link"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>&5
1694 ac_status=$?
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1697 { { case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_try") 2>&5
1704 ac_status=$?
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; }; }; then :
1707 ac_retval=0
1708 else
1709 $as_echo "$as_me: program exited with status $ac_status" >&5
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1713 ac_retval=$ac_status
1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717 as_fn_set_status $ac_retval
1719 } # ac_fn_c_try_run
1721 # ac_fn_c_check_func LINENO FUNC VAR
1722 # ----------------------------------
1723 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1724 ac_fn_c_check_func ()
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728 $as_echo_n "checking for $2... " >&6; }
1729 if eval \${$3+:} false; then :
1730 $as_echo_n "(cached) " >&6
1731 else
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1734 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1736 #define $2 innocuous_$2
1738 /* System header to define __stub macros and hopefully few prototypes,
1739 which can conflict with char $2 (); below.
1740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1741 <limits.h> exists even on freestanding compilers. */
1743 #ifdef __STDC__
1744 # include <limits.h>
1745 #else
1746 # include <assert.h>
1747 #endif
1749 #undef $2
1751 /* Override any GCC internal prototype to avoid an error.
1752 Use char because int might match the return type of a GCC
1753 builtin and then its argument prototype would still apply. */
1754 #ifdef __cplusplus
1755 extern "C"
1756 #endif
1757 char $2 ();
1758 /* The GNU C library defines this for functions which it implements
1759 to always fail with ENOSYS. Some functions are actually named
1760 something starting with __ and the normal name is an alias. */
1761 #if defined __stub_$2 || defined __stub___$2
1762 choke me
1763 #endif
1766 main ()
1768 return $2 ();
1770 return 0;
1772 _ACEOF
1773 if ac_fn_c_try_link "$LINENO"; then :
1774 eval "$3=yes"
1775 else
1776 eval "$3=no"
1778 rm -f core conftest.err conftest.$ac_objext \
1779 conftest$ac_exeext conftest.$ac_ext
1781 eval ac_res=\$$3
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783 $as_echo "$ac_res" >&6; }
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786 } # ac_fn_c_check_func
1788 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1789 # ---------------------------------------------
1790 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1791 # accordingly.
1792 ac_fn_c_check_decl ()
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 as_decl_name=`echo $2|sed 's/ *(.*//'`
1796 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1798 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1799 if eval \${$3+:} false; then :
1800 $as_echo_n "(cached) " >&6
1801 else
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1806 main ()
1808 #ifndef $as_decl_name
1809 #ifdef __cplusplus
1810 (void) $as_decl_use;
1811 #else
1812 (void) $as_decl_name;
1813 #endif
1814 #endif
1817 return 0;
1819 _ACEOF
1820 if ac_fn_c_try_compile "$LINENO"; then :
1821 eval "$3=yes"
1822 else
1823 eval "$3=no"
1825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827 eval ac_res=\$$3
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 } # ac_fn_c_check_decl
1834 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1835 # -------------------------------------------
1836 # Tests whether TYPE exists after having included INCLUDES, setting cache
1837 # variable VAR accordingly.
1838 ac_fn_c_check_type ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1845 else
1846 eval "$3=no"
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1851 main ()
1853 if (sizeof ($2))
1854 return 0;
1856 return 0;
1858 _ACEOF
1859 if ac_fn_c_try_compile "$LINENO"; then :
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1864 main ()
1866 if (sizeof (($2)))
1867 return 0;
1869 return 0;
1871 _ACEOF
1872 if ac_fn_c_try_compile "$LINENO"; then :
1874 else
1875 eval "$3=yes"
1877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 eval ac_res=\$$3
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 } # ac_fn_c_check_type
1887 cat >config.log <<_ACEOF
1888 This file contains any messages produced by compilers while
1889 running configure, to aid debugging if configure makes a mistake.
1891 It was created by libltdl $as_me 2.4.3a, which was
1892 generated by GNU Autoconf 2.69. Invocation command line was
1894 $ $0 $@
1896 _ACEOF
1897 exec 5>>config.log
1899 cat <<_ASUNAME
1900 ## --------- ##
1901 ## Platform. ##
1902 ## --------- ##
1904 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1905 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1906 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1907 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1908 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1910 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1911 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1913 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1914 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1915 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1916 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1917 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1918 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1919 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1921 _ASUNAME
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1926 IFS=$as_save_IFS
1927 test -z "$as_dir" && as_dir=.
1928 $as_echo "PATH: $as_dir"
1929 done
1930 IFS=$as_save_IFS
1932 } >&5
1934 cat >&5 <<_ACEOF
1937 ## ----------- ##
1938 ## Core tests. ##
1939 ## ----------- ##
1941 _ACEOF
1944 # Keep a trace of the command line.
1945 # Strip out --no-create and --no-recursion so they do not pile up.
1946 # Strip out --silent because we don't want to record it for future runs.
1947 # Also quote any args containing shell meta-characters.
1948 # Make two passes to allow for proper duplicate-argument suppression.
1949 ac_configure_args=
1950 ac_configure_args0=
1951 ac_configure_args1=
1952 ac_must_keep_next=false
1953 for ac_pass in 1 2
1955 for ac_arg
1957 case $ac_arg in
1958 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1960 | -silent | --silent | --silen | --sile | --sil)
1961 continue ;;
1962 *\'*)
1963 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1964 esac
1965 case $ac_pass in
1966 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1968 as_fn_append ac_configure_args1 " '$ac_arg'"
1969 if test $ac_must_keep_next = true; then
1970 ac_must_keep_next=false # Got value, back to normal.
1971 else
1972 case $ac_arg in
1973 *=* | --config-cache | -C | -disable-* | --disable-* \
1974 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1975 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1976 | -with-* | --with-* | -without-* | --without-* | --x)
1977 case "$ac_configure_args0 " in
1978 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1979 esac
1981 -* ) ac_must_keep_next=true ;;
1982 esac
1984 as_fn_append ac_configure_args " '$ac_arg'"
1986 esac
1987 done
1988 done
1989 { ac_configure_args0=; unset ac_configure_args0;}
1990 { ac_configure_args1=; unset ac_configure_args1;}
1992 # When interrupted or exit'd, cleanup temporary files, and complete
1993 # config.log. We remove comments because anyway the quotes in there
1994 # would cause problems or look ugly.
1995 # WARNING: Use '\'' to represent an apostrophe within the trap.
1996 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1997 trap 'exit_status=$?
1998 # Save into config.log some information that might help in debugging.
2000 echo
2002 $as_echo "## ---------------- ##
2003 ## Cache variables. ##
2004 ## ---------------- ##"
2005 echo
2006 # The following way of writing the cache mishandles newlines in values,
2008 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2009 eval ac_val=\$$ac_var
2010 case $ac_val in #(
2011 *${as_nl}*)
2012 case $ac_var in #(
2013 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2014 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2015 esac
2016 case $ac_var in #(
2017 _ | IFS | as_nl) ;; #(
2018 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2019 *) { eval $ac_var=; unset $ac_var;} ;;
2020 esac ;;
2021 esac
2022 done
2023 (set) 2>&1 |
2024 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2025 *${as_nl}ac_space=\ *)
2026 sed -n \
2027 "s/'\''/'\''\\\\'\'''\''/g;
2028 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2029 ;; #(
2031 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2033 esac |
2034 sort
2036 echo
2038 $as_echo "## ----------------- ##
2039 ## Output variables. ##
2040 ## ----------------- ##"
2041 echo
2042 for ac_var in $ac_subst_vars
2044 eval ac_val=\$$ac_var
2045 case $ac_val in
2046 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2047 esac
2048 $as_echo "$ac_var='\''$ac_val'\''"
2049 done | sort
2050 echo
2052 if test -n "$ac_subst_files"; then
2053 $as_echo "## ------------------- ##
2054 ## File substitutions. ##
2055 ## ------------------- ##"
2056 echo
2057 for ac_var in $ac_subst_files
2059 eval ac_val=\$$ac_var
2060 case $ac_val in
2061 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2062 esac
2063 $as_echo "$ac_var='\''$ac_val'\''"
2064 done | sort
2065 echo
2068 if test -s confdefs.h; then
2069 $as_echo "## ----------- ##
2070 ## confdefs.h. ##
2071 ## ----------- ##"
2072 echo
2073 cat confdefs.h
2074 echo
2076 test "$ac_signal" != 0 &&
2077 $as_echo "$as_me: caught signal $ac_signal"
2078 $as_echo "$as_me: exit $exit_status"
2079 } >&5
2080 rm -f core *.core core.conftest.* &&
2081 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2082 exit $exit_status
2084 for ac_signal in 1 2 13 15; do
2085 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2086 done
2087 ac_signal=0
2089 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2090 rm -f -r conftest* confdefs.h
2092 $as_echo "/* confdefs.h */" > confdefs.h
2094 # Predefined preprocessor variables.
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_NAME "$PACKAGE_NAME"
2098 _ACEOF
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2102 _ACEOF
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2106 _ACEOF
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_STRING "$PACKAGE_STRING"
2110 _ACEOF
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2114 _ACEOF
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_URL "$PACKAGE_URL"
2118 _ACEOF
2121 # Let the site file select an alternate cache file if it wants to.
2122 # Prefer an explicitly selected file to automatically selected ones.
2123 ac_site_file1=NONE
2124 ac_site_file2=NONE
2125 if test -n "$CONFIG_SITE"; then
2126 # We do not want a PATH search for config.site.
2127 case $CONFIG_SITE in #((
2128 -*) ac_site_file1=./$CONFIG_SITE;;
2129 */*) ac_site_file1=$CONFIG_SITE;;
2130 *) ac_site_file1=./$CONFIG_SITE;;
2131 esac
2132 elif test "x$prefix" != xNONE; then
2133 ac_site_file1=$prefix/share/config.site
2134 ac_site_file2=$prefix/etc/config.site
2135 else
2136 ac_site_file1=$ac_default_prefix/share/config.site
2137 ac_site_file2=$ac_default_prefix/etc/config.site
2139 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2141 test "x$ac_site_file" = xNONE && continue
2142 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2144 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2145 sed 's/^/| /' "$ac_site_file" >&5
2146 . "$ac_site_file" \
2147 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2149 as_fn_error $? "failed to load site script $ac_site_file
2150 See \`config.log' for more details" "$LINENO" 5; }
2152 done
2154 if test -r "$cache_file"; then
2155 # Some versions of bash will fail to source /dev/null (special files
2156 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2157 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2159 $as_echo "$as_me: loading cache $cache_file" >&6;}
2160 case $cache_file in
2161 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2162 *) . "./$cache_file";;
2163 esac
2165 else
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2167 $as_echo "$as_me: creating cache $cache_file" >&6;}
2168 >$cache_file
2171 # Check that the precious variables saved in the cache have kept the same
2172 # value.
2173 ac_cache_corrupted=false
2174 for ac_var in $ac_precious_vars; do
2175 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2176 eval ac_new_set=\$ac_env_${ac_var}_set
2177 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2178 eval ac_new_val=\$ac_env_${ac_var}_value
2179 case $ac_old_set,$ac_new_set in
2180 set,)
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2182 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2183 ac_cache_corrupted=: ;;
2184 ,set)
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2186 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2187 ac_cache_corrupted=: ;;
2188 ,);;
2190 if test "x$ac_old_val" != "x$ac_new_val"; then
2191 # differences in whitespace do not lead to failure.
2192 ac_old_val_w=`echo x $ac_old_val`
2193 ac_new_val_w=`echo x $ac_new_val`
2194 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2196 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2197 ac_cache_corrupted=:
2198 else
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2200 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2201 eval $ac_var=\$ac_old_val
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2204 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2206 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2207 fi;;
2208 esac
2209 # Pass precious variables to config.status.
2210 if test "$ac_new_set" = set; then
2211 case $ac_new_val in
2212 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2213 *) ac_arg=$ac_var=$ac_new_val ;;
2214 esac
2215 case " $ac_configure_args " in
2216 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2217 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2218 esac
2220 done
2221 if $ac_cache_corrupted; then
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2225 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2226 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2228 ## -------------------- ##
2229 ## Main body of script. ##
2230 ## -------------------- ##
2232 ac_ext=c
2233 ac_cpp='$CPP $CPPFLAGS'
2234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2239 ac_config_headers="$ac_config_headers config.h:config-h.in"
2242 ac_aux_dir=
2243 for ac_dir in config "$srcdir"/config; do
2244 if test -f "$ac_dir/install-sh"; then
2245 ac_aux_dir=$ac_dir
2246 ac_install_sh="$ac_aux_dir/install-sh -c"
2247 break
2248 elif test -f "$ac_dir/install.sh"; then
2249 ac_aux_dir=$ac_dir
2250 ac_install_sh="$ac_aux_dir/install.sh -c"
2251 break
2252 elif test -f "$ac_dir/shtool"; then
2253 ac_aux_dir=$ac_dir
2254 ac_install_sh="$ac_aux_dir/shtool install -c"
2255 break
2257 done
2258 if test -z "$ac_aux_dir"; then
2259 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2262 # These three variables are undocumented and unsupported,
2263 # and are intended to be withdrawn in a future Autoconf release.
2264 # They can cause serious problems if a builder's source tree is in a directory
2265 # whose full name contains unusual characters.
2266 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2267 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2268 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2276 # I am me!
2279 ## ------------------------ ##
2280 ## Automake Initialisation. ##
2281 ## ------------------------ ##
2283 am__api_version='1.15'
2285 # Find a good install program. We prefer a C program (faster),
2286 # so one script is as good as another. But avoid the broken or
2287 # incompatible versions:
2288 # SysV /etc/install, /usr/sbin/install
2289 # SunOS /usr/etc/install
2290 # IRIX /sbin/install
2291 # AIX /bin/install
2292 # AmigaOS /C/install, which installs bootblocks on floppy discs
2293 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2294 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2295 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2296 # OS/2's system install, which has a completely different semantic
2297 # ./install, which can be erroneously created by make from ./install.sh.
2298 # Reject install programs that cannot install multiple files.
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2300 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2301 if test -z "$INSTALL"; then
2302 if ${ac_cv_path_install+:} false; then :
2303 $as_echo_n "(cached) " >&6
2304 else
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 for as_dir in $PATH
2308 IFS=$as_save_IFS
2309 test -z "$as_dir" && as_dir=.
2310 # Account for people who put trailing slashes in PATH elements.
2311 case $as_dir/ in #((
2312 ./ | .// | /[cC]/* | \
2313 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2314 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2315 /usr/ucb/* ) ;;
2317 # OSF1 and SCO ODT 3.0 have their own names for install.
2318 # Don't use installbsd from OSF since it installs stuff as root
2319 # by default.
2320 for ac_prog in ginstall scoinst install; do
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2323 if test $ac_prog = install &&
2324 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2325 # AIX install. It has an incompatible calling convention.
2327 elif test $ac_prog = install &&
2328 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2329 # program-specific install script used by HP pwplus--don't use.
2331 else
2332 rm -rf conftest.one conftest.two conftest.dir
2333 echo one > conftest.one
2334 echo two > conftest.two
2335 mkdir conftest.dir
2336 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2337 test -s conftest.one && test -s conftest.two &&
2338 test -s conftest.dir/conftest.one &&
2339 test -s conftest.dir/conftest.two
2340 then
2341 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2342 break 3
2346 done
2347 done
2349 esac
2351 done
2352 IFS=$as_save_IFS
2354 rm -rf conftest.one conftest.two conftest.dir
2357 if test "${ac_cv_path_install+set}" = set; then
2358 INSTALL=$ac_cv_path_install
2359 else
2360 # As a last resort, use the slow shell script. Don't cache a
2361 # value for INSTALL within a source directory, because that will
2362 # break other packages using the cache if that directory is
2363 # removed, or if the value is a relative name.
2364 INSTALL=$ac_install_sh
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2368 $as_echo "$INSTALL" >&6; }
2370 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2371 # It thinks the first close brace ends the variable substitution.
2372 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2374 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2376 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2379 $as_echo_n "checking whether build environment is sane... " >&6; }
2380 # Reject unsafe characters in $srcdir or the absolute working directory
2381 # name. Accept space and tab only in the latter.
2382 am_lf='
2384 case `pwd` in
2385 *[\\\"\#\$\&\'\`$am_lf]*)
2386 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2387 esac
2388 case $srcdir in
2389 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2390 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2391 esac
2393 # Do 'set' in a subshell so we don't clobber the current shell's
2394 # arguments. Must try -L first in case configure is actually a
2395 # symlink; some systems play weird games with the mod time of symlinks
2396 # (eg FreeBSD returns the mod time of the symlink's containing
2397 # directory).
2398 if (
2399 am_has_slept=no
2400 for am_try in 1 2; do
2401 echo "timestamp, slept: $am_has_slept" > conftest.file
2402 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2403 if test "$*" = "X"; then
2404 # -L didn't work.
2405 set X `ls -t "$srcdir/configure" conftest.file`
2407 if test "$*" != "X $srcdir/configure conftest.file" \
2408 && test "$*" != "X conftest.file $srcdir/configure"; then
2410 # If neither matched, then we have a broken ls. This can happen
2411 # if, for instance, CONFIG_SHELL is bash and it inherits a
2412 # broken ls alias from the environment. This has actually
2413 # happened. Such a system could not be considered "sane".
2414 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2415 alias in your environment" "$LINENO" 5
2417 if test "$2" = conftest.file || test $am_try -eq 2; then
2418 break
2420 # Just in case.
2421 sleep 1
2422 am_has_slept=yes
2423 done
2424 test "$2" = conftest.file
2426 then
2427 # Ok.
2429 else
2430 as_fn_error $? "newly created file is older than distributed files!
2431 Check your system clock" "$LINENO" 5
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2434 $as_echo "yes" >&6; }
2435 # If we didn't sleep, we still need to ensure time stamps of config.status and
2436 # generated files are strictly newer.
2437 am_sleep_pid=
2438 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2439 ( sleep 1 ) &
2440 am_sleep_pid=$!
2443 rm -f conftest.file
2445 test "$program_prefix" != NONE &&
2446 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2447 # Use a double $ so make ignores it.
2448 test "$program_suffix" != NONE &&
2449 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2450 # Double any \ or $.
2451 # By default was `s,x,x', remove it if useless.
2452 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2453 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2455 # Expand $ac_aux_dir to an absolute path.
2456 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2458 if test x"${MISSING+set}" != xset; then
2459 case $am_aux_dir in
2460 *\ * | *\ *)
2461 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2463 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2464 esac
2466 # Use eval to expand $SHELL
2467 if eval "$MISSING --is-lightweight"; then
2468 am_missing_run="$MISSING "
2469 else
2470 am_missing_run=
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2472 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2475 if test x"${install_sh+set}" != xset; then
2476 case $am_aux_dir in
2477 *\ * | *\ *)
2478 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2480 install_sh="\${SHELL} $am_aux_dir/install-sh"
2481 esac
2484 # Installed binaries are usually stripped using 'strip' when the user
2485 # run "make install-strip". However 'strip' might not be the right
2486 # tool to use in cross-compilation environments, therefore Automake
2487 # will honor the 'STRIP' environment variable to overrule this program.
2488 if test "$cross_compiling" != no; then
2489 if test -n "$ac_tool_prefix"; then
2490 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2491 set dummy ${ac_tool_prefix}strip; ac_word=$2
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2493 $as_echo_n "checking for $ac_word... " >&6; }
2494 if ${ac_cv_prog_STRIP+:} false; then :
2495 $as_echo_n "(cached) " >&6
2496 else
2497 if test -n "$STRIP"; then
2498 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2499 else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2507 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 break 2
2511 done
2512 done
2513 IFS=$as_save_IFS
2517 STRIP=$ac_cv_prog_STRIP
2518 if test -n "$STRIP"; then
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2520 $as_echo "$STRIP" >&6; }
2521 else
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2523 $as_echo "no" >&6; }
2528 if test -z "$ac_cv_prog_STRIP"; then
2529 ac_ct_STRIP=$STRIP
2530 # Extract the first word of "strip", so it can be a program name with args.
2531 set dummy strip; ac_word=$2
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2533 $as_echo_n "checking for $ac_word... " >&6; }
2534 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2535 $as_echo_n "(cached) " >&6
2536 else
2537 if test -n "$ac_ct_STRIP"; then
2538 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2547 ac_cv_prog_ac_ct_STRIP="strip"
2548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 break 2
2551 done
2552 done
2553 IFS=$as_save_IFS
2557 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2558 if test -n "$ac_ct_STRIP"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2560 $as_echo "$ac_ct_STRIP" >&6; }
2561 else
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2563 $as_echo "no" >&6; }
2566 if test "x$ac_ct_STRIP" = x; then
2567 STRIP=":"
2568 else
2569 case $cross_compiling:$ac_tool_warned in
2570 yes:)
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2573 ac_tool_warned=yes ;;
2574 esac
2575 STRIP=$ac_ct_STRIP
2577 else
2578 STRIP="$ac_cv_prog_STRIP"
2582 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2585 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2586 if test -z "$MKDIR_P"; then
2587 if ${ac_cv_path_mkdir+:} false; then :
2588 $as_echo_n "(cached) " >&6
2589 else
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2593 IFS=$as_save_IFS
2594 test -z "$as_dir" && as_dir=.
2595 for ac_prog in mkdir gmkdir; do
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2598 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2599 'mkdir (GNU coreutils) '* | \
2600 'mkdir (coreutils) '* | \
2601 'mkdir (fileutils) '4.1*)
2602 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2603 break 3;;
2604 esac
2605 done
2606 done
2607 done
2608 IFS=$as_save_IFS
2612 test -d ./--version && rmdir ./--version
2613 if test "${ac_cv_path_mkdir+set}" = set; then
2614 MKDIR_P="$ac_cv_path_mkdir -p"
2615 else
2616 # As a last resort, use the slow shell script. Don't cache a
2617 # value for MKDIR_P within a source directory, because that will
2618 # break other packages using the cache if that directory is
2619 # removed, or if the value is a relative name.
2620 MKDIR_P="$ac_install_sh -d"
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2624 $as_echo "$MKDIR_P" >&6; }
2626 for ac_prog in gawk mawk nawk awk
2628 # Extract the first word of "$ac_prog", so it can be a program name with args.
2629 set dummy $ac_prog; ac_word=$2
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631 $as_echo_n "checking for $ac_word... " >&6; }
2632 if ${ac_cv_prog_AWK+:} false; then :
2633 $as_echo_n "(cached) " >&6
2634 else
2635 if test -n "$AWK"; then
2636 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2645 ac_cv_prog_AWK="$ac_prog"
2646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 break 2
2649 done
2650 done
2651 IFS=$as_save_IFS
2655 AWK=$ac_cv_prog_AWK
2656 if test -n "$AWK"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2658 $as_echo "$AWK" >&6; }
2659 else
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661 $as_echo "no" >&6; }
2665 test -n "$AWK" && break
2666 done
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2669 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2670 set x ${MAKE-make}
2671 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2672 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2673 $as_echo_n "(cached) " >&6
2674 else
2675 cat >conftest.make <<\_ACEOF
2676 SHELL = /bin/sh
2677 all:
2678 @echo '@@@%%%=$(MAKE)=@@@%%%'
2679 _ACEOF
2680 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2681 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2682 *@@@%%%=?*=@@@%%%*)
2683 eval ac_cv_prog_make_${ac_make}_set=yes;;
2685 eval ac_cv_prog_make_${ac_make}_set=no;;
2686 esac
2687 rm -f conftest.make
2689 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2691 $as_echo "yes" >&6; }
2692 SET_MAKE=
2693 else
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2696 SET_MAKE="MAKE=${MAKE-make}"
2699 rm -rf .tst 2>/dev/null
2700 mkdir .tst 2>/dev/null
2701 if test -d .tst; then
2702 am__leading_dot=.
2703 else
2704 am__leading_dot=_
2706 rmdir .tst 2>/dev/null
2708 # Check whether --enable-silent-rules was given.
2709 if test "${enable_silent_rules+set}" = set; then :
2710 enableval=$enable_silent_rules;
2713 case $enable_silent_rules in # (((
2714 yes) AM_DEFAULT_VERBOSITY=0;;
2715 no) AM_DEFAULT_VERBOSITY=1;;
2716 *) AM_DEFAULT_VERBOSITY=1;;
2717 esac
2718 am_make=${MAKE-make}
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2720 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2721 if ${am_cv_make_support_nested_variables+:} false; then :
2722 $as_echo_n "(cached) " >&6
2723 else
2724 if $as_echo 'TRUE=$(BAR$(V))
2725 BAR0=false
2726 BAR1=true
2728 am__doit:
2729 @$(TRUE)
2730 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2731 am_cv_make_support_nested_variables=yes
2732 else
2733 am_cv_make_support_nested_variables=no
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2737 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2738 if test $am_cv_make_support_nested_variables = yes; then
2739 AM_V='$(V)'
2740 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2741 else
2742 AM_V=$AM_DEFAULT_VERBOSITY
2743 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2745 AM_BACKSLASH='\'
2747 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2748 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2749 # is not polluted with repeated "-I."
2750 am__isrc=' -I$(srcdir)'
2751 # test to see if srcdir already configured
2752 if test -f $srcdir/config.status; then
2753 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2757 # test whether we have cygpath
2758 if test -z "$CYGPATH_W"; then
2759 if (cygpath --version) >/dev/null 2>/dev/null; then
2760 CYGPATH_W='cygpath -w'
2761 else
2762 CYGPATH_W=echo
2767 # Define the identity of the package.
2768 PACKAGE='libltdl'
2769 VERSION='2.4.3a'
2772 cat >>confdefs.h <<_ACEOF
2773 #define PACKAGE "$PACKAGE"
2774 _ACEOF
2777 cat >>confdefs.h <<_ACEOF
2778 #define VERSION "$VERSION"
2779 _ACEOF
2781 # Some tools Automake needs.
2783 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2786 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2789 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2792 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2795 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2797 # For better backward compatibility. To be removed once Automake 1.9.x
2798 # dies out for good. For more background, see:
2799 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2800 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2801 mkdir_p='$(MKDIR_P)'
2803 # We need awk for the "check" target (and possibly the TAP driver). The
2804 # system "awk" is bad on some platforms.
2805 # Always define AMTAR for backward compatibility. Yes, it's still used
2806 # in the wild :-( We should find a proper way to deprecate it ...
2807 AMTAR='$${TAR-tar}'
2810 # We'll loop over all known methods to create a tar archive until one works.
2811 _am_tools='gnutar pax cpio none'
2813 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2820 # POSIX will say in a future version that running "rm -f" with no argument
2821 # is OK; and we want to be able to make that assumption in our Makefile
2822 # recipes. So use an aggressive probe to check that the usage we want is
2823 # actually supported "in the wild" to an acceptable degree.
2824 # See automake bug#10828.
2825 # To make any issue more visible, cause the running configure to be aborted
2826 # by default if the 'rm' program in use doesn't match our expectations; the
2827 # user can still override this though.
2828 if rm -f && rm -fr && rm -rf; then : OK; else
2829 cat >&2 <<'END'
2830 Oops!
2832 Your 'rm' program seems unable to run without file operands specified
2833 on the command line, even when the '-f' option is present. This is contrary
2834 to the behaviour of most rm programs out there, and not conforming with
2835 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2837 Please tell bug-automake@gnu.org about your system, including the value
2838 of your $PATH and any error possibly output before this message. This
2839 can help us improve future automake versions.
2842 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2843 echo 'Configuration will proceed anyway, since you have set the' >&2
2844 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2845 echo >&2
2846 else
2847 cat >&2 <<'END'
2848 Aborting the configuration process, to ensure you take notice of the issue.
2850 You can download and install GNU coreutils to get an 'rm' implementation
2851 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2853 If you want to complete the configuration process using your problematic
2854 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2855 to "yes", and re-run configure.
2858 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2862 # Check whether --enable-silent-rules was given.
2863 if test "${enable_silent_rules+set}" = set; then :
2864 enableval=$enable_silent_rules;
2867 case $enable_silent_rules in # (((
2868 yes) AM_DEFAULT_VERBOSITY=0;;
2869 no) AM_DEFAULT_VERBOSITY=1;;
2870 *) AM_DEFAULT_VERBOSITY=0;;
2871 esac
2872 am_make=${MAKE-make}
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2874 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2875 if ${am_cv_make_support_nested_variables+:} false; then :
2876 $as_echo_n "(cached) " >&6
2877 else
2878 if $as_echo 'TRUE=$(BAR$(V))
2879 BAR0=false
2880 BAR1=true
2882 am__doit:
2883 @$(TRUE)
2884 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2885 am_cv_make_support_nested_variables=yes
2886 else
2887 am_cv_make_support_nested_variables=no
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2891 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2892 if test $am_cv_make_support_nested_variables = yes; then
2893 AM_V='$(V)'
2894 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2895 else
2896 AM_V=$AM_DEFAULT_VERBOSITY
2897 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2899 AM_BACKSLASH='\'
2903 ## ------------------------------- ##
2904 ## Libtool specific configuration. ##
2905 ## ------------------------------- ##
2906 pkgdatadir='$datadir'"/$PACKAGE"
2909 ## ----------------------- ##
2910 ## Libtool initialisation. ##
2911 ## ----------------------- ##
2912 case `pwd` in
2913 *\ * | *\ *)
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2915 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2916 esac
2920 macro_version='2.4.6'
2921 macro_revision='2.4.6'
2935 ltmain=$ac_aux_dir/ltmain.sh
2937 # Make sure we can run config.sub.
2938 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2939 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2942 $as_echo_n "checking build system type... " >&6; }
2943 if ${ac_cv_build+:} false; then :
2944 $as_echo_n "(cached) " >&6
2945 else
2946 ac_build_alias=$build_alias
2947 test "x$ac_build_alias" = x &&
2948 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2949 test "x$ac_build_alias" = x &&
2950 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2951 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2952 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2956 $as_echo "$ac_cv_build" >&6; }
2957 case $ac_cv_build in
2958 *-*-*) ;;
2959 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2960 esac
2961 build=$ac_cv_build
2962 ac_save_IFS=$IFS; IFS='-'
2963 set x $ac_cv_build
2964 shift
2965 build_cpu=$1
2966 build_vendor=$2
2967 shift; shift
2968 # Remember, the first character of IFS is used to create $*,
2969 # except with old shells:
2970 build_os=$*
2971 IFS=$ac_save_IFS
2972 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2976 $as_echo_n "checking host system type... " >&6; }
2977 if ${ac_cv_host+:} false; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 if test "x$host_alias" = x; then
2981 ac_cv_host=$ac_cv_build
2982 else
2983 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2984 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2989 $as_echo "$ac_cv_host" >&6; }
2990 case $ac_cv_host in
2991 *-*-*) ;;
2992 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2993 esac
2994 host=$ac_cv_host
2995 ac_save_IFS=$IFS; IFS='-'
2996 set x $ac_cv_host
2997 shift
2998 host_cpu=$1
2999 host_vendor=$2
3000 shift; shift
3001 # Remember, the first character of IFS is used to create $*,
3002 # except with old shells:
3003 host_os=$*
3004 IFS=$ac_save_IFS
3005 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3008 # Backslashify metacharacters that are still active within
3009 # double-quoted strings.
3010 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3012 # Same as above, but do not quote variable references.
3013 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3015 # Sed substitution to delay expansion of an escaped shell variable in a
3016 # double_quote_subst'ed string.
3017 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3019 # Sed substitution to delay expansion of an escaped single quote.
3020 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3022 # Sed substitution to avoid accidental globbing in evaled expressions
3023 no_glob_subst='s/\*/\\\*/g'
3025 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3026 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3027 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3030 $as_echo_n "checking how to print strings... " >&6; }
3031 # Test print first, because it will be a builtin if present.
3032 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3033 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3034 ECHO='print -r --'
3035 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3036 ECHO='printf %s\n'
3037 else
3038 # Use this function as a fallback that always works.
3039 func_fallback_echo ()
3041 eval 'cat <<_LTECHO_EOF
3043 _LTECHO_EOF'
3045 ECHO='func_fallback_echo'
3048 # func_echo_all arg...
3049 # Invoke $ECHO with all args, space-separated.
3050 func_echo_all ()
3052 $ECHO ""
3055 case $ECHO in
3056 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3057 $as_echo "printf" >&6; } ;;
3058 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3059 $as_echo "print -r" >&6; } ;;
3060 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3061 $as_echo "cat" >&6; } ;;
3062 esac
3077 DEPDIR="${am__leading_dot}deps"
3079 ac_config_commands="$ac_config_commands depfiles"
3082 am_make=${MAKE-make}
3083 cat > confinc << 'END'
3084 am__doit:
3085 @echo this is the am__doit target
3086 .PHONY: am__doit
3088 # If we don't find an include directive, just comment out the code.
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3090 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3091 am__include="#"
3092 am__quote=
3093 _am_result=none
3094 # First try GNU make style include.
3095 echo "include confinc" > confmf
3096 # Ignore all kinds of additional output from 'make'.
3097 case `$am_make -s -f confmf 2> /dev/null` in #(
3098 *the\ am__doit\ target*)
3099 am__include=include
3100 am__quote=
3101 _am_result=GNU
3103 esac
3104 # Now try BSD make style include.
3105 if test "$am__include" = "#"; then
3106 echo '.include "confinc"' > confmf
3107 case `$am_make -s -f confmf 2> /dev/null` in #(
3108 *the\ am__doit\ target*)
3109 am__include=.include
3110 am__quote="\""
3111 _am_result=BSD
3113 esac
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3118 $as_echo "$_am_result" >&6; }
3119 rm -f confinc confmf
3121 # Check whether --enable-dependency-tracking was given.
3122 if test "${enable_dependency_tracking+set}" = set; then :
3123 enableval=$enable_dependency_tracking;
3126 if test "x$enable_dependency_tracking" != xno; then
3127 am_depcomp="$ac_aux_dir/depcomp"
3128 AMDEPBACKSLASH='\'
3129 am__nodep='_no'
3131 if test "x$enable_dependency_tracking" != xno; then
3132 AMDEP_TRUE=
3133 AMDEP_FALSE='#'
3134 else
3135 AMDEP_TRUE='#'
3136 AMDEP_FALSE=
3140 ac_ext=c
3141 ac_cpp='$CPP $CPPFLAGS'
3142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3145 if test -n "$ac_tool_prefix"; then
3146 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3147 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if ${ac_cv_prog_CC+:} false; then :
3151 $as_echo_n "(cached) " >&6
3152 else
3153 if test -n "$CC"; then
3154 ac_cv_prog_CC="$CC" # Let the user override the test.
3155 else
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3159 IFS=$as_save_IFS
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3163 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 break 2
3167 done
3168 done
3169 IFS=$as_save_IFS
3173 CC=$ac_cv_prog_CC
3174 if test -n "$CC"; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3176 $as_echo "$CC" >&6; }
3177 else
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3184 if test -z "$ac_cv_prog_CC"; then
3185 ac_ct_CC=$CC
3186 # Extract the first word of "gcc", so it can be a program name with args.
3187 set dummy gcc; ac_word=$2
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 $as_echo_n "checking for $ac_word... " >&6; }
3190 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3191 $as_echo_n "(cached) " >&6
3192 else
3193 if test -n "$ac_ct_CC"; then
3194 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3195 else
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_ac_ct_CC="gcc"
3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 break 2
3207 done
3208 done
3209 IFS=$as_save_IFS
3213 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3214 if test -n "$ac_ct_CC"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3216 $as_echo "$ac_ct_CC" >&6; }
3217 else
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 $as_echo "no" >&6; }
3222 if test "x$ac_ct_CC" = x; then
3223 CC=""
3224 else
3225 case $cross_compiling:$ac_tool_warned in
3226 yes:)
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3229 ac_tool_warned=yes ;;
3230 esac
3231 CC=$ac_ct_CC
3233 else
3234 CC="$ac_cv_prog_CC"
3237 if test -z "$CC"; then
3238 if test -n "$ac_tool_prefix"; then
3239 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3240 set dummy ${ac_tool_prefix}cc; ac_word=$2
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242 $as_echo_n "checking for $ac_word... " >&6; }
3243 if ${ac_cv_prog_CC+:} false; then :
3244 $as_echo_n "(cached) " >&6
3245 else
3246 if test -n "$CC"; then
3247 ac_cv_prog_CC="$CC" # Let the user override the test.
3248 else
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 for as_dir in $PATH
3252 IFS=$as_save_IFS
3253 test -z "$as_dir" && as_dir=.
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3256 ac_cv_prog_CC="${ac_tool_prefix}cc"
3257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 break 2
3260 done
3261 done
3262 IFS=$as_save_IFS
3266 CC=$ac_cv_prog_CC
3267 if test -n "$CC"; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3269 $as_echo "$CC" >&6; }
3270 else
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3278 if test -z "$CC"; then
3279 # Extract the first word of "cc", so it can be a program name with args.
3280 set dummy cc; ac_word=$2
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3282 $as_echo_n "checking for $ac_word... " >&6; }
3283 if ${ac_cv_prog_CC+:} false; then :
3284 $as_echo_n "(cached) " >&6
3285 else
3286 if test -n "$CC"; then
3287 ac_cv_prog_CC="$CC" # Let the user override the test.
3288 else
3289 ac_prog_rejected=no
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in $PATH
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3297 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3298 ac_prog_rejected=yes
3299 continue
3301 ac_cv_prog_CC="cc"
3302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 break 2
3305 done
3306 done
3307 IFS=$as_save_IFS
3309 if test $ac_prog_rejected = yes; then
3310 # We found a bogon in the path, so make sure we never use it.
3311 set dummy $ac_cv_prog_CC
3312 shift
3313 if test $# != 0; then
3314 # We chose a different compiler from the bogus one.
3315 # However, it has the same basename, so the bogon will be chosen
3316 # first if we set CC to just the basename; use the full file name.
3317 shift
3318 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3323 CC=$ac_cv_prog_CC
3324 if test -n "$CC"; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3326 $as_echo "$CC" >&6; }
3327 else
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3334 if test -z "$CC"; then
3335 if test -n "$ac_tool_prefix"; then
3336 for ac_prog in cl.exe
3338 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3339 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if ${ac_cv_prog_CC+:} false; then :
3343 $as_echo_n "(cached) " >&6
3344 else
3345 if test -n "$CC"; then
3346 ac_cv_prog_CC="$CC" # Let the user override the test.
3347 else
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH
3351 IFS=$as_save_IFS
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 break 2
3359 done
3360 done
3361 IFS=$as_save_IFS
3365 CC=$ac_cv_prog_CC
3366 if test -n "$CC"; then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3368 $as_echo "$CC" >&6; }
3369 else
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3375 test -n "$CC" && break
3376 done
3378 if test -z "$CC"; then
3379 ac_ct_CC=$CC
3380 for ac_prog in cl.exe
3382 # Extract the first word of "$ac_prog", so it can be a program name with args.
3383 set dummy $ac_prog; ac_word=$2
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385 $as_echo_n "checking for $ac_word... " >&6; }
3386 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3387 $as_echo_n "(cached) " >&6
3388 else
3389 if test -n "$ac_ct_CC"; then
3390 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3391 else
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 for as_dir in $PATH
3395 IFS=$as_save_IFS
3396 test -z "$as_dir" && as_dir=.
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3399 ac_cv_prog_ac_ct_CC="$ac_prog"
3400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 break 2
3403 done
3404 done
3405 IFS=$as_save_IFS
3409 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3410 if test -n "$ac_ct_CC"; then
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3412 $as_echo "$ac_ct_CC" >&6; }
3413 else
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415 $as_echo "no" >&6; }
3419 test -n "$ac_ct_CC" && break
3420 done
3422 if test "x$ac_ct_CC" = x; then
3423 CC=""
3424 else
3425 case $cross_compiling:$ac_tool_warned in
3426 yes:)
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3429 ac_tool_warned=yes ;;
3430 esac
3431 CC=$ac_ct_CC
3438 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3440 as_fn_error $? "no acceptable C compiler found in \$PATH
3441 See \`config.log' for more details" "$LINENO" 5; }
3443 # Provide some information about the compiler.
3444 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3445 set X $ac_compile
3446 ac_compiler=$2
3447 for ac_option in --version -v -V -qversion; do
3448 { { ac_try="$ac_compiler $ac_option >&5"
3449 case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3456 ac_status=$?
3457 if test -s conftest.err; then
3458 sed '10a\
3459 ... rest of stderr output deleted ...
3460 10q' conftest.err >conftest.er1
3461 cat conftest.er1 >&5
3463 rm -f conftest.er1 conftest.err
3464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465 test $ac_status = 0; }
3466 done
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3472 main ()
3476 return 0;
3478 _ACEOF
3479 ac_clean_files_save=$ac_clean_files
3480 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3481 # Try to create an executable without -o first, disregard a.out.
3482 # It will help us diagnose broken compilers, and finding out an intuition
3483 # of exeext.
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3485 $as_echo_n "checking whether the C compiler works... " >&6; }
3486 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3488 # The possible output files:
3489 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3491 ac_rmfiles=
3492 for ac_file in $ac_files
3494 case $ac_file in
3495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3496 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3497 esac
3498 done
3499 rm -f $ac_rmfiles
3501 if { { ac_try="$ac_link_default"
3502 case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505 esac
3506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507 $as_echo "$ac_try_echo"; } >&5
3508 (eval "$ac_link_default") 2>&5
3509 ac_status=$?
3510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511 test $ac_status = 0; }; then :
3512 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3513 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3514 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3515 # so that the user can short-circuit this test for compilers unknown to
3516 # Autoconf.
3517 for ac_file in $ac_files ''
3519 test -f "$ac_file" || continue
3520 case $ac_file in
3521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3523 [ab].out )
3524 # We found the default executable, but exeext='' is most
3525 # certainly right.
3526 break;;
3527 *.* )
3528 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3529 then :; else
3530 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3532 # We set ac_cv_exeext here because the later test for it is not
3533 # safe: cross compilers may not add the suffix if given an `-o'
3534 # argument, so we may need to know it at that point already.
3535 # Even if this section looks crufty: it has the advantage of
3536 # actually working.
3537 break;;
3539 break;;
3540 esac
3541 done
3542 test "$ac_cv_exeext" = no && ac_cv_exeext=
3544 else
3545 ac_file=''
3547 if test -z "$ac_file"; then :
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549 $as_echo "no" >&6; }
3550 $as_echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555 as_fn_error 77 "C compiler cannot create executables
3556 See \`config.log' for more details" "$LINENO" 5; }
3557 else
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3559 $as_echo "yes" >&6; }
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3562 $as_echo_n "checking for C compiler default output file name... " >&6; }
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3564 $as_echo "$ac_file" >&6; }
3565 ac_exeext=$ac_cv_exeext
3567 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3568 ac_clean_files=$ac_clean_files_save
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3570 $as_echo_n "checking for suffix of executables... " >&6; }
3571 if { { ac_try="$ac_link"
3572 case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3575 esac
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_link") 2>&5
3579 ac_status=$?
3580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581 test $ac_status = 0; }; then :
3582 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3583 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3584 # work properly (i.e., refer to `conftest.exe'), while it won't with
3585 # `rm'.
3586 for ac_file in conftest.exe conftest conftest.*; do
3587 test -f "$ac_file" || continue
3588 case $ac_file in
3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3590 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3591 break;;
3592 * ) break;;
3593 esac
3594 done
3595 else
3596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3598 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3599 See \`config.log' for more details" "$LINENO" 5; }
3601 rm -f conftest conftest$ac_cv_exeext
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3603 $as_echo "$ac_cv_exeext" >&6; }
3605 rm -f conftest.$ac_ext
3606 EXEEXT=$ac_cv_exeext
3607 ac_exeext=$EXEEXT
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3610 #include <stdio.h>
3612 main ()
3614 FILE *f = fopen ("conftest.out", "w");
3615 return ferror (f) || fclose (f) != 0;
3618 return 0;
3620 _ACEOF
3621 ac_clean_files="$ac_clean_files conftest.out"
3622 # Check that the compiler produces executables we can run. If not, either
3623 # the compiler is broken, or we cross compile.
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3625 $as_echo_n "checking whether we are cross compiling... " >&6; }
3626 if test "$cross_compiling" != yes; then
3627 { { ac_try="$ac_link"
3628 case "(($ac_try" in
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3631 esac
3632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3633 $as_echo "$ac_try_echo"; } >&5
3634 (eval "$ac_link") 2>&5
3635 ac_status=$?
3636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3637 test $ac_status = 0; }
3638 if { ac_try='./conftest$ac_cv_exeext'
3639 { { case "(($ac_try" in
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3642 esac
3643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644 $as_echo "$ac_try_echo"; } >&5
3645 (eval "$ac_try") 2>&5
3646 ac_status=$?
3647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3648 test $ac_status = 0; }; }; then
3649 cross_compiling=no
3650 else
3651 if test "$cross_compiling" = maybe; then
3652 cross_compiling=yes
3653 else
3654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656 as_fn_error $? "cannot run C compiled programs.
3657 If you meant to cross compile, use \`--host'.
3658 See \`config.log' for more details" "$LINENO" 5; }
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3663 $as_echo "$cross_compiling" >&6; }
3665 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3666 ac_clean_files=$ac_clean_files_save
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3668 $as_echo_n "checking for suffix of object files... " >&6; }
3669 if ${ac_cv_objext+:} false; then :
3670 $as_echo_n "(cached) " >&6
3671 else
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3676 main ()
3680 return 0;
3682 _ACEOF
3683 rm -f conftest.o conftest.obj
3684 if { { ac_try="$ac_compile"
3685 case "(($ac_try" in
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3688 esac
3689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690 $as_echo "$ac_try_echo"; } >&5
3691 (eval "$ac_compile") 2>&5
3692 ac_status=$?
3693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694 test $ac_status = 0; }; then :
3695 for ac_file in conftest.o conftest.obj conftest.*; do
3696 test -f "$ac_file" || continue;
3697 case $ac_file in
3698 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3699 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3700 break;;
3701 esac
3702 done
3703 else
3704 $as_echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709 as_fn_error $? "cannot compute suffix of object files: cannot compile
3710 See \`config.log' for more details" "$LINENO" 5; }
3712 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3715 $as_echo "$ac_cv_objext" >&6; }
3716 OBJEXT=$ac_cv_objext
3717 ac_objext=$OBJEXT
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3719 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3720 if ${ac_cv_c_compiler_gnu+:} false; then :
3721 $as_echo_n "(cached) " >&6
3722 else
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3727 main ()
3729 #ifndef __GNUC__
3730 choke me
3731 #endif
3734 return 0;
3736 _ACEOF
3737 if ac_fn_c_try_compile "$LINENO"; then :
3738 ac_compiler_gnu=yes
3739 else
3740 ac_compiler_gnu=no
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3747 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3748 if test $ac_compiler_gnu = yes; then
3749 GCC=yes
3750 else
3751 GCC=
3753 ac_test_CFLAGS=${CFLAGS+set}
3754 ac_save_CFLAGS=$CFLAGS
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3756 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3757 if ${ac_cv_prog_cc_g+:} false; then :
3758 $as_echo_n "(cached) " >&6
3759 else
3760 ac_save_c_werror_flag=$ac_c_werror_flag
3761 ac_c_werror_flag=yes
3762 ac_cv_prog_cc_g=no
3763 CFLAGS="-g"
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3768 main ()
3772 return 0;
3774 _ACEOF
3775 if ac_fn_c_try_compile "$LINENO"; then :
3776 ac_cv_prog_cc_g=yes
3777 else
3778 CFLAGS=""
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3783 main ()
3787 return 0;
3789 _ACEOF
3790 if ac_fn_c_try_compile "$LINENO"; then :
3792 else
3793 ac_c_werror_flag=$ac_save_c_werror_flag
3794 CFLAGS="-g"
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3799 main ()
3803 return 0;
3805 _ACEOF
3806 if ac_fn_c_try_compile "$LINENO"; then :
3807 ac_cv_prog_cc_g=yes
3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 ac_c_werror_flag=$ac_save_c_werror_flag
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3817 $as_echo "$ac_cv_prog_cc_g" >&6; }
3818 if test "$ac_test_CFLAGS" = set; then
3819 CFLAGS=$ac_save_CFLAGS
3820 elif test $ac_cv_prog_cc_g = yes; then
3821 if test "$GCC" = yes; then
3822 CFLAGS="-g -O2"
3823 else
3824 CFLAGS="-g"
3826 else
3827 if test "$GCC" = yes; then
3828 CFLAGS="-O2"
3829 else
3830 CFLAGS=
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3834 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3835 if ${ac_cv_prog_cc_c89+:} false; then :
3836 $as_echo_n "(cached) " >&6
3837 else
3838 ac_cv_prog_cc_c89=no
3839 ac_save_CC=$CC
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842 #include <stdarg.h>
3843 #include <stdio.h>
3844 struct stat;
3845 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3846 struct buf { int x; };
3847 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3848 static char *e (p, i)
3849 char **p;
3850 int i;
3852 return p[i];
3854 static char *f (char * (*g) (char **, int), char **p, ...)
3856 char *s;
3857 va_list v;
3858 va_start (v,p);
3859 s = g (p, va_arg (v,int));
3860 va_end (v);
3861 return s;
3864 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3865 function prototypes and stuff, but not '\xHH' hex character constants.
3866 These don't provoke an error unfortunately, instead are silently treated
3867 as 'x'. The following induces an error, until -std is added to get
3868 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3869 array size at least. It's necessary to write '\x00'==0 to get something
3870 that's true only with -std. */
3871 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3873 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3874 inside strings and character constants. */
3875 #define FOO(x) 'x'
3876 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3878 int test (int i, double x);
3879 struct s1 {int (*f) (int a);};
3880 struct s2 {int (*f) (double a);};
3881 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3882 int argc;
3883 char **argv;
3885 main ()
3887 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3889 return 0;
3891 _ACEOF
3892 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3893 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3895 CC="$ac_save_CC $ac_arg"
3896 if ac_fn_c_try_compile "$LINENO"; then :
3897 ac_cv_prog_cc_c89=$ac_arg
3899 rm -f core conftest.err conftest.$ac_objext
3900 test "x$ac_cv_prog_cc_c89" != "xno" && break
3901 done
3902 rm -f conftest.$ac_ext
3903 CC=$ac_save_CC
3906 # AC_CACHE_VAL
3907 case "x$ac_cv_prog_cc_c89" in
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3910 $as_echo "none needed" >&6; } ;;
3911 xno)
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3913 $as_echo "unsupported" >&6; } ;;
3915 CC="$CC $ac_cv_prog_cc_c89"
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3917 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3918 esac
3919 if test "x$ac_cv_prog_cc_c89" != xno; then :
3923 ac_ext=c
3924 ac_cpp='$CPP $CPPFLAGS'
3925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3929 ac_ext=c
3930 ac_cpp='$CPP $CPPFLAGS'
3931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3935 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3936 if ${am_cv_prog_cc_c_o+:} false; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3943 main ()
3947 return 0;
3949 _ACEOF
3950 # Make sure it works both with $CC and with simple cc.
3951 # Following AC_PROG_CC_C_O, we do the test twice because some
3952 # compilers refuse to overwrite an existing .o file with -o,
3953 # though they will create one.
3954 am_cv_prog_cc_c_o=yes
3955 for am_i in 1 2; do
3956 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3957 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } \
3961 && test -f conftest2.$ac_objext; then
3962 : OK
3963 else
3964 am_cv_prog_cc_c_o=no
3965 break
3967 done
3968 rm -f core conftest*
3969 unset am_i
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3972 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3973 if test "$am_cv_prog_cc_c_o" != yes; then
3974 # Losing compiler, so override with the script.
3975 # FIXME: It is wrong to rewrite CC.
3976 # But if we don't then we get into trouble of one sort or another.
3977 # A longer-term fix would be to have automake use am__CC in this case,
3978 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3979 CC="$am_aux_dir/compile $CC"
3981 ac_ext=c
3982 ac_cpp='$CPP $CPPFLAGS'
3983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3988 depcc="$CC" am_compiler_list=
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3991 $as_echo_n "checking dependency style of $depcc... " >&6; }
3992 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3993 $as_echo_n "(cached) " >&6
3994 else
3995 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3996 # We make a subdir and do the tests there. Otherwise we can end up
3997 # making bogus files that we don't know about and never remove. For
3998 # instance it was reported that on HP-UX the gcc test will end up
3999 # making a dummy file named 'D' -- because '-MD' means "put the output
4000 # in D".
4001 rm -rf conftest.dir
4002 mkdir conftest.dir
4003 # Copy depcomp to subdir because otherwise we won't find it if we're
4004 # using a relative directory.
4005 cp "$am_depcomp" conftest.dir
4006 cd conftest.dir
4007 # We will build objects and dependencies in a subdirectory because
4008 # it helps to detect inapplicable dependency modes. For instance
4009 # both Tru64's cc and ICC support -MD to output dependencies as a
4010 # side effect of compilation, but ICC will put the dependencies in
4011 # the current directory while Tru64 will put them in the object
4012 # directory.
4013 mkdir sub
4015 am_cv_CC_dependencies_compiler_type=none
4016 if test "$am_compiler_list" = ""; then
4017 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4019 am__universal=false
4020 case " $depcc " in #(
4021 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4022 esac
4024 for depmode in $am_compiler_list; do
4025 # Setup a source with many dependencies, because some compilers
4026 # like to wrap large dependency lists on column 80 (with \), and
4027 # we should not choose a depcomp mode which is confused by this.
4029 # We need to recreate these files for each test, as the compiler may
4030 # overwrite some of them when testing with obscure command lines.
4031 # This happens at least with the AIX C compiler.
4032 : > sub/conftest.c
4033 for i in 1 2 3 4 5 6; do
4034 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4035 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4036 # Solaris 10 /bin/sh.
4037 echo '/* dummy */' > sub/conftst$i.h
4038 done
4039 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4041 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4042 # mode. It turns out that the SunPro C++ compiler does not properly
4043 # handle '-M -o', and we need to detect this. Also, some Intel
4044 # versions had trouble with output in subdirs.
4045 am__obj=sub/conftest.${OBJEXT-o}
4046 am__minus_obj="-o $am__obj"
4047 case $depmode in
4048 gcc)
4049 # This depmode causes a compiler race in universal mode.
4050 test "$am__universal" = false || continue
4052 nosideeffect)
4053 # After this tag, mechanisms are not by side-effect, so they'll
4054 # only be used when explicitly requested.
4055 if test "x$enable_dependency_tracking" = xyes; then
4056 continue
4057 else
4058 break
4061 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4062 # This compiler won't grok '-c -o', but also, the minuso test has
4063 # not run yet. These depmodes are late enough in the game, and
4064 # so weak that their functioning should not be impacted.
4065 am__obj=conftest.${OBJEXT-o}
4066 am__minus_obj=
4068 none) break ;;
4069 esac
4070 if depmode=$depmode \
4071 source=sub/conftest.c object=$am__obj \
4072 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4073 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4074 >/dev/null 2>conftest.err &&
4075 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4076 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4077 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4078 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4079 # icc doesn't choke on unknown options, it will just issue warnings
4080 # or remarks (even with -Werror). So we grep stderr for any message
4081 # that says an option was ignored or not supported.
4082 # When given -MP, icc 7.0 and 7.1 complain thusly:
4083 # icc: Command line warning: ignoring option '-M'; no argument required
4084 # The diagnosis changed in icc 8.0:
4085 # icc: Command line remark: option '-MP' not supported
4086 if (grep 'ignoring option' conftest.err ||
4087 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4088 am_cv_CC_dependencies_compiler_type=$depmode
4089 break
4092 done
4094 cd ..
4095 rm -rf conftest.dir
4096 else
4097 am_cv_CC_dependencies_compiler_type=none
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4102 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4103 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4106 test "x$enable_dependency_tracking" != xno \
4107 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4108 am__fastdepCC_TRUE=
4109 am__fastdepCC_FALSE='#'
4110 else
4111 am__fastdepCC_TRUE='#'
4112 am__fastdepCC_FALSE=
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4117 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4118 if ${ac_cv_path_SED+:} false; then :
4119 $as_echo_n "(cached) " >&6
4120 else
4121 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4122 for ac_i in 1 2 3 4 5 6 7; do
4123 ac_script="$ac_script$as_nl$ac_script"
4124 done
4125 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4126 { ac_script=; unset ac_script;}
4127 if test -z "$SED"; then
4128 ac_path_SED_found=false
4129 # Loop through the user's path and test for each of PROGNAME-LIST
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
4135 for ac_prog in sed gsed; do
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4138 as_fn_executable_p "$ac_path_SED" || continue
4139 # Check for GNU ac_path_SED and select it if it is found.
4140 # Check for GNU $ac_path_SED
4141 case `"$ac_path_SED" --version 2>&1` in
4142 *GNU*)
4143 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4145 ac_count=0
4146 $as_echo_n 0123456789 >"conftest.in"
4147 while :
4149 cat "conftest.in" "conftest.in" >"conftest.tmp"
4150 mv "conftest.tmp" "conftest.in"
4151 cp "conftest.in" "conftest.nl"
4152 $as_echo '' >> "conftest.nl"
4153 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4155 as_fn_arith $ac_count + 1 && ac_count=$as_val
4156 if test $ac_count -gt ${ac_path_SED_max-0}; then
4157 # Best one so far, save it but keep looking for a better one
4158 ac_cv_path_SED="$ac_path_SED"
4159 ac_path_SED_max=$ac_count
4161 # 10*(2^10) chars as input seems more than enough
4162 test $ac_count -gt 10 && break
4163 done
4164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4165 esac
4167 $ac_path_SED_found && break 3
4168 done
4169 done
4170 done
4171 IFS=$as_save_IFS
4172 if test -z "$ac_cv_path_SED"; then
4173 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4175 else
4176 ac_cv_path_SED=$SED
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4181 $as_echo "$ac_cv_path_SED" >&6; }
4182 SED="$ac_cv_path_SED"
4183 rm -f conftest.sed
4185 test -z "$SED" && SED=sed
4186 Xsed="$SED -e 1s/^X//"
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4199 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4200 if ${ac_cv_path_GREP+:} false; then :
4201 $as_echo_n "(cached) " >&6
4202 else
4203 if test -z "$GREP"; then
4204 ac_path_GREP_found=false
4205 # Loop through the user's path and test for each of PROGNAME-LIST
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 for ac_prog in grep ggrep; do
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4214 as_fn_executable_p "$ac_path_GREP" || continue
4215 # Check for GNU ac_path_GREP and select it if it is found.
4216 # Check for GNU $ac_path_GREP
4217 case `"$ac_path_GREP" --version 2>&1` in
4218 *GNU*)
4219 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4221 ac_count=0
4222 $as_echo_n 0123456789 >"conftest.in"
4223 while :
4225 cat "conftest.in" "conftest.in" >"conftest.tmp"
4226 mv "conftest.tmp" "conftest.in"
4227 cp "conftest.in" "conftest.nl"
4228 $as_echo 'GREP' >> "conftest.nl"
4229 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4231 as_fn_arith $ac_count + 1 && ac_count=$as_val
4232 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4233 # Best one so far, save it but keep looking for a better one
4234 ac_cv_path_GREP="$ac_path_GREP"
4235 ac_path_GREP_max=$ac_count
4237 # 10*(2^10) chars as input seems more than enough
4238 test $ac_count -gt 10 && break
4239 done
4240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4241 esac
4243 $ac_path_GREP_found && break 3
4244 done
4245 done
4246 done
4247 IFS=$as_save_IFS
4248 if test -z "$ac_cv_path_GREP"; then
4249 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4251 else
4252 ac_cv_path_GREP=$GREP
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4257 $as_echo "$ac_cv_path_GREP" >&6; }
4258 GREP="$ac_cv_path_GREP"
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4262 $as_echo_n "checking for egrep... " >&6; }
4263 if ${ac_cv_path_EGREP+:} false; then :
4264 $as_echo_n "(cached) " >&6
4265 else
4266 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4267 then ac_cv_path_EGREP="$GREP -E"
4268 else
4269 if test -z "$EGREP"; then
4270 ac_path_EGREP_found=false
4271 # Loop through the user's path and test for each of PROGNAME-LIST
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_prog in egrep; do
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4280 as_fn_executable_p "$ac_path_EGREP" || continue
4281 # Check for GNU ac_path_EGREP and select it if it is found.
4282 # Check for GNU $ac_path_EGREP
4283 case `"$ac_path_EGREP" --version 2>&1` in
4284 *GNU*)
4285 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4287 ac_count=0
4288 $as_echo_n 0123456789 >"conftest.in"
4289 while :
4291 cat "conftest.in" "conftest.in" >"conftest.tmp"
4292 mv "conftest.tmp" "conftest.in"
4293 cp "conftest.in" "conftest.nl"
4294 $as_echo 'EGREP' >> "conftest.nl"
4295 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4297 as_fn_arith $ac_count + 1 && ac_count=$as_val
4298 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4299 # Best one so far, save it but keep looking for a better one
4300 ac_cv_path_EGREP="$ac_path_EGREP"
4301 ac_path_EGREP_max=$ac_count
4303 # 10*(2^10) chars as input seems more than enough
4304 test $ac_count -gt 10 && break
4305 done
4306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4307 esac
4309 $ac_path_EGREP_found && break 3
4310 done
4311 done
4312 done
4313 IFS=$as_save_IFS
4314 if test -z "$ac_cv_path_EGREP"; then
4315 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4317 else
4318 ac_cv_path_EGREP=$EGREP
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4324 $as_echo "$ac_cv_path_EGREP" >&6; }
4325 EGREP="$ac_cv_path_EGREP"
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4329 $as_echo_n "checking for fgrep... " >&6; }
4330 if ${ac_cv_path_FGREP+:} false; then :
4331 $as_echo_n "(cached) " >&6
4332 else
4333 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4334 then ac_cv_path_FGREP="$GREP -F"
4335 else
4336 if test -z "$FGREP"; then
4337 ac_path_FGREP_found=false
4338 # Loop through the user's path and test for each of PROGNAME-LIST
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_prog in fgrep; do
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4347 as_fn_executable_p "$ac_path_FGREP" || continue
4348 # Check for GNU ac_path_FGREP and select it if it is found.
4349 # Check for GNU $ac_path_FGREP
4350 case `"$ac_path_FGREP" --version 2>&1` in
4351 *GNU*)
4352 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4354 ac_count=0
4355 $as_echo_n 0123456789 >"conftest.in"
4356 while :
4358 cat "conftest.in" "conftest.in" >"conftest.tmp"
4359 mv "conftest.tmp" "conftest.in"
4360 cp "conftest.in" "conftest.nl"
4361 $as_echo 'FGREP' >> "conftest.nl"
4362 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4364 as_fn_arith $ac_count + 1 && ac_count=$as_val
4365 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4366 # Best one so far, save it but keep looking for a better one
4367 ac_cv_path_FGREP="$ac_path_FGREP"
4368 ac_path_FGREP_max=$ac_count
4370 # 10*(2^10) chars as input seems more than enough
4371 test $ac_count -gt 10 && break
4372 done
4373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4374 esac
4376 $ac_path_FGREP_found && break 3
4377 done
4378 done
4379 done
4380 IFS=$as_save_IFS
4381 if test -z "$ac_cv_path_FGREP"; then
4382 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4384 else
4385 ac_cv_path_FGREP=$FGREP
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4391 $as_echo "$ac_cv_path_FGREP" >&6; }
4392 FGREP="$ac_cv_path_FGREP"
4395 test -z "$GREP" && GREP=grep
4415 # Check whether --with-gnu-ld was given.
4416 if test "${with_gnu_ld+set}" = set; then :
4417 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4418 else
4419 with_gnu_ld=no
4422 ac_prog=ld
4423 if test yes = "$GCC"; then
4424 # Check if gcc -print-prog-name=ld gives a path.
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4426 $as_echo_n "checking for ld used by $CC... " >&6; }
4427 case $host in
4428 *-*-mingw*)
4429 # gcc leaves a trailing carriage return, which upsets mingw
4430 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4432 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4433 esac
4434 case $ac_prog in
4435 # Accept absolute paths.
4436 [\\/]* | ?:[\\/]*)
4437 re_direlt='/[^/][^/]*/\.\./'
4438 # Canonicalize the pathname of ld
4439 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4440 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4441 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4442 done
4443 test -z "$LD" && LD=$ac_prog
4446 # If it fails, then pretend we aren't using GCC.
4447 ac_prog=ld
4450 # If it is relative, then search for the first ld in PATH.
4451 with_gnu_ld=unknown
4453 esac
4454 elif test yes = "$with_gnu_ld"; then
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4456 $as_echo_n "checking for GNU ld... " >&6; }
4457 else
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4459 $as_echo_n "checking for non-GNU ld... " >&6; }
4461 if ${lt_cv_path_LD+:} false; then :
4462 $as_echo_n "(cached) " >&6
4463 else
4464 if test -z "$LD"; then
4465 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4466 for ac_dir in $PATH; do
4467 IFS=$lt_save_ifs
4468 test -z "$ac_dir" && ac_dir=.
4469 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4470 lt_cv_path_LD=$ac_dir/$ac_prog
4471 # Check to see if the program is GNU ld. I'd rather use --version,
4472 # but apparently some variants of GNU ld only accept -v.
4473 # Break only if it was the GNU/non-GNU ld that we prefer.
4474 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4475 *GNU* | *'with BFD'*)
4476 test no != "$with_gnu_ld" && break
4479 test yes != "$with_gnu_ld" && break
4481 esac
4483 done
4484 IFS=$lt_save_ifs
4485 else
4486 lt_cv_path_LD=$LD # Let the user override the test with a path.
4490 LD=$lt_cv_path_LD
4491 if test -n "$LD"; then
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4493 $as_echo "$LD" >&6; }
4494 else
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496 $as_echo "no" >&6; }
4498 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4500 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4501 if ${lt_cv_prog_gnu_ld+:} false; then :
4502 $as_echo_n "(cached) " >&6
4503 else
4504 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4505 case `$LD -v 2>&1 </dev/null` in
4506 *GNU* | *'with BFD'*)
4507 lt_cv_prog_gnu_ld=yes
4510 lt_cv_prog_gnu_ld=no
4512 esac
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4515 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4516 with_gnu_ld=$lt_cv_prog_gnu_ld
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4527 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4528 if ${lt_cv_path_NM+:} false; then :
4529 $as_echo_n "(cached) " >&6
4530 else
4531 if test -n "$NM"; then
4532 # Let the user override the test.
4533 lt_cv_path_NM=$NM
4534 else
4535 lt_nm_to_check=${ac_tool_prefix}nm
4536 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4537 lt_nm_to_check="$lt_nm_to_check nm"
4539 for lt_tmp_nm in $lt_nm_to_check; do
4540 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4541 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4542 IFS=$lt_save_ifs
4543 test -z "$ac_dir" && ac_dir=.
4544 tmp_nm=$ac_dir/$lt_tmp_nm
4545 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4546 # Check to see if the nm accepts a BSD-compat flag.
4547 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4548 # nm: unknown option "B" ignored
4549 # Tru64's nm complains that /dev/null is an invalid object file
4550 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4551 case $build_os in
4552 mingw*) lt_bad_file=conftest.nm/nofile ;;
4553 *) lt_bad_file=/dev/null ;;
4554 esac
4555 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4556 *$lt_bad_file* | *'Invalid file or object type'*)
4557 lt_cv_path_NM="$tmp_nm -B"
4558 break 2
4561 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4562 */dev/null*)
4563 lt_cv_path_NM="$tmp_nm -p"
4564 break 2
4567 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4568 continue # so that we can try to find one that supports BSD flags
4570 esac
4572 esac
4574 done
4575 IFS=$lt_save_ifs
4576 done
4577 : ${lt_cv_path_NM=no}
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4581 $as_echo "$lt_cv_path_NM" >&6; }
4582 if test no != "$lt_cv_path_NM"; then
4583 NM=$lt_cv_path_NM
4584 else
4585 # Didn't find any BSD compatible name lister, look for dumpbin.
4586 if test -n "$DUMPBIN"; then :
4587 # Let the user override the test.
4588 else
4589 if test -n "$ac_tool_prefix"; then
4590 for ac_prog in dumpbin "link -dump"
4592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4593 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595 $as_echo_n "checking for $ac_word... " >&6; }
4596 if ${ac_cv_prog_DUMPBIN+:} false; then :
4597 $as_echo_n "(cached) " >&6
4598 else
4599 if test -n "$DUMPBIN"; then
4600 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4601 else
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4609 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 break 2
4613 done
4614 done
4615 IFS=$as_save_IFS
4619 DUMPBIN=$ac_cv_prog_DUMPBIN
4620 if test -n "$DUMPBIN"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4622 $as_echo "$DUMPBIN" >&6; }
4623 else
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4629 test -n "$DUMPBIN" && break
4630 done
4632 if test -z "$DUMPBIN"; then
4633 ac_ct_DUMPBIN=$DUMPBIN
4634 for ac_prog in dumpbin "link -dump"
4636 # Extract the first word of "$ac_prog", so it can be a program name with args.
4637 set dummy $ac_prog; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4641 $as_echo_n "(cached) " >&6
4642 else
4643 if test -n "$ac_ct_DUMPBIN"; then
4644 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 break 2
4657 done
4658 done
4659 IFS=$as_save_IFS
4663 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4664 if test -n "$ac_ct_DUMPBIN"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4666 $as_echo "$ac_ct_DUMPBIN" >&6; }
4667 else
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4673 test -n "$ac_ct_DUMPBIN" && break
4674 done
4676 if test "x$ac_ct_DUMPBIN" = x; then
4677 DUMPBIN=":"
4678 else
4679 case $cross_compiling:$ac_tool_warned in
4680 yes:)
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4683 ac_tool_warned=yes ;;
4684 esac
4685 DUMPBIN=$ac_ct_DUMPBIN
4689 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4690 *COFF*)
4691 DUMPBIN="$DUMPBIN -symbols -headers"
4694 DUMPBIN=:
4696 esac
4699 if test : != "$DUMPBIN"; then
4700 NM=$DUMPBIN
4703 test -z "$NM" && NM=nm
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4711 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4712 if ${lt_cv_nm_interface+:} false; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 lt_cv_nm_interface="BSD nm"
4716 echo "int some_variable = 0;" > conftest.$ac_ext
4717 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4718 (eval "$ac_compile" 2>conftest.err)
4719 cat conftest.err >&5
4720 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4721 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4722 cat conftest.err >&5
4723 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4724 cat conftest.out >&5
4725 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4726 lt_cv_nm_interface="MS dumpbin"
4728 rm -f conftest*
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4731 $as_echo "$lt_cv_nm_interface" >&6; }
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4734 $as_echo_n "checking whether ln -s works... " >&6; }
4735 LN_S=$as_ln_s
4736 if test "$LN_S" = "ln -s"; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4738 $as_echo "yes" >&6; }
4739 else
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4741 $as_echo "no, using $LN_S" >&6; }
4744 # find the maximum length of command line arguments
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4746 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4747 if ${lt_cv_sys_max_cmd_len+:} false; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4751 teststring=ABCD
4753 case $build_os in
4754 msdosdjgpp*)
4755 # On DJGPP, this test can blow up pretty badly due to problems in libc
4756 # (any single argument exceeding 2000 bytes causes a buffer overrun
4757 # during glob expansion). Even if it were fixed, the result of this
4758 # check would be larger than it should be.
4759 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4762 gnu*)
4763 # Under GNU Hurd, this test is not required because there is
4764 # no limit to the length of command line arguments.
4765 # Libtool will interpret -1 as no limit whatsoever
4766 lt_cv_sys_max_cmd_len=-1;
4769 cygwin* | mingw* | cegcc*)
4770 # On Win9x/ME, this test blows up -- it succeeds, but takes
4771 # about 5 minutes as the teststring grows exponentially.
4772 # Worse, since 9x/ME are not pre-emptively multitasking,
4773 # you end up with a "frozen" computer, even though with patience
4774 # the test eventually succeeds (with a max line length of 256k).
4775 # Instead, let's just punt: use the minimum linelength reported by
4776 # all of the supported platforms: 8192 (on NT/2K/XP).
4777 lt_cv_sys_max_cmd_len=8192;
4780 mint*)
4781 # On MiNT this can take a long time and run out of memory.
4782 lt_cv_sys_max_cmd_len=8192;
4785 amigaos*)
4786 # On AmigaOS with pdksh, this test takes hours, literally.
4787 # So we just punt and use a minimum line length of 8192.
4788 lt_cv_sys_max_cmd_len=8192;
4791 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4792 # This has been around since 386BSD, at least. Likely further.
4793 if test -x /sbin/sysctl; then
4794 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4795 elif test -x /usr/sbin/sysctl; then
4796 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4797 else
4798 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4800 # And add a safety zone
4801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4805 interix*)
4806 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4807 lt_cv_sys_max_cmd_len=196608
4810 os2*)
4811 # The test takes a long time on OS/2.
4812 lt_cv_sys_max_cmd_len=8192
4815 osf*)
4816 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4817 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4818 # nice to cause kernel panics so lets avoid the loop below.
4819 # First set a reasonable default.
4820 lt_cv_sys_max_cmd_len=16384
4822 if test -x /sbin/sysconfig; then
4823 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4824 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4825 esac
4828 sco3.2v5*)
4829 lt_cv_sys_max_cmd_len=102400
4831 sysv5* | sco5v6* | sysv4.2uw2*)
4832 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4833 if test -n "$kargmax"; then
4834 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4835 else
4836 lt_cv_sys_max_cmd_len=32768
4840 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4841 if test -n "$lt_cv_sys_max_cmd_len" && \
4842 test undefined != "$lt_cv_sys_max_cmd_len"; then
4843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4845 else
4846 # Make teststring a little bigger before we do anything with it.
4847 # a 1K string should be a reasonable start.
4848 for i in 1 2 3 4 5 6 7 8; do
4849 teststring=$teststring$teststring
4850 done
4851 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4852 # If test is not a shell built-in, we'll probably end up computing a
4853 # maximum length that is only half of the actual maximum length, but
4854 # we can't tell.
4855 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4856 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4857 test 17 != "$i" # 1/2 MB should be enough
4859 i=`expr $i + 1`
4860 teststring=$teststring$teststring
4861 done
4862 # Only check the string length outside the loop.
4863 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4864 teststring=
4865 # Add a significant safety factor because C++ compilers can tack on
4866 # massive amounts of additional arguments before passing them to the
4867 # linker. It appears as though 1/2 is a usable value.
4868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4871 esac
4875 if test -n "$lt_cv_sys_max_cmd_len"; then
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4877 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4878 else
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4880 $as_echo "none" >&6; }
4882 max_cmd_len=$lt_cv_sys_max_cmd_len
4889 : ${CP="cp -f"}
4890 : ${MV="mv -f"}
4891 : ${RM="rm -f"}
4893 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4894 lt_unset=unset
4895 else
4896 lt_unset=false
4903 # test EBCDIC or ASCII
4904 case `echo X|tr X '\101'` in
4905 A) # ASCII based system
4906 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4907 lt_SP2NL='tr \040 \012'
4908 lt_NL2SP='tr \015\012 \040\040'
4910 *) # EBCDIC based system
4911 lt_SP2NL='tr \100 \n'
4912 lt_NL2SP='tr \r\n \100\100'
4914 esac
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4925 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4926 if ${lt_cv_to_host_file_cmd+:} false; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 case $host in
4930 *-*-mingw* )
4931 case $build in
4932 *-*-mingw* ) # actually msys
4933 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4935 *-*-cygwin* )
4936 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4938 * ) # otherwise, assume *nix
4939 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4941 esac
4943 *-*-cygwin* )
4944 case $build in
4945 *-*-mingw* ) # actually msys
4946 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4948 *-*-cygwin* )
4949 lt_cv_to_host_file_cmd=func_convert_file_noop
4951 * ) # otherwise, assume *nix
4952 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4954 esac
4956 * ) # unhandled hosts (and "normal" native builds)
4957 lt_cv_to_host_file_cmd=func_convert_file_noop
4959 esac
4963 to_host_file_cmd=$lt_cv_to_host_file_cmd
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4965 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4972 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4973 if ${lt_cv_to_tool_file_cmd+:} false; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 #assume ordinary cross tools, or native build.
4977 lt_cv_to_tool_file_cmd=func_convert_file_noop
4978 case $host in
4979 *-*-mingw* )
4980 case $build in
4981 *-*-mingw* ) # actually msys
4982 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4984 esac
4986 esac
4990 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4992 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4999 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5000 if ${lt_cv_ld_reload_flag+:} false; then :
5001 $as_echo_n "(cached) " >&6
5002 else
5003 lt_cv_ld_reload_flag='-r'
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5006 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5007 reload_flag=$lt_cv_ld_reload_flag
5008 case $reload_flag in
5009 "" | " "*) ;;
5010 *) reload_flag=" $reload_flag" ;;
5011 esac
5012 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5013 case $host_os in
5014 cygwin* | mingw* | pw32* | cegcc*)
5015 if test yes != "$GCC"; then
5016 reload_cmds=false
5019 darwin*)
5020 if test yes = "$GCC"; then
5021 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5022 else
5023 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5026 esac
5036 if test -n "$ac_tool_prefix"; then
5037 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5038 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5040 $as_echo_n "checking for $ac_word... " >&6; }
5041 if ${ac_cv_prog_OBJDUMP+:} false; then :
5042 $as_echo_n "(cached) " >&6
5043 else
5044 if test -n "$OBJDUMP"; then
5045 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5046 else
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH
5050 IFS=$as_save_IFS
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5054 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 break 2
5058 done
5059 done
5060 IFS=$as_save_IFS
5064 OBJDUMP=$ac_cv_prog_OBJDUMP
5065 if test -n "$OBJDUMP"; then
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5067 $as_echo "$OBJDUMP" >&6; }
5068 else
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070 $as_echo "no" >&6; }
5075 if test -z "$ac_cv_prog_OBJDUMP"; then
5076 ac_ct_OBJDUMP=$OBJDUMP
5077 # Extract the first word of "objdump", so it can be a program name with args.
5078 set dummy objdump; ac_word=$2
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5080 $as_echo_n "checking for $ac_word... " >&6; }
5081 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5082 $as_echo_n "(cached) " >&6
5083 else
5084 if test -n "$ac_ct_OBJDUMP"; then
5085 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5086 else
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH
5090 IFS=$as_save_IFS
5091 test -z "$as_dir" && as_dir=.
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5094 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 break 2
5098 done
5099 done
5100 IFS=$as_save_IFS
5104 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5105 if test -n "$ac_ct_OBJDUMP"; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5107 $as_echo "$ac_ct_OBJDUMP" >&6; }
5108 else
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110 $as_echo "no" >&6; }
5113 if test "x$ac_ct_OBJDUMP" = x; then
5114 OBJDUMP="false"
5115 else
5116 case $cross_compiling:$ac_tool_warned in
5117 yes:)
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5120 ac_tool_warned=yes ;;
5121 esac
5122 OBJDUMP=$ac_ct_OBJDUMP
5124 else
5125 OBJDUMP="$ac_cv_prog_OBJDUMP"
5128 test -z "$OBJDUMP" && OBJDUMP=objdump
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5136 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5137 if ${lt_cv_deplibs_check_method+:} false; then :
5138 $as_echo_n "(cached) " >&6
5139 else
5140 lt_cv_file_magic_cmd='$MAGIC_CMD'
5141 lt_cv_file_magic_test_file=
5142 lt_cv_deplibs_check_method='unknown'
5143 # Need to set the preceding variable on all platforms that support
5144 # interlibrary dependencies.
5145 # 'none' -- dependencies not supported.
5146 # 'unknown' -- same as none, but documents that we really don't know.
5147 # 'pass_all' -- all dependencies passed with no checks.
5148 # 'test_compile' -- check by making test program.
5149 # 'file_magic [[regex]]' -- check by looking for files in library path
5150 # that responds to the $file_magic_cmd with a given extended regex.
5151 # If you have 'file' or equivalent on your system and you're not sure
5152 # whether 'pass_all' will *always* work, you probably want this one.
5154 case $host_os in
5155 aix[4-9]*)
5156 lt_cv_deplibs_check_method=pass_all
5159 beos*)
5160 lt_cv_deplibs_check_method=pass_all
5163 bsdi[45]*)
5164 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5165 lt_cv_file_magic_cmd='/usr/bin/file -L'
5166 lt_cv_file_magic_test_file=/shlib/libc.so
5169 cygwin*)
5170 # func_win32_libid is a shell function defined in ltmain.sh
5171 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5172 lt_cv_file_magic_cmd='func_win32_libid'
5175 mingw* | pw32*)
5176 # Base MSYS/MinGW do not provide the 'file' command needed by
5177 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5178 # unless we find 'file', for example because we are cross-compiling.
5179 if ( file / ) >/dev/null 2>&1; then
5180 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5181 lt_cv_file_magic_cmd='func_win32_libid'
5182 else
5183 # Keep this pattern in sync with the one in func_win32_libid.
5184 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5185 lt_cv_file_magic_cmd='$OBJDUMP -f'
5189 cegcc*)
5190 # use the weaker test based on 'objdump'. See mingw*.
5191 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5192 lt_cv_file_magic_cmd='$OBJDUMP -f'
5195 darwin* | rhapsody*)
5196 lt_cv_deplibs_check_method=pass_all
5199 freebsd* | dragonfly*)
5200 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5201 case $host_cpu in
5202 i*86 )
5203 # Not sure whether the presence of OpenBSD here was a mistake.
5204 # Let's accept both of them until this is cleared up.
5205 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5206 lt_cv_file_magic_cmd=/usr/bin/file
5207 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5209 esac
5210 else
5211 lt_cv_deplibs_check_method=pass_all
5215 haiku*)
5216 lt_cv_deplibs_check_method=pass_all
5219 hpux10.20* | hpux11*)
5220 lt_cv_file_magic_cmd=/usr/bin/file
5221 case $host_cpu in
5222 ia64*)
5223 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5224 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5226 hppa*64*)
5227 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]'
5228 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5231 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5232 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5234 esac
5237 interix[3-9]*)
5238 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5239 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5242 irix5* | irix6* | nonstopux*)
5243 case $LD in
5244 *-32|*"-32 ") libmagic=32-bit;;
5245 *-n32|*"-n32 ") libmagic=N32;;
5246 *-64|*"-64 ") libmagic=64-bit;;
5247 *) libmagic=never-match;;
5248 esac
5249 lt_cv_deplibs_check_method=pass_all
5252 # This must be glibc/ELF.
5253 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5254 lt_cv_deplibs_check_method=pass_all
5257 netbsd*)
5258 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5259 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5260 else
5261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5265 newos6*)
5266 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5267 lt_cv_file_magic_cmd=/usr/bin/file
5268 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5271 *nto* | *qnx*)
5272 lt_cv_deplibs_check_method=pass_all
5275 openbsd* | bitrig*)
5276 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5278 else
5279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5283 osf3* | osf4* | osf5*)
5284 lt_cv_deplibs_check_method=pass_all
5287 rdos*)
5288 lt_cv_deplibs_check_method=pass_all
5291 solaris*)
5292 lt_cv_deplibs_check_method=pass_all
5295 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5296 lt_cv_deplibs_check_method=pass_all
5299 sysv4 | sysv4.3*)
5300 case $host_vendor in
5301 motorola)
5302 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]'
5303 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5305 ncr)
5306 lt_cv_deplibs_check_method=pass_all
5308 sequent)
5309 lt_cv_file_magic_cmd='/bin/file'
5310 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5312 sni)
5313 lt_cv_file_magic_cmd='/bin/file'
5314 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5315 lt_cv_file_magic_test_file=/lib/libc.so
5317 siemens)
5318 lt_cv_deplibs_check_method=pass_all
5321 lt_cv_deplibs_check_method=pass_all
5323 esac
5326 tpf*)
5327 lt_cv_deplibs_check_method=pass_all
5329 os2*)
5330 lt_cv_deplibs_check_method=pass_all
5332 esac
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5336 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5338 file_magic_glob=
5339 want_nocaseglob=no
5340 if test "$build" = "$host"; then
5341 case $host_os in
5342 mingw* | pw32*)
5343 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5344 want_nocaseglob=yes
5345 else
5346 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5349 esac
5352 file_magic_cmd=$lt_cv_file_magic_cmd
5353 deplibs_check_method=$lt_cv_deplibs_check_method
5354 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5377 if test -n "$ac_tool_prefix"; then
5378 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5379 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5381 $as_echo_n "checking for $ac_word... " >&6; }
5382 if ${ac_cv_prog_DLLTOOL+:} false; then :
5383 $as_echo_n "(cached) " >&6
5384 else
5385 if test -n "$DLLTOOL"; then
5386 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5387 else
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5395 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5397 break 2
5399 done
5400 done
5401 IFS=$as_save_IFS
5405 DLLTOOL=$ac_cv_prog_DLLTOOL
5406 if test -n "$DLLTOOL"; then
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5408 $as_echo "$DLLTOOL" >&6; }
5409 else
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5416 if test -z "$ac_cv_prog_DLLTOOL"; then
5417 ac_ct_DLLTOOL=$DLLTOOL
5418 # Extract the first word of "dlltool", so it can be a program name with args.
5419 set dummy dlltool; ac_word=$2
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5421 $as_echo_n "checking for $ac_word... " >&6; }
5422 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 if test -n "$ac_ct_DLLTOOL"; then
5426 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5427 else
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH
5431 IFS=$as_save_IFS
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5435 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 break 2
5439 done
5440 done
5441 IFS=$as_save_IFS
5445 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5446 if test -n "$ac_ct_DLLTOOL"; then
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5448 $as_echo "$ac_ct_DLLTOOL" >&6; }
5449 else
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 $as_echo "no" >&6; }
5454 if test "x$ac_ct_DLLTOOL" = x; then
5455 DLLTOOL="false"
5456 else
5457 case $cross_compiling:$ac_tool_warned in
5458 yes:)
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5461 ac_tool_warned=yes ;;
5462 esac
5463 DLLTOOL=$ac_ct_DLLTOOL
5465 else
5466 DLLTOOL="$ac_cv_prog_DLLTOOL"
5469 test -z "$DLLTOOL" && DLLTOOL=dlltool
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5478 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5479 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5480 $as_echo_n "(cached) " >&6
5481 else
5482 lt_cv_sharedlib_from_linklib_cmd='unknown'
5484 case $host_os in
5485 cygwin* | mingw* | pw32* | cegcc*)
5486 # two different shell functions defined in ltmain.sh;
5487 # decide which one to use based on capabilities of $DLLTOOL
5488 case `$DLLTOOL --help 2>&1` in
5489 *--identify-strict*)
5490 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5493 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5495 esac
5498 # fallback: assume linklib IS sharedlib
5499 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5501 esac
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5505 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5506 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5507 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5516 if test -n "$ac_tool_prefix"; then
5517 for ac_prog in ar
5519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if ${ac_cv_prog_AR+:} false; then :
5524 $as_echo_n "(cached) " >&6
5525 else
5526 if test -n "$AR"; then
5527 ac_cv_prog_AR="$AR" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5536 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 break 2
5540 done
5541 done
5542 IFS=$as_save_IFS
5546 AR=$ac_cv_prog_AR
5547 if test -n "$AR"; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5549 $as_echo "$AR" >&6; }
5550 else
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5556 test -n "$AR" && break
5557 done
5559 if test -z "$AR"; then
5560 ac_ct_AR=$AR
5561 for ac_prog in ar
5563 # Extract the first word of "$ac_prog", so it can be a program name with args.
5564 set dummy $ac_prog; ac_word=$2
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 if test -n "$ac_ct_AR"; then
5571 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5572 else
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5576 IFS=$as_save_IFS
5577 test -z "$as_dir" && as_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5580 ac_cv_prog_ac_ct_AR="$ac_prog"
5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 break 2
5584 done
5585 done
5586 IFS=$as_save_IFS
5590 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5591 if test -n "$ac_ct_AR"; then
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5593 $as_echo "$ac_ct_AR" >&6; }
5594 else
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5600 test -n "$ac_ct_AR" && break
5601 done
5603 if test "x$ac_ct_AR" = x; then
5604 AR="false"
5605 else
5606 case $cross_compiling:$ac_tool_warned in
5607 yes:)
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5610 ac_tool_warned=yes ;;
5611 esac
5612 AR=$ac_ct_AR
5616 : ${AR=ar}
5617 : ${AR_FLAGS=cru}
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5630 $as_echo_n "checking for archiver @FILE support... " >&6; }
5631 if ${lt_cv_ar_at_file+:} false; then :
5632 $as_echo_n "(cached) " >&6
5633 else
5634 lt_cv_ar_at_file=no
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5639 main ()
5643 return 0;
5645 _ACEOF
5646 if ac_fn_c_try_compile "$LINENO"; then :
5647 echo conftest.$ac_objext > conftest.lst
5648 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5650 (eval $lt_ar_try) 2>&5
5651 ac_status=$?
5652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5653 test $ac_status = 0; }
5654 if test 0 -eq "$ac_status"; then
5655 # Ensure the archiver fails upon bogus file names.
5656 rm -f conftest.$ac_objext libconftest.a
5657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5658 (eval $lt_ar_try) 2>&5
5659 ac_status=$?
5660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5661 test $ac_status = 0; }
5662 if test 0 -ne "$ac_status"; then
5663 lt_cv_ar_at_file=@
5666 rm -f conftest.* libconftest.a
5669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5673 $as_echo "$lt_cv_ar_at_file" >&6; }
5675 if test no = "$lt_cv_ar_at_file"; then
5676 archiver_list_spec=
5677 else
5678 archiver_list_spec=$lt_cv_ar_at_file
5687 if test -n "$ac_tool_prefix"; then
5688 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5689 set dummy ${ac_tool_prefix}strip; ac_word=$2
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5691 $as_echo_n "checking for $ac_word... " >&6; }
5692 if ${ac_cv_prog_STRIP+:} false; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 if test -n "$STRIP"; then
5696 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5697 else
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH
5701 IFS=$as_save_IFS
5702 test -z "$as_dir" && as_dir=.
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5705 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5707 break 2
5709 done
5710 done
5711 IFS=$as_save_IFS
5715 STRIP=$ac_cv_prog_STRIP
5716 if test -n "$STRIP"; then
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5718 $as_echo "$STRIP" >&6; }
5719 else
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721 $as_echo "no" >&6; }
5726 if test -z "$ac_cv_prog_STRIP"; then
5727 ac_ct_STRIP=$STRIP
5728 # Extract the first word of "strip", so it can be a program name with args.
5729 set dummy strip; ac_word=$2
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 $as_echo_n "checking for $ac_word... " >&6; }
5732 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 if test -n "$ac_ct_STRIP"; then
5736 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745 ac_cv_prog_ac_ct_STRIP="strip"
5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 break 2
5749 done
5750 done
5751 IFS=$as_save_IFS
5755 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5756 if test -n "$ac_ct_STRIP"; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5758 $as_echo "$ac_ct_STRIP" >&6; }
5759 else
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }
5764 if test "x$ac_ct_STRIP" = x; then
5765 STRIP=":"
5766 else
5767 case $cross_compiling:$ac_tool_warned in
5768 yes:)
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5771 ac_tool_warned=yes ;;
5772 esac
5773 STRIP=$ac_ct_STRIP
5775 else
5776 STRIP="$ac_cv_prog_STRIP"
5779 test -z "$STRIP" && STRIP=:
5786 if test -n "$ac_tool_prefix"; then
5787 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5788 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790 $as_echo_n "checking for $ac_word... " >&6; }
5791 if ${ac_cv_prog_RANLIB+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 if test -n "$RANLIB"; then
5795 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5796 else
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 for as_dir in $PATH
5800 IFS=$as_save_IFS
5801 test -z "$as_dir" && as_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5804 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5806 break 2
5808 done
5809 done
5810 IFS=$as_save_IFS
5814 RANLIB=$ac_cv_prog_RANLIB
5815 if test -n "$RANLIB"; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5817 $as_echo "$RANLIB" >&6; }
5818 else
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820 $as_echo "no" >&6; }
5825 if test -z "$ac_cv_prog_RANLIB"; then
5826 ac_ct_RANLIB=$RANLIB
5827 # Extract the first word of "ranlib", so it can be a program name with args.
5828 set dummy ranlib; ac_word=$2
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5830 $as_echo_n "checking for $ac_word... " >&6; }
5831 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5832 $as_echo_n "(cached) " >&6
5833 else
5834 if test -n "$ac_ct_RANLIB"; then
5835 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5836 else
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 for as_dir in $PATH
5840 IFS=$as_save_IFS
5841 test -z "$as_dir" && as_dir=.
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5844 ac_cv_prog_ac_ct_RANLIB="ranlib"
5845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 break 2
5848 done
5849 done
5850 IFS=$as_save_IFS
5854 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5855 if test -n "$ac_ct_RANLIB"; then
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5857 $as_echo "$ac_ct_RANLIB" >&6; }
5858 else
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5860 $as_echo "no" >&6; }
5863 if test "x$ac_ct_RANLIB" = x; then
5864 RANLIB=":"
5865 else
5866 case $cross_compiling:$ac_tool_warned in
5867 yes:)
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5870 ac_tool_warned=yes ;;
5871 esac
5872 RANLIB=$ac_ct_RANLIB
5874 else
5875 RANLIB="$ac_cv_prog_RANLIB"
5878 test -z "$RANLIB" && RANLIB=:
5885 # Determine commands to create old-style static archives.
5886 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5887 old_postinstall_cmds='chmod 644 $oldlib'
5888 old_postuninstall_cmds=
5890 if test -n "$RANLIB"; then
5891 case $host_os in
5892 bitrig* | openbsd*)
5893 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5896 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5898 esac
5899 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5902 case $host_os in
5903 darwin*)
5904 lock_old_archive_extraction=yes ;;
5906 lock_old_archive_extraction=no ;;
5907 esac
5947 # If no C compiler was specified, use CC.
5948 LTCC=${LTCC-"$CC"}
5950 # If no C compiler flags were specified, use CFLAGS.
5951 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5953 # Allow CC to be a program name with arguments.
5954 compiler=$CC
5957 # Check for command to grab the raw symbol name followed by C symbol from nm.
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5959 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5960 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5964 # These are sane defaults that work on at least a few old systems.
5965 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5967 # Character class describing NM global symbol codes.
5968 symcode='[BCDEGRST]'
5970 # Regexp to match symbols that can be accessed directly from C.
5971 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5973 # Define system-specific variables.
5974 case $host_os in
5975 aix*)
5976 symcode='[BCDT]'
5978 cygwin* | mingw* | pw32* | cegcc*)
5979 symcode='[ABCDGISTW]'
5981 hpux*)
5982 if test ia64 = "$host_cpu"; then
5983 symcode='[ABCDEGRST]'
5986 irix* | nonstopux*)
5987 symcode='[BCDEGRST]'
5989 osf*)
5990 symcode='[BCDEGQRST]'
5992 solaris*)
5993 symcode='[BDRT]'
5995 sco3.2v5*)
5996 symcode='[DT]'
5998 sysv4.2uw2*)
5999 symcode='[DT]'
6001 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6002 symcode='[ABDT]'
6004 sysv4)
6005 symcode='[DFNSTU]'
6007 esac
6009 # If we're using GNU nm, then use its standard symbol codes.
6010 case `$NM -V 2>&1` in
6011 *GNU* | *'with BFD'*)
6012 symcode='[ABCDGIRSTW]' ;;
6013 esac
6015 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6016 # Gets list of data symbols to import.
6017 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6018 # Adjust the below global symbol transforms to fixup imported variables.
6019 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6020 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6021 lt_c_name_lib_hook="\
6022 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6023 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6024 else
6025 # Disable hooks by default.
6026 lt_cv_sys_global_symbol_to_import=
6027 lt_cdecl_hook=
6028 lt_c_name_hook=
6029 lt_c_name_lib_hook=
6032 # Transform an extracted symbol line into a proper C declaration.
6033 # Some systems (esp. on ia64) link data and code symbols differently,
6034 # so use this general approach.
6035 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6036 $lt_cdecl_hook\
6037 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6038 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6040 # Transform an extracted symbol line into symbol name and symbol address
6041 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6042 $lt_c_name_hook\
6043 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6044 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6046 # Transform an extracted symbol line into symbol name with lib prefix and
6047 # symbol address.
6048 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6049 $lt_c_name_lib_hook\
6050 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6051 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6052 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6054 # Handle CRLF in mingw tool chain
6055 opt_cr=
6056 case $build_os in
6057 mingw*)
6058 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6060 esac
6062 # Try without a prefix underscore, then with it.
6063 for ac_symprfx in "" "_"; do
6065 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6066 symxfrm="\\1 $ac_symprfx\\2 \\2"
6068 # Write the raw and C identifiers.
6069 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6070 # Fake it for dumpbin and say T for any non-static function,
6071 # D for any global variable and I for any imported variable.
6072 # Also find C++ and __fastcall symbols from MSVC++,
6073 # which start with @ or ?.
6074 lt_cv_sys_global_symbol_pipe="$AWK '"\
6075 " {last_section=section; section=\$ 3};"\
6076 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6077 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6078 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6079 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6080 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6081 " \$ 0!~/External *\|/{next};"\
6082 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6083 " {if(hide[section]) next};"\
6084 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6085 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6086 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6087 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6088 " ' prfx=^$ac_symprfx"
6089 else
6090 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6092 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6094 # Check to see that the pipe works correctly.
6095 pipe_works=no
6097 rm -f conftest*
6098 cat > conftest.$ac_ext <<_LT_EOF
6099 #ifdef __cplusplus
6100 extern "C" {
6101 #endif
6102 char nm_test_var;
6103 void nm_test_func(void);
6104 void nm_test_func(void){}
6105 #ifdef __cplusplus
6107 #endif
6108 int main(){nm_test_var='a';nm_test_func();return(0);}
6109 _LT_EOF
6111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6112 (eval $ac_compile) 2>&5
6113 ac_status=$?
6114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6115 test $ac_status = 0; }; then
6116 # Now try to grab the symbols.
6117 nlist=conftest.nm
6118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6119 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6120 ac_status=$?
6121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6122 test $ac_status = 0; } && test -s "$nlist"; then
6123 # Try sorting and uniquifying the output.
6124 if sort "$nlist" | uniq > "$nlist"T; then
6125 mv -f "$nlist"T "$nlist"
6126 else
6127 rm -f "$nlist"T
6130 # Make sure that we snagged all the symbols we need.
6131 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6132 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6133 cat <<_LT_EOF > conftest.$ac_ext
6134 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6135 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6136 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6137 relocations are performed -- see ld's documentation on pseudo-relocs. */
6138 # define LT_DLSYM_CONST
6139 #elif defined __osf__
6140 /* This system does not cope well with relocations in const data. */
6141 # define LT_DLSYM_CONST
6142 #else
6143 # define LT_DLSYM_CONST const
6144 #endif
6146 #ifdef __cplusplus
6147 extern "C" {
6148 #endif
6150 _LT_EOF
6151 # Now generate the symbol file.
6152 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6154 cat <<_LT_EOF >> conftest.$ac_ext
6156 /* The mapping between symbol names and symbols. */
6157 LT_DLSYM_CONST struct {
6158 const char *name;
6159 void *address;
6161 lt__PROGRAM__LTX_preloaded_symbols[] =
6163 { "@PROGRAM@", (void *) 0 },
6164 _LT_EOF
6165 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6166 cat <<\_LT_EOF >> conftest.$ac_ext
6167 {0, (void *) 0}
6170 /* This works around a problem in FreeBSD linker */
6171 #ifdef FREEBSD_WORKAROUND
6172 static const void *lt_preloaded_setup() {
6173 return lt__PROGRAM__LTX_preloaded_symbols;
6175 #endif
6177 #ifdef __cplusplus
6179 #endif
6180 _LT_EOF
6181 # Now try linking the two files.
6182 mv conftest.$ac_objext conftstm.$ac_objext
6183 lt_globsym_save_LIBS=$LIBS
6184 lt_globsym_save_CFLAGS=$CFLAGS
6185 LIBS=conftstm.$ac_objext
6186 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6188 (eval $ac_link) 2>&5
6189 ac_status=$?
6190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6191 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6192 pipe_works=yes
6194 LIBS=$lt_globsym_save_LIBS
6195 CFLAGS=$lt_globsym_save_CFLAGS
6196 else
6197 echo "cannot find nm_test_func in $nlist" >&5
6199 else
6200 echo "cannot find nm_test_var in $nlist" >&5
6202 else
6203 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6205 else
6206 echo "$progname: failed program was:" >&5
6207 cat conftest.$ac_ext >&5
6209 rm -rf conftest* conftst*
6211 # Do not use the global_symbol_pipe unless it works.
6212 if test yes = "$pipe_works"; then
6213 break
6214 else
6215 lt_cv_sys_global_symbol_pipe=
6217 done
6221 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6222 lt_cv_sys_global_symbol_to_cdecl=
6224 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6226 $as_echo "failed" >&6; }
6227 else
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6229 $as_echo "ok" >&6; }
6232 # Response file support.
6233 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6234 nm_file_list_spec='@'
6235 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6236 nm_file_list_spec='@'
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6276 $as_echo_n "checking for sysroot... " >&6; }
6278 # Check whether --with-sysroot was given.
6279 if test "${with_sysroot+set}" = set; then :
6280 withval=$with_sysroot;
6281 else
6282 with_sysroot=no
6286 lt_sysroot=
6287 case $with_sysroot in #(
6288 yes)
6289 if test yes = "$GCC"; then
6290 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6292 ;; #(
6294 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6295 ;; #(
6296 no|'')
6297 ;; #(
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6300 $as_echo "$with_sysroot" >&6; }
6301 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6303 esac
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6306 $as_echo "${lt_sysroot:-no}" >&6; }
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6313 $as_echo_n "checking for a working dd... " >&6; }
6314 if ${ac_cv_path_lt_DD+:} false; then :
6315 $as_echo_n "(cached) " >&6
6316 else
6317 printf 0123456789abcdef0123456789abcdef >conftest.i
6318 cat conftest.i conftest.i >conftest2.i
6319 : ${lt_DD:=$DD}
6320 if test -z "$lt_DD"; then
6321 ac_path_lt_DD_found=false
6322 # Loop through the user's path and test for each of PROGNAME-LIST
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6326 IFS=$as_save_IFS
6327 test -z "$as_dir" && as_dir=.
6328 for ac_prog in dd; do
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6331 as_fn_executable_p "$ac_path_lt_DD" || continue
6332 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6333 cmp -s conftest.i conftest.out \
6334 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6336 $ac_path_lt_DD_found && break 3
6337 done
6338 done
6339 done
6340 IFS=$as_save_IFS
6341 if test -z "$ac_cv_path_lt_DD"; then
6344 else
6345 ac_cv_path_lt_DD=$lt_DD
6348 rm -f conftest.i conftest2.i conftest.out
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6351 $as_echo "$ac_cv_path_lt_DD" >&6; }
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6355 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6356 if ${lt_cv_truncate_bin+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 printf 0123456789abcdef0123456789abcdef >conftest.i
6360 cat conftest.i conftest.i >conftest2.i
6361 lt_cv_truncate_bin=
6362 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6363 cmp -s conftest.i conftest.out \
6364 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6366 rm -f conftest.i conftest2.i conftest.out
6367 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6370 $as_echo "$lt_cv_truncate_bin" >&6; }
6378 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6379 func_cc_basename ()
6381 for cc_temp in $*""; do
6382 case $cc_temp in
6383 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6384 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6385 \-*) ;;
6386 *) break;;
6387 esac
6388 done
6389 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6392 # Check whether --enable-libtool-lock was given.
6393 if test "${enable_libtool_lock+set}" = set; then :
6394 enableval=$enable_libtool_lock;
6397 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6399 # Some flags need to be propagated to the compiler or linker for good
6400 # libtool support.
6401 case $host in
6402 ia64-*-hpux*)
6403 # Find out what ABI is being produced by ac_compile, and set mode
6404 # options accordingly.
6405 echo 'int i;' > conftest.$ac_ext
6406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6407 (eval $ac_compile) 2>&5
6408 ac_status=$?
6409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6410 test $ac_status = 0; }; then
6411 case `/usr/bin/file conftest.$ac_objext` in
6412 *ELF-32*)
6413 HPUX_IA64_MODE=32
6415 *ELF-64*)
6416 HPUX_IA64_MODE=64
6418 esac
6420 rm -rf conftest*
6422 *-*-irix6*)
6423 # Find out what ABI is being produced by ac_compile, and set linker
6424 # options accordingly.
6425 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6427 (eval $ac_compile) 2>&5
6428 ac_status=$?
6429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6430 test $ac_status = 0; }; then
6431 if test yes = "$lt_cv_prog_gnu_ld"; then
6432 case `/usr/bin/file conftest.$ac_objext` in
6433 *32-bit*)
6434 LD="${LD-ld} -melf32bsmip"
6436 *N32*)
6437 LD="${LD-ld} -melf32bmipn32"
6439 *64-bit*)
6440 LD="${LD-ld} -melf64bmip"
6442 esac
6443 else
6444 case `/usr/bin/file conftest.$ac_objext` in
6445 *32-bit*)
6446 LD="${LD-ld} -32"
6448 *N32*)
6449 LD="${LD-ld} -n32"
6451 *64-bit*)
6452 LD="${LD-ld} -64"
6454 esac
6457 rm -rf conftest*
6460 mips64*-*linux*)
6461 # Find out what ABI is being produced by ac_compile, and set linker
6462 # options accordingly.
6463 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6465 (eval $ac_compile) 2>&5
6466 ac_status=$?
6467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468 test $ac_status = 0; }; then
6469 emul=elf
6470 case `/usr/bin/file conftest.$ac_objext` in
6471 *32-bit*)
6472 emul="${emul}32"
6474 *64-bit*)
6475 emul="${emul}64"
6477 esac
6478 case `/usr/bin/file conftest.$ac_objext` in
6479 *MSB*)
6480 emul="${emul}btsmip"
6482 *LSB*)
6483 emul="${emul}ltsmip"
6485 esac
6486 case `/usr/bin/file conftest.$ac_objext` in
6487 *N32*)
6488 emul="${emul}n32"
6490 esac
6491 LD="${LD-ld} -m $emul"
6493 rm -rf conftest*
6496 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6497 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6498 # Find out what ABI is being produced by ac_compile, and set linker
6499 # options accordingly. Note that the listed cases only cover the
6500 # situations where additional linker options are needed (such as when
6501 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6502 # vice versa); the common cases where no linker options are needed do
6503 # not appear in the list.
6504 echo 'int i;' > conftest.$ac_ext
6505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6506 (eval $ac_compile) 2>&5
6507 ac_status=$?
6508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6509 test $ac_status = 0; }; then
6510 case `/usr/bin/file conftest.o` in
6511 *32-bit*)
6512 case $host in
6513 x86_64-*kfreebsd*-gnu)
6514 LD="${LD-ld} -m elf_i386_fbsd"
6516 x86_64-*linux*)
6517 case `/usr/bin/file conftest.o` in
6518 *x86-64*)
6519 LD="${LD-ld} -m elf32_x86_64"
6522 LD="${LD-ld} -m elf_i386"
6524 esac
6526 powerpc64le-*linux*)
6527 LD="${LD-ld} -m elf32lppclinux"
6529 powerpc64-*linux*)
6530 LD="${LD-ld} -m elf32ppclinux"
6532 s390x-*linux*)
6533 LD="${LD-ld} -m elf_s390"
6535 sparc64-*linux*)
6536 LD="${LD-ld} -m elf32_sparc"
6538 esac
6540 *64-bit*)
6541 case $host in
6542 x86_64-*kfreebsd*-gnu)
6543 LD="${LD-ld} -m elf_x86_64_fbsd"
6545 x86_64-*linux*)
6546 LD="${LD-ld} -m elf_x86_64"
6548 powerpcle-*linux*)
6549 LD="${LD-ld} -m elf64lppc"
6551 powerpc-*linux*)
6552 LD="${LD-ld} -m elf64ppc"
6554 s390*-*linux*|s390*-*tpf*)
6555 LD="${LD-ld} -m elf64_s390"
6557 sparc*-*linux*)
6558 LD="${LD-ld} -m elf64_sparc"
6560 esac
6562 esac
6564 rm -rf conftest*
6567 *-*-sco3.2v5*)
6568 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6569 SAVE_CFLAGS=$CFLAGS
6570 CFLAGS="$CFLAGS -belf"
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6572 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6573 if ${lt_cv_cc_needs_belf+:} false; then :
6574 $as_echo_n "(cached) " >&6
6575 else
6576 ac_ext=c
6577 ac_cpp='$CPP $CPPFLAGS'
6578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6586 main ()
6590 return 0;
6592 _ACEOF
6593 if ac_fn_c_try_link "$LINENO"; then :
6594 lt_cv_cc_needs_belf=yes
6595 else
6596 lt_cv_cc_needs_belf=no
6598 rm -f core conftest.err conftest.$ac_objext \
6599 conftest$ac_exeext conftest.$ac_ext
6600 ac_ext=c
6601 ac_cpp='$CPP $CPPFLAGS'
6602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6608 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6609 if test yes != "$lt_cv_cc_needs_belf"; then
6610 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6611 CFLAGS=$SAVE_CFLAGS
6614 *-*solaris*)
6615 # Find out what ABI is being produced by ac_compile, and set linker
6616 # options accordingly.
6617 echo 'int i;' > conftest.$ac_ext
6618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6619 (eval $ac_compile) 2>&5
6620 ac_status=$?
6621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6622 test $ac_status = 0; }; then
6623 case `/usr/bin/file conftest.o` in
6624 *64-bit*)
6625 case $lt_cv_prog_gnu_ld in
6626 yes*)
6627 case $host in
6628 i?86-*-solaris*|x86_64-*-solaris*)
6629 LD="${LD-ld} -m elf_x86_64"
6631 sparc*-*-solaris*)
6632 LD="${LD-ld} -m elf64_sparc"
6634 esac
6635 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6636 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6637 LD=${LD-ld}_sol2
6641 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6642 LD="${LD-ld} -64"
6645 esac
6647 esac
6649 rm -rf conftest*
6651 esac
6653 need_locks=$enable_libtool_lock
6655 if test -n "$ac_tool_prefix"; then
6656 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6657 set dummy ${ac_tool_prefix}mt; ac_word=$2
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659 $as_echo_n "checking for $ac_word... " >&6; }
6660 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 if test -n "$MANIFEST_TOOL"; then
6664 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6665 else
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6673 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6677 done
6678 done
6679 IFS=$as_save_IFS
6683 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6684 if test -n "$MANIFEST_TOOL"; then
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6686 $as_echo "$MANIFEST_TOOL" >&6; }
6687 else
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6694 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6695 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6696 # Extract the first word of "mt", so it can be a program name with args.
6697 set dummy mt; ac_word=$2
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699 $as_echo_n "checking for $ac_word... " >&6; }
6700 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6701 $as_echo_n "(cached) " >&6
6702 else
6703 if test -n "$ac_ct_MANIFEST_TOOL"; then
6704 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6705 else
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6713 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 break 2
6717 done
6718 done
6719 IFS=$as_save_IFS
6723 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6724 if test -n "$ac_ct_MANIFEST_TOOL"; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6726 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6727 else
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 $as_echo "no" >&6; }
6732 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6733 MANIFEST_TOOL=":"
6734 else
6735 case $cross_compiling:$ac_tool_warned in
6736 yes:)
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6739 ac_tool_warned=yes ;;
6740 esac
6741 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6743 else
6744 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6747 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6749 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6750 if ${lt_cv_path_mainfest_tool+:} false; then :
6751 $as_echo_n "(cached) " >&6
6752 else
6753 lt_cv_path_mainfest_tool=no
6754 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6755 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6756 cat conftest.err >&5
6757 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6758 lt_cv_path_mainfest_tool=yes
6760 rm -f conftest*
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6763 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6764 if test yes != "$lt_cv_path_mainfest_tool"; then
6765 MANIFEST_TOOL=:
6773 case $host_os in
6774 rhapsody* | darwin*)
6775 if test -n "$ac_tool_prefix"; then
6776 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6777 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6779 $as_echo_n "checking for $ac_word... " >&6; }
6780 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6781 $as_echo_n "(cached) " >&6
6782 else
6783 if test -n "$DSYMUTIL"; then
6784 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6785 else
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 for as_dir in $PATH
6789 IFS=$as_save_IFS
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6793 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 break 2
6797 done
6798 done
6799 IFS=$as_save_IFS
6803 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6804 if test -n "$DSYMUTIL"; then
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6806 $as_echo "$DSYMUTIL" >&6; }
6807 else
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6809 $as_echo "no" >&6; }
6814 if test -z "$ac_cv_prog_DSYMUTIL"; then
6815 ac_ct_DSYMUTIL=$DSYMUTIL
6816 # Extract the first word of "dsymutil", so it can be a program name with args.
6817 set dummy dsymutil; ac_word=$2
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819 $as_echo_n "checking for $ac_word... " >&6; }
6820 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822 else
6823 if test -n "$ac_ct_DSYMUTIL"; then
6824 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6825 else
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 for as_dir in $PATH
6829 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6833 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 break 2
6837 done
6838 done
6839 IFS=$as_save_IFS
6843 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6844 if test -n "$ac_ct_DSYMUTIL"; then
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6846 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6847 else
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849 $as_echo "no" >&6; }
6852 if test "x$ac_ct_DSYMUTIL" = x; then
6853 DSYMUTIL=":"
6854 else
6855 case $cross_compiling:$ac_tool_warned in
6856 yes:)
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6859 ac_tool_warned=yes ;;
6860 esac
6861 DSYMUTIL=$ac_ct_DSYMUTIL
6863 else
6864 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6867 if test -n "$ac_tool_prefix"; then
6868 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6869 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6871 $as_echo_n "checking for $ac_word... " >&6; }
6872 if ${ac_cv_prog_NMEDIT+:} false; then :
6873 $as_echo_n "(cached) " >&6
6874 else
6875 if test -n "$NMEDIT"; then
6876 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6877 else
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 for as_dir in $PATH
6881 IFS=$as_save_IFS
6882 test -z "$as_dir" && as_dir=.
6883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6885 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 break 2
6889 done
6890 done
6891 IFS=$as_save_IFS
6895 NMEDIT=$ac_cv_prog_NMEDIT
6896 if test -n "$NMEDIT"; then
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6898 $as_echo "$NMEDIT" >&6; }
6899 else
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6901 $as_echo "no" >&6; }
6906 if test -z "$ac_cv_prog_NMEDIT"; then
6907 ac_ct_NMEDIT=$NMEDIT
6908 # Extract the first word of "nmedit", so it can be a program name with args.
6909 set dummy nmedit; ac_word=$2
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911 $as_echo_n "checking for $ac_word... " >&6; }
6912 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6913 $as_echo_n "(cached) " >&6
6914 else
6915 if test -n "$ac_ct_NMEDIT"; then
6916 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6917 else
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 for as_dir in $PATH
6921 IFS=$as_save_IFS
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6925 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 break 2
6929 done
6930 done
6931 IFS=$as_save_IFS
6935 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6936 if test -n "$ac_ct_NMEDIT"; then
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6938 $as_echo "$ac_ct_NMEDIT" >&6; }
6939 else
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 $as_echo "no" >&6; }
6944 if test "x$ac_ct_NMEDIT" = x; then
6945 NMEDIT=":"
6946 else
6947 case $cross_compiling:$ac_tool_warned in
6948 yes:)
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6951 ac_tool_warned=yes ;;
6952 esac
6953 NMEDIT=$ac_ct_NMEDIT
6955 else
6956 NMEDIT="$ac_cv_prog_NMEDIT"
6959 if test -n "$ac_tool_prefix"; then
6960 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6961 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6963 $as_echo_n "checking for $ac_word... " >&6; }
6964 if ${ac_cv_prog_LIPO+:} false; then :
6965 $as_echo_n "(cached) " >&6
6966 else
6967 if test -n "$LIPO"; then
6968 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6969 else
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6973 IFS=$as_save_IFS
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6977 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 break 2
6981 done
6982 done
6983 IFS=$as_save_IFS
6987 LIPO=$ac_cv_prog_LIPO
6988 if test -n "$LIPO"; then
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6990 $as_echo "$LIPO" >&6; }
6991 else
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993 $as_echo "no" >&6; }
6998 if test -z "$ac_cv_prog_LIPO"; then
6999 ac_ct_LIPO=$LIPO
7000 # Extract the first word of "lipo", so it can be a program name with args.
7001 set dummy lipo; ac_word=$2
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003 $as_echo_n "checking for $ac_word... " >&6; }
7004 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 if test -n "$ac_ct_LIPO"; then
7008 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7009 else
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7013 IFS=$as_save_IFS
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7017 ac_cv_prog_ac_ct_LIPO="lipo"
7018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 break 2
7021 done
7022 done
7023 IFS=$as_save_IFS
7027 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7028 if test -n "$ac_ct_LIPO"; then
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7030 $as_echo "$ac_ct_LIPO" >&6; }
7031 else
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033 $as_echo "no" >&6; }
7036 if test "x$ac_ct_LIPO" = x; then
7037 LIPO=":"
7038 else
7039 case $cross_compiling:$ac_tool_warned in
7040 yes:)
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7043 ac_tool_warned=yes ;;
7044 esac
7045 LIPO=$ac_ct_LIPO
7047 else
7048 LIPO="$ac_cv_prog_LIPO"
7051 if test -n "$ac_tool_prefix"; then
7052 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7053 set dummy ${ac_tool_prefix}otool; ac_word=$2
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055 $as_echo_n "checking for $ac_word... " >&6; }
7056 if ${ac_cv_prog_OTOOL+:} false; then :
7057 $as_echo_n "(cached) " >&6
7058 else
7059 if test -n "$OTOOL"; then
7060 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7061 else
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 for as_dir in $PATH
7065 IFS=$as_save_IFS
7066 test -z "$as_dir" && as_dir=.
7067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7069 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7071 break 2
7073 done
7074 done
7075 IFS=$as_save_IFS
7079 OTOOL=$ac_cv_prog_OTOOL
7080 if test -n "$OTOOL"; then
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7082 $as_echo "$OTOOL" >&6; }
7083 else
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085 $as_echo "no" >&6; }
7090 if test -z "$ac_cv_prog_OTOOL"; then
7091 ac_ct_OTOOL=$OTOOL
7092 # Extract the first word of "otool", so it can be a program name with args.
7093 set dummy otool; ac_word=$2
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095 $as_echo_n "checking for $ac_word... " >&6; }
7096 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7097 $as_echo_n "(cached) " >&6
7098 else
7099 if test -n "$ac_ct_OTOOL"; then
7100 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7101 else
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH
7105 IFS=$as_save_IFS
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7109 ac_cv_prog_ac_ct_OTOOL="otool"
7110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7111 break 2
7113 done
7114 done
7115 IFS=$as_save_IFS
7119 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7120 if test -n "$ac_ct_OTOOL"; then
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7122 $as_echo "$ac_ct_OTOOL" >&6; }
7123 else
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 $as_echo "no" >&6; }
7128 if test "x$ac_ct_OTOOL" = x; then
7129 OTOOL=":"
7130 else
7131 case $cross_compiling:$ac_tool_warned in
7132 yes:)
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7135 ac_tool_warned=yes ;;
7136 esac
7137 OTOOL=$ac_ct_OTOOL
7139 else
7140 OTOOL="$ac_cv_prog_OTOOL"
7143 if test -n "$ac_tool_prefix"; then
7144 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7145 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147 $as_echo_n "checking for $ac_word... " >&6; }
7148 if ${ac_cv_prog_OTOOL64+:} false; then :
7149 $as_echo_n "(cached) " >&6
7150 else
7151 if test -n "$OTOOL64"; then
7152 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7153 else
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 for as_dir in $PATH
7157 IFS=$as_save_IFS
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7163 break 2
7165 done
7166 done
7167 IFS=$as_save_IFS
7171 OTOOL64=$ac_cv_prog_OTOOL64
7172 if test -n "$OTOOL64"; then
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7174 $as_echo "$OTOOL64" >&6; }
7175 else
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177 $as_echo "no" >&6; }
7182 if test -z "$ac_cv_prog_OTOOL64"; then
7183 ac_ct_OTOOL64=$OTOOL64
7184 # Extract the first word of "otool64", so it can be a program name with args.
7185 set dummy otool64; ac_word=$2
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187 $as_echo_n "checking for $ac_word... " >&6; }
7188 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7189 $as_echo_n "(cached) " >&6
7190 else
7191 if test -n "$ac_ct_OTOOL64"; then
7192 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7193 else
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 for as_dir in $PATH
7197 IFS=$as_save_IFS
7198 test -z "$as_dir" && as_dir=.
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7201 ac_cv_prog_ac_ct_OTOOL64="otool64"
7202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7203 break 2
7205 done
7206 done
7207 IFS=$as_save_IFS
7211 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7212 if test -n "$ac_ct_OTOOL64"; then
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7214 $as_echo "$ac_ct_OTOOL64" >&6; }
7215 else
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 $as_echo "no" >&6; }
7220 if test "x$ac_ct_OTOOL64" = x; then
7221 OTOOL64=":"
7222 else
7223 case $cross_compiling:$ac_tool_warned in
7224 yes:)
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7227 ac_tool_warned=yes ;;
7228 esac
7229 OTOOL64=$ac_ct_OTOOL64
7231 else
7232 OTOOL64="$ac_cv_prog_OTOOL64"
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7262 $as_echo_n "checking for -single_module linker flag... " >&6; }
7263 if ${lt_cv_apple_cc_single_mod+:} false; then :
7264 $as_echo_n "(cached) " >&6
7265 else
7266 lt_cv_apple_cc_single_mod=no
7267 if test -z "$LT_MULTI_MODULE"; then
7268 # By default we will add the -single_module flag. You can override
7269 # by either setting the environment variable LT_MULTI_MODULE
7270 # non-empty at configure time, or by adding -multi_module to the
7271 # link flags.
7272 rm -rf libconftest.dylib*
7273 echo "int foo(void){return 1;}" > conftest.c
7274 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7275 -dynamiclib -Wl,-single_module conftest.c" >&5
7276 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7277 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7278 _lt_result=$?
7279 # If there is a non-empty error log, and "single_module"
7280 # appears in it, assume the flag caused a linker warning
7281 if test -s conftest.err && $GREP single_module conftest.err; then
7282 cat conftest.err >&5
7283 # Otherwise, if the output was created with a 0 exit code from
7284 # the compiler, it worked.
7285 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7286 lt_cv_apple_cc_single_mod=yes
7287 else
7288 cat conftest.err >&5
7290 rm -rf libconftest.dylib*
7291 rm -f conftest.*
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7295 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7298 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7299 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7300 $as_echo_n "(cached) " >&6
7301 else
7302 lt_cv_ld_exported_symbols_list=no
7303 save_LDFLAGS=$LDFLAGS
7304 echo "_main" > conftest.sym
7305 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307 /* end confdefs.h. */
7310 main ()
7314 return 0;
7316 _ACEOF
7317 if ac_fn_c_try_link "$LINENO"; then :
7318 lt_cv_ld_exported_symbols_list=yes
7319 else
7320 lt_cv_ld_exported_symbols_list=no
7322 rm -f core conftest.err conftest.$ac_objext \
7323 conftest$ac_exeext conftest.$ac_ext
7324 LDFLAGS=$save_LDFLAGS
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7328 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7331 $as_echo_n "checking for -force_load linker flag... " >&6; }
7332 if ${lt_cv_ld_force_load+:} false; then :
7333 $as_echo_n "(cached) " >&6
7334 else
7335 lt_cv_ld_force_load=no
7336 cat > conftest.c << _LT_EOF
7337 int forced_loaded() { return 2;}
7338 _LT_EOF
7339 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7340 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7341 echo "$AR cru libconftest.a conftest.o" >&5
7342 $AR cru libconftest.a conftest.o 2>&5
7343 echo "$RANLIB libconftest.a" >&5
7344 $RANLIB libconftest.a 2>&5
7345 cat > conftest.c << _LT_EOF
7346 int main() { return 0;}
7347 _LT_EOF
7348 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7349 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7350 _lt_result=$?
7351 if test -s conftest.err && $GREP force_load conftest.err; then
7352 cat conftest.err >&5
7353 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7354 lt_cv_ld_force_load=yes
7355 else
7356 cat conftest.err >&5
7358 rm -f conftest.err libconftest.a conftest conftest.c
7359 rm -rf conftest.dSYM
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7363 $as_echo "$lt_cv_ld_force_load" >&6; }
7364 case $host_os in
7365 rhapsody* | darwin1.[012])
7366 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7367 darwin1.*)
7368 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7369 darwin*) # darwin 5.x on
7370 # if running on 10.5 or later, the deployment target defaults
7371 # to the OS version, if on x86, and 10.4, the deployment
7372 # target defaults to 10.4. Don't you love it?
7373 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7374 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7375 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7376 10.[012][,.]*)
7377 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7378 10.*)
7379 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7380 esac
7382 esac
7383 if test yes = "$lt_cv_apple_cc_single_mod"; then
7384 _lt_dar_single_mod='$single_module'
7386 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7387 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7388 else
7389 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7391 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7392 _lt_dsymutil='~$DSYMUTIL $lib || :'
7393 else
7394 _lt_dsymutil=
7397 esac
7399 # func_munge_path_list VARIABLE PATH
7400 # -----------------------------------
7401 # VARIABLE is name of variable containing _space_ separated list of
7402 # directories to be munged by the contents of PATH, which is string
7403 # having a format:
7404 # "DIR[:DIR]:"
7405 # string "DIR[ DIR]" will be prepended to VARIABLE
7406 # ":DIR[:DIR]"
7407 # string "DIR[ DIR]" will be appended to VARIABLE
7408 # "DIRP[:DIRP]::[DIRA:]DIRA"
7409 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7410 # "DIRA[ DIRA]" will be appended to VARIABLE
7411 # "DIR[:DIR]"
7412 # VARIABLE will be replaced by "DIR[ DIR]"
7413 func_munge_path_list ()
7415 case x$2 in
7419 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7421 x:*)
7422 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7424 *::*)
7425 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7426 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7429 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7431 esac
7434 ac_ext=c
7435 ac_cpp='$CPP $CPPFLAGS'
7436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7440 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7441 # On Suns, sometimes $CPP names a directory.
7442 if test -n "$CPP" && test -d "$CPP"; then
7443 CPP=
7445 if test -z "$CPP"; then
7446 if ${ac_cv_prog_CPP+:} false; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 # Double quotes because CPP needs to be expanded
7450 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7452 ac_preproc_ok=false
7453 for ac_c_preproc_warn_flag in '' yes
7455 # Use a header file that comes with gcc, so configuring glibc
7456 # with a fresh cross-compiler works.
7457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7458 # <limits.h> exists even on freestanding compilers.
7459 # On the NeXT, cc -E runs the code through the compiler's parser,
7460 # not just through cpp. "Syntax error" is here to catch this case.
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463 #ifdef __STDC__
7464 # include <limits.h>
7465 #else
7466 # include <assert.h>
7467 #endif
7468 Syntax error
7469 _ACEOF
7470 if ac_fn_c_try_cpp "$LINENO"; then :
7472 else
7473 # Broken: fails on valid input.
7474 continue
7476 rm -f conftest.err conftest.i conftest.$ac_ext
7478 # OK, works on sane cases. Now check whether nonexistent headers
7479 # can be detected and how.
7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h. */
7482 #include <ac_nonexistent.h>
7483 _ACEOF
7484 if ac_fn_c_try_cpp "$LINENO"; then :
7485 # Broken: success on invalid input.
7486 continue
7487 else
7488 # Passes both tests.
7489 ac_preproc_ok=:
7490 break
7492 rm -f conftest.err conftest.i conftest.$ac_ext
7494 done
7495 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7496 rm -f conftest.i conftest.err conftest.$ac_ext
7497 if $ac_preproc_ok; then :
7498 break
7501 done
7502 ac_cv_prog_CPP=$CPP
7505 CPP=$ac_cv_prog_CPP
7506 else
7507 ac_cv_prog_CPP=$CPP
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7510 $as_echo "$CPP" >&6; }
7511 ac_preproc_ok=false
7512 for ac_c_preproc_warn_flag in '' yes
7514 # Use a header file that comes with gcc, so configuring glibc
7515 # with a fresh cross-compiler works.
7516 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7517 # <limits.h> exists even on freestanding compilers.
7518 # On the NeXT, cc -E runs the code through the compiler's parser,
7519 # not just through cpp. "Syntax error" is here to catch this case.
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7522 #ifdef __STDC__
7523 # include <limits.h>
7524 #else
7525 # include <assert.h>
7526 #endif
7527 Syntax error
7528 _ACEOF
7529 if ac_fn_c_try_cpp "$LINENO"; then :
7531 else
7532 # Broken: fails on valid input.
7533 continue
7535 rm -f conftest.err conftest.i conftest.$ac_ext
7537 # OK, works on sane cases. Now check whether nonexistent headers
7538 # can be detected and how.
7539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540 /* end confdefs.h. */
7541 #include <ac_nonexistent.h>
7542 _ACEOF
7543 if ac_fn_c_try_cpp "$LINENO"; then :
7544 # Broken: success on invalid input.
7545 continue
7546 else
7547 # Passes both tests.
7548 ac_preproc_ok=:
7549 break
7551 rm -f conftest.err conftest.i conftest.$ac_ext
7553 done
7554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7555 rm -f conftest.i conftest.err conftest.$ac_ext
7556 if $ac_preproc_ok; then :
7558 else
7559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7561 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7562 See \`config.log' for more details" "$LINENO" 5; }
7565 ac_ext=c
7566 ac_cpp='$CPP $CPPFLAGS'
7567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7573 $as_echo_n "checking for ANSI C header files... " >&6; }
7574 if ${ac_cv_header_stdc+:} false; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h. */
7579 #include <stdlib.h>
7580 #include <stdarg.h>
7581 #include <string.h>
7582 #include <float.h>
7585 main ()
7589 return 0;
7591 _ACEOF
7592 if ac_fn_c_try_compile "$LINENO"; then :
7593 ac_cv_header_stdc=yes
7594 else
7595 ac_cv_header_stdc=no
7597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599 if test $ac_cv_header_stdc = yes; then
7600 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h. */
7603 #include <string.h>
7605 _ACEOF
7606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7607 $EGREP "memchr" >/dev/null 2>&1; then :
7609 else
7610 ac_cv_header_stdc=no
7612 rm -f conftest*
7616 if test $ac_cv_header_stdc = yes; then
7617 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h. */
7620 #include <stdlib.h>
7622 _ACEOF
7623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7624 $EGREP "free" >/dev/null 2>&1; then :
7626 else
7627 ac_cv_header_stdc=no
7629 rm -f conftest*
7633 if test $ac_cv_header_stdc = yes; then
7634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7635 if test "$cross_compiling" = yes; then :
7637 else
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h. */
7640 #include <ctype.h>
7641 #include <stdlib.h>
7642 #if ((' ' & 0x0FF) == 0x020)
7643 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7644 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7645 #else
7646 # define ISLOWER(c) \
7647 (('a' <= (c) && (c) <= 'i') \
7648 || ('j' <= (c) && (c) <= 'r') \
7649 || ('s' <= (c) && (c) <= 'z'))
7650 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7651 #endif
7653 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7655 main ()
7657 int i;
7658 for (i = 0; i < 256; i++)
7659 if (XOR (islower (i), ISLOWER (i))
7660 || toupper (i) != TOUPPER (i))
7661 return 2;
7662 return 0;
7664 _ACEOF
7665 if ac_fn_c_try_run "$LINENO"; then :
7667 else
7668 ac_cv_header_stdc=no
7670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7671 conftest.$ac_objext conftest.beam conftest.$ac_ext
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7677 $as_echo "$ac_cv_header_stdc" >&6; }
7678 if test $ac_cv_header_stdc = yes; then
7680 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7684 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7685 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7686 inttypes.h stdint.h unistd.h
7687 do :
7688 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7689 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7691 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7692 cat >>confdefs.h <<_ACEOF
7693 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7694 _ACEOF
7698 done
7701 for ac_header in dlfcn.h
7702 do :
7703 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7705 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7706 cat >>confdefs.h <<_ACEOF
7707 #define HAVE_DLFCN_H 1
7708 _ACEOF
7712 done
7718 # Set options
7719 enable_dlopen=yes
7720 enable_win32_dll=yes
7722 case $host in
7723 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7724 if test -n "$ac_tool_prefix"; then
7725 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7726 set dummy ${ac_tool_prefix}as; ac_word=$2
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728 $as_echo_n "checking for $ac_word... " >&6; }
7729 if ${ac_cv_prog_AS+:} false; then :
7730 $as_echo_n "(cached) " >&6
7731 else
7732 if test -n "$AS"; then
7733 ac_cv_prog_AS="$AS" # Let the user override the test.
7734 else
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7742 ac_cv_prog_AS="${ac_tool_prefix}as"
7743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 break 2
7746 done
7747 done
7748 IFS=$as_save_IFS
7752 AS=$ac_cv_prog_AS
7753 if test -n "$AS"; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7755 $as_echo "$AS" >&6; }
7756 else
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 $as_echo "no" >&6; }
7763 if test -z "$ac_cv_prog_AS"; then
7764 ac_ct_AS=$AS
7765 # Extract the first word of "as", so it can be a program name with args.
7766 set dummy as; ac_word=$2
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 $as_echo_n "checking for $ac_word... " >&6; }
7769 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7770 $as_echo_n "(cached) " >&6
7771 else
7772 if test -n "$ac_ct_AS"; then
7773 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7774 else
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7778 IFS=$as_save_IFS
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7782 ac_cv_prog_ac_ct_AS="as"
7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 break 2
7786 done
7787 done
7788 IFS=$as_save_IFS
7792 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7793 if test -n "$ac_ct_AS"; then
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7795 $as_echo "$ac_ct_AS" >&6; }
7796 else
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7801 if test "x$ac_ct_AS" = x; then
7802 AS="false"
7803 else
7804 case $cross_compiling:$ac_tool_warned in
7805 yes:)
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7808 ac_tool_warned=yes ;;
7809 esac
7810 AS=$ac_ct_AS
7812 else
7813 AS="$ac_cv_prog_AS"
7816 if test -n "$ac_tool_prefix"; then
7817 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7818 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if ${ac_cv_prog_DLLTOOL+:} false; then :
7822 $as_echo_n "(cached) " >&6
7823 else
7824 if test -n "$DLLTOOL"; then
7825 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7826 else
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7834 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 break 2
7838 done
7839 done
7840 IFS=$as_save_IFS
7844 DLLTOOL=$ac_cv_prog_DLLTOOL
7845 if test -n "$DLLTOOL"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7847 $as_echo "$DLLTOOL" >&6; }
7848 else
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7855 if test -z "$ac_cv_prog_DLLTOOL"; then
7856 ac_ct_DLLTOOL=$DLLTOOL
7857 # Extract the first word of "dlltool", so it can be a program name with args.
7858 set dummy dlltool; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7862 $as_echo_n "(cached) " >&6
7863 else
7864 if test -n "$ac_ct_DLLTOOL"; then
7865 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7866 else
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7870 IFS=$as_save_IFS
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7874 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 break 2
7878 done
7879 done
7880 IFS=$as_save_IFS
7884 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7885 if test -n "$ac_ct_DLLTOOL"; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7887 $as_echo "$ac_ct_DLLTOOL" >&6; }
7888 else
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7893 if test "x$ac_ct_DLLTOOL" = x; then
7894 DLLTOOL="false"
7895 else
7896 case $cross_compiling:$ac_tool_warned in
7897 yes:)
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7900 ac_tool_warned=yes ;;
7901 esac
7902 DLLTOOL=$ac_ct_DLLTOOL
7904 else
7905 DLLTOOL="$ac_cv_prog_DLLTOOL"
7908 if test -n "$ac_tool_prefix"; then
7909 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7910 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912 $as_echo_n "checking for $ac_word... " >&6; }
7913 if ${ac_cv_prog_OBJDUMP+:} false; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 if test -n "$OBJDUMP"; then
7917 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7918 else
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 for as_dir in $PATH
7922 IFS=$as_save_IFS
7923 test -z "$as_dir" && as_dir=.
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7926 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 break 2
7930 done
7931 done
7932 IFS=$as_save_IFS
7936 OBJDUMP=$ac_cv_prog_OBJDUMP
7937 if test -n "$OBJDUMP"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7939 $as_echo "$OBJDUMP" >&6; }
7940 else
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7947 if test -z "$ac_cv_prog_OBJDUMP"; then
7948 ac_ct_OBJDUMP=$OBJDUMP
7949 # Extract the first word of "objdump", so it can be a program name with args.
7950 set dummy objdump; ac_word=$2
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7952 $as_echo_n "checking for $ac_word... " >&6; }
7953 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 if test -n "$ac_ct_OBJDUMP"; then
7957 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7958 else
7959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 for as_dir in $PATH
7962 IFS=$as_save_IFS
7963 test -z "$as_dir" && as_dir=.
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7966 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7968 break 2
7970 done
7971 done
7972 IFS=$as_save_IFS
7976 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7977 if test -n "$ac_ct_OBJDUMP"; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7979 $as_echo "$ac_ct_OBJDUMP" >&6; }
7980 else
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 $as_echo "no" >&6; }
7985 if test "x$ac_ct_OBJDUMP" = x; then
7986 OBJDUMP="false"
7987 else
7988 case $cross_compiling:$ac_tool_warned in
7989 yes:)
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7992 ac_tool_warned=yes ;;
7993 esac
7994 OBJDUMP=$ac_ct_OBJDUMP
7996 else
7997 OBJDUMP="$ac_cv_prog_OBJDUMP"
8001 esac
8003 test -z "$AS" && AS=as
8009 test -z "$DLLTOOL" && DLLTOOL=dlltool
8015 test -z "$OBJDUMP" && OBJDUMP=objdump
8025 # Check whether --enable-shared was given.
8026 if test "${enable_shared+set}" = set; then :
8027 enableval=$enable_shared; p=${PACKAGE-default}
8028 case $enableval in
8029 yes) enable_shared=yes ;;
8030 no) enable_shared=no ;;
8032 enable_shared=no
8033 # Look at the argument we got. We use all the common list separators.
8034 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8035 for pkg in $enableval; do
8036 IFS=$lt_save_ifs
8037 if test "X$pkg" = "X$p"; then
8038 enable_shared=yes
8040 done
8041 IFS=$lt_save_ifs
8043 esac
8044 else
8045 enable_shared=yes
8056 # Check whether --enable-static was given.
8057 if test "${enable_static+set}" = set; then :
8058 enableval=$enable_static; p=${PACKAGE-default}
8059 case $enableval in
8060 yes) enable_static=yes ;;
8061 no) enable_static=no ;;
8063 enable_static=no
8064 # Look at the argument we got. We use all the common list separators.
8065 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8066 for pkg in $enableval; do
8067 IFS=$lt_save_ifs
8068 if test "X$pkg" = "X$p"; then
8069 enable_static=yes
8071 done
8072 IFS=$lt_save_ifs
8074 esac
8075 else
8076 enable_static=yes
8088 # Check whether --with-pic was given.
8089 if test "${with_pic+set}" = set; then :
8090 withval=$with_pic; lt_p=${PACKAGE-default}
8091 case $withval in
8092 yes|no) pic_mode=$withval ;;
8094 pic_mode=default
8095 # Look at the argument we got. We use all the common list separators.
8096 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8097 for lt_pkg in $withval; do
8098 IFS=$lt_save_ifs
8099 if test "X$lt_pkg" = "X$lt_p"; then
8100 pic_mode=yes
8102 done
8103 IFS=$lt_save_ifs
8105 esac
8106 else
8107 pic_mode=default
8117 # Check whether --enable-fast-install was given.
8118 if test "${enable_fast_install+set}" = set; then :
8119 enableval=$enable_fast_install; p=${PACKAGE-default}
8120 case $enableval in
8121 yes) enable_fast_install=yes ;;
8122 no) enable_fast_install=no ;;
8124 enable_fast_install=no
8125 # Look at the argument we got. We use all the common list separators.
8126 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8127 for pkg in $enableval; do
8128 IFS=$lt_save_ifs
8129 if test "X$pkg" = "X$p"; then
8130 enable_fast_install=yes
8132 done
8133 IFS=$lt_save_ifs
8135 esac
8136 else
8137 enable_fast_install=yes
8147 shared_archive_member_spec=
8148 case $host,$enable_shared in
8149 power*-*-aix[5-9]*,yes)
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8151 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8153 # Check whether --with-aix-soname was given.
8154 if test "${with_aix_soname+set}" = set; then :
8155 withval=$with_aix_soname; case $withval in
8156 aix|svr4|both)
8159 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8161 esac
8162 lt_cv_with_aix_soname=$with_aix_soname
8163 else
8164 if ${lt_cv_with_aix_soname+:} false; then :
8165 $as_echo_n "(cached) " >&6
8166 else
8167 lt_cv_with_aix_soname=aix
8170 with_aix_soname=$lt_cv_with_aix_soname
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8174 $as_echo "$with_aix_soname" >&6; }
8175 if test aix != "$with_aix_soname"; then
8176 # For the AIX way of multilib, we name the shared archive member
8177 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8178 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8179 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8180 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8181 if test 64 = "${OBJECT_MODE-32}"; then
8182 shared_archive_member_spec=shr_64
8183 else
8184 shared_archive_member_spec=shr
8189 with_aix_soname=aix
8191 esac
8202 # This can be used to rebuild libtool when needed
8203 LIBTOOL_DEPS=$ltmain
8205 # Always use our own libtool.
8206 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8237 test -z "$LN_S" && LN_S="ln -s"
8252 if test -n "${ZSH_VERSION+set}"; then
8253 setopt NO_GLOB_SUBST
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8257 $as_echo_n "checking for objdir... " >&6; }
8258 if ${lt_cv_objdir+:} false; then :
8259 $as_echo_n "(cached) " >&6
8260 else
8261 rm -f .libs 2>/dev/null
8262 mkdir .libs 2>/dev/null
8263 if test -d .libs; then
8264 lt_cv_objdir=.libs
8265 else
8266 # MS-DOS does not allow filenames that begin with a dot.
8267 lt_cv_objdir=_libs
8269 rmdir .libs 2>/dev/null
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8272 $as_echo "$lt_cv_objdir" >&6; }
8273 objdir=$lt_cv_objdir
8279 cat >>confdefs.h <<_ACEOF
8280 #define LT_OBJDIR "$lt_cv_objdir/"
8281 _ACEOF
8286 case $host_os in
8287 aix3*)
8288 # AIX sometimes has problems with the GCC collect2 program. For some
8289 # reason, if we set the COLLECT_NAMES environment variable, the problems
8290 # vanish in a puff of smoke.
8291 if test set != "${COLLECT_NAMES+set}"; then
8292 COLLECT_NAMES=
8293 export COLLECT_NAMES
8296 esac
8298 # Global variables:
8299 ofile=libtool
8300 can_build_shared=yes
8302 # All known linkers require a '.a' archive for static linking (except MSVC,
8303 # which needs '.lib').
8304 libext=a
8306 with_gnu_ld=$lt_cv_prog_gnu_ld
8308 old_CC=$CC
8309 old_CFLAGS=$CFLAGS
8311 # Set sane defaults for various variables
8312 test -z "$CC" && CC=cc
8313 test -z "$LTCC" && LTCC=$CC
8314 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8315 test -z "$LD" && LD=ld
8316 test -z "$ac_objext" && ac_objext=o
8318 func_cc_basename $compiler
8319 cc_basename=$func_cc_basename_result
8322 # Only perform the check for file, if the check method requires it
8323 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8324 case $deplibs_check_method in
8325 file_magic*)
8326 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8328 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8329 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8330 $as_echo_n "(cached) " >&6
8331 else
8332 case $MAGIC_CMD in
8333 [\\/*] | ?:[\\/]*)
8334 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8337 lt_save_MAGIC_CMD=$MAGIC_CMD
8338 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8339 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8340 for ac_dir in $ac_dummy; do
8341 IFS=$lt_save_ifs
8342 test -z "$ac_dir" && ac_dir=.
8343 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8344 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8345 if test -n "$file_magic_test_file"; then
8346 case $deplibs_check_method in
8347 "file_magic "*)
8348 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8349 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8350 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8351 $EGREP "$file_magic_regex" > /dev/null; then
8353 else
8354 cat <<_LT_EOF 1>&2
8356 *** Warning: the command libtool uses to detect shared libraries,
8357 *** $file_magic_cmd, produces output that libtool cannot recognize.
8358 *** The result is that libtool may fail to recognize shared libraries
8359 *** as such. This will affect the creation of libtool libraries that
8360 *** depend on shared libraries, but programs linked with such libtool
8361 *** libraries will work regardless of this problem. Nevertheless, you
8362 *** may want to report the problem to your system manager and/or to
8363 *** bug-libtool@gnu.org
8365 _LT_EOF
8366 fi ;;
8367 esac
8369 break
8371 done
8372 IFS=$lt_save_ifs
8373 MAGIC_CMD=$lt_save_MAGIC_CMD
8375 esac
8378 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8379 if test -n "$MAGIC_CMD"; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8381 $as_echo "$MAGIC_CMD" >&6; }
8382 else
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384 $as_echo "no" >&6; }
8391 if test -z "$lt_cv_path_MAGIC_CMD"; then
8392 if test -n "$ac_tool_prefix"; then
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8394 $as_echo_n "checking for file... " >&6; }
8395 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 case $MAGIC_CMD in
8399 [\\/*] | ?:[\\/]*)
8400 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8403 lt_save_MAGIC_CMD=$MAGIC_CMD
8404 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8405 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8406 for ac_dir in $ac_dummy; do
8407 IFS=$lt_save_ifs
8408 test -z "$ac_dir" && ac_dir=.
8409 if test -f "$ac_dir/file"; then
8410 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8411 if test -n "$file_magic_test_file"; then
8412 case $deplibs_check_method in
8413 "file_magic "*)
8414 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8415 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8416 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8417 $EGREP "$file_magic_regex" > /dev/null; then
8419 else
8420 cat <<_LT_EOF 1>&2
8422 *** Warning: the command libtool uses to detect shared libraries,
8423 *** $file_magic_cmd, produces output that libtool cannot recognize.
8424 *** The result is that libtool may fail to recognize shared libraries
8425 *** as such. This will affect the creation of libtool libraries that
8426 *** depend on shared libraries, but programs linked with such libtool
8427 *** libraries will work regardless of this problem. Nevertheless, you
8428 *** may want to report the problem to your system manager and/or to
8429 *** bug-libtool@gnu.org
8431 _LT_EOF
8432 fi ;;
8433 esac
8435 break
8437 done
8438 IFS=$lt_save_ifs
8439 MAGIC_CMD=$lt_save_MAGIC_CMD
8441 esac
8444 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8445 if test -n "$MAGIC_CMD"; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8447 $as_echo "$MAGIC_CMD" >&6; }
8448 else
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450 $as_echo "no" >&6; }
8454 else
8455 MAGIC_CMD=:
8461 esac
8463 # Use C for the default configuration in the libtool script
8465 lt_save_CC=$CC
8466 ac_ext=c
8467 ac_cpp='$CPP $CPPFLAGS'
8468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8473 # Source file extension for C test sources.
8474 ac_ext=c
8476 # Object file extension for compiled C test sources.
8477 objext=o
8478 objext=$objext
8480 # Code to be used in simple compile tests
8481 lt_simple_compile_test_code="int some_variable = 0;"
8483 # Code to be used in simple link tests
8484 lt_simple_link_test_code='int main(){return(0);}'
8492 # If no C compiler was specified, use CC.
8493 LTCC=${LTCC-"$CC"}
8495 # If no C compiler flags were specified, use CFLAGS.
8496 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8498 # Allow CC to be a program name with arguments.
8499 compiler=$CC
8501 # Save the default compiler, since it gets overwritten when the other
8502 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8503 compiler_DEFAULT=$CC
8505 # save warnings/boilerplate of simple test code
8506 ac_outfile=conftest.$ac_objext
8507 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8508 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8509 _lt_compiler_boilerplate=`cat conftest.err`
8510 $RM conftest*
8512 ac_outfile=conftest.$ac_objext
8513 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8514 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8515 _lt_linker_boilerplate=`cat conftest.err`
8516 $RM -r conftest*
8519 ## CAVEAT EMPTOR:
8520 ## There is no encapsulation within the following macros, do not change
8521 ## the running order or otherwise move them around unless you know exactly
8522 ## what you are doing...
8523 if test -n "$compiler"; then
8525 lt_prog_compiler_no_builtin_flag=
8527 if test yes = "$GCC"; then
8528 case $cc_basename in
8529 nvcc*)
8530 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8532 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8533 esac
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8536 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8537 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8538 $as_echo_n "(cached) " >&6
8539 else
8540 lt_cv_prog_compiler_rtti_exceptions=no
8541 ac_outfile=conftest.$ac_objext
8542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8543 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8544 # Insert the option either (1) after the last *FLAGS variable, or
8545 # (2) before a word containing "conftest.", or (3) at the end.
8546 # Note that $ac_compile itself does not contain backslashes and begins
8547 # with a dollar sign (not a hyphen), so the echo should work correctly.
8548 # The option is referenced via a variable to avoid confusing sed.
8549 lt_compile=`echo "$ac_compile" | $SED \
8550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8552 -e 's:$: $lt_compiler_flag:'`
8553 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8554 (eval "$lt_compile" 2>conftest.err)
8555 ac_status=$?
8556 cat conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 if (exit $ac_status) && test -s "$ac_outfile"; then
8559 # The compiler can only warn and ignore the option if not recognized
8560 # So say no if there are warnings other than the usual output.
8561 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8563 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8564 lt_cv_prog_compiler_rtti_exceptions=yes
8567 $RM conftest*
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8571 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8573 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8574 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8575 else
8586 lt_prog_compiler_wl=
8587 lt_prog_compiler_pic=
8588 lt_prog_compiler_static=
8591 if test yes = "$GCC"; then
8592 lt_prog_compiler_wl='-Wl,'
8593 lt_prog_compiler_static='-static'
8595 case $host_os in
8596 aix*)
8597 # All AIX code is PIC.
8598 if test ia64 = "$host_cpu"; then
8599 # AIX 5 now supports IA64 processor
8600 lt_prog_compiler_static='-Bstatic'
8602 lt_prog_compiler_pic='-fPIC'
8605 amigaos*)
8606 case $host_cpu in
8607 powerpc)
8608 # see comment about AmigaOS4 .so support
8609 lt_prog_compiler_pic='-fPIC'
8611 m68k)
8612 # FIXME: we need at least 68020 code to build shared libraries, but
8613 # adding the '-m68020' flag to GCC prevents building anything better,
8614 # like '-m68040'.
8615 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8617 esac
8620 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8621 # PIC is the default for these OSes.
8624 mingw* | cygwin* | pw32* | os2* | cegcc*)
8625 # This hack is so that the source file can tell whether it is being
8626 # built for inclusion in a dll (and should export symbols for example).
8627 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8628 # (--disable-auto-import) libraries
8629 lt_prog_compiler_pic='-DDLL_EXPORT'
8630 case $host_os in
8631 os2*)
8632 lt_prog_compiler_static='$wl-static'
8634 esac
8637 darwin* | rhapsody*)
8638 # PIC is the default on this platform
8639 # Common symbols not allowed in MH_DYLIB files
8640 lt_prog_compiler_pic='-fno-common'
8643 haiku*)
8644 # PIC is the default for Haiku.
8645 # The "-static" flag exists, but is broken.
8646 lt_prog_compiler_static=
8649 hpux*)
8650 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8651 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8652 # sets the default TLS model and affects inlining.
8653 case $host_cpu in
8654 hppa*64*)
8655 # +Z the default
8658 lt_prog_compiler_pic='-fPIC'
8660 esac
8663 interix[3-9]*)
8664 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8665 # Instead, we relocate shared libraries at runtime.
8668 msdosdjgpp*)
8669 # Just because we use GCC doesn't mean we suddenly get shared libraries
8670 # on systems that don't support them.
8671 lt_prog_compiler_can_build_shared=no
8672 enable_shared=no
8675 *nto* | *qnx*)
8676 # QNX uses GNU C++, but need to define -shared option too, otherwise
8677 # it will coredump.
8678 lt_prog_compiler_pic='-fPIC -shared'
8681 sysv4*MP*)
8682 if test -d /usr/nec; then
8683 lt_prog_compiler_pic=-Kconform_pic
8688 lt_prog_compiler_pic='-fPIC'
8690 esac
8692 case $cc_basename in
8693 nvcc*) # Cuda Compiler Driver 2.2
8694 lt_prog_compiler_wl='-Xlinker '
8695 if test -n "$lt_prog_compiler_pic"; then
8696 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8699 esac
8700 else
8701 # PORTME Check for flag to pass linker flags through the system compiler.
8702 case $host_os in
8703 aix*)
8704 lt_prog_compiler_wl='-Wl,'
8705 if test ia64 = "$host_cpu"; then
8706 # AIX 5 now supports IA64 processor
8707 lt_prog_compiler_static='-Bstatic'
8708 else
8709 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8713 darwin* | rhapsody*)
8714 # PIC is the default on this platform
8715 # Common symbols not allowed in MH_DYLIB files
8716 lt_prog_compiler_pic='-fno-common'
8717 case $cc_basename in
8718 nagfor*)
8719 # NAG Fortran compiler
8720 lt_prog_compiler_wl='-Wl,-Wl,,'
8721 lt_prog_compiler_pic='-PIC'
8722 lt_prog_compiler_static='-Bstatic'
8724 esac
8727 mingw* | cygwin* | pw32* | os2* | cegcc*)
8728 # This hack is so that the source file can tell whether it is being
8729 # built for inclusion in a dll (and should export symbols for example).
8730 lt_prog_compiler_pic='-DDLL_EXPORT'
8731 case $host_os in
8732 os2*)
8733 lt_prog_compiler_static='$wl-static'
8735 esac
8738 hpux9* | hpux10* | hpux11*)
8739 lt_prog_compiler_wl='-Wl,'
8740 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8741 # not for PA HP-UX.
8742 case $host_cpu in
8743 hppa*64*|ia64*)
8744 # +Z the default
8747 lt_prog_compiler_pic='+Z'
8749 esac
8750 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8751 lt_prog_compiler_static='$wl-a ${wl}archive'
8754 irix5* | irix6* | nonstopux*)
8755 lt_prog_compiler_wl='-Wl,'
8756 # PIC (with -KPIC) is the default.
8757 lt_prog_compiler_static='-non_shared'
8760 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8761 case $cc_basename in
8762 # old Intel for x86_64, which still supported -KPIC.
8763 ecc*)
8764 lt_prog_compiler_wl='-Wl,'
8765 lt_prog_compiler_pic='-KPIC'
8766 lt_prog_compiler_static='-static'
8768 # icc used to be incompatible with GCC.
8769 # ICC 10 doesn't accept -KPIC any more.
8770 icc* | ifort*)
8771 lt_prog_compiler_wl='-Wl,'
8772 lt_prog_compiler_pic='-fPIC'
8773 lt_prog_compiler_static='-static'
8775 # Lahey Fortran 8.1.
8776 lf95*)
8777 lt_prog_compiler_wl='-Wl,'
8778 lt_prog_compiler_pic='--shared'
8779 lt_prog_compiler_static='--static'
8781 nagfor*)
8782 # NAG Fortran compiler
8783 lt_prog_compiler_wl='-Wl,-Wl,,'
8784 lt_prog_compiler_pic='-PIC'
8785 lt_prog_compiler_static='-Bstatic'
8787 tcc*)
8788 # Fabrice Bellard et al's Tiny C Compiler
8789 lt_prog_compiler_wl='-Wl,'
8790 lt_prog_compiler_pic='-fPIC'
8791 lt_prog_compiler_static='-static'
8793 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8794 # Portland Group compilers (*not* the Pentium gcc compiler,
8795 # which looks to be a dead project)
8796 lt_prog_compiler_wl='-Wl,'
8797 lt_prog_compiler_pic='-fpic'
8798 lt_prog_compiler_static='-Bstatic'
8800 ccc*)
8801 lt_prog_compiler_wl='-Wl,'
8802 # All Alpha code is PIC.
8803 lt_prog_compiler_static='-non_shared'
8805 xl* | bgxl* | bgf* | mpixl*)
8806 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8807 lt_prog_compiler_wl='-Wl,'
8808 lt_prog_compiler_pic='-qpic'
8809 lt_prog_compiler_static='-qstaticlink'
8812 case `$CC -V 2>&1 | sed 5q` in
8813 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8814 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8815 lt_prog_compiler_pic='-KPIC'
8816 lt_prog_compiler_static='-Bstatic'
8817 lt_prog_compiler_wl=''
8819 *Sun\ F* | *Sun*Fortran*)
8820 lt_prog_compiler_pic='-KPIC'
8821 lt_prog_compiler_static='-Bstatic'
8822 lt_prog_compiler_wl='-Qoption ld '
8824 *Sun\ C*)
8825 # Sun C 5.9
8826 lt_prog_compiler_pic='-KPIC'
8827 lt_prog_compiler_static='-Bstatic'
8828 lt_prog_compiler_wl='-Wl,'
8830 *Intel*\ [CF]*Compiler*)
8831 lt_prog_compiler_wl='-Wl,'
8832 lt_prog_compiler_pic='-fPIC'
8833 lt_prog_compiler_static='-static'
8835 *Portland\ Group*)
8836 lt_prog_compiler_wl='-Wl,'
8837 lt_prog_compiler_pic='-fpic'
8838 lt_prog_compiler_static='-Bstatic'
8840 esac
8842 esac
8845 newsos6)
8846 lt_prog_compiler_pic='-KPIC'
8847 lt_prog_compiler_static='-Bstatic'
8850 *nto* | *qnx*)
8851 # QNX uses GNU C++, but need to define -shared option too, otherwise
8852 # it will coredump.
8853 lt_prog_compiler_pic='-fPIC -shared'
8856 osf3* | osf4* | osf5*)
8857 lt_prog_compiler_wl='-Wl,'
8858 # All OSF/1 code is PIC.
8859 lt_prog_compiler_static='-non_shared'
8862 rdos*)
8863 lt_prog_compiler_static='-non_shared'
8866 solaris*)
8867 lt_prog_compiler_pic='-KPIC'
8868 lt_prog_compiler_static='-Bstatic'
8869 case $cc_basename in
8870 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8871 lt_prog_compiler_wl='-Qoption ld ';;
8873 lt_prog_compiler_wl='-Wl,';;
8874 esac
8877 sunos4*)
8878 lt_prog_compiler_wl='-Qoption ld '
8879 lt_prog_compiler_pic='-PIC'
8880 lt_prog_compiler_static='-Bstatic'
8883 sysv4 | sysv4.2uw2* | sysv4.3*)
8884 lt_prog_compiler_wl='-Wl,'
8885 lt_prog_compiler_pic='-KPIC'
8886 lt_prog_compiler_static='-Bstatic'
8889 sysv4*MP*)
8890 if test -d /usr/nec; then
8891 lt_prog_compiler_pic='-Kconform_pic'
8892 lt_prog_compiler_static='-Bstatic'
8896 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8897 lt_prog_compiler_wl='-Wl,'
8898 lt_prog_compiler_pic='-KPIC'
8899 lt_prog_compiler_static='-Bstatic'
8902 unicos*)
8903 lt_prog_compiler_wl='-Wl,'
8904 lt_prog_compiler_can_build_shared=no
8907 uts4*)
8908 lt_prog_compiler_pic='-pic'
8909 lt_prog_compiler_static='-Bstatic'
8913 lt_prog_compiler_can_build_shared=no
8915 esac
8918 case $host_os in
8919 # For platforms that do not support PIC, -DPIC is meaningless:
8920 *djgpp*)
8921 lt_prog_compiler_pic=
8924 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8926 esac
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8929 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8930 if ${lt_cv_prog_compiler_pic+:} false; then :
8931 $as_echo_n "(cached) " >&6
8932 else
8933 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8936 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8937 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8940 # Check to make sure the PIC flag actually works.
8942 if test -n "$lt_prog_compiler_pic"; then
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8944 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8945 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8946 $as_echo_n "(cached) " >&6
8947 else
8948 lt_cv_prog_compiler_pic_works=no
8949 ac_outfile=conftest.$ac_objext
8950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8951 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8952 # Insert the option either (1) after the last *FLAGS variable, or
8953 # (2) before a word containing "conftest.", or (3) at the end.
8954 # Note that $ac_compile itself does not contain backslashes and begins
8955 # with a dollar sign (not a hyphen), so the echo should work correctly.
8956 # The option is referenced via a variable to avoid confusing sed.
8957 lt_compile=`echo "$ac_compile" | $SED \
8958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8960 -e 's:$: $lt_compiler_flag:'`
8961 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8962 (eval "$lt_compile" 2>conftest.err)
8963 ac_status=$?
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 if (exit $ac_status) && test -s "$ac_outfile"; then
8967 # The compiler can only warn and ignore the option if not recognized
8968 # So say no if there are warnings other than the usual output.
8969 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8970 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8971 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8972 lt_cv_prog_compiler_pic_works=yes
8975 $RM conftest*
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8979 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8981 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8982 case $lt_prog_compiler_pic in
8983 "" | " "*) ;;
8984 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8985 esac
8986 else
8987 lt_prog_compiler_pic=
8988 lt_prog_compiler_can_build_shared=no
9004 # Check to make sure the static flag actually works.
9006 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9008 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9009 if ${lt_cv_prog_compiler_static_works+:} false; then :
9010 $as_echo_n "(cached) " >&6
9011 else
9012 lt_cv_prog_compiler_static_works=no
9013 save_LDFLAGS=$LDFLAGS
9014 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9015 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9016 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9017 # The linker can only warn and ignore the option if not recognized
9018 # So say no if there are warnings
9019 if test -s conftest.err; then
9020 # Append any errors to the config.log.
9021 cat conftest.err 1>&5
9022 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9023 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9024 if diff conftest.exp conftest.er2 >/dev/null; then
9025 lt_cv_prog_compiler_static_works=yes
9027 else
9028 lt_cv_prog_compiler_static_works=yes
9031 $RM -r conftest*
9032 LDFLAGS=$save_LDFLAGS
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9036 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9038 if test yes = "$lt_cv_prog_compiler_static_works"; then
9040 else
9041 lt_prog_compiler_static=
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9051 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9052 if ${lt_cv_prog_compiler_c_o+:} false; then :
9053 $as_echo_n "(cached) " >&6
9054 else
9055 lt_cv_prog_compiler_c_o=no
9056 $RM -r conftest 2>/dev/null
9057 mkdir conftest
9058 cd conftest
9059 mkdir out
9060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9062 lt_compiler_flag="-o out/conftest2.$ac_objext"
9063 # Insert the option either (1) after the last *FLAGS variable, or
9064 # (2) before a word containing "conftest.", or (3) at the end.
9065 # Note that $ac_compile itself does not contain backslashes and begins
9066 # with a dollar sign (not a hyphen), so the echo should work correctly.
9067 lt_compile=`echo "$ac_compile" | $SED \
9068 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9070 -e 's:$: $lt_compiler_flag:'`
9071 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9072 (eval "$lt_compile" 2>out/conftest.err)
9073 ac_status=$?
9074 cat out/conftest.err >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9077 then
9078 # The compiler can only warn and ignore the option if not recognized
9079 # So say no if there are warnings
9080 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9081 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9082 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9083 lt_cv_prog_compiler_c_o=yes
9086 chmod u+w . 2>&5
9087 $RM conftest*
9088 # SGI C++ compiler will create directory out/ii_files/ for
9089 # template instantiation
9090 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9091 $RM out/* && rmdir out
9092 cd ..
9093 $RM -r conftest
9094 $RM conftest*
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9098 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9106 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9107 if ${lt_cv_prog_compiler_c_o+:} false; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 lt_cv_prog_compiler_c_o=no
9111 $RM -r conftest 2>/dev/null
9112 mkdir conftest
9113 cd conftest
9114 mkdir out
9115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9117 lt_compiler_flag="-o out/conftest2.$ac_objext"
9118 # Insert the option either (1) after the last *FLAGS variable, or
9119 # (2) before a word containing "conftest.", or (3) at the end.
9120 # Note that $ac_compile itself does not contain backslashes and begins
9121 # with a dollar sign (not a hyphen), so the echo should work correctly.
9122 lt_compile=`echo "$ac_compile" | $SED \
9123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9125 -e 's:$: $lt_compiler_flag:'`
9126 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9127 (eval "$lt_compile" 2>out/conftest.err)
9128 ac_status=$?
9129 cat out/conftest.err >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9132 then
9133 # The compiler can only warn and ignore the option if not recognized
9134 # So say no if there are warnings
9135 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9136 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9137 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9138 lt_cv_prog_compiler_c_o=yes
9141 chmod u+w . 2>&5
9142 $RM conftest*
9143 # SGI C++ compiler will create directory out/ii_files/ for
9144 # template instantiation
9145 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9146 $RM out/* && rmdir out
9147 cd ..
9148 $RM -r conftest
9149 $RM conftest*
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9153 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9158 hard_links=nottested
9159 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9160 # do not overwrite the value of need_locks provided by the user
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9162 $as_echo_n "checking if we can lock with hard links... " >&6; }
9163 hard_links=yes
9164 $RM conftest*
9165 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9166 touch conftest.a
9167 ln conftest.a conftest.b 2>&5 || hard_links=no
9168 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9170 $as_echo "$hard_links" >&6; }
9171 if test no = "$hard_links"; then
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9173 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9174 need_locks=warn
9176 else
9177 need_locks=no
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9186 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9188 runpath_var=
9189 allow_undefined_flag=
9190 always_export_symbols=no
9191 archive_cmds=
9192 archive_expsym_cmds=
9193 compiler_needs_object=no
9194 enable_shared_with_static_runtimes=no
9195 export_dynamic_flag_spec=
9196 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9197 hardcode_automatic=no
9198 hardcode_direct=no
9199 hardcode_direct_absolute=no
9200 hardcode_libdir_flag_spec=
9201 hardcode_libdir_separator=
9202 hardcode_minus_L=no
9203 hardcode_shlibpath_var=unsupported
9204 inherit_rpath=no
9205 link_all_deplibs=unknown
9206 module_cmds=
9207 module_expsym_cmds=
9208 old_archive_from_new_cmds=
9209 old_archive_from_expsyms_cmds=
9210 thread_safe_flag_spec=
9211 whole_archive_flag_spec=
9212 # include_expsyms should be a list of space-separated symbols to be *always*
9213 # included in the symbol list
9214 include_expsyms=
9215 # exclude_expsyms can be an extended regexp of symbols to exclude
9216 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9217 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9218 # as well as any symbol that contains 'd'.
9219 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9220 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9221 # platforms (ab)use it in PIC code, but their linkers get confused if
9222 # the symbol is explicitly referenced. Since portable code cannot
9223 # rely on this symbol name, it's probably fine to never include it in
9224 # preloaded symbol tables.
9225 # Exclude shared library initialization/finalization symbols.
9226 extract_expsyms_cmds=
9228 case $host_os in
9229 cygwin* | mingw* | pw32* | cegcc*)
9230 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9231 # When not using gcc, we currently assume that we are using
9232 # Microsoft Visual C++.
9233 if test yes != "$GCC"; then
9234 with_gnu_ld=no
9237 interix*)
9238 # we just hope/assume this is gcc and not c89 (= MSVC++)
9239 with_gnu_ld=yes
9241 openbsd* | bitrig*)
9242 with_gnu_ld=no
9244 esac
9246 ld_shlibs=yes
9248 # On some targets, GNU ld is compatible enough with the native linker
9249 # that we're better off using the native interface for both.
9250 lt_use_gnu_ld_interface=no
9251 if test yes = "$with_gnu_ld"; then
9252 case $host_os in
9253 aix*)
9254 # The AIX port of GNU ld has always aspired to compatibility
9255 # with the native linker. However, as the warning in the GNU ld
9256 # block says, versions before 2.19.5* couldn't really create working
9257 # shared libraries, regardless of the interface used.
9258 case `$LD -v 2>&1` in
9259 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9260 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9261 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9263 lt_use_gnu_ld_interface=yes
9265 esac
9268 lt_use_gnu_ld_interface=yes
9270 esac
9273 if test yes = "$lt_use_gnu_ld_interface"; then
9274 # If archive_cmds runs LD, not CC, wlarc should be empty
9275 wlarc='$wl'
9277 # Set some defaults for GNU ld with shared library support. These
9278 # are reset later if shared libraries are not supported. Putting them
9279 # here allows them to be overridden if necessary.
9280 runpath_var=LD_RUN_PATH
9281 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9282 export_dynamic_flag_spec='$wl--export-dynamic'
9283 # ancient GNU ld didn't support --whole-archive et. al.
9284 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9285 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9286 else
9287 whole_archive_flag_spec=
9289 supports_anon_versioning=no
9290 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9291 *GNU\ gold*) supports_anon_versioning=yes ;;
9292 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9293 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9294 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9295 *\ 2.11.*) ;; # other 2.11 versions
9296 *) supports_anon_versioning=yes ;;
9297 esac
9299 # See if GNU ld supports shared libraries.
9300 case $host_os in
9301 aix[3-9]*)
9302 # On AIX/PPC, the GNU linker is very broken
9303 if test ia64 != "$host_cpu"; then
9304 ld_shlibs=no
9305 cat <<_LT_EOF 1>&2
9307 *** Warning: the GNU linker, at least up to release 2.19, is reported
9308 *** to be unable to reliably create shared libraries on AIX.
9309 *** Therefore, libtool is disabling shared libraries support. If you
9310 *** really care for shared libraries, you may want to install binutils
9311 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9312 *** You will then need to restart the configuration process.
9314 _LT_EOF
9318 amigaos*)
9319 case $host_cpu in
9320 powerpc)
9321 # see comment about AmigaOS4 .so support
9322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9323 archive_expsym_cmds=''
9325 m68k)
9326 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)'
9327 hardcode_libdir_flag_spec='-L$libdir'
9328 hardcode_minus_L=yes
9330 esac
9333 beos*)
9334 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9335 allow_undefined_flag=unsupported
9336 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9337 # support --undefined. This deserves some investigation. FIXME
9338 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9339 else
9340 ld_shlibs=no
9344 cygwin* | mingw* | pw32* | cegcc*)
9345 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9346 # as there is no search path for DLLs.
9347 hardcode_libdir_flag_spec='-L$libdir'
9348 export_dynamic_flag_spec='$wl--export-all-symbols'
9349 allow_undefined_flag=unsupported
9350 always_export_symbols=no
9351 enable_shared_with_static_runtimes=yes
9352 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'
9353 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9355 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9357 # If the export-symbols file already is a .def file, use it as
9358 # is; otherwise, prepend EXPORTS...
9359 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9360 cp $export_symbols $output_objdir/$soname.def;
9361 else
9362 echo EXPORTS > $output_objdir/$soname.def;
9363 cat $export_symbols >> $output_objdir/$soname.def;
9365 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9366 else
9367 ld_shlibs=no
9371 haiku*)
9372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9373 link_all_deplibs=yes
9376 os2*)
9377 hardcode_libdir_flag_spec='-L$libdir'
9378 hardcode_minus_L=yes
9379 allow_undefined_flag=unsupported
9380 shrext_cmds=.dll
9381 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9382 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9383 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9384 $ECHO EXPORTS >> $output_objdir/$libname.def~
9385 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9386 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9387 emximp -o $lib $output_objdir/$libname.def'
9388 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9389 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9390 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9391 $ECHO EXPORTS >> $output_objdir/$libname.def~
9392 prefix_cmds="$SED"~
9393 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9394 prefix_cmds="$prefix_cmds -e 1d";
9396 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9397 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9398 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9399 emximp -o $lib $output_objdir/$libname.def'
9400 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9401 enable_shared_with_static_runtimes=yes
9404 interix[3-9]*)
9405 hardcode_direct=no
9406 hardcode_shlibpath_var=no
9407 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9408 export_dynamic_flag_spec='$wl-E'
9409 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9410 # Instead, shared libraries are loaded at an image base (0x10000000 by
9411 # default) and relocated if they conflict, which is a slow very memory
9412 # consuming and fragmenting process. To avoid this, we pick a random,
9413 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9414 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9415 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9416 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'
9419 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9420 tmp_diet=no
9421 if test linux-dietlibc = "$host_os"; then
9422 case $cc_basename in
9423 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9424 esac
9426 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9427 && test no = "$tmp_diet"
9428 then
9429 tmp_addflag=' $pic_flag'
9430 tmp_sharedflag='-shared'
9431 case $cc_basename,$host_cpu in
9432 pgcc*) # Portland Group C compiler
9433 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'
9434 tmp_addflag=' $pic_flag'
9436 pgf77* | pgf90* | pgf95* | pgfortran*)
9437 # Portland Group f77 and f90 compilers
9438 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'
9439 tmp_addflag=' $pic_flag -Mnomain' ;;
9440 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9441 tmp_addflag=' -i_dynamic' ;;
9442 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9443 tmp_addflag=' -i_dynamic -nofor_main' ;;
9444 ifc* | ifort*) # Intel Fortran compiler
9445 tmp_addflag=' -nofor_main' ;;
9446 lf95*) # Lahey Fortran 8.1
9447 whole_archive_flag_spec=
9448 tmp_sharedflag='--shared' ;;
9449 nagfor*) # NAGFOR 5.3
9450 tmp_sharedflag='-Wl,-shared' ;;
9451 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9452 tmp_sharedflag='-qmkshrobj'
9453 tmp_addflag= ;;
9454 nvcc*) # Cuda Compiler Driver 2.2
9455 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'
9456 compiler_needs_object=yes
9458 esac
9459 case `$CC -V 2>&1 | sed 5q` in
9460 *Sun\ C*) # Sun C 5.9
9461 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'
9462 compiler_needs_object=yes
9463 tmp_sharedflag='-G' ;;
9464 *Sun\ F*) # Sun Fortran 8.3
9465 tmp_sharedflag='-G' ;;
9466 esac
9467 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9469 if test yes = "$supports_anon_versioning"; then
9470 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9471 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9472 echo "local: *; };" >> $output_objdir/$libname.ver~
9473 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9476 case $cc_basename in
9477 tcc*)
9478 export_dynamic_flag_spec='-rdynamic'
9480 xlf* | bgf* | bgxlf* | mpixlf*)
9481 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9482 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9483 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9484 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9485 if test yes = "$supports_anon_versioning"; then
9486 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9487 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9488 echo "local: *; };" >> $output_objdir/$libname.ver~
9489 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9492 esac
9493 else
9494 ld_shlibs=no
9498 netbsd*)
9499 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9500 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9501 wlarc=
9502 else
9503 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9504 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9508 solaris*)
9509 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9510 ld_shlibs=no
9511 cat <<_LT_EOF 1>&2
9513 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9514 *** create shared libraries on Solaris systems. Therefore, libtool
9515 *** is disabling shared libraries support. We urge you to upgrade GNU
9516 *** binutils to release 2.9.1 or newer. Another option is to modify
9517 *** your PATH or compiler configuration so that the native linker is
9518 *** used, and then restart.
9520 _LT_EOF
9521 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9522 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9523 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9524 else
9525 ld_shlibs=no
9529 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9530 case `$LD -v 2>&1` in
9531 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9532 ld_shlibs=no
9533 cat <<_LT_EOF 1>&2
9535 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9536 *** reliably create shared libraries on SCO systems. Therefore, libtool
9537 *** is disabling shared libraries support. We urge you to upgrade GNU
9538 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9539 *** your PATH or compiler configuration so that the native linker is
9540 *** used, and then restart.
9542 _LT_EOF
9545 # For security reasons, it is highly recommended that you always
9546 # use absolute paths for naming shared libraries, and exclude the
9547 # DT_RUNPATH tag from executables and libraries. But doing so
9548 # requires that you compile everything twice, which is a pain.
9549 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9550 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9552 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9553 else
9554 ld_shlibs=no
9557 esac
9560 sunos4*)
9561 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9562 wlarc=
9563 hardcode_direct=yes
9564 hardcode_shlibpath_var=no
9568 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9569 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9570 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9571 else
9572 ld_shlibs=no
9575 esac
9577 if test no = "$ld_shlibs"; then
9578 runpath_var=
9579 hardcode_libdir_flag_spec=
9580 export_dynamic_flag_spec=
9581 whole_archive_flag_spec=
9583 else
9584 # PORTME fill in a description of your system's linker (not GNU ld)
9585 case $host_os in
9586 aix3*)
9587 allow_undefined_flag=unsupported
9588 always_export_symbols=yes
9589 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'
9590 # Note: this linker hardcodes the directories in LIBPATH if there
9591 # are no directories specified by -L.
9592 hardcode_minus_L=yes
9593 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9594 # Neither direct hardcoding nor static linking is supported with a
9595 # broken collect2.
9596 hardcode_direct=unsupported
9600 aix[4-9]*)
9601 if test ia64 = "$host_cpu"; then
9602 # On IA64, the linker does run time linking by default, so we don't
9603 # have to do anything special.
9604 aix_use_runtimelinking=no
9605 exp_sym_flag='-Bexport'
9606 no_entry_flag=
9607 else
9608 # If we're using GNU nm, then we don't want the "-C" option.
9609 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9610 # Without the "-l" option, or with the "-B" option, AIX nm treats
9611 # weak defined symbols like other global defined symbols, whereas
9612 # GNU nm marks them as "W".
9613 # While the 'weak' keyword is ignored in the Export File, we need
9614 # it in the Import File for the 'aix-soname' feature, so we have
9615 # to replace the "-B" option with "-P" for AIX nm.
9616 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9617 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9618 else
9619 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9621 aix_use_runtimelinking=no
9623 # Test if we are trying to use run time linking or normal
9624 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9625 # have runtime linking enabled, and use it for executables.
9626 # For shared libraries, we enable/disable runtime linking
9627 # depending on the kind of the shared library created -
9628 # when "with_aix_soname,aix_use_runtimelinking" is:
9629 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9630 # "aix,yes" lib.so shared, rtl:yes, for executables
9631 # lib.a static archive
9632 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9633 # lib.a(lib.so.V) shared, rtl:no, for executables
9634 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9635 # lib.a(lib.so.V) shared, rtl:no
9636 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9637 # lib.a static archive
9638 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9639 for ld_flag in $LDFLAGS; do
9640 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9641 aix_use_runtimelinking=yes
9642 break
9644 done
9645 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9646 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9647 # so we don't have lib.a shared libs to link our executables.
9648 # We have to force runtime linking in this case.
9649 aix_use_runtimelinking=yes
9650 LDFLAGS="$LDFLAGS -Wl,-brtl"
9653 esac
9655 exp_sym_flag='-bexport'
9656 no_entry_flag='-bnoentry'
9659 # When large executables or shared objects are built, AIX ld can
9660 # have problems creating the table of contents. If linking a library
9661 # or program results in "error TOC overflow" add -mminimal-toc to
9662 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9663 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9665 archive_cmds=''
9666 hardcode_direct=yes
9667 hardcode_direct_absolute=yes
9668 hardcode_libdir_separator=':'
9669 link_all_deplibs=yes
9670 file_list_spec='$wl-f,'
9671 case $with_aix_soname,$aix_use_runtimelinking in
9672 aix,*) ;; # traditional, no import file
9673 svr4,* | *,yes) # use import file
9674 # The Import File defines what to hardcode.
9675 hardcode_direct=no
9676 hardcode_direct_absolute=no
9678 esac
9680 if test yes = "$GCC"; then
9681 case $host_os in aix4.[012]|aix4.[012].*)
9682 # We only want to do this on AIX 4.2 and lower, the check
9683 # below for broken collect2 doesn't work under 4.3+
9684 collect2name=`$CC -print-prog-name=collect2`
9685 if test -f "$collect2name" &&
9686 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9687 then
9688 # We have reworked collect2
9690 else
9691 # We have old collect2
9692 hardcode_direct=unsupported
9693 # It fails to find uninstalled libraries when the uninstalled
9694 # path is not listed in the libpath. Setting hardcode_minus_L
9695 # to unsupported forces relinking
9696 hardcode_minus_L=yes
9697 hardcode_libdir_flag_spec='-L$libdir'
9698 hardcode_libdir_separator=
9701 esac
9702 shared_flag='-shared'
9703 if test yes = "$aix_use_runtimelinking"; then
9704 shared_flag="$shared_flag "'$wl-G'
9706 # Need to ensure runtime linking is disabled for the traditional
9707 # shared library, or the linker may eventually find shared libraries
9708 # /with/ Import File - we do not want to mix them.
9709 shared_flag_aix='-shared'
9710 shared_flag_svr4='-shared $wl-G'
9711 else
9712 # not using gcc
9713 if test ia64 = "$host_cpu"; then
9714 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9715 # chokes on -Wl,-G. The following line is correct:
9716 shared_flag='-G'
9717 else
9718 if test yes = "$aix_use_runtimelinking"; then
9719 shared_flag='$wl-G'
9720 else
9721 shared_flag='$wl-bM:SRE'
9723 shared_flag_aix='$wl-bM:SRE'
9724 shared_flag_svr4='$wl-G'
9728 export_dynamic_flag_spec='$wl-bexpall'
9729 # It seems that -bexpall does not export symbols beginning with
9730 # underscore (_), so it is better to generate a list of symbols to export.
9731 always_export_symbols=yes
9732 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9733 # Warning - without using the other runtime loading flags (-brtl),
9734 # -berok will link without error, but may produce a broken library.
9735 allow_undefined_flag='-berok'
9736 # Determine the default libpath from the value encoded in an
9737 # empty executable.
9738 if test set = "${lt_cv_aix_libpath+set}"; then
9739 aix_libpath=$lt_cv_aix_libpath
9740 else
9741 if ${lt_cv_aix_libpath_+:} false; then :
9742 $as_echo_n "(cached) " >&6
9743 else
9744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h. */
9748 main ()
9752 return 0;
9754 _ACEOF
9755 if ac_fn_c_try_link "$LINENO"; then :
9757 lt_aix_libpath_sed='
9758 /Import File Strings/,/^$/ {
9759 /^0/ {
9760 s/^0 *\([^ ]*\) *$/\1/
9764 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9765 # Check for a 64-bit object if we didn't find anything.
9766 if test -z "$lt_cv_aix_libpath_"; then
9767 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9770 rm -f core conftest.err conftest.$ac_objext \
9771 conftest$ac_exeext conftest.$ac_ext
9772 if test -z "$lt_cv_aix_libpath_"; then
9773 lt_cv_aix_libpath_=/usr/lib:/lib
9778 aix_libpath=$lt_cv_aix_libpath_
9781 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9782 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9783 else
9784 if test ia64 = "$host_cpu"; then
9785 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9786 allow_undefined_flag="-z nodefs"
9787 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"
9788 else
9789 # Determine the default libpath from the value encoded in an
9790 # empty executable.
9791 if test set = "${lt_cv_aix_libpath+set}"; then
9792 aix_libpath=$lt_cv_aix_libpath
9793 else
9794 if ${lt_cv_aix_libpath_+:} false; then :
9795 $as_echo_n "(cached) " >&6
9796 else
9797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798 /* end confdefs.h. */
9801 main ()
9805 return 0;
9807 _ACEOF
9808 if ac_fn_c_try_link "$LINENO"; then :
9810 lt_aix_libpath_sed='
9811 /Import File Strings/,/^$/ {
9812 /^0/ {
9813 s/^0 *\([^ ]*\) *$/\1/
9817 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9818 # Check for a 64-bit object if we didn't find anything.
9819 if test -z "$lt_cv_aix_libpath_"; then
9820 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9823 rm -f core conftest.err conftest.$ac_objext \
9824 conftest$ac_exeext conftest.$ac_ext
9825 if test -z "$lt_cv_aix_libpath_"; then
9826 lt_cv_aix_libpath_=/usr/lib:/lib
9831 aix_libpath=$lt_cv_aix_libpath_
9834 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9835 # Warning - without using the other run time loading flags,
9836 # -berok will link without error, but may produce a broken library.
9837 no_undefined_flag=' $wl-bernotok'
9838 allow_undefined_flag=' $wl-berok'
9839 if test yes = "$with_gnu_ld"; then
9840 # We only use this code for GNU lds that support --whole-archive.
9841 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9842 else
9843 # Exported symbols can be pulled into shared objects from archives
9844 whole_archive_flag_spec='$convenience'
9846 archive_cmds_need_lc=yes
9847 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9848 # -brtl affects multiple linker settings, -berok does not and is overridden later
9849 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9850 if test svr4 != "$with_aix_soname"; then
9851 # This is similar to how AIX traditionally builds its shared libraries.
9852 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9854 if test aix != "$with_aix_soname"; then
9855 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9856 else
9857 # used by -dlpreopen to get the symbols
9858 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9860 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9865 amigaos*)
9866 case $host_cpu in
9867 powerpc)
9868 # see comment about AmigaOS4 .so support
9869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9870 archive_expsym_cmds=''
9872 m68k)
9873 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)'
9874 hardcode_libdir_flag_spec='-L$libdir'
9875 hardcode_minus_L=yes
9877 esac
9880 bsdi[45]*)
9881 export_dynamic_flag_spec=-rdynamic
9884 cygwin* | mingw* | pw32* | cegcc*)
9885 # When not using gcc, we currently assume that we are using
9886 # Microsoft Visual C++.
9887 # hardcode_libdir_flag_spec is actually meaningless, as there is
9888 # no search path for DLLs.
9889 case $cc_basename in
9890 cl*)
9891 # Native MSVC
9892 hardcode_libdir_flag_spec=' '
9893 allow_undefined_flag=unsupported
9894 always_export_symbols=yes
9895 file_list_spec='@'
9896 # Tell ltmain to make .lib files, not .a files.
9897 libext=lib
9898 # Tell ltmain to make .dll files, not .so files.
9899 shrext_cmds=.dll
9900 # FIXME: Setting linknames here is a bad hack.
9901 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9902 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9903 cp "$export_symbols" "$output_objdir/$soname.def";
9904 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9905 else
9906 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9908 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9909 linknames='
9910 # The linker will not automatically build a static lib if we build a DLL.
9911 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9912 enable_shared_with_static_runtimes=yes
9913 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9914 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9915 # Don't use ranlib
9916 old_postinstall_cmds='chmod 644 $oldlib'
9917 postlink_cmds='lt_outputfile="@OUTPUT@"~
9918 lt_tool_outputfile="@TOOL_OUTPUT@"~
9919 case $lt_outputfile in
9920 *.exe|*.EXE) ;;
9922 lt_outputfile=$lt_outputfile.exe
9923 lt_tool_outputfile=$lt_tool_outputfile.exe
9925 esac~
9926 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9927 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9928 $RM "$lt_outputfile.manifest";
9932 # Assume MSVC wrapper
9933 hardcode_libdir_flag_spec=' '
9934 allow_undefined_flag=unsupported
9935 # Tell ltmain to make .lib files, not .a files.
9936 libext=lib
9937 # Tell ltmain to make .dll files, not .so files.
9938 shrext_cmds=.dll
9939 # FIXME: Setting linknames here is a bad hack.
9940 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9941 # The linker will automatically build a .lib file if we build a DLL.
9942 old_archive_from_new_cmds='true'
9943 # FIXME: Should let the user specify the lib program.
9944 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9945 enable_shared_with_static_runtimes=yes
9947 esac
9950 darwin* | rhapsody*)
9953 archive_cmds_need_lc=no
9954 hardcode_direct=no
9955 hardcode_automatic=yes
9956 hardcode_shlibpath_var=unsupported
9957 if test yes = "$lt_cv_ld_force_load"; then
9958 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\"`'
9960 else
9961 whole_archive_flag_spec=''
9963 link_all_deplibs=yes
9964 allow_undefined_flag=$_lt_dar_allow_undefined
9965 case $cc_basename in
9966 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9967 *) _lt_dar_can_shared=$GCC ;;
9968 esac
9969 if test yes = "$_lt_dar_can_shared"; then
9970 output_verbose_link_cmd=func_echo_all
9971 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9972 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9973 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"
9974 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"
9976 else
9977 ld_shlibs=no
9982 dgux*)
9983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9984 hardcode_libdir_flag_spec='-L$libdir'
9985 hardcode_shlibpath_var=no
9988 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9989 # support. Future versions do this automatically, but an explicit c++rt0.o
9990 # does not break anything, and helps significantly (at the cost of a little
9991 # extra space).
9992 freebsd2.2*)
9993 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9994 hardcode_libdir_flag_spec='-R$libdir'
9995 hardcode_direct=yes
9996 hardcode_shlibpath_var=no
9999 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10000 freebsd2.*)
10001 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10002 hardcode_direct=yes
10003 hardcode_minus_L=yes
10004 hardcode_shlibpath_var=no
10007 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10008 freebsd* | dragonfly*)
10009 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10010 hardcode_libdir_flag_spec='-R$libdir'
10011 hardcode_direct=yes
10012 hardcode_shlibpath_var=no
10015 hpux9*)
10016 if test yes = "$GCC"; then
10017 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10018 else
10019 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10021 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10022 hardcode_libdir_separator=:
10023 hardcode_direct=yes
10025 # hardcode_minus_L: Not really in the search PATH,
10026 # but as the default location of the library.
10027 hardcode_minus_L=yes
10028 export_dynamic_flag_spec='$wl-E'
10031 hpux10*)
10032 if test yes,no = "$GCC,$with_gnu_ld"; then
10033 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10034 else
10035 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10037 if test no = "$with_gnu_ld"; then
10038 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10039 hardcode_libdir_separator=:
10040 hardcode_direct=yes
10041 hardcode_direct_absolute=yes
10042 export_dynamic_flag_spec='$wl-E'
10043 # hardcode_minus_L: Not really in the search PATH,
10044 # but as the default location of the library.
10045 hardcode_minus_L=yes
10049 hpux11*)
10050 if test yes,no = "$GCC,$with_gnu_ld"; then
10051 case $host_cpu in
10052 hppa*64*)
10053 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10055 ia64*)
10056 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10059 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10061 esac
10062 else
10063 case $host_cpu in
10064 hppa*64*)
10065 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10067 ia64*)
10068 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10072 # Older versions of the 11.00 compiler do not understand -b yet
10073 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10075 $as_echo_n "checking if $CC understands -b... " >&6; }
10076 if ${lt_cv_prog_compiler__b+:} false; then :
10077 $as_echo_n "(cached) " >&6
10078 else
10079 lt_cv_prog_compiler__b=no
10080 save_LDFLAGS=$LDFLAGS
10081 LDFLAGS="$LDFLAGS -b"
10082 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10083 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10084 # The linker can only warn and ignore the option if not recognized
10085 # So say no if there are warnings
10086 if test -s conftest.err; then
10087 # Append any errors to the config.log.
10088 cat conftest.err 1>&5
10089 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10091 if diff conftest.exp conftest.er2 >/dev/null; then
10092 lt_cv_prog_compiler__b=yes
10094 else
10095 lt_cv_prog_compiler__b=yes
10098 $RM -r conftest*
10099 LDFLAGS=$save_LDFLAGS
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10103 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10105 if test yes = "$lt_cv_prog_compiler__b"; then
10106 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10107 else
10108 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10112 esac
10114 if test no = "$with_gnu_ld"; then
10115 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10116 hardcode_libdir_separator=:
10118 case $host_cpu in
10119 hppa*64*|ia64*)
10120 hardcode_direct=no
10121 hardcode_shlibpath_var=no
10124 hardcode_direct=yes
10125 hardcode_direct_absolute=yes
10126 export_dynamic_flag_spec='$wl-E'
10128 # hardcode_minus_L: Not really in the search PATH,
10129 # but as the default location of the library.
10130 hardcode_minus_L=yes
10132 esac
10136 irix5* | irix6* | nonstopux*)
10137 if test yes = "$GCC"; then
10138 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'
10139 # Try to use the -exported_symbol ld option, if it does not
10140 # work, assume that -exports_file does not work either and
10141 # implicitly export all symbols.
10142 # This should be the same for all languages, so no per-tag cache variable.
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10144 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10145 if ${lt_cv_irix_exported_symbol+:} false; then :
10146 $as_echo_n "(cached) " >&6
10147 else
10148 save_LDFLAGS=$LDFLAGS
10149 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151 /* end confdefs.h. */
10152 int foo (void) { return 0; }
10153 _ACEOF
10154 if ac_fn_c_try_link "$LINENO"; then :
10155 lt_cv_irix_exported_symbol=yes
10156 else
10157 lt_cv_irix_exported_symbol=no
10159 rm -f core conftest.err conftest.$ac_objext \
10160 conftest$ac_exeext conftest.$ac_ext
10161 LDFLAGS=$save_LDFLAGS
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10164 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10165 if test yes = "$lt_cv_irix_exported_symbol"; then
10166 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'
10168 else
10169 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'
10170 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'
10172 archive_cmds_need_lc='no'
10173 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10174 hardcode_libdir_separator=:
10175 inherit_rpath=yes
10176 link_all_deplibs=yes
10179 linux*)
10180 case $cc_basename in
10181 tcc*)
10182 # Fabrice Bellard et al's Tiny C Compiler
10183 ld_shlibs=yes
10184 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10186 esac
10189 netbsd*)
10190 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10191 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10192 else
10193 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10195 hardcode_libdir_flag_spec='-R$libdir'
10196 hardcode_direct=yes
10197 hardcode_shlibpath_var=no
10200 newsos6)
10201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10202 hardcode_direct=yes
10203 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10204 hardcode_libdir_separator=:
10205 hardcode_shlibpath_var=no
10208 *nto* | *qnx*)
10211 openbsd* | bitrig*)
10212 if test -f /usr/libexec/ld.so; then
10213 hardcode_direct=yes
10214 hardcode_shlibpath_var=no
10215 hardcode_direct_absolute=yes
10216 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10217 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10218 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10219 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10220 export_dynamic_flag_spec='$wl-E'
10221 else
10222 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10223 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10225 else
10226 ld_shlibs=no
10230 os2*)
10231 hardcode_libdir_flag_spec='-L$libdir'
10232 hardcode_minus_L=yes
10233 allow_undefined_flag=unsupported
10234 shrext_cmds=.dll
10235 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10236 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10237 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10238 $ECHO EXPORTS >> $output_objdir/$libname.def~
10239 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10240 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10241 emximp -o $lib $output_objdir/$libname.def'
10242 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10243 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10244 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10245 $ECHO EXPORTS >> $output_objdir/$libname.def~
10246 prefix_cmds="$SED"~
10247 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10248 prefix_cmds="$prefix_cmds -e 1d";
10250 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10251 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10252 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10253 emximp -o $lib $output_objdir/$libname.def'
10254 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10255 enable_shared_with_static_runtimes=yes
10258 osf3*)
10259 if test yes = "$GCC"; then
10260 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10261 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'
10262 else
10263 allow_undefined_flag=' -expect_unresolved \*'
10264 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'
10266 archive_cmds_need_lc='no'
10267 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10268 hardcode_libdir_separator=:
10271 osf4* | osf5*) # as osf3* with the addition of -msym flag
10272 if test yes = "$GCC"; then
10273 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10274 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'
10275 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10276 else
10277 allow_undefined_flag=' -expect_unresolved \*'
10278 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'
10279 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~
10280 $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'
10282 # Both c and cxx compiler support -rpath directly
10283 hardcode_libdir_flag_spec='-rpath $libdir'
10285 archive_cmds_need_lc='no'
10286 hardcode_libdir_separator=:
10289 solaris*)
10290 no_undefined_flag=' -z defs'
10291 if test yes = "$GCC"; then
10292 wlarc='$wl'
10293 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10294 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10295 $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'
10296 else
10297 case `$CC -V 2>&1` in
10298 *"Compilers 5.0"*)
10299 wlarc=''
10300 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10301 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10302 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10305 wlarc='$wl'
10306 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10307 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10308 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10310 esac
10312 hardcode_libdir_flag_spec='-R$libdir'
10313 hardcode_shlibpath_var=no
10314 case $host_os in
10315 solaris2.[0-5] | solaris2.[0-5].*) ;;
10317 # The compiler driver will combine and reorder linker options,
10318 # but understands '-z linker_flag'. GCC discards it without '$wl',
10319 # but is careful enough not to reorder.
10320 # Supported since Solaris 2.6 (maybe 2.5.1?)
10321 if test yes = "$GCC"; then
10322 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10323 else
10324 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10327 esac
10328 link_all_deplibs=yes
10331 sunos4*)
10332 if test sequent = "$host_vendor"; then
10333 # Use $CC to link under sequent, because it throws in some extra .o
10334 # files that make .init and .fini sections work.
10335 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10336 else
10337 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10339 hardcode_libdir_flag_spec='-L$libdir'
10340 hardcode_direct=yes
10341 hardcode_minus_L=yes
10342 hardcode_shlibpath_var=no
10345 sysv4)
10346 case $host_vendor in
10347 sni)
10348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10349 hardcode_direct=yes # is this really true???
10351 siemens)
10352 ## LD is ld it makes a PLAMLIB
10353 ## CC just makes a GrossModule.
10354 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10355 reload_cmds='$CC -r -o $output$reload_objs'
10356 hardcode_direct=no
10358 motorola)
10359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10360 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10362 esac
10363 runpath_var='LD_RUN_PATH'
10364 hardcode_shlibpath_var=no
10367 sysv4.3*)
10368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10369 hardcode_shlibpath_var=no
10370 export_dynamic_flag_spec='-Bexport'
10373 sysv4*MP*)
10374 if test -d /usr/nec; then
10375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10376 hardcode_shlibpath_var=no
10377 runpath_var=LD_RUN_PATH
10378 hardcode_runpath_var=yes
10379 ld_shlibs=yes
10383 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10384 no_undefined_flag='$wl-z,text'
10385 archive_cmds_need_lc=no
10386 hardcode_shlibpath_var=no
10387 runpath_var='LD_RUN_PATH'
10389 if test yes = "$GCC"; then
10390 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10391 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10392 else
10393 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10394 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10398 sysv5* | sco3.2v5* | sco5v6*)
10399 # Note: We CANNOT use -z defs as we might desire, because we do not
10400 # link with -lc, and that would cause any symbols used from libc to
10401 # always be unresolved, which means just about no library would
10402 # ever link correctly. If we're not using GNU ld we use -z text
10403 # though, which does catch some bad symbols but isn't as heavy-handed
10404 # as -z defs.
10405 no_undefined_flag='$wl-z,text'
10406 allow_undefined_flag='$wl-z,nodefs'
10407 archive_cmds_need_lc=no
10408 hardcode_shlibpath_var=no
10409 hardcode_libdir_flag_spec='$wl-R,$libdir'
10410 hardcode_libdir_separator=':'
10411 link_all_deplibs=yes
10412 export_dynamic_flag_spec='$wl-Bexport'
10413 runpath_var='LD_RUN_PATH'
10415 if test yes = "$GCC"; then
10416 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10417 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10418 else
10419 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10420 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10424 uts4*)
10425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10426 hardcode_libdir_flag_spec='-L$libdir'
10427 hardcode_shlibpath_var=no
10431 ld_shlibs=no
10433 esac
10435 if test sni = "$host_vendor"; then
10436 case $host in
10437 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10438 export_dynamic_flag_spec='$wl-Blargedynsym'
10440 esac
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10445 $as_echo "$ld_shlibs" >&6; }
10446 test no = "$ld_shlibs" && can_build_shared=no
10448 with_gnu_ld=$with_gnu_ld
10465 # Do we need to explicitly link libc?
10467 case "x$archive_cmds_need_lc" in
10468 x|xyes)
10469 # Assume -lc should be added
10470 archive_cmds_need_lc=yes
10472 if test yes,yes = "$GCC,$enable_shared"; then
10473 case $archive_cmds in
10474 *'~'*)
10475 # FIXME: we may have to deal with multi-command sequences.
10477 '$CC '*)
10478 # Test whether the compiler implicitly links with -lc since on some
10479 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10480 # to ld, don't add -lc before -lgcc.
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10482 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10483 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10484 $as_echo_n "(cached) " >&6
10485 else
10486 $RM conftest*
10487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10490 (eval $ac_compile) 2>&5
10491 ac_status=$?
10492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10493 test $ac_status = 0; } 2>conftest.err; then
10494 soname=conftest
10495 lib=conftest
10496 libobjs=conftest.$ac_objext
10497 deplibs=
10498 wl=$lt_prog_compiler_wl
10499 pic_flag=$lt_prog_compiler_pic
10500 compiler_flags=-v
10501 linker_flags=-v
10502 verstring=
10503 output_objdir=.
10504 libname=conftest
10505 lt_save_allow_undefined_flag=$allow_undefined_flag
10506 allow_undefined_flag=
10507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10508 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10509 ac_status=$?
10510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10511 test $ac_status = 0; }
10512 then
10513 lt_cv_archive_cmds_need_lc=no
10514 else
10515 lt_cv_archive_cmds_need_lc=yes
10517 allow_undefined_flag=$lt_save_allow_undefined_flag
10518 else
10519 cat conftest.err 1>&5
10521 $RM conftest*
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10525 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10526 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10528 esac
10531 esac
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10685 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10687 if test yes = "$GCC"; then
10688 case $host_os in
10689 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10690 *) lt_awk_arg='/^libraries:/' ;;
10691 esac
10692 case $host_os in
10693 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10694 *) lt_sed_strip_eq='s|=/|/|g' ;;
10695 esac
10696 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10697 case $lt_search_path_spec in
10698 *\;*)
10699 # if the path contains ";" then we assume it to be the separator
10700 # otherwise default to the standard path separator (i.e. ":") - it is
10701 # assumed that no part of a normal pathname contains ";" but that should
10702 # okay in the real world where ";" in dirpaths is itself problematic.
10703 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10706 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10708 esac
10709 # Ok, now we have the path, separated by spaces, we can step through it
10710 # and add multilib dir if necessary...
10711 lt_tmp_lt_search_path_spec=
10712 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10713 # ...but if some path component already ends with the multilib dir we assume
10714 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10715 case "$lt_multi_os_dir; $lt_search_path_spec " in
10716 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10717 lt_multi_os_dir=
10719 esac
10720 for lt_sys_path in $lt_search_path_spec; do
10721 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10722 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10723 elif test -n "$lt_multi_os_dir"; then
10724 test -d "$lt_sys_path" && \
10725 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10727 done
10728 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10729 BEGIN {RS = " "; FS = "/|\n";} {
10730 lt_foo = "";
10731 lt_count = 0;
10732 for (lt_i = NF; lt_i > 0; lt_i--) {
10733 if ($lt_i != "" && $lt_i != ".") {
10734 if ($lt_i == "..") {
10735 lt_count++;
10736 } else {
10737 if (lt_count == 0) {
10738 lt_foo = "/" $lt_i lt_foo;
10739 } else {
10740 lt_count--;
10745 if (lt_foo != "") { lt_freq[lt_foo]++; }
10746 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10748 # AWK program above erroneously prepends '/' to C:/dos/paths
10749 # for these hosts.
10750 case $host_os in
10751 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10752 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10753 esac
10754 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10755 else
10756 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10758 library_names_spec=
10759 libname_spec='lib$name'
10760 soname_spec=
10761 shrext_cmds=.so
10762 postinstall_cmds=
10763 postuninstall_cmds=
10764 finish_cmds=
10765 finish_eval=
10766 shlibpath_var=
10767 shlibpath_overrides_runpath=unknown
10768 version_type=none
10769 dynamic_linker="$host_os ld.so"
10770 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10771 need_lib_prefix=unknown
10772 hardcode_into_libs=no
10774 # when you set need_version to no, make sure it does not cause -set_version
10775 # flags to be left without arguments
10776 need_version=unknown
10780 case $host_os in
10781 aix3*)
10782 version_type=linux # correct to gnu/linux during the next big refactor
10783 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10784 shlibpath_var=LIBPATH
10786 # AIX 3 has no versioning support, so we append a major version to the name.
10787 soname_spec='$libname$release$shared_ext$major'
10790 aix[4-9]*)
10791 version_type=linux # correct to gnu/linux during the next big refactor
10792 need_lib_prefix=no
10793 need_version=no
10794 hardcode_into_libs=yes
10795 if test ia64 = "$host_cpu"; then
10796 # AIX 5 supports IA64
10797 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10798 shlibpath_var=LD_LIBRARY_PATH
10799 else
10800 # With GCC up to 2.95.x, collect2 would create an import file
10801 # for dependence libraries. The import file would start with
10802 # the line '#! .'. This would cause the generated library to
10803 # depend on '.', always an invalid library. This was fixed in
10804 # development snapshots of GCC prior to 3.0.
10805 case $host_os in
10806 aix4 | aix4.[01] | aix4.[01].*)
10807 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10808 echo ' yes '
10809 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10811 else
10812 can_build_shared=no
10815 esac
10816 # Using Import Files as archive members, it is possible to support
10817 # filename-based versioning of shared library archives on AIX. While
10818 # this would work for both with and without runtime linking, it will
10819 # prevent static linking of such archives. So we do filename-based
10820 # shared library versioning with .so extension only, which is used
10821 # when both runtime linking and shared linking is enabled.
10822 # Unfortunately, runtime linking may impact performance, so we do
10823 # not want this to be the default eventually. Also, we use the
10824 # versioned .so libs for executables only if there is the -brtl
10825 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10826 # To allow for filename-based versioning support, we need to create
10827 # libNAME.so.V as an archive file, containing:
10828 # *) an Import File, referring to the versioned filename of the
10829 # archive as well as the shared archive member, telling the
10830 # bitwidth (32 or 64) of that shared object, and providing the
10831 # list of exported symbols of that shared object, eventually
10832 # decorated with the 'weak' keyword
10833 # *) the shared object with the F_LOADONLY flag set, to really avoid
10834 # it being seen by the linker.
10835 # At run time we better use the real file rather than another symlink,
10836 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10838 case $with_aix_soname,$aix_use_runtimelinking in
10839 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10840 # soname into executable. Probably we can add versioning support to
10841 # collect2, so additional links can be useful in future.
10842 aix,yes) # traditional libtool
10843 dynamic_linker='AIX unversionable lib.so'
10844 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10845 # instead of lib<name>.a to let people know that these are not
10846 # typical AIX shared libraries.
10847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10849 aix,no) # traditional AIX only
10850 dynamic_linker='AIX lib.a(lib.so.V)'
10851 # We preserve .a as extension for shared libraries through AIX4.2
10852 # and later when we are not doing run time linking.
10853 library_names_spec='$libname$release.a $libname.a'
10854 soname_spec='$libname$release$shared_ext$major'
10856 svr4,*) # full svr4 only
10857 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10858 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10859 # We do not specify a path in Import Files, so LIBPATH fires.
10860 shlibpath_overrides_runpath=yes
10862 *,yes) # both, prefer svr4
10863 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10864 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10865 # unpreferred sharedlib libNAME.a needs extra handling
10866 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10867 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10868 # We do not specify a path in Import Files, so LIBPATH fires.
10869 shlibpath_overrides_runpath=yes
10871 *,no) # both, prefer aix
10872 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10873 library_names_spec='$libname$release.a $libname.a'
10874 soname_spec='$libname$release$shared_ext$major'
10875 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10876 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10877 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10879 esac
10880 shlibpath_var=LIBPATH
10884 amigaos*)
10885 case $host_cpu in
10886 powerpc)
10887 # Since July 2007 AmigaOS4 officially supports .so libraries.
10888 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10889 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10891 m68k)
10892 library_names_spec='$libname.ixlibrary $libname.a'
10893 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10894 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10896 esac
10899 beos*)
10900 library_names_spec='$libname$shared_ext'
10901 dynamic_linker="$host_os ld.so"
10902 shlibpath_var=LIBRARY_PATH
10905 bsdi[45]*)
10906 version_type=linux # correct to gnu/linux during the next big refactor
10907 need_version=no
10908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10909 soname_spec='$libname$release$shared_ext$major'
10910 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10911 shlibpath_var=LD_LIBRARY_PATH
10912 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10913 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10914 # the default ld.so.conf also contains /usr/contrib/lib and
10915 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10916 # libtool to hard-code these into programs
10919 cygwin* | mingw* | pw32* | cegcc*)
10920 version_type=windows
10921 shrext_cmds=.dll
10922 need_version=no
10923 need_lib_prefix=no
10925 case $GCC,$cc_basename in
10926 yes,*)
10927 # gcc
10928 library_names_spec='$libname.dll.a'
10929 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10930 postinstall_cmds='base_file=`basename \$file`~
10931 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10932 dldir=$destdir/`dirname \$dlpath`~
10933 test -d \$dldir || mkdir -p \$dldir~
10934 $install_prog $dir/$dlname \$dldir/$dlname~
10935 chmod a+x \$dldir/$dlname~
10936 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10937 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10939 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10940 dlpath=$dir/\$dldll~
10941 $RM \$dlpath'
10942 shlibpath_overrides_runpath=yes
10944 case $host_os in
10945 cygwin*)
10946 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10947 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10949 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10951 mingw* | cegcc*)
10952 # MinGW DLLs use traditional 'lib' prefix
10953 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10955 pw32*)
10956 # pw32 DLLs use 'pw' prefix rather than 'lib'
10957 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10959 esac
10960 dynamic_linker='Win32 ld.exe'
10963 *,cl*)
10964 # Native MSVC
10965 libname_spec='$name'
10966 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10967 library_names_spec='$libname.dll.lib'
10969 case $build_os in
10970 mingw*)
10971 sys_lib_search_path_spec=
10972 lt_save_ifs=$IFS
10973 IFS=';'
10974 for lt_path in $LIB
10976 IFS=$lt_save_ifs
10977 # Let DOS variable expansion print the short 8.3 style file name.
10978 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10979 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10980 done
10981 IFS=$lt_save_ifs
10982 # Convert to MSYS style.
10983 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10985 cygwin*)
10986 # Convert to unix form, then to dos form, then back to unix form
10987 # but this time dos style (no spaces!) so that the unix form looks
10988 # like /cygdrive/c/PROGRA~1:/cygdr...
10989 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10990 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10991 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10994 sys_lib_search_path_spec=$LIB
10995 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10996 # It is most probably a Windows format PATH.
10997 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10998 else
10999 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11001 # FIXME: find the short name or the path components, as spaces are
11002 # common. (e.g. "Program Files" -> "PROGRA~1")
11004 esac
11006 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11007 postinstall_cmds='base_file=`basename \$file`~
11008 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11009 dldir=$destdir/`dirname \$dlpath`~
11010 test -d \$dldir || mkdir -p \$dldir~
11011 $install_prog $dir/$dlname \$dldir/$dlname'
11012 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11013 dlpath=$dir/\$dldll~
11014 $RM \$dlpath'
11015 shlibpath_overrides_runpath=yes
11016 dynamic_linker='Win32 link.exe'
11020 # Assume MSVC wrapper
11021 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11022 dynamic_linker='Win32 ld.exe'
11024 esac
11025 # FIXME: first we should search . and the directory the executable is in
11026 shlibpath_var=PATH
11029 darwin* | rhapsody*)
11030 dynamic_linker="$host_os dyld"
11031 version_type=darwin
11032 need_lib_prefix=no
11033 need_version=no
11034 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11035 soname_spec='$libname$release$major$shared_ext'
11036 shlibpath_overrides_runpath=yes
11037 shlibpath_var=DYLD_LIBRARY_PATH
11038 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11040 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11041 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11044 dgux*)
11045 version_type=linux # correct to gnu/linux during the next big refactor
11046 need_lib_prefix=no
11047 need_version=no
11048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11049 soname_spec='$libname$release$shared_ext$major'
11050 shlibpath_var=LD_LIBRARY_PATH
11053 freebsd* | dragonfly*)
11054 # DragonFly does not have aout. When/if they implement a new
11055 # versioning mechanism, adjust this.
11056 if test -x /usr/bin/objformat; then
11057 objformat=`/usr/bin/objformat`
11058 else
11059 case $host_os in
11060 freebsd[23].*) objformat=aout ;;
11061 *) objformat=elf ;;
11062 esac
11064 version_type=freebsd-$objformat
11065 case $version_type in
11066 freebsd-elf*)
11067 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11068 soname_spec='$libname$release$shared_ext$major'
11069 need_version=no
11070 need_lib_prefix=no
11072 freebsd-*)
11073 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11074 need_version=yes
11076 esac
11077 shlibpath_var=LD_LIBRARY_PATH
11078 case $host_os in
11079 freebsd2.*)
11080 shlibpath_overrides_runpath=yes
11082 freebsd3.[01]* | freebsdelf3.[01]*)
11083 shlibpath_overrides_runpath=yes
11084 hardcode_into_libs=yes
11086 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11087 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11088 shlibpath_overrides_runpath=no
11089 hardcode_into_libs=yes
11091 *) # from 4.6 on, and DragonFly
11092 shlibpath_overrides_runpath=yes
11093 hardcode_into_libs=yes
11095 esac
11098 haiku*)
11099 version_type=linux # correct to gnu/linux during the next big refactor
11100 need_lib_prefix=no
11101 need_version=no
11102 dynamic_linker="$host_os runtime_loader"
11103 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11104 soname_spec='$libname$release$shared_ext$major'
11105 shlibpath_var=LIBRARY_PATH
11106 shlibpath_overrides_runpath=no
11107 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11108 hardcode_into_libs=yes
11111 hpux9* | hpux10* | hpux11*)
11112 # Give a soname corresponding to the major version so that dld.sl refuses to
11113 # link against other versions.
11114 version_type=sunos
11115 need_lib_prefix=no
11116 need_version=no
11117 case $host_cpu in
11118 ia64*)
11119 shrext_cmds='.so'
11120 hardcode_into_libs=yes
11121 dynamic_linker="$host_os dld.so"
11122 shlibpath_var=LD_LIBRARY_PATH
11123 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11125 soname_spec='$libname$release$shared_ext$major'
11126 if test 32 = "$HPUX_IA64_MODE"; then
11127 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11128 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11129 else
11130 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11131 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11134 hppa*64*)
11135 shrext_cmds='.sl'
11136 hardcode_into_libs=yes
11137 dynamic_linker="$host_os dld.sl"
11138 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11139 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11141 soname_spec='$libname$release$shared_ext$major'
11142 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11143 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11146 shrext_cmds='.sl'
11147 dynamic_linker="$host_os dld.sl"
11148 shlibpath_var=SHLIB_PATH
11149 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11150 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11151 soname_spec='$libname$release$shared_ext$major'
11153 esac
11154 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11155 postinstall_cmds='chmod 555 $lib'
11156 # or fails outright, so override atomically:
11157 install_override_mode=555
11160 interix[3-9]*)
11161 version_type=linux # correct to gnu/linux during the next big refactor
11162 need_lib_prefix=no
11163 need_version=no
11164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11165 soname_spec='$libname$release$shared_ext$major'
11166 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11167 shlibpath_var=LD_LIBRARY_PATH
11168 shlibpath_overrides_runpath=no
11169 hardcode_into_libs=yes
11172 irix5* | irix6* | nonstopux*)
11173 case $host_os in
11174 nonstopux*) version_type=nonstopux ;;
11176 if test yes = "$lt_cv_prog_gnu_ld"; then
11177 version_type=linux # correct to gnu/linux during the next big refactor
11178 else
11179 version_type=irix
11180 fi ;;
11181 esac
11182 need_lib_prefix=no
11183 need_version=no
11184 soname_spec='$libname$release$shared_ext$major'
11185 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11186 case $host_os in
11187 irix5* | nonstopux*)
11188 libsuff= shlibsuff=
11191 case $LD in # libtool.m4 will add one of these switches to LD
11192 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11193 libsuff= shlibsuff= libmagic=32-bit;;
11194 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11195 libsuff=32 shlibsuff=N32 libmagic=N32;;
11196 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11197 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11198 *) libsuff= shlibsuff= libmagic=never-match;;
11199 esac
11201 esac
11202 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11203 shlibpath_overrides_runpath=no
11204 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11205 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11206 hardcode_into_libs=yes
11209 # No shared lib support for Linux oldld, aout, or coff.
11210 linux*oldld* | linux*aout* | linux*coff*)
11211 dynamic_linker=no
11214 linux*android*)
11215 version_type=none # Android doesn't support versioned libraries.
11216 need_lib_prefix=no
11217 need_version=no
11218 library_names_spec='$libname$release$shared_ext'
11219 soname_spec='$libname$release$shared_ext'
11220 finish_cmds=
11221 shlibpath_var=LD_LIBRARY_PATH
11222 shlibpath_overrides_runpath=yes
11224 # This implies no fast_install, which is unacceptable.
11225 # Some rework will be needed to allow for fast_install
11226 # before this can be enabled.
11227 hardcode_into_libs=yes
11229 dynamic_linker='Android linker'
11230 # Don't embed -rpath directories since the linker doesn't support them.
11231 hardcode_libdir_flag_spec='-L$libdir'
11234 # This must be glibc/ELF.
11235 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11236 version_type=linux # correct to gnu/linux during the next big refactor
11237 need_lib_prefix=no
11238 need_version=no
11239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11240 soname_spec='$libname$release$shared_ext$major'
11241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11242 shlibpath_var=LD_LIBRARY_PATH
11243 shlibpath_overrides_runpath=no
11245 # Some binutils ld are patched to set DT_RUNPATH
11246 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11247 $as_echo_n "(cached) " >&6
11248 else
11249 lt_cv_shlibpath_overrides_runpath=no
11250 save_LDFLAGS=$LDFLAGS
11251 save_libdir=$libdir
11252 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11253 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11255 /* end confdefs.h. */
11258 main ()
11262 return 0;
11264 _ACEOF
11265 if ac_fn_c_try_link "$LINENO"; then :
11266 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11267 lt_cv_shlibpath_overrides_runpath=yes
11270 rm -f core conftest.err conftest.$ac_objext \
11271 conftest$ac_exeext conftest.$ac_ext
11272 LDFLAGS=$save_LDFLAGS
11273 libdir=$save_libdir
11277 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11279 # This implies no fast_install, which is unacceptable.
11280 # Some rework will be needed to allow for fast_install
11281 # before this can be enabled.
11282 hardcode_into_libs=yes
11284 # Ideally, we could use ldconfig to report *all* directores which are
11285 # searched for libraries, however this is still not possible. Aside from not
11286 # being certain /sbin/ldconfig is available, command
11287 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11288 # even though it is searched at run-time. Try to do the best guess by
11289 # appending ld.so.conf contents (and includes) to the search path.
11290 if test -f /etc/ld.so.conf; then
11291 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' ' '`
11292 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11295 # We used to test for /lib/ld.so.1 and disable shared libraries on
11296 # powerpc, because MkLinux only supported shared libraries with the
11297 # GNU dynamic linker. Since this was broken with cross compilers,
11298 # most powerpc-linux boxes support dynamic linking these days and
11299 # people can always --disable-shared, the test was removed, and we
11300 # assume the GNU/Linux dynamic linker is in use.
11301 dynamic_linker='GNU/Linux ld.so'
11304 netbsd*)
11305 version_type=sunos
11306 need_lib_prefix=no
11307 need_version=no
11308 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11309 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11311 dynamic_linker='NetBSD (a.out) ld.so'
11312 else
11313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11314 soname_spec='$libname$release$shared_ext$major'
11315 dynamic_linker='NetBSD ld.elf_so'
11317 shlibpath_var=LD_LIBRARY_PATH
11318 shlibpath_overrides_runpath=yes
11319 hardcode_into_libs=yes
11322 newsos6)
11323 version_type=linux # correct to gnu/linux during the next big refactor
11324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11325 shlibpath_var=LD_LIBRARY_PATH
11326 shlibpath_overrides_runpath=yes
11329 *nto* | *qnx*)
11330 version_type=qnx
11331 need_lib_prefix=no
11332 need_version=no
11333 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11334 soname_spec='$libname$release$shared_ext$major'
11335 shlibpath_var=LD_LIBRARY_PATH
11336 shlibpath_overrides_runpath=no
11337 hardcode_into_libs=yes
11338 dynamic_linker='ldqnx.so'
11341 openbsd* | bitrig*)
11342 version_type=sunos
11343 sys_lib_dlsearch_path_spec=/usr/lib
11344 need_lib_prefix=no
11345 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11346 need_version=no
11347 else
11348 need_version=yes
11350 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11352 shlibpath_var=LD_LIBRARY_PATH
11353 shlibpath_overrides_runpath=yes
11356 os2*)
11357 libname_spec='$name'
11358 version_type=windows
11359 shrext_cmds=.dll
11360 need_version=no
11361 need_lib_prefix=no
11362 # OS/2 can only load a DLL with a base name of 8 characters or less.
11363 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11364 v=$($ECHO $release$versuffix | tr -d .-);
11365 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11366 $ECHO $n$v`$shared_ext'
11367 library_names_spec='${libname}_dll.$libext'
11368 dynamic_linker='OS/2 ld.exe'
11369 shlibpath_var=BEGINLIBPATH
11370 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11371 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11372 postinstall_cmds='base_file=`basename \$file`~
11373 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11374 dldir=$destdir/`dirname \$dlpath`~
11375 test -d \$dldir || mkdir -p \$dldir~
11376 $install_prog $dir/$dlname \$dldir/$dlname~
11377 chmod a+x \$dldir/$dlname~
11378 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11379 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11381 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11382 dlpath=$dir/\$dldll~
11383 $RM \$dlpath'
11386 osf3* | osf4* | osf5*)
11387 version_type=osf
11388 need_lib_prefix=no
11389 need_version=no
11390 soname_spec='$libname$release$shared_ext$major'
11391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11392 shlibpath_var=LD_LIBRARY_PATH
11393 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11394 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11397 rdos*)
11398 dynamic_linker=no
11401 solaris*)
11402 version_type=linux # correct to gnu/linux during the next big refactor
11403 need_lib_prefix=no
11404 need_version=no
11405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11406 soname_spec='$libname$release$shared_ext$major'
11407 shlibpath_var=LD_LIBRARY_PATH
11408 shlibpath_overrides_runpath=yes
11409 hardcode_into_libs=yes
11410 # ldd complains unless libraries are executable
11411 postinstall_cmds='chmod +x $lib'
11414 sunos4*)
11415 version_type=sunos
11416 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11417 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11418 shlibpath_var=LD_LIBRARY_PATH
11419 shlibpath_overrides_runpath=yes
11420 if test yes = "$with_gnu_ld"; then
11421 need_lib_prefix=no
11423 need_version=yes
11426 sysv4 | sysv4.3*)
11427 version_type=linux # correct to gnu/linux during the next big refactor
11428 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11429 soname_spec='$libname$release$shared_ext$major'
11430 shlibpath_var=LD_LIBRARY_PATH
11431 case $host_vendor in
11432 sni)
11433 shlibpath_overrides_runpath=no
11434 need_lib_prefix=no
11435 runpath_var=LD_RUN_PATH
11437 siemens)
11438 need_lib_prefix=no
11440 motorola)
11441 need_lib_prefix=no
11442 need_version=no
11443 shlibpath_overrides_runpath=no
11444 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11446 esac
11449 sysv4*MP*)
11450 if test -d /usr/nec; then
11451 version_type=linux # correct to gnu/linux during the next big refactor
11452 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11453 soname_spec='$libname$shared_ext.$major'
11454 shlibpath_var=LD_LIBRARY_PATH
11458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11459 version_type=sco
11460 need_lib_prefix=no
11461 need_version=no
11462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11463 soname_spec='$libname$release$shared_ext$major'
11464 shlibpath_var=LD_LIBRARY_PATH
11465 shlibpath_overrides_runpath=yes
11466 hardcode_into_libs=yes
11467 if test yes = "$with_gnu_ld"; then
11468 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11469 else
11470 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11471 case $host_os in
11472 sco3.2v5*)
11473 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11475 esac
11477 sys_lib_dlsearch_path_spec='/usr/lib'
11480 tpf*)
11481 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11482 version_type=linux # correct to gnu/linux during the next big refactor
11483 need_lib_prefix=no
11484 need_version=no
11485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11486 shlibpath_var=LD_LIBRARY_PATH
11487 shlibpath_overrides_runpath=no
11488 hardcode_into_libs=yes
11491 uts4*)
11492 version_type=linux # correct to gnu/linux during the next big refactor
11493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11494 soname_spec='$libname$release$shared_ext$major'
11495 shlibpath_var=LD_LIBRARY_PATH
11499 dynamic_linker=no
11501 esac
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11503 $as_echo "$dynamic_linker" >&6; }
11504 test no = "$dynamic_linker" && can_build_shared=no
11506 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11507 if test yes = "$GCC"; then
11508 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11511 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11512 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11515 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11516 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11519 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11520 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11522 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11523 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11525 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11526 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11625 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11626 hardcode_action=
11627 if test -n "$hardcode_libdir_flag_spec" ||
11628 test -n "$runpath_var" ||
11629 test yes = "$hardcode_automatic"; then
11631 # We can hardcode non-existent directories.
11632 if test no != "$hardcode_direct" &&
11633 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11634 # have to relink, otherwise we might link with an installed library
11635 # when we should be linking with a yet-to-be-installed one
11636 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11637 test no != "$hardcode_minus_L"; then
11638 # Linking always hardcodes the temporary library directory.
11639 hardcode_action=relink
11640 else
11641 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11642 hardcode_action=immediate
11644 else
11645 # We cannot hardcode anything, or else we can only hardcode existing
11646 # directories.
11647 hardcode_action=unsupported
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11650 $as_echo "$hardcode_action" >&6; }
11652 if test relink = "$hardcode_action" ||
11653 test yes = "$inherit_rpath"; then
11654 # Fast installation is not supported
11655 enable_fast_install=no
11656 elif test yes = "$shlibpath_overrides_runpath" ||
11657 test no = "$enable_shared"; then
11658 # Fast installation is not necessary
11659 enable_fast_install=needless
11667 if test yes != "$enable_dlopen"; then
11668 enable_dlopen=unknown
11669 enable_dlopen_self=unknown
11670 enable_dlopen_self_static=unknown
11671 else
11672 lt_cv_dlopen=no
11673 lt_cv_dlopen_libs=
11675 case $host_os in
11676 beos*)
11677 lt_cv_dlopen=load_add_on
11678 lt_cv_dlopen_libs=
11679 lt_cv_dlopen_self=yes
11682 mingw* | pw32* | cegcc*)
11683 lt_cv_dlopen=LoadLibrary
11684 lt_cv_dlopen_libs=
11687 cygwin*)
11688 lt_cv_dlopen=dlopen
11689 lt_cv_dlopen_libs=
11692 darwin*)
11693 # if libdl is installed we need to link against it
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11695 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11696 if ${ac_cv_lib_dl_dlopen+:} false; then :
11697 $as_echo_n "(cached) " >&6
11698 else
11699 ac_check_lib_save_LIBS=$LIBS
11700 LIBS="-ldl $LIBS"
11701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11704 /* Override any GCC internal prototype to avoid an error.
11705 Use char because int might match the return type of a GCC
11706 builtin and then its argument prototype would still apply. */
11707 #ifdef __cplusplus
11708 extern "C"
11709 #endif
11710 char dlopen ();
11712 main ()
11714 return dlopen ();
11716 return 0;
11718 _ACEOF
11719 if ac_fn_c_try_link "$LINENO"; then :
11720 ac_cv_lib_dl_dlopen=yes
11721 else
11722 ac_cv_lib_dl_dlopen=no
11724 rm -f core conftest.err conftest.$ac_objext \
11725 conftest$ac_exeext conftest.$ac_ext
11726 LIBS=$ac_check_lib_save_LIBS
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11729 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11730 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11731 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11732 else
11734 lt_cv_dlopen=dyld
11735 lt_cv_dlopen_libs=
11736 lt_cv_dlopen_self=yes
11742 tpf*)
11743 # Don't try to run any link tests for TPF. We know it's impossible
11744 # because TPF is a cross-compiler, and we know how we open DSOs.
11745 lt_cv_dlopen=dlopen
11746 lt_cv_dlopen_libs=
11747 lt_cv_dlopen_self=no
11751 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11752 if test "x$ac_cv_func_shl_load" = xyes; then :
11753 lt_cv_dlopen=shl_load
11754 else
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11756 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11757 if ${ac_cv_lib_dld_shl_load+:} false; then :
11758 $as_echo_n "(cached) " >&6
11759 else
11760 ac_check_lib_save_LIBS=$LIBS
11761 LIBS="-ldld $LIBS"
11762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11763 /* end confdefs.h. */
11765 /* Override any GCC internal prototype to avoid an error.
11766 Use char because int might match the return type of a GCC
11767 builtin and then its argument prototype would still apply. */
11768 #ifdef __cplusplus
11769 extern "C"
11770 #endif
11771 char shl_load ();
11773 main ()
11775 return shl_load ();
11777 return 0;
11779 _ACEOF
11780 if ac_fn_c_try_link "$LINENO"; then :
11781 ac_cv_lib_dld_shl_load=yes
11782 else
11783 ac_cv_lib_dld_shl_load=no
11785 rm -f core conftest.err conftest.$ac_objext \
11786 conftest$ac_exeext conftest.$ac_ext
11787 LIBS=$ac_check_lib_save_LIBS
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11790 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11791 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11792 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11793 else
11794 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11795 if test "x$ac_cv_func_dlopen" = xyes; then :
11796 lt_cv_dlopen=dlopen
11797 else
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11799 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11800 if ${ac_cv_lib_dl_dlopen+:} false; then :
11801 $as_echo_n "(cached) " >&6
11802 else
11803 ac_check_lib_save_LIBS=$LIBS
11804 LIBS="-ldl $LIBS"
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h. */
11808 /* Override any GCC internal prototype to avoid an error.
11809 Use char because int might match the return type of a GCC
11810 builtin and then its argument prototype would still apply. */
11811 #ifdef __cplusplus
11812 extern "C"
11813 #endif
11814 char dlopen ();
11816 main ()
11818 return dlopen ();
11820 return 0;
11822 _ACEOF
11823 if ac_fn_c_try_link "$LINENO"; then :
11824 ac_cv_lib_dl_dlopen=yes
11825 else
11826 ac_cv_lib_dl_dlopen=no
11828 rm -f core conftest.err conftest.$ac_objext \
11829 conftest$ac_exeext conftest.$ac_ext
11830 LIBS=$ac_check_lib_save_LIBS
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11833 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11834 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11835 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11836 else
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11838 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11839 if ${ac_cv_lib_svld_dlopen+:} false; then :
11840 $as_echo_n "(cached) " >&6
11841 else
11842 ac_check_lib_save_LIBS=$LIBS
11843 LIBS="-lsvld $LIBS"
11844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11845 /* end confdefs.h. */
11847 /* Override any GCC internal prototype to avoid an error.
11848 Use char because int might match the return type of a GCC
11849 builtin and then its argument prototype would still apply. */
11850 #ifdef __cplusplus
11851 extern "C"
11852 #endif
11853 char dlopen ();
11855 main ()
11857 return dlopen ();
11859 return 0;
11861 _ACEOF
11862 if ac_fn_c_try_link "$LINENO"; then :
11863 ac_cv_lib_svld_dlopen=yes
11864 else
11865 ac_cv_lib_svld_dlopen=no
11867 rm -f core conftest.err conftest.$ac_objext \
11868 conftest$ac_exeext conftest.$ac_ext
11869 LIBS=$ac_check_lib_save_LIBS
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11872 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11873 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11874 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11875 else
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11877 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11878 if ${ac_cv_lib_dld_dld_link+:} false; then :
11879 $as_echo_n "(cached) " >&6
11880 else
11881 ac_check_lib_save_LIBS=$LIBS
11882 LIBS="-ldld $LIBS"
11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884 /* end confdefs.h. */
11886 /* Override any GCC internal prototype to avoid an error.
11887 Use char because int might match the return type of a GCC
11888 builtin and then its argument prototype would still apply. */
11889 #ifdef __cplusplus
11890 extern "C"
11891 #endif
11892 char dld_link ();
11894 main ()
11896 return dld_link ();
11898 return 0;
11900 _ACEOF
11901 if ac_fn_c_try_link "$LINENO"; then :
11902 ac_cv_lib_dld_dld_link=yes
11903 else
11904 ac_cv_lib_dld_dld_link=no
11906 rm -f core conftest.err conftest.$ac_objext \
11907 conftest$ac_exeext conftest.$ac_ext
11908 LIBS=$ac_check_lib_save_LIBS
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11911 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11912 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11913 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11932 esac
11934 if test no = "$lt_cv_dlopen"; then
11935 enable_dlopen=no
11936 else
11937 enable_dlopen=yes
11940 case $lt_cv_dlopen in
11941 dlopen)
11942 save_CPPFLAGS=$CPPFLAGS
11943 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11945 save_LDFLAGS=$LDFLAGS
11946 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11948 save_LIBS=$LIBS
11949 LIBS="$lt_cv_dlopen_libs $LIBS"
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11952 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11953 if ${lt_cv_dlopen_self+:} false; then :
11954 $as_echo_n "(cached) " >&6
11955 else
11956 if test yes = "$cross_compiling"; then :
11957 lt_cv_dlopen_self=cross
11958 else
11959 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11960 lt_status=$lt_dlunknown
11961 cat > conftest.$ac_ext <<_LT_EOF
11962 #line $LINENO "configure"
11963 #include "confdefs.h"
11965 #if HAVE_DLFCN_H
11966 #include <dlfcn.h>
11967 #endif
11969 #include <stdio.h>
11971 #ifdef RTLD_GLOBAL
11972 # define LT_DLGLOBAL RTLD_GLOBAL
11973 #else
11974 # ifdef DL_GLOBAL
11975 # define LT_DLGLOBAL DL_GLOBAL
11976 # else
11977 # define LT_DLGLOBAL 0
11978 # endif
11979 #endif
11981 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11982 find out it does not work in some platform. */
11983 #ifndef LT_DLLAZY_OR_NOW
11984 # ifdef RTLD_LAZY
11985 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11986 # else
11987 # ifdef DL_LAZY
11988 # define LT_DLLAZY_OR_NOW DL_LAZY
11989 # else
11990 # ifdef RTLD_NOW
11991 # define LT_DLLAZY_OR_NOW RTLD_NOW
11992 # else
11993 # ifdef DL_NOW
11994 # define LT_DLLAZY_OR_NOW DL_NOW
11995 # else
11996 # define LT_DLLAZY_OR_NOW 0
11997 # endif
11998 # endif
11999 # endif
12000 # endif
12001 #endif
12003 /* When -fvisibility=hidden is used, assume the code has been annotated
12004 correspondingly for the symbols needed. */
12005 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12006 int fnord () __attribute__((visibility("default")));
12007 #endif
12009 int fnord () { return 42; }
12010 int main ()
12012 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12013 int status = $lt_dlunknown;
12015 if (self)
12017 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12018 else
12020 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12021 else puts (dlerror ());
12023 /* dlclose (self); */
12025 else
12026 puts (dlerror ());
12028 return status;
12030 _LT_EOF
12031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12032 (eval $ac_link) 2>&5
12033 ac_status=$?
12034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12035 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12036 (./conftest; exit; ) >&5 2>/dev/null
12037 lt_status=$?
12038 case x$lt_status in
12039 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12040 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12041 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12042 esac
12043 else :
12044 # compilation failed
12045 lt_cv_dlopen_self=no
12048 rm -fr conftest*
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12053 $as_echo "$lt_cv_dlopen_self" >&6; }
12055 if test yes = "$lt_cv_dlopen_self"; then
12056 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12058 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12059 if ${lt_cv_dlopen_self_static+:} false; then :
12060 $as_echo_n "(cached) " >&6
12061 else
12062 if test yes = "$cross_compiling"; then :
12063 lt_cv_dlopen_self_static=cross
12064 else
12065 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12066 lt_status=$lt_dlunknown
12067 cat > conftest.$ac_ext <<_LT_EOF
12068 #line $LINENO "configure"
12069 #include "confdefs.h"
12071 #if HAVE_DLFCN_H
12072 #include <dlfcn.h>
12073 #endif
12075 #include <stdio.h>
12077 #ifdef RTLD_GLOBAL
12078 # define LT_DLGLOBAL RTLD_GLOBAL
12079 #else
12080 # ifdef DL_GLOBAL
12081 # define LT_DLGLOBAL DL_GLOBAL
12082 # else
12083 # define LT_DLGLOBAL 0
12084 # endif
12085 #endif
12087 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12088 find out it does not work in some platform. */
12089 #ifndef LT_DLLAZY_OR_NOW
12090 # ifdef RTLD_LAZY
12091 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12092 # else
12093 # ifdef DL_LAZY
12094 # define LT_DLLAZY_OR_NOW DL_LAZY
12095 # else
12096 # ifdef RTLD_NOW
12097 # define LT_DLLAZY_OR_NOW RTLD_NOW
12098 # else
12099 # ifdef DL_NOW
12100 # define LT_DLLAZY_OR_NOW DL_NOW
12101 # else
12102 # define LT_DLLAZY_OR_NOW 0
12103 # endif
12104 # endif
12105 # endif
12106 # endif
12107 #endif
12109 /* When -fvisibility=hidden is used, assume the code has been annotated
12110 correspondingly for the symbols needed. */
12111 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12112 int fnord () __attribute__((visibility("default")));
12113 #endif
12115 int fnord () { return 42; }
12116 int main ()
12118 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12119 int status = $lt_dlunknown;
12121 if (self)
12123 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12124 else
12126 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12127 else puts (dlerror ());
12129 /* dlclose (self); */
12131 else
12132 puts (dlerror ());
12134 return status;
12136 _LT_EOF
12137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12138 (eval $ac_link) 2>&5
12139 ac_status=$?
12140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12141 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12142 (./conftest; exit; ) >&5 2>/dev/null
12143 lt_status=$?
12144 case x$lt_status in
12145 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12146 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12147 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12148 esac
12149 else :
12150 # compilation failed
12151 lt_cv_dlopen_self_static=no
12154 rm -fr conftest*
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12159 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12162 CPPFLAGS=$save_CPPFLAGS
12163 LDFLAGS=$save_LDFLAGS
12164 LIBS=$save_LIBS
12166 esac
12168 case $lt_cv_dlopen_self in
12169 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12170 *) enable_dlopen_self=unknown ;;
12171 esac
12173 case $lt_cv_dlopen_self_static in
12174 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12175 *) enable_dlopen_self_static=unknown ;;
12176 esac
12195 striplib=
12196 old_striplib=
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12198 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12199 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12200 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12201 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12203 $as_echo "yes" >&6; }
12204 else
12205 # FIXME - insert some real tests, host_os isn't really good enough
12206 case $host_os in
12207 darwin*)
12208 if test -n "$STRIP"; then
12209 striplib="$STRIP -x"
12210 old_striplib="$STRIP -S"
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12212 $as_echo "yes" >&6; }
12213 else
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215 $as_echo "no" >&6; }
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12220 $as_echo "no" >&6; }
12222 esac
12236 # Report what library types will actually be built
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12238 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12240 $as_echo "$can_build_shared" >&6; }
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12243 $as_echo_n "checking whether to build shared libraries... " >&6; }
12244 test no = "$can_build_shared" && enable_shared=no
12246 # On AIX, shared libraries and static libraries use the same namespace, and
12247 # are all built from PIC.
12248 case $host_os in
12249 aix3*)
12250 test yes = "$enable_shared" && enable_static=no
12251 if test -n "$RANLIB"; then
12252 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12253 postinstall_cmds='$RANLIB $lib'
12257 aix[4-9]*)
12258 if test ia64 != "$host_cpu"; then
12259 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12260 yes,aix,yes) ;; # shared object as lib.so file only
12261 yes,svr4,*) ;; # shared object as lib.so archive member only
12262 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12263 esac
12266 esac
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12268 $as_echo "$enable_shared" >&6; }
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12271 $as_echo_n "checking whether to build static libraries... " >&6; }
12272 # Make sure either enable_shared or enable_static is yes.
12273 test yes = "$enable_shared" || enable_static=yes
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12275 $as_echo "$enable_static" >&6; }
12281 ac_ext=c
12282 ac_cpp='$CPP $CPPFLAGS'
12283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12287 CC=$lt_save_CC
12303 ac_config_commands="$ac_config_commands libtool"
12308 # Only expand once:
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
12312 $as_echo_n "checking what extension is used for runtime loadable modules... " >&6; }
12313 if ${libltdl_cv_shlibext+:} false; then :
12314 $as_echo_n "(cached) " >&6
12315 else
12317 module=yes
12318 eval libltdl_cv_shlibext=$shrext_cmds
12319 module=no
12320 eval libltdl_cv_shrext=$shrext_cmds
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
12324 $as_echo "$libltdl_cv_shlibext" >&6; }
12325 if test -n "$libltdl_cv_shlibext"; then
12327 cat >>confdefs.h <<_ACEOF
12328 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
12329 _ACEOF
12332 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
12334 cat >>confdefs.h <<_ACEOF
12335 #define LT_SHARED_EXT "$libltdl_cv_shrext"
12336 _ACEOF
12339 if test -n "$shared_archive_member_spec"; then
12341 cat >>confdefs.h <<_ACEOF
12342 #define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)"
12343 _ACEOF
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
12348 $as_echo_n "checking what variable specifies run-time module search path... " >&6; }
12349 if ${lt_cv_module_path_var+:} false; then :
12350 $as_echo_n "(cached) " >&6
12351 else
12352 lt_cv_module_path_var=$shlibpath_var
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12355 $as_echo "$lt_cv_module_path_var" >&6; }
12356 if test -n "$lt_cv_module_path_var"; then
12358 cat >>confdefs.h <<_ACEOF
12359 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
12360 _ACEOF
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12365 $as_echo_n "checking for the default library search path... " >&6; }
12366 if ${lt_cv_sys_dlsearch_path+:} false; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12372 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12373 if test -n "$lt_cv_sys_dlsearch_path"; then
12374 sys_dlsearch_path=
12375 for dir in $lt_cv_sys_dlsearch_path; do
12376 if test -z "$sys_dlsearch_path"; then
12377 sys_dlsearch_path=$dir
12378 else
12379 sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
12381 done
12383 cat >>confdefs.h <<_ACEOF
12384 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12385 _ACEOF
12390 LT_DLLOADERS=
12393 ac_ext=c
12394 ac_cpp='$CPP $CPPFLAGS'
12395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12399 lt_dlload_save_LIBS=$LIBS
12401 LIBADD_DLOPEN=
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12403 $as_echo_n "checking for library containing dlopen... " >&6; }
12404 if ${ac_cv_search_dlopen+:} false; then :
12405 $as_echo_n "(cached) " >&6
12406 else
12407 ac_func_search_save_LIBS=$LIBS
12408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12409 /* end confdefs.h. */
12411 /* Override any GCC internal prototype to avoid an error.
12412 Use char because int might match the return type of a GCC
12413 builtin and then its argument prototype would still apply. */
12414 #ifdef __cplusplus
12415 extern "C"
12416 #endif
12417 char dlopen ();
12419 main ()
12421 return dlopen ();
12423 return 0;
12425 _ACEOF
12426 for ac_lib in '' dl; do
12427 if test -z "$ac_lib"; then
12428 ac_res="none required"
12429 else
12430 ac_res=-l$ac_lib
12431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12433 if ac_fn_c_try_link "$LINENO"; then :
12434 ac_cv_search_dlopen=$ac_res
12436 rm -f core conftest.err conftest.$ac_objext \
12437 conftest$ac_exeext
12438 if ${ac_cv_search_dlopen+:} false; then :
12439 break
12441 done
12442 if ${ac_cv_search_dlopen+:} false; then :
12444 else
12445 ac_cv_search_dlopen=no
12447 rm conftest.$ac_ext
12448 LIBS=$ac_func_search_save_LIBS
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12451 $as_echo "$ac_cv_search_dlopen" >&6; }
12452 ac_res=$ac_cv_search_dlopen
12453 if test "$ac_res" != no; then :
12454 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12456 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12458 if test "$ac_cv_search_dlopen" != "none required"; then
12459 LIBADD_DLOPEN=-ldl
12461 libltdl_cv_lib_dl_dlopen=yes
12462 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12463 else
12464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12465 /* end confdefs.h. */
12466 #if HAVE_DLFCN_H
12467 # include <dlfcn.h>
12468 #endif
12471 main ()
12473 dlopen(0, 0);
12475 return 0;
12477 _ACEOF
12478 if ac_fn_c_try_link "$LINENO"; then :
12480 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12482 libltdl_cv_func_dlopen=yes
12483 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12484 else
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12486 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12487 if ${ac_cv_lib_svld_dlopen+:} false; then :
12488 $as_echo_n "(cached) " >&6
12489 else
12490 ac_check_lib_save_LIBS=$LIBS
12491 LIBS="-lsvld $LIBS"
12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493 /* end confdefs.h. */
12495 /* Override any GCC internal prototype to avoid an error.
12496 Use char because int might match the return type of a GCC
12497 builtin and then its argument prototype would still apply. */
12498 #ifdef __cplusplus
12499 extern "C"
12500 #endif
12501 char dlopen ();
12503 main ()
12505 return dlopen ();
12507 return 0;
12509 _ACEOF
12510 if ac_fn_c_try_link "$LINENO"; then :
12511 ac_cv_lib_svld_dlopen=yes
12512 else
12513 ac_cv_lib_svld_dlopen=no
12515 rm -f core conftest.err conftest.$ac_objext \
12516 conftest$ac_exeext conftest.$ac_ext
12517 LIBS=$ac_check_lib_save_LIBS
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12520 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12521 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12523 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12525 LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
12526 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12530 rm -f core conftest.err conftest.$ac_objext \
12531 conftest$ac_exeext conftest.$ac_ext
12534 if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
12535 then
12536 lt_save_LIBS=$LIBS
12537 LIBS="$LIBS $LIBADD_DLOPEN"
12538 for ac_func in dlerror
12539 do :
12540 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12541 if test "x$ac_cv_func_dlerror" = xyes; then :
12542 cat >>confdefs.h <<_ACEOF
12543 #define HAVE_DLERROR 1
12544 _ACEOF
12547 done
12549 LIBS=$lt_save_LIBS
12553 LIBADD_SHL_LOAD=
12554 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12555 if test "x$ac_cv_func_shl_load" = xyes; then :
12557 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12559 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12560 else
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12562 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12563 if ${ac_cv_lib_dld_shl_load+:} false; then :
12564 $as_echo_n "(cached) " >&6
12565 else
12566 ac_check_lib_save_LIBS=$LIBS
12567 LIBS="-ldld $LIBS"
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12571 /* Override any GCC internal prototype to avoid an error.
12572 Use char because int might match the return type of a GCC
12573 builtin and then its argument prototype would still apply. */
12574 #ifdef __cplusplus
12575 extern "C"
12576 #endif
12577 char shl_load ();
12579 main ()
12581 return shl_load ();
12583 return 0;
12585 _ACEOF
12586 if ac_fn_c_try_link "$LINENO"; then :
12587 ac_cv_lib_dld_shl_load=yes
12588 else
12589 ac_cv_lib_dld_shl_load=no
12591 rm -f core conftest.err conftest.$ac_objext \
12592 conftest$ac_exeext conftest.$ac_ext
12593 LIBS=$ac_check_lib_save_LIBS
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12596 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12597 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12599 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12601 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12602 LIBADD_SHL_LOAD=-ldld
12609 case $host_os in
12610 darwin[1567].*)
12611 # We only want this for pre-Mac OS X 10.4.
12612 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12613 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12615 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12617 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12621 beos*)
12622 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12624 cygwin* | mingw* | pw32*)
12625 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12627 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12628 ac_have_decl=1
12629 else
12630 ac_have_decl=0
12633 cat >>confdefs.h <<_ACEOF
12634 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12635 _ACEOF
12637 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12639 esac
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12642 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12643 if ${ac_cv_lib_dld_dld_link+:} false; then :
12644 $as_echo_n "(cached) " >&6
12645 else
12646 ac_check_lib_save_LIBS=$LIBS
12647 LIBS="-ldld $LIBS"
12648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649 /* end confdefs.h. */
12651 /* Override any GCC internal prototype to avoid an error.
12652 Use char because int might match the return type of a GCC
12653 builtin and then its argument prototype would still apply. */
12654 #ifdef __cplusplus
12655 extern "C"
12656 #endif
12657 char dld_link ();
12659 main ()
12661 return dld_link ();
12663 return 0;
12665 _ACEOF
12666 if ac_fn_c_try_link "$LINENO"; then :
12667 ac_cv_lib_dld_dld_link=yes
12668 else
12669 ac_cv_lib_dld_dld_link=no
12671 rm -f core conftest.err conftest.$ac_objext \
12672 conftest$ac_exeext conftest.$ac_ext
12673 LIBS=$ac_check_lib_save_LIBS
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12676 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12677 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12679 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12681 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12687 LT_DLPREOPEN=
12688 if test -n "$LT_DLLOADERS"
12689 then
12690 for lt_loader in $LT_DLLOADERS; do
12691 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12692 done
12694 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12699 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12702 LIBS=$lt_dlload_save_LIBS
12703 ac_ext=c
12704 ac_cpp='$CPP $CPPFLAGS'
12705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12711 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12712 if ${lt_cv_sys_symbol_underscore+:} false; then :
12713 $as_echo_n "(cached) " >&6
12714 else
12715 lt_cv_sys_symbol_underscore=no
12716 cat > conftest.$ac_ext <<_LT_EOF
12717 void nm_test_func(){}
12718 int main(){nm_test_func;return 0;}
12719 _LT_EOF
12720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12721 (eval $ac_compile) 2>&5
12722 ac_status=$?
12723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12724 test $ac_status = 0; }; then
12725 # Now try to grab the symbols.
12726 ac_nlist=conftest.nm
12727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12728 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12729 ac_status=$?
12730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12731 test $ac_status = 0; } && test -s "$ac_nlist"; then
12732 # See whether the symbols have a leading underscore.
12733 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12734 lt_cv_sys_symbol_underscore=yes
12735 else
12736 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12738 else
12739 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12742 else
12743 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12745 else
12746 echo "configure: failed program was:" >&5
12747 cat conftest.c >&5
12749 rm -rf conftest*
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12753 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12754 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12757 if test yes = "$lt_cv_sys_symbol_underscore"; then
12758 if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12760 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12761 if ${libltdl_cv_need_uscore+:} false; then :
12762 $as_echo_n "(cached) " >&6
12763 else
12764 libltdl_cv_need_uscore=unknown
12765 dlsym_uscore_save_LIBS=$LIBS
12766 LIBS="$LIBS $LIBADD_DLOPEN"
12767 libname=conftmod # stay within 8.3 filename limits!
12768 cat >$libname.$ac_ext <<_LT_EOF
12769 #line $LINENO "configure"
12770 #include "confdefs.h"
12771 /* When -fvisibility=hidden is used, assume the code has been annotated
12772 correspondingly for the symbols needed. */
12773 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12774 int fnord () __attribute__((visibility("default")));
12775 #endif
12776 int fnord () { return 42; }
12777 _LT_EOF
12779 # ltfn_module_cmds module_cmds
12780 # Execute tilde-delimited MODULE_CMDS with environment primed for
12781 # $module_cmds or $archive_cmds type content.
12782 ltfn_module_cmds ()
12783 {( # subshell avoids polluting parent global environment
12784 module_cmds_save_ifs=$IFS; IFS='~'
12785 for cmd in $1; do
12786 IFS=$module_cmds_save_ifs
12787 libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
12788 rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
12789 major=; versuffix=; verstring=; deplibs=
12790 ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
12791 eval $cmd
12792 done
12793 IFS=$module_cmds_save_ifs
12796 # Compile a loadable module using libtool macro expansion results.
12797 $CC $pic_flag -c $libname.$ac_ext
12798 ltfn_module_cmds "${module_cmds:-$archive_cmds}"
12800 # Try to fetch fnord with dlsym().
12801 libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
12802 cat >conftest.$ac_ext <<_LT_EOF
12803 #line $LINENO "configure"
12804 #include "confdefs.h"
12805 #if HAVE_DLFCN_H
12806 #include <dlfcn.h>
12807 #endif
12808 #include <stdio.h>
12809 #ifndef RTLD_GLOBAL
12810 # ifdef DL_GLOBAL
12811 # define RTLD_GLOBAL DL_GLOBAL
12812 # else
12813 # define RTLD_GLOBAL 0
12814 # endif
12815 #endif
12816 #ifndef RTLD_NOW
12817 # ifdef DL_NOW
12818 # define RTLD_NOW DL_NOW
12819 # else
12820 # define RTLD_NOW 0
12821 # endif
12822 #endif
12823 int main () {
12824 void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
12825 int status = $libltdl_dlunknown;
12826 if (handle) {
12827 if (dlsym (handle, "fnord"))
12828 status = $libltdl_dlnouscore;
12829 else {
12830 if (dlsym (handle, "_fnord"))
12831 status = $libltdl_dluscore;
12832 else
12833 puts (dlerror ());
12835 dlclose (handle);
12836 } else
12837 puts (dlerror ());
12838 return status;
12840 _LT_EOF
12841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12842 (eval $ac_link) 2>&5
12843 ac_status=$?
12844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12845 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12846 (./conftest; exit; ) >&5 2>/dev/null
12847 libltdl_status=$?
12848 case x$libltdl_status in
12849 x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
12850 x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
12851 x*) libltdl_cv_need_uscore=unknown ;;
12852 esac
12854 rm -rf conftest* $libname*
12855 LIBS=$dlsym_uscore_save_LIBS
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12859 $as_echo "$libltdl_cv_need_uscore" >&6; }
12863 if test yes = "$libltdl_cv_need_uscore"; then
12865 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12870 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12871 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12872 $as_echo_n "(cached) " >&6
12873 else
12874 # PORTME does your system automatically load deplibs for dlopen?
12875 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12876 # For now, we just catch OSes we know something about -- in the
12877 # future, we'll try test this programmatically.
12878 lt_cv_sys_dlopen_deplibs=unknown
12879 case $host_os in
12880 aix3*|aix4.1.*|aix4.2.*)
12881 # Unknown whether this is true for these versions of AIX, but
12882 # we want this 'case' here to explicitly catch those versions.
12883 lt_cv_sys_dlopen_deplibs=unknown
12885 aix[4-9]*)
12886 lt_cv_sys_dlopen_deplibs=yes
12888 amigaos*)
12889 case $host_cpu in
12890 powerpc)
12891 lt_cv_sys_dlopen_deplibs=no
12893 esac
12895 bitrig*)
12896 lt_cv_sys_dlopen_deplibs=yes
12898 darwin*)
12899 # Assuming the user has installed a libdl from somewhere, this is true
12900 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12901 lt_cv_sys_dlopen_deplibs=yes
12903 freebsd* | dragonfly*)
12904 lt_cv_sys_dlopen_deplibs=yes
12906 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12907 # GNU and its variants, using gnu ld.so (Glibc)
12908 lt_cv_sys_dlopen_deplibs=yes
12910 hpux10*|hpux11*)
12911 lt_cv_sys_dlopen_deplibs=yes
12913 interix*)
12914 lt_cv_sys_dlopen_deplibs=yes
12916 irix[12345]*|irix6.[01]*)
12917 # Catch all versions of IRIX before 6.2, and indicate that we don't
12918 # know how it worked for any of those versions.
12919 lt_cv_sys_dlopen_deplibs=unknown
12921 irix*)
12922 # The case above catches anything before 6.2, and it's known that
12923 # at 6.2 and later dlopen does load deplibs.
12924 lt_cv_sys_dlopen_deplibs=yes
12926 netbsd*)
12927 lt_cv_sys_dlopen_deplibs=yes
12929 openbsd*)
12930 lt_cv_sys_dlopen_deplibs=yes
12932 osf[1234]*)
12933 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12934 # it did *not* use an RPATH in a shared library to find objects the
12935 # library depends on, so we explicitly say 'no'.
12936 lt_cv_sys_dlopen_deplibs=no
12938 osf5.0|osf5.0a|osf5.1)
12939 # dlopen *does* load deplibs and with the right loader patch applied
12940 # it even uses RPATH in a shared library to search for shared objects
12941 # that the library depends on, but there's no easy way to know if that
12942 # patch is installed. Since this is the case, all we can really
12943 # say is unknown -- it depends on the patch being installed. If
12944 # it is, this changes to 'yes'. Without it, it would be 'no'.
12945 lt_cv_sys_dlopen_deplibs=unknown
12947 osf*)
12948 # the two cases above should catch all versions of osf <= 5.1. Read
12949 # the comments above for what we know about them.
12950 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12951 # is used to find them so we can finally say 'yes'.
12952 lt_cv_sys_dlopen_deplibs=yes
12954 qnx*)
12955 lt_cv_sys_dlopen_deplibs=yes
12957 solaris*)
12958 lt_cv_sys_dlopen_deplibs=yes
12960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12961 libltdl_cv_sys_dlopen_deplibs=yes
12963 esac
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12967 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12968 if test yes != "$lt_cv_sys_dlopen_deplibs"; then
12970 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12975 for ac_header in argz.h
12976 do :
12977 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12979 if test "x$ac_cv_header_argz_h" = xyes; then :
12980 cat >>confdefs.h <<_ACEOF
12981 #define HAVE_ARGZ_H 1
12982 _ACEOF
12986 done
12989 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12990 # include <argz.h>
12991 #endif
12993 if test "x$ac_cv_type_error_t" = xyes; then :
12995 cat >>confdefs.h <<_ACEOF
12996 #define HAVE_ERROR_T 1
12997 _ACEOF
13000 else
13002 $as_echo "#define error_t int" >>confdefs.h
13005 $as_echo "#define __error_t_defined 1" >>confdefs.h
13010 LT_ARGZ_H=
13011 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
13012 argz_next argz_stringify
13013 do :
13014 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13015 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13016 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13017 cat >>confdefs.h <<_ACEOF
13018 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13019 _ACEOF
13021 else
13022 LT_ARGZ_H=lt__argz.h; case " $LIBOBJS " in
13023 *" lt__argz.$ac_objext "* ) ;;
13024 *) LIBOBJS="$LIBOBJS lt__argz.$ac_objext"
13026 esac
13029 done
13032 if test -z "$LT_ARGZ_H"; then :
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
13034 $as_echo_n "checking if argz actually works... " >&6; }
13035 if ${lt_cv_sys_argz_works+:} false; then :
13036 $as_echo_n "(cached) " >&6
13037 else
13038 case $host_os in #(
13039 *cygwin*)
13040 lt_cv_sys_argz_works=no
13041 if test no != "$cross_compiling"; then
13042 lt_cv_sys_argz_works="guessing no"
13043 else
13044 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
13045 save_IFS=$IFS
13046 IFS=-.
13047 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
13048 IFS=$save_IFS
13049 lt_os_major=${2-0}
13050 lt_os_minor=${3-0}
13051 lt_os_micro=${4-0}
13052 if test 1 -lt "$lt_os_major" \
13053 || { test 1 -eq "$lt_os_major" \
13054 && { test 5 -lt "$lt_os_minor" \
13055 || { test 5 -eq "$lt_os_minor" \
13056 && test 24 -lt "$lt_os_micro"; }; }; }; then
13057 lt_cv_sys_argz_works=yes
13060 ;; #(
13061 *) lt_cv_sys_argz_works=yes ;;
13062 esac
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
13065 $as_echo "$lt_cv_sys_argz_works" >&6; }
13066 if test yes = "$lt_cv_sys_argz_works"; then :
13068 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
13070 else
13071 LT_ARGZ_H=lt__argz.h
13072 case " $LIBOBJS " in
13073 *" lt__argz.$ac_objext "* ) ;;
13074 *) LIBOBJS="$LIBOBJS lt__argz.$ac_objext"
13076 esac
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
13084 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
13085 if ${libltdl_cv_preloaded_symbols+:} false; then :
13086 $as_echo_n "(cached) " >&6
13087 else
13088 if test -n "$lt_cv_sys_global_symbol_pipe"; then
13089 libltdl_cv_preloaded_symbols=yes
13090 else
13091 libltdl_cv_preloaded_symbols=no
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
13096 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
13097 if test yes = "$libltdl_cv_preloaded_symbols"; then
13099 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
13105 # Check whether --enable-ltdl-install was given.
13106 if test "${enable_ltdl_install+set}" = set; then :
13107 enableval=$enable_ltdl_install;
13111 case ,$enable_ltdl_install,$enable_ltdl_convenience in
13112 *yes*) ;;
13113 *) enable_ltdl_convenience=yes ;;
13114 esac
13116 if test no != "${enable_ltdl_install-no}"; then
13117 INSTALL_LTDL_TRUE=
13118 INSTALL_LTDL_FALSE='#'
13119 else
13120 INSTALL_LTDL_TRUE='#'
13121 INSTALL_LTDL_FALSE=
13124 if test no != "${enable_ltdl_convenience-no}"; then
13125 CONVENIENCE_LTDL_TRUE=
13126 CONVENIENCE_LTDL_FALSE='#'
13127 else
13128 CONVENIENCE_LTDL_TRUE='#'
13129 CONVENIENCE_LTDL_FALSE=
13137 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
13138 # the user used. This is so that ltdl.h can pick up the parent projects
13139 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
13140 # definitions required by ltdl.c.
13141 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
13145 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
13146 do :
13147 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13148 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13150 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13151 cat >>confdefs.h <<_ACEOF
13152 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13153 _ACEOF
13157 done
13160 for ac_func in closedir opendir readdir
13161 do :
13162 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13163 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13164 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13165 cat >>confdefs.h <<_ACEOF
13166 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13167 _ACEOF
13169 else
13170 case " $LIBOBJS " in
13171 *" lt__dirent.$ac_objext "* ) ;;
13172 *) LIBOBJS="$LIBOBJS lt__dirent.$ac_objext"
13174 esac
13177 done
13179 for ac_func in strlcat strlcpy
13180 do :
13181 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13182 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13183 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13184 cat >>confdefs.h <<_ACEOF
13185 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13186 _ACEOF
13188 else
13189 case " $LIBOBJS " in
13190 *" lt__strl.$ac_objext "* ) ;;
13191 *) LIBOBJS="$LIBOBJS lt__strl.$ac_objext"
13193 esac
13196 done
13200 cat >>confdefs.h <<_ACEOF
13201 #define LT_LIBEXT "$libext"
13202 _ACEOF
13205 name=
13206 eval "lt_libprefix=\"$libname_spec\""
13208 cat >>confdefs.h <<_ACEOF
13209 #define LT_LIBPREFIX "$lt_libprefix"
13210 _ACEOF
13213 name=ltdl
13214 eval "LTDLOPEN=\"$libname_spec\""
13219 ## -------- ##
13220 ## Outputs. ##
13221 ## -------- ##
13222 ac_config_files="$ac_config_files Makefile"
13224 cat >confcache <<\_ACEOF
13225 # This file is a shell script that caches the results of configure
13226 # tests run on this system so they can be shared between configure
13227 # scripts and configure runs, see configure's option --config-cache.
13228 # It is not useful on other systems. If it contains results you don't
13229 # want to keep, you may remove or edit it.
13231 # config.status only pays attention to the cache file if you give it
13232 # the --recheck option to rerun configure.
13234 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13235 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13236 # following values.
13238 _ACEOF
13240 # The following way of writing the cache mishandles newlines in values,
13241 # but we know of no workaround that is simple, portable, and efficient.
13242 # So, we kill variables containing newlines.
13243 # Ultrix sh set writes to stderr and can't be redirected directly,
13244 # and sets the high bit in the cache file unless we assign to the vars.
13246 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13247 eval ac_val=\$$ac_var
13248 case $ac_val in #(
13249 *${as_nl}*)
13250 case $ac_var in #(
13251 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13252 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13253 esac
13254 case $ac_var in #(
13255 _ | IFS | as_nl) ;; #(
13256 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13257 *) { eval $ac_var=; unset $ac_var;} ;;
13258 esac ;;
13259 esac
13260 done
13262 (set) 2>&1 |
13263 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13264 *${as_nl}ac_space=\ *)
13265 # `set' does not quote correctly, so add quotes: double-quote
13266 # substitution turns \\\\ into \\, and sed turns \\ into \.
13267 sed -n \
13268 "s/'/'\\\\''/g;
13269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13270 ;; #(
13272 # `set' quotes correctly as required by POSIX, so do not add quotes.
13273 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13275 esac |
13276 sort
13278 sed '
13279 /^ac_cv_env_/b end
13280 t clear
13281 :clear
13282 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13283 t end
13284 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13285 :end' >>confcache
13286 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13287 if test -w "$cache_file"; then
13288 if test "x$cache_file" != "x/dev/null"; then
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13290 $as_echo "$as_me: updating cache $cache_file" >&6;}
13291 if test ! -f "$cache_file" || test -h "$cache_file"; then
13292 cat confcache >"$cache_file"
13293 else
13294 case $cache_file in #(
13295 */* | ?:*)
13296 mv -f confcache "$cache_file"$$ &&
13297 mv -f "$cache_file"$$ "$cache_file" ;; #(
13299 mv -f confcache "$cache_file" ;;
13300 esac
13303 else
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13305 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13308 rm -f confcache
13310 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13311 # Let make expand exec_prefix.
13312 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13314 DEFS=-DHAVE_CONFIG_H
13316 ac_libobjs=
13317 ac_ltlibobjs=
13319 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13320 # 1. Remove the extension, and $U if already installed.
13321 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13322 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13323 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13324 # will be set to the directory where LIBOBJS objects are built.
13325 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13326 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13327 done
13328 LIBOBJS=$ac_libobjs
13330 LTLIBOBJS=$ac_ltlibobjs
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13334 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13335 if test -n "$am_sleep_pid"; then
13336 # Hide warnings about reused PIDs.
13337 wait $am_sleep_pid 2>/dev/null
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13340 $as_echo "done" >&6; }
13341 if test -n "$EXEEXT"; then
13342 am__EXEEXT_TRUE=
13343 am__EXEEXT_FALSE='#'
13344 else
13345 am__EXEEXT_TRUE='#'
13346 am__EXEEXT_FALSE=
13349 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13350 as_fn_error $? "conditional \"AMDEP\" was never defined.
13351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13353 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13354 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13357 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
13358 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
13359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13361 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
13362 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
13363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13365 LT_CONFIG_H=config.h
13367 : "${CONFIG_STATUS=./config.status}"
13368 ac_write_fail=0
13369 ac_clean_files_save=$ac_clean_files
13370 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13372 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13373 as_write_fail=0
13374 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13375 #! $SHELL
13376 # Generated by $as_me.
13377 # Run this file to recreate the current configuration.
13378 # Compiler output produced by configure, useful for debugging
13379 # configure, is in config.log if it exists.
13381 debug=false
13382 ac_cs_recheck=false
13383 ac_cs_silent=false
13385 SHELL=\${CONFIG_SHELL-$SHELL}
13386 export SHELL
13387 _ASEOF
13388 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13389 ## -------------------- ##
13390 ## M4sh Initialization. ##
13391 ## -------------------- ##
13393 # Be more Bourne compatible
13394 DUALCASE=1; export DUALCASE # for MKS sh
13395 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13396 emulate sh
13397 NULLCMD=:
13398 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13399 # is contrary to our usage. Disable this feature.
13400 alias -g '${1+"$@"}'='"$@"'
13401 setopt NO_GLOB_SUBST
13402 else
13403 case `(set -o) 2>/dev/null` in #(
13404 *posix*) :
13405 set -o posix ;; #(
13406 *) :
13408 esac
13412 as_nl='
13414 export as_nl
13415 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13416 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13417 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13418 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13419 # Prefer a ksh shell builtin over an external printf program on Solaris,
13420 # but without wasting forks for bash or zsh.
13421 if test -z "$BASH_VERSION$ZSH_VERSION" \
13422 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13423 as_echo='print -r --'
13424 as_echo_n='print -rn --'
13425 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13426 as_echo='printf %s\n'
13427 as_echo_n='printf %s'
13428 else
13429 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13430 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13431 as_echo_n='/usr/ucb/echo -n'
13432 else
13433 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13434 as_echo_n_body='eval
13435 arg=$1;
13436 case $arg in #(
13437 *"$as_nl"*)
13438 expr "X$arg" : "X\\(.*\\)$as_nl";
13439 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13440 esac;
13441 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13443 export as_echo_n_body
13444 as_echo_n='sh -c $as_echo_n_body as_echo'
13446 export as_echo_body
13447 as_echo='sh -c $as_echo_body as_echo'
13450 # The user is always right.
13451 if test "${PATH_SEPARATOR+set}" != set; then
13452 PATH_SEPARATOR=:
13453 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13454 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13455 PATH_SEPARATOR=';'
13460 # IFS
13461 # We need space, tab and new line, in precisely that order. Quoting is
13462 # there to prevent editors from complaining about space-tab.
13463 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13464 # splitting by setting IFS to empty value.)
13465 IFS=" "" $as_nl"
13467 # Find who we are. Look in the path if we contain no directory separator.
13468 as_myself=
13469 case $0 in #((
13470 *[\\/]* ) as_myself=$0 ;;
13471 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13472 for as_dir in $PATH
13474 IFS=$as_save_IFS
13475 test -z "$as_dir" && as_dir=.
13476 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13477 done
13478 IFS=$as_save_IFS
13481 esac
13482 # We did not find ourselves, most probably we were run as `sh COMMAND'
13483 # in which case we are not to be found in the path.
13484 if test "x$as_myself" = x; then
13485 as_myself=$0
13487 if test ! -f "$as_myself"; then
13488 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13489 exit 1
13492 # Unset variables that we do not need and which cause bugs (e.g. in
13493 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13494 # suppresses any "Segmentation fault" message there. '((' could
13495 # trigger a bug in pdksh 5.2.14.
13496 for as_var in BASH_ENV ENV MAIL MAILPATH
13497 do eval test x\${$as_var+set} = xset \
13498 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13499 done
13500 PS1='$ '
13501 PS2='> '
13502 PS4='+ '
13504 # NLS nuisances.
13505 LC_ALL=C
13506 export LC_ALL
13507 LANGUAGE=C
13508 export LANGUAGE
13510 # CDPATH.
13511 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13514 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13515 # ----------------------------------------
13516 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13517 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13518 # script with STATUS, using 1 if that was 0.
13519 as_fn_error ()
13521 as_status=$1; test $as_status -eq 0 && as_status=1
13522 if test "$4"; then
13523 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13524 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13526 $as_echo "$as_me: error: $2" >&2
13527 as_fn_exit $as_status
13528 } # as_fn_error
13531 # as_fn_set_status STATUS
13532 # -----------------------
13533 # Set $? to STATUS, without forking.
13534 as_fn_set_status ()
13536 return $1
13537 } # as_fn_set_status
13539 # as_fn_exit STATUS
13540 # -----------------
13541 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13542 as_fn_exit ()
13544 set +e
13545 as_fn_set_status $1
13546 exit $1
13547 } # as_fn_exit
13549 # as_fn_unset VAR
13550 # ---------------
13551 # Portably unset VAR.
13552 as_fn_unset ()
13554 { eval $1=; unset $1;}
13556 as_unset=as_fn_unset
13557 # as_fn_append VAR VALUE
13558 # ----------------------
13559 # Append the text in VALUE to the end of the definition contained in VAR. Take
13560 # advantage of any shell optimizations that allow amortized linear growth over
13561 # repeated appends, instead of the typical quadratic growth present in naive
13562 # implementations.
13563 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13564 eval 'as_fn_append ()
13566 eval $1+=\$2
13568 else
13569 as_fn_append ()
13571 eval $1=\$$1\$2
13573 fi # as_fn_append
13575 # as_fn_arith ARG...
13576 # ------------------
13577 # Perform arithmetic evaluation on the ARGs, and store the result in the
13578 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13579 # must be portable across $(()) and expr.
13580 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13581 eval 'as_fn_arith ()
13583 as_val=$(( $* ))
13585 else
13586 as_fn_arith ()
13588 as_val=`expr "$@" || test $? -eq 1`
13590 fi # as_fn_arith
13593 if expr a : '\(a\)' >/dev/null 2>&1 &&
13594 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13595 as_expr=expr
13596 else
13597 as_expr=false
13600 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13601 as_basename=basename
13602 else
13603 as_basename=false
13606 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13607 as_dirname=dirname
13608 else
13609 as_dirname=false
13612 as_me=`$as_basename -- "$0" ||
13613 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13614 X"$0" : 'X\(//\)$' \| \
13615 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13616 $as_echo X/"$0" |
13617 sed '/^.*\/\([^/][^/]*\)\/*$/{
13618 s//\1/
13621 /^X\/\(\/\/\)$/{
13622 s//\1/
13625 /^X\/\(\/\).*/{
13626 s//\1/
13629 s/.*/./; q'`
13631 # Avoid depending upon Character Ranges.
13632 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13633 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13634 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13635 as_cr_digits='0123456789'
13636 as_cr_alnum=$as_cr_Letters$as_cr_digits
13638 ECHO_C= ECHO_N= ECHO_T=
13639 case `echo -n x` in #(((((
13640 -n*)
13641 case `echo 'xy\c'` in
13642 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13643 xy) ECHO_C='\c';;
13644 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13645 ECHO_T=' ';;
13646 esac;;
13648 ECHO_N='-n';;
13649 esac
13651 rm -f conf$$ conf$$.exe conf$$.file
13652 if test -d conf$$.dir; then
13653 rm -f conf$$.dir/conf$$.file
13654 else
13655 rm -f conf$$.dir
13656 mkdir conf$$.dir 2>/dev/null
13658 if (echo >conf$$.file) 2>/dev/null; then
13659 if ln -s conf$$.file conf$$ 2>/dev/null; then
13660 as_ln_s='ln -s'
13661 # ... but there are two gotchas:
13662 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13663 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13664 # In both cases, we have to default to `cp -pR'.
13665 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13666 as_ln_s='cp -pR'
13667 elif ln conf$$.file conf$$ 2>/dev/null; then
13668 as_ln_s=ln
13669 else
13670 as_ln_s='cp -pR'
13672 else
13673 as_ln_s='cp -pR'
13675 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13676 rmdir conf$$.dir 2>/dev/null
13679 # as_fn_mkdir_p
13680 # -------------
13681 # Create "$as_dir" as a directory, including parents if necessary.
13682 as_fn_mkdir_p ()
13685 case $as_dir in #(
13686 -*) as_dir=./$as_dir;;
13687 esac
13688 test -d "$as_dir" || eval $as_mkdir_p || {
13689 as_dirs=
13690 while :; do
13691 case $as_dir in #(
13692 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13693 *) as_qdir=$as_dir;;
13694 esac
13695 as_dirs="'$as_qdir' $as_dirs"
13696 as_dir=`$as_dirname -- "$as_dir" ||
13697 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13698 X"$as_dir" : 'X\(//\)[^/]' \| \
13699 X"$as_dir" : 'X\(//\)$' \| \
13700 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13701 $as_echo X"$as_dir" |
13702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13703 s//\1/
13706 /^X\(\/\/\)[^/].*/{
13707 s//\1/
13710 /^X\(\/\/\)$/{
13711 s//\1/
13714 /^X\(\/\).*/{
13715 s//\1/
13718 s/.*/./; q'`
13719 test -d "$as_dir" && break
13720 done
13721 test -z "$as_dirs" || eval "mkdir $as_dirs"
13722 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13725 } # as_fn_mkdir_p
13726 if mkdir -p . 2>/dev/null; then
13727 as_mkdir_p='mkdir -p "$as_dir"'
13728 else
13729 test -d ./-p && rmdir ./-p
13730 as_mkdir_p=false
13734 # as_fn_executable_p FILE
13735 # -----------------------
13736 # Test if FILE is an executable regular file.
13737 as_fn_executable_p ()
13739 test -f "$1" && test -x "$1"
13740 } # as_fn_executable_p
13741 as_test_x='test -x'
13742 as_executable_p=as_fn_executable_p
13744 # Sed expression to map a string onto a valid CPP name.
13745 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13747 # Sed expression to map a string onto a valid variable name.
13748 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13751 exec 6>&1
13752 ## ----------------------------------- ##
13753 ## Main body of $CONFIG_STATUS script. ##
13754 ## ----------------------------------- ##
13755 _ASEOF
13756 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13759 # Save the log message, to keep $0 and so on meaningful, and to
13760 # report actual input values of CONFIG_FILES etc. instead of their
13761 # values after options handling.
13762 ac_log="
13763 This file was extended by libltdl $as_me 2.4.3a, which was
13764 generated by GNU Autoconf 2.69. Invocation command line was
13766 CONFIG_FILES = $CONFIG_FILES
13767 CONFIG_HEADERS = $CONFIG_HEADERS
13768 CONFIG_LINKS = $CONFIG_LINKS
13769 CONFIG_COMMANDS = $CONFIG_COMMANDS
13770 $ $0 $@
13772 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13775 _ACEOF
13777 case $ac_config_files in *"
13778 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13779 esac
13781 case $ac_config_headers in *"
13782 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13783 esac
13786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13787 # Files that config.status was made for.
13788 config_files="$ac_config_files"
13789 config_headers="$ac_config_headers"
13790 config_commands="$ac_config_commands"
13792 _ACEOF
13794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13795 ac_cs_usage="\
13796 \`$as_me' instantiates files and other configuration actions
13797 from templates according to the current configuration. Unless the files
13798 and actions are specified as TAGs, all are instantiated by default.
13800 Usage: $0 [OPTION]... [TAG]...
13802 -h, --help print this help, then exit
13803 -V, --version print version number and configuration settings, then exit
13804 --config print configuration, then exit
13805 -q, --quiet, --silent
13806 do not print progress messages
13807 -d, --debug don't remove temporary files
13808 --recheck update $as_me by reconfiguring in the same conditions
13809 --file=FILE[:TEMPLATE]
13810 instantiate the configuration file FILE
13811 --header=FILE[:TEMPLATE]
13812 instantiate the configuration header FILE
13814 Configuration files:
13815 $config_files
13817 Configuration headers:
13818 $config_headers
13820 Configuration commands:
13821 $config_commands
13823 Report bugs to <bug-libtool@gnu.org>."
13825 _ACEOF
13826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13827 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13828 ac_cs_version="\\
13829 libltdl config.status 2.4.3a
13830 configured by $0, generated by GNU Autoconf 2.69,
13831 with options \\"\$ac_cs_config\\"
13833 Copyright (C) 2012 Free Software Foundation, Inc.
13834 This config.status script is free software; the Free Software Foundation
13835 gives unlimited permission to copy, distribute and modify it."
13837 ac_pwd='$ac_pwd'
13838 srcdir='$srcdir'
13839 INSTALL='$INSTALL'
13840 MKDIR_P='$MKDIR_P'
13841 AWK='$AWK'
13842 test -n "\$AWK" || AWK=awk
13843 _ACEOF
13845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13846 # The default lists apply if the user does not specify any file.
13847 ac_need_defaults=:
13848 while test $# != 0
13850 case $1 in
13851 --*=?*)
13852 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13853 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13854 ac_shift=:
13856 --*=)
13857 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13858 ac_optarg=
13859 ac_shift=:
13862 ac_option=$1
13863 ac_optarg=$2
13864 ac_shift=shift
13866 esac
13868 case $ac_option in
13869 # Handling of the options.
13870 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13871 ac_cs_recheck=: ;;
13872 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13873 $as_echo "$ac_cs_version"; exit ;;
13874 --config | --confi | --conf | --con | --co | --c )
13875 $as_echo "$ac_cs_config"; exit ;;
13876 --debug | --debu | --deb | --de | --d | -d )
13877 debug=: ;;
13878 --file | --fil | --fi | --f )
13879 $ac_shift
13880 case $ac_optarg in
13881 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13882 '') as_fn_error $? "missing file argument" ;;
13883 esac
13884 as_fn_append CONFIG_FILES " '$ac_optarg'"
13885 ac_need_defaults=false;;
13886 --header | --heade | --head | --hea )
13887 $ac_shift
13888 case $ac_optarg in
13889 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13890 esac
13891 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13892 ac_need_defaults=false;;
13893 --he | --h)
13894 # Conflict between --help and --header
13895 as_fn_error $? "ambiguous option: \`$1'
13896 Try \`$0 --help' for more information.";;
13897 --help | --hel | -h )
13898 $as_echo "$ac_cs_usage"; exit ;;
13899 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13900 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13901 ac_cs_silent=: ;;
13903 # This is an error.
13904 -*) as_fn_error $? "unrecognized option: \`$1'
13905 Try \`$0 --help' for more information." ;;
13907 *) as_fn_append ac_config_targets " $1"
13908 ac_need_defaults=false ;;
13910 esac
13911 shift
13912 done
13914 ac_configure_extra_args=
13916 if $ac_cs_silent; then
13917 exec 6>/dev/null
13918 ac_configure_extra_args="$ac_configure_extra_args --silent"
13921 _ACEOF
13922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13923 if \$ac_cs_recheck; then
13924 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13925 shift
13926 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13927 CONFIG_SHELL='$SHELL'
13928 export CONFIG_SHELL
13929 exec "\$@"
13932 _ACEOF
13933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13934 exec 5>>config.log
13936 echo
13937 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13938 ## Running $as_me. ##
13939 _ASBOX
13940 $as_echo "$ac_log"
13941 } >&5
13943 _ACEOF
13944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13946 # INIT-COMMANDS
13948 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13951 # The HP-UX ksh and POSIX shell print the target directory to stdout
13952 # if CDPATH is set.
13953 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13955 sed_quote_subst='$sed_quote_subst'
13956 double_quote_subst='$double_quote_subst'
13957 delay_variable_subst='$delay_variable_subst'
13958 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13959 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13960 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13961 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13962 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13963 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13964 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13965 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13966 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13967 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13968 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13969 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13970 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13971 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13972 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13973 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13974 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13975 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13976 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13977 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13978 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13979 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13980 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13981 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13982 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13983 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13984 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13985 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13986 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13987 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13988 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13989 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13990 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13991 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13992 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13993 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13994 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13995 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13996 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13997 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13998 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13999 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14000 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14001 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14002 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14003 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14004 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14005 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14006 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14007 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14008 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14009 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14010 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14011 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14012 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14013 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14014 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14015 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14016 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14017 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"`'
14018 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14019 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14020 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14021 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14022 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14023 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14024 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14025 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14026 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14027 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14028 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14029 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14030 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14031 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14032 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14033 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14034 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14035 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14036 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14037 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14038 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14039 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14040 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14041 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14042 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14043 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14044 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14045 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14046 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14047 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14048 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14049 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14050 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14051 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14052 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14053 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14054 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14055 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14056 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14057 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14058 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14059 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14060 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14061 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14062 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14063 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14064 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14065 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14066 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14067 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14068 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14069 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14070 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14071 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14072 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14073 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14074 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14075 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14076 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14077 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14078 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14079 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14080 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14081 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14082 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14083 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14084 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14085 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14086 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14087 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14088 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14089 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14090 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14091 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14092 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14093 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14095 LTCC='$LTCC'
14096 LTCFLAGS='$LTCFLAGS'
14097 compiler='$compiler_DEFAULT'
14099 # A function that is used when there is no print builtin or printf.
14100 func_fallback_echo ()
14102 eval 'cat <<_LTECHO_EOF
14104 _LTECHO_EOF'
14107 # Quote evaled strings.
14108 for var in AS \
14109 DLLTOOL \
14110 OBJDUMP \
14111 SHELL \
14112 ECHO \
14113 PATH_SEPARATOR \
14114 SED \
14115 GREP \
14116 EGREP \
14117 FGREP \
14118 LD \
14119 NM \
14120 LN_S \
14121 lt_SP2NL \
14122 lt_NL2SP \
14123 reload_flag \
14124 deplibs_check_method \
14125 file_magic_cmd \
14126 file_magic_glob \
14127 want_nocaseglob \
14128 sharedlib_from_linklib_cmd \
14129 AR \
14130 AR_FLAGS \
14131 archiver_list_spec \
14132 STRIP \
14133 RANLIB \
14134 CC \
14135 CFLAGS \
14136 compiler \
14137 lt_cv_sys_global_symbol_pipe \
14138 lt_cv_sys_global_symbol_to_cdecl \
14139 lt_cv_sys_global_symbol_to_import \
14140 lt_cv_sys_global_symbol_to_c_name_address \
14141 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14142 lt_cv_nm_interface \
14143 nm_file_list_spec \
14144 lt_cv_truncate_bin \
14145 lt_prog_compiler_no_builtin_flag \
14146 lt_prog_compiler_pic \
14147 lt_prog_compiler_wl \
14148 lt_prog_compiler_static \
14149 lt_cv_prog_compiler_c_o \
14150 need_locks \
14151 MANIFEST_TOOL \
14152 DSYMUTIL \
14153 NMEDIT \
14154 LIPO \
14155 OTOOL \
14156 OTOOL64 \
14157 shrext_cmds \
14158 export_dynamic_flag_spec \
14159 whole_archive_flag_spec \
14160 compiler_needs_object \
14161 with_gnu_ld \
14162 allow_undefined_flag \
14163 no_undefined_flag \
14164 hardcode_libdir_flag_spec \
14165 hardcode_libdir_separator \
14166 exclude_expsyms \
14167 include_expsyms \
14168 file_list_spec \
14169 variables_saved_for_relink \
14170 libname_spec \
14171 library_names_spec \
14172 soname_spec \
14173 install_override_mode \
14174 finish_eval \
14175 old_striplib \
14176 striplib; do
14177 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14178 *[\\\\\\\`\\"\\\$]*)
14179 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14182 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14184 esac
14185 done
14187 # Double-quote double-evaled strings.
14188 for var in reload_cmds \
14189 old_postinstall_cmds \
14190 old_postuninstall_cmds \
14191 old_archive_cmds \
14192 extract_expsyms_cmds \
14193 old_archive_from_new_cmds \
14194 old_archive_from_expsyms_cmds \
14195 archive_cmds \
14196 archive_expsym_cmds \
14197 module_cmds \
14198 module_expsym_cmds \
14199 export_symbols_cmds \
14200 prelink_cmds \
14201 postlink_cmds \
14202 postinstall_cmds \
14203 postuninstall_cmds \
14204 finish_cmds \
14205 sys_lib_search_path_spec \
14206 configure_time_dlsearch_path \
14207 configure_time_lt_sys_library_path; do
14208 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14209 *[\\\\\\\`\\"\\\$]*)
14210 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14213 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14215 esac
14216 done
14218 ac_aux_dir='$ac_aux_dir'
14220 # See if we are running on zsh, and set the options that allow our
14221 # commands through without removal of \ escapes INIT.
14222 if test -n "\${ZSH_VERSION+set}"; then
14223 setopt NO_GLOB_SUBST
14227 PACKAGE='$PACKAGE'
14228 VERSION='$VERSION'
14229 RM='$RM'
14230 ofile='$ofile'
14235 _ACEOF
14237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14239 # Handling of arguments.
14240 for ac_config_target in $ac_config_targets
14242 case $ac_config_target in
14243 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
14244 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14245 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14246 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14248 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14249 esac
14250 done
14253 # If the user did not use the arguments to specify the items to instantiate,
14254 # then the envvar interface is used. Set only those that are not.
14255 # We use the long form for the default assignment because of an extremely
14256 # bizarre bug on SunOS 4.1.3.
14257 if $ac_need_defaults; then
14258 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14259 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14260 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14263 # Have a temporary directory for convenience. Make it in the build tree
14264 # simply because there is no reason against having it here, and in addition,
14265 # creating and moving files from /tmp can sometimes cause problems.
14266 # Hook for its removal unless debugging.
14267 # Note that there is a small window in which the directory will not be cleaned:
14268 # after its creation but before its name has been assigned to `$tmp'.
14269 $debug ||
14271 tmp= ac_tmp=
14272 trap 'exit_status=$?
14273 : "${ac_tmp:=$tmp}"
14274 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14276 trap 'as_fn_exit 1' 1 2 13 15
14278 # Create a (secure) tmp directory for tmp files.
14281 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14282 test -d "$tmp"
14283 } ||
14285 tmp=./conf$$-$RANDOM
14286 (umask 077 && mkdir "$tmp")
14287 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14288 ac_tmp=$tmp
14290 # Set up the scripts for CONFIG_FILES section.
14291 # No need to generate them if there are no CONFIG_FILES.
14292 # This happens for instance with `./config.status config.h'.
14293 if test -n "$CONFIG_FILES"; then
14296 ac_cr=`echo X | tr X '\015'`
14297 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14298 # But we know of no other shell where ac_cr would be empty at this
14299 # point, so we can use a bashism as a fallback.
14300 if test "x$ac_cr" = x; then
14301 eval ac_cr=\$\'\\r\'
14303 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14304 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14305 ac_cs_awk_cr='\\r'
14306 else
14307 ac_cs_awk_cr=$ac_cr
14310 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14311 _ACEOF
14315 echo "cat >conf$$subs.awk <<_ACEOF" &&
14316 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14317 echo "_ACEOF"
14318 } >conf$$subs.sh ||
14319 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14320 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14321 ac_delim='%!_!# '
14322 for ac_last_try in false false false false false :; do
14323 . ./conf$$subs.sh ||
14324 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14326 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14327 if test $ac_delim_n = $ac_delim_num; then
14328 break
14329 elif $ac_last_try; then
14330 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14331 else
14332 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14334 done
14335 rm -f conf$$subs.sh
14337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14338 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14339 _ACEOF
14340 sed -n '
14342 s/^/S["/; s/!.*/"]=/
14345 s/^[^!]*!//
14346 :repl
14347 t repl
14348 s/'"$ac_delim"'$//
14349 t delim
14352 s/\(.\{148\}\)..*/\1/
14353 t more1
14354 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14357 b repl
14358 :more1
14359 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14362 s/.\{148\}//
14363 t nl
14364 :delim
14366 s/\(.\{148\}\)..*/\1/
14367 t more2
14368 s/["\\]/\\&/g; s/^/"/; s/$/"/
14371 :more2
14372 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14375 s/.\{148\}//
14376 t delim
14377 ' <conf$$subs.awk | sed '
14378 /^[^""]/{
14380 s/\n//
14382 ' >>$CONFIG_STATUS || ac_write_fail=1
14383 rm -f conf$$subs.awk
14384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14385 _ACAWK
14386 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14387 for (key in S) S_is_set[key] = 1
14388 FS = "\a"
14392 line = $ 0
14393 nfields = split(line, field, "@")
14394 substed = 0
14395 len = length(field[1])
14396 for (i = 2; i < nfields; i++) {
14397 key = field[i]
14398 keylen = length(key)
14399 if (S_is_set[key]) {
14400 value = S[key]
14401 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14402 len += length(value) + length(field[++i])
14403 substed = 1
14404 } else
14405 len += 1 + keylen
14408 print line
14411 _ACAWK
14412 _ACEOF
14413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14414 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14415 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14416 else
14418 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14419 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14420 _ACEOF
14422 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14423 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14424 # trailing colons and then remove the whole line if VPATH becomes empty
14425 # (actually we leave an empty line to preserve line numbers).
14426 if test "x$srcdir" = x.; then
14427 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14429 s///
14430 s/^/:/
14431 s/[ ]*$/:/
14432 s/:\$(srcdir):/:/g
14433 s/:\${srcdir}:/:/g
14434 s/:@srcdir@:/:/g
14435 s/^:*//
14436 s/:*$//
14438 s/\(=[ ]*\).*/\1/
14440 s/\n//
14441 s/^[^=]*=[ ]*$//
14445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14446 fi # test -n "$CONFIG_FILES"
14448 # Set up the scripts for CONFIG_HEADERS section.
14449 # No need to generate them if there are no CONFIG_HEADERS.
14450 # This happens for instance with `./config.status Makefile'.
14451 if test -n "$CONFIG_HEADERS"; then
14452 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14453 BEGIN {
14454 _ACEOF
14456 # Transform confdefs.h into an awk script `defines.awk', embedded as
14457 # here-document in config.status, that substitutes the proper values into
14458 # config.h.in to produce config.h.
14460 # Create a delimiter string that does not exist in confdefs.h, to ease
14461 # handling of long lines.
14462 ac_delim='%!_!# '
14463 for ac_last_try in false false :; do
14464 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14465 if test -z "$ac_tt"; then
14466 break
14467 elif $ac_last_try; then
14468 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14469 else
14470 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14472 done
14474 # For the awk script, D is an array of macro values keyed by name,
14475 # likewise P contains macro parameters if any. Preserve backslash
14476 # newline sequences.
14478 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14479 sed -n '
14480 s/.\{148\}/&'"$ac_delim"'/g
14481 t rset
14482 :rset
14483 s/^[ ]*#[ ]*define[ ][ ]*/ /
14484 t def
14486 :def
14487 s/\\$//
14488 t bsnl
14489 s/["\\]/\\&/g
14490 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14491 D["\1"]=" \3"/p
14492 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14494 :bsnl
14495 s/["\\]/\\&/g
14496 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14497 D["\1"]=" \3\\\\\\n"\\/p
14498 t cont
14499 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14500 t cont
14502 :cont
14504 s/.\{148\}/&'"$ac_delim"'/g
14505 t clear
14506 :clear
14507 s/\\$//
14508 t bsnlc
14509 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14511 :bsnlc
14512 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14513 b cont
14514 ' <confdefs.h | sed '
14515 s/'"$ac_delim"'/"\\\
14516 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14519 for (key in D) D_is_set[key] = 1
14520 FS = "\a"
14522 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14523 line = \$ 0
14524 split(line, arg, " ")
14525 if (arg[1] == "#") {
14526 defundef = arg[2]
14527 mac1 = arg[3]
14528 } else {
14529 defundef = substr(arg[1], 2)
14530 mac1 = arg[2]
14532 split(mac1, mac2, "(") #)
14533 macro = mac2[1]
14534 prefix = substr(line, 1, index(line, defundef) - 1)
14535 if (D_is_set[macro]) {
14536 # Preserve the white space surrounding the "#".
14537 print prefix "define", macro P[macro] D[macro]
14538 next
14539 } else {
14540 # Replace #undef with comments. This is necessary, for example,
14541 # in the case of _POSIX_SOURCE, which is predefined and required
14542 # on some systems where configure will not decide to define it.
14543 if (defundef == "undef") {
14544 print "/*", prefix defundef, macro, "*/"
14545 next
14549 { print }
14550 _ACAWK
14551 _ACEOF
14552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14553 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14554 fi # test -n "$CONFIG_HEADERS"
14557 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14558 shift
14559 for ac_tag
14561 case $ac_tag in
14562 :[FHLC]) ac_mode=$ac_tag; continue;;
14563 esac
14564 case $ac_mode$ac_tag in
14565 :[FHL]*:*);;
14566 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14567 :[FH]-) ac_tag=-:-;;
14568 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14569 esac
14570 ac_save_IFS=$IFS
14571 IFS=:
14572 set x $ac_tag
14573 IFS=$ac_save_IFS
14574 shift
14575 ac_file=$1
14576 shift
14578 case $ac_mode in
14579 :L) ac_source=$1;;
14580 :[FH])
14581 ac_file_inputs=
14582 for ac_f
14584 case $ac_f in
14585 -) ac_f="$ac_tmp/stdin";;
14586 *) # Look for the file first in the build tree, then in the source tree
14587 # (if the path is not absolute). The absolute path cannot be DOS-style,
14588 # because $ac_f cannot contain `:'.
14589 test -f "$ac_f" ||
14590 case $ac_f in
14591 [\\/$]*) false;;
14592 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14593 esac ||
14594 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14595 esac
14596 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14597 as_fn_append ac_file_inputs " '$ac_f'"
14598 done
14600 # Let's still pretend it is `configure' which instantiates (i.e., don't
14601 # use $as_me), people would be surprised to read:
14602 # /* config.h. Generated by config.status. */
14603 configure_input='Generated from '`
14604 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14605 `' by configure.'
14606 if test x"$ac_file" != x-; then
14607 configure_input="$ac_file. $configure_input"
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14609 $as_echo "$as_me: creating $ac_file" >&6;}
14611 # Neutralize special characters interpreted by sed in replacement strings.
14612 case $configure_input in #(
14613 *\&* | *\|* | *\\* )
14614 ac_sed_conf_input=`$as_echo "$configure_input" |
14615 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14616 *) ac_sed_conf_input=$configure_input;;
14617 esac
14619 case $ac_tag in
14620 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14621 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14622 esac
14624 esac
14626 ac_dir=`$as_dirname -- "$ac_file" ||
14627 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14628 X"$ac_file" : 'X\(//\)[^/]' \| \
14629 X"$ac_file" : 'X\(//\)$' \| \
14630 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14631 $as_echo X"$ac_file" |
14632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14633 s//\1/
14636 /^X\(\/\/\)[^/].*/{
14637 s//\1/
14640 /^X\(\/\/\)$/{
14641 s//\1/
14644 /^X\(\/\).*/{
14645 s//\1/
14648 s/.*/./; q'`
14649 as_dir="$ac_dir"; as_fn_mkdir_p
14650 ac_builddir=.
14652 case "$ac_dir" in
14653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14656 # A ".." for each directory in $ac_dir_suffix.
14657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14658 case $ac_top_builddir_sub in
14659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14661 esac ;;
14662 esac
14663 ac_abs_top_builddir=$ac_pwd
14664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14665 # for backward compatibility:
14666 ac_top_builddir=$ac_top_build_prefix
14668 case $srcdir in
14669 .) # We are building in place.
14670 ac_srcdir=.
14671 ac_top_srcdir=$ac_top_builddir_sub
14672 ac_abs_top_srcdir=$ac_pwd ;;
14673 [\\/]* | ?:[\\/]* ) # Absolute name.
14674 ac_srcdir=$srcdir$ac_dir_suffix;
14675 ac_top_srcdir=$srcdir
14676 ac_abs_top_srcdir=$srcdir ;;
14677 *) # Relative name.
14678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14679 ac_top_srcdir=$ac_top_build_prefix$srcdir
14680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14681 esac
14682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14685 case $ac_mode in
14688 # CONFIG_FILE
14691 case $INSTALL in
14692 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14693 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14694 esac
14695 ac_MKDIR_P=$MKDIR_P
14696 case $MKDIR_P in
14697 [\\/$]* | ?:[\\/]* ) ;;
14698 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14699 esac
14700 _ACEOF
14702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14703 # If the template does not know about datarootdir, expand it.
14704 # FIXME: This hack should be removed a few years after 2.60.
14705 ac_datarootdir_hack=; ac_datarootdir_seen=
14706 ac_sed_dataroot='
14707 /datarootdir/ {
14711 /@datadir@/p
14712 /@docdir@/p
14713 /@infodir@/p
14714 /@localedir@/p
14715 /@mandir@/p'
14716 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14717 *datarootdir*) ac_datarootdir_seen=yes;;
14718 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14720 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14721 _ACEOF
14722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14723 ac_datarootdir_hack='
14724 s&@datadir@&$datadir&g
14725 s&@docdir@&$docdir&g
14726 s&@infodir@&$infodir&g
14727 s&@localedir@&$localedir&g
14728 s&@mandir@&$mandir&g
14729 s&\\\${datarootdir}&$datarootdir&g' ;;
14730 esac
14731 _ACEOF
14733 # Neutralize VPATH when `$srcdir' = `.'.
14734 # Shell code in configure.ac might set extrasub.
14735 # FIXME: do we really want to maintain this feature?
14736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14737 ac_sed_extra="$ac_vpsub
14738 $extrasub
14739 _ACEOF
14740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14742 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14743 s|@configure_input@|$ac_sed_conf_input|;t t
14744 s&@top_builddir@&$ac_top_builddir_sub&;t t
14745 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14746 s&@srcdir@&$ac_srcdir&;t t
14747 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14748 s&@top_srcdir@&$ac_top_srcdir&;t t
14749 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14750 s&@builddir@&$ac_builddir&;t t
14751 s&@abs_builddir@&$ac_abs_builddir&;t t
14752 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14753 s&@INSTALL@&$ac_INSTALL&;t t
14754 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14755 $ac_datarootdir_hack
14757 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14758 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14760 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14761 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14762 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14763 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14765 which seems to be undefined. Please make sure it is defined" >&5
14766 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14767 which seems to be undefined. Please make sure it is defined" >&2;}
14769 rm -f "$ac_tmp/stdin"
14770 case $ac_file in
14771 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14772 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14773 esac \
14774 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14778 # CONFIG_HEADER
14780 if test x"$ac_file" != x-; then
14782 $as_echo "/* $configure_input */" \
14783 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14784 } >"$ac_tmp/config.h" \
14785 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14786 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14788 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14789 else
14790 rm -f "$ac_file"
14791 mv "$ac_tmp/config.h" "$ac_file" \
14792 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14794 else
14795 $as_echo "/* $configure_input */" \
14796 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14797 || as_fn_error $? "could not create -" "$LINENO" 5
14799 # Compute "$ac_file"'s index in $config_headers.
14800 _am_arg="$ac_file"
14801 _am_stamp_count=1
14802 for _am_header in $config_headers :; do
14803 case $_am_header in
14804 $_am_arg | $_am_arg:* )
14805 break ;;
14807 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14808 esac
14809 done
14810 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14811 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14812 X"$_am_arg" : 'X\(//\)[^/]' \| \
14813 X"$_am_arg" : 'X\(//\)$' \| \
14814 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14815 $as_echo X"$_am_arg" |
14816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14817 s//\1/
14820 /^X\(\/\/\)[^/].*/{
14821 s//\1/
14824 /^X\(\/\/\)$/{
14825 s//\1/
14828 /^X\(\/\).*/{
14829 s//\1/
14832 s/.*/./; q'`/stamp-h$_am_stamp_count
14835 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14836 $as_echo "$as_me: executing $ac_file commands" >&6;}
14838 esac
14841 case $ac_file$ac_mode in
14842 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14843 # Older Autoconf quotes --file arguments for eval, but not when files
14844 # are listed without --file. Let's play safe and only enable the eval
14845 # if we detect the quoting.
14846 case $CONFIG_FILES in
14847 *\'*) eval set x "$CONFIG_FILES" ;;
14848 *) set x $CONFIG_FILES ;;
14849 esac
14850 shift
14851 for mf
14853 # Strip MF so we end up with the name of the file.
14854 mf=`echo "$mf" | sed -e 's/:.*$//'`
14855 # Check whether this is an Automake generated Makefile or not.
14856 # We used to match only the files named 'Makefile.in', but
14857 # some people rename them; so instead we look at the file content.
14858 # Grep'ing the first line is not enough: some people post-process
14859 # each Makefile.in and add a new line on top of each file to say so.
14860 # Grep'ing the whole file is not good either: AIX grep has a line
14861 # limit of 2048, but all sed's we know have understand at least 4000.
14862 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14863 dirpart=`$as_dirname -- "$mf" ||
14864 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14865 X"$mf" : 'X\(//\)[^/]' \| \
14866 X"$mf" : 'X\(//\)$' \| \
14867 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14868 $as_echo X"$mf" |
14869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14870 s//\1/
14873 /^X\(\/\/\)[^/].*/{
14874 s//\1/
14877 /^X\(\/\/\)$/{
14878 s//\1/
14881 /^X\(\/\).*/{
14882 s//\1/
14885 s/.*/./; q'`
14886 else
14887 continue
14889 # Extract the definition of DEPDIR, am__include, and am__quote
14890 # from the Makefile without running 'make'.
14891 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14892 test -z "$DEPDIR" && continue
14893 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14894 test -z "$am__include" && continue
14895 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14896 # Find all dependency output files, they are included files with
14897 # $(DEPDIR) in their names. We invoke sed twice because it is the
14898 # simplest approach to changing $(DEPDIR) to its actual value in the
14899 # expansion.
14900 for file in `sed -n "
14901 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14902 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14903 # Make sure the directory exists.
14904 test -f "$dirpart/$file" && continue
14905 fdir=`$as_dirname -- "$file" ||
14906 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14907 X"$file" : 'X\(//\)[^/]' \| \
14908 X"$file" : 'X\(//\)$' \| \
14909 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14910 $as_echo X"$file" |
14911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14912 s//\1/
14915 /^X\(\/\/\)[^/].*/{
14916 s//\1/
14919 /^X\(\/\/\)$/{
14920 s//\1/
14923 /^X\(\/\).*/{
14924 s//\1/
14927 s/.*/./; q'`
14928 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14929 # echo "creating $dirpart/$file"
14930 echo '# dummy' > "$dirpart/$file"
14931 done
14932 done
14935 "libtool":C)
14937 # See if we are running on zsh, and set the options that allow our
14938 # commands through without removal of \ escapes.
14939 if test -n "${ZSH_VERSION+set}"; then
14940 setopt NO_GLOB_SUBST
14943 cfgfile=${ofile}T
14944 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14945 $RM "$cfgfile"
14947 cat <<_LT_EOF >> "$cfgfile"
14948 #! $SHELL
14949 # Generated automatically by $as_me ($PACKAGE) $VERSION
14950 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14951 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14953 # Provide generalized library-building support services.
14954 # Written by Gordon Matzigkeit, 1996
14956 # Copyright (C) 2014 Free Software Foundation, Inc.
14957 # This is free software; see the source for copying conditions. There is NO
14958 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14960 # GNU Libtool is free software; you can redistribute it and/or modify
14961 # it under the terms of the GNU General Public License as published by
14962 # the Free Software Foundation; either version 2 of of the License, or
14963 # (at your option) any later version.
14965 # As a special exception to the GNU General Public License, if you
14966 # distribute this file as part of a program or library that is built
14967 # using GNU Libtool, you may include this file under the same
14968 # distribution terms that you use for the rest of that program.
14970 # GNU Libtool is distributed in the hope that it will be useful, but
14971 # WITHOUT ANY WARRANTY; without even the implied warranty of
14972 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14973 # GNU General Public License for more details.
14975 # You should have received a copy of the GNU General Public License
14976 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14979 # The names of the tagged configurations supported by this script.
14980 available_tags=''
14982 # Configured defaults for sys_lib_dlsearch_path munging.
14983 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14985 # ### BEGIN LIBTOOL CONFIG
14987 # Which release of libtool.m4 was used?
14988 macro_version=$macro_version
14989 macro_revision=$macro_revision
14991 # Assembler program.
14992 AS=$lt_AS
14994 # DLL creation program.
14995 DLLTOOL=$lt_DLLTOOL
14997 # Object dumper program.
14998 OBJDUMP=$lt_OBJDUMP
15000 # Whether or not to build shared libraries.
15001 build_libtool_libs=$enable_shared
15003 # Whether or not to build static libraries.
15004 build_old_libs=$enable_static
15006 # What type of objects to build.
15007 pic_mode=$pic_mode
15009 # Whether or not to optimize for fast installation.
15010 fast_install=$enable_fast_install
15012 # Shared archive member basename,for filename based shared library versioning on AIX.
15013 shared_archive_member_spec=$shared_archive_member_spec
15015 # Shell to use when invoking shell scripts.
15016 SHELL=$lt_SHELL
15018 # An echo program that protects backslashes.
15019 ECHO=$lt_ECHO
15021 # The PATH separator for the build system.
15022 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15024 # The host system.
15025 host_alias=$host_alias
15026 host=$host
15027 host_os=$host_os
15029 # The build system.
15030 build_alias=$build_alias
15031 build=$build
15032 build_os=$build_os
15034 # A sed program that does not truncate output.
15035 SED=$lt_SED
15037 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15038 Xsed="\$SED -e 1s/^X//"
15040 # A grep program that handles long lines.
15041 GREP=$lt_GREP
15043 # An ERE matcher.
15044 EGREP=$lt_EGREP
15046 # A literal string matcher.
15047 FGREP=$lt_FGREP
15049 # A BSD- or MS-compatible name lister.
15050 NM=$lt_NM
15052 # Whether we need soft or hard links.
15053 LN_S=$lt_LN_S
15055 # What is the maximum length of a command?
15056 max_cmd_len=$max_cmd_len
15058 # Object file suffix (normally "o").
15059 objext=$ac_objext
15061 # Executable file suffix (normally "").
15062 exeext=$exeext
15064 # whether the shell understands "unset".
15065 lt_unset=$lt_unset
15067 # turn spaces into newlines.
15068 SP2NL=$lt_lt_SP2NL
15070 # turn newlines into spaces.
15071 NL2SP=$lt_lt_NL2SP
15073 # convert \$build file names to \$host format.
15074 to_host_file_cmd=$lt_cv_to_host_file_cmd
15076 # convert \$build files to toolchain format.
15077 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15079 # Method to check whether dependent libraries are shared objects.
15080 deplibs_check_method=$lt_deplibs_check_method
15082 # Command to use when deplibs_check_method = "file_magic".
15083 file_magic_cmd=$lt_file_magic_cmd
15085 # How to find potential files when deplibs_check_method = "file_magic".
15086 file_magic_glob=$lt_file_magic_glob
15088 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15089 want_nocaseglob=$lt_want_nocaseglob
15091 # Command to associate shared and link libraries.
15092 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15094 # The archiver.
15095 AR=$lt_AR
15097 # Flags to create an archive.
15098 AR_FLAGS=$lt_AR_FLAGS
15100 # How to feed a file listing to the archiver.
15101 archiver_list_spec=$lt_archiver_list_spec
15103 # A symbol stripping program.
15104 STRIP=$lt_STRIP
15106 # Commands used to install an old-style archive.
15107 RANLIB=$lt_RANLIB
15108 old_postinstall_cmds=$lt_old_postinstall_cmds
15109 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15111 # Whether to use a lock for old archive extraction.
15112 lock_old_archive_extraction=$lock_old_archive_extraction
15114 # A C compiler.
15115 LTCC=$lt_CC
15117 # LTCC compiler flags.
15118 LTCFLAGS=$lt_CFLAGS
15120 # Take the output of nm and produce a listing of raw symbols and C names.
15121 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15123 # Transform the output of nm in a proper C declaration.
15124 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15126 # Transform the output of nm into a list of symbols to manually relocate.
15127 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15129 # Transform the output of nm in a C name address pair.
15130 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15132 # Transform the output of nm in a C name address pair when lib prefix is needed.
15133 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15135 # The name lister interface.
15136 nm_interface=$lt_lt_cv_nm_interface
15138 # Specify filename containing input files for \$NM.
15139 nm_file_list_spec=$lt_nm_file_list_spec
15141 # The root where to search for dependent libraries,and where our libraries should be installed.
15142 lt_sysroot=$lt_sysroot
15144 # Command to truncate a binary pipe.
15145 lt_truncate_bin=$lt_lt_cv_truncate_bin
15147 # The name of the directory that contains temporary libtool files.
15148 objdir=$objdir
15150 # Used to examine libraries when file_magic_cmd begins with "file".
15151 MAGIC_CMD=$MAGIC_CMD
15153 # Must we lock files when doing compilation?
15154 need_locks=$lt_need_locks
15156 # Manifest tool.
15157 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15159 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15160 DSYMUTIL=$lt_DSYMUTIL
15162 # Tool to change global to local symbols on Mac OS X.
15163 NMEDIT=$lt_NMEDIT
15165 # Tool to manipulate fat objects and archives on Mac OS X.
15166 LIPO=$lt_LIPO
15168 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15169 OTOOL=$lt_OTOOL
15171 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15172 OTOOL64=$lt_OTOOL64
15174 # Old archive suffix (normally "a").
15175 libext=$libext
15177 # Shared library suffix (normally ".so").
15178 shrext_cmds=$lt_shrext_cmds
15180 # The commands to extract the exported symbol list from a shared archive.
15181 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15183 # Variables whose values should be saved in libtool wrapper scripts and
15184 # restored at link time.
15185 variables_saved_for_relink=$lt_variables_saved_for_relink
15187 # Do we need the "lib" prefix for modules?
15188 need_lib_prefix=$need_lib_prefix
15190 # Do we need a version for libraries?
15191 need_version=$need_version
15193 # Library versioning type.
15194 version_type=$version_type
15196 # Shared library runtime path variable.
15197 runpath_var=$runpath_var
15199 # Shared library path variable.
15200 shlibpath_var=$shlibpath_var
15202 # Is shlibpath searched before the hard-coded library search path?
15203 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15205 # Format of library name prefix.
15206 libname_spec=$lt_libname_spec
15208 # List of archive names. First name is the real one, the rest are links.
15209 # The last name is the one that the linker finds with -lNAME
15210 library_names_spec=$lt_library_names_spec
15212 # The coded name of the library, if different from the real name.
15213 soname_spec=$lt_soname_spec
15215 # Permission mode override for installation of shared libraries.
15216 install_override_mode=$lt_install_override_mode
15218 # Command to use after installation of a shared archive.
15219 postinstall_cmds=$lt_postinstall_cmds
15221 # Command to use after uninstallation of a shared archive.
15222 postuninstall_cmds=$lt_postuninstall_cmds
15224 # Commands used to finish a libtool library installation in a directory.
15225 finish_cmds=$lt_finish_cmds
15227 # As "finish_cmds", except a single script fragment to be evaled but
15228 # not shown.
15229 finish_eval=$lt_finish_eval
15231 # Whether we should hardcode library paths into libraries.
15232 hardcode_into_libs=$hardcode_into_libs
15234 # Compile-time system search path for libraries.
15235 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15237 # Detected run-time system search path for libraries.
15238 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15240 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15241 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15243 # Whether dlopen is supported.
15244 dlopen_support=$enable_dlopen
15246 # Whether dlopen of programs is supported.
15247 dlopen_self=$enable_dlopen_self
15249 # Whether dlopen of statically linked programs is supported.
15250 dlopen_self_static=$enable_dlopen_self_static
15252 # Commands to strip libraries.
15253 old_striplib=$lt_old_striplib
15254 striplib=$lt_striplib
15257 # The linker used to build libraries.
15258 LD=$lt_LD
15260 # How to create reloadable object files.
15261 reload_flag=$lt_reload_flag
15262 reload_cmds=$lt_reload_cmds
15264 # Commands used to build an old-style archive.
15265 old_archive_cmds=$lt_old_archive_cmds
15267 # A language specific compiler.
15268 CC=$lt_compiler
15270 # Is the compiler the GNU compiler?
15271 with_gcc=$GCC
15273 # Compiler flag to turn off builtin functions.
15274 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15276 # Additional compiler flags for building library objects.
15277 pic_flag=$lt_lt_prog_compiler_pic
15279 # How to pass a linker flag through the compiler.
15280 wl=$lt_lt_prog_compiler_wl
15282 # Compiler flag to prevent dynamic linking.
15283 link_static_flag=$lt_lt_prog_compiler_static
15285 # Does compiler simultaneously support -c and -o options?
15286 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15288 # Whether or not to add -lc for building shared libraries.
15289 build_libtool_need_lc=$archive_cmds_need_lc
15291 # Whether or not to disallow shared libs when runtime libs are static.
15292 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15294 # Compiler flag to allow reflexive dlopens.
15295 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15297 # Compiler flag to generate shared objects directly from archives.
15298 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15300 # Whether the compiler copes with passing no objects directly.
15301 compiler_needs_object=$lt_compiler_needs_object
15303 # Create an old-style archive from a shared archive.
15304 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15306 # Create a temporary old-style archive to link instead of a shared archive.
15307 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15309 # Commands used to build a shared archive.
15310 archive_cmds=$lt_archive_cmds
15311 archive_expsym_cmds=$lt_archive_expsym_cmds
15313 # Commands used to build a loadable module if different from building
15314 # a shared archive.
15315 module_cmds=$lt_module_cmds
15316 module_expsym_cmds=$lt_module_expsym_cmds
15318 # Whether we are building with GNU ld or not.
15319 with_gnu_ld=$lt_with_gnu_ld
15321 # Flag that allows shared libraries with undefined symbols to be built.
15322 allow_undefined_flag=$lt_allow_undefined_flag
15324 # Flag that enforces no undefined symbols.
15325 no_undefined_flag=$lt_no_undefined_flag
15327 # Flag to hardcode \$libdir into a binary during linking.
15328 # This must work even if \$libdir does not exist
15329 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15331 # Whether we need a single "-rpath" flag with a separated argument.
15332 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15334 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15335 # DIR into the resulting binary.
15336 hardcode_direct=$hardcode_direct
15338 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15339 # DIR into the resulting binary and the resulting library dependency is
15340 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15341 # library is relocated.
15342 hardcode_direct_absolute=$hardcode_direct_absolute
15344 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15345 # into the resulting binary.
15346 hardcode_minus_L=$hardcode_minus_L
15348 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15349 # into the resulting binary.
15350 hardcode_shlibpath_var=$hardcode_shlibpath_var
15352 # Set to "yes" if building a shared library automatically hardcodes DIR
15353 # into the library and all subsequent libraries and executables linked
15354 # against it.
15355 hardcode_automatic=$hardcode_automatic
15357 # Set to yes if linker adds runtime paths of dependent libraries
15358 # to runtime path list.
15359 inherit_rpath=$inherit_rpath
15361 # Whether libtool must link a program against all its dependency libraries.
15362 link_all_deplibs=$link_all_deplibs
15364 # Set to "yes" if exported symbols are required.
15365 always_export_symbols=$always_export_symbols
15367 # The commands to list exported symbols.
15368 export_symbols_cmds=$lt_export_symbols_cmds
15370 # Symbols that should not be listed in the preloaded symbols.
15371 exclude_expsyms=$lt_exclude_expsyms
15373 # Symbols that must always be exported.
15374 include_expsyms=$lt_include_expsyms
15376 # Commands necessary for linking programs (against libraries) with templates.
15377 prelink_cmds=$lt_prelink_cmds
15379 # Commands necessary for finishing linking programs.
15380 postlink_cmds=$lt_postlink_cmds
15382 # Specify filename containing input files.
15383 file_list_spec=$lt_file_list_spec
15385 # How to hardcode a shared library path into an executable.
15386 hardcode_action=$hardcode_action
15388 # ### END LIBTOOL CONFIG
15390 _LT_EOF
15392 cat <<'_LT_EOF' >> "$cfgfile"
15394 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15396 # func_munge_path_list VARIABLE PATH
15397 # -----------------------------------
15398 # VARIABLE is name of variable containing _space_ separated list of
15399 # directories to be munged by the contents of PATH, which is string
15400 # having a format:
15401 # "DIR[:DIR]:"
15402 # string "DIR[ DIR]" will be prepended to VARIABLE
15403 # ":DIR[:DIR]"
15404 # string "DIR[ DIR]" will be appended to VARIABLE
15405 # "DIRP[:DIRP]::[DIRA:]DIRA"
15406 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15407 # "DIRA[ DIRA]" will be appended to VARIABLE
15408 # "DIR[:DIR]"
15409 # VARIABLE will be replaced by "DIR[ DIR]"
15410 func_munge_path_list ()
15412 case x$2 in
15416 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15418 x:*)
15419 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15421 *::*)
15422 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15423 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15426 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15428 esac
15432 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15433 func_cc_basename ()
15435 for cc_temp in $*""; do
15436 case $cc_temp in
15437 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15438 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15439 \-*) ;;
15440 *) break;;
15441 esac
15442 done
15443 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15447 # ### END FUNCTIONS SHARED WITH CONFIGURE
15449 _LT_EOF
15451 case $host_os in
15452 aix3*)
15453 cat <<\_LT_EOF >> "$cfgfile"
15454 # AIX sometimes has problems with the GCC collect2 program. For some
15455 # reason, if we set the COLLECT_NAMES environment variable, the problems
15456 # vanish in a puff of smoke.
15457 if test set != "${COLLECT_NAMES+set}"; then
15458 COLLECT_NAMES=
15459 export COLLECT_NAMES
15461 _LT_EOF
15463 esac
15466 ltmain=$ac_aux_dir/ltmain.sh
15469 # We use sed instead of cat because bash on DJGPP gets confused if
15470 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15471 # text mode, it properly converts lines to CR/LF. This bash problem
15472 # is reportedly fixed, but why not run on old versions too?
15473 sed '$q' "$ltmain" >> "$cfgfile" \
15474 || (rm -f "$cfgfile"; exit 1)
15476 mv -f "$cfgfile" "$ofile" ||
15477 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15478 chmod +x "$ofile"
15482 esac
15483 done # for ac_tag
15486 as_fn_exit 0
15487 _ACEOF
15488 ac_clean_files=$ac_clean_files_save
15490 test $ac_write_fail = 0 ||
15491 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15494 # configure is writing to config.log, and then calls config.status.
15495 # config.status does its own redirection, appending to config.log.
15496 # Unfortunately, on DOS this fails, as config.log is still kept open
15497 # by configure, so config.status won't be able to write to it; its
15498 # output is simply discarded. So we exec the FD to /dev/null,
15499 # effectively closing config.log, so it can be properly (re)opened and
15500 # appended to by config.status. When coming back to configure, we
15501 # need to make the FD available again.
15502 if test "$no_create" != yes; then
15503 ac_cs_success=:
15504 ac_config_status_args=
15505 test "$silent" = yes &&
15506 ac_config_status_args="$ac_config_status_args --quiet"
15507 exec 5>/dev/null
15508 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15509 exec 5>>config.log
15510 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15511 # would make configure fail if this is the last instruction.
15512 $ac_cs_success || as_fn_exit 1
15514 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15516 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}