2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for gacela 0.5.
5 # Report bugs to <jsf@jsancho.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and jsf@jsancho.org
250 $0: about your system, including any error possibly output
251 $0: before this message. Then install a modern shell, or
252 $0: manually run the script under such a shell if you do
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
571 PACKAGE_NAME='gacela'
572 PACKAGE_TARNAME='gacela'
573 PACKAGE_VERSION='0.5'
574 PACKAGE_STRING='gacela 0.5'
575 PACKAGE_BUGREPORT='jsf@jsancho.org'
578 # Factoring default headers for most tests.
579 ac_includes_default="\
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
591 # ifdef HAVE_STDLIB_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
614 ac_unique_file="src/sdl.c"
615 ac_subst_vars='am__EXEEXT_FALSE
684 INSTALL_STRIP_PROGRAM
726 program_transform_name
739 enable_option_checking
744 enable_dependency_tracking
750 ac_precious_vars='build_alias
761 # Initialize some variables set by options.
763 ac_init_version=false
764 ac_unrecognized_opts=
766 # The variables have the same names as the options, with
767 # dashes changed to underlines.
775 program_transform_name=s,x,x,
783 # Installation directory options.
784 # These are left unexpanded so users can "make install exec_prefix=/foo"
785 # and all the variables that are supposed to be based on exec_prefix
786 # by default will actually change.
787 # Use braces instead of parens because sh, perl, etc. also accept them.
788 # (The list follows the same order as the GNU Coding Standards.)
789 bindir='${exec_prefix}/bin'
790 sbindir='${exec_prefix}/sbin'
791 libexecdir='${exec_prefix}/libexec'
792 datarootdir='${prefix}/share'
793 datadir='${datarootdir}'
794 sysconfdir='${prefix}/etc'
795 sharedstatedir='${prefix}/com'
796 localstatedir='${prefix}/var'
797 includedir='${prefix}/include'
798 oldincludedir='/usr/include'
799 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
800 infodir='${datarootdir}/info'
805 libdir='${exec_prefix}/lib'
806 localedir='${datarootdir}/locale'
807 mandir='${datarootdir}/man'
813 # If the previous option needs an argument, assign it.
814 if test -n "$ac_prev"; then
815 eval $ac_prev=\$ac_option
821 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
826 # Accept the important Cygnus configure options, so we can diagnose typos.
828 case $ac_dashdash$ac_option in
832 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
837 -build | --build | --buil | --bui | --bu)
838 ac_prev=build_alias ;;
839 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840 build_alias=$ac_optarg ;;
842 -cache-file | --cache-file | --cache-fil | --cache-fi \
843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844 ac_prev=cache_file ;;
845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847 cache_file=$ac_optarg ;;
850 cache_file=config.cache ;;
852 -datadir | --datadir | --datadi | --datad)
854 -datadir=* | --datadir=* | --datadi=* | --datad=*)
855 datadir=$ac_optarg ;;
857 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858 | --dataroo | --dataro | --datar)
859 ac_prev=datarootdir ;;
860 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862 datarootdir=$ac_optarg ;;
864 -disable-* | --disable-*)
865 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868 as_fn_error $? "invalid feature name: $ac_useropt"
869 ac_useropt_orig=$ac_useropt
870 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871 case $ac_user_opts in
875 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876 ac_unrecognized_sep=', ';;
878 eval enable_$ac_useropt=no ;;
880 -docdir | --docdir | --docdi | --doc | --do)
882 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
885 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
890 -enable-* | --enable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error $? "invalid feature name: $ac_useropt"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
904 eval enable_$ac_useropt=\$ac_optarg ;;
906 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
907 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
908 | --exec | --exe | --ex)
909 ac_prev=exec_prefix ;;
910 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
911 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
912 | --exec=* | --exe=* | --ex=*)
913 exec_prefix=$ac_optarg ;;
915 -gas | --gas | --ga | --g)
916 # Obsolete; use --with-gas.
919 -help | --help | --hel | --he | -h)
921 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
922 ac_init_help=recursive ;;
923 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
924 ac_init_help=short ;;
926 -host | --host | --hos | --ho)
927 ac_prev=host_alias ;;
928 -host=* | --host=* | --hos=* | --ho=*)
929 host_alias=$ac_optarg ;;
931 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935 htmldir=$ac_optarg ;;
937 -includedir | --includedir | --includedi | --included | --include \
938 | --includ | --inclu | --incl | --inc)
939 ac_prev=includedir ;;
940 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
941 | --includ=* | --inclu=* | --incl=* | --inc=*)
942 includedir=$ac_optarg ;;
944 -infodir | --infodir | --infodi | --infod | --info | --inf)
946 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
947 infodir=$ac_optarg ;;
949 -libdir | --libdir | --libdi | --libd)
951 -libdir=* | --libdir=* | --libdi=* | --libd=*)
954 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
955 | --libexe | --libex | --libe)
956 ac_prev=libexecdir ;;
957 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
958 | --libexe=* | --libex=* | --libe=*)
959 libexecdir=$ac_optarg ;;
961 -localedir | --localedir | --localedi | --localed | --locale)
963 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
964 localedir=$ac_optarg ;;
966 -localstatedir | --localstatedir | --localstatedi | --localstated \
967 | --localstate | --localstat | --localsta | --localst | --locals)
968 ac_prev=localstatedir ;;
969 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
970 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
971 localstatedir=$ac_optarg ;;
973 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979 # Obsolete; use --without-fp.
982 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
983 | --no-cr | --no-c | -n)
986 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
987 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
990 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
991 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
992 | --oldin | --oldi | --old | --ol | --o)
993 ac_prev=oldincludedir ;;
994 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
995 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
996 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
997 oldincludedir=$ac_optarg ;;
999 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1002 prefix=$ac_optarg ;;
1004 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1005 | --program-pre | --program-pr | --program-p)
1006 ac_prev=program_prefix ;;
1007 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1008 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1009 program_prefix=$ac_optarg ;;
1011 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1012 | --program-suf | --program-su | --program-s)
1013 ac_prev=program_suffix ;;
1014 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1015 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1016 program_suffix=$ac_optarg ;;
1018 -program-transform-name | --program-transform-name \
1019 | --program-transform-nam | --program-transform-na \
1020 | --program-transform-n | --program-transform- \
1021 | --program-transform | --program-transfor \
1022 | --program-transfo | --program-transf \
1023 | --program-trans | --program-tran \
1024 | --progr-tra | --program-tr | --program-t)
1025 ac_prev=program_transform_name ;;
1026 -program-transform-name=* | --program-transform-name=* \
1027 | --program-transform-nam=* | --program-transform-na=* \
1028 | --program-transform-n=* | --program-transform-=* \
1029 | --program-transform=* | --program-transfor=* \
1030 | --program-transfo=* | --program-transf=* \
1031 | --program-trans=* | --program-tran=* \
1032 | --progr-tra=* | --program-tr=* | --program-t=*)
1033 program_transform_name=$ac_optarg ;;
1035 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1038 pdfdir=$ac_optarg ;;
1040 -psdir | --psdir | --psdi | --psd | --ps)
1042 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046 | -silent | --silent | --silen | --sile | --sil)
1049 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053 sbindir=$ac_optarg ;;
1055 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1056 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1057 | --sharedst | --shareds | --shared | --share | --shar \
1059 ac_prev=sharedstatedir ;;
1060 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1061 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1062 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064 sharedstatedir=$ac_optarg ;;
1066 -site | --site | --sit)
1068 -site=* | --site=* | --sit=*)
1071 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1074 srcdir=$ac_optarg ;;
1076 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1077 | --syscon | --sysco | --sysc | --sys | --sy)
1078 ac_prev=sysconfdir ;;
1079 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1080 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1081 sysconfdir=$ac_optarg ;;
1083 -target | --target | --targe | --targ | --tar | --ta | --t)
1084 ac_prev=target_alias ;;
1085 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1086 target_alias=$ac_optarg ;;
1088 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1091 -version | --version | --versio | --versi | --vers | -V)
1092 ac_init_version=: ;;
1095 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 as_fn_error $? "invalid package name: $ac_useropt"
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1108 eval with_$ac_useropt=\$ac_optarg ;;
1110 -without-* | --without-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error $? "invalid package name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1124 eval with_$ac_useropt=no ;;
1127 # Obsolete; use --with-x.
1130 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131 | --x-incl | --x-inc | --x-in | --x-i)
1132 ac_prev=x_includes ;;
1133 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135 x_includes=$ac_optarg ;;
1137 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139 ac_prev=x_libraries ;;
1140 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142 x_libraries=$ac_optarg ;;
1144 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1145 Try \`$0 --help' for more information"
1149 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1150 # Reject names that are not valid shell variable names.
1151 case $ac_envvar in #(
1152 '' | [0-9]* | *[!_$as_cr_alnum]* )
1153 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1155 eval $ac_envvar=\$ac_optarg
1156 export $ac_envvar ;;
1159 # FIXME: should be removed in autoconf 3.0.
1160 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1169 if test -n "$ac_prev"; then
1170 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171 as_fn_error $? "missing argument to $ac_option"
1174 if test -n "$ac_unrecognized_opts"; then
1175 case $enable_option_checking in
1177 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1178 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1182 # Check all directory arguments for consistency.
1183 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1184 datadir sysconfdir sharedstatedir localstatedir includedir \
1185 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1186 libdir localedir mandir
1188 eval ac_val=\$$ac_var
1189 # Remove trailing slashes.
1192 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1193 eval $ac_var=\$ac_val;;
1195 # Be sure to have absolute directory names.
1197 [\\/$]* | ?:[\\/]* ) continue;;
1198 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1200 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1203 # There might be people who depend on the old broken behavior: `$host'
1204 # used to hold the argument of --host etc.
1205 # FIXME: To remove some day.
1208 target=$target_alias
1210 # FIXME: To remove some day.
1211 if test "x$host_alias" != x; then
1212 if test "x$build_alias" = x; then
1213 cross_compiling=maybe
1214 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1215 If a cross compiler is detected then cross compile mode will be used" >&2
1216 elif test "x$build_alias" != "x$host_alias"; then
1222 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224 test "$silent" = yes && exec 6>/dev/null
1227 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228 ac_ls_di=`ls -di .` &&
1229 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230 as_fn_error $? "working directory cannot be determined"
1231 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232 as_fn_error $? "pwd does not report name of working directory"
1235 # Find the source files, if location was not specified.
1236 if test -z "$srcdir"; then
1237 ac_srcdir_defaulted=yes
1238 # Try the directory containing this script, then the parent directory.
1239 ac_confdir=`$as_dirname -- "$as_myself" ||
1240 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241 X"$as_myself" : 'X\(//\)[^/]' \| \
1242 X"$as_myself" : 'X\(//\)$' \| \
1243 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1244 $as_echo X"$as_myself" |
1245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1267 ac_srcdir_defaulted=no
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1270 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1273 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1277 # When building in place, set srcdir=.
1278 if test "$ac_abs_confdir" = "$ac_pwd"; then
1281 # Remove unnecessary trailing slashes from srcdir.
1282 # Double slashes in file names in object file debugging info
1283 # mess up M-x gdb in Emacs.
1285 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287 for ac_var in $ac_precious_vars; do
1288 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1289 eval ac_env_${ac_var}_value=\$${ac_var}
1290 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295 # Report the --help message.
1297 if test "$ac_init_help" = "long"; then
1298 # Omit some internal or obsolete options to make the list less imposing.
1299 # This message is too long to be a string in the A/UX 3.1 sh.
1301 \`configure' configures gacela 0.5 to adapt to many kinds of systems.
1303 Usage: $0 [OPTION]... [VAR=VALUE]...
1305 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1306 VAR=VALUE. See below for descriptions of some of the useful variables.
1308 Defaults for the options are specified in brackets.
1311 -h, --help display this help and exit
1312 --help=short display options specific to this package
1313 --help=recursive display the short help of all the included packages
1314 -V, --version display version information and exit
1315 -q, --quiet, --silent do not print \`checking ...' messages
1316 --cache-file=FILE cache test results in FILE [disabled]
1317 -C, --config-cache alias for \`--cache-file=config.cache'
1318 -n, --no-create do not create output files
1319 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1321 Installation directories:
1322 --prefix=PREFIX install architecture-independent files in PREFIX
1323 [$ac_default_prefix]
1324 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1327 By default, \`make install' will install all the files in
1328 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1329 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1330 for instance \`--prefix=\$HOME'.
1332 For better control, use the options below.
1334 Fine tuning of the installation directories:
1335 --bindir=DIR user executables [EPREFIX/bin]
1336 --sbindir=DIR system admin executables [EPREFIX/sbin]
1337 --libexecdir=DIR program executables [EPREFIX/libexec]
1338 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1339 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1340 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1341 --libdir=DIR object code libraries [EPREFIX/lib]
1342 --includedir=DIR C header files [PREFIX/include]
1343 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1344 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1345 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1346 --infodir=DIR info documentation [DATAROOTDIR/info]
1347 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1348 --mandir=DIR man documentation [DATAROOTDIR/man]
1349 --docdir=DIR documentation root [DATAROOTDIR/doc/gacela]
1350 --htmldir=DIR html documentation [DOCDIR]
1351 --dvidir=DIR dvi documentation [DOCDIR]
1352 --pdfdir=DIR pdf documentation [DOCDIR]
1353 --psdir=DIR ps documentation [DOCDIR]
1359 --program-prefix=PREFIX prepend PREFIX to installed program names
1360 --program-suffix=SUFFIX append SUFFIX to installed program names
1361 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1364 --build=BUILD configure for building on BUILD [guessed]
1365 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1369 if test -n "$ac_init_help"; then
1370 case $ac_init_help in
1371 short | recursive ) echo "Configuration of gacela 0.5:";;
1376 --disable-option-checking ignore unrecognized --enable/--with options
1377 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1378 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1379 --enable-shared[=PKGS] build shared libraries [default=yes]
1380 --enable-static[=PKGS] build static libraries [default=yes]
1381 --enable-fast-install[=PKGS]
1382 optimize for fast installation [default=yes]
1383 --disable-dependency-tracking speeds up one-time build
1384 --enable-dependency-tracking do not reject slow dependency extractors
1385 --disable-libtool-lock avoid locking (might break parallel builds)
1386 --disable-rpath do not hardcode runtime library paths
1389 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1390 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1391 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1393 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1394 --with-sysroot=DIR Search for dependent libraries within DIR
1395 (or the compiler's sysroot if not specified).
1396 --with-gnu-ld assume the C compiler uses GNU ld default=no
1398 Some influential environment variables:
1399 CC C compiler command
1400 CFLAGS C compiler flags
1401 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1402 nonstandard directory <lib dir>
1403 LIBS libraries to pass to the linker, e.g. -l<library>
1404 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1405 you have headers in a nonstandard directory <include dir>
1408 Use these variables to override the choices made by `configure' or to help
1409 it to find libraries and programs with nonstandard names/locations.
1411 Report bugs to <jsf@jsancho.org>.
1416 if test "$ac_init_help" = "recursive"; then
1417 # If there are subdirs, report their specific --help.
1418 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1419 test -d "$ac_dir" ||
1420 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1428 # A ".." for each directory in $ac_dir_suffix.
1429 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1430 case $ac_top_builddir_sub in
1431 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435 ac_abs_top_builddir=$ac_pwd
1436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1437 # for backward compatibility:
1438 ac_top_builddir=$ac_top_build_prefix
1441 .) # We are building in place.
1443 ac_top_srcdir=$ac_top_builddir_sub
1444 ac_abs_top_srcdir=$ac_pwd ;;
1445 [\\/]* | ?:[\\/]* ) # Absolute name.
1446 ac_srcdir=$srcdir$ac_dir_suffix;
1447 ac_top_srcdir=$srcdir
1448 ac_abs_top_srcdir=$srcdir ;;
1450 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1451 ac_top_srcdir=$ac_top_build_prefix$srcdir
1452 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1456 cd "$ac_dir" || { ac_status=$?; continue; }
1457 # Check for guested configure.
1458 if test -f "$ac_srcdir/configure.gnu"; then
1460 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1461 elif test -f "$ac_srcdir/configure"; then
1463 $SHELL "$ac_srcdir/configure" --help=recursive
1465 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1467 cd "$ac_pwd" || { ac_status=$?; break; }
1471 test -n "$ac_init_help" && exit $ac_status
1472 if $ac_init_version; then
1474 gacela configure 0.5
1475 generated by GNU Autoconf 2.68
1477 Copyright (C) 2010 Free Software Foundation, Inc.
1478 This configure script is free software; the Free Software Foundation
1479 gives unlimited permission to copy, distribute and modify it.
1484 ## ------------------------ ##
1485 ## Autoconf initialization. ##
1486 ## ------------------------ ##
1488 # ac_fn_c_try_compile LINENO
1489 # --------------------------
1490 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1491 ac_fn_c_try_compile ()
1493 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1494 rm -f conftest.$ac_objext
1495 if { { ac_try="$ac_compile"
1497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1498 *) ac_try_echo=$ac_try;;
1500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1501 $as_echo "$ac_try_echo"; } >&5
1502 (eval "$ac_compile") 2>conftest.err
1504 if test -s conftest.err; then
1505 grep -v '^ *+' conftest.err >conftest.er1
1506 cat conftest.er1 >&5
1507 mv -f conftest.er1 conftest.err
1509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1510 test $ac_status = 0; } && {
1511 test -z "$ac_c_werror_flag" ||
1512 test ! -s conftest.err
1513 } && test -s conftest.$ac_objext; then :
1516 $as_echo "$as_me: failed program was:" >&5
1517 sed 's/^/| /' conftest.$ac_ext >&5
1521 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1522 as_fn_set_status $ac_retval
1524 } # ac_fn_c_try_compile
1526 # ac_fn_c_try_link LINENO
1527 # -----------------------
1528 # Try to link conftest.$ac_ext, and return whether this succeeded.
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 rm -f conftest.$ac_objext conftest$ac_exeext
1533 if { { ac_try="$ac_link"
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_link") 2>conftest.err
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } && {
1549 test -z "$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 } && test -s conftest$ac_exeext && {
1552 test "$cross_compiling" = yes ||
1553 $as_test_x conftest$ac_exeext
1557 $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1562 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1563 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1564 # interfere with the next link command; also delete a directory that is
1565 # left behind by Apple's compiler. We do this before executing the actions.
1566 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1568 as_fn_set_status $ac_retval
1570 } # ac_fn_c_try_link
1572 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1573 # -------------------------------------------------------
1574 # Tests whether HEADER exists and can be compiled using the include files in
1575 # INCLUDES, setting the cache variable VAR accordingly.
1576 ac_fn_c_check_header_compile ()
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1580 $as_echo_n "checking for $2... " >&6; }
1581 if eval \${$3+:} false; then :
1582 $as_echo_n "(cached) " >&6
1584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1585 /* end confdefs.h. */
1589 if ac_fn_c_try_compile "$LINENO"; then :
1594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1598 $as_echo "$ac_res" >&6; }
1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601 } # ac_fn_c_check_header_compile
1603 # ac_fn_c_try_cpp LINENO
1604 # ----------------------
1605 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 if { { ac_try="$ac_cpp conftest.$ac_ext"
1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;;
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1618 if test -s conftest.err; then
1619 grep -v '^ *+' conftest.err >conftest.er1
1620 cat conftest.er1 >&5
1621 mv -f conftest.er1 conftest.err
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } > conftest.i && {
1625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1626 test ! -s conftest.err
1630 $as_echo "$as_me: failed program was:" >&5
1631 sed 's/^/| /' conftest.$ac_ext >&5
1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636 as_fn_set_status $ac_retval
1640 # ac_fn_c_try_run LINENO
1641 # ----------------------
1642 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1643 # that executables *can* be run.
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 if { { ac_try="$ac_link"
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_link") 2>&5
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1658 { { case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_try") 2>&5
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; }; }; then :
1670 $as_echo "$as_me: program exited with status $ac_status" >&5
1671 $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1674 ac_retval=$ac_status
1676 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678 as_fn_set_status $ac_retval
1682 # ac_fn_c_check_func LINENO FUNC VAR
1683 # ----------------------------------
1684 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1685 ac_fn_c_check_func ()
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1689 $as_echo_n "checking for $2... " >&6; }
1690 if eval \${$3+:} false; then :
1691 $as_echo_n "(cached) " >&6
1693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1694 /* end confdefs.h. */
1695 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1697 #define $2 innocuous_$2
1699 /* System header to define __stub macros and hopefully few prototypes,
1700 which can conflict with char $2 (); below.
1701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1702 <limits.h> exists even on freestanding compilers. */
1705 # include <limits.h>
1707 # include <assert.h>
1712 /* Override any GCC internal prototype to avoid an error.
1713 Use char because int might match the return type of a GCC
1714 builtin and then its argument prototype would still apply. */
1719 /* The GNU C library defines this for functions which it implements
1720 to always fail with ENOSYS. Some functions are actually named
1721 something starting with __ and the normal name is an alias. */
1722 #if defined __stub_$2 || defined __stub___$2
1734 if ac_fn_c_try_link "$LINENO"; then :
1739 rm -f core conftest.err conftest.$ac_objext \
1740 conftest$ac_exeext conftest.$ac_ext
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744 $as_echo "$ac_res" >&6; }
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 } # ac_fn_c_check_func
1748 cat >config.log <<_ACEOF
1749 This file contains any messages produced by compilers while
1750 running configure, to aid debugging if configure makes a mistake.
1752 It was created by gacela $as_me 0.5, which was
1753 generated by GNU Autoconf 2.68. Invocation command line was
1765 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1766 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1767 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1768 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1769 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1771 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1772 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1774 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1775 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1776 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1777 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1778 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1779 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1780 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788 test -z "$as_dir" && as_dir=.
1789 $as_echo "PATH: $as_dir"
1805 # Keep a trace of the command line.
1806 # Strip out --no-create and --no-recursion so they do not pile up.
1807 # Strip out --silent because we don't want to record it for future runs.
1808 # Also quote any args containing shell meta-characters.
1809 # Make two passes to allow for proper duplicate-argument suppression.
1813 ac_must_keep_next=false
1819 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1820 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1821 | -silent | --silent | --silen | --sile | --sil)
1824 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1827 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1829 as_fn_append ac_configure_args1 " '$ac_arg'"
1830 if test $ac_must_keep_next = true; then
1831 ac_must_keep_next=false # Got value, back to normal.
1834 *=* | --config-cache | -C | -disable-* | --disable-* \
1835 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1836 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1837 | -with-* | --with-* | -without-* | --without-* | --x)
1838 case "$ac_configure_args0 " in
1839 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1842 -* ) ac_must_keep_next=true ;;
1845 as_fn_append ac_configure_args " '$ac_arg'"
1850 { ac_configure_args0=; unset ac_configure_args0;}
1851 { ac_configure_args1=; unset ac_configure_args1;}
1853 # When interrupted or exit'd, cleanup temporary files, and complete
1854 # config.log. We remove comments because anyway the quotes in there
1855 # would cause problems or look ugly.
1856 # WARNING: Use '\'' to represent an apostrophe within the trap.
1857 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1858 trap 'exit_status=$?
1859 # Save into config.log some information that might help in debugging.
1863 $as_echo "## ---------------- ##
1864 ## Cache variables. ##
1865 ## ---------------- ##"
1867 # The following way of writing the cache mishandles newlines in values,
1869 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1870 eval ac_val=\$$ac_var
1874 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1875 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1878 _ | IFS | as_nl) ;; #(
1879 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1880 *) { eval $ac_var=; unset $ac_var;} ;;
1885 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1886 *${as_nl}ac_space=\ *)
1888 "s/'\''/'\''\\\\'\'''\''/g;
1889 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1892 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1899 $as_echo "## ----------------- ##
1900 ## Output variables. ##
1901 ## ----------------- ##"
1903 for ac_var in $ac_subst_vars
1905 eval ac_val=\$$ac_var
1907 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1909 $as_echo "$ac_var='\''$ac_val'\''"
1913 if test -n "$ac_subst_files"; then
1914 $as_echo "## ------------------- ##
1915 ## File substitutions. ##
1916 ## ------------------- ##"
1918 for ac_var in $ac_subst_files
1920 eval ac_val=\$$ac_var
1922 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1924 $as_echo "$ac_var='\''$ac_val'\''"
1929 if test -s confdefs.h; then
1930 $as_echo "## ----------- ##
1937 test "$ac_signal" != 0 &&
1938 $as_echo "$as_me: caught signal $ac_signal"
1939 $as_echo "$as_me: exit $exit_status"
1941 rm -f core *.core core.conftest.* &&
1942 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1945 for ac_signal in 1 2 13 15; do
1946 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1950 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1951 rm -f -r conftest* confdefs.h
1953 $as_echo "/* confdefs.h */" > confdefs.h
1955 # Predefined preprocessor variables.
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_NAME "$PACKAGE_NAME"
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1965 cat >>confdefs.h <<_ACEOF
1966 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1969 cat >>confdefs.h <<_ACEOF
1970 #define PACKAGE_STRING "$PACKAGE_STRING"
1973 cat >>confdefs.h <<_ACEOF
1974 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1977 cat >>confdefs.h <<_ACEOF
1978 #define PACKAGE_URL "$PACKAGE_URL"
1982 # Let the site file select an alternate cache file if it wants to.
1983 # Prefer an explicitly selected file to automatically selected ones.
1986 if test -n "$CONFIG_SITE"; then
1987 # We do not want a PATH search for config.site.
1988 case $CONFIG_SITE in #((
1989 -*) ac_site_file1=./$CONFIG_SITE;;
1990 */*) ac_site_file1=$CONFIG_SITE;;
1991 *) ac_site_file1=./$CONFIG_SITE;;
1993 elif test "x$prefix" != xNONE; then
1994 ac_site_file1=$prefix/share/config.site
1995 ac_site_file2=$prefix/etc/config.site
1997 ac_site_file1=$ac_default_prefix/share/config.site
1998 ac_site_file2=$ac_default_prefix/etc/config.site
2000 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2002 test "x$ac_site_file" = xNONE && continue
2003 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2005 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2006 sed 's/^/| /' "$ac_site_file" >&5
2008 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2010 as_fn_error $? "failed to load site script $ac_site_file
2011 See \`config.log' for more details" "$LINENO" 5; }
2015 if test -r "$cache_file"; then
2016 # Some versions of bash will fail to source /dev/null (special files
2017 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2018 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2020 $as_echo "$as_me: loading cache $cache_file" >&6;}
2022 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2023 *) . "./$cache_file";;
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2028 $as_echo "$as_me: creating cache $cache_file" >&6;}
2032 # Check that the precious variables saved in the cache have kept the same
2034 ac_cache_corrupted=false
2035 for ac_var in $ac_precious_vars; do
2036 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2037 eval ac_new_set=\$ac_env_${ac_var}_set
2038 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2039 eval ac_new_val=\$ac_env_${ac_var}_value
2040 case $ac_old_set,$ac_new_set in
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2043 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2044 ac_cache_corrupted=: ;;
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2047 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2048 ac_cache_corrupted=: ;;
2051 if test "x$ac_old_val" != "x$ac_new_val"; then
2052 # differences in whitespace do not lead to failure.
2053 ac_old_val_w=`echo x $ac_old_val`
2054 ac_new_val_w=`echo x $ac_new_val`
2055 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2057 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2058 ac_cache_corrupted=:
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2061 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2062 eval $ac_var=\$ac_old_val
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2065 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2067 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2070 # Pass precious variables to config.status.
2071 if test "$ac_new_set" = set; then
2073 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2074 *) ac_arg=$ac_var=$ac_new_val ;;
2076 case " $ac_configure_args " in
2077 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2078 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2082 if $ac_cache_corrupted; then
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2086 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2087 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2089 ## -------------------- ##
2090 ## Main body of script. ##
2091 ## -------------------- ##
2094 ac_cpp='$CPP $CPPFLAGS'
2095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2100 am__api_version='1.11'
2103 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2104 if test -f "$ac_dir/install-sh"; then
2106 ac_install_sh="$ac_aux_dir/install-sh -c"
2108 elif test -f "$ac_dir/install.sh"; then
2110 ac_install_sh="$ac_aux_dir/install.sh -c"
2112 elif test -f "$ac_dir/shtool"; then
2114 ac_install_sh="$ac_aux_dir/shtool install -c"
2118 if test -z "$ac_aux_dir"; then
2119 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2122 # These three variables are undocumented and unsupported,
2123 # and are intended to be withdrawn in a future Autoconf release.
2124 # They can cause serious problems if a builder's source tree is in a directory
2125 # whose full name contains unusual characters.
2126 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2127 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2128 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2131 # Find a good install program. We prefer a C program (faster),
2132 # so one script is as good as another. But avoid the broken or
2133 # incompatible versions:
2134 # SysV /etc/install, /usr/sbin/install
2135 # SunOS /usr/etc/install
2136 # IRIX /sbin/install
2138 # AmigaOS /C/install, which installs bootblocks on floppy discs
2139 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2140 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2141 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2142 # OS/2's system install, which has a completely different semantic
2143 # ./install, which can be erroneously created by make from ./install.sh.
2144 # Reject install programs that cannot install multiple files.
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2146 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2147 if test -z "$INSTALL"; then
2148 if ${ac_cv_path_install+:} false; then :
2149 $as_echo_n "(cached) " >&6
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 test -z "$as_dir" && as_dir=.
2156 # Account for people who put trailing slashes in PATH elements.
2157 case $as_dir/ in #((
2158 ./ | .// | /[cC]/* | \
2159 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2160 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2163 # OSF1 and SCO ODT 3.0 have their own names for install.
2164 # Don't use installbsd from OSF since it installs stuff as root
2166 for ac_prog in ginstall scoinst install; do
2167 for ac_exec_ext in '' $ac_executable_extensions; do
2168 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2169 if test $ac_prog = install &&
2170 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2171 # AIX install. It has an incompatible calling convention.
2173 elif test $ac_prog = install &&
2174 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2175 # program-specific install script used by HP pwplus--don't use.
2178 rm -rf conftest.one conftest.two conftest.dir
2179 echo one > conftest.one
2180 echo two > conftest.two
2182 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2183 test -s conftest.one && test -s conftest.two &&
2184 test -s conftest.dir/conftest.one &&
2185 test -s conftest.dir/conftest.two
2187 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2200 rm -rf conftest.one conftest.two conftest.dir
2203 if test "${ac_cv_path_install+set}" = set; then
2204 INSTALL=$ac_cv_path_install
2206 # As a last resort, use the slow shell script. Don't cache a
2207 # value for INSTALL within a source directory, because that will
2208 # break other packages using the cache if that directory is
2209 # removed, or if the value is a relative name.
2210 INSTALL=$ac_install_sh
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2214 $as_echo "$INSTALL" >&6; }
2216 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2217 # It thinks the first close brace ends the variable substitution.
2218 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2220 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2222 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2225 $as_echo_n "checking whether build environment is sane... " >&6; }
2228 echo timestamp > conftest.file
2229 # Reject unsafe characters in $srcdir or the absolute working directory
2230 # name. Accept space and tab only in the latter.
2234 *[\\\"\#\$\&\'\`$am_lf]*)
2235 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2238 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2239 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2242 # Do `set' in a subshell so we don't clobber the current shell's
2243 # arguments. Must try -L first in case configure is actually a
2244 # symlink; some systems play weird games with the mod time of symlinks
2245 # (eg FreeBSD returns the mod time of the symlink's containing
2248 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2249 if test "$*" = "X"; then
2251 set X `ls -t "$srcdir/configure" conftest.file`
2254 if test "$*" != "X $srcdir/configure conftest.file" \
2255 && test "$*" != "X conftest.file $srcdir/configure"; then
2257 # If neither matched, then we have a broken ls. This can happen
2258 # if, for instance, CONFIG_SHELL is bash and it inherits a
2259 # broken ls alias from the environment. This has actually
2260 # happened. Such a system could not be considered "sane".
2261 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2262 alias in your environment" "$LINENO" 5
2265 test "$2" = conftest.file
2271 as_fn_error $? "newly created file is older than distributed files!
2272 Check your system clock" "$LINENO" 5
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2275 $as_echo "yes" >&6; }
2276 test "$program_prefix" != NONE &&
2277 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2278 # Use a double $ so make ignores it.
2279 test "$program_suffix" != NONE &&
2280 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2281 # Double any \ or $.
2282 # By default was `s,x,x', remove it if useless.
2283 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2284 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2286 # expand $ac_aux_dir to an absolute path
2287 am_aux_dir=`cd $ac_aux_dir && pwd`
2289 if test x"${MISSING+set}" != xset; then
2292 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2294 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2297 # Use eval to expand $SHELL
2298 if eval "$MISSING --run true"; then
2299 am_missing_run="$MISSING --run "
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2303 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2306 if test x"${install_sh}" != xset; then
2309 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2311 install_sh="\${SHELL} $am_aux_dir/install-sh"
2315 # Installed binaries are usually stripped using `strip' when the user
2316 # run `make install-strip'. However `strip' might not be the right
2317 # tool to use in cross-compilation environments, therefore Automake
2318 # will honor the `STRIP' environment variable to overrule this program.
2319 if test "$cross_compiling" != no; then
2320 if test -n "$ac_tool_prefix"; then
2321 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2322 set dummy ${ac_tool_prefix}strip; ac_word=$2
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2324 $as_echo_n "checking for $ac_word... " >&6; }
2325 if ${ac_cv_prog_STRIP+:} false; then :
2326 $as_echo_n "(cached) " >&6
2328 if test -n "$STRIP"; then
2329 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 test -z "$as_dir" && as_dir=.
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2338 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2348 STRIP=$ac_cv_prog_STRIP
2349 if test -n "$STRIP"; then
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2351 $as_echo "$STRIP" >&6; }
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2354 $as_echo "no" >&6; }
2359 if test -z "$ac_cv_prog_STRIP"; then
2361 # Extract the first word of "strip", so it can be a program name with args.
2362 set dummy strip; ac_word=$2
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2364 $as_echo_n "checking for $ac_word... " >&6; }
2365 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2366 $as_echo_n "(cached) " >&6
2368 if test -n "$ac_ct_STRIP"; then
2369 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2378 ac_cv_prog_ac_ct_STRIP="strip"
2379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2389 if test -n "$ac_ct_STRIP"; then
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2391 $as_echo "$ac_ct_STRIP" >&6; }
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2394 $as_echo "no" >&6; }
2397 if test "x$ac_ct_STRIP" = x; then
2400 case $cross_compiling:$ac_tool_warned in
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2404 ac_tool_warned=yes ;;
2409 STRIP="$ac_cv_prog_STRIP"
2413 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2416 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2417 if test -z "$MKDIR_P"; then
2418 if ${ac_cv_path_mkdir+:} false; then :
2419 $as_echo_n "(cached) " >&6
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2425 test -z "$as_dir" && as_dir=.
2426 for ac_prog in mkdir gmkdir; do
2427 for ac_exec_ext in '' $ac_executable_extensions; do
2428 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2429 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2430 'mkdir (GNU coreutils) '* | \
2431 'mkdir (coreutils) '* | \
2432 'mkdir (fileutils) '4.1*)
2433 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2443 test -d ./--version && rmdir ./--version
2444 if test "${ac_cv_path_mkdir+set}" = set; then
2445 MKDIR_P="$ac_cv_path_mkdir -p"
2447 # As a last resort, use the slow shell script. Don't cache a
2448 # value for MKDIR_P within a source directory, because that will
2449 # break other packages using the cache if that directory is
2450 # removed, or if the value is a relative name.
2451 MKDIR_P="$ac_install_sh -d"
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2455 $as_echo "$MKDIR_P" >&6; }
2459 [\\/$]* | ?:[\\/]*) ;;
2460 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2463 for ac_prog in gawk mawk nawk awk
2465 # Extract the first word of "$ac_prog", so it can be a program name with args.
2466 set dummy $ac_prog; ac_word=$2
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2468 $as_echo_n "checking for $ac_word... " >&6; }
2469 if ${ac_cv_prog_AWK+:} false; then :
2470 $as_echo_n "(cached) " >&6
2472 if test -n "$AWK"; then
2473 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 test -z "$as_dir" && as_dir=.
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2482 ac_cv_prog_AWK="$ac_prog"
2483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 if test -n "$AWK"; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2495 $as_echo "$AWK" >&6; }
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2498 $as_echo "no" >&6; }
2502 test -n "$AWK" && break
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2506 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2508 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2509 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2510 $as_echo_n "(cached) " >&6
2512 cat >conftest.make <<\_ACEOF
2515 @echo '@@@%%%=$(MAKE)=@@@%%%'
2517 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2518 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2520 eval ac_cv_prog_make_${ac_make}_set=yes;;
2522 eval ac_cv_prog_make_${ac_make}_set=no;;
2526 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2528 $as_echo "yes" >&6; }
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2532 $as_echo "no" >&6; }
2533 SET_MAKE="MAKE=${MAKE-make}"
2536 rm -rf .tst 2>/dev/null
2537 mkdir .tst 2>/dev/null
2538 if test -d .tst; then
2543 rmdir .tst 2>/dev/null
2545 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2546 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2547 # is not polluted with repeated "-I."
2548 am__isrc=' -I$(srcdir)'
2549 # test to see if srcdir already configured
2550 if test -f $srcdir/config.status; then
2551 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2555 # test whether we have cygpath
2556 if test -z "$CYGPATH_W"; then
2557 if (cygpath --version) >/dev/null 2>/dev/null; then
2558 CYGPATH_W='cygpath -w'
2565 # Define the identity of the package.
2570 cat >>confdefs.h <<_ACEOF
2571 #define PACKAGE "$PACKAGE"
2575 cat >>confdefs.h <<_ACEOF
2576 #define VERSION "$VERSION"
2579 # Some tools Automake needs.
2581 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2584 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2587 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2590 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2593 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2595 # We need awk for the "check" target. The system "awk" is bad on
2597 # Always define AMTAR for backward compatibility.
2599 AMTAR=${AMTAR-"${am_missing_run}tar"}
2601 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2610 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2615 macro_version='2.4.2'
2616 macro_revision='1.3337'
2630 ltmain="$ac_aux_dir/ltmain.sh"
2632 # Make sure we can run config.sub.
2633 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2634 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2637 $as_echo_n "checking build system type... " >&6; }
2638 if ${ac_cv_build+:} false; then :
2639 $as_echo_n "(cached) " >&6
2641 ac_build_alias=$build_alias
2642 test "x$ac_build_alias" = x &&
2643 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2644 test "x$ac_build_alias" = x &&
2645 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2646 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2647 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2651 $as_echo "$ac_cv_build" >&6; }
2652 case $ac_cv_build in
2654 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2657 ac_save_IFS=$IFS; IFS='-'
2663 # Remember, the first character of IFS is used to create $*,
2664 # except with old shells:
2667 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2671 $as_echo_n "checking host system type... " >&6; }
2672 if ${ac_cv_host+:} false; then :
2673 $as_echo_n "(cached) " >&6
2675 if test "x$host_alias" = x; then
2676 ac_cv_host=$ac_cv_build
2678 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2679 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2684 $as_echo "$ac_cv_host" >&6; }
2687 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2690 ac_save_IFS=$IFS; IFS='-'
2696 # Remember, the first character of IFS is used to create $*,
2697 # except with old shells:
2700 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2703 # Backslashify metacharacters that are still active within
2704 # double-quoted strings.
2705 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2707 # Same as above, but do not quote variable references.
2708 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2710 # Sed substitution to delay expansion of an escaped shell variable in a
2711 # double_quote_subst'ed string.
2712 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2714 # Sed substitution to delay expansion of an escaped single quote.
2715 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2717 # Sed substitution to avoid accidental globbing in evaled expressions
2718 no_glob_subst='s/\*/\\\*/g'
2720 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2721 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2722 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2725 $as_echo_n "checking how to print strings... " >&6; }
2726 # Test print first, because it will be a builtin if present.
2727 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2728 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2730 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2733 # Use this function as a fallback that always works.
2734 func_fallback_echo ()
2736 eval 'cat <<_LTECHO_EOF
2740 ECHO='func_fallback_echo'
2743 # func_echo_all arg...
2744 # Invoke $ECHO with all args, space-separated.
2751 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2752 $as_echo "printf" >&6; } ;;
2753 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2754 $as_echo "print -r" >&6; } ;;
2755 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2756 $as_echo "cat" >&6; } ;;
2772 DEPDIR="${am__leading_dot}deps"
2774 ac_config_commands="$ac_config_commands depfiles"
2777 am_make=${MAKE-make}
2778 cat > confinc << 'END'
2780 @echo this is the am__doit target
2783 # If we don't find an include directive, just comment out the code.
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2785 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2789 # First try GNU make style include.
2790 echo "include confinc" > confmf
2791 # Ignore all kinds of additional output from `make'.
2792 case `$am_make -s -f confmf 2> /dev/null` in #(
2793 *the\ am__doit\ target*)
2799 # Now try BSD make style include.
2800 if test "$am__include" = "#"; then
2801 echo '.include "confinc"' > confmf
2802 case `$am_make -s -f confmf 2> /dev/null` in #(
2803 *the\ am__doit\ target*)
2804 am__include=.include
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2813 $as_echo "$_am_result" >&6; }
2814 rm -f confinc confmf
2816 # Check whether --enable-dependency-tracking was given.
2817 if test "${enable_dependency_tracking+set}" = set; then :
2818 enableval=$enable_dependency_tracking;
2821 if test "x$enable_dependency_tracking" != xno; then
2822 am_depcomp="$ac_aux_dir/depcomp"
2826 if test "x$enable_dependency_tracking" != xno; then
2836 ac_cpp='$CPP $CPPFLAGS'
2837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2840 if test -n "$ac_tool_prefix"; then
2841 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2842 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if ${ac_cv_prog_CC+:} false; then :
2846 $as_echo_n "(cached) " >&6
2848 if test -n "$CC"; then
2849 ac_cv_prog_CC="$CC" # Let the user override the test.
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 if test -n "$CC"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2871 $as_echo "$CC" >&6; }
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2879 if test -z "$ac_cv_prog_CC"; then
2881 # Extract the first word of "gcc", so it can be a program name with args.
2882 set dummy gcc; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2886 $as_echo_n "(cached) " >&6
2888 if test -n "$ac_ct_CC"; then
2889 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2898 ac_cv_prog_ac_ct_CC="gcc"
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2909 if test -n "$ac_ct_CC"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2911 $as_echo "$ac_ct_CC" >&6; }
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2917 if test "x$ac_ct_CC" = x; then
2920 case $cross_compiling:$ac_tool_warned in
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2924 ac_tool_warned=yes ;;
2932 if test -z "$CC"; then
2933 if test -n "$ac_tool_prefix"; then
2934 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2935 set dummy ${ac_tool_prefix}cc; ac_word=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if ${ac_cv_prog_CC+:} false; then :
2939 $as_echo_n "(cached) " >&6
2941 if test -n "$CC"; then
2942 ac_cv_prog_CC="$CC" # Let the user override the test.
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951 ac_cv_prog_CC="${ac_tool_prefix}cc"
2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 if test -n "$CC"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2964 $as_echo "$CC" >&6; }
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2973 if test -z "$CC"; then
2974 # Extract the first word of "cc", so it can be a program name with args.
2975 set dummy cc; ac_word=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if ${ac_cv_prog_CC+:} false; then :
2979 $as_echo_n "(cached) " >&6
2981 if test -n "$CC"; then
2982 ac_cv_prog_CC="$CC" # Let the user override the test.
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2993 ac_prog_rejected=yes
2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 if test $ac_prog_rejected = yes; then
3005 # We found a bogon in the path, so make sure we never use it.
3006 set dummy $ac_cv_prog_CC
3008 if test $# != 0; then
3009 # We chose a different compiler from the bogus one.
3010 # However, it has the same basename, so the bogon will be chosen
3011 # first if we set CC to just the basename; use the full file name.
3013 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3019 if test -n "$CC"; then
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3021 $as_echo "$CC" >&6; }
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024 $as_echo "no" >&6; }
3029 if test -z "$CC"; then
3030 if test -n "$ac_tool_prefix"; then
3031 for ac_prog in cl.exe
3033 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3034 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if ${ac_cv_prog_CC+:} false; then :
3038 $as_echo_n "(cached) " >&6
3040 if test -n "$CC"; then
3041 ac_cv_prog_CC="$CC" # Let the user override the test.
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 test -z "$as_dir" && as_dir=.
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 if test -n "$CC"; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3063 $as_echo "$CC" >&6; }
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3070 test -n "$CC" && break
3073 if test -z "$CC"; then
3075 for ac_prog in cl.exe
3077 # Extract the first word of "$ac_prog", so it can be a program name with args.
3078 set dummy $ac_prog; ac_word=$2
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080 $as_echo_n "checking for $ac_word... " >&6; }
3081 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3082 $as_echo_n "(cached) " >&6
3084 if test -n "$ac_ct_CC"; then
3085 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 test -z "$as_dir" && as_dir=.
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3094 ac_cv_prog_ac_ct_CC="$ac_prog"
3095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3105 if test -n "$ac_ct_CC"; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3107 $as_echo "$ac_ct_CC" >&6; }
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3114 test -n "$ac_ct_CC" && break
3117 if test "x$ac_ct_CC" = x; then
3120 case $cross_compiling:$ac_tool_warned in
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3124 ac_tool_warned=yes ;;
3133 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3135 as_fn_error $? "no acceptable C compiler found in \$PATH
3136 See \`config.log' for more details" "$LINENO" 5; }
3138 # Provide some information about the compiler.
3139 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3142 for ac_option in --version -v -V -qversion; do
3143 { { ac_try="$ac_compiler $ac_option >&5"
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149 $as_echo "$ac_try_echo"; } >&5
3150 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3152 if test -s conftest.err; then
3154 ... rest of stderr output deleted ...
3155 10q' conftest.err >conftest.er1
3156 cat conftest.er1 >&5
3158 rm -f conftest.er1 conftest.err
3159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160 test $ac_status = 0; }
3163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164 /* end confdefs.h. */
3174 ac_clean_files_save=$ac_clean_files
3175 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3176 # Try to create an executable without -o first, disregard a.out.
3177 # It will help us diagnose broken compilers, and finding out an intuition
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3180 $as_echo_n "checking whether the C compiler works... " >&6; }
3181 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3183 # The possible output files:
3184 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3187 for ac_file in $ac_files
3190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3191 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3196 if { { ac_try="$ac_link_default"
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202 $as_echo "$ac_try_echo"; } >&5
3203 (eval "$ac_link_default") 2>&5
3205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206 test $ac_status = 0; }; then :
3207 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3208 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3209 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3210 # so that the user can short-circuit this test for compilers unknown to
3212 for ac_file in $ac_files ''
3214 test -f "$ac_file" || continue
3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3219 # We found the default executable, but exeext='' is most
3223 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3225 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3227 # We set ac_cv_exeext here because the later test for it is not
3228 # safe: cross compilers may not add the suffix if given an `-o'
3229 # argument, so we may need to know it at that point already.
3230 # Even if this section looks crufty: it has the advantage of
3237 test "$ac_cv_exeext" = no && ac_cv_exeext=
3242 if test -z "$ac_file"; then :
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3245 $as_echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250 as_fn_error 77 "C compiler cannot create executables
3251 See \`config.log' for more details" "$LINENO" 5; }
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3254 $as_echo "yes" >&6; }
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3257 $as_echo_n "checking for C compiler default output file name... " >&6; }
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3259 $as_echo "$ac_file" >&6; }
3260 ac_exeext=$ac_cv_exeext
3262 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3263 ac_clean_files=$ac_clean_files_save
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3265 $as_echo_n "checking for suffix of executables... " >&6; }
3266 if { { ac_try="$ac_link"
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273 (eval "$ac_link") 2>&5
3275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276 test $ac_status = 0; }; then :
3277 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3278 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3279 # work properly (i.e., refer to `conftest.exe'), while it won't with
3281 for ac_file in conftest.exe conftest conftest.*; do
3282 test -f "$ac_file" || continue
3284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3285 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3294 See \`config.log' for more details" "$LINENO" 5; }
3296 rm -f conftest conftest$ac_cv_exeext
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3298 $as_echo "$ac_cv_exeext" >&6; }
3300 rm -f conftest.$ac_ext
3301 EXEEXT=$ac_cv_exeext
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
3309 FILE *f = fopen ("conftest.out", "w");
3310 return ferror (f) || fclose (f) != 0;
3316 ac_clean_files="$ac_clean_files conftest.out"
3317 # Check that the compiler produces executables we can run. If not, either
3318 # the compiler is broken, or we cross compile.
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3320 $as_echo_n "checking whether we are cross compiling... " >&6; }
3321 if test "$cross_compiling" != yes; then
3322 { { ac_try="$ac_link"
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329 (eval "$ac_link") 2>&5
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }
3333 if { ac_try='./conftest$ac_cv_exeext'
3334 { { case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339 $as_echo "$ac_try_echo"; } >&5
3340 (eval "$ac_try") 2>&5
3342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3343 test $ac_status = 0; }; }; then
3346 if test "$cross_compiling" = maybe; then
3349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3351 as_fn_error $? "cannot run C compiled programs.
3352 If you meant to cross compile, use \`--host'.
3353 See \`config.log' for more details" "$LINENO" 5; }
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3358 $as_echo "$cross_compiling" >&6; }
3360 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3361 ac_clean_files=$ac_clean_files_save
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3363 $as_echo_n "checking for suffix of object files... " >&6; }
3364 if ${ac_cv_objext+:} false; then :
3365 $as_echo_n "(cached) " >&6
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h. */
3378 rm -f conftest.o conftest.obj
3379 if { { ac_try="$ac_compile"
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385 $as_echo "$ac_try_echo"; } >&5
3386 (eval "$ac_compile") 2>&5
3388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389 test $ac_status = 0; }; then :
3390 for ac_file in conftest.o conftest.obj conftest.*; do
3391 test -f "$ac_file" || continue;
3393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3394 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3399 $as_echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404 as_fn_error $? "cannot compute suffix of object files: cannot compile
3405 See \`config.log' for more details" "$LINENO" 5; }
3407 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3410 $as_echo "$ac_cv_objext" >&6; }
3411 OBJEXT=$ac_cv_objext
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3414 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3415 if ${ac_cv_c_compiler_gnu+:} false; then :
3416 $as_echo_n "(cached) " >&6
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3432 if ac_fn_c_try_compile "$LINENO"; then :
3437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3438 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3442 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3443 if test $ac_compiler_gnu = yes; then
3448 ac_test_CFLAGS=${CFLAGS+set}
3449 ac_save_CFLAGS=$CFLAGS
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3451 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3452 if ${ac_cv_prog_cc_g+:} false; then :
3453 $as_echo_n "(cached) " >&6
3455 ac_save_c_werror_flag=$ac_c_werror_flag
3456 ac_c_werror_flag=yes
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3470 if ac_fn_c_try_compile "$LINENO"; then :
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3485 if ac_fn_c_try_compile "$LINENO"; then :
3488 ac_c_werror_flag=$ac_save_c_werror_flag
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3501 if ac_fn_c_try_compile "$LINENO"; then :
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 ac_c_werror_flag=$ac_save_c_werror_flag
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3512 $as_echo "$ac_cv_prog_cc_g" >&6; }
3513 if test "$ac_test_CFLAGS" = set; then
3514 CFLAGS=$ac_save_CFLAGS
3515 elif test $ac_cv_prog_cc_g = yes; then
3516 if test "$GCC" = yes; then
3522 if test "$GCC" = yes; then
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3529 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3530 if ${ac_cv_prog_cc_c89+:} false; then :
3531 $as_echo_n "(cached) " >&6
3533 ac_cv_prog_cc_c89=no
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3539 #include <sys/types.h>
3540 #include <sys/stat.h>
3541 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3542 struct buf { int x; };
3543 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3544 static char *e (p, i)
3550 static char *f (char * (*g) (char **, int), char **p, ...)
3555 s = g (p, va_arg (v,int));
3560 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3561 function prototypes and stuff, but not '\xHH' hex character constants.
3562 These don't provoke an error unfortunately, instead are silently treated
3563 as 'x'. The following induces an error, until -std is added to get
3564 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3565 array size at least. It's necessary to write '\x00'==0 to get something
3566 that's true only with -std. */
3567 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3569 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3570 inside strings and character constants. */
3572 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3574 int test (int i, double x);
3575 struct s1 {int (*f) (int a);};
3576 struct s2 {int (*f) (double a);};
3577 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3583 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3588 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3589 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3591 CC="$ac_save_CC $ac_arg"
3592 if ac_fn_c_try_compile "$LINENO"; then :
3593 ac_cv_prog_cc_c89=$ac_arg
3595 rm -f core conftest.err conftest.$ac_objext
3596 test "x$ac_cv_prog_cc_c89" != "xno" && break
3598 rm -f conftest.$ac_ext
3603 case "x$ac_cv_prog_cc_c89" in
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3606 $as_echo "none needed" >&6; } ;;
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3609 $as_echo "unsupported" >&6; } ;;
3611 CC="$CC $ac_cv_prog_cc_c89"
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3613 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3615 if test "x$ac_cv_prog_cc_c89" != xno; then :
3620 ac_cpp='$CPP $CPPFLAGS'
3621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625 depcc="$CC" am_compiler_list=
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3628 $as_echo_n "checking dependency style of $depcc... " >&6; }
3629 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3630 $as_echo_n "(cached) " >&6
3632 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3633 # We make a subdir and do the tests there. Otherwise we can end up
3634 # making bogus files that we don't know about and never remove. For
3635 # instance it was reported that on HP-UX the gcc test will end up
3636 # making a dummy file named `D' -- because `-MD' means `put the output
3640 # Copy depcomp to subdir because otherwise we won't find it if we're
3641 # using a relative directory.
3642 cp "$am_depcomp" conftest.dir
3644 # We will build objects and dependencies in a subdirectory because
3645 # it helps to detect inapplicable dependency modes. For instance
3646 # both Tru64's cc and ICC support -MD to output dependencies as a
3647 # side effect of compilation, but ICC will put the dependencies in
3648 # the current directory while Tru64 will put them in the object
3652 am_cv_CC_dependencies_compiler_type=none
3653 if test "$am_compiler_list" = ""; then
3654 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3657 case " $depcc " in #(
3658 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3661 for depmode in $am_compiler_list; do
3662 # Setup a source with many dependencies, because some compilers
3663 # like to wrap large dependency lists on column 80 (with \), and
3664 # we should not choose a depcomp mode which is confused by this.
3666 # We need to recreate these files for each test, as the compiler may
3667 # overwrite some of them when testing with obscure command lines.
3668 # This happens at least with the AIX C compiler.
3670 for i in 1 2 3 4 5 6; do
3671 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3672 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3673 # Solaris 8's {/usr,}/bin/sh.
3674 touch sub/conftst$i.h
3676 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3678 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3679 # mode. It turns out that the SunPro C++ compiler does not properly
3680 # handle `-M -o', and we need to detect this. Also, some Intel
3681 # versions had trouble with output in subdirs
3682 am__obj=sub/conftest.${OBJEXT-o}
3683 am__minus_obj="-o $am__obj"
3686 # This depmode causes a compiler race in universal mode.
3687 test "$am__universal" = false || continue
3690 # after this tag, mechanisms are not by side-effect, so they'll
3691 # only be used when explicitly requested
3692 if test "x$enable_dependency_tracking" = xyes; then
3698 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3699 # This compiler won't grok `-c -o', but also, the minuso test has
3700 # not run yet. These depmodes are late enough in the game, and
3701 # so weak that their functioning should not be impacted.
3702 am__obj=conftest.${OBJEXT-o}
3707 if depmode=$depmode \
3708 source=sub/conftest.c object=$am__obj \
3709 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3710 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3711 >/dev/null 2>conftest.err &&
3712 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3713 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3714 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3715 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3716 # icc doesn't choke on unknown options, it will just issue warnings
3717 # or remarks (even with -Werror). So we grep stderr for any message
3718 # that says an option was ignored or not supported.
3719 # When given -MP, icc 7.0 and 7.1 complain thusly:
3720 # icc: Command line warning: ignoring option '-M'; no argument required
3721 # The diagnosis changed in icc 8.0:
3722 # icc: Command line remark: option '-MP' not supported
3723 if (grep 'ignoring option' conftest.err ||
3724 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3725 am_cv_CC_dependencies_compiler_type=$depmode
3734 am_cv_CC_dependencies_compiler_type=none
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3739 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3740 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3743 test "x$enable_dependency_tracking" != xno \
3744 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3746 am__fastdepCC_FALSE='#'
3748 am__fastdepCC_TRUE='#'
3749 am__fastdepCC_FALSE=
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3754 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3755 if ${ac_cv_path_SED+:} false; then :
3756 $as_echo_n "(cached) " >&6
3758 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3759 for ac_i in 1 2 3 4 5 6 7; do
3760 ac_script="$ac_script$as_nl$ac_script"
3762 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3763 { ac_script=; unset ac_script;}
3764 if test -z "$SED"; then
3765 ac_path_SED_found=false
3766 # Loop through the user's path and test for each of PROGNAME-LIST
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 test -z "$as_dir" && as_dir=.
3772 for ac_prog in sed gsed; do
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3775 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3776 # Check for GNU ac_path_SED and select it if it is found.
3777 # Check for GNU $ac_path_SED
3778 case `"$ac_path_SED" --version 2>&1` in
3780 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3783 $as_echo_n 0123456789 >"conftest.in"
3786 cat "conftest.in" "conftest.in" >"conftest.tmp"
3787 mv "conftest.tmp" "conftest.in"
3788 cp "conftest.in" "conftest.nl"
3789 $as_echo '' >> "conftest.nl"
3790 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3791 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3792 as_fn_arith $ac_count + 1 && ac_count=$as_val
3793 if test $ac_count -gt ${ac_path_SED_max-0}; then
3794 # Best one so far, save it but keep looking for a better one
3795 ac_cv_path_SED="$ac_path_SED"
3796 ac_path_SED_max=$ac_count
3798 # 10*(2^10) chars as input seems more than enough
3799 test $ac_count -gt 10 && break
3801 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3804 $ac_path_SED_found && break 3
3809 if test -z "$ac_cv_path_SED"; then
3810 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3818 $as_echo "$ac_cv_path_SED" >&6; }
3819 SED="$ac_cv_path_SED"
3822 test -z "$SED" && SED=sed
3823 Xsed="$SED -e 1s/^X//"
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3836 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3837 if ${ac_cv_path_GREP+:} false; then :
3838 $as_echo_n "(cached) " >&6
3840 if test -z "$GREP"; then
3841 ac_path_GREP_found=false
3842 # Loop through the user's path and test for each of PROGNAME-LIST
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3847 test -z "$as_dir" && as_dir=.
3848 for ac_prog in grep ggrep; do
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3851 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3852 # Check for GNU ac_path_GREP and select it if it is found.
3853 # Check for GNU $ac_path_GREP
3854 case `"$ac_path_GREP" --version 2>&1` in
3856 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3859 $as_echo_n 0123456789 >"conftest.in"
3862 cat "conftest.in" "conftest.in" >"conftest.tmp"
3863 mv "conftest.tmp" "conftest.in"
3864 cp "conftest.in" "conftest.nl"
3865 $as_echo 'GREP' >> "conftest.nl"
3866 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3868 as_fn_arith $ac_count + 1 && ac_count=$as_val
3869 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3870 # Best one so far, save it but keep looking for a better one
3871 ac_cv_path_GREP="$ac_path_GREP"
3872 ac_path_GREP_max=$ac_count
3874 # 10*(2^10) chars as input seems more than enough
3875 test $ac_count -gt 10 && break
3877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3880 $ac_path_GREP_found && break 3
3885 if test -z "$ac_cv_path_GREP"; then
3886 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3889 ac_cv_path_GREP=$GREP
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3894 $as_echo "$ac_cv_path_GREP" >&6; }
3895 GREP="$ac_cv_path_GREP"
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3899 $as_echo_n "checking for egrep... " >&6; }
3900 if ${ac_cv_path_EGREP+:} false; then :
3901 $as_echo_n "(cached) " >&6
3903 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3904 then ac_cv_path_EGREP="$GREP -E"
3906 if test -z "$EGREP"; then
3907 ac_path_EGREP_found=false
3908 # Loop through the user's path and test for each of PROGNAME-LIST
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3913 test -z "$as_dir" && as_dir=.
3914 for ac_prog in egrep; do
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3917 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3918 # Check for GNU ac_path_EGREP and select it if it is found.
3919 # Check for GNU $ac_path_EGREP
3920 case `"$ac_path_EGREP" --version 2>&1` in
3922 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3925 $as_echo_n 0123456789 >"conftest.in"
3928 cat "conftest.in" "conftest.in" >"conftest.tmp"
3929 mv "conftest.tmp" "conftest.in"
3930 cp "conftest.in" "conftest.nl"
3931 $as_echo 'EGREP' >> "conftest.nl"
3932 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3933 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3934 as_fn_arith $ac_count + 1 && ac_count=$as_val
3935 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3936 # Best one so far, save it but keep looking for a better one
3937 ac_cv_path_EGREP="$ac_path_EGREP"
3938 ac_path_EGREP_max=$ac_count
3940 # 10*(2^10) chars as input seems more than enough
3941 test $ac_count -gt 10 && break
3943 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3946 $ac_path_EGREP_found && break 3
3951 if test -z "$ac_cv_path_EGREP"; then
3952 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3955 ac_cv_path_EGREP=$EGREP
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3961 $as_echo "$ac_cv_path_EGREP" >&6; }
3962 EGREP="$ac_cv_path_EGREP"
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3966 $as_echo_n "checking for fgrep... " >&6; }
3967 if ${ac_cv_path_FGREP+:} false; then :
3968 $as_echo_n "(cached) " >&6
3970 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3971 then ac_cv_path_FGREP="$GREP -F"
3973 if test -z "$FGREP"; then
3974 ac_path_FGREP_found=false
3975 # Loop through the user's path and test for each of PROGNAME-LIST
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3980 test -z "$as_dir" && as_dir=.
3981 for ac_prog in fgrep; do
3982 for ac_exec_ext in '' $ac_executable_extensions; do
3983 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3984 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3985 # Check for GNU ac_path_FGREP and select it if it is found.
3986 # Check for GNU $ac_path_FGREP
3987 case `"$ac_path_FGREP" --version 2>&1` in
3989 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3992 $as_echo_n 0123456789 >"conftest.in"
3995 cat "conftest.in" "conftest.in" >"conftest.tmp"
3996 mv "conftest.tmp" "conftest.in"
3997 cp "conftest.in" "conftest.nl"
3998 $as_echo 'FGREP' >> "conftest.nl"
3999 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4000 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4001 as_fn_arith $ac_count + 1 && ac_count=$as_val
4002 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4003 # Best one so far, save it but keep looking for a better one
4004 ac_cv_path_FGREP="$ac_path_FGREP"
4005 ac_path_FGREP_max=$ac_count
4007 # 10*(2^10) chars as input seems more than enough
4008 test $ac_count -gt 10 && break
4010 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4013 $ac_path_FGREP_found && break 3
4018 if test -z "$ac_cv_path_FGREP"; then
4019 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4022 ac_cv_path_FGREP=$FGREP
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4028 $as_echo "$ac_cv_path_FGREP" >&6; }
4029 FGREP="$ac_cv_path_FGREP"
4032 test -z "$GREP" && GREP=grep
4052 # Check whether --with-gnu-ld was given.
4053 if test "${with_gnu_ld+set}" = set; then :
4054 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4060 if test "$GCC" = yes; then
4061 # Check if gcc -print-prog-name=ld gives a path.
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4063 $as_echo_n "checking for ld used by $CC... " >&6; }
4066 # gcc leaves a trailing carriage return which upsets mingw
4067 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4069 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4072 # Accept absolute paths.
4074 re_direlt='/[^/][^/]*/\.\./'
4075 # Canonicalize the pathname of ld
4076 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4077 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4078 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4080 test -z "$LD" && LD="$ac_prog"
4083 # If it fails, then pretend we aren't using GCC.
4087 # If it is relative, then search for the first ld in PATH.
4091 elif test "$with_gnu_ld" = yes; then
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4093 $as_echo_n "checking for GNU ld... " >&6; }
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4096 $as_echo_n "checking for non-GNU ld... " >&6; }
4098 if ${lt_cv_path_LD+:} false; then :
4099 $as_echo_n "(cached) " >&6
4101 if test -z "$LD"; then
4102 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4103 for ac_dir in $PATH; do
4105 test -z "$ac_dir" && ac_dir=.
4106 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4107 lt_cv_path_LD="$ac_dir/$ac_prog"
4108 # Check to see if the program is GNU ld. I'd rather use --version,
4109 # but apparently some variants of GNU ld only accept -v.
4110 # Break only if it was the GNU/non-GNU ld that we prefer.
4111 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4112 *GNU* | *'with BFD'*)
4113 test "$with_gnu_ld" != no && break
4116 test "$with_gnu_ld" != yes && break
4123 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4128 if test -n "$LD"; then
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4130 $as_echo "$LD" >&6; }
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133 $as_echo "no" >&6; }
4135 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4137 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4138 if ${lt_cv_prog_gnu_ld+:} false; then :
4139 $as_echo_n "(cached) " >&6
4141 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4142 case `$LD -v 2>&1 </dev/null` in
4143 *GNU* | *'with BFD'*)
4144 lt_cv_prog_gnu_ld=yes
4147 lt_cv_prog_gnu_ld=no
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4152 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4153 with_gnu_ld=$lt_cv_prog_gnu_ld
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4164 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4165 if ${lt_cv_path_NM+:} false; then :
4166 $as_echo_n "(cached) " >&6
4168 if test -n "$NM"; then
4169 # Let the user override the test.
4172 lt_nm_to_check="${ac_tool_prefix}nm"
4173 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4174 lt_nm_to_check="$lt_nm_to_check nm"
4176 for lt_tmp_nm in $lt_nm_to_check; do
4177 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4178 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4180 test -z "$ac_dir" && ac_dir=.
4181 tmp_nm="$ac_dir/$lt_tmp_nm"
4182 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4183 # Check to see if the nm accepts a BSD-compat flag.
4184 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4185 # nm: unknown option "B" ignored
4186 # Tru64's nm complains that /dev/null is an invalid object file
4187 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4188 */dev/null* | *'Invalid file or object type'*)
4189 lt_cv_path_NM="$tmp_nm -B"
4193 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4195 lt_cv_path_NM="$tmp_nm -p"
4199 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4200 continue # so that we can try to find one that supports BSD flags
4209 : ${lt_cv_path_NM=no}
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4213 $as_echo "$lt_cv_path_NM" >&6; }
4214 if test "$lt_cv_path_NM" != "no"; then
4217 # Didn't find any BSD compatible name lister, look for dumpbin.
4218 if test -n "$DUMPBIN"; then :
4219 # Let the user override the test.
4221 if test -n "$ac_tool_prefix"; then
4222 for ac_prog in dumpbin "link -dump"
4224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if ${ac_cv_prog_DUMPBIN+:} false; then :
4229 $as_echo_n "(cached) " >&6
4231 if test -n "$DUMPBIN"; then
4232 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4241 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 DUMPBIN=$ac_cv_prog_DUMPBIN
4252 if test -n "$DUMPBIN"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4254 $as_echo "$DUMPBIN" >&6; }
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4261 test -n "$DUMPBIN" && break
4264 if test -z "$DUMPBIN"; then
4265 ac_ct_DUMPBIN=$DUMPBIN
4266 for ac_prog in dumpbin "link -dump"
4268 # Extract the first word of "$ac_prog", so it can be a program name with args.
4269 set dummy $ac_prog; ac_word=$2
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271 $as_echo_n "checking for $ac_word... " >&6; }
4272 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4273 $as_echo_n "(cached) " >&6
4275 if test -n "$ac_ct_DUMPBIN"; then
4276 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4285 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4296 if test -n "$ac_ct_DUMPBIN"; then
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4298 $as_echo "$ac_ct_DUMPBIN" >&6; }
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4305 test -n "$ac_ct_DUMPBIN" && break
4308 if test "x$ac_ct_DUMPBIN" = x; then
4311 case $cross_compiling:$ac_tool_warned in
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4315 ac_tool_warned=yes ;;
4317 DUMPBIN=$ac_ct_DUMPBIN
4321 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4323 DUMPBIN="$DUMPBIN -symbols"
4331 if test "$DUMPBIN" != ":"; then
4335 test -z "$NM" && NM=nm
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4343 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4344 if ${lt_cv_nm_interface+:} false; then :
4345 $as_echo_n "(cached) " >&6
4347 lt_cv_nm_interface="BSD nm"
4348 echo "int some_variable = 0;" > conftest.$ac_ext
4349 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4350 (eval "$ac_compile" 2>conftest.err)
4351 cat conftest.err >&5
4352 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4353 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4354 cat conftest.err >&5
4355 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4356 cat conftest.out >&5
4357 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4358 lt_cv_nm_interface="MS dumpbin"
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4363 $as_echo "$lt_cv_nm_interface" >&6; }
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4366 $as_echo_n "checking whether ln -s works... " >&6; }
4368 if test "$LN_S" = "ln -s"; then
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4370 $as_echo "yes" >&6; }
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4373 $as_echo "no, using $LN_S" >&6; }
4376 # find the maximum length of command line arguments
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4378 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4379 if ${lt_cv_sys_max_cmd_len+:} false; then :
4380 $as_echo_n "(cached) " >&6
4387 # On DJGPP, this test can blow up pretty badly due to problems in libc
4388 # (any single argument exceeding 2000 bytes causes a buffer overrun
4389 # during glob expansion). Even if it were fixed, the result of this
4390 # check would be larger than it should be.
4391 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4395 # Under GNU Hurd, this test is not required because there is
4396 # no limit to the length of command line arguments.
4397 # Libtool will interpret -1 as no limit whatsoever
4398 lt_cv_sys_max_cmd_len=-1;
4401 cygwin* | mingw* | cegcc*)
4402 # On Win9x/ME, this test blows up -- it succeeds, but takes
4403 # about 5 minutes as the teststring grows exponentially.
4404 # Worse, since 9x/ME are not pre-emptively multitasking,
4405 # you end up with a "frozen" computer, even though with patience
4406 # the test eventually succeeds (with a max line length of 256k).
4407 # Instead, let's just punt: use the minimum linelength reported by
4408 # all of the supported platforms: 8192 (on NT/2K/XP).
4409 lt_cv_sys_max_cmd_len=8192;
4413 # On MiNT this can take a long time and run out of memory.
4414 lt_cv_sys_max_cmd_len=8192;
4418 # On AmigaOS with pdksh, this test takes hours, literally.
4419 # So we just punt and use a minimum line length of 8192.
4420 lt_cv_sys_max_cmd_len=8192;
4423 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4424 # This has been around since 386BSD, at least. Likely further.
4425 if test -x /sbin/sysctl; then
4426 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4427 elif test -x /usr/sbin/sysctl; then
4428 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4430 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4432 # And add a safety zone
4433 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4434 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4438 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4439 lt_cv_sys_max_cmd_len=196608
4443 # The test takes a long time on OS/2.
4444 lt_cv_sys_max_cmd_len=8192
4448 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4449 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4450 # nice to cause kernel panics so lets avoid the loop below.
4451 # First set a reasonable default.
4452 lt_cv_sys_max_cmd_len=16384
4454 if test -x /sbin/sysconfig; then
4455 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4456 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4461 lt_cv_sys_max_cmd_len=102400
4463 sysv5* | sco5v6* | sysv4.2uw2*)
4464 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4465 if test -n "$kargmax"; then
4466 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4468 lt_cv_sys_max_cmd_len=32768
4472 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4473 if test -n "$lt_cv_sys_max_cmd_len"; then
4474 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4475 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4477 # Make teststring a little bigger before we do anything with it.
4478 # a 1K string should be a reasonable start.
4479 for i in 1 2 3 4 5 6 7 8 ; do
4480 teststring=$teststring$teststring
4482 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4483 # If test is not a shell built-in, we'll probably end up computing a
4484 # maximum length that is only half of the actual maximum length, but
4486 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4487 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4488 test $i != 17 # 1/2 MB should be enough
4491 teststring=$teststring$teststring
4493 # Only check the string length outside the loop.
4494 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4496 # Add a significant safety factor because C++ compilers can tack on
4497 # massive amounts of additional arguments before passing them to the
4498 # linker. It appears as though 1/2 is a usable value.
4499 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4506 if test -n $lt_cv_sys_max_cmd_len ; then
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4508 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4511 $as_echo "none" >&6; }
4513 max_cmd_len=$lt_cv_sys_max_cmd_len
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4525 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4526 # Try some XSI features
4529 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4531 && eval 'test $(( 1 + 1 )) -eq 2 \
4532 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4535 $as_echo "$xsi_shell" >&6; }
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4539 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4541 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4543 && lt_shell_append=yes
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4545 $as_echo "$lt_shell_append" >&6; }
4548 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4558 # test EBCDIC or ASCII
4559 case `echo X|tr X '\101'` in
4560 A) # ASCII based system
4561 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4562 lt_SP2NL='tr \040 \012'
4563 lt_NL2SP='tr \015\012 \040\040'
4565 *) # EBCDIC based system
4566 lt_SP2NL='tr \100 \n'
4567 lt_NL2SP='tr \r\n \100\100'
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4580 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4581 if ${lt_cv_to_host_file_cmd+:} false; then :
4582 $as_echo_n "(cached) " >&6
4587 *-*-mingw* ) # actually msys
4588 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4591 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4593 * ) # otherwise, assume *nix
4594 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4600 *-*-mingw* ) # actually msys
4601 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4604 lt_cv_to_host_file_cmd=func_convert_file_noop
4606 * ) # otherwise, assume *nix
4607 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4611 * ) # unhandled hosts (and "normal" native builds)
4612 lt_cv_to_host_file_cmd=func_convert_file_noop
4618 to_host_file_cmd=$lt_cv_to_host_file_cmd
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4620 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4627 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4628 if ${lt_cv_to_tool_file_cmd+:} false; then :
4629 $as_echo_n "(cached) " >&6
4631 #assume ordinary cross tools, or native build.
4632 lt_cv_to_tool_file_cmd=func_convert_file_noop
4636 *-*-mingw* ) # actually msys
4637 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4645 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4647 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4654 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4655 if ${lt_cv_ld_reload_flag+:} false; then :
4656 $as_echo_n "(cached) " >&6
4658 lt_cv_ld_reload_flag='-r'
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4661 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4662 reload_flag=$lt_cv_ld_reload_flag
4663 case $reload_flag in
4665 *) reload_flag=" $reload_flag" ;;
4667 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4669 cygwin* | mingw* | pw32* | cegcc*)
4670 if test "$GCC" != yes; then
4675 if test "$GCC" = yes; then
4676 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4678 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4691 if test -n "$ac_tool_prefix"; then
4692 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4693 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if ${ac_cv_prog_OBJDUMP+:} false; then :
4697 $as_echo_n "(cached) " >&6
4699 if test -n "$OBJDUMP"; then
4700 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 OBJDUMP=$ac_cv_prog_OBJDUMP
4720 if test -n "$OBJDUMP"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4722 $as_echo "$OBJDUMP" >&6; }
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4730 if test -z "$ac_cv_prog_OBJDUMP"; then
4731 ac_ct_OBJDUMP=$OBJDUMP
4732 # Extract the first word of "objdump", so it can be a program name with args.
4733 set dummy objdump; ac_word=$2
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4735 $as_echo_n "checking for $ac_word... " >&6; }
4736 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4737 $as_echo_n "(cached) " >&6
4739 if test -n "$ac_ct_OBJDUMP"; then
4740 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4749 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4759 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4760 if test -n "$ac_ct_OBJDUMP"; then
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4762 $as_echo "$ac_ct_OBJDUMP" >&6; }
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765 $as_echo "no" >&6; }
4768 if test "x$ac_ct_OBJDUMP" = x; then
4771 case $cross_compiling:$ac_tool_warned in
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4775 ac_tool_warned=yes ;;
4777 OBJDUMP=$ac_ct_OBJDUMP
4780 OBJDUMP="$ac_cv_prog_OBJDUMP"
4783 test -z "$OBJDUMP" && OBJDUMP=objdump
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4794 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4795 if ${lt_cv_deplibs_check_method+:} false; then :
4796 $as_echo_n "(cached) " >&6
4798 lt_cv_file_magic_cmd='$MAGIC_CMD'
4799 lt_cv_file_magic_test_file=
4800 lt_cv_deplibs_check_method='unknown'
4801 # Need to set the preceding variable on all platforms that support
4802 # interlibrary dependencies.
4803 # 'none' -- dependencies not supported.
4804 # `unknown' -- same as none, but documents that we really don't know.
4805 # 'pass_all' -- all dependencies passed with no checks.
4806 # 'test_compile' -- check by making test program.
4807 # 'file_magic [[regex]]' -- check by looking for files in library path
4808 # which responds to the $file_magic_cmd with a given extended regex.
4809 # If you have `file' or equivalent on your system and you're not sure
4810 # whether `pass_all' will *always* work, you probably want this one.
4814 lt_cv_deplibs_check_method=pass_all
4818 lt_cv_deplibs_check_method=pass_all
4822 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4823 lt_cv_file_magic_cmd='/usr/bin/file -L'
4824 lt_cv_file_magic_test_file=/shlib/libc.so
4828 # func_win32_libid is a shell function defined in ltmain.sh
4829 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4830 lt_cv_file_magic_cmd='func_win32_libid'
4834 # Base MSYS/MinGW do not provide the 'file' command needed by
4835 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4836 # unless we find 'file', for example because we are cross-compiling.
4837 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4838 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4839 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4840 lt_cv_file_magic_cmd='func_win32_libid'
4842 # Keep this pattern in sync with the one in func_win32_libid.
4843 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4844 lt_cv_file_magic_cmd='$OBJDUMP -f'
4849 # use the weaker test based on 'objdump'. See mingw*.
4850 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4851 lt_cv_file_magic_cmd='$OBJDUMP -f'
4854 darwin* | rhapsody*)
4855 lt_cv_deplibs_check_method=pass_all
4858 freebsd* | dragonfly*)
4859 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4862 # Not sure whether the presence of OpenBSD here was a mistake.
4863 # Let's accept both of them until this is cleared up.
4864 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4865 lt_cv_file_magic_cmd=/usr/bin/file
4866 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4870 lt_cv_deplibs_check_method=pass_all
4875 lt_cv_deplibs_check_method=pass_all
4879 lt_cv_deplibs_check_method=pass_all
4882 hpux10.20* | hpux11*)
4883 lt_cv_file_magic_cmd=/usr/bin/file
4886 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4887 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4890 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]'
4891 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4894 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4895 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4901 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4902 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4905 irix5* | irix6* | nonstopux*)
4907 *-32|*"-32 ") libmagic=32-bit;;
4908 *-n32|*"-n32 ") libmagic=N32;;
4909 *-64|*"-64 ") libmagic=64-bit;;
4910 *) libmagic=never-match;;
4912 lt_cv_deplibs_check_method=pass_all
4915 # This must be glibc/ELF.
4916 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4917 lt_cv_deplibs_check_method=pass_all
4920 netbsd* | netbsdelf*-gnu)
4921 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4922 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4924 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4929 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4930 lt_cv_file_magic_cmd=/usr/bin/file
4931 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4935 lt_cv_deplibs_check_method=pass_all
4939 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4940 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4942 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4946 osf3* | osf4* | osf5*)
4947 lt_cv_deplibs_check_method=pass_all
4951 lt_cv_deplibs_check_method=pass_all
4955 lt_cv_deplibs_check_method=pass_all
4958 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4959 lt_cv_deplibs_check_method=pass_all
4963 case $host_vendor in
4965 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]'
4966 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4969 lt_cv_deplibs_check_method=pass_all
4972 lt_cv_file_magic_cmd='/bin/file'
4973 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4976 lt_cv_file_magic_cmd='/bin/file'
4977 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4978 lt_cv_file_magic_test_file=/lib/libc.so
4981 lt_cv_deplibs_check_method=pass_all
4984 lt_cv_deplibs_check_method=pass_all
4990 lt_cv_deplibs_check_method=pass_all
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4996 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5000 if test "$build" = "$host"; then
5003 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5006 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5012 file_magic_cmd=$lt_cv_file_magic_cmd
5013 deplibs_check_method=$lt_cv_deplibs_check_method
5014 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5037 if test -n "$ac_tool_prefix"; then
5038 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5039 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041 $as_echo_n "checking for $ac_word... " >&6; }
5042 if ${ac_cv_prog_DLLTOOL+:} false; then :
5043 $as_echo_n "(cached) " >&6
5045 if test -n "$DLLTOOL"; then
5046 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 test -z "$as_dir" && as_dir=.
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5055 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 DLLTOOL=$ac_cv_prog_DLLTOOL
5066 if test -n "$DLLTOOL"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5068 $as_echo "$DLLTOOL" >&6; }
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5076 if test -z "$ac_cv_prog_DLLTOOL"; then
5077 ac_ct_DLLTOOL=$DLLTOOL
5078 # Extract the first word of "dlltool", so it can be a program name with args.
5079 set dummy dlltool; ac_word=$2
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081 $as_echo_n "checking for $ac_word... " >&6; }
5082 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5083 $as_echo_n "(cached) " >&6
5085 if test -n "$ac_ct_DLLTOOL"; then
5086 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5106 if test -n "$ac_ct_DLLTOOL"; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5108 $as_echo "$ac_ct_DLLTOOL" >&6; }
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 $as_echo "no" >&6; }
5114 if test "x$ac_ct_DLLTOOL" = x; then
5117 case $cross_compiling:$ac_tool_warned in
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5121 ac_tool_warned=yes ;;
5123 DLLTOOL=$ac_ct_DLLTOOL
5126 DLLTOOL="$ac_cv_prog_DLLTOOL"
5129 test -z "$DLLTOOL" && DLLTOOL=dlltool
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5141 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5142 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5143 $as_echo_n "(cached) " >&6
5145 lt_cv_sharedlib_from_linklib_cmd='unknown'
5148 cygwin* | mingw* | pw32* | cegcc*)
5149 # two different shell functions defined in ltmain.sh
5150 # decide which to use based on capabilities of $DLLTOOL
5151 case `$DLLTOOL --help 2>&1` in
5152 *--identify-strict*)
5153 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5156 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5161 # fallback: assume linklib IS sharedlib
5162 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5168 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5169 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5170 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5179 if test -n "$ac_tool_prefix"; then
5182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185 $as_echo_n "checking for $ac_word... " >&6; }
5186 if ${ac_cv_prog_AR+:} false; then :
5187 $as_echo_n "(cached) " >&6
5189 if test -n "$AR"; then
5190 ac_cv_prog_AR="$AR" # Let the user override the test.
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 if test -n "$AR"; then
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5212 $as_echo "$AR" >&6; }
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5219 test -n "$AR" && break
5222 if test -z "$AR"; then
5226 # Extract the first word of "$ac_prog", so it can be a program name with args.
5227 set dummy $ac_prog; ac_word=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5231 $as_echo_n "(cached) " >&6
5233 if test -n "$ac_ct_AR"; then
5234 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243 ac_cv_prog_ac_ct_AR="$ac_prog"
5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5254 if test -n "$ac_ct_AR"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5256 $as_echo "$ac_ct_AR" >&6; }
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5263 test -n "$ac_ct_AR" && break
5266 if test "x$ac_ct_AR" = x; then
5269 case $cross_compiling:$ac_tool_warned in
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5273 ac_tool_warned=yes ;;
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5293 $as_echo_n "checking for archiver @FILE support... " >&6; }
5294 if ${lt_cv_ar_at_file+:} false; then :
5295 $as_echo_n "(cached) " >&6
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5309 if ac_fn_c_try_compile "$LINENO"; then :
5310 echo conftest.$ac_objext > conftest.lst
5311 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5313 (eval $lt_ar_try) 2>&5
5315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5316 test $ac_status = 0; }
5317 if test "$ac_status" -eq 0; then
5318 # Ensure the archiver fails upon bogus file names.
5319 rm -f conftest.$ac_objext libconftest.a
5320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5321 (eval $lt_ar_try) 2>&5
5323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5324 test $ac_status = 0; }
5325 if test "$ac_status" -ne 0; then
5329 rm -f conftest.* libconftest.a
5332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5336 $as_echo "$lt_cv_ar_at_file" >&6; }
5338 if test "x$lt_cv_ar_at_file" = xno; then
5341 archiver_list_spec=$lt_cv_ar_at_file
5350 if test -n "$ac_tool_prefix"; then
5351 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5352 set dummy ${ac_tool_prefix}strip; ac_word=$2
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354 $as_echo_n "checking for $ac_word... " >&6; }
5355 if ${ac_cv_prog_STRIP+:} false; then :
5356 $as_echo_n "(cached) " >&6
5358 if test -n "$STRIP"; then
5359 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 STRIP=$ac_cv_prog_STRIP
5379 if test -n "$STRIP"; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5381 $as_echo "$STRIP" >&6; }
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5389 if test -z "$ac_cv_prog_STRIP"; then
5391 # Extract the first word of "strip", so it can be a program name with args.
5392 set dummy strip; ac_word=$2
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394 $as_echo_n "checking for $ac_word... " >&6; }
5395 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5396 $as_echo_n "(cached) " >&6
5398 if test -n "$ac_ct_STRIP"; then
5399 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 test -z "$as_dir" && as_dir=.
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5408 ac_cv_prog_ac_ct_STRIP="strip"
5409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5419 if test -n "$ac_ct_STRIP"; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5421 $as_echo "$ac_ct_STRIP" >&6; }
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 $as_echo "no" >&6; }
5427 if test "x$ac_ct_STRIP" = x; then
5430 case $cross_compiling:$ac_tool_warned in
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5434 ac_tool_warned=yes ;;
5439 STRIP="$ac_cv_prog_STRIP"
5442 test -z "$STRIP" && STRIP=:
5449 if test -n "$ac_tool_prefix"; then
5450 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5451 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_prog_RANLIB+:} false; then :
5455 $as_echo_n "(cached) " >&6
5457 if test -n "$RANLIB"; then
5458 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5477 RANLIB=$ac_cv_prog_RANLIB
5478 if test -n "$RANLIB"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5480 $as_echo "$RANLIB" >&6; }
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5488 if test -z "$ac_cv_prog_RANLIB"; then
5489 ac_ct_RANLIB=$RANLIB
5490 # Extract the first word of "ranlib", so it can be a program name with args.
5491 set dummy ranlib; ac_word=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5495 $as_echo_n "(cached) " >&6
5497 if test -n "$ac_ct_RANLIB"; then
5498 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5507 ac_cv_prog_ac_ct_RANLIB="ranlib"
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5518 if test -n "$ac_ct_RANLIB"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5520 $as_echo "$ac_ct_RANLIB" >&6; }
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5526 if test "x$ac_ct_RANLIB" = x; then
5529 case $cross_compiling:$ac_tool_warned in
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5533 ac_tool_warned=yes ;;
5535 RANLIB=$ac_ct_RANLIB
5538 RANLIB="$ac_cv_prog_RANLIB"
5541 test -z "$RANLIB" && RANLIB=:
5548 # Determine commands to create old-style static archives.
5549 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5550 old_postinstall_cmds='chmod 644 $oldlib'
5551 old_postuninstall_cmds=
5553 if test -n "$RANLIB"; then
5556 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5559 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5562 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5567 lock_old_archive_extraction=yes ;;
5569 lock_old_archive_extraction=no ;;
5610 # If no C compiler was specified, use CC.
5613 # If no C compiler flags were specified, use CFLAGS.
5614 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5616 # Allow CC to be a program name with arguments.
5620 # Check for command to grab the raw symbol name followed by C symbol from nm.
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5622 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5623 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5624 $as_echo_n "(cached) " >&6
5627 # These are sane defaults that work on at least a few old systems.
5628 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5630 # Character class describing NM global symbol codes.
5631 symcode='[BCDEGRST]'
5633 # Regexp to match symbols that can be accessed directly from C.
5634 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5636 # Define system-specific variables.
5641 cygwin* | mingw* | pw32* | cegcc*)
5642 symcode='[ABCDGISTW]'
5645 if test "$host_cpu" = ia64; then
5646 symcode='[ABCDEGRST]'
5650 symcode='[BCDEGRST]'
5653 symcode='[BCDEGQRST]'
5664 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5672 # If we're using GNU nm, then use its standard symbol codes.
5673 case `$NM -V 2>&1` in
5674 *GNU* | *'with BFD'*)
5675 symcode='[ABCDGIRSTW]' ;;
5678 # Transform an extracted symbol line into a proper C declaration.
5679 # Some systems (esp. on ia64) link data and code symbols differently,
5680 # so use this general approach.
5681 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5683 # Transform an extracted symbol line into symbol name and symbol address
5684 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5685 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5687 # Handle CRLF in mingw tool chain
5691 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5695 # Try without a prefix underscore, then with it.
5696 for ac_symprfx in "" "_"; do
5698 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5699 symxfrm="\\1 $ac_symprfx\\2 \\2"
5701 # Write the raw and C identifiers.
5702 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5703 # Fake it for dumpbin and say T for any non-static function
5704 # and D for any global variable.
5705 # Also find C++ and __fastcall symbols from MSVC++,
5706 # which start with @ or ?.
5707 lt_cv_sys_global_symbol_pipe="$AWK '"\
5708 " {last_section=section; section=\$ 3};"\
5709 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5710 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5711 " \$ 0!~/External *\|/{next};"\
5712 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5713 " {if(hide[section]) next};"\
5714 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5715 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5716 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5717 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5718 " ' prfx=^$ac_symprfx"
5720 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5722 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5724 # Check to see that the pipe works correctly.
5728 cat > conftest.$ac_ext <<_LT_EOF
5733 void nm_test_func(void);
5734 void nm_test_func(void){}
5738 int main(){nm_test_var='a';nm_test_func();return(0);}
5741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5742 (eval $ac_compile) 2>&5
5744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5745 test $ac_status = 0; }; then
5746 # Now try to grab the symbols.
5748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5749 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5752 test $ac_status = 0; } && test -s "$nlist"; then
5753 # Try sorting and uniquifying the output.
5754 if sort "$nlist" | uniq > "$nlist"T; then
5755 mv -f "$nlist"T "$nlist"
5760 # Make sure that we snagged all the symbols we need.
5761 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5762 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5763 cat <<_LT_EOF > conftest.$ac_ext
5764 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5765 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5766 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5767 relocations are performed -- see ld's documentation on pseudo-relocs. */
5768 # define LT_DLSYM_CONST
5769 #elif defined(__osf__)
5770 /* This system does not cope well with relocations in const data. */
5771 # define LT_DLSYM_CONST
5773 # define LT_DLSYM_CONST const
5781 # Now generate the symbol file.
5782 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5784 cat <<_LT_EOF >> conftest.$ac_ext
5786 /* The mapping between symbol names and symbols. */
5787 LT_DLSYM_CONST struct {
5791 lt__PROGRAM__LTX_preloaded_symbols[] =
5793 { "@PROGRAM@", (void *) 0 },
5795 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5796 cat <<\_LT_EOF >> conftest.$ac_ext
5800 /* This works around a problem in FreeBSD linker */
5801 #ifdef FREEBSD_WORKAROUND
5802 static const void *lt_preloaded_setup() {
5803 return lt__PROGRAM__LTX_preloaded_symbols;
5811 # Now try linking the two files.
5812 mv conftest.$ac_objext conftstm.$ac_objext
5813 lt_globsym_save_LIBS=$LIBS
5814 lt_globsym_save_CFLAGS=$CFLAGS
5815 LIBS="conftstm.$ac_objext"
5816 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5818 (eval $ac_link) 2>&5
5820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5821 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5824 LIBS=$lt_globsym_save_LIBS
5825 CFLAGS=$lt_globsym_save_CFLAGS
5827 echo "cannot find nm_test_func in $nlist" >&5
5830 echo "cannot find nm_test_var in $nlist" >&5
5833 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5836 echo "$progname: failed program was:" >&5
5837 cat conftest.$ac_ext >&5
5839 rm -rf conftest* conftst*
5841 # Do not use the global_symbol_pipe unless it works.
5842 if test "$pipe_works" = yes; then
5845 lt_cv_sys_global_symbol_pipe=
5851 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5852 lt_cv_sys_global_symbol_to_cdecl=
5854 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5856 $as_echo "failed" >&6; }
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5859 $as_echo "ok" >&6; }
5862 # Response file support.
5863 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5864 nm_file_list_spec='@'
5865 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5866 nm_file_list_spec='@'
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5896 $as_echo_n "checking for sysroot... " >&6; }
5898 # Check whether --with-sysroot was given.
5899 if test "${with_sysroot+set}" = set; then :
5900 withval=$with_sysroot;
5907 case ${with_sysroot} in #(
5909 if test "$GCC" = yes; then
5910 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5914 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5920 $as_echo "${with_sysroot}" >&6; }
5921 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5926 $as_echo "${lt_sysroot:-no}" >&6; }
5932 # Check whether --enable-libtool-lock was given.
5933 if test "${enable_libtool_lock+set}" = set; then :
5934 enableval=$enable_libtool_lock;
5937 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5939 # Some flags need to be propagated to the compiler or linker for good
5943 # Find out which ABI we are using.
5944 echo 'int i;' > conftest.$ac_ext
5945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5946 (eval $ac_compile) 2>&5
5948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5949 test $ac_status = 0; }; then
5950 case `/usr/bin/file conftest.$ac_objext` in
5962 # Find out which ABI we are using.
5963 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5965 (eval $ac_compile) 2>&5
5967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5968 test $ac_status = 0; }; then
5969 if test "$lt_cv_prog_gnu_ld" = yes; then
5970 case `/usr/bin/file conftest.$ac_objext` in
5972 LD="${LD-ld} -melf32bsmip"
5975 LD="${LD-ld} -melf32bmipn32"
5978 LD="${LD-ld} -melf64bmip"
5982 case `/usr/bin/file conftest.$ac_objext` in
5998 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5999 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6000 # Find out which ABI we are using.
6001 echo 'int i;' > conftest.$ac_ext
6002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6003 (eval $ac_compile) 2>&5
6005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6006 test $ac_status = 0; }; then
6007 case `/usr/bin/file conftest.o` in
6010 x86_64-*kfreebsd*-gnu)
6011 LD="${LD-ld} -m elf_i386_fbsd"
6014 LD="${LD-ld} -m elf_i386"
6016 ppc64-*linux*|powerpc64-*linux*)
6017 LD="${LD-ld} -m elf32ppclinux"
6020 LD="${LD-ld} -m elf_s390"
6023 LD="${LD-ld} -m elf32_sparc"
6029 x86_64-*kfreebsd*-gnu)
6030 LD="${LD-ld} -m elf_x86_64_fbsd"
6033 LD="${LD-ld} -m elf_x86_64"
6035 ppc*-*linux*|powerpc*-*linux*)
6036 LD="${LD-ld} -m elf64ppc"
6038 s390*-*linux*|s390*-*tpf*)
6039 LD="${LD-ld} -m elf64_s390"
6042 LD="${LD-ld} -m elf64_sparc"
6052 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6053 SAVE_CFLAGS="$CFLAGS"
6054 CFLAGS="$CFLAGS -belf"
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6056 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6057 if ${lt_cv_cc_needs_belf+:} false; then :
6058 $as_echo_n "(cached) " >&6
6061 ac_cpp='$CPP $CPPFLAGS'
6062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067 /* end confdefs.h. */
6077 if ac_fn_c_try_link "$LINENO"; then :
6078 lt_cv_cc_needs_belf=yes
6080 lt_cv_cc_needs_belf=no
6082 rm -f core conftest.err conftest.$ac_objext \
6083 conftest$ac_exeext conftest.$ac_ext
6085 ac_cpp='$CPP $CPPFLAGS'
6086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6092 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6093 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6094 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6095 CFLAGS="$SAVE_CFLAGS"
6099 # Find out which ABI we are using.
6100 echo 'int i;' > conftest.$ac_ext
6101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6102 (eval $ac_compile) 2>&5
6104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6105 test $ac_status = 0; }; then
6106 case `/usr/bin/file conftest.o` in
6108 case $lt_cv_prog_gnu_ld in
6112 LD="${LD-ld} -m elf_x86_64"
6115 LD="${LD-ld} -m elf64_sparc"
6118 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6119 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6124 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6136 need_locks="$enable_libtool_lock"
6138 if test -n "$ac_tool_prefix"; then
6139 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6140 set dummy ${ac_tool_prefix}mt; ac_word=$2
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142 $as_echo_n "checking for $ac_word... " >&6; }
6143 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6144 $as_echo_n "(cached) " >&6
6146 if test -n "$MANIFEST_TOOL"; then
6147 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6156 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6167 if test -n "$MANIFEST_TOOL"; then
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6169 $as_echo "$MANIFEST_TOOL" >&6; }
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172 $as_echo "no" >&6; }
6177 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6178 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6179 # Extract the first word of "mt", so it can be a program name with args.
6180 set dummy mt; ac_word=$2
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182 $as_echo_n "checking for $ac_word... " >&6; }
6183 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6184 $as_echo_n "(cached) " >&6
6186 if test -n "$ac_ct_MANIFEST_TOOL"; then
6187 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6207 if test -n "$ac_ct_MANIFEST_TOOL"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6209 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6215 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6218 case $cross_compiling:$ac_tool_warned in
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6222 ac_tool_warned=yes ;;
6224 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6227 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6230 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6232 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6233 if ${lt_cv_path_mainfest_tool+:} false; then :
6234 $as_echo_n "(cached) " >&6
6236 lt_cv_path_mainfest_tool=no
6237 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6238 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6239 cat conftest.err >&5
6240 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6241 lt_cv_path_mainfest_tool=yes
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6246 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6247 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6257 rhapsody* | darwin*)
6258 if test -n "$ac_tool_prefix"; then
6259 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6260 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6262 $as_echo_n "checking for $ac_word... " >&6; }
6263 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6264 $as_echo_n "(cached) " >&6
6266 if test -n "$DSYMUTIL"; then
6267 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6276 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6287 if test -n "$DSYMUTIL"; then
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6289 $as_echo "$DSYMUTIL" >&6; }
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6292 $as_echo "no" >&6; }
6297 if test -z "$ac_cv_prog_DSYMUTIL"; then
6298 ac_ct_DSYMUTIL=$DSYMUTIL
6299 # Extract the first word of "dsymutil", so it can be a program name with args.
6300 set dummy dsymutil; ac_word=$2
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302 $as_echo_n "checking for $ac_word... " >&6; }
6303 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6304 $as_echo_n "(cached) " >&6
6306 if test -n "$ac_ct_DSYMUTIL"; then
6307 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6327 if test -n "$ac_ct_DSYMUTIL"; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6329 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6335 if test "x$ac_ct_DSYMUTIL" = x; then
6338 case $cross_compiling:$ac_tool_warned in
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6342 ac_tool_warned=yes ;;
6344 DSYMUTIL=$ac_ct_DSYMUTIL
6347 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6350 if test -n "$ac_tool_prefix"; then
6351 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6352 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354 $as_echo_n "checking for $ac_word... " >&6; }
6355 if ${ac_cv_prog_NMEDIT+:} false; then :
6356 $as_echo_n "(cached) " >&6
6358 if test -n "$NMEDIT"; then
6359 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6368 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6378 NMEDIT=$ac_cv_prog_NMEDIT
6379 if test -n "$NMEDIT"; then
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6381 $as_echo "$NMEDIT" >&6; }
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384 $as_echo "no" >&6; }
6389 if test -z "$ac_cv_prog_NMEDIT"; then
6390 ac_ct_NMEDIT=$NMEDIT
6391 # Extract the first word of "nmedit", so it can be a program name with args.
6392 set dummy nmedit; ac_word=$2
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394 $as_echo_n "checking for $ac_word... " >&6; }
6395 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6396 $as_echo_n "(cached) " >&6
6398 if test -n "$ac_ct_NMEDIT"; then
6399 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6419 if test -n "$ac_ct_NMEDIT"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6421 $as_echo "$ac_ct_NMEDIT" >&6; }
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6427 if test "x$ac_ct_NMEDIT" = x; then
6430 case $cross_compiling:$ac_tool_warned in
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6434 ac_tool_warned=yes ;;
6436 NMEDIT=$ac_ct_NMEDIT
6439 NMEDIT="$ac_cv_prog_NMEDIT"
6442 if test -n "$ac_tool_prefix"; then
6443 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6444 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if ${ac_cv_prog_LIPO+:} false; then :
6448 $as_echo_n "(cached) " >&6
6450 if test -n "$LIPO"; then
6451 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 LIPO=$ac_cv_prog_LIPO
6471 if test -n "$LIPO"; then
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6473 $as_echo "$LIPO" >&6; }
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6481 if test -z "$ac_cv_prog_LIPO"; then
6483 # Extract the first word of "lipo", so it can be a program name with args.
6484 set dummy lipo; ac_word=$2
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 $as_echo_n "checking for $ac_word... " >&6; }
6487 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6488 $as_echo_n "(cached) " >&6
6490 if test -n "$ac_ct_LIPO"; then
6491 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6500 ac_cv_prog_ac_ct_LIPO="lipo"
6501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6511 if test -n "$ac_ct_LIPO"; then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6513 $as_echo "$ac_ct_LIPO" >&6; }
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6519 if test "x$ac_ct_LIPO" = x; then
6522 case $cross_compiling:$ac_tool_warned in
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6526 ac_tool_warned=yes ;;
6531 LIPO="$ac_cv_prog_LIPO"
6534 if test -n "$ac_tool_prefix"; then
6535 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6536 set dummy ${ac_tool_prefix}otool; ac_word=$2
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 $as_echo_n "checking for $ac_word... " >&6; }
6539 if ${ac_cv_prog_OTOOL+:} false; then :
6540 $as_echo_n "(cached) " >&6
6542 if test -n "$OTOOL"; then
6543 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562 OTOOL=$ac_cv_prog_OTOOL
6563 if test -n "$OTOOL"; then
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6565 $as_echo "$OTOOL" >&6; }
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6573 if test -z "$ac_cv_prog_OTOOL"; then
6575 # Extract the first word of "otool", so it can be a program name with args.
6576 set dummy otool; ac_word=$2
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578 $as_echo_n "checking for $ac_word... " >&6; }
6579 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6580 $as_echo_n "(cached) " >&6
6582 if test -n "$ac_ct_OTOOL"; then
6583 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_prog_ac_ct_OTOOL="otool"
6593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6603 if test -n "$ac_ct_OTOOL"; then
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6605 $as_echo "$ac_ct_OTOOL" >&6; }
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 $as_echo "no" >&6; }
6611 if test "x$ac_ct_OTOOL" = x; then
6614 case $cross_compiling:$ac_tool_warned in
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6618 ac_tool_warned=yes ;;
6623 OTOOL="$ac_cv_prog_OTOOL"
6626 if test -n "$ac_tool_prefix"; then
6627 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6628 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if ${ac_cv_prog_OTOOL64+:} false; then :
6632 $as_echo_n "(cached) " >&6
6634 if test -n "$OTOOL64"; then
6635 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 OTOOL64=$ac_cv_prog_OTOOL64
6655 if test -n "$OTOOL64"; then
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6657 $as_echo "$OTOOL64" >&6; }
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6665 if test -z "$ac_cv_prog_OTOOL64"; then
6666 ac_ct_OTOOL64=$OTOOL64
6667 # Extract the first word of "otool64", so it can be a program name with args.
6668 set dummy otool64; ac_word=$2
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 $as_echo_n "checking for $ac_word... " >&6; }
6671 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6672 $as_echo_n "(cached) " >&6
6674 if test -n "$ac_ct_OTOOL64"; then
6675 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_prog_ac_ct_OTOOL64="otool64"
6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6695 if test -n "$ac_ct_OTOOL64"; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6697 $as_echo "$ac_ct_OTOOL64" >&6; }
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6703 if test "x$ac_ct_OTOOL64" = x; then
6706 case $cross_compiling:$ac_tool_warned in
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710 ac_tool_warned=yes ;;
6712 OTOOL64=$ac_ct_OTOOL64
6715 OTOOL64="$ac_cv_prog_OTOOL64"
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6745 $as_echo_n "checking for -single_module linker flag... " >&6; }
6746 if ${lt_cv_apple_cc_single_mod+:} false; then :
6747 $as_echo_n "(cached) " >&6
6749 lt_cv_apple_cc_single_mod=no
6750 if test -z "${LT_MULTI_MODULE}"; then
6751 # By default we will add the -single_module flag. You can override
6752 # by either setting the environment variable LT_MULTI_MODULE
6753 # non-empty at configure time, or by adding -multi_module to the
6755 rm -rf libconftest.dylib*
6756 echo "int foo(void){return 1;}" > conftest.c
6757 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6758 -dynamiclib -Wl,-single_module conftest.c" >&5
6759 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6760 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6762 # If there is a non-empty error log, and "single_module"
6763 # appears in it, assume the flag caused a linker warning
6764 if test -s conftest.err && $GREP single_module conftest.err; then
6765 cat conftest.err >&5
6766 # Otherwise, if the output was created with a 0 exit code from
6767 # the compiler, it worked.
6768 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6769 lt_cv_apple_cc_single_mod=yes
6771 cat conftest.err >&5
6773 rm -rf libconftest.dylib*
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6778 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6781 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6782 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6783 $as_echo_n "(cached) " >&6
6785 lt_cv_ld_exported_symbols_list=no
6786 save_LDFLAGS=$LDFLAGS
6787 echo "_main" > conftest.sym
6788 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6800 if ac_fn_c_try_link "$LINENO"; then :
6801 lt_cv_ld_exported_symbols_list=yes
6803 lt_cv_ld_exported_symbols_list=no
6805 rm -f core conftest.err conftest.$ac_objext \
6806 conftest$ac_exeext conftest.$ac_ext
6807 LDFLAGS="$save_LDFLAGS"
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6811 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6814 $as_echo_n "checking for -force_load linker flag... " >&6; }
6815 if ${lt_cv_ld_force_load+:} false; then :
6816 $as_echo_n "(cached) " >&6
6818 lt_cv_ld_force_load=no
6819 cat > conftest.c << _LT_EOF
6820 int forced_loaded() { return 2;}
6822 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6823 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6824 echo "$AR cru libconftest.a conftest.o" >&5
6825 $AR cru libconftest.a conftest.o 2>&5
6826 echo "$RANLIB libconftest.a" >&5
6827 $RANLIB libconftest.a 2>&5
6828 cat > conftest.c << _LT_EOF
6829 int main() { return 0;}
6831 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6832 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6834 if test -s conftest.err && $GREP force_load conftest.err; then
6835 cat conftest.err >&5
6836 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6837 lt_cv_ld_force_load=yes
6839 cat conftest.err >&5
6841 rm -f conftest.err libconftest.a conftest conftest.c
6842 rm -rf conftest.dSYM
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6846 $as_echo "$lt_cv_ld_force_load" >&6; }
6848 rhapsody* | darwin1.[012])
6849 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6851 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6852 darwin*) # darwin 5.x on
6853 # if running on 10.5 or later, the deployment target defaults
6854 # to the OS version, if on x86, and 10.4, the deployment
6855 # target defaults to 10.4. Don't you love it?
6856 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6857 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6858 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6860 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6862 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6866 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6867 _lt_dar_single_mod='$single_module'
6869 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6870 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6872 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6874 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6875 _lt_dsymutil='~$DSYMUTIL $lib || :'
6883 ac_cpp='$CPP $CPPFLAGS'
6884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6888 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6889 # On Suns, sometimes $CPP names a directory.
6890 if test -n "$CPP" && test -d "$CPP"; then
6893 if test -z "$CPP"; then
6894 if ${ac_cv_prog_CPP+:} false; then :
6895 $as_echo_n "(cached) " >&6
6897 # Double quotes because CPP needs to be expanded
6898 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6901 for ac_c_preproc_warn_flag in '' yes
6903 # Use a header file that comes with gcc, so configuring glibc
6904 # with a fresh cross-compiler works.
6905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6906 # <limits.h> exists even on freestanding compilers.
6907 # On the NeXT, cc -E runs the code through the compiler's parser,
6908 # not just through cpp. "Syntax error" is here to catch this case.
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6912 # include <limits.h>
6914 # include <assert.h>
6918 if ac_fn_c_try_cpp "$LINENO"; then :
6921 # Broken: fails on valid input.
6924 rm -f conftest.err conftest.i conftest.$ac_ext
6926 # OK, works on sane cases. Now check whether nonexistent headers
6927 # can be detected and how.
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6930 #include <ac_nonexistent.h>
6932 if ac_fn_c_try_cpp "$LINENO"; then :
6933 # Broken: success on invalid input.
6936 # Passes both tests.
6940 rm -f conftest.err conftest.i conftest.$ac_ext
6943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6944 rm -f conftest.i conftest.err conftest.$ac_ext
6945 if $ac_preproc_ok; then :
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6958 $as_echo "$CPP" >&6; }
6960 for ac_c_preproc_warn_flag in '' yes
6962 # Use a header file that comes with gcc, so configuring glibc
6963 # with a fresh cross-compiler works.
6964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6965 # <limits.h> exists even on freestanding compilers.
6966 # On the NeXT, cc -E runs the code through the compiler's parser,
6967 # not just through cpp. "Syntax error" is here to catch this case.
6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969 /* end confdefs.h. */
6971 # include <limits.h>
6973 # include <assert.h>
6977 if ac_fn_c_try_cpp "$LINENO"; then :
6980 # Broken: fails on valid input.
6983 rm -f conftest.err conftest.i conftest.$ac_ext
6985 # OK, works on sane cases. Now check whether nonexistent headers
6986 # can be detected and how.
6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h. */
6989 #include <ac_nonexistent.h>
6991 if ac_fn_c_try_cpp "$LINENO"; then :
6992 # Broken: success on invalid input.
6995 # Passes both tests.
6999 rm -f conftest.err conftest.i conftest.$ac_ext
7002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7003 rm -f conftest.i conftest.err conftest.$ac_ext
7004 if $ac_preproc_ok; then :
7007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7009 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7010 See \`config.log' for more details" "$LINENO" 5; }
7014 ac_cpp='$CPP $CPPFLAGS'
7015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7021 $as_echo_n "checking for ANSI C header files... " >&6; }
7022 if ${ac_cv_header_stdc+:} false; then :
7023 $as_echo_n "(cached) " >&6
7025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7026 /* end confdefs.h. */
7040 if ac_fn_c_try_compile "$LINENO"; then :
7041 ac_cv_header_stdc=yes
7043 ac_cv_header_stdc=no
7045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7047 if test $ac_cv_header_stdc = yes; then
7048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h. */
7054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7055 $EGREP "memchr" >/dev/null 2>&1; then :
7058 ac_cv_header_stdc=no
7064 if test $ac_cv_header_stdc = yes; then
7065 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7072 $EGREP "free" >/dev/null 2>&1; then :
7075 ac_cv_header_stdc=no
7081 if test $ac_cv_header_stdc = yes; then
7082 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7083 if test "$cross_compiling" = yes; then :
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7090 #if ((' ' & 0x0FF) == 0x020)
7091 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7092 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7094 # define ISLOWER(c) \
7095 (('a' <= (c) && (c) <= 'i') \
7096 || ('j' <= (c) && (c) <= 'r') \
7097 || ('s' <= (c) && (c) <= 'z'))
7098 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7101 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7106 for (i = 0; i < 256; i++)
7107 if (XOR (islower (i), ISLOWER (i))
7108 || toupper (i) != TOUPPER (i))
7113 if ac_fn_c_try_run "$LINENO"; then :
7116 ac_cv_header_stdc=no
7118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7119 conftest.$ac_objext conftest.beam conftest.$ac_ext
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7125 $as_echo "$ac_cv_header_stdc" >&6; }
7126 if test $ac_cv_header_stdc = yes; then
7128 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7132 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7133 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7134 inttypes.h stdint.h unistd.h
7136 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7137 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7139 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7140 cat >>confdefs.h <<_ACEOF
7141 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7149 for ac_header in dlfcn.h
7151 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7153 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7154 cat >>confdefs.h <<_ACEOF
7155 #define HAVE_DLFCN_H 1
7176 # Check whether --enable-shared was given.
7177 if test "${enable_shared+set}" = set; then :
7178 enableval=$enable_shared; p=${PACKAGE-default}
7180 yes) enable_shared=yes ;;
7181 no) enable_shared=no ;;
7184 # Look at the argument we got. We use all the common list separators.
7185 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7186 for pkg in $enableval; do
7188 if test "X$pkg" = "X$p"; then
7207 # Check whether --enable-static was given.
7208 if test "${enable_static+set}" = set; then :
7209 enableval=$enable_static; p=${PACKAGE-default}
7211 yes) enable_static=yes ;;
7212 no) enable_static=no ;;
7215 # Look at the argument we got. We use all the common list separators.
7216 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7217 for pkg in $enableval; do
7219 if test "X$pkg" = "X$p"; then
7239 # Check whether --with-pic was given.
7240 if test "${with_pic+set}" = set; then :
7241 withval=$with_pic; lt_p=${PACKAGE-default}
7243 yes|no) pic_mode=$withval ;;
7246 # Look at the argument we got. We use all the common list separators.
7247 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7248 for lt_pkg in $withval; do
7250 if test "X$lt_pkg" = "X$lt_p"; then
7262 test -z "$pic_mode" && pic_mode=default
7270 # Check whether --enable-fast-install was given.
7271 if test "${enable_fast_install+set}" = set; then :
7272 enableval=$enable_fast_install; p=${PACKAGE-default}
7274 yes) enable_fast_install=yes ;;
7275 no) enable_fast_install=no ;;
7277 enable_fast_install=no
7278 # Look at the argument we got. We use all the common list separators.
7279 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7280 for pkg in $enableval; do
7282 if test "X$pkg" = "X$p"; then
7283 enable_fast_install=yes
7290 enable_fast_install=yes
7303 # This can be used to rebuild libtool when needed
7304 LIBTOOL_DEPS="$ltmain"
7306 # Always use our own libtool.
7307 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7338 test -z "$LN_S" && LN_S="ln -s"
7353 if test -n "${ZSH_VERSION+set}" ; then
7354 setopt NO_GLOB_SUBST
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7358 $as_echo_n "checking for objdir... " >&6; }
7359 if ${lt_cv_objdir+:} false; then :
7360 $as_echo_n "(cached) " >&6
7362 rm -f .libs 2>/dev/null
7363 mkdir .libs 2>/dev/null
7364 if test -d .libs; then
7367 # MS-DOS does not allow filenames that begin with a dot.
7370 rmdir .libs 2>/dev/null
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7373 $as_echo "$lt_cv_objdir" >&6; }
7374 objdir=$lt_cv_objdir
7380 cat >>confdefs.h <<_ACEOF
7381 #define LT_OBJDIR "$lt_cv_objdir/"
7389 # AIX sometimes has problems with the GCC collect2 program. For some
7390 # reason, if we set the COLLECT_NAMES environment variable, the problems
7391 # vanish in a puff of smoke.
7392 if test "X${COLLECT_NAMES+set}" != Xset; then
7394 export COLLECT_NAMES
7401 can_build_shared=yes
7403 # All known linkers require a `.a' archive for static linking (except MSVC,
7404 # which needs '.lib').
7407 with_gnu_ld="$lt_cv_prog_gnu_ld"
7410 old_CFLAGS="$CFLAGS"
7412 # Set sane defaults for various variables
7413 test -z "$CC" && CC=cc
7414 test -z "$LTCC" && LTCC=$CC
7415 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7416 test -z "$LD" && LD=ld
7417 test -z "$ac_objext" && ac_objext=o
7419 for cc_temp in $compiler""; do
7421 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7422 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7427 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7430 # Only perform the check for file, if the check method requires it
7431 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7432 case $deplibs_check_method in
7434 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7436 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7437 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7438 $as_echo_n "(cached) " >&6
7442 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7445 lt_save_MAGIC_CMD="$MAGIC_CMD"
7446 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7447 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7448 for ac_dir in $ac_dummy; do
7450 test -z "$ac_dir" && ac_dir=.
7451 if test -f $ac_dir/${ac_tool_prefix}file; then
7452 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7453 if test -n "$file_magic_test_file"; then
7454 case $deplibs_check_method in
7456 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7457 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7458 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7459 $EGREP "$file_magic_regex" > /dev/null; then
7464 *** Warning: the command libtool uses to detect shared libraries,
7465 *** $file_magic_cmd, produces output that libtool cannot recognize.
7466 *** The result is that libtool may fail to recognize shared libraries
7467 *** as such. This will affect the creation of libtool libraries that
7468 *** depend on shared libraries, but programs linked with such libtool
7469 *** libraries will work regardless of this problem. Nevertheless, you
7470 *** may want to report the problem to your system manager and/or to
7471 *** bug-libtool@gnu.org
7481 MAGIC_CMD="$lt_save_MAGIC_CMD"
7486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7487 if test -n "$MAGIC_CMD"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7489 $as_echo "$MAGIC_CMD" >&6; }
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7499 if test -z "$lt_cv_path_MAGIC_CMD"; then
7500 if test -n "$ac_tool_prefix"; then
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7502 $as_echo_n "checking for file... " >&6; }
7503 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7504 $as_echo_n "(cached) " >&6
7508 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7511 lt_save_MAGIC_CMD="$MAGIC_CMD"
7512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7513 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7514 for ac_dir in $ac_dummy; do
7516 test -z "$ac_dir" && ac_dir=.
7517 if test -f $ac_dir/file; then
7518 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7519 if test -n "$file_magic_test_file"; then
7520 case $deplibs_check_method in
7522 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7523 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7524 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7525 $EGREP "$file_magic_regex" > /dev/null; then
7530 *** Warning: the command libtool uses to detect shared libraries,
7531 *** $file_magic_cmd, produces output that libtool cannot recognize.
7532 *** The result is that libtool may fail to recognize shared libraries
7533 *** as such. This will affect the creation of libtool libraries that
7534 *** depend on shared libraries, but programs linked with such libtool
7535 *** libraries will work regardless of this problem. Nevertheless, you
7536 *** may want to report the problem to your system manager and/or to
7537 *** bug-libtool@gnu.org
7547 MAGIC_CMD="$lt_save_MAGIC_CMD"
7552 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7553 if test -n "$MAGIC_CMD"; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7555 $as_echo "$MAGIC_CMD" >&6; }
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7571 # Use C for the default configuration in the libtool script
7575 ac_cpp='$CPP $CPPFLAGS'
7576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7581 # Source file extension for C test sources.
7584 # Object file extension for compiled C test sources.
7588 # Code to be used in simple compile tests
7589 lt_simple_compile_test_code="int some_variable = 0;"
7591 # Code to be used in simple link tests
7592 lt_simple_link_test_code='int main(){return(0);}'
7600 # If no C compiler was specified, use CC.
7603 # If no C compiler flags were specified, use CFLAGS.
7604 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7606 # Allow CC to be a program name with arguments.
7609 # Save the default compiler, since it gets overwritten when the other
7610 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7611 compiler_DEFAULT=$CC
7613 # save warnings/boilerplate of simple test code
7614 ac_outfile=conftest.$ac_objext
7615 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7616 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7617 _lt_compiler_boilerplate=`cat conftest.err`
7620 ac_outfile=conftest.$ac_objext
7621 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7622 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7623 _lt_linker_boilerplate=`cat conftest.err`
7628 ## There is no encapsulation within the following macros, do not change
7629 ## the running order or otherwise move them around unless you know exactly
7630 ## what you are doing...
7631 if test -n "$compiler"; then
7633 lt_prog_compiler_no_builtin_flag=
7635 if test "$GCC" = yes; then
7636 case $cc_basename in
7638 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7640 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7644 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7645 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7646 $as_echo_n "(cached) " >&6
7648 lt_cv_prog_compiler_rtti_exceptions=no
7649 ac_outfile=conftest.$ac_objext
7650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7651 lt_compiler_flag="-fno-rtti -fno-exceptions"
7652 # Insert the option either (1) after the last *FLAGS variable, or
7653 # (2) before a word containing "conftest.", or (3) at the end.
7654 # Note that $ac_compile itself does not contain backslashes and begins
7655 # with a dollar sign (not a hyphen), so the echo should work correctly.
7656 # The option is referenced via a variable to avoid confusing sed.
7657 lt_compile=`echo "$ac_compile" | $SED \
7658 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7660 -e 's:$: $lt_compiler_flag:'`
7661 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7662 (eval "$lt_compile" 2>conftest.err)
7664 cat conftest.err >&5
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 if (exit $ac_status) && test -s "$ac_outfile"; then
7667 # The compiler can only warn and ignore the option if not recognized
7668 # So say no if there are warnings other than the usual output.
7669 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7670 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7671 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7672 lt_cv_prog_compiler_rtti_exceptions=yes
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7679 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7681 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7682 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7694 lt_prog_compiler_wl=
7695 lt_prog_compiler_pic=
7696 lt_prog_compiler_static=
7699 if test "$GCC" = yes; then
7700 lt_prog_compiler_wl='-Wl,'
7701 lt_prog_compiler_static='-static'
7705 # All AIX code is PIC.
7706 if test "$host_cpu" = ia64; then
7707 # AIX 5 now supports IA64 processor
7708 lt_prog_compiler_static='-Bstatic'
7715 # see comment about AmigaOS4 .so support
7716 lt_prog_compiler_pic='-fPIC'
7719 # FIXME: we need at least 68020 code to build shared libraries, but
7720 # adding the `-m68020' flag to GCC prevents building anything better,
7722 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7727 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7728 # PIC is the default for these OSes.
7731 mingw* | cygwin* | pw32* | os2* | cegcc*)
7732 # This hack is so that the source file can tell whether it is being
7733 # built for inclusion in a dll (and should export symbols for example).
7734 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7735 # (--disable-auto-import) libraries
7736 lt_prog_compiler_pic='-DDLL_EXPORT'
7739 darwin* | rhapsody*)
7740 # PIC is the default on this platform
7741 # Common symbols not allowed in MH_DYLIB files
7742 lt_prog_compiler_pic='-fno-common'
7746 # PIC is the default for Haiku.
7747 # The "-static" flag exists, but is broken.
7748 lt_prog_compiler_static=
7752 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7753 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7754 # sets the default TLS model and affects inlining.
7760 lt_prog_compiler_pic='-fPIC'
7766 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7767 # Instead, we relocate shared libraries at runtime.
7771 # Just because we use GCC doesn't mean we suddenly get shared libraries
7772 # on systems that don't support them.
7773 lt_prog_compiler_can_build_shared=no
7778 # QNX uses GNU C++, but need to define -shared option too, otherwise
7780 lt_prog_compiler_pic='-fPIC -shared'
7784 if test -d /usr/nec; then
7785 lt_prog_compiler_pic=-Kconform_pic
7790 lt_prog_compiler_pic='-fPIC'
7794 case $cc_basename in
7795 nvcc*) # Cuda Compiler Driver 2.2
7796 lt_prog_compiler_wl='-Xlinker '
7797 if test -n "$lt_prog_compiler_pic"; then
7798 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7803 # PORTME Check for flag to pass linker flags through the system compiler.
7806 lt_prog_compiler_wl='-Wl,'
7807 if test "$host_cpu" = ia64; then
7808 # AIX 5 now supports IA64 processor
7809 lt_prog_compiler_static='-Bstatic'
7811 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7815 mingw* | cygwin* | pw32* | os2* | cegcc*)
7816 # This hack is so that the source file can tell whether it is being
7817 # built for inclusion in a dll (and should export symbols for example).
7818 lt_prog_compiler_pic='-DDLL_EXPORT'
7821 hpux9* | hpux10* | hpux11*)
7822 lt_prog_compiler_wl='-Wl,'
7823 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7830 lt_prog_compiler_pic='+Z'
7833 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7834 lt_prog_compiler_static='${wl}-a ${wl}archive'
7837 irix5* | irix6* | nonstopux*)
7838 lt_prog_compiler_wl='-Wl,'
7839 # PIC (with -KPIC) is the default.
7840 lt_prog_compiler_static='-non_shared'
7843 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7844 case $cc_basename in
7845 # old Intel for x86_64 which still supported -KPIC.
7847 lt_prog_compiler_wl='-Wl,'
7848 lt_prog_compiler_pic='-KPIC'
7849 lt_prog_compiler_static='-static'
7851 # icc used to be incompatible with GCC.
7852 # ICC 10 doesn't accept -KPIC any more.
7854 lt_prog_compiler_wl='-Wl,'
7855 lt_prog_compiler_pic='-fPIC'
7856 lt_prog_compiler_static='-static'
7858 # Lahey Fortran 8.1.
7860 lt_prog_compiler_wl='-Wl,'
7861 lt_prog_compiler_pic='--shared'
7862 lt_prog_compiler_static='--static'
7865 # NAG Fortran compiler
7866 lt_prog_compiler_wl='-Wl,-Wl,,'
7867 lt_prog_compiler_pic='-PIC'
7868 lt_prog_compiler_static='-Bstatic'
7870 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7871 # Portland Group compilers (*not* the Pentium gcc compiler,
7872 # which looks to be a dead project)
7873 lt_prog_compiler_wl='-Wl,'
7874 lt_prog_compiler_pic='-fpic'
7875 lt_prog_compiler_static='-Bstatic'
7878 lt_prog_compiler_wl='-Wl,'
7879 # All Alpha code is PIC.
7880 lt_prog_compiler_static='-non_shared'
7882 xl* | bgxl* | bgf* | mpixl*)
7883 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7884 lt_prog_compiler_wl='-Wl,'
7885 lt_prog_compiler_pic='-qpic'
7886 lt_prog_compiler_static='-qstaticlink'
7889 case `$CC -V 2>&1 | sed 5q` in
7890 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7891 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7892 lt_prog_compiler_pic='-KPIC'
7893 lt_prog_compiler_static='-Bstatic'
7894 lt_prog_compiler_wl=''
7896 *Sun\ F* | *Sun*Fortran*)
7897 lt_prog_compiler_pic='-KPIC'
7898 lt_prog_compiler_static='-Bstatic'
7899 lt_prog_compiler_wl='-Qoption ld '
7903 lt_prog_compiler_pic='-KPIC'
7904 lt_prog_compiler_static='-Bstatic'
7905 lt_prog_compiler_wl='-Wl,'
7907 *Intel*\ [CF]*Compiler*)
7908 lt_prog_compiler_wl='-Wl,'
7909 lt_prog_compiler_pic='-fPIC'
7910 lt_prog_compiler_static='-static'
7913 lt_prog_compiler_wl='-Wl,'
7914 lt_prog_compiler_pic='-fpic'
7915 lt_prog_compiler_static='-Bstatic'
7923 lt_prog_compiler_pic='-KPIC'
7924 lt_prog_compiler_static='-Bstatic'
7928 # QNX uses GNU C++, but need to define -shared option too, otherwise
7930 lt_prog_compiler_pic='-fPIC -shared'
7933 osf3* | osf4* | osf5*)
7934 lt_prog_compiler_wl='-Wl,'
7935 # All OSF/1 code is PIC.
7936 lt_prog_compiler_static='-non_shared'
7940 lt_prog_compiler_static='-non_shared'
7944 lt_prog_compiler_pic='-KPIC'
7945 lt_prog_compiler_static='-Bstatic'
7946 case $cc_basename in
7947 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7948 lt_prog_compiler_wl='-Qoption ld ';;
7950 lt_prog_compiler_wl='-Wl,';;
7955 lt_prog_compiler_wl='-Qoption ld '
7956 lt_prog_compiler_pic='-PIC'
7957 lt_prog_compiler_static='-Bstatic'
7960 sysv4 | sysv4.2uw2* | sysv4.3*)
7961 lt_prog_compiler_wl='-Wl,'
7962 lt_prog_compiler_pic='-KPIC'
7963 lt_prog_compiler_static='-Bstatic'
7967 if test -d /usr/nec ;then
7968 lt_prog_compiler_pic='-Kconform_pic'
7969 lt_prog_compiler_static='-Bstatic'
7973 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7974 lt_prog_compiler_wl='-Wl,'
7975 lt_prog_compiler_pic='-KPIC'
7976 lt_prog_compiler_static='-Bstatic'
7980 lt_prog_compiler_wl='-Wl,'
7981 lt_prog_compiler_can_build_shared=no
7985 lt_prog_compiler_pic='-pic'
7986 lt_prog_compiler_static='-Bstatic'
7990 lt_prog_compiler_can_build_shared=no
7996 # For platforms which do not support PIC, -DPIC is meaningless:
7998 lt_prog_compiler_pic=
8001 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8006 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8007 if ${lt_cv_prog_compiler_pic+:} false; then :
8008 $as_echo_n "(cached) " >&6
8010 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8013 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8014 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8017 # Check to make sure the PIC flag actually works.
8019 if test -n "$lt_prog_compiler_pic"; then
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8021 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8022 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8023 $as_echo_n "(cached) " >&6
8025 lt_cv_prog_compiler_pic_works=no
8026 ac_outfile=conftest.$ac_objext
8027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8028 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8029 # Insert the option either (1) after the last *FLAGS variable, or
8030 # (2) before a word containing "conftest.", or (3) at the end.
8031 # Note that $ac_compile itself does not contain backslashes and begins
8032 # with a dollar sign (not a hyphen), so the echo should work correctly.
8033 # The option is referenced via a variable to avoid confusing sed.
8034 lt_compile=`echo "$ac_compile" | $SED \
8035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8037 -e 's:$: $lt_compiler_flag:'`
8038 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8039 (eval "$lt_compile" 2>conftest.err)
8041 cat conftest.err >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 if (exit $ac_status) && test -s "$ac_outfile"; then
8044 # The compiler can only warn and ignore the option if not recognized
8045 # So say no if there are warnings other than the usual output.
8046 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8047 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8048 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8049 lt_cv_prog_compiler_pic_works=yes
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8056 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8058 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8059 case $lt_prog_compiler_pic in
8061 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8064 lt_prog_compiler_pic=
8065 lt_prog_compiler_can_build_shared=no
8081 # Check to make sure the static flag actually works.
8083 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8085 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8086 if ${lt_cv_prog_compiler_static_works+:} false; then :
8087 $as_echo_n "(cached) " >&6
8089 lt_cv_prog_compiler_static_works=no
8090 save_LDFLAGS="$LDFLAGS"
8091 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8092 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8093 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8094 # The linker can only warn and ignore the option if not recognized
8095 # So say no if there are warnings
8096 if test -s conftest.err; then
8097 # Append any errors to the config.log.
8098 cat conftest.err 1>&5
8099 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8100 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8101 if diff conftest.exp conftest.er2 >/dev/null; then
8102 lt_cv_prog_compiler_static_works=yes
8105 lt_cv_prog_compiler_static_works=yes
8109 LDFLAGS="$save_LDFLAGS"
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8113 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8115 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8118 lt_prog_compiler_static=
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8128 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8129 if ${lt_cv_prog_compiler_c_o+:} false; then :
8130 $as_echo_n "(cached) " >&6
8132 lt_cv_prog_compiler_c_o=no
8133 $RM -r conftest 2>/dev/null
8137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8139 lt_compiler_flag="-o out/conftest2.$ac_objext"
8140 # Insert the option either (1) after the last *FLAGS variable, or
8141 # (2) before a word containing "conftest.", or (3) at the end.
8142 # Note that $ac_compile itself does not contain backslashes and begins
8143 # with a dollar sign (not a hyphen), so the echo should work correctly.
8144 lt_compile=`echo "$ac_compile" | $SED \
8145 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8146 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8147 -e 's:$: $lt_compiler_flag:'`
8148 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8149 (eval "$lt_compile" 2>out/conftest.err)
8151 cat out/conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8155 # The compiler can only warn and ignore the option if not recognized
8156 # So say no if there are warnings
8157 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8158 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8159 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8160 lt_cv_prog_compiler_c_o=yes
8165 # SGI C++ compiler will create directory out/ii_files/ for
8166 # template instantiation
8167 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8168 $RM out/* && rmdir out
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8175 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8183 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8184 if ${lt_cv_prog_compiler_c_o+:} false; then :
8185 $as_echo_n "(cached) " >&6
8187 lt_cv_prog_compiler_c_o=no
8188 $RM -r conftest 2>/dev/null
8192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8194 lt_compiler_flag="-o out/conftest2.$ac_objext"
8195 # Insert the option either (1) after the last *FLAGS variable, or
8196 # (2) before a word containing "conftest.", or (3) at the end.
8197 # Note that $ac_compile itself does not contain backslashes and begins
8198 # with a dollar sign (not a hyphen), so the echo should work correctly.
8199 lt_compile=`echo "$ac_compile" | $SED \
8200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8202 -e 's:$: $lt_compiler_flag:'`
8203 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8204 (eval "$lt_compile" 2>out/conftest.err)
8206 cat out/conftest.err >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8210 # The compiler can only warn and ignore the option if not recognized
8211 # So say no if there are warnings
8212 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8213 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8214 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8215 lt_cv_prog_compiler_c_o=yes
8220 # SGI C++ compiler will create directory out/ii_files/ for
8221 # template instantiation
8222 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8223 $RM out/* && rmdir out
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8230 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8235 hard_links="nottested"
8236 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8237 # do not overwrite the value of need_locks provided by the user
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8239 $as_echo_n "checking if we can lock with hard links... " >&6; }
8242 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8244 ln conftest.a conftest.b 2>&5 || hard_links=no
8245 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8247 $as_echo "$hard_links" >&6; }
8248 if test "$hard_links" = no; then
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8250 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8263 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8266 allow_undefined_flag=
8267 always_export_symbols=no
8269 archive_expsym_cmds=
8270 compiler_needs_object=no
8271 enable_shared_with_static_runtimes=no
8272 export_dynamic_flag_spec=
8273 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8274 hardcode_automatic=no
8276 hardcode_direct_absolute=no
8277 hardcode_libdir_flag_spec=
8278 hardcode_libdir_separator=
8280 hardcode_shlibpath_var=unsupported
8282 link_all_deplibs=unknown
8285 old_archive_from_new_cmds=
8286 old_archive_from_expsyms_cmds=
8287 thread_safe_flag_spec=
8288 whole_archive_flag_spec=
8289 # include_expsyms should be a list of space-separated symbols to be *always*
8290 # included in the symbol list
8292 # exclude_expsyms can be an extended regexp of symbols to exclude
8293 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8294 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8295 # as well as any symbol that contains `d'.
8296 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8297 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8298 # platforms (ab)use it in PIC code, but their linkers get confused if
8299 # the symbol is explicitly referenced. Since portable code cannot
8300 # rely on this symbol name, it's probably fine to never include it in
8301 # preloaded symbol tables.
8302 # Exclude shared library initialization/finalization symbols.
8303 extract_expsyms_cmds=
8306 cygwin* | mingw* | pw32* | cegcc*)
8307 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8308 # When not using gcc, we currently assume that we are using
8309 # Microsoft Visual C++.
8310 if test "$GCC" != yes; then
8315 # we just hope/assume this is gcc and not c89 (= MSVC++)
8321 linux* | k*bsd*-gnu | gnu*)
8328 # On some targets, GNU ld is compatible enough with the native linker
8329 # that we're better off using the native interface for both.
8330 lt_use_gnu_ld_interface=no
8331 if test "$with_gnu_ld" = yes; then
8334 # The AIX port of GNU ld has always aspired to compatibility
8335 # with the native linker. However, as the warning in the GNU ld
8336 # block says, versions before 2.19.5* couldn't really create working
8337 # shared libraries, regardless of the interface used.
8338 case `$LD -v 2>&1` in
8339 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8340 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8341 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8343 lt_use_gnu_ld_interface=yes
8348 lt_use_gnu_ld_interface=yes
8353 if test "$lt_use_gnu_ld_interface" = yes; then
8354 # If archive_cmds runs LD, not CC, wlarc should be empty
8357 # Set some defaults for GNU ld with shared library support. These
8358 # are reset later if shared libraries are not supported. Putting them
8359 # here allows them to be overridden if necessary.
8360 runpath_var=LD_RUN_PATH
8361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8362 export_dynamic_flag_spec='${wl}--export-dynamic'
8363 # ancient GNU ld didn't support --whole-archive et. al.
8364 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8365 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8367 whole_archive_flag_spec=
8369 supports_anon_versioning=no
8370 case `$LD -v 2>&1` in
8371 *GNU\ gold*) supports_anon_versioning=yes ;;
8372 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8373 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8374 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8375 *\ 2.11.*) ;; # other 2.11 versions
8376 *) supports_anon_versioning=yes ;;
8379 # See if GNU ld supports shared libraries.
8382 # On AIX/PPC, the GNU linker is very broken
8383 if test "$host_cpu" != ia64; then
8387 *** Warning: the GNU linker, at least up to release 2.19, is reported
8388 *** to be unable to reliably create shared libraries on AIX.
8389 *** Therefore, libtool is disabling shared libraries support. If you
8390 *** really care for shared libraries, you may want to install binutils
8391 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8392 *** You will then need to restart the configuration process.
8401 # see comment about AmigaOS4 .so support
8402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8403 archive_expsym_cmds=''
8406 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)'
8407 hardcode_libdir_flag_spec='-L$libdir'
8408 hardcode_minus_L=yes
8414 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8415 allow_undefined_flag=unsupported
8416 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8417 # support --undefined. This deserves some investigation. FIXME
8418 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8424 cygwin* | mingw* | pw32* | cegcc*)
8425 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8426 # as there is no search path for DLLs.
8427 hardcode_libdir_flag_spec='-L$libdir'
8428 export_dynamic_flag_spec='${wl}--export-all-symbols'
8429 allow_undefined_flag=unsupported
8430 always_export_symbols=no
8431 enable_shared_with_static_runtimes=yes
8432 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'
8433 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8435 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8436 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8437 # If the export-symbols file already is a .def file (1st line
8438 # is EXPORTS), use it as is; otherwise, prepend...
8439 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8440 cp $export_symbols $output_objdir/$soname.def;
8442 echo EXPORTS > $output_objdir/$soname.def;
8443 cat $export_symbols >> $output_objdir/$soname.def;
8445 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8452 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8453 link_all_deplibs=yes
8458 hardcode_shlibpath_var=no
8459 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8460 export_dynamic_flag_spec='${wl}-E'
8461 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8462 # Instead, shared libraries are loaded at an image base (0x10000000 by
8463 # default) and relocated if they conflict, which is a slow very memory
8464 # consuming and fragmenting process. To avoid this, we pick a random,
8465 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8466 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8467 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8468 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'
8471 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8473 if test "$host_os" = linux-dietlibc; then
8474 case $cc_basename in
8475 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8478 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8479 && test "$tmp_diet" = no
8481 tmp_addflag=' $pic_flag'
8482 tmp_sharedflag='-shared'
8483 case $cc_basename,$host_cpu in
8484 pgcc*) # Portland Group C compiler
8485 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'
8486 tmp_addflag=' $pic_flag'
8488 pgf77* | pgf90* | pgf95* | pgfortran*)
8489 # Portland Group f77 and f90 compilers
8490 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'
8491 tmp_addflag=' $pic_flag -Mnomain' ;;
8492 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8493 tmp_addflag=' -i_dynamic' ;;
8494 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8495 tmp_addflag=' -i_dynamic -nofor_main' ;;
8496 ifc* | ifort*) # Intel Fortran compiler
8497 tmp_addflag=' -nofor_main' ;;
8498 lf95*) # Lahey Fortran 8.1
8499 whole_archive_flag_spec=
8500 tmp_sharedflag='--shared' ;;
8501 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8502 tmp_sharedflag='-qmkshrobj'
8504 nvcc*) # Cuda Compiler Driver 2.2
8505 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'
8506 compiler_needs_object=yes
8509 case `$CC -V 2>&1 | sed 5q` in
8510 *Sun\ C*) # Sun C 5.9
8511 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'
8512 compiler_needs_object=yes
8513 tmp_sharedflag='-G' ;;
8514 *Sun\ F*) # Sun Fortran 8.3
8515 tmp_sharedflag='-G' ;;
8517 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8519 if test "x$supports_anon_versioning" = xyes; then
8520 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8521 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8522 echo "local: *; };" >> $output_objdir/$libname.ver~
8523 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8526 case $cc_basename in
8527 xlf* | bgf* | bgxlf* | mpixlf*)
8528 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8529 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8531 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8532 if test "x$supports_anon_versioning" = xyes; then
8533 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8534 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8535 echo "local: *; };" >> $output_objdir/$libname.ver~
8536 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8545 netbsd* | netbsdelf*-gnu)
8546 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8547 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8550 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8551 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8556 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8560 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8561 *** create shared libraries on Solaris systems. Therefore, libtool
8562 *** is disabling shared libraries support. We urge you to upgrade GNU
8563 *** binutils to release 2.9.1 or newer. Another option is to modify
8564 *** your PATH or compiler configuration so that the native linker is
8565 *** used, and then restart.
8568 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8569 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8570 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8576 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8577 case `$LD -v 2>&1` in
8578 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8582 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8583 *** reliably create shared libraries on SCO systems. Therefore, libtool
8584 *** is disabling shared libraries support. We urge you to upgrade GNU
8585 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8586 *** your PATH or compiler configuration so that the native linker is
8587 *** used, and then restart.
8592 # For security reasons, it is highly recommended that you always
8593 # use absolute paths for naming shared libraries, and exclude the
8594 # DT_RUNPATH tag from executables and libraries. But doing so
8595 # requires that you compile everything twice, which is a pain.
8596 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8598 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8599 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8608 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8611 hardcode_shlibpath_var=no
8615 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8616 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8617 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8624 if test "$ld_shlibs" = no; then
8626 hardcode_libdir_flag_spec=
8627 export_dynamic_flag_spec=
8628 whole_archive_flag_spec=
8631 # PORTME fill in a description of your system's linker (not GNU ld)
8634 allow_undefined_flag=unsupported
8635 always_export_symbols=yes
8636 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'
8637 # Note: this linker hardcodes the directories in LIBPATH if there
8638 # are no directories specified by -L.
8639 hardcode_minus_L=yes
8640 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8641 # Neither direct hardcoding nor static linking is supported with a
8643 hardcode_direct=unsupported
8648 if test "$host_cpu" = ia64; then
8649 # On IA64, the linker does run time linking by default, so we don't
8650 # have to do anything special.
8651 aix_use_runtimelinking=no
8652 exp_sym_flag='-Bexport'
8655 # If we're using GNU nm, then we don't want the "-C" option.
8656 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8657 # Also, AIX nm treats weak defined symbols like other global
8658 # defined symbols, whereas GNU nm marks them as "W".
8659 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8660 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8662 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8664 aix_use_runtimelinking=no
8666 # Test if we are trying to use run time linking or normal
8667 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8668 # need to do runtime linking.
8669 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8670 for ld_flag in $LDFLAGS; do
8671 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8672 aix_use_runtimelinking=yes
8679 exp_sym_flag='-bexport'
8680 no_entry_flag='-bnoentry'
8683 # When large executables or shared objects are built, AIX ld can
8684 # have problems creating the table of contents. If linking a library
8685 # or program results in "error TOC overflow" add -mminimal-toc to
8686 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8687 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8691 hardcode_direct_absolute=yes
8692 hardcode_libdir_separator=':'
8693 link_all_deplibs=yes
8694 file_list_spec='${wl}-f,'
8696 if test "$GCC" = yes; then
8697 case $host_os in aix4.[012]|aix4.[012].*)
8698 # We only want to do this on AIX 4.2 and lower, the check
8699 # below for broken collect2 doesn't work under 4.3+
8700 collect2name=`${CC} -print-prog-name=collect2`
8701 if test -f "$collect2name" &&
8702 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8704 # We have reworked collect2
8707 # We have old collect2
8708 hardcode_direct=unsupported
8709 # It fails to find uninstalled libraries when the uninstalled
8710 # path is not listed in the libpath. Setting hardcode_minus_L
8711 # to unsupported forces relinking
8712 hardcode_minus_L=yes
8713 hardcode_libdir_flag_spec='-L$libdir'
8714 hardcode_libdir_separator=
8718 shared_flag='-shared'
8719 if test "$aix_use_runtimelinking" = yes; then
8720 shared_flag="$shared_flag "'${wl}-G'
8725 if test "$host_cpu" = ia64; then
8726 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8727 # chokes on -Wl,-G. The following line is correct:
8730 if test "$aix_use_runtimelinking" = yes; then
8731 shared_flag='${wl}-G'
8733 shared_flag='${wl}-bM:SRE'
8738 export_dynamic_flag_spec='${wl}-bexpall'
8739 # It seems that -bexpall does not export symbols beginning with
8740 # underscore (_), so it is better to generate a list of symbols to export.
8741 always_export_symbols=yes
8742 if test "$aix_use_runtimelinking" = yes; then
8743 # Warning - without using the other runtime loading flags (-brtl),
8744 # -berok will link without error, but may produce a broken library.
8745 allow_undefined_flag='-berok'
8746 # Determine the default libpath from the value encoded in an
8748 if test "${lt_cv_aix_libpath+set}" = set; then
8749 aix_libpath=$lt_cv_aix_libpath
8751 if ${lt_cv_aix_libpath_+:} false; then :
8752 $as_echo_n "(cached) " >&6
8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h. */
8765 if ac_fn_c_try_link "$LINENO"; then :
8767 lt_aix_libpath_sed='
8768 /Import File Strings/,/^$/ {
8770 s/^0 *\([^ ]*\) *$/\1/
8774 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8775 # Check for a 64-bit object if we didn't find anything.
8776 if test -z "$lt_cv_aix_libpath_"; then
8777 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8780 rm -f core conftest.err conftest.$ac_objext \
8781 conftest$ac_exeext conftest.$ac_ext
8782 if test -z "$lt_cv_aix_libpath_"; then
8783 lt_cv_aix_libpath_="/usr/lib:/lib"
8788 aix_libpath=$lt_cv_aix_libpath_
8791 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8792 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8794 if test "$host_cpu" = ia64; then
8795 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8796 allow_undefined_flag="-z nodefs"
8797 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"
8799 # Determine the default libpath from the value encoded in an
8801 if test "${lt_cv_aix_libpath+set}" = set; then
8802 aix_libpath=$lt_cv_aix_libpath
8804 if ${lt_cv_aix_libpath_+:} false; then :
8805 $as_echo_n "(cached) " >&6
8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808 /* end confdefs.h. */
8818 if ac_fn_c_try_link "$LINENO"; then :
8820 lt_aix_libpath_sed='
8821 /Import File Strings/,/^$/ {
8823 s/^0 *\([^ ]*\) *$/\1/
8827 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8828 # Check for a 64-bit object if we didn't find anything.
8829 if test -z "$lt_cv_aix_libpath_"; then
8830 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8833 rm -f core conftest.err conftest.$ac_objext \
8834 conftest$ac_exeext conftest.$ac_ext
8835 if test -z "$lt_cv_aix_libpath_"; then
8836 lt_cv_aix_libpath_="/usr/lib:/lib"
8841 aix_libpath=$lt_cv_aix_libpath_
8844 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8845 # Warning - without using the other run time loading flags,
8846 # -berok will link without error, but may produce a broken library.
8847 no_undefined_flag=' ${wl}-bernotok'
8848 allow_undefined_flag=' ${wl}-berok'
8849 if test "$with_gnu_ld" = yes; then
8850 # We only use this code for GNU lds that support --whole-archive.
8851 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8853 # Exported symbols can be pulled into shared objects from archives
8854 whole_archive_flag_spec='$convenience'
8856 archive_cmds_need_lc=yes
8857 # This is similar to how AIX traditionally builds its shared libraries.
8858 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8866 # see comment about AmigaOS4 .so support
8867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8868 archive_expsym_cmds=''
8871 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)'
8872 hardcode_libdir_flag_spec='-L$libdir'
8873 hardcode_minus_L=yes
8879 export_dynamic_flag_spec=-rdynamic
8882 cygwin* | mingw* | pw32* | cegcc*)
8883 # When not using gcc, we currently assume that we are using
8884 # Microsoft Visual C++.
8885 # hardcode_libdir_flag_spec is actually meaningless, as there is
8886 # no search path for DLLs.
8887 case $cc_basename in
8890 hardcode_libdir_flag_spec=' '
8891 allow_undefined_flag=unsupported
8892 always_export_symbols=yes
8894 # Tell ltmain to make .lib files, not .a files.
8896 # Tell ltmain to make .dll files, not .so files.
8898 # FIXME: Setting linknames here is a bad hack.
8899 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8900 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8901 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8903 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8905 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8907 # The linker will not automatically build a static lib if we build a DLL.
8908 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8909 enable_shared_with_static_runtimes=yes
8910 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8911 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8913 old_postinstall_cmds='chmod 644 $oldlib'
8914 postlink_cmds='lt_outputfile="@OUTPUT@"~
8915 lt_tool_outputfile="@TOOL_OUTPUT@"~
8916 case $lt_outputfile in
8919 lt_outputfile="$lt_outputfile.exe"
8920 lt_tool_outputfile="$lt_tool_outputfile.exe"
8923 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8924 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8925 $RM "$lt_outputfile.manifest";
8929 # Assume MSVC wrapper
8930 hardcode_libdir_flag_spec=' '
8931 allow_undefined_flag=unsupported
8932 # Tell ltmain to make .lib files, not .a files.
8934 # Tell ltmain to make .dll files, not .so files.
8936 # FIXME: Setting linknames here is a bad hack.
8937 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8938 # The linker will automatically build a .lib file if we build a DLL.
8939 old_archive_from_new_cmds='true'
8940 # FIXME: Should let the user specify the lib program.
8941 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8942 enable_shared_with_static_runtimes=yes
8947 darwin* | rhapsody*)
8950 archive_cmds_need_lc=no
8952 hardcode_automatic=yes
8953 hardcode_shlibpath_var=unsupported
8954 if test "$lt_cv_ld_force_load" = "yes"; then
8955 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\"`'
8958 whole_archive_flag_spec=''
8960 link_all_deplibs=yes
8961 allow_undefined_flag="$_lt_dar_allow_undefined"
8962 case $cc_basename in
8963 ifort*) _lt_dar_can_shared=yes ;;
8964 *) _lt_dar_can_shared=$GCC ;;
8966 if test "$_lt_dar_can_shared" = "yes"; then
8967 output_verbose_link_cmd=func_echo_all
8968 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8969 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8970 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}"
8971 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}"
8980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8981 hardcode_libdir_flag_spec='-L$libdir'
8982 hardcode_shlibpath_var=no
8985 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8986 # support. Future versions do this automatically, but an explicit c++rt0.o
8987 # does not break anything, and helps significantly (at the cost of a little
8990 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8991 hardcode_libdir_flag_spec='-R$libdir'
8993 hardcode_shlibpath_var=no
8996 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8998 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9000 hardcode_minus_L=yes
9001 hardcode_shlibpath_var=no
9004 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9005 freebsd* | dragonfly*)
9006 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9007 hardcode_libdir_flag_spec='-R$libdir'
9009 hardcode_shlibpath_var=no
9013 if test "$GCC" = yes; then
9014 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9016 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9018 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9019 hardcode_libdir_separator=:
9022 # hardcode_minus_L: Not really in the search PATH,
9023 # but as the default location of the library.
9024 hardcode_minus_L=yes
9025 export_dynamic_flag_spec='${wl}-E'
9029 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9030 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9032 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9034 if test "$with_gnu_ld" = no; then
9035 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9036 hardcode_libdir_separator=:
9038 hardcode_direct_absolute=yes
9039 export_dynamic_flag_spec='${wl}-E'
9040 # hardcode_minus_L: Not really in the search PATH,
9041 # but as the default location of the library.
9042 hardcode_minus_L=yes
9047 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9050 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9053 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9056 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9062 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9065 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9069 # Older versions of the 11.00 compiler do not understand -b yet
9070 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9072 $as_echo_n "checking if $CC understands -b... " >&6; }
9073 if ${lt_cv_prog_compiler__b+:} false; then :
9074 $as_echo_n "(cached) " >&6
9076 lt_cv_prog_compiler__b=no
9077 save_LDFLAGS="$LDFLAGS"
9078 LDFLAGS="$LDFLAGS -b"
9079 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9080 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9081 # The linker can only warn and ignore the option if not recognized
9082 # So say no if there are warnings
9083 if test -s conftest.err; then
9084 # Append any errors to the config.log.
9085 cat conftest.err 1>&5
9086 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9087 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9088 if diff conftest.exp conftest.er2 >/dev/null; then
9089 lt_cv_prog_compiler__b=yes
9092 lt_cv_prog_compiler__b=yes
9096 LDFLAGS="$save_LDFLAGS"
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9100 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9102 if test x"$lt_cv_prog_compiler__b" = xyes; then
9103 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9105 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9111 if test "$with_gnu_ld" = no; then
9112 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9113 hardcode_libdir_separator=:
9118 hardcode_shlibpath_var=no
9122 hardcode_direct_absolute=yes
9123 export_dynamic_flag_spec='${wl}-E'
9125 # hardcode_minus_L: Not really in the search PATH,
9126 # but as the default location of the library.
9127 hardcode_minus_L=yes
9133 irix5* | irix6* | nonstopux*)
9134 if test "$GCC" = yes; then
9135 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'
9136 # Try to use the -exported_symbol ld option, if it does not
9137 # work, assume that -exports_file does not work either and
9138 # implicitly export all symbols.
9139 # This should be the same for all languages, so no per-tag cache variable.
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9141 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9142 if ${lt_cv_irix_exported_symbol+:} false; then :
9143 $as_echo_n "(cached) " >&6
9145 save_LDFLAGS="$LDFLAGS"
9146 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9148 /* end confdefs.h. */
9149 int foo (void) { return 0; }
9151 if ac_fn_c_try_link "$LINENO"; then :
9152 lt_cv_irix_exported_symbol=yes
9154 lt_cv_irix_exported_symbol=no
9156 rm -f core conftest.err conftest.$ac_objext \
9157 conftest$ac_exeext conftest.$ac_ext
9158 LDFLAGS="$save_LDFLAGS"
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9161 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9162 if test "$lt_cv_irix_exported_symbol" = yes; then
9163 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'
9166 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'
9167 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'
9169 archive_cmds_need_lc='no'
9170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9171 hardcode_libdir_separator=:
9173 link_all_deplibs=yes
9176 netbsd* | netbsdelf*-gnu)
9177 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9178 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9180 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9182 hardcode_libdir_flag_spec='-R$libdir'
9184 hardcode_shlibpath_var=no
9188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9190 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9191 hardcode_libdir_separator=:
9192 hardcode_shlibpath_var=no
9199 if test -f /usr/libexec/ld.so; then
9201 hardcode_shlibpath_var=no
9202 hardcode_direct_absolute=yes
9203 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9204 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9205 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9206 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9207 export_dynamic_flag_spec='${wl}-E'
9210 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9211 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9212 hardcode_libdir_flag_spec='-R$libdir'
9215 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9216 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9226 hardcode_libdir_flag_spec='-L$libdir'
9227 hardcode_minus_L=yes
9228 allow_undefined_flag=unsupported
9229 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9230 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9234 if test "$GCC" = yes; then
9235 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9236 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'
9238 allow_undefined_flag=' -expect_unresolved \*'
9239 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'
9241 archive_cmds_need_lc='no'
9242 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9243 hardcode_libdir_separator=:
9246 osf4* | osf5*) # as osf3* with the addition of -msym flag
9247 if test "$GCC" = yes; then
9248 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9249 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'
9250 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9252 allow_undefined_flag=' -expect_unresolved \*'
9253 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'
9254 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~
9255 $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'
9257 # Both c and cxx compiler support -rpath directly
9258 hardcode_libdir_flag_spec='-rpath $libdir'
9260 archive_cmds_need_lc='no'
9261 hardcode_libdir_separator=:
9265 no_undefined_flag=' -z defs'
9266 if test "$GCC" = yes; then
9268 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9269 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9270 $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'
9272 case `$CC -V 2>&1` in
9275 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9276 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9277 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9281 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9282 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9283 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9287 hardcode_libdir_flag_spec='-R$libdir'
9288 hardcode_shlibpath_var=no
9290 solaris2.[0-5] | solaris2.[0-5].*) ;;
9292 # The compiler driver will combine and reorder linker options,
9293 # but understands `-z linker_flag'. GCC discards it without `$wl',
9294 # but is careful enough not to reorder.
9295 # Supported since Solaris 2.6 (maybe 2.5.1?)
9296 if test "$GCC" = yes; then
9297 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9299 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9303 link_all_deplibs=yes
9307 if test "x$host_vendor" = xsequent; then
9308 # Use $CC to link under sequent, because it throws in some extra .o
9309 # files that make .init and .fini sections work.
9310 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9312 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9314 hardcode_libdir_flag_spec='-L$libdir'
9316 hardcode_minus_L=yes
9317 hardcode_shlibpath_var=no
9321 case $host_vendor in
9323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9324 hardcode_direct=yes # is this really true???
9327 ## LD is ld it makes a PLAMLIB
9328 ## CC just makes a GrossModule.
9329 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9330 reload_cmds='$CC -r -o $output$reload_objs'
9334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9335 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9338 runpath_var='LD_RUN_PATH'
9339 hardcode_shlibpath_var=no
9343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9344 hardcode_shlibpath_var=no
9345 export_dynamic_flag_spec='-Bexport'
9349 if test -d /usr/nec; then
9350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9351 hardcode_shlibpath_var=no
9352 runpath_var=LD_RUN_PATH
9353 hardcode_runpath_var=yes
9358 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9359 no_undefined_flag='${wl}-z,text'
9360 archive_cmds_need_lc=no
9361 hardcode_shlibpath_var=no
9362 runpath_var='LD_RUN_PATH'
9364 if test "$GCC" = yes; then
9365 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9366 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9368 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9369 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9373 sysv5* | sco3.2v5* | sco5v6*)
9374 # Note: We can NOT use -z defs as we might desire, because we do not
9375 # link with -lc, and that would cause any symbols used from libc to
9376 # always be unresolved, which means just about no library would
9377 # ever link correctly. If we're not using GNU ld we use -z text
9378 # though, which does catch some bad symbols but isn't as heavy-handed
9380 no_undefined_flag='${wl}-z,text'
9381 allow_undefined_flag='${wl}-z,nodefs'
9382 archive_cmds_need_lc=no
9383 hardcode_shlibpath_var=no
9384 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9385 hardcode_libdir_separator=':'
9386 link_all_deplibs=yes
9387 export_dynamic_flag_spec='${wl}-Bexport'
9388 runpath_var='LD_RUN_PATH'
9390 if test "$GCC" = yes; then
9391 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9392 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9394 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9395 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9401 hardcode_libdir_flag_spec='-L$libdir'
9402 hardcode_shlibpath_var=no
9410 if test x$host_vendor = xsni; then
9412 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9413 export_dynamic_flag_spec='${wl}-Blargedynsym'
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9420 $as_echo "$ld_shlibs" >&6; }
9421 test "$ld_shlibs" = no && can_build_shared=no
9423 with_gnu_ld=$with_gnu_ld
9440 # Do we need to explicitly link libc?
9442 case "x$archive_cmds_need_lc" in
9444 # Assume -lc should be added
9445 archive_cmds_need_lc=yes
9447 if test "$enable_shared" = yes && test "$GCC" = yes; then
9448 case $archive_cmds in
9450 # FIXME: we may have to deal with multi-command sequences.
9453 # Test whether the compiler implicitly links with -lc since on some
9454 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9455 # to ld, don't add -lc before -lgcc.
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9457 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9458 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9459 $as_echo_n "(cached) " >&6
9462 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9465 (eval $ac_compile) 2>&5
9467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9468 test $ac_status = 0; } 2>conftest.err; then
9471 libobjs=conftest.$ac_objext
9473 wl=$lt_prog_compiler_wl
9474 pic_flag=$lt_prog_compiler_pic
9480 lt_save_allow_undefined_flag=$allow_undefined_flag
9481 allow_undefined_flag=
9482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9483 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9486 test $ac_status = 0; }
9488 lt_cv_archive_cmds_need_lc=no
9490 lt_cv_archive_cmds_need_lc=yes
9492 allow_undefined_flag=$lt_save_allow_undefined_flag
9494 cat conftest.err 1>&5
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9500 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9501 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9660 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9662 if test "$GCC" = yes; then
9664 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9665 *) lt_awk_arg="/^libraries:/" ;;
9668 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9669 *) lt_sed_strip_eq="s,=/,/,g" ;;
9671 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9672 case $lt_search_path_spec in
9674 # if the path contains ";" then we assume it to be the separator
9675 # otherwise default to the standard path separator (i.e. ":") - it is
9676 # assumed that no part of a normal pathname contains ";" but that should
9677 # okay in the real world where ";" in dirpaths is itself problematic.
9678 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9681 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9684 # Ok, now we have the path, separated by spaces, we can step through it
9685 # and add multilib dir if necessary.
9686 lt_tmp_lt_search_path_spec=
9687 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9688 for lt_sys_path in $lt_search_path_spec; do
9689 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9690 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9692 test -d "$lt_sys_path" && \
9693 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9696 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9697 BEGIN {RS=" "; FS="/|\n";} {
9700 for (lt_i = NF; lt_i > 0; lt_i--) {
9701 if ($lt_i != "" && $lt_i != ".") {
9702 if ($lt_i == "..") {
9705 if (lt_count == 0) {
9706 lt_foo="/" $lt_i lt_foo;
9713 if (lt_foo != "") { lt_freq[lt_foo]++; }
9714 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9716 # AWK program above erroneously prepends '/' to C:/dos/paths
9719 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9720 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9722 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9724 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9727 libname_spec='lib$name'
9735 shlibpath_overrides_runpath=unknown
9737 dynamic_linker="$host_os ld.so"
9738 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9739 need_lib_prefix=unknown
9740 hardcode_into_libs=no
9742 # when you set need_version to no, make sure it does not cause -set_version
9743 # flags to be left without arguments
9744 need_version=unknown
9748 version_type=linux # correct to gnu/linux during the next big refactor
9749 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9750 shlibpath_var=LIBPATH
9752 # AIX 3 has no versioning support, so we append a major version to the name.
9753 soname_spec='${libname}${release}${shared_ext}$major'
9757 version_type=linux # correct to gnu/linux during the next big refactor
9760 hardcode_into_libs=yes
9761 if test "$host_cpu" = ia64; then
9762 # AIX 5 supports IA64
9763 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9764 shlibpath_var=LD_LIBRARY_PATH
9766 # With GCC up to 2.95.x, collect2 would create an import file
9767 # for dependence libraries. The import file would start with
9768 # the line `#! .'. This would cause the generated library to
9769 # depend on `.', always an invalid library. This was fixed in
9770 # development snapshots of GCC prior to 3.0.
9772 aix4 | aix4.[01] | aix4.[01].*)
9773 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9775 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9782 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9783 # soname into executable. Probably we can add versioning support to
9784 # collect2, so additional links can be useful in future.
9785 if test "$aix_use_runtimelinking" = yes; then
9786 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9787 # instead of lib<name>.a to let people know that these are not
9788 # typical AIX shared libraries.
9789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9791 # We preserve .a as extension for shared libraries through AIX4.2
9792 # and later when we are not doing run time linking.
9793 library_names_spec='${libname}${release}.a $libname.a'
9794 soname_spec='${libname}${release}${shared_ext}$major'
9796 shlibpath_var=LIBPATH
9803 # Since July 2007 AmigaOS4 officially supports .so libraries.
9804 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9808 library_names_spec='$libname.ixlibrary $libname.a'
9809 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9810 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9816 library_names_spec='${libname}${shared_ext}'
9817 dynamic_linker="$host_os ld.so"
9818 shlibpath_var=LIBRARY_PATH
9822 version_type=linux # correct to gnu/linux during the next big refactor
9824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9825 soname_spec='${libname}${release}${shared_ext}$major'
9826 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9827 shlibpath_var=LD_LIBRARY_PATH
9828 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9829 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9830 # the default ld.so.conf also contains /usr/contrib/lib and
9831 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9832 # libtool to hard-code these into programs
9835 cygwin* | mingw* | pw32* | cegcc*)
9836 version_type=windows
9841 case $GCC,$cc_basename in
9844 library_names_spec='$libname.dll.a'
9845 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9846 postinstall_cmds='base_file=`basename \${file}`~
9847 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9848 dldir=$destdir/`dirname \$dlpath`~
9849 test -d \$dldir || mkdir -p \$dldir~
9850 $install_prog $dir/$dlname \$dldir/$dlname~
9851 chmod a+x \$dldir/$dlname~
9852 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9853 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9855 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9856 dlpath=$dir/\$dldll~
9858 shlibpath_overrides_runpath=yes
9862 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9863 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9865 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9868 # MinGW DLLs use traditional 'lib' prefix
9869 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9872 # pw32 DLLs use 'pw' prefix rather than 'lib'
9873 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9876 dynamic_linker='Win32 ld.exe'
9881 libname_spec='$name'
9882 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9883 library_names_spec='${libname}.dll.lib'
9887 sys_lib_search_path_spec=
9893 # Let DOS variable expansion print the short 8.3 style file name.
9894 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9895 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9898 # Convert to MSYS style.
9899 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9902 # Convert to unix form, then to dos form, then back to unix form
9903 # but this time dos style (no spaces!) so that the unix form looks
9904 # like /cygdrive/c/PROGRA~1:/cygdr...
9905 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9906 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9907 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9910 sys_lib_search_path_spec="$LIB"
9911 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9912 # It is most probably a Windows format PATH.
9913 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9915 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9917 # FIXME: find the short name or the path components, as spaces are
9918 # common. (e.g. "Program Files" -> "PROGRA~1")
9922 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9923 postinstall_cmds='base_file=`basename \${file}`~
9924 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9925 dldir=$destdir/`dirname \$dlpath`~
9926 test -d \$dldir || mkdir -p \$dldir~
9927 $install_prog $dir/$dlname \$dldir/$dlname'
9928 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9929 dlpath=$dir/\$dldll~
9931 shlibpath_overrides_runpath=yes
9932 dynamic_linker='Win32 link.exe'
9936 # Assume MSVC wrapper
9937 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9938 dynamic_linker='Win32 ld.exe'
9941 # FIXME: first we should search . and the directory the executable is in
9945 darwin* | rhapsody*)
9946 dynamic_linker="$host_os dyld"
9950 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9951 soname_spec='${libname}${release}${major}$shared_ext'
9952 shlibpath_overrides_runpath=yes
9953 shlibpath_var=DYLD_LIBRARY_PATH
9954 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9956 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9957 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9961 version_type=linux # correct to gnu/linux during the next big refactor
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9965 soname_spec='${libname}${release}${shared_ext}$major'
9966 shlibpath_var=LD_LIBRARY_PATH
9969 freebsd* | dragonfly*)
9970 # DragonFly does not have aout. When/if they implement a new
9971 # versioning mechanism, adjust this.
9972 if test -x /usr/bin/objformat; then
9973 objformat=`/usr/bin/objformat`
9976 freebsd[23].*) objformat=aout ;;
9980 version_type=freebsd-$objformat
9981 case $version_type in
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9992 shlibpath_var=LD_LIBRARY_PATH
9995 shlibpath_overrides_runpath=yes
9997 freebsd3.[01]* | freebsdelf3.[01]*)
9998 shlibpath_overrides_runpath=yes
9999 hardcode_into_libs=yes
10001 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10002 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10003 shlibpath_overrides_runpath=no
10004 hardcode_into_libs=yes
10006 *) # from 4.6 on, and DragonFly
10007 shlibpath_overrides_runpath=yes
10008 hardcode_into_libs=yes
10014 version_type=linux # correct to gnu/linux during the next big refactor
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 shlibpath_var=LD_LIBRARY_PATH
10020 shlibpath_overrides_runpath=no
10021 hardcode_into_libs=yes
10025 version_type=linux # correct to gnu/linux during the next big refactor
10028 dynamic_linker="$host_os runtime_loader"
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10030 soname_spec='${libname}${release}${shared_ext}$major'
10031 shlibpath_var=LIBRARY_PATH
10032 shlibpath_overrides_runpath=yes
10033 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10034 hardcode_into_libs=yes
10037 hpux9* | hpux10* | hpux11*)
10038 # Give a soname corresponding to the major version so that dld.sl refuses to
10039 # link against other versions.
10046 hardcode_into_libs=yes
10047 dynamic_linker="$host_os dld.so"
10048 shlibpath_var=LD_LIBRARY_PATH
10049 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10051 soname_spec='${libname}${release}${shared_ext}$major'
10052 if test "X$HPUX_IA64_MODE" = X32; then
10053 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10055 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10057 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10061 hardcode_into_libs=yes
10062 dynamic_linker="$host_os dld.sl"
10063 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10064 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10066 soname_spec='${libname}${release}${shared_ext}$major'
10067 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10068 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10072 dynamic_linker="$host_os dld.sl"
10073 shlibpath_var=SHLIB_PATH
10074 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10076 soname_spec='${libname}${release}${shared_ext}$major'
10079 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10080 postinstall_cmds='chmod 555 $lib'
10081 # or fails outright, so override atomically:
10082 install_override_mode=555
10086 version_type=linux # correct to gnu/linux during the next big refactor
10089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10090 soname_spec='${libname}${release}${shared_ext}$major'
10091 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10092 shlibpath_var=LD_LIBRARY_PATH
10093 shlibpath_overrides_runpath=no
10094 hardcode_into_libs=yes
10097 irix5* | irix6* | nonstopux*)
10099 nonstopux*) version_type=nonstopux ;;
10101 if test "$lt_cv_prog_gnu_ld" = yes; then
10102 version_type=linux # correct to gnu/linux during the next big refactor
10109 soname_spec='${libname}${release}${shared_ext}$major'
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10112 irix5* | nonstopux*)
10113 libsuff= shlibsuff=
10116 case $LD in # libtool.m4 will add one of these switches to LD
10117 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10118 libsuff= shlibsuff= libmagic=32-bit;;
10119 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10120 libsuff=32 shlibsuff=N32 libmagic=N32;;
10121 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10122 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10123 *) libsuff= shlibsuff= libmagic=never-match;;
10127 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10128 shlibpath_overrides_runpath=no
10129 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10130 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10131 hardcode_into_libs=yes
10134 # No shared lib support for Linux oldld, aout, or coff.
10135 linux*oldld* | linux*aout* | linux*coff*)
10139 # This must be glibc/ELF.
10140 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10141 version_type=linux # correct to gnu/linux during the next big refactor
10144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145 soname_spec='${libname}${release}${shared_ext}$major'
10146 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10147 shlibpath_var=LD_LIBRARY_PATH
10148 shlibpath_overrides_runpath=no
10150 # Some binutils ld are patched to set DT_RUNPATH
10151 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10152 $as_echo_n "(cached) " >&6
10154 lt_cv_shlibpath_overrides_runpath=no
10155 save_LDFLAGS=$LDFLAGS
10156 save_libdir=$libdir
10157 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10158 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h. */
10170 if ac_fn_c_try_link "$LINENO"; then :
10171 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10172 lt_cv_shlibpath_overrides_runpath=yes
10175 rm -f core conftest.err conftest.$ac_objext \
10176 conftest$ac_exeext conftest.$ac_ext
10177 LDFLAGS=$save_LDFLAGS
10178 libdir=$save_libdir
10182 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10184 # This implies no fast_install, which is unacceptable.
10185 # Some rework will be needed to allow for fast_install
10186 # before this can be enabled.
10187 hardcode_into_libs=yes
10189 # Append ld.so.conf contents to the search path
10190 if test -f /etc/ld.so.conf; then
10191 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' ' '`
10192 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10195 # We used to test for /lib/ld.so.1 and disable shared libraries on
10196 # powerpc, because MkLinux only supported shared libraries with the
10197 # GNU dynamic linker. Since this was broken with cross compilers,
10198 # most powerpc-linux boxes support dynamic linking these days and
10199 # people can always --disable-shared, the test was removed, and we
10200 # assume the GNU/Linux dynamic linker is in use.
10201 dynamic_linker='GNU/Linux ld.so'
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10209 soname_spec='${libname}${release}${shared_ext}$major'
10210 shlibpath_var=LD_LIBRARY_PATH
10211 shlibpath_overrides_runpath=no
10212 hardcode_into_libs=yes
10213 dynamic_linker='NetBSD ld.elf_so'
10220 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10223 dynamic_linker='NetBSD (a.out) ld.so'
10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10226 soname_spec='${libname}${release}${shared_ext}$major'
10227 dynamic_linker='NetBSD ld.elf_so'
10229 shlibpath_var=LD_LIBRARY_PATH
10230 shlibpath_overrides_runpath=yes
10231 hardcode_into_libs=yes
10235 version_type=linux # correct to gnu/linux during the next big refactor
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237 shlibpath_var=LD_LIBRARY_PATH
10238 shlibpath_overrides_runpath=yes
10245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10246 soname_spec='${libname}${release}${shared_ext}$major'
10247 shlibpath_var=LD_LIBRARY_PATH
10248 shlibpath_overrides_runpath=no
10249 hardcode_into_libs=yes
10250 dynamic_linker='ldqnx.so'
10255 sys_lib_dlsearch_path_spec="/usr/lib"
10257 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10259 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10260 *) need_version=no ;;
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10264 shlibpath_var=LD_LIBRARY_PATH
10265 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10267 openbsd2.[89] | openbsd2.[89].*)
10268 shlibpath_overrides_runpath=no
10271 shlibpath_overrides_runpath=yes
10275 shlibpath_overrides_runpath=yes
10280 libname_spec='$name'
10283 library_names_spec='$libname${shared_ext} $libname.a'
10284 dynamic_linker='OS/2 ld.exe'
10285 shlibpath_var=LIBPATH
10288 osf3* | osf4* | osf5*)
10292 soname_spec='${libname}${release}${shared_ext}$major'
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10294 shlibpath_var=LD_LIBRARY_PATH
10295 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10296 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10304 version_type=linux # correct to gnu/linux during the next big refactor
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308 soname_spec='${libname}${release}${shared_ext}$major'
10309 shlibpath_var=LD_LIBRARY_PATH
10310 shlibpath_overrides_runpath=yes
10311 hardcode_into_libs=yes
10312 # ldd complains unless libraries are executable
10313 postinstall_cmds='chmod +x $lib'
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10319 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10320 shlibpath_var=LD_LIBRARY_PATH
10321 shlibpath_overrides_runpath=yes
10322 if test "$with_gnu_ld" = yes; then
10329 version_type=linux # correct to gnu/linux during the next big refactor
10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10331 soname_spec='${libname}${release}${shared_ext}$major'
10332 shlibpath_var=LD_LIBRARY_PATH
10333 case $host_vendor in
10335 shlibpath_overrides_runpath=no
10337 runpath_var=LD_RUN_PATH
10345 shlibpath_overrides_runpath=no
10346 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10352 if test -d /usr/nec ;then
10353 version_type=linux # correct to gnu/linux during the next big refactor
10354 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10355 soname_spec='$libname${shared_ext}.$major'
10356 shlibpath_var=LD_LIBRARY_PATH
10360 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10361 version_type=freebsd-elf
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 shlibpath_var=LD_LIBRARY_PATH
10367 shlibpath_overrides_runpath=yes
10368 hardcode_into_libs=yes
10369 if test "$with_gnu_ld" = yes; then
10370 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10372 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10375 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10379 sys_lib_dlsearch_path_spec='/usr/lib'
10383 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10384 version_type=linux # correct to gnu/linux during the next big refactor
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388 shlibpath_var=LD_LIBRARY_PATH
10389 shlibpath_overrides_runpath=no
10390 hardcode_into_libs=yes
10394 version_type=linux # correct to gnu/linux during the next big refactor
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10396 soname_spec='${libname}${release}${shared_ext}$major'
10397 shlibpath_var=LD_LIBRARY_PATH
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10405 $as_echo "$dynamic_linker" >&6; }
10406 test "$dynamic_linker" = no && can_build_shared=no
10408 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10409 if test "$GCC" = yes; then
10410 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10413 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10414 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10416 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10417 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10512 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10514 if test -n "$hardcode_libdir_flag_spec" ||
10515 test -n "$runpath_var" ||
10516 test "X$hardcode_automatic" = "Xyes" ; then
10518 # We can hardcode non-existent directories.
10519 if test "$hardcode_direct" != no &&
10520 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10521 # have to relink, otherwise we might link with an installed library
10522 # when we should be linking with a yet-to-be-installed one
10523 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10524 test "$hardcode_minus_L" != no; then
10525 # Linking always hardcodes the temporary library directory.
10526 hardcode_action=relink
10528 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10529 hardcode_action=immediate
10532 # We cannot hardcode anything, or else we can only hardcode existing
10534 hardcode_action=unsupported
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10537 $as_echo "$hardcode_action" >&6; }
10539 if test "$hardcode_action" = relink ||
10540 test "$inherit_rpath" = yes; then
10541 # Fast installation is not supported
10542 enable_fast_install=no
10543 elif test "$shlibpath_overrides_runpath" = yes ||
10544 test "$enable_shared" = no; then
10545 # Fast installation is not necessary
10546 enable_fast_install=needless
10554 if test "x$enable_dlopen" != xyes; then
10555 enable_dlopen=unknown
10556 enable_dlopen_self=unknown
10557 enable_dlopen_self_static=unknown
10564 lt_cv_dlopen="load_add_on"
10566 lt_cv_dlopen_self=yes
10569 mingw* | pw32* | cegcc*)
10570 lt_cv_dlopen="LoadLibrary"
10575 lt_cv_dlopen="dlopen"
10580 # if libdl is installed we need to link against it
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10582 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10583 if ${ac_cv_lib_dl_dlopen+:} false; then :
10584 $as_echo_n "(cached) " >&6
10586 ac_check_lib_save_LIBS=$LIBS
10588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589 /* end confdefs.h. */
10591 /* Override any GCC internal prototype to avoid an error.
10592 Use char because int might match the return type of a GCC
10593 builtin and then its argument prototype would still apply. */
10606 if ac_fn_c_try_link "$LINENO"; then :
10607 ac_cv_lib_dl_dlopen=yes
10609 ac_cv_lib_dl_dlopen=no
10611 rm -f core conftest.err conftest.$ac_objext \
10612 conftest$ac_exeext conftest.$ac_ext
10613 LIBS=$ac_check_lib_save_LIBS
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10616 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10617 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10618 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10621 lt_cv_dlopen="dyld"
10623 lt_cv_dlopen_self=yes
10630 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10631 if test "x$ac_cv_func_shl_load" = xyes; then :
10632 lt_cv_dlopen="shl_load"
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10635 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10636 if ${ac_cv_lib_dld_shl_load+:} false; then :
10637 $as_echo_n "(cached) " >&6
10639 ac_check_lib_save_LIBS=$LIBS
10641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10644 /* Override any GCC internal prototype to avoid an error.
10645 Use char because int might match the return type of a GCC
10646 builtin and then its argument prototype would still apply. */
10654 return shl_load ();
10659 if ac_fn_c_try_link "$LINENO"; then :
10660 ac_cv_lib_dld_shl_load=yes
10662 ac_cv_lib_dld_shl_load=no
10664 rm -f core conftest.err conftest.$ac_objext \
10665 conftest$ac_exeext conftest.$ac_ext
10666 LIBS=$ac_check_lib_save_LIBS
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10669 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10670 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10671 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10673 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10674 if test "x$ac_cv_func_dlopen" = xyes; then :
10675 lt_cv_dlopen="dlopen"
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10678 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10679 if ${ac_cv_lib_dl_dlopen+:} false; then :
10680 $as_echo_n "(cached) " >&6
10682 ac_check_lib_save_LIBS=$LIBS
10684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685 /* end confdefs.h. */
10687 /* Override any GCC internal prototype to avoid an error.
10688 Use char because int might match the return type of a GCC
10689 builtin and then its argument prototype would still apply. */
10702 if ac_fn_c_try_link "$LINENO"; then :
10703 ac_cv_lib_dl_dlopen=yes
10705 ac_cv_lib_dl_dlopen=no
10707 rm -f core conftest.err conftest.$ac_objext \
10708 conftest$ac_exeext conftest.$ac_ext
10709 LIBS=$ac_check_lib_save_LIBS
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10712 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10713 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10714 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10717 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10718 if ${ac_cv_lib_svld_dlopen+:} false; then :
10719 $as_echo_n "(cached) " >&6
10721 ac_check_lib_save_LIBS=$LIBS
10722 LIBS="-lsvld $LIBS"
10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724 /* end confdefs.h. */
10726 /* Override any GCC internal prototype to avoid an error.
10727 Use char because int might match the return type of a GCC
10728 builtin and then its argument prototype would still apply. */
10741 if ac_fn_c_try_link "$LINENO"; then :
10742 ac_cv_lib_svld_dlopen=yes
10744 ac_cv_lib_svld_dlopen=no
10746 rm -f core conftest.err conftest.$ac_objext \
10747 conftest$ac_exeext conftest.$ac_ext
10748 LIBS=$ac_check_lib_save_LIBS
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10751 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10752 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10753 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10756 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10757 if ${ac_cv_lib_dld_dld_link+:} false; then :
10758 $as_echo_n "(cached) " >&6
10760 ac_check_lib_save_LIBS=$LIBS
10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h. */
10765 /* Override any GCC internal prototype to avoid an error.
10766 Use char because int might match the return type of a GCC
10767 builtin and then its argument prototype would still apply. */
10775 return dld_link ();
10780 if ac_fn_c_try_link "$LINENO"; then :
10781 ac_cv_lib_dld_dld_link=yes
10783 ac_cv_lib_dld_dld_link=no
10785 rm -f core conftest.err conftest.$ac_objext \
10786 conftest$ac_exeext conftest.$ac_ext
10787 LIBS=$ac_check_lib_save_LIBS
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10790 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10791 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10792 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10813 if test "x$lt_cv_dlopen" != xno; then
10819 case $lt_cv_dlopen in
10821 save_CPPFLAGS="$CPPFLAGS"
10822 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10824 save_LDFLAGS="$LDFLAGS"
10825 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10828 LIBS="$lt_cv_dlopen_libs $LIBS"
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10831 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10832 if ${lt_cv_dlopen_self+:} false; then :
10833 $as_echo_n "(cached) " >&6
10835 if test "$cross_compiling" = yes; then :
10836 lt_cv_dlopen_self=cross
10838 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10839 lt_status=$lt_dlunknown
10840 cat > conftest.$ac_ext <<_LT_EOF
10841 #line $LINENO "configure"
10842 #include "confdefs.h"
10851 # define LT_DLGLOBAL RTLD_GLOBAL
10854 # define LT_DLGLOBAL DL_GLOBAL
10856 # define LT_DLGLOBAL 0
10860 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10861 find out it does not work in some platform. */
10862 #ifndef LT_DLLAZY_OR_NOW
10864 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10867 # define LT_DLLAZY_OR_NOW DL_LAZY
10870 # define LT_DLLAZY_OR_NOW RTLD_NOW
10873 # define LT_DLLAZY_OR_NOW DL_NOW
10875 # define LT_DLLAZY_OR_NOW 0
10882 /* When -fvisbility=hidden is used, assume the code has been annotated
10883 correspondingly for the symbols needed. */
10884 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10885 int fnord () __attribute__((visibility("default")));
10888 int fnord () { return 42; }
10891 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10892 int status = $lt_dlunknown;
10896 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10899 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10900 else puts (dlerror ());
10902 /* dlclose (self); */
10910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10911 (eval $ac_link) 2>&5
10913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10914 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10915 (./conftest; exit; ) >&5 2>/dev/null
10917 case x$lt_status in
10918 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10919 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10920 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10923 # compilation failed
10924 lt_cv_dlopen_self=no
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10932 $as_echo "$lt_cv_dlopen_self" >&6; }
10934 if test "x$lt_cv_dlopen_self" = xyes; then
10935 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10937 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10938 if ${lt_cv_dlopen_self_static+:} false; then :
10939 $as_echo_n "(cached) " >&6
10941 if test "$cross_compiling" = yes; then :
10942 lt_cv_dlopen_self_static=cross
10944 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10945 lt_status=$lt_dlunknown
10946 cat > conftest.$ac_ext <<_LT_EOF
10947 #line $LINENO "configure"
10948 #include "confdefs.h"
10957 # define LT_DLGLOBAL RTLD_GLOBAL
10960 # define LT_DLGLOBAL DL_GLOBAL
10962 # define LT_DLGLOBAL 0
10966 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10967 find out it does not work in some platform. */
10968 #ifndef LT_DLLAZY_OR_NOW
10970 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10973 # define LT_DLLAZY_OR_NOW DL_LAZY
10976 # define LT_DLLAZY_OR_NOW RTLD_NOW
10979 # define LT_DLLAZY_OR_NOW DL_NOW
10981 # define LT_DLLAZY_OR_NOW 0
10988 /* When -fvisbility=hidden is used, assume the code has been annotated
10989 correspondingly for the symbols needed. */
10990 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10991 int fnord () __attribute__((visibility("default")));
10994 int fnord () { return 42; }
10997 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10998 int status = $lt_dlunknown;
11002 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11005 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11006 else puts (dlerror ());
11008 /* dlclose (self); */
11016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11017 (eval $ac_link) 2>&5
11019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11020 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11021 (./conftest; exit; ) >&5 2>/dev/null
11023 case x$lt_status in
11024 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11025 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11026 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11029 # compilation failed
11030 lt_cv_dlopen_self_static=no
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11038 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11041 CPPFLAGS="$save_CPPFLAGS"
11042 LDFLAGS="$save_LDFLAGS"
11047 case $lt_cv_dlopen_self in
11048 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11049 *) enable_dlopen_self=unknown ;;
11052 case $lt_cv_dlopen_self_static in
11053 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11054 *) enable_dlopen_self_static=unknown ;;
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11077 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11078 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11079 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11080 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11082 $as_echo "yes" >&6; }
11084 # FIXME - insert some real tests, host_os isn't really good enough
11087 if test -n "$STRIP" ; then
11088 striplib="$STRIP -x"
11089 old_striplib="$STRIP -S"
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11091 $as_echo "yes" >&6; }
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094 $as_echo "no" >&6; }
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11099 $as_echo "no" >&6; }
11115 # Report which library types will actually be built
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11117 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11119 $as_echo "$can_build_shared" >&6; }
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11122 $as_echo_n "checking whether to build shared libraries... " >&6; }
11123 test "$can_build_shared" = "no" && enable_shared=no
11125 # On AIX, shared libraries and static libraries use the same namespace, and
11126 # are all built from PIC.
11129 test "$enable_shared" = yes && enable_static=no
11130 if test -n "$RANLIB"; then
11131 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11132 postinstall_cmds='$RANLIB $lib'
11137 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11138 test "$enable_shared" = yes && enable_static=no
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11143 $as_echo "$enable_shared" >&6; }
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11146 $as_echo_n "checking whether to build static libraries... " >&6; }
11147 # Make sure either enable_shared or enable_static is yes.
11148 test "$enable_shared" = yes || enable_static=yes
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11150 $as_echo "$enable_static" >&6; }
11157 ac_cpp='$CPP $CPPFLAGS'
11158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11178 ac_config_commands="$ac_config_commands libtool"
11183 # Only expand once:
11187 ac_cpp='$CPP $CPPFLAGS'
11188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11191 if test -n "$ac_tool_prefix"; then
11192 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11193 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11195 $as_echo_n "checking for $ac_word... " >&6; }
11196 if ${ac_cv_prog_CC+:} false; then :
11197 $as_echo_n "(cached) " >&6
11199 if test -n "$CC"; then
11200 ac_cv_prog_CC="$CC" # Let the user override the test.
11202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203 for as_dir in $PATH
11206 test -z "$as_dir" && as_dir=.
11207 for ac_exec_ext in '' $ac_executable_extensions; do
11208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11209 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11220 if test -n "$CC"; then
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11222 $as_echo "$CC" >&6; }
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225 $as_echo "no" >&6; }
11230 if test -z "$ac_cv_prog_CC"; then
11232 # Extract the first word of "gcc", so it can be a program name with args.
11233 set dummy gcc; ac_word=$2
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11235 $as_echo_n "checking for $ac_word... " >&6; }
11236 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11237 $as_echo_n "(cached) " >&6
11239 if test -n "$ac_ct_CC"; then
11240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11243 for as_dir in $PATH
11246 test -z "$as_dir" && as_dir=.
11247 for ac_exec_ext in '' $ac_executable_extensions; do
11248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11249 ac_cv_prog_ac_ct_CC="gcc"
11250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11259 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11260 if test -n "$ac_ct_CC"; then
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11262 $as_echo "$ac_ct_CC" >&6; }
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11265 $as_echo "no" >&6; }
11268 if test "x$ac_ct_CC" = x; then
11271 case $cross_compiling:$ac_tool_warned in
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11275 ac_tool_warned=yes ;;
11280 CC="$ac_cv_prog_CC"
11283 if test -z "$CC"; then
11284 if test -n "$ac_tool_prefix"; then
11285 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11286 set dummy ${ac_tool_prefix}cc; ac_word=$2
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11288 $as_echo_n "checking for $ac_word... " >&6; }
11289 if ${ac_cv_prog_CC+:} false; then :
11290 $as_echo_n "(cached) " >&6
11292 if test -n "$CC"; then
11293 ac_cv_prog_CC="$CC" # Let the user override the test.
11295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296 for as_dir in $PATH
11299 test -z "$as_dir" && as_dir=.
11300 for ac_exec_ext in '' $ac_executable_extensions; do
11301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11302 ac_cv_prog_CC="${ac_tool_prefix}cc"
11303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11313 if test -n "$CC"; then
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11315 $as_echo "$CC" >&6; }
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318 $as_echo "no" >&6; }
11324 if test -z "$CC"; then
11325 # Extract the first word of "cc", so it can be a program name with args.
11326 set dummy cc; ac_word=$2
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11328 $as_echo_n "checking for $ac_word... " >&6; }
11329 if ${ac_cv_prog_CC+:} false; then :
11330 $as_echo_n "(cached) " >&6
11332 if test -n "$CC"; then
11333 ac_cv_prog_CC="$CC" # Let the user override the test.
11335 ac_prog_rejected=no
11336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11337 for as_dir in $PATH
11340 test -z "$as_dir" && as_dir=.
11341 for ac_exec_ext in '' $ac_executable_extensions; do
11342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11343 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11344 ac_prog_rejected=yes
11348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11355 if test $ac_prog_rejected = yes; then
11356 # We found a bogon in the path, so make sure we never use it.
11357 set dummy $ac_cv_prog_CC
11359 if test $# != 0; then
11360 # We chose a different compiler from the bogus one.
11361 # However, it has the same basename, so the bogon will be chosen
11362 # first if we set CC to just the basename; use the full file name.
11364 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11370 if test -n "$CC"; then
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11372 $as_echo "$CC" >&6; }
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375 $as_echo "no" >&6; }
11380 if test -z "$CC"; then
11381 if test -n "$ac_tool_prefix"; then
11382 for ac_prog in cl.exe
11384 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11385 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11387 $as_echo_n "checking for $ac_word... " >&6; }
11388 if ${ac_cv_prog_CC+:} false; then :
11389 $as_echo_n "(cached) " >&6
11391 if test -n "$CC"; then
11392 ac_cv_prog_CC="$CC" # Let the user override the test.
11394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11395 for as_dir in $PATH
11398 test -z "$as_dir" && as_dir=.
11399 for ac_exec_ext in '' $ac_executable_extensions; do
11400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11401 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11412 if test -n "$CC"; then
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11414 $as_echo "$CC" >&6; }
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11417 $as_echo "no" >&6; }
11421 test -n "$CC" && break
11424 if test -z "$CC"; then
11426 for ac_prog in cl.exe
11428 # Extract the first word of "$ac_prog", so it can be a program name with args.
11429 set dummy $ac_prog; ac_word=$2
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11431 $as_echo_n "checking for $ac_word... " >&6; }
11432 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11433 $as_echo_n "(cached) " >&6
11435 if test -n "$ac_ct_CC"; then
11436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11439 for as_dir in $PATH
11442 test -z "$as_dir" && as_dir=.
11443 for ac_exec_ext in '' $ac_executable_extensions; do
11444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11445 ac_cv_prog_ac_ct_CC="$ac_prog"
11446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11455 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11456 if test -n "$ac_ct_CC"; then
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11458 $as_echo "$ac_ct_CC" >&6; }
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461 $as_echo "no" >&6; }
11465 test -n "$ac_ct_CC" && break
11468 if test "x$ac_ct_CC" = x; then
11471 case $cross_compiling:$ac_tool_warned in
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11475 ac_tool_warned=yes ;;
11484 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11486 as_fn_error $? "no acceptable C compiler found in \$PATH
11487 See \`config.log' for more details" "$LINENO" 5; }
11489 # Provide some information about the compiler.
11490 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11493 for ac_option in --version -v -V -qversion; do
11494 { { ac_try="$ac_compiler $ac_option >&5"
11495 case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11500 $as_echo "$ac_try_echo"; } >&5
11501 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11503 if test -s conftest.err; then
11505 ... rest of stderr output deleted ...
11506 10q' conftest.err >conftest.er1
11507 cat conftest.er1 >&5
11509 rm -f conftest.er1 conftest.err
11510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11511 test $ac_status = 0; }
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11515 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11516 if ${ac_cv_c_compiler_gnu+:} false; then :
11517 $as_echo_n "(cached) " >&6
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h. */
11533 if ac_fn_c_try_compile "$LINENO"; then :
11534 ac_compiler_gnu=yes
11538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11539 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11543 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11544 if test $ac_compiler_gnu = yes; then
11549 ac_test_CFLAGS=${CFLAGS+set}
11550 ac_save_CFLAGS=$CFLAGS
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11552 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11553 if ${ac_cv_prog_cc_g+:} false; then :
11554 $as_echo_n "(cached) " >&6
11556 ac_save_c_werror_flag=$ac_c_werror_flag
11557 ac_c_werror_flag=yes
11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h. */
11571 if ac_fn_c_try_compile "$LINENO"; then :
11572 ac_cv_prog_cc_g=yes
11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h. */
11586 if ac_fn_c_try_compile "$LINENO"; then :
11589 ac_c_werror_flag=$ac_save_c_werror_flag
11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h. */
11602 if ac_fn_c_try_compile "$LINENO"; then :
11603 ac_cv_prog_cc_g=yes
11605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11610 ac_c_werror_flag=$ac_save_c_werror_flag
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11613 $as_echo "$ac_cv_prog_cc_g" >&6; }
11614 if test "$ac_test_CFLAGS" = set; then
11615 CFLAGS=$ac_save_CFLAGS
11616 elif test $ac_cv_prog_cc_g = yes; then
11617 if test "$GCC" = yes; then
11623 if test "$GCC" = yes; then
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11630 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11631 if ${ac_cv_prog_cc_c89+:} false; then :
11632 $as_echo_n "(cached) " >&6
11634 ac_cv_prog_cc_c89=no
11636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637 /* end confdefs.h. */
11638 #include <stdarg.h>
11640 #include <sys/types.h>
11641 #include <sys/stat.h>
11642 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11643 struct buf { int x; };
11644 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11645 static char *e (p, i)
11651 static char *f (char * (*g) (char **, int), char **p, ...)
11656 s = g (p, va_arg (v,int));
11661 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11662 function prototypes and stuff, but not '\xHH' hex character constants.
11663 These don't provoke an error unfortunately, instead are silently treated
11664 as 'x'. The following induces an error, until -std is added to get
11665 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11666 array size at least. It's necessary to write '\x00'==0 to get something
11667 that's true only with -std. */
11668 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11670 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11671 inside strings and character constants. */
11673 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11675 int test (int i, double x);
11676 struct s1 {int (*f) (int a);};
11677 struct s2 {int (*f) (double a);};
11678 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11684 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11689 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11690 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11692 CC="$ac_save_CC $ac_arg"
11693 if ac_fn_c_try_compile "$LINENO"; then :
11694 ac_cv_prog_cc_c89=$ac_arg
11696 rm -f core conftest.err conftest.$ac_objext
11697 test "x$ac_cv_prog_cc_c89" != "xno" && break
11699 rm -f conftest.$ac_ext
11704 case "x$ac_cv_prog_cc_c89" in
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11707 $as_echo "none needed" >&6; } ;;
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11710 $as_echo "unsupported" >&6; } ;;
11712 CC="$CC $ac_cv_prog_cc_c89"
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11714 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11716 if test "x$ac_cv_prog_cc_c89" != xno; then :
11721 ac_cpp='$CPP $CPPFLAGS'
11722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11726 depcc="$CC" am_compiler_list=
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11729 $as_echo_n "checking dependency style of $depcc... " >&6; }
11730 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11731 $as_echo_n "(cached) " >&6
11733 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11734 # We make a subdir and do the tests there. Otherwise we can end up
11735 # making bogus files that we don't know about and never remove. For
11736 # instance it was reported that on HP-UX the gcc test will end up
11737 # making a dummy file named `D' -- because `-MD' means `put the output
11739 rm -rf conftest.dir
11741 # Copy depcomp to subdir because otherwise we won't find it if we're
11742 # using a relative directory.
11743 cp "$am_depcomp" conftest.dir
11745 # We will build objects and dependencies in a subdirectory because
11746 # it helps to detect inapplicable dependency modes. For instance
11747 # both Tru64's cc and ICC support -MD to output dependencies as a
11748 # side effect of compilation, but ICC will put the dependencies in
11749 # the current directory while Tru64 will put them in the object
11753 am_cv_CC_dependencies_compiler_type=none
11754 if test "$am_compiler_list" = ""; then
11755 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11757 am__universal=false
11758 case " $depcc " in #(
11759 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11762 for depmode in $am_compiler_list; do
11763 # Setup a source with many dependencies, because some compilers
11764 # like to wrap large dependency lists on column 80 (with \), and
11765 # we should not choose a depcomp mode which is confused by this.
11767 # We need to recreate these files for each test, as the compiler may
11768 # overwrite some of them when testing with obscure command lines.
11769 # This happens at least with the AIX C compiler.
11771 for i in 1 2 3 4 5 6; do
11772 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11773 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11774 # Solaris 8's {/usr,}/bin/sh.
11775 touch sub/conftst$i.h
11777 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11779 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11780 # mode. It turns out that the SunPro C++ compiler does not properly
11781 # handle `-M -o', and we need to detect this. Also, some Intel
11782 # versions had trouble with output in subdirs
11783 am__obj=sub/conftest.${OBJEXT-o}
11784 am__minus_obj="-o $am__obj"
11787 # This depmode causes a compiler race in universal mode.
11788 test "$am__universal" = false || continue
11791 # after this tag, mechanisms are not by side-effect, so they'll
11792 # only be used when explicitly requested
11793 if test "x$enable_dependency_tracking" = xyes; then
11799 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11800 # This compiler won't grok `-c -o', but also, the minuso test has
11801 # not run yet. These depmodes are late enough in the game, and
11802 # so weak that their functioning should not be impacted.
11803 am__obj=conftest.${OBJEXT-o}
11808 if depmode=$depmode \
11809 source=sub/conftest.c object=$am__obj \
11810 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11811 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11812 >/dev/null 2>conftest.err &&
11813 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11814 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11815 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11816 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11817 # icc doesn't choke on unknown options, it will just issue warnings
11818 # or remarks (even with -Werror). So we grep stderr for any message
11819 # that says an option was ignored or not supported.
11820 # When given -MP, icc 7.0 and 7.1 complain thusly:
11821 # icc: Command line warning: ignoring option '-M'; no argument required
11822 # The diagnosis changed in icc 8.0:
11823 # icc: Command line remark: option '-MP' not supported
11824 if (grep 'ignoring option' conftest.err ||
11825 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11826 am_cv_CC_dependencies_compiler_type=$depmode
11833 rm -rf conftest.dir
11835 am_cv_CC_dependencies_compiler_type=none
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11840 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11841 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11844 test "x$enable_dependency_tracking" != xno \
11845 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11846 am__fastdepCC_TRUE=
11847 am__fastdepCC_FALSE='#'
11849 am__fastdepCC_TRUE='#'
11850 am__fastdepCC_FALSE=
11855 # Extract the first word of "guile", so it can be a program name with args.
11856 set dummy guile; ac_word=$2
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858 $as_echo_n "checking for $ac_word... " >&6; }
11859 if ${ac_cv_path_GUILE+:} false; then :
11860 $as_echo_n "(cached) " >&6
11864 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
11867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868 for as_dir in $PATH
11871 test -z "$as_dir" && as_dir=.
11872 for ac_exec_ext in '' $ac_executable_extensions; do
11873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11874 ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
11875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11885 GUILE=$ac_cv_path_GUILE
11886 if test -n "$GUILE"; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5
11888 $as_echo "$GUILE" >&6; }
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11895 if test "$GUILE" = "" ; then
11896 as_fn_error $? "guile required but not found" "$LINENO" 5
11899 # Extract the first word of "guile-config", so it can be a program name with args.
11900 set dummy guile-config; ac_word=$2
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11902 $as_echo_n "checking for $ac_word... " >&6; }
11903 if ${ac_cv_path_GUILE_CONFIG+:} false; then :
11904 $as_echo_n "(cached) " >&6
11906 case $GUILE_CONFIG in
11908 ac_cv_path_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test with a path.
11911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11912 for as_dir in $PATH
11915 test -z "$as_dir" && as_dir=.
11916 for ac_exec_ext in '' $ac_executable_extensions; do
11917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11918 ac_cv_path_GUILE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11929 GUILE_CONFIG=$ac_cv_path_GUILE_CONFIG
11930 if test -n "$GUILE_CONFIG"; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5
11932 $as_echo "$GUILE_CONFIG" >&6; }
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935 $as_echo "no" >&6; }
11939 if test "$GUILE_CONFIG" = "" ; then
11940 as_fn_error $? "guile-config required but not found" "$LINENO" 5
11943 # Extract the first word of "guile-tools", so it can be a program name with args.
11944 set dummy guile-tools; ac_word=$2
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11946 $as_echo_n "checking for $ac_word... " >&6; }
11947 if ${ac_cv_path_GUILE_TOOLS+:} false; then :
11948 $as_echo_n "(cached) " >&6
11950 case $GUILE_TOOLS in
11952 ac_cv_path_GUILE_TOOLS="$GUILE_TOOLS" # Let the user override the test with a path.
11955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11956 for as_dir in $PATH
11959 test -z "$as_dir" && as_dir=.
11960 for ac_exec_ext in '' $ac_executable_extensions; do
11961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11962 ac_cv_path_GUILE_TOOLS="$as_dir/$ac_word$ac_exec_ext"
11963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11973 GUILE_TOOLS=$ac_cv_path_GUILE_TOOLS
11974 if test -n "$GUILE_TOOLS"; then
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_TOOLS" >&5
11976 $as_echo "$GUILE_TOOLS" >&6; }
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11986 # Check whether --with-gnu-ld was given.
11987 if test "${with_gnu_ld+set}" = set; then :
11988 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11993 # Prepare PATH_SEPARATOR.
11994 # The user is always right.
11995 if test "${PATH_SEPARATOR+set}" != set; then
11996 echo "#! /bin/sh" >conf$$.sh
11997 echo "exit 0" >>conf$$.sh
11999 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12007 if test "$GCC" = yes; then
12008 # Check if gcc -print-prog-name=ld gives a path.
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12010 $as_echo_n "checking for ld used by GCC... " >&6; }
12013 # gcc leaves a trailing carriage return which upsets mingw
12014 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12016 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12019 # Accept absolute paths.
12020 [\\/]* | [A-Za-z]:[\\/]*)
12021 re_direlt='/[^/][^/]*/\.\./'
12022 # Canonicalize the path of ld
12023 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12024 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12025 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12027 test -z "$LD" && LD="$ac_prog"
12030 # If it fails, then pretend we aren't using GCC.
12034 # If it is relative, then search for the first ld in PATH.
12035 with_gnu_ld=unknown
12038 elif test "$with_gnu_ld" = yes; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12040 $as_echo_n "checking for GNU ld... " >&6; }
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12043 $as_echo_n "checking for non-GNU ld... " >&6; }
12045 if ${acl_cv_path_LD+:} false; then :
12046 $as_echo_n "(cached) " >&6
12048 if test -z "$LD"; then
12049 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12050 for ac_dir in $PATH; do
12051 test -z "$ac_dir" && ac_dir=.
12052 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12053 acl_cv_path_LD="$ac_dir/$ac_prog"
12054 # Check to see if the program is GNU ld. I'd rather use --version,
12055 # but apparently some GNU ld's only accept -v.
12056 # Break only if it was the GNU/non-GNU ld that we prefer.
12057 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12058 *GNU* | *'with BFD'*)
12059 test "$with_gnu_ld" != no && break ;;
12061 test "$with_gnu_ld" != yes && break ;;
12067 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12071 LD="$acl_cv_path_LD"
12072 if test -n "$LD"; then
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12074 $as_echo "$LD" >&6; }
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12077 $as_echo "no" >&6; }
12079 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12081 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12082 if ${acl_cv_prog_gnu_ld+:} false; then :
12083 $as_echo_n "(cached) " >&6
12085 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12086 case `$LD -v 2>&1 </dev/null` in
12087 *GNU* | *'with BFD'*)
12088 acl_cv_prog_gnu_ld=yes ;;
12090 acl_cv_prog_gnu_ld=no ;;
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12094 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12095 with_gnu_ld=$acl_cv_prog_gnu_ld
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12101 $as_echo_n "checking for shared library run path origin... " >&6; }
12102 if ${acl_cv_rpath+:} false; then :
12103 $as_echo_n "(cached) " >&6
12106 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12107 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12109 rm -f ./conftest.sh
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12114 $as_echo "$acl_cv_rpath" >&6; }
12116 acl_libext="$acl_cv_libext"
12117 acl_shlibext="$acl_cv_shlibext"
12118 acl_libname_spec="$acl_cv_libname_spec"
12119 acl_library_names_spec="$acl_cv_library_names_spec"
12120 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12121 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12122 acl_hardcode_direct="$acl_cv_hardcode_direct"
12123 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12124 # Check whether --enable-rpath was given.
12125 if test "${enable_rpath+set}" = set; then :
12126 enableval=$enable_rpath; :
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12139 $as_echo_n "checking for 64-bit host... " >&6; }
12140 if ${gl_cv_solaris_64bit+:} false; then :
12141 $as_echo_n "(cached) " >&6
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h. */
12151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12152 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12153 gl_cv_solaris_64bit=yes
12155 gl_cv_solaris_64bit=no
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12162 $as_echo "$gl_cv_solaris_64bit" >&6; }
12163 if test $gl_cv_solaris_64bit = yes; then
12164 acl_libdirstem=lib/64
12165 case "$host_cpu" in
12166 sparc*) acl_libdirstem2=lib/sparcv9 ;;
12167 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12172 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12173 if test -n "$searchpath"; then
12174 acl_save_IFS="${IFS= }"; IFS=":"
12175 for searchdir in $searchpath; do
12176 if test -d "$searchdir"; then
12177 case "$searchdir" in
12178 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12180 # Better ignore directories of this form. They are misleading.
12182 *) searchdir=`cd "$searchdir" && pwd`
12183 case "$searchdir" in
12184 */lib64 ) acl_libdirstem=lib64 ;;
12189 IFS="$acl_save_IFS"
12193 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile compile flags" >&5
12197 $as_echo_n "checking libguile compile flags... " >&6; }
12198 GUILE_CFLAGS="`$GUILE_CONFIG compile`"
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CFLAGS" >&5
12200 $as_echo "$GUILE_CFLAGS" >&6; }
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile link flags" >&5
12203 $as_echo_n "checking libguile link flags... " >&6; }
12204 GUILE_LDFLAGS="`$GUILE_CONFIG link`"
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_LDFLAGS" >&5
12206 $as_echo "$GUILE_LDFLAGS" >&6; }
12212 if test "$enable_rpath" != no; then
12213 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12216 for opt in $GUILE_LDFLAGS; do
12217 if test -n "$next"; then
12219 if test "X$dir" != "X/usr/$acl_libdirstem" \
12220 && test "X$dir" != "X/usr/$acl_libdirstem2"; then
12221 rpathdirs="$rpathdirs $dir"
12227 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
12228 if test "X$dir" != "X/usr/$acl_libdirstem" \
12229 && test "X$dir" != "X/usr/$acl_libdirstem2"; then
12230 rpathdirs="$rpathdirs $dir"
12237 if test "X$rpathdirs" != "X"; then
12238 if test -n """"; then
12239 for dir in $rpathdirs; do
12240 GUILE_LIBS="${GUILE_LIBS}${GUILE_LIBS:+ }-R$dir"
12243 if test -n "$acl_hardcode_libdir_separator"; then
12245 for dir in $rpathdirs; do
12246 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
12248 acl_save_libdir="$libdir"
12250 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12251 libdir="$acl_save_libdir"
12254 for dir in $rpathdirs; do
12255 acl_save_libdir="$libdir"
12257 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12258 libdir="$acl_save_libdir"
12259 GUILE_LIBS="${GUILE_LIBS}${GUILE_LIBS:+ }$flag"
12268 GUILE_LIBS="$GUILE_LDFLAGS $GUILE_LIBS"
12273 if test "$enable_rpath" != no; then
12274 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12277 for opt in $GUILE_LDFLAGS; do
12278 if test -n "$next"; then
12280 if test "X$dir" != "X/usr/$acl_libdirstem" \
12281 && test "X$dir" != "X/usr/$acl_libdirstem2"; then
12282 rpathdirs="$rpathdirs $dir"
12288 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
12289 if test "X$dir" != "X/usr/$acl_libdirstem" \
12290 && test "X$dir" != "X/usr/$acl_libdirstem2"; then
12291 rpathdirs="$rpathdirs $dir"
12298 if test "X$rpathdirs" != "X"; then
12299 if test -n ""yes""; then
12300 for dir in $rpathdirs; do
12301 GUILE_LTLIBS="${GUILE_LTLIBS}${GUILE_LTLIBS:+ }-R$dir"
12304 if test -n "$acl_hardcode_libdir_separator"; then
12306 for dir in $rpathdirs; do
12307 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
12309 acl_save_libdir="$libdir"
12311 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12312 libdir="$acl_save_libdir"
12313 GUILE_LTLIBS="$flag"
12315 for dir in $rpathdirs; do
12316 acl_save_libdir="$libdir"
12318 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12319 libdir="$acl_save_libdir"
12320 GUILE_LTLIBS="${GUILE_LTLIBS}${GUILE_LTLIBS:+ }$flag"
12329 GUILE_LTLIBS="$GUILE_LDFLAGS $GUILE_LTLIBS"
12338 for lib in SDL SDL_image SDL_gfx SDL_mixer ; do
12339 as_ac_Lib=`$as_echo "ac_cv_lib_${lib}''_main" | $as_tr_sh`
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${lib}" >&5
12341 $as_echo_n "checking for main in -l${lib}... " >&6; }
12342 if eval \${$as_ac_Lib+:} false; then :
12343 $as_echo_n "(cached) " >&6
12345 ac_check_lib_save_LIBS=$LIBS
12346 LIBS="-l${lib} $LIBS"
12347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348 /* end confdefs.h. */
12359 if ac_fn_c_try_link "$LINENO"; then :
12360 eval "$as_ac_Lib=yes"
12362 eval "$as_ac_Lib=no"
12364 rm -f core conftest.err conftest.$ac_objext \
12365 conftest$ac_exeext conftest.$ac_ext
12366 LIBS=$ac_check_lib_save_LIBS
12368 eval ac_res=\$$as_ac_Lib
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12370 $as_echo "$ac_res" >&6; }
12371 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12372 SDL_LIBS="${SDL_LIBS} -l${lib}"
12374 as_fn_error $? "*** ${lib} library not found!" "$LINENO" 5
12380 for lib in GL GLU ; do
12381 as_ac_Lib=`$as_echo "ac_cv_lib_${lib}''_main" | $as_tr_sh`
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${lib}" >&5
12383 $as_echo_n "checking for main in -l${lib}... " >&6; }
12384 if eval \${$as_ac_Lib+:} false; then :
12385 $as_echo_n "(cached) " >&6
12387 ac_check_lib_save_LIBS=$LIBS
12388 LIBS="-l${lib} $LIBS"
12389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h. */
12401 if ac_fn_c_try_link "$LINENO"; then :
12402 eval "$as_ac_Lib=yes"
12404 eval "$as_ac_Lib=no"
12406 rm -f core conftest.err conftest.$ac_objext \
12407 conftest$ac_exeext conftest.$ac_ext
12408 LIBS=$ac_check_lib_save_LIBS
12410 eval ac_res=\$$as_ac_Lib
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12412 $as_echo "$ac_res" >&6; }
12413 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12414 GL_LIBS="${GL_LIBS} -l${lib}"
12416 as_fn_error $? "*** ${lib} library not found!" "$LINENO" 5
12422 for lib in ftgl ; do
12423 as_ac_Lib=`$as_echo "ac_cv_lib_${lib}''_main" | $as_tr_sh`
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${lib}" >&5
12425 $as_echo_n "checking for main in -l${lib}... " >&6; }
12426 if eval \${$as_ac_Lib+:} false; then :
12427 $as_echo_n "(cached) " >&6
12429 ac_check_lib_save_LIBS=$LIBS
12430 LIBS="-l${lib} $LIBS"
12431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432 /* end confdefs.h. */
12443 if ac_fn_c_try_link "$LINENO"; then :
12444 eval "$as_ac_Lib=yes"
12446 eval "$as_ac_Lib=no"
12448 rm -f core conftest.err conftest.$ac_objext \
12449 conftest$ac_exeext conftest.$ac_ext
12450 LIBS=$ac_check_lib_save_LIBS
12452 eval ac_res=\$$as_ac_Lib
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12454 $as_echo "$ac_res" >&6; }
12455 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12456 FTGL_LIBS="${FTGL_LIBS} -l${lib}"
12458 as_fn_error $? "*** ${lib} library not found!" "$LINENO" 5
12467 ac_config_headers="$ac_config_headers config.h"
12469 ac_config_files="$ac_config_files Makefile src/Makefile"
12471 cat >confcache <<\_ACEOF
12472 # This file is a shell script that caches the results of configure
12473 # tests run on this system so they can be shared between configure
12474 # scripts and configure runs, see configure's option --config-cache.
12475 # It is not useful on other systems. If it contains results you don't
12476 # want to keep, you may remove or edit it.
12478 # config.status only pays attention to the cache file if you give it
12479 # the --recheck option to rerun configure.
12481 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12482 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12483 # following values.
12487 # The following way of writing the cache mishandles newlines in values,
12488 # but we know of no workaround that is simple, portable, and efficient.
12489 # So, we kill variables containing newlines.
12490 # Ultrix sh set writes to stderr and can't be redirected directly,
12491 # and sets the high bit in the cache file unless we assign to the vars.
12493 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12494 eval ac_val=\$$ac_var
12498 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12499 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12502 _ | IFS | as_nl) ;; #(
12503 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12504 *) { eval $ac_var=; unset $ac_var;} ;;
12510 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12511 *${as_nl}ac_space=\ *)
12512 # `set' does not quote correctly, so add quotes: double-quote
12513 # substitution turns \\\\ into \\, and sed turns \\ into \.
12516 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12519 # `set' quotes correctly as required by POSIX, so do not add quotes.
12520 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12529 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12531 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12533 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12534 if test -w "$cache_file"; then
12535 if test "x$cache_file" != "x/dev/null"; then
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12537 $as_echo "$as_me: updating cache $cache_file" >&6;}
12538 if test ! -f "$cache_file" || test -h "$cache_file"; then
12539 cat confcache >"$cache_file"
12541 case $cache_file in #(
12543 mv -f confcache "$cache_file"$$ &&
12544 mv -f "$cache_file"$$ "$cache_file" ;; #(
12546 mv -f confcache "$cache_file" ;;
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12552 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12557 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12558 # Let make expand exec_prefix.
12559 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12561 DEFS=-DHAVE_CONFIG_H
12566 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12567 # 1. Remove the extension, and $U if already installed.
12568 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12569 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12570 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12571 # will be set to the directory where LIBOBJS objects are built.
12572 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12573 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12575 LIBOBJS=$ac_libobjs
12577 LTLIBOBJS=$ac_ltlibobjs
12580 if test -n "$EXEEXT"; then
12582 am__EXEEXT_FALSE='#'
12584 am__EXEEXT_TRUE='#'
12588 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12589 as_fn_error $? "conditional \"AMDEP\" was never defined.
12590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12592 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12593 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12596 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12597 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12601 : "${CONFIG_STATUS=./config.status}"
12603 ac_clean_files_save=$ac_clean_files
12604 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12606 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12608 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12610 # Generated by $as_me.
12611 # Run this file to recreate the current configuration.
12612 # Compiler output produced by configure, useful for debugging
12613 # configure, is in config.log if it exists.
12616 ac_cs_recheck=false
12619 SHELL=\${CONFIG_SHELL-$SHELL}
12622 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12623 ## -------------------- ##
12624 ## M4sh Initialization. ##
12625 ## -------------------- ##
12627 # Be more Bourne compatible
12628 DUALCASE=1; export DUALCASE # for MKS sh
12629 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12632 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12633 # is contrary to our usage. Disable this feature.
12634 alias -g '${1+"$@"}'='"$@"'
12635 setopt NO_GLOB_SUBST
12637 case `(set -o) 2>/dev/null` in #(
12649 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12650 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12651 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12652 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12653 # Prefer a ksh shell builtin over an external printf program on Solaris,
12654 # but without wasting forks for bash or zsh.
12655 if test -z "$BASH_VERSION$ZSH_VERSION" \
12656 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12657 as_echo='print -r --'
12658 as_echo_n='print -rn --'
12659 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12660 as_echo='printf %s\n'
12661 as_echo_n='printf %s'
12663 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12664 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12665 as_echo_n='/usr/ucb/echo -n'
12667 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12668 as_echo_n_body='eval
12672 expr "X$arg" : "X\\(.*\\)$as_nl";
12673 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12675 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12677 export as_echo_n_body
12678 as_echo_n='sh -c $as_echo_n_body as_echo'
12680 export as_echo_body
12681 as_echo='sh -c $as_echo_body as_echo'
12684 # The user is always right.
12685 if test "${PATH_SEPARATOR+set}" != set; then
12687 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12688 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12695 # We need space, tab and new line, in precisely that order. Quoting is
12696 # there to prevent editors from complaining about space-tab.
12697 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12698 # splitting by setting IFS to empty value.)
12701 # Find who we are. Look in the path if we contain no directory separator.
12704 *[\\/]* ) as_myself=$0 ;;
12705 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706 for as_dir in $PATH
12709 test -z "$as_dir" && as_dir=.
12710 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12716 # We did not find ourselves, most probably we were run as `sh COMMAND'
12717 # in which case we are not to be found in the path.
12718 if test "x$as_myself" = x; then
12721 if test ! -f "$as_myself"; then
12722 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12726 # Unset variables that we do not need and which cause bugs (e.g. in
12727 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12728 # suppresses any "Segmentation fault" message there. '((' could
12729 # trigger a bug in pdksh 5.2.14.
12730 for as_var in BASH_ENV ENV MAIL MAILPATH
12731 do eval test x\${$as_var+set} = xset \
12732 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12745 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12748 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12749 # ----------------------------------------
12750 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12751 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12752 # script with STATUS, using 1 if that was 0.
12755 as_status=$1; test $as_status -eq 0 && as_status=1
12757 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12758 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12760 $as_echo "$as_me: error: $2" >&2
12761 as_fn_exit $as_status
12765 # as_fn_set_status STATUS
12766 # -----------------------
12767 # Set $? to STATUS, without forking.
12768 as_fn_set_status ()
12771 } # as_fn_set_status
12773 # as_fn_exit STATUS
12774 # -----------------
12775 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12779 as_fn_set_status $1
12785 # Portably unset VAR.
12788 { eval $1=; unset $1;}
12790 as_unset=as_fn_unset
12791 # as_fn_append VAR VALUE
12792 # ----------------------
12793 # Append the text in VALUE to the end of the definition contained in VAR. Take
12794 # advantage of any shell optimizations that allow amortized linear growth over
12795 # repeated appends, instead of the typical quadratic growth present in naive
12797 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12798 eval 'as_fn_append ()
12809 # as_fn_arith ARG...
12810 # ------------------
12811 # Perform arithmetic evaluation on the ARGs, and store the result in the
12812 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12813 # must be portable across $(()) and expr.
12814 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12815 eval 'as_fn_arith ()
12822 as_val=`expr "$@" || test $? -eq 1`
12827 if expr a : '\(a\)' >/dev/null 2>&1 &&
12828 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12834 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12835 as_basename=basename
12840 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12846 as_me=`$as_basename -- "$0" ||
12847 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12848 X"$0" : 'X\(//\)$' \| \
12849 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12851 sed '/^.*\/\([^/][^/]*\)\/*$/{
12865 # Avoid depending upon Character Ranges.
12866 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12867 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12868 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12869 as_cr_digits='0123456789'
12870 as_cr_alnum=$as_cr_Letters$as_cr_digits
12872 ECHO_C= ECHO_N= ECHO_T=
12873 case `echo -n x` in #(((((
12875 case `echo 'xy\c'` in
12876 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12878 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12885 rm -f conf$$ conf$$.exe conf$$.file
12886 if test -d conf$$.dir; then
12887 rm -f conf$$.dir/conf$$.file
12890 mkdir conf$$.dir 2>/dev/null
12892 if (echo >conf$$.file) 2>/dev/null; then
12893 if ln -s conf$$.file conf$$ 2>/dev/null; then
12895 # ... but there are two gotchas:
12896 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12897 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12898 # In both cases, we have to default to `cp -p'.
12899 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12901 elif ln conf$$.file conf$$ 2>/dev/null; then
12909 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12910 rmdir conf$$.dir 2>/dev/null
12915 # Create "$as_dir" as a directory, including parents if necessary.
12920 -*) as_dir=./$as_dir;;
12922 test -d "$as_dir" || eval $as_mkdir_p || {
12926 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12927 *) as_qdir=$as_dir;;
12929 as_dirs="'$as_qdir' $as_dirs"
12930 as_dir=`$as_dirname -- "$as_dir" ||
12931 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12932 X"$as_dir" : 'X\(//\)[^/]' \| \
12933 X"$as_dir" : 'X\(//\)$' \| \
12934 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12935 $as_echo X"$as_dir" |
12936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12940 /^X\(\/\/\)[^/].*/{
12953 test -d "$as_dir" && break
12955 test -z "$as_dirs" || eval "mkdir $as_dirs"
12956 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12960 if mkdir -p . 2>/dev/null; then
12961 as_mkdir_p='mkdir -p "$as_dir"'
12963 test -d ./-p && rmdir ./-p
12967 if test -x / >/dev/null 2>&1; then
12968 as_test_x='test -x'
12970 if ls -dL / >/dev/null 2>&1; then
12977 if test -d "$1"; then
12983 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12984 ???[sx]*):;;*)false;;esac;fi
12988 as_executable_p=$as_test_x
12990 # Sed expression to map a string onto a valid CPP name.
12991 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12993 # Sed expression to map a string onto a valid variable name.
12994 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12998 ## ----------------------------------- ##
12999 ## Main body of $CONFIG_STATUS script. ##
13000 ## ----------------------------------- ##
13002 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13005 # Save the log message, to keep $0 and so on meaningful, and to
13006 # report actual input values of CONFIG_FILES etc. instead of their
13007 # values after options handling.
13009 This file was extended by gacela $as_me 0.5, which was
13010 generated by GNU Autoconf 2.68. Invocation command line was
13012 CONFIG_FILES = $CONFIG_FILES
13013 CONFIG_HEADERS = $CONFIG_HEADERS
13014 CONFIG_LINKS = $CONFIG_LINKS
13015 CONFIG_COMMANDS = $CONFIG_COMMANDS
13018 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13023 case $ac_config_files in *"
13024 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13027 case $ac_config_headers in *"
13028 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13033 # Files that config.status was made for.
13034 config_files="$ac_config_files"
13035 config_headers="$ac_config_headers"
13036 config_commands="$ac_config_commands"
13040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13042 \`$as_me' instantiates files and other configuration actions
13043 from templates according to the current configuration. Unless the files
13044 and actions are specified as TAGs, all are instantiated by default.
13046 Usage: $0 [OPTION]... [TAG]...
13048 -h, --help print this help, then exit
13049 -V, --version print version number and configuration settings, then exit
13050 --config print configuration, then exit
13051 -q, --quiet, --silent
13052 do not print progress messages
13053 -d, --debug don't remove temporary files
13054 --recheck update $as_me by reconfiguring in the same conditions
13055 --file=FILE[:TEMPLATE]
13056 instantiate the configuration file FILE
13057 --header=FILE[:TEMPLATE]
13058 instantiate the configuration header FILE
13060 Configuration files:
13063 Configuration headers:
13066 Configuration commands:
13069 Report bugs to <jsf@jsancho.org>."
13072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13073 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13075 gacela config.status 0.5
13076 configured by $0, generated by GNU Autoconf 2.68,
13077 with options \\"\$ac_cs_config\\"
13079 Copyright (C) 2010 Free Software Foundation, Inc.
13080 This config.status script is free software; the Free Software Foundation
13081 gives unlimited permission to copy, distribute and modify it."
13088 test -n "\$AWK" || AWK=awk
13091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13092 # The default lists apply if the user does not specify any file.
13098 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13099 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13103 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13115 # Handling of the options.
13116 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13118 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13119 $as_echo "$ac_cs_version"; exit ;;
13120 --config | --confi | --conf | --con | --co | --c )
13121 $as_echo "$ac_cs_config"; exit ;;
13122 --debug | --debu | --deb | --de | --d | -d )
13124 --file | --fil | --fi | --f )
13127 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13128 '') as_fn_error $? "missing file argument" ;;
13130 as_fn_append CONFIG_FILES " '$ac_optarg'"
13131 ac_need_defaults=false;;
13132 --header | --heade | --head | --hea )
13135 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13137 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13138 ac_need_defaults=false;;
13140 # Conflict between --help and --header
13141 as_fn_error $? "ambiguous option: \`$1'
13142 Try \`$0 --help' for more information.";;
13143 --help | --hel | -h )
13144 $as_echo "$ac_cs_usage"; exit ;;
13145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13146 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13149 # This is an error.
13150 -*) as_fn_error $? "unrecognized option: \`$1'
13151 Try \`$0 --help' for more information." ;;
13153 *) as_fn_append ac_config_targets " $1"
13154 ac_need_defaults=false ;;
13160 ac_configure_extra_args=
13162 if $ac_cs_silent; then
13164 ac_configure_extra_args="$ac_configure_extra_args --silent"
13168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13169 if \$ac_cs_recheck; then
13170 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13172 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13173 CONFIG_SHELL='$SHELL'
13174 export CONFIG_SHELL
13179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13183 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13184 ## Running $as_me. ##
13190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13194 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13197 # The HP-UX ksh and POSIX shell print the target directory to stdout
13198 # if CDPATH is set.
13199 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13201 sed_quote_subst='$sed_quote_subst'
13202 double_quote_subst='$double_quote_subst'
13203 delay_variable_subst='$delay_variable_subst'
13204 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13205 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13206 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13207 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13208 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13209 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13210 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13211 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13212 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13213 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13214 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13215 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13216 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13217 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13218 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13219 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13220 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13221 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13222 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13223 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13224 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13225 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13226 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13227 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13228 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13229 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13230 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13231 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13232 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13233 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13234 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13235 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13236 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13237 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13238 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13239 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13240 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13241 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13242 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13243 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13244 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13245 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13246 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13247 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13248 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13249 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13250 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13251 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13252 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13253 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13254 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13255 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13256 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13257 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13258 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13259 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13260 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"`'
13261 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13262 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13263 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13264 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13265 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13266 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13267 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13268 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13269 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13270 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13271 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13272 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13273 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13274 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13275 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13276 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13277 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13278 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13279 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13280 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13281 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13282 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13283 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13284 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13285 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13286 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13287 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13288 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13289 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13290 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13291 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13292 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13293 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13294 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13295 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13296 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13297 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13298 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13299 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13300 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13301 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13302 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13303 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13304 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13305 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13306 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13307 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13308 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13309 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13310 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13311 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13312 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13313 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13314 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13315 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13316 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13317 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13318 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13319 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13320 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13321 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13322 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13323 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13324 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13325 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13326 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13327 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13328 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13329 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13330 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13331 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13332 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13333 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13336 LTCFLAGS='$LTCFLAGS'
13337 compiler='$compiler_DEFAULT'
13339 # A function that is used when there is no print builtin or printf.
13340 func_fallback_echo ()
13342 eval 'cat <<_LTECHO_EOF
13347 # Quote evaled strings.
13362 deplibs_check_method \
13367 sharedlib_from_linklib_cmd \
13370 archiver_list_spec \
13376 lt_cv_sys_global_symbol_pipe \
13377 lt_cv_sys_global_symbol_to_cdecl \
13378 lt_cv_sys_global_symbol_to_c_name_address \
13379 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13380 nm_file_list_spec \
13381 lt_prog_compiler_no_builtin_flag \
13382 lt_prog_compiler_pic \
13383 lt_prog_compiler_wl \
13384 lt_prog_compiler_static \
13385 lt_cv_prog_compiler_c_o \
13394 export_dynamic_flag_spec \
13395 whole_archive_flag_spec \
13396 compiler_needs_object \
13398 allow_undefined_flag \
13399 no_undefined_flag \
13400 hardcode_libdir_flag_spec \
13401 hardcode_libdir_separator \
13405 variables_saved_for_relink \
13407 library_names_spec \
13409 install_override_mode \
13413 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13414 *[\\\\\\\`\\"\\\$]*)
13415 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13418 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13423 # Double-quote double-evaled strings.
13424 for var in reload_cmds \
13425 old_postinstall_cmds \
13426 old_postuninstall_cmds \
13428 extract_expsyms_cmds \
13429 old_archive_from_new_cmds \
13430 old_archive_from_expsyms_cmds \
13432 archive_expsym_cmds \
13434 module_expsym_cmds \
13435 export_symbols_cmds \
13439 postuninstall_cmds \
13441 sys_lib_search_path_spec \
13442 sys_lib_dlsearch_path_spec; do
13443 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13444 *[\\\\\\\`\\"\\\$]*)
13445 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13448 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13453 ac_aux_dir='$ac_aux_dir'
13454 xsi_shell='$xsi_shell'
13455 lt_shell_append='$lt_shell_append'
13457 # See if we are running on zsh, and set the options which allow our
13458 # commands through without removal of \ escapes INIT.
13459 if test -n "\${ZSH_VERSION+set}" ; then
13460 setopt NO_GLOB_SUBST
13466 TIMESTAMP='$TIMESTAMP'
13475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13477 # Handling of arguments.
13478 for ac_config_target in $ac_config_targets
13480 case $ac_config_target in
13481 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13482 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13483 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13484 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13485 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13487 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13492 # If the user did not use the arguments to specify the items to instantiate,
13493 # then the envvar interface is used. Set only those that are not.
13494 # We use the long form for the default assignment because of an extremely
13495 # bizarre bug on SunOS 4.1.3.
13496 if $ac_need_defaults; then
13497 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13498 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13499 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13502 # Have a temporary directory for convenience. Make it in the build tree
13503 # simply because there is no reason against having it here, and in addition,
13504 # creating and moving files from /tmp can sometimes cause problems.
13505 # Hook for its removal unless debugging.
13506 # Note that there is a small window in which the directory will not be cleaned:
13507 # after its creation but before its name has been assigned to `$tmp'.
13511 trap 'exit_status=$?
13512 : "${ac_tmp:=$tmp}"
13513 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13515 trap 'as_fn_exit 1' 1 2 13 15
13517 # Create a (secure) tmp directory for tmp files.
13520 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13524 tmp=./conf$$-$RANDOM
13525 (umask 077 && mkdir "$tmp")
13526 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13529 # Set up the scripts for CONFIG_FILES section.
13530 # No need to generate them if there are no CONFIG_FILES.
13531 # This happens for instance with `./config.status config.h'.
13532 if test -n "$CONFIG_FILES"; then
13535 ac_cr=`echo X | tr X '\015'`
13536 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13537 # But we know of no other shell where ac_cr would be empty at this
13538 # point, so we can use a bashism as a fallback.
13539 if test "x$ac_cr" = x; then
13540 eval ac_cr=\$\'\\r\'
13542 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13543 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13546 ac_cs_awk_cr=$ac_cr
13549 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13554 echo "cat >conf$$subs.awk <<_ACEOF" &&
13555 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13557 } >conf$$subs.sh ||
13558 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13559 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13561 for ac_last_try in false false false false false :; do
13562 . ./conf$$subs.sh ||
13563 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13565 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13566 if test $ac_delim_n = $ac_delim_num; then
13568 elif $ac_last_try; then
13569 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13571 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13574 rm -f conf$$subs.sh
13576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13577 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13581 s/^/S["/; s/!.*/"]=/
13591 s/\(.\{148\}\)..*/\1/
13593 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13598 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13605 s/\(.\{148\}\)..*/\1/
13607 s/["\\]/\\&/g; s/^/"/; s/$/"/
13611 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13616 ' <conf$$subs.awk | sed '
13621 ' >>$CONFIG_STATUS || ac_write_fail=1
13622 rm -f conf$$subs.awk
13623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13625 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13626 for (key in S) S_is_set[key] = 1
13632 nfields = split(line, field, "@")
13634 len = length(field[1])
13635 for (i = 2; i < nfields; i++) {
13637 keylen = length(key)
13638 if (S_is_set[key]) {
13640 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13641 len += length(value) + length(field[++i])
13652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13653 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13654 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13657 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13658 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13661 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13662 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13663 # trailing colons and then remove the whole line if VPATH becomes empty
13664 # (actually we leave an empty line to preserve line numbers).
13665 if test "x$srcdir" = x.; then
13666 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13685 fi # test -n "$CONFIG_FILES"
13687 # Set up the scripts for CONFIG_HEADERS section.
13688 # No need to generate them if there are no CONFIG_HEADERS.
13689 # This happens for instance with `./config.status Makefile'.
13690 if test -n "$CONFIG_HEADERS"; then
13691 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13695 # Transform confdefs.h into an awk script `defines.awk', embedded as
13696 # here-document in config.status, that substitutes the proper values into
13697 # config.h.in to produce config.h.
13699 # Create a delimiter string that does not exist in confdefs.h, to ease
13700 # handling of long lines.
13702 for ac_last_try in false false :; do
13703 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13704 if test -z "$ac_tt"; then
13706 elif $ac_last_try; then
13707 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13709 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13713 # For the awk script, D is an array of macro values keyed by name,
13714 # likewise P contains macro parameters if any. Preserve backslash
13715 # newline sequences.
13717 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13719 s/.\{148\}/&'"$ac_delim"'/g
13722 s/^[ ]*#[ ]*define[ ][ ]*/ /
13729 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13731 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13735 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13736 D["\1"]=" \3\\\\\\n"\\/p
13738 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13743 s/.\{148\}/&'"$ac_delim"'/g
13748 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13751 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13753 ' <confdefs.h | sed '
13754 s/'"$ac_delim"'/"\\\
13755 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13758 for (key in D) D_is_set[key] = 1
13761 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13763 split(line, arg, " ")
13764 if (arg[1] == "#") {
13768 defundef = substr(arg[1], 2)
13771 split(mac1, mac2, "(") #)
13773 prefix = substr(line, 1, index(line, defundef) - 1)
13774 if (D_is_set[macro]) {
13775 # Preserve the white space surrounding the "#".
13776 print prefix "define", macro P[macro] D[macro]
13779 # Replace #undef with comments. This is necessary, for example,
13780 # in the case of _POSIX_SOURCE, which is predefined and required
13781 # on some systems where configure will not decide to define it.
13782 if (defundef == "undef") {
13783 print "/*", prefix defundef, macro, "*/"
13791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13792 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13793 fi # test -n "$CONFIG_HEADERS"
13796 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13801 :[FHLC]) ac_mode=$ac_tag; continue;;
13803 case $ac_mode$ac_tag in
13805 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13806 :[FH]-) ac_tag=-:-;;
13807 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13824 -) ac_f="$ac_tmp/stdin";;
13825 *) # Look for the file first in the build tree, then in the source tree
13826 # (if the path is not absolute). The absolute path cannot be DOS-style,
13827 # because $ac_f cannot contain `:'.
13831 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13833 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13835 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13836 as_fn_append ac_file_inputs " '$ac_f'"
13839 # Let's still pretend it is `configure' which instantiates (i.e., don't
13840 # use $as_me), people would be surprised to read:
13841 # /* config.h. Generated by config.status. */
13842 configure_input='Generated from '`
13843 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13845 if test x"$ac_file" != x-; then
13846 configure_input="$ac_file. $configure_input"
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13848 $as_echo "$as_me: creating $ac_file" >&6;}
13850 # Neutralize special characters interpreted by sed in replacement strings.
13851 case $configure_input in #(
13852 *\&* | *\|* | *\\* )
13853 ac_sed_conf_input=`$as_echo "$configure_input" |
13854 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13855 *) ac_sed_conf_input=$configure_input;;
13859 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13860 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13865 ac_dir=`$as_dirname -- "$ac_file" ||
13866 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13867 X"$ac_file" : 'X\(//\)[^/]' \| \
13868 X"$ac_file" : 'X\(//\)$' \| \
13869 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13870 $as_echo X"$ac_file" |
13871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13875 /^X\(\/\/\)[^/].*/{
13888 as_dir="$ac_dir"; as_fn_mkdir_p
13892 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13894 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13895 # A ".." for each directory in $ac_dir_suffix.
13896 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13897 case $ac_top_builddir_sub in
13898 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13899 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13902 ac_abs_top_builddir=$ac_pwd
13903 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13904 # for backward compatibility:
13905 ac_top_builddir=$ac_top_build_prefix
13908 .) # We are building in place.
13910 ac_top_srcdir=$ac_top_builddir_sub
13911 ac_abs_top_srcdir=$ac_pwd ;;
13912 [\\/]* | ?:[\\/]* ) # Absolute name.
13913 ac_srcdir=$srcdir$ac_dir_suffix;
13914 ac_top_srcdir=$srcdir
13915 ac_abs_top_srcdir=$srcdir ;;
13916 *) # Relative name.
13917 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13918 ac_top_srcdir=$ac_top_build_prefix$srcdir
13919 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13921 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13931 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13932 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13934 ac_MKDIR_P=$MKDIR_P
13936 [\\/$]* | ?:[\\/]* ) ;;
13937 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13942 # If the template does not know about datarootdir, expand it.
13943 # FIXME: This hack should be removed a few years after 2.60.
13944 ac_datarootdir_hack=; ac_datarootdir_seen=
13955 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13956 *datarootdir*) ac_datarootdir_seen=yes;;
13957 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13959 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13962 ac_datarootdir_hack='
13963 s&@datadir@&$datadir&g
13964 s&@docdir@&$docdir&g
13965 s&@infodir@&$infodir&g
13966 s&@localedir@&$localedir&g
13967 s&@mandir@&$mandir&g
13968 s&\\\${datarootdir}&$datarootdir&g' ;;
13972 # Neutralize VPATH when `$srcdir' = `.'.
13973 # Shell code in configure.ac might set extrasub.
13974 # FIXME: do we really want to maintain this feature?
13975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13976 ac_sed_extra="$ac_vpsub
13979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13981 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13982 s|@configure_input@|$ac_sed_conf_input|;t t
13983 s&@top_builddir@&$ac_top_builddir_sub&;t t
13984 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13985 s&@srcdir@&$ac_srcdir&;t t
13986 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13987 s&@top_srcdir@&$ac_top_srcdir&;t t
13988 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13989 s&@builddir@&$ac_builddir&;t t
13990 s&@abs_builddir@&$ac_abs_builddir&;t t
13991 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13992 s&@INSTALL@&$ac_INSTALL&;t t
13993 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13994 $ac_datarootdir_hack
13996 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13997 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13999 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14000 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14001 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14002 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14004 which seems to be undefined. Please make sure it is defined" >&5
14005 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14006 which seems to be undefined. Please make sure it is defined" >&2;}
14008 rm -f "$ac_tmp/stdin"
14010 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14011 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14013 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14019 if test x"$ac_file" != x-; then
14021 $as_echo "/* $configure_input */" \
14022 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14023 } >"$ac_tmp/config.h" \
14024 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14025 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14027 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14030 mv "$ac_tmp/config.h" "$ac_file" \
14031 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14034 $as_echo "/* $configure_input */" \
14035 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14036 || as_fn_error $? "could not create -" "$LINENO" 5
14038 # Compute "$ac_file"'s index in $config_headers.
14041 for _am_header in $config_headers :; do
14042 case $_am_header in
14043 $_am_arg | $_am_arg:* )
14046 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14049 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14050 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14051 X"$_am_arg" : 'X\(//\)[^/]' \| \
14052 X"$_am_arg" : 'X\(//\)$' \| \
14053 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14054 $as_echo X"$_am_arg" |
14055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14059 /^X\(\/\/\)[^/].*/{
14071 s/.*/./; q'`/stamp-h$_am_stamp_count
14074 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14075 $as_echo "$as_me: executing $ac_file commands" >&6;}
14080 case $ac_file$ac_mode in
14081 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14082 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14083 # are listed without --file. Let's play safe and only enable the eval
14084 # if we detect the quoting.
14085 case $CONFIG_FILES in
14086 *\'*) eval set x "$CONFIG_FILES" ;;
14087 *) set x $CONFIG_FILES ;;
14092 # Strip MF so we end up with the name of the file.
14093 mf=`echo "$mf" | sed -e 's/:.*$//'`
14094 # Check whether this is an Automake generated Makefile or not.
14095 # We used to match only the files named `Makefile.in', but
14096 # some people rename them; so instead we look at the file content.
14097 # Grep'ing the first line is not enough: some people post-process
14098 # each Makefile.in and add a new line on top of each file to say so.
14099 # Grep'ing the whole file is not good either: AIX grep has a line
14100 # limit of 2048, but all sed's we know have understand at least 4000.
14101 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14102 dirpart=`$as_dirname -- "$mf" ||
14103 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14104 X"$mf" : 'X\(//\)[^/]' \| \
14105 X"$mf" : 'X\(//\)$' \| \
14106 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14112 /^X\(\/\/\)[^/].*/{
14128 # Extract the definition of DEPDIR, am__include, and am__quote
14129 # from the Makefile without running `make'.
14130 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14131 test -z "$DEPDIR" && continue
14132 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14133 test -z "am__include" && continue
14134 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14135 # When using ansi2knr, U may be empty or an underscore; expand it
14136 U=`sed -n 's/^U = //p' < "$mf"`
14137 # Find all dependency output files, they are included files with
14138 # $(DEPDIR) in their names. We invoke sed twice because it is the
14139 # simplest approach to changing $(DEPDIR) to its actual value in the
14141 for file in `sed -n "
14142 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14143 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14144 # Make sure the directory exists.
14145 test -f "$dirpart/$file" && continue
14146 fdir=`$as_dirname -- "$file" ||
14147 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14148 X"$file" : 'X\(//\)[^/]' \| \
14149 X"$file" : 'X\(//\)$' \| \
14150 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14151 $as_echo X"$file" |
14152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14156 /^X\(\/\/\)[^/].*/{
14169 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14170 # echo "creating $dirpart/$file"
14171 echo '# dummy' > "$dirpart/$file"
14178 # See if we are running on zsh, and set the options which allow our
14179 # commands through without removal of \ escapes.
14180 if test -n "${ZSH_VERSION+set}" ; then
14181 setopt NO_GLOB_SUBST
14184 cfgfile="${ofile}T"
14185 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14188 cat <<_LT_EOF >> "$cfgfile"
14191 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14192 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14193 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14194 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14196 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14197 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14199 # Written by Gordon Matzigkeit, 1996
14201 # This file is part of GNU Libtool.
14203 # GNU Libtool is free software; you can redistribute it and/or
14204 # modify it under the terms of the GNU General Public License as
14205 # published by the Free Software Foundation; either version 2 of
14206 # the License, or (at your option) any later version.
14208 # As a special exception to the GNU General Public License,
14209 # if you distribute this file as part of a program or library that
14210 # is built using GNU Libtool, you may include this file under the
14211 # same distribution terms that you use for the rest of that program.
14213 # GNU Libtool is distributed in the hope that it will be useful,
14214 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14215 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14216 # GNU General Public License for more details.
14218 # You should have received a copy of the GNU General Public License
14219 # along with GNU Libtool; see the file COPYING. If not, a copy
14220 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14221 # obtained by writing to the Free Software Foundation, Inc.,
14222 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14225 # The names of the tagged configurations supported by this script.
14228 # ### BEGIN LIBTOOL CONFIG
14230 # Which release of libtool.m4 was used?
14231 macro_version=$macro_version
14232 macro_revision=$macro_revision
14234 # Whether or not to build shared libraries.
14235 build_libtool_libs=$enable_shared
14237 # Whether or not to build static libraries.
14238 build_old_libs=$enable_static
14240 # What type of objects to build.
14243 # Whether or not to optimize for fast installation.
14244 fast_install=$enable_fast_install
14246 # Shell to use when invoking shell scripts.
14249 # An echo program that protects backslashes.
14252 # The PATH separator for the build system.
14253 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14256 host_alias=$host_alias
14260 # The build system.
14261 build_alias=$build_alias
14265 # A sed program that does not truncate output.
14268 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14269 Xsed="\$SED -e 1s/^X//"
14271 # A grep program that handles long lines.
14277 # A literal string matcher.
14280 # A BSD- or MS-compatible name lister.
14283 # Whether we need soft or hard links.
14286 # What is the maximum length of a command?
14287 max_cmd_len=$max_cmd_len
14289 # Object file suffix (normally "o").
14292 # Executable file suffix (normally "").
14295 # whether the shell understands "unset".
14298 # turn spaces into newlines.
14301 # turn newlines into spaces.
14304 # convert \$build file names to \$host format.
14305 to_host_file_cmd=$lt_cv_to_host_file_cmd
14307 # convert \$build files to toolchain format.
14308 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14310 # An object symbol dumper.
14311 OBJDUMP=$lt_OBJDUMP
14313 # Method to check whether dependent libraries are shared objects.
14314 deplibs_check_method=$lt_deplibs_check_method
14316 # Command to use when deplibs_check_method = "file_magic".
14317 file_magic_cmd=$lt_file_magic_cmd
14319 # How to find potential files when deplibs_check_method = "file_magic".
14320 file_magic_glob=$lt_file_magic_glob
14322 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14323 want_nocaseglob=$lt_want_nocaseglob
14325 # DLL creation program.
14326 DLLTOOL=$lt_DLLTOOL
14328 # Command to associate shared and link libraries.
14329 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14334 # Flags to create an archive.
14335 AR_FLAGS=$lt_AR_FLAGS
14337 # How to feed a file listing to the archiver.
14338 archiver_list_spec=$lt_archiver_list_spec
14340 # A symbol stripping program.
14343 # Commands used to install an old-style archive.
14345 old_postinstall_cmds=$lt_old_postinstall_cmds
14346 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14348 # Whether to use a lock for old archive extraction.
14349 lock_old_archive_extraction=$lock_old_archive_extraction
14354 # LTCC compiler flags.
14355 LTCFLAGS=$lt_CFLAGS
14357 # Take the output of nm and produce a listing of raw symbols and C names.
14358 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14360 # Transform the output of nm in a proper C declaration.
14361 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14363 # Transform the output of nm in a C name address pair.
14364 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14366 # Transform the output of nm in a C name address pair when lib prefix is needed.
14367 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14369 # Specify filename containing input files for \$NM.
14370 nm_file_list_spec=$lt_nm_file_list_spec
14372 # The root where to search for dependent libraries,and in which our libraries should be installed.
14373 lt_sysroot=$lt_sysroot
14375 # The name of the directory that contains temporary libtool files.
14378 # Used to examine libraries when file_magic_cmd begins with "file".
14379 MAGIC_CMD=$MAGIC_CMD
14381 # Must we lock files when doing compilation?
14382 need_locks=$lt_need_locks
14385 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14387 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14388 DSYMUTIL=$lt_DSYMUTIL
14390 # Tool to change global to local symbols on Mac OS X.
14393 # Tool to manipulate fat objects and archives on Mac OS X.
14396 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14399 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14400 OTOOL64=$lt_OTOOL64
14402 # Old archive suffix (normally "a").
14405 # Shared library suffix (normally ".so").
14406 shrext_cmds=$lt_shrext_cmds
14408 # The commands to extract the exported symbol list from a shared archive.
14409 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14411 # Variables whose values should be saved in libtool wrapper scripts and
14412 # restored at link time.
14413 variables_saved_for_relink=$lt_variables_saved_for_relink
14415 # Do we need the "lib" prefix for modules?
14416 need_lib_prefix=$need_lib_prefix
14418 # Do we need a version for libraries?
14419 need_version=$need_version
14421 # Library versioning type.
14422 version_type=$version_type
14424 # Shared library runtime path variable.
14425 runpath_var=$runpath_var
14427 # Shared library path variable.
14428 shlibpath_var=$shlibpath_var
14430 # Is shlibpath searched before the hard-coded library search path?
14431 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14433 # Format of library name prefix.
14434 libname_spec=$lt_libname_spec
14436 # List of archive names. First name is the real one, the rest are links.
14437 # The last name is the one that the linker finds with -lNAME
14438 library_names_spec=$lt_library_names_spec
14440 # The coded name of the library, if different from the real name.
14441 soname_spec=$lt_soname_spec
14443 # Permission mode override for installation of shared libraries.
14444 install_override_mode=$lt_install_override_mode
14446 # Command to use after installation of a shared archive.
14447 postinstall_cmds=$lt_postinstall_cmds
14449 # Command to use after uninstallation of a shared archive.
14450 postuninstall_cmds=$lt_postuninstall_cmds
14452 # Commands used to finish a libtool library installation in a directory.
14453 finish_cmds=$lt_finish_cmds
14455 # As "finish_cmds", except a single script fragment to be evaled but
14457 finish_eval=$lt_finish_eval
14459 # Whether we should hardcode library paths into libraries.
14460 hardcode_into_libs=$hardcode_into_libs
14462 # Compile-time system search path for libraries.
14463 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14465 # Run-time system search path for libraries.
14466 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14468 # Whether dlopen is supported.
14469 dlopen_support=$enable_dlopen
14471 # Whether dlopen of programs is supported.
14472 dlopen_self=$enable_dlopen_self
14474 # Whether dlopen of statically linked programs is supported.
14475 dlopen_self_static=$enable_dlopen_self_static
14477 # Commands to strip libraries.
14478 old_striplib=$lt_old_striplib
14479 striplib=$lt_striplib
14482 # The linker used to build libraries.
14485 # How to create reloadable object files.
14486 reload_flag=$lt_reload_flag
14487 reload_cmds=$lt_reload_cmds
14489 # Commands used to build an old-style archive.
14490 old_archive_cmds=$lt_old_archive_cmds
14492 # A language specific compiler.
14495 # Is the compiler the GNU compiler?
14498 # Compiler flag to turn off builtin functions.
14499 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14501 # Additional compiler flags for building library objects.
14502 pic_flag=$lt_lt_prog_compiler_pic
14504 # How to pass a linker flag through the compiler.
14505 wl=$lt_lt_prog_compiler_wl
14507 # Compiler flag to prevent dynamic linking.
14508 link_static_flag=$lt_lt_prog_compiler_static
14510 # Does compiler simultaneously support -c and -o options?
14511 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14513 # Whether or not to add -lc for building shared libraries.
14514 build_libtool_need_lc=$archive_cmds_need_lc
14516 # Whether or not to disallow shared libs when runtime libs are static.
14517 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14519 # Compiler flag to allow reflexive dlopens.
14520 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14522 # Compiler flag to generate shared objects directly from archives.
14523 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14525 # Whether the compiler copes with passing no objects directly.
14526 compiler_needs_object=$lt_compiler_needs_object
14528 # Create an old-style archive from a shared archive.
14529 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14531 # Create a temporary old-style archive to link instead of a shared archive.
14532 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14534 # Commands used to build a shared archive.
14535 archive_cmds=$lt_archive_cmds
14536 archive_expsym_cmds=$lt_archive_expsym_cmds
14538 # Commands used to build a loadable module if different from building
14539 # a shared archive.
14540 module_cmds=$lt_module_cmds
14541 module_expsym_cmds=$lt_module_expsym_cmds
14543 # Whether we are building with GNU ld or not.
14544 with_gnu_ld=$lt_with_gnu_ld
14546 # Flag that allows shared libraries with undefined symbols to be built.
14547 allow_undefined_flag=$lt_allow_undefined_flag
14549 # Flag that enforces no undefined symbols.
14550 no_undefined_flag=$lt_no_undefined_flag
14552 # Flag to hardcode \$libdir into a binary during linking.
14553 # This must work even if \$libdir does not exist
14554 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14556 # Whether we need a single "-rpath" flag with a separated argument.
14557 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14559 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14560 # DIR into the resulting binary.
14561 hardcode_direct=$hardcode_direct
14563 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14564 # DIR into the resulting binary and the resulting library dependency is
14565 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14566 # library is relocated.
14567 hardcode_direct_absolute=$hardcode_direct_absolute
14569 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14570 # into the resulting binary.
14571 hardcode_minus_L=$hardcode_minus_L
14573 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14574 # into the resulting binary.
14575 hardcode_shlibpath_var=$hardcode_shlibpath_var
14577 # Set to "yes" if building a shared library automatically hardcodes DIR
14578 # into the library and all subsequent libraries and executables linked
14580 hardcode_automatic=$hardcode_automatic
14582 # Set to yes if linker adds runtime paths of dependent libraries
14583 # to runtime path list.
14584 inherit_rpath=$inherit_rpath
14586 # Whether libtool must link a program against all its dependency libraries.
14587 link_all_deplibs=$link_all_deplibs
14589 # Set to "yes" if exported symbols are required.
14590 always_export_symbols=$always_export_symbols
14592 # The commands to list exported symbols.
14593 export_symbols_cmds=$lt_export_symbols_cmds
14595 # Symbols that should not be listed in the preloaded symbols.
14596 exclude_expsyms=$lt_exclude_expsyms
14598 # Symbols that must always be exported.
14599 include_expsyms=$lt_include_expsyms
14601 # Commands necessary for linking programs (against libraries) with templates.
14602 prelink_cmds=$lt_prelink_cmds
14604 # Commands necessary for finishing linking programs.
14605 postlink_cmds=$lt_postlink_cmds
14607 # Specify filename containing input files.
14608 file_list_spec=$lt_file_list_spec
14610 # How to hardcode a shared library path into an executable.
14611 hardcode_action=$hardcode_action
14613 # ### END LIBTOOL CONFIG
14619 cat <<\_LT_EOF >> "$cfgfile"
14620 # AIX sometimes has problems with the GCC collect2 program. For some
14621 # reason, if we set the COLLECT_NAMES environment variable, the problems
14622 # vanish in a puff of smoke.
14623 if test "X${COLLECT_NAMES+set}" != Xset; then
14625 export COLLECT_NAMES
14632 ltmain="$ac_aux_dir/ltmain.sh"
14635 # We use sed instead of cat because bash on DJGPP gets confused if
14636 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14637 # text mode, it properly converts lines to CR/LF. This bash problem
14638 # is reportedly fixed, but why not run on old versions too?
14639 sed '$q' "$ltmain" >> "$cfgfile" \
14640 || (rm -f "$cfgfile"; exit 1)
14642 if test x"$xsi_shell" = xyes; then
14643 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14647 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14648 \ * ) func_dirname_result="${3}" ;;\
14650 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14651 && mv -f "$cfgfile.tmp" "$cfgfile" \
14652 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14653 test 0 -eq $? || _lt_function_replace_fail=:
14656 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14659 \ func_basename_result="${1##*/}"\
14660 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14661 && mv -f "$cfgfile.tmp" "$cfgfile" \
14662 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14663 test 0 -eq $? || _lt_function_replace_fail=:
14666 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14667 func_dirname_and_basename ()\
14670 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14671 \ * ) func_dirname_result="${3}" ;;\
14673 \ func_basename_result="${1##*/}"\
14674 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14675 && mv -f "$cfgfile.tmp" "$cfgfile" \
14676 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14677 test 0 -eq $? || _lt_function_replace_fail=:
14680 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14683 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14684 \ # positional parameters, so assign one to ordinary parameter first.\
14685 \ func_stripname_result=${3}\
14686 \ func_stripname_result=${func_stripname_result#"${1}"}\
14687 \ func_stripname_result=${func_stripname_result%"${2}"}\
14688 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14689 && mv -f "$cfgfile.tmp" "$cfgfile" \
14690 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14691 test 0 -eq $? || _lt_function_replace_fail=:
14694 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14695 func_split_long_opt ()\
14697 \ func_split_long_opt_name=${1%%=*}\
14698 \ func_split_long_opt_arg=${1#*=}\
14699 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14700 && mv -f "$cfgfile.tmp" "$cfgfile" \
14701 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14702 test 0 -eq $? || _lt_function_replace_fail=:
14705 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14706 func_split_short_opt ()\
14708 \ func_split_short_opt_arg=${1#??}\
14709 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14710 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14711 && mv -f "$cfgfile.tmp" "$cfgfile" \
14712 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14713 test 0 -eq $? || _lt_function_replace_fail=:
14716 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14720 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14721 \ *) func_lo2o_result=${1} ;;\
14723 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14724 && mv -f "$cfgfile.tmp" "$cfgfile" \
14725 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14726 test 0 -eq $? || _lt_function_replace_fail=:
14729 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14732 func_xform_result=${1%.*}.lo\
14733 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14734 && mv -f "$cfgfile.tmp" "$cfgfile" \
14735 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14736 test 0 -eq $? || _lt_function_replace_fail=:
14739 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14742 func_arith_result=$(( $* ))\
14743 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14744 && mv -f "$cfgfile.tmp" "$cfgfile" \
14745 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14746 test 0 -eq $? || _lt_function_replace_fail=:
14749 sed -e '/^func_len ()$/,/^} # func_len /c\
14752 func_len_result=${#1}\
14753 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14754 && mv -f "$cfgfile.tmp" "$cfgfile" \
14755 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14756 test 0 -eq $? || _lt_function_replace_fail=:
14760 if test x"$lt_shell_append" = xyes; then
14761 sed -e '/^func_append ()$/,/^} # func_append /c\
14764 eval "${1}+=\\${2}"\
14765 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14766 && mv -f "$cfgfile.tmp" "$cfgfile" \
14767 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14768 test 0 -eq $? || _lt_function_replace_fail=:
14771 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14772 func_append_quoted ()\
14774 \ func_quote_for_eval "${2}"\
14775 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14776 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14777 && mv -f "$cfgfile.tmp" "$cfgfile" \
14778 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14779 test 0 -eq $? || _lt_function_replace_fail=:
14782 # Save a `func_append' function call where possible by direct use of '+='
14783 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14784 && mv -f "$cfgfile.tmp" "$cfgfile" \
14785 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14786 test 0 -eq $? || _lt_function_replace_fail=:
14788 # Save a `func_append' function call even when '+=' is not available
14789 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14790 && mv -f "$cfgfile.tmp" "$cfgfile" \
14791 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14792 test 0 -eq $? || _lt_function_replace_fail=:
14795 if test x"$_lt_function_replace_fail" = x":"; then
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14797 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14801 mv -f "$cfgfile" "$ofile" ||
14802 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14813 ac_clean_files=$ac_clean_files_save
14815 test $ac_write_fail = 0 ||
14816 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14819 # configure is writing to config.log, and then calls config.status.
14820 # config.status does its own redirection, appending to config.log.
14821 # Unfortunately, on DOS this fails, as config.log is still kept open
14822 # by configure, so config.status won't be able to write to it; its
14823 # output is simply discarded. So we exec the FD to /dev/null,
14824 # effectively closing config.log, so it can be properly (re)opened and
14825 # appended to by config.status. When coming back to configure, we
14826 # need to make the FD available again.
14827 if test "$no_create" != yes; then
14829 ac_config_status_args=
14830 test "$silent" = yes &&
14831 ac_config_status_args="$ac_config_status_args --quiet"
14833 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14835 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14836 # would make configure fail if this is the last instruction.
14837 $ac_cs_success || as_fn_exit 1
14839 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14841 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}