2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for the fast lexical analyser generator 2.6.4.
5 # Report bugs to <flex-help@lists.sourceforge.net>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: flex-help@lists.sourceforge.net about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='the fast lexical analyser generator'
592 PACKAGE_TARNAME='flex'
593 PACKAGE_VERSION='2.6.4'
594 PACKAGE_STRING='the fast lexical analyser generator 2.6.4'
595 PACKAGE_BUGREPORT='flex-help@lists.sourceforge.net'
598 ac_unique_file="src/scan.l"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_config_libobj_dir=lib
637 ac_subst_vars='am__EXEEXT_FALSE
649 ENABLE_BOOTSTRAP_FALSE
650 ENABLE_BOOTSTRAP_TRUE
683 XGETTEXT_EXTRA_OPTIONS
691 GETTEXT_MACRO_VERSION
715 INSTALL_STRIP_PROGRAM
796 program_transform_name
809 enable_option_checking
817 enable_dependency_tracking
827 ac_precious_vars='build_alias
844 # Initialize some variables set by options.
846 ac_init_version=false
847 ac_unrecognized_opts=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
858 program_transform_name=s,x,x,
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 runstatedir='${localstatedir}/run'
881 includedir='${prefix}/include'
882 oldincludedir='/usr/include'
883 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
884 infodir='${datarootdir}/info'
889 libdir='${exec_prefix}/lib'
890 localedir='${datarootdir}/locale'
891 mandir='${datarootdir}/man'
897 # If the previous option needs an argument, assign it.
898 if test -n "$ac_prev"; then
899 eval $ac_prev=\$ac_option
905 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910 # Accept the important Cygnus configure options, so we can diagnose typos.
912 case $ac_dashdash$ac_option in
916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921 -build | --build | --buil | --bui | --bu)
922 ac_prev=build_alias ;;
923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924 build_alias=$ac_optarg ;;
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931 cache_file=$ac_optarg ;;
934 cache_file=config.cache ;;
936 -datadir | --datadir | --datadi | --datad)
938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
939 datadir=$ac_optarg ;;
941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
948 -disable-* | --disable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error $? "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
962 eval enable_$ac_useropt=no ;;
964 -docdir | --docdir | --docdi | --doc | --do)
966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974 -enable-* | --enable-*)
975 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978 as_fn_error $? "invalid feature name: $ac_useropt"
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
988 eval enable_$ac_useropt=\$ac_optarg ;;
990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992 | --exec | --exe | --ex)
993 ac_prev=exec_prefix ;;
994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996 | --exec=* | --exe=* | --ex=*)
997 exec_prefix=$ac_optarg ;;
999 -gas | --gas | --ga | --g)
1000 # Obsolete; use --with-gas.
1003 -help | --help | --hel | --he | -h)
1004 ac_init_help=long ;;
1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006 ac_init_help=recursive ;;
1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008 ac_init_help=short ;;
1010 -host | --host | --hos | --ho)
1011 ac_prev=host_alias ;;
1012 -host=* | --host=* | --hos=* | --ho=*)
1013 host_alias=$ac_optarg ;;
1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 htmldir=$ac_optarg ;;
1021 -includedir | --includedir | --includedi | --included | --include \
1022 | --includ | --inclu | --incl | --inc)
1023 ac_prev=includedir ;;
1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025 | --includ=* | --inclu=* | --incl=* | --inc=*)
1026 includedir=$ac_optarg ;;
1028 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031 infodir=$ac_optarg ;;
1033 -libdir | --libdir | --libdi | --libd)
1035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036 libdir=$ac_optarg ;;
1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039 | --libexe | --libex | --libe)
1040 ac_prev=libexecdir ;;
1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042 | --libexe=* | --libex=* | --libe=*)
1043 libexecdir=$ac_optarg ;;
1045 -localedir | --localedir | --localedi | --localed | --locale)
1046 ac_prev=localedir ;;
1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048 localedir=$ac_optarg ;;
1050 -localstatedir | --localstatedir | --localstatedi | --localstated \
1051 | --localstate | --localstat | --localsta | --localst | --locals)
1052 ac_prev=localstatedir ;;
1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055 localstatedir=$ac_optarg ;;
1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060 mandir=$ac_optarg ;;
1062 -nfp | --nfp | --nf)
1063 # Obsolete; use --without-fp.
1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067 | --no-cr | --no-c | -n)
1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076 | --oldin | --oldi | --old | --ol | --o)
1077 ac_prev=oldincludedir ;;
1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081 oldincludedir=$ac_optarg ;;
1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086 prefix=$ac_optarg ;;
1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089 | --program-pre | --program-pr | --program-p)
1090 ac_prev=program_prefix ;;
1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093 program_prefix=$ac_optarg ;;
1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096 | --program-suf | --program-su | --program-s)
1097 ac_prev=program_suffix ;;
1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100 program_suffix=$ac_optarg ;;
1102 -program-transform-name | --program-transform-name \
1103 | --program-transform-nam | --program-transform-na \
1104 | --program-transform-n | --program-transform- \
1105 | --program-transform | --program-transfor \
1106 | --program-transfo | --program-transf \
1107 | --program-trans | --program-tran \
1108 | --progr-tra | --program-tr | --program-t)
1109 ac_prev=program_transform_name ;;
1110 -program-transform-name=* | --program-transform-name=* \
1111 | --program-transform-nam=* | --program-transform-na=* \
1112 | --program-transform-n=* | --program-transform-=* \
1113 | --program-transform=* | --program-transfor=* \
1114 | --program-transfo=* | --program-transf=* \
1115 | --program-trans=* | --program-tran=* \
1116 | --progr-tra=* | --program-tr=* | --program-t=*)
1117 program_transform_name=$ac_optarg ;;
1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122 pdfdir=$ac_optarg ;;
1124 -psdir | --psdir | --psdi | --psd | --ps)
1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1133 -runstatedir | --runstatedir | --runstatedi | --runstated \
1134 | --runstate | --runstat | --runsta | --runst | --runs \
1135 | --run | --ru | --r)
1136 ac_prev=runstatedir ;;
1137 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1138 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1139 | --run=* | --ru=* | --r=*)
1140 runstatedir=$ac_optarg ;;
1142 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 sbindir=$ac_optarg ;;
1148 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150 | --sharedst | --shareds | --shared | --share | --shar \
1152 ac_prev=sharedstatedir ;;
1153 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 sharedstatedir=$ac_optarg ;;
1159 -site | --site | --sit)
1161 -site=* | --site=* | --sit=*)
1164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167 srcdir=$ac_optarg ;;
1169 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170 | --syscon | --sysco | --sysc | --sys | --sy)
1171 ac_prev=sysconfdir ;;
1172 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174 sysconfdir=$ac_optarg ;;
1176 -target | --target | --targe | --targ | --tar | --ta | --t)
1177 ac_prev=target_alias ;;
1178 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179 target_alias=$ac_optarg ;;
1181 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1184 -version | --version | --versio | --versi | --vers | -V)
1185 ac_init_version=: ;;
1188 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1201 eval with_$ac_useropt=\$ac_optarg ;;
1203 -without-* | --without-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error $? "invalid package name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1217 eval with_$ac_useropt=no ;;
1220 # Obsolete; use --with-x.
1223 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1224 | --x-incl | --x-inc | --x-in | --x-i)
1225 ac_prev=x_includes ;;
1226 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1227 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1228 x_includes=$ac_optarg ;;
1230 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1231 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1232 ac_prev=x_libraries ;;
1233 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1234 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1235 x_libraries=$ac_optarg ;;
1237 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1238 Try \`$0 --help' for more information"
1242 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243 # Reject names that are not valid shell variable names.
1244 case $ac_envvar in #(
1245 '' | [0-9]* | *[!_$as_cr_alnum]* )
1246 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1248 eval $ac_envvar=\$ac_optarg
1249 export $ac_envvar ;;
1252 # FIXME: should be removed in autoconf 3.0.
1253 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1254 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1256 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262 if test -n "$ac_prev"; then
1263 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1264 as_fn_error $? "missing argument to $ac_option"
1267 if test -n "$ac_unrecognized_opts"; then
1268 case $enable_option_checking in
1270 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1271 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1275 # Check all directory arguments for consistency.
1276 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277 datadir sysconfdir sharedstatedir localstatedir includedir \
1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279 libdir localedir mandir runstatedir
1281 eval ac_val=\$$ac_var
1282 # Remove trailing slashes.
1285 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286 eval $ac_var=\$ac_val;;
1288 # Be sure to have absolute directory names.
1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1301 target=$target_alias
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
1307 elif test "x$build_alias" != "x$host_alias"; then
1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315 test "$silent" = yes && exec 6>/dev/null
1318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di=`ls -di .` &&
1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 as_fn_error $? "working directory cannot be determined"
1322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323 as_fn_error $? "pwd does not report name of working directory"
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328 ac_srcdir_defaulted=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir=`$as_dirname -- "$as_myself" ||
1331 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$as_myself" : 'X\(//\)[^/]' \| \
1333 X"$as_myself" : 'X\(//\)$' \| \
1334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335 $as_echo X"$as_myself" |
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1358 ac_srcdir_defaulted=no
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 # Report the --help message.
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1392 \`configure' configures the fast lexical analyser generator 2.6.4 to adapt to many kinds of systems.
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1399 Defaults for the options are specified in brackets.
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking ...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1423 For better control, use the options below.
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/flex]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461 if test -n "$ac_init_help"; then
1462 case $ac_init_help in
1463 short | recursive ) echo "Configuration of the fast lexical analyser generator 2.6.4:";;
1468 --disable-option-checking ignore unrecognized --enable/--with options
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --enable-shared[=PKGS] build shared libraries [default=yes]
1472 --enable-static[=PKGS] build static libraries [default=yes]
1473 --enable-fast-install[=PKGS]
1474 optimize for fast installation [default=yes]
1475 --disable-libtool-lock avoid locking (might break parallel builds)
1476 --enable-dependency-tracking
1477 do not reject slow dependency extractors
1478 --disable-dependency-tracking
1479 speeds up one-time build
1480 --enable-silent-rules less verbose build output (undo: "make V=1")
1481 --disable-silent-rules verbose build output (undo: "make V=0")
1482 --disable-nls do not use Native Language Support
1483 --disable-rpath do not hardcode runtime library paths
1484 --enable-warnings enable a bunch of compiler warning flags (defaults
1485 to GCC warning flags).
1486 --disable-libfl do not build -lfl runtime support library
1487 --disable-bootstrap don't perform a bootstrap when building flex
1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1492 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1494 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1495 --with-sysroot=DIR Search for dependent libraries within DIR
1496 (or the compiler's sysroot if not specified).
1497 --with-gnu-ld assume the C compiler uses GNU ld default=no
1498 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1499 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1500 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1501 --without-libintl-prefix don't search for libintl in includedir and libdir
1503 Some influential environment variables:
1504 CC C compiler command
1505 CFLAGS C compiler flags
1506 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507 nonstandard directory <lib dir>
1508 LIBS libraries to pass to the linker, e.g. -l<library>
1509 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1510 you have headers in a nonstandard directory <include dir>
1512 YACC The `Yet Another Compiler Compiler' implementation to use.
1513 Defaults to the first program found out of: `bison -y', `byacc',
1515 YFLAGS The list of arguments that will be passed by default to $YACC.
1516 This script will default YFLAGS to the empty string to avoid a
1517 default value of `-d' given by some make applications.
1518 CXX C++ compiler command
1519 CXXFLAGS C++ compiler flags
1520 CXXCPP C++ preprocessor
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1525 Report bugs to <flex-help@lists.sourceforge.net>.
1530 if test "$ac_init_help" = "recursive"; then
1531 # If there are subdirs, report their specific --help.
1532 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533 test -d "$ac_dir" ||
1534 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1542 # A ".." for each directory in $ac_dir_suffix.
1543 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1544 case $ac_top_builddir_sub in
1545 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549 ac_abs_top_builddir=$ac_pwd
1550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1551 # for backward compatibility:
1552 ac_top_builddir=$ac_top_build_prefix
1555 .) # We are building in place.
1557 ac_top_srcdir=$ac_top_builddir_sub
1558 ac_abs_top_srcdir=$ac_pwd ;;
1559 [\\/]* | ?:[\\/]* ) # Absolute name.
1560 ac_srcdir=$srcdir$ac_dir_suffix;
1561 ac_top_srcdir=$srcdir
1562 ac_abs_top_srcdir=$srcdir ;;
1564 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1565 ac_top_srcdir=$ac_top_build_prefix$srcdir
1566 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1570 cd "$ac_dir" || { ac_status=$?; continue; }
1571 # Check for guested configure.
1572 if test -f "$ac_srcdir/configure.gnu"; then
1574 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1575 elif test -f "$ac_srcdir/configure"; then
1577 $SHELL "$ac_srcdir/configure" --help=recursive
1579 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1581 cd "$ac_pwd" || { ac_status=$?; break; }
1585 test -n "$ac_init_help" && exit $ac_status
1586 if $ac_init_version; then
1588 the fast lexical analyser generator configure 2.6.4
1589 generated by GNU Autoconf 2.69
1591 Copyright (C) 2012 Free Software Foundation, Inc.
1592 This configure script is free software; the Free Software Foundation
1593 gives unlimited permission to copy, distribute and modify it.
1598 ## ------------------------ ##
1599 ## Autoconf initialization. ##
1600 ## ------------------------ ##
1602 # ac_fn_c_try_compile LINENO
1603 # --------------------------
1604 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_compile ()
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 rm -f conftest.$ac_objext
1609 if { { ac_try="$ac_compile"
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_compile") 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; } && {
1625 test -z "$ac_c_werror_flag" ||
1626 test ! -s conftest.err
1627 } && test -s conftest.$ac_objext; then :
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
1638 } # ac_fn_c_try_compile
1640 # ac_fn_c_try_link LINENO
1641 # -----------------------
1642 # Try to link conftest.$ac_ext, and return whether this succeeded.
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 rm -f conftest.$ac_objext conftest$ac_exeext
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>conftest.err
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } && {
1663 test -z "$ac_c_werror_flag" ||
1664 test ! -s conftest.err
1665 } && test -s conftest$ac_exeext && {
1666 test "$cross_compiling" = yes ||
1667 test -x conftest$ac_exeext
1671 $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1676 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1677 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1678 # interfere with the next link command; also delete a directory that is
1679 # left behind by Apple's compiler. We do this before executing the actions.
1680 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
1684 } # ac_fn_c_try_link
1686 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1687 # -------------------------------------------------------
1688 # Tests whether HEADER exists and can be compiled using the include files in
1689 # INCLUDES, setting the cache variable VAR accordingly.
1690 ac_fn_c_check_header_compile ()
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694 $as_echo_n "checking for $2... " >&6; }
1695 if eval \${$3+:} false; then :
1696 $as_echo_n "(cached) " >&6
1698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1699 /* end confdefs.h. */
1703 if ac_fn_c_try_compile "$LINENO"; then :
1708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712 $as_echo "$ac_res" >&6; }
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 } # ac_fn_c_check_header_compile
1717 # ac_fn_c_try_cpp LINENO
1718 # ----------------------
1719 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { { ac_try="$ac_cpp conftest.$ac_ext"
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } > conftest.i && {
1739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1754 # ac_fn_c_try_run LINENO
1755 # ----------------------
1756 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1757 # that executables *can* be run.
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_link"
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_link") 2>&5
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1772 { { case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_try") 2>&5
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; }; }; then :
1784 $as_echo "$as_me: program exited with status $ac_status" >&5
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1788 ac_retval=$ac_status
1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 as_fn_set_status $ac_retval
1796 # ac_fn_c_check_func LINENO FUNC VAR
1797 # ----------------------------------
1798 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1799 ac_fn_c_check_func ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 $as_echo_n "checking for $2... " >&6; }
1804 if eval \${$3+:} false; then :
1805 $as_echo_n "(cached) " >&6
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h. */
1809 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1811 #define $2 innocuous_$2
1813 /* System header to define __stub macros and hopefully few prototypes,
1814 which can conflict with char $2 (); below.
1815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1816 <limits.h> exists even on freestanding compilers. */
1819 # include <limits.h>
1821 # include <assert.h>
1826 /* Override any GCC internal prototype to avoid an error.
1827 Use char because int might match the return type of a GCC
1828 builtin and then its argument prototype would still apply. */
1833 /* The GNU C library defines this for functions which it implements
1834 to always fail with ENOSYS. Some functions are actually named
1835 something starting with __ and the normal name is an alias. */
1836 #if defined __stub_$2 || defined __stub___$2
1848 if ac_fn_c_try_link "$LINENO"; then :
1853 rm -f core conftest.err conftest.$ac_objext \
1854 conftest$ac_exeext conftest.$ac_ext
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861 } # ac_fn_c_check_func
1863 # ac_fn_cxx_try_compile LINENO
1864 # ----------------------------
1865 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_cxx_try_compile ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 rm -f conftest.$ac_objext
1870 if { { ac_try="$ac_compile"
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_compile") 2>conftest.err
1879 if test -s conftest.err; then
1880 grep -v '^ *+' conftest.err >conftest.er1
1881 cat conftest.er1 >&5
1882 mv -f conftest.er1 conftest.err
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; } && {
1886 test -z "$ac_cxx_werror_flag" ||
1887 test ! -s conftest.err
1888 } && test -s conftest.$ac_objext; then :
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 as_fn_set_status $ac_retval
1899 } # ac_fn_cxx_try_compile
1901 # ac_fn_cxx_try_cpp LINENO
1902 # ------------------------
1903 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1904 ac_fn_cxx_try_cpp ()
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 if { { ac_try="$ac_cpp conftest.$ac_ext"
1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910 *) ac_try_echo=$ac_try;;
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 $as_echo "$ac_try_echo"; } >&5
1914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1916 if test -s conftest.err; then
1917 grep -v '^ *+' conftest.err >conftest.er1
1918 cat conftest.er1 >&5
1919 mv -f conftest.er1 conftest.err
1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; } > conftest.i && {
1923 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1924 test ! -s conftest.err
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 as_fn_set_status $ac_retval
1936 } # ac_fn_cxx_try_cpp
1938 # ac_fn_cxx_try_link LINENO
1939 # -------------------------
1940 # Try to link conftest.$ac_ext, and return whether this succeeded.
1941 ac_fn_cxx_try_link ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 rm -f conftest.$ac_objext conftest$ac_exeext
1945 if { { ac_try="$ac_link"
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952 (eval "$ac_link") 2>conftest.err
1954 if test -s conftest.err; then
1955 grep -v '^ *+' conftest.err >conftest.er1
1956 cat conftest.er1 >&5
1957 mv -f conftest.er1 conftest.err
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; } && {
1961 test -z "$ac_cxx_werror_flag" ||
1962 test ! -s conftest.err
1963 } && test -s conftest$ac_exeext && {
1964 test "$cross_compiling" = yes ||
1965 test -x conftest$ac_exeext
1969 $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1974 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1975 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1976 # interfere with the next link command; also delete a directory that is
1977 # left behind by Apple's compiler. We do this before executing the actions.
1978 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980 as_fn_set_status $ac_retval
1982 } # ac_fn_cxx_try_link
1984 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1985 # -------------------------------------------------------
1986 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1987 # the include files in INCLUDES and setting the cache variable VAR
1989 ac_fn_c_check_header_mongrel ()
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 if eval \${$3+:} false; then :
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994 $as_echo_n "checking for $2... " >&6; }
1995 if eval \${$3+:} false; then :
1996 $as_echo_n "(cached) " >&6
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2002 # Is the header compilable?
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2004 $as_echo_n "checking $2 usability... " >&6; }
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2010 if ac_fn_c_try_compile "$LINENO"; then :
2011 ac_header_compiler=yes
2013 ac_header_compiler=no
2015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2017 $as_echo "$ac_header_compiler" >&6; }
2019 # Is the header present?
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2021 $as_echo_n "checking $2 presence... " >&6; }
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2026 if ac_fn_c_try_cpp "$LINENO"; then :
2027 ac_header_preproc=yes
2029 ac_header_preproc=no
2031 rm -f conftest.err conftest.i conftest.$ac_ext
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2033 $as_echo "$ac_header_preproc" >&6; }
2035 # So? What about this header?
2036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2039 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2041 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2045 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2047 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2049 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2051 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2053 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2054 ( $as_echo "## ---------------------------------------------- ##
2055 ## Report this to flex-help@lists.sourceforge.net ##
2056 ## ---------------------------------------------- ##"
2057 ) | sed "s/^/$as_me: WARNING: /" >&2
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if eval \${$3+:} false; then :
2063 $as_echo_n "(cached) " >&6
2065 eval "$3=\$ac_header_compiler"
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2069 $as_echo "$ac_res" >&6; }
2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073 } # ac_fn_c_check_header_mongrel
2075 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2076 # -------------------------------------------
2077 # Tests whether TYPE exists after having included INCLUDES, setting cache
2078 # variable VAR accordingly.
2079 ac_fn_c_check_type ()
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083 $as_echo_n "checking for $2... " >&6; }
2084 if eval \${$3+:} false; then :
2085 $as_echo_n "(cached) " >&6
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2113 if ac_fn_c_try_compile "$LINENO"; then :
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124 $as_echo "$ac_res" >&6; }
2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2127 } # ac_fn_c_check_type
2128 cat >config.log <<_ACEOF
2129 This file contains any messages produced by compilers while
2130 running configure, to aid debugging if configure makes a mistake.
2132 It was created by the fast lexical analyser generator $as_me 2.6.4, which was
2133 generated by GNU Autoconf 2.69. Invocation command line was
2145 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2146 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2147 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2148 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2149 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2151 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2152 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2154 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2155 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2156 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2157 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2158 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2159 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2160 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 test -z "$as_dir" && as_dir=.
2169 $as_echo "PATH: $as_dir"
2185 # Keep a trace of the command line.
2186 # Strip out --no-create and --no-recursion so they do not pile up.
2187 # Strip out --silent because we don't want to record it for future runs.
2188 # Also quote any args containing shell meta-characters.
2189 # Make two passes to allow for proper duplicate-argument suppression.
2193 ac_must_keep_next=false
2199 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2201 | -silent | --silent | --silen | --sile | --sil)
2204 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2207 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2209 as_fn_append ac_configure_args1 " '$ac_arg'"
2210 if test $ac_must_keep_next = true; then
2211 ac_must_keep_next=false # Got value, back to normal.
2214 *=* | --config-cache | -C | -disable-* | --disable-* \
2215 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2216 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2217 | -with-* | --with-* | -without-* | --without-* | --x)
2218 case "$ac_configure_args0 " in
2219 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2222 -* ) ac_must_keep_next=true ;;
2225 as_fn_append ac_configure_args " '$ac_arg'"
2230 { ac_configure_args0=; unset ac_configure_args0;}
2231 { ac_configure_args1=; unset ac_configure_args1;}
2233 # When interrupted or exit'd, cleanup temporary files, and complete
2234 # config.log. We remove comments because anyway the quotes in there
2235 # would cause problems or look ugly.
2236 # WARNING: Use '\'' to represent an apostrophe within the trap.
2237 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2238 trap 'exit_status=$?
2239 # Save into config.log some information that might help in debugging.
2243 $as_echo "## ---------------- ##
2244 ## Cache variables. ##
2245 ## ---------------- ##"
2247 # The following way of writing the cache mishandles newlines in values,
2249 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2250 eval ac_val=\$$ac_var
2254 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2255 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2258 _ | IFS | as_nl) ;; #(
2259 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2260 *) { eval $ac_var=; unset $ac_var;} ;;
2265 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2266 *${as_nl}ac_space=\ *)
2268 "s/'\''/'\''\\\\'\'''\''/g;
2269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2272 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2279 $as_echo "## ----------------- ##
2280 ## Output variables. ##
2281 ## ----------------- ##"
2283 for ac_var in $ac_subst_vars
2285 eval ac_val=\$$ac_var
2287 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2289 $as_echo "$ac_var='\''$ac_val'\''"
2293 if test -n "$ac_subst_files"; then
2294 $as_echo "## ------------------- ##
2295 ## File substitutions. ##
2296 ## ------------------- ##"
2298 for ac_var in $ac_subst_files
2300 eval ac_val=\$$ac_var
2302 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2304 $as_echo "$ac_var='\''$ac_val'\''"
2309 if test -s confdefs.h; then
2310 $as_echo "## ----------- ##
2317 test "$ac_signal" != 0 &&
2318 $as_echo "$as_me: caught signal $ac_signal"
2319 $as_echo "$as_me: exit $exit_status"
2321 rm -f core *.core core.conftest.* &&
2322 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2325 for ac_signal in 1 2 13 15; do
2326 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2330 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2331 rm -f -r conftest* confdefs.h
2333 $as_echo "/* confdefs.h */" > confdefs.h
2335 # Predefined preprocessor variables.
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_NAME "$PACKAGE_NAME"
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2345 cat >>confdefs.h <<_ACEOF
2346 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2349 cat >>confdefs.h <<_ACEOF
2350 #define PACKAGE_STRING "$PACKAGE_STRING"
2353 cat >>confdefs.h <<_ACEOF
2354 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2357 cat >>confdefs.h <<_ACEOF
2358 #define PACKAGE_URL "$PACKAGE_URL"
2362 # Let the site file select an alternate cache file if it wants to.
2363 # Prefer an explicitly selected file to automatically selected ones.
2366 if test -n "$CONFIG_SITE"; then
2367 # We do not want a PATH search for config.site.
2368 case $CONFIG_SITE in #((
2369 -*) ac_site_file1=./$CONFIG_SITE;;
2370 */*) ac_site_file1=$CONFIG_SITE;;
2371 *) ac_site_file1=./$CONFIG_SITE;;
2373 elif test "x$prefix" != xNONE; then
2374 ac_site_file1=$prefix/share/config.site
2375 ac_site_file2=$prefix/etc/config.site
2377 ac_site_file1=$ac_default_prefix/share/config.site
2378 ac_site_file2=$ac_default_prefix/etc/config.site
2380 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2382 test "x$ac_site_file" = xNONE && continue
2383 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2385 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2386 sed 's/^/| /' "$ac_site_file" >&5
2388 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2390 as_fn_error $? "failed to load site script $ac_site_file
2391 See \`config.log' for more details" "$LINENO" 5; }
2395 if test -r "$cache_file"; then
2396 # Some versions of bash will fail to source /dev/null (special files
2397 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2398 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2400 $as_echo "$as_me: loading cache $cache_file" >&6;}
2402 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2403 *) . "./$cache_file";;
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2408 $as_echo "$as_me: creating cache $cache_file" >&6;}
2412 gt_needs="$gt_needs "
2413 # Check that the precious variables saved in the cache have kept the same
2415 ac_cache_corrupted=false
2416 for ac_var in $ac_precious_vars; do
2417 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2418 eval ac_new_set=\$ac_env_${ac_var}_set
2419 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2420 eval ac_new_val=\$ac_env_${ac_var}_value
2421 case $ac_old_set,$ac_new_set in
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2424 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2425 ac_cache_corrupted=: ;;
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2428 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2429 ac_cache_corrupted=: ;;
2432 if test "x$ac_old_val" != "x$ac_new_val"; then
2433 # differences in whitespace do not lead to failure.
2434 ac_old_val_w=`echo x $ac_old_val`
2435 ac_new_val_w=`echo x $ac_new_val`
2436 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2438 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2439 ac_cache_corrupted=:
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2442 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2443 eval $ac_var=\$ac_old_val
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2446 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2448 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2451 # Pass precious variables to config.status.
2452 if test "$ac_new_set" = set; then
2454 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2455 *) ac_arg=$ac_var=$ac_new_val ;;
2457 case " $ac_configure_args " in
2458 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2459 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2463 if $ac_cache_corrupted; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2467 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2468 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2470 ## -------------------- ##
2471 ## Main body of script. ##
2472 ## -------------------- ##
2475 ac_cpp='$CPP $CPPFLAGS'
2476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2483 for ac_dir in build-aux "$srcdir"/build-aux; do
2484 if test -f "$ac_dir/install-sh"; then
2486 ac_install_sh="$ac_aux_dir/install-sh -c"
2488 elif test -f "$ac_dir/install.sh"; then
2490 ac_install_sh="$ac_aux_dir/install.sh -c"
2492 elif test -f "$ac_dir/shtool"; then
2494 ac_install_sh="$ac_aux_dir/shtool install -c"
2498 if test -z "$ac_aux_dir"; then
2499 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2502 # These three variables are undocumented and unsupported,
2503 # and are intended to be withdrawn in a future Autoconf release.
2504 # They can cause serious problems if a builder's source tree is in a directory
2505 # whose full name contains unusual characters.
2506 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2507 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2508 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2514 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2519 macro_version='2.4.2'
2520 macro_revision='1.3337'
2534 ltmain="$ac_aux_dir/ltmain.sh"
2536 # Make sure we can run config.sub.
2537 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2538 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2541 $as_echo_n "checking build system type... " >&6; }
2542 if ${ac_cv_build+:} false; then :
2543 $as_echo_n "(cached) " >&6
2545 ac_build_alias=$build_alias
2546 test "x$ac_build_alias" = x &&
2547 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2548 test "x$ac_build_alias" = x &&
2549 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2550 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2551 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2555 $as_echo "$ac_cv_build" >&6; }
2556 case $ac_cv_build in
2558 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2561 ac_save_IFS=$IFS; IFS='-'
2567 # Remember, the first character of IFS is used to create $*,
2568 # except with old shells:
2571 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2575 $as_echo_n "checking host system type... " >&6; }
2576 if ${ac_cv_host+:} false; then :
2577 $as_echo_n "(cached) " >&6
2579 if test "x$host_alias" = x; then
2580 ac_cv_host=$ac_cv_build
2582 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2583 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2588 $as_echo "$ac_cv_host" >&6; }
2591 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2594 ac_save_IFS=$IFS; IFS='-'
2600 # Remember, the first character of IFS is used to create $*,
2601 # except with old shells:
2604 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2607 # Backslashify metacharacters that are still active within
2608 # double-quoted strings.
2609 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2611 # Same as above, but do not quote variable references.
2612 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2614 # Sed substitution to delay expansion of an escaped shell variable in a
2615 # double_quote_subst'ed string.
2616 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2618 # Sed substitution to delay expansion of an escaped single quote.
2619 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2621 # Sed substitution to avoid accidental globbing in evaled expressions
2622 no_glob_subst='s/\*/\\\*/g'
2624 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2625 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2626 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2629 $as_echo_n "checking how to print strings... " >&6; }
2630 # Test print first, because it will be a builtin if present.
2631 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2632 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2634 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2637 # Use this function as a fallback that always works.
2638 func_fallback_echo ()
2640 eval 'cat <<_LTECHO_EOF
2644 ECHO='func_fallback_echo'
2647 # func_echo_all arg...
2648 # Invoke $ECHO with all args, space-separated.
2655 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2656 $as_echo "printf" >&6; } ;;
2657 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2658 $as_echo "print -r" >&6; } ;;
2659 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2660 $as_echo "cat" >&6; } ;;
2676 # Expand $ac_aux_dir to an absolute path.
2677 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2680 ac_cpp='$CPP $CPPFLAGS'
2681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2684 if test -n "$ac_tool_prefix"; then
2685 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2686 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688 $as_echo_n "checking for $ac_word... " >&6; }
2689 if ${ac_cv_prog_CC+:} false; then :
2690 $as_echo_n "(cached) " >&6
2692 if test -n "$CC"; then
2693 ac_cv_prog_CC="$CC" # Let the user override the test.
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 test -z "$as_dir" && as_dir=.
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2702 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 if test -n "$CC"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2715 $as_echo "$CC" >&6; }
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718 $as_echo "no" >&6; }
2723 if test -z "$ac_cv_prog_CC"; then
2725 # Extract the first word of "gcc", so it can be a program name with args.
2726 set dummy gcc; ac_word=$2
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2730 $as_echo_n "(cached) " >&6
2732 if test -n "$ac_ct_CC"; then
2733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742 ac_cv_prog_ac_ct_CC="gcc"
2743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2753 if test -n "$ac_ct_CC"; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2755 $as_echo "$ac_ct_CC" >&6; }
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758 $as_echo "no" >&6; }
2761 if test "x$ac_ct_CC" = x; then
2764 case $cross_compiling:$ac_tool_warned in
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2768 ac_tool_warned=yes ;;
2776 if test -z "$CC"; then
2777 if test -n "$ac_tool_prefix"; then
2778 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2779 set dummy ${ac_tool_prefix}cc; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_CC+:} false; then :
2783 $as_echo_n "(cached) " >&6
2785 if test -n "$CC"; then
2786 ac_cv_prog_CC="$CC" # Let the user override the test.
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795 ac_cv_prog_CC="${ac_tool_prefix}cc"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 if test -n "$CC"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2808 $as_echo "$CC" >&6; }
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2817 if test -z "$CC"; then
2818 # Extract the first word of "cc", so it can be a program name with args.
2819 set dummy cc; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if ${ac_cv_prog_CC+:} false; then :
2823 $as_echo_n "(cached) " >&6
2825 if test -n "$CC"; then
2826 ac_cv_prog_CC="$CC" # Let the user override the test.
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2836 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2837 ac_prog_rejected=yes
2841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 if test $ac_prog_rejected = yes; then
2849 # We found a bogon in the path, so make sure we never use it.
2850 set dummy $ac_cv_prog_CC
2852 if test $# != 0; then
2853 # We chose a different compiler from the bogus one.
2854 # However, it has the same basename, so the bogon will be chosen
2855 # first if we set CC to just the basename; use the full file name.
2857 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2863 if test -n "$CC"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2865 $as_echo "$CC" >&6; }
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2873 if test -z "$CC"; then
2874 if test -n "$ac_tool_prefix"; then
2875 for ac_prog in cl.exe
2877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if ${ac_cv_prog_CC+:} false; then :
2882 $as_echo_n "(cached) " >&6
2884 if test -n "$CC"; then
2885 ac_cv_prog_CC="$CC" # Let the user override the test.
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2894 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 if test -n "$CC"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2907 $as_echo "$CC" >&6; }
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2914 test -n "$CC" && break
2917 if test -z "$CC"; then
2919 for ac_prog in cl.exe
2921 # Extract the first word of "$ac_prog", so it can be a program name with args.
2922 set dummy $ac_prog; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2926 $as_echo_n "(cached) " >&6
2928 if test -n "$ac_ct_CC"; then
2929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2938 ac_cv_prog_ac_ct_CC="$ac_prog"
2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2949 if test -n "$ac_ct_CC"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2951 $as_echo "$ac_ct_CC" >&6; }
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2958 test -n "$ac_ct_CC" && break
2961 if test "x$ac_ct_CC" = x; then
2964 case $cross_compiling:$ac_tool_warned in
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2968 ac_tool_warned=yes ;;
2977 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2979 as_fn_error $? "no acceptable C compiler found in \$PATH
2980 See \`config.log' for more details" "$LINENO" 5; }
2982 # Provide some information about the compiler.
2983 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2986 for ac_option in --version -v -V -qversion; do
2987 { { ac_try="$ac_compiler $ac_option >&5"
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2993 $as_echo "$ac_try_echo"; } >&5
2994 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2996 if test -s conftest.err; then
2998 ... rest of stderr output deleted ...
2999 10q' conftest.err >conftest.er1
3000 cat conftest.er1 >&5
3002 rm -f conftest.er1 conftest.err
3003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3004 test $ac_status = 0; }
3007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008 /* end confdefs.h. */
3018 ac_clean_files_save=$ac_clean_files
3019 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3020 # Try to create an executable without -o first, disregard a.out.
3021 # It will help us diagnose broken compilers, and finding out an intuition
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3024 $as_echo_n "checking whether the C compiler works... " >&6; }
3025 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3027 # The possible output files:
3028 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3031 for ac_file in $ac_files
3034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3035 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3040 if { { ac_try="$ac_link_default"
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046 $as_echo "$ac_try_echo"; } >&5
3047 (eval "$ac_link_default") 2>&5
3049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050 test $ac_status = 0; }; then :
3051 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3052 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3053 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3054 # so that the user can short-circuit this test for compilers unknown to
3056 for ac_file in $ac_files ''
3058 test -f "$ac_file" || continue
3060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3063 # We found the default executable, but exeext='' is most
3067 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3069 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3071 # We set ac_cv_exeext here because the later test for it is not
3072 # safe: cross compilers may not add the suffix if given an `-o'
3073 # argument, so we may need to know it at that point already.
3074 # Even if this section looks crufty: it has the advantage of
3081 test "$ac_cv_exeext" = no && ac_cv_exeext=
3086 if test -z "$ac_file"; then :
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 $as_echo "no" >&6; }
3089 $as_echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094 as_fn_error 77 "C compiler cannot create executables
3095 See \`config.log' for more details" "$LINENO" 5; }
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3098 $as_echo "yes" >&6; }
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3101 $as_echo_n "checking for C compiler default output file name... " >&6; }
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3103 $as_echo "$ac_file" >&6; }
3104 ac_exeext=$ac_cv_exeext
3106 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3107 ac_clean_files=$ac_clean_files_save
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3109 $as_echo_n "checking for suffix of executables... " >&6; }
3110 if { { ac_try="$ac_link"
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116 $as_echo "$ac_try_echo"; } >&5
3117 (eval "$ac_link") 2>&5
3119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120 test $ac_status = 0; }; then :
3121 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3122 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3123 # work properly (i.e., refer to `conftest.exe'), while it won't with
3125 for ac_file in conftest.exe conftest conftest.*; do
3126 test -f "$ac_file" || continue
3128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3129 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3137 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3138 See \`config.log' for more details" "$LINENO" 5; }
3140 rm -f conftest conftest$ac_cv_exeext
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3142 $as_echo "$ac_cv_exeext" >&6; }
3144 rm -f conftest.$ac_ext
3145 EXEEXT=$ac_cv_exeext
3147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3148 /* end confdefs.h. */
3153 FILE *f = fopen ("conftest.out", "w");
3154 return ferror (f) || fclose (f) != 0;
3160 ac_clean_files="$ac_clean_files conftest.out"
3161 # Check that the compiler produces executables we can run. If not, either
3162 # the compiler is broken, or we cross compile.
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3164 $as_echo_n "checking whether we are cross compiling... " >&6; }
3165 if test "$cross_compiling" != yes; then
3166 { { ac_try="$ac_link"
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3172 $as_echo "$ac_try_echo"; } >&5
3173 (eval "$ac_link") 2>&5
3175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176 test $ac_status = 0; }
3177 if { ac_try='./conftest$ac_cv_exeext'
3178 { { case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183 $as_echo "$ac_try_echo"; } >&5
3184 (eval "$ac_try") 2>&5
3186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }; }; then
3190 if test "$cross_compiling" = maybe; then
3193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3195 as_fn_error $? "cannot run C compiled programs.
3196 If you meant to cross compile, use \`--host'.
3197 See \`config.log' for more details" "$LINENO" 5; }
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3202 $as_echo "$cross_compiling" >&6; }
3204 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3205 ac_clean_files=$ac_clean_files_save
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3207 $as_echo_n "checking for suffix of object files... " >&6; }
3208 if ${ac_cv_objext+:} false; then :
3209 $as_echo_n "(cached) " >&6
3211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3212 /* end confdefs.h. */
3222 rm -f conftest.o conftest.obj
3223 if { { ac_try="$ac_compile"
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229 $as_echo "$ac_try_echo"; } >&5
3230 (eval "$ac_compile") 2>&5
3232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233 test $ac_status = 0; }; then :
3234 for ac_file in conftest.o conftest.obj conftest.*; do
3235 test -f "$ac_file" || continue;
3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3238 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3243 $as_echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 as_fn_error $? "cannot compute suffix of object files: cannot compile
3249 See \`config.log' for more details" "$LINENO" 5; }
3251 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3254 $as_echo "$ac_cv_objext" >&6; }
3255 OBJEXT=$ac_cv_objext
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3258 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3259 if ${ac_cv_c_compiler_gnu+:} false; then :
3260 $as_echo_n "(cached) " >&6
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h. */
3276 if ac_fn_c_try_compile "$LINENO"; then :
3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3286 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3287 if test $ac_compiler_gnu = yes; then
3292 ac_test_CFLAGS=${CFLAGS+set}
3293 ac_save_CFLAGS=$CFLAGS
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3295 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3296 if ${ac_cv_prog_cc_g+:} false; then :
3297 $as_echo_n "(cached) " >&6
3299 ac_save_c_werror_flag=$ac_c_werror_flag
3300 ac_c_werror_flag=yes
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
3314 if ac_fn_c_try_compile "$LINENO"; then :
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3329 if ac_fn_c_try_compile "$LINENO"; then :
3332 ac_c_werror_flag=$ac_save_c_werror_flag
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h. */
3345 if ac_fn_c_try_compile "$LINENO"; then :
3348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3353 ac_c_werror_flag=$ac_save_c_werror_flag
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3356 $as_echo "$ac_cv_prog_cc_g" >&6; }
3357 if test "$ac_test_CFLAGS" = set; then
3358 CFLAGS=$ac_save_CFLAGS
3359 elif test $ac_cv_prog_cc_g = yes; then
3360 if test "$GCC" = yes; then
3366 if test "$GCC" = yes; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3373 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3374 if ${ac_cv_prog_cc_c89+:} false; then :
3375 $as_echo_n "(cached) " >&6
3377 ac_cv_prog_cc_c89=no
3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h. */
3384 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3385 struct buf { int x; };
3386 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3387 static char *e (p, i)
3393 static char *f (char * (*g) (char **, int), char **p, ...)
3398 s = g (p, va_arg (v,int));
3403 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3404 function prototypes and stuff, but not '\xHH' hex character constants.
3405 These don't provoke an error unfortunately, instead are silently treated
3406 as 'x'. The following induces an error, until -std is added to get
3407 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3408 array size at least. It's necessary to write '\x00'==0 to get something
3409 that's true only with -std. */
3410 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3412 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3413 inside strings and character constants. */
3415 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3417 int test (int i, double x);
3418 struct s1 {int (*f) (int a);};
3419 struct s2 {int (*f) (double a);};
3420 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3426 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3431 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3432 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3434 CC="$ac_save_CC $ac_arg"
3435 if ac_fn_c_try_compile "$LINENO"; then :
3436 ac_cv_prog_cc_c89=$ac_arg
3438 rm -f core conftest.err conftest.$ac_objext
3439 test "x$ac_cv_prog_cc_c89" != "xno" && break
3441 rm -f conftest.$ac_ext
3446 case "x$ac_cv_prog_cc_c89" in
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3449 $as_echo "none needed" >&6; } ;;
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3452 $as_echo "unsupported" >&6; } ;;
3454 CC="$CC $ac_cv_prog_cc_c89"
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3456 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3458 if test "x$ac_cv_prog_cc_c89" != xno; then :
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3469 ac_cpp='$CPP $CPPFLAGS'
3470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3474 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3475 if ${am_cv_prog_cc_c_o+:} false; then :
3476 $as_echo_n "(cached) " >&6
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3489 # Make sure it works both with $CC and with simple cc.
3490 # Following AC_PROG_CC_C_O, we do the test twice because some
3491 # compilers refuse to overwrite an existing .o file with -o,
3492 # though they will create one.
3493 am_cv_prog_cc_c_o=yes
3495 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3496 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } \
3500 && test -f conftest2.$ac_objext; then
3503 am_cv_prog_cc_c_o=no
3507 rm -f core conftest*
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3511 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3512 if test "$am_cv_prog_cc_c_o" != yes; then
3513 # Losing compiler, so override with the script.
3514 # FIXME: It is wrong to rewrite CC.
3515 # But if we don't then we get into trouble of one sort or another.
3516 # A longer-term fix would be to have automake use am__CC in this case,
3517 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3518 CC="$am_aux_dir/compile $CC"
3521 ac_cpp='$CPP $CPPFLAGS'
3522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3528 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3529 if ${ac_cv_path_SED+:} false; then :
3530 $as_echo_n "(cached) " >&6
3532 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3533 for ac_i in 1 2 3 4 5 6 7; do
3534 ac_script="$ac_script$as_nl$ac_script"
3536 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3537 { ac_script=; unset ac_script;}
3538 if test -z "$SED"; then
3539 ac_path_SED_found=false
3540 # Loop through the user's path and test for each of PROGNAME-LIST
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 test -z "$as_dir" && as_dir=.
3546 for ac_prog in sed gsed; do
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3549 as_fn_executable_p "$ac_path_SED" || continue
3550 # Check for GNU ac_path_SED and select it if it is found.
3551 # Check for GNU $ac_path_SED
3552 case `"$ac_path_SED" --version 2>&1` in
3554 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3557 $as_echo_n 0123456789 >"conftest.in"
3560 cat "conftest.in" "conftest.in" >"conftest.tmp"
3561 mv "conftest.tmp" "conftest.in"
3562 cp "conftest.in" "conftest.nl"
3563 $as_echo '' >> "conftest.nl"
3564 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3565 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3566 as_fn_arith $ac_count + 1 && ac_count=$as_val
3567 if test $ac_count -gt ${ac_path_SED_max-0}; then
3568 # Best one so far, save it but keep looking for a better one
3569 ac_cv_path_SED="$ac_path_SED"
3570 ac_path_SED_max=$ac_count
3572 # 10*(2^10) chars as input seems more than enough
3573 test $ac_count -gt 10 && break
3575 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3578 $ac_path_SED_found && break 3
3583 if test -z "$ac_cv_path_SED"; then
3584 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3592 $as_echo "$ac_cv_path_SED" >&6; }
3593 SED="$ac_cv_path_SED"
3596 test -z "$SED" && SED=sed
3597 Xsed="$SED -e 1s/^X//"
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3610 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3611 if ${ac_cv_path_GREP+:} false; then :
3612 $as_echo_n "(cached) " >&6
3614 if test -z "$GREP"; then
3615 ac_path_GREP_found=false
3616 # Loop through the user's path and test for each of PROGNAME-LIST
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3621 test -z "$as_dir" && as_dir=.
3622 for ac_prog in grep ggrep; do
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3625 as_fn_executable_p "$ac_path_GREP" || continue
3626 # Check for GNU ac_path_GREP and select it if it is found.
3627 # Check for GNU $ac_path_GREP
3628 case `"$ac_path_GREP" --version 2>&1` in
3630 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3633 $as_echo_n 0123456789 >"conftest.in"
3636 cat "conftest.in" "conftest.in" >"conftest.tmp"
3637 mv "conftest.tmp" "conftest.in"
3638 cp "conftest.in" "conftest.nl"
3639 $as_echo 'GREP' >> "conftest.nl"
3640 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3641 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3642 as_fn_arith $ac_count + 1 && ac_count=$as_val
3643 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3644 # Best one so far, save it but keep looking for a better one
3645 ac_cv_path_GREP="$ac_path_GREP"
3646 ac_path_GREP_max=$ac_count
3648 # 10*(2^10) chars as input seems more than enough
3649 test $ac_count -gt 10 && break
3651 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3654 $ac_path_GREP_found && break 3
3659 if test -z "$ac_cv_path_GREP"; then
3660 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3663 ac_cv_path_GREP=$GREP
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3668 $as_echo "$ac_cv_path_GREP" >&6; }
3669 GREP="$ac_cv_path_GREP"
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3673 $as_echo_n "checking for egrep... " >&6; }
3674 if ${ac_cv_path_EGREP+:} false; then :
3675 $as_echo_n "(cached) " >&6
3677 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3678 then ac_cv_path_EGREP="$GREP -E"
3680 if test -z "$EGREP"; then
3681 ac_path_EGREP_found=false
3682 # Loop through the user's path and test for each of PROGNAME-LIST
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3687 test -z "$as_dir" && as_dir=.
3688 for ac_prog in egrep; do
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3691 as_fn_executable_p "$ac_path_EGREP" || continue
3692 # Check for GNU ac_path_EGREP and select it if it is found.
3693 # Check for GNU $ac_path_EGREP
3694 case `"$ac_path_EGREP" --version 2>&1` in
3696 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3699 $as_echo_n 0123456789 >"conftest.in"
3702 cat "conftest.in" "conftest.in" >"conftest.tmp"
3703 mv "conftest.tmp" "conftest.in"
3704 cp "conftest.in" "conftest.nl"
3705 $as_echo 'EGREP' >> "conftest.nl"
3706 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3707 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3708 as_fn_arith $ac_count + 1 && ac_count=$as_val
3709 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3710 # Best one so far, save it but keep looking for a better one
3711 ac_cv_path_EGREP="$ac_path_EGREP"
3712 ac_path_EGREP_max=$ac_count
3714 # 10*(2^10) chars as input seems more than enough
3715 test $ac_count -gt 10 && break
3717 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3720 $ac_path_EGREP_found && break 3
3725 if test -z "$ac_cv_path_EGREP"; then
3726 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3729 ac_cv_path_EGREP=$EGREP
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3735 $as_echo "$ac_cv_path_EGREP" >&6; }
3736 EGREP="$ac_cv_path_EGREP"
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3740 $as_echo_n "checking for fgrep... " >&6; }
3741 if ${ac_cv_path_FGREP+:} false; then :
3742 $as_echo_n "(cached) " >&6
3744 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3745 then ac_cv_path_FGREP="$GREP -F"
3747 if test -z "$FGREP"; then
3748 ac_path_FGREP_found=false
3749 # Loop through the user's path and test for each of PROGNAME-LIST
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3754 test -z "$as_dir" && as_dir=.
3755 for ac_prog in fgrep; do
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3758 as_fn_executable_p "$ac_path_FGREP" || continue
3759 # Check for GNU ac_path_FGREP and select it if it is found.
3760 # Check for GNU $ac_path_FGREP
3761 case `"$ac_path_FGREP" --version 2>&1` in
3763 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3766 $as_echo_n 0123456789 >"conftest.in"
3769 cat "conftest.in" "conftest.in" >"conftest.tmp"
3770 mv "conftest.tmp" "conftest.in"
3771 cp "conftest.in" "conftest.nl"
3772 $as_echo 'FGREP' >> "conftest.nl"
3773 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3774 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3775 as_fn_arith $ac_count + 1 && ac_count=$as_val
3776 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3777 # Best one so far, save it but keep looking for a better one
3778 ac_cv_path_FGREP="$ac_path_FGREP"
3779 ac_path_FGREP_max=$ac_count
3781 # 10*(2^10) chars as input seems more than enough
3782 test $ac_count -gt 10 && break
3784 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3787 $ac_path_FGREP_found && break 3
3792 if test -z "$ac_cv_path_FGREP"; then
3793 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3796 ac_cv_path_FGREP=$FGREP
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3802 $as_echo "$ac_cv_path_FGREP" >&6; }
3803 FGREP="$ac_cv_path_FGREP"
3806 test -z "$GREP" && GREP=grep
3826 # Check whether --with-gnu-ld was given.
3827 if test "${with_gnu_ld+set}" = set; then :
3828 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3834 if test "$GCC" = yes; then
3835 # Check if gcc -print-prog-name=ld gives a path.
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3837 $as_echo_n "checking for ld used by $CC... " >&6; }
3840 # gcc leaves a trailing carriage return which upsets mingw
3841 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3843 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3846 # Accept absolute paths.
3848 re_direlt='/[^/][^/]*/\.\./'
3849 # Canonicalize the pathname of ld
3850 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3851 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3852 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3854 test -z "$LD" && LD="$ac_prog"
3857 # If it fails, then pretend we aren't using GCC.
3861 # If it is relative, then search for the first ld in PATH.
3865 elif test "$with_gnu_ld" = yes; then
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3867 $as_echo_n "checking for GNU ld... " >&6; }
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3870 $as_echo_n "checking for non-GNU ld... " >&6; }
3872 if ${lt_cv_path_LD+:} false; then :
3873 $as_echo_n "(cached) " >&6
3875 if test -z "$LD"; then
3876 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3877 for ac_dir in $PATH; do
3879 test -z "$ac_dir" && ac_dir=.
3880 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3881 lt_cv_path_LD="$ac_dir/$ac_prog"
3882 # Check to see if the program is GNU ld. I'd rather use --version,
3883 # but apparently some variants of GNU ld only accept -v.
3884 # Break only if it was the GNU/non-GNU ld that we prefer.
3885 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3886 *GNU* | *'with BFD'*)
3887 test "$with_gnu_ld" != no && break
3890 test "$with_gnu_ld" != yes && break
3897 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3902 if test -n "$LD"; then
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3904 $as_echo "$LD" >&6; }
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3907 $as_echo "no" >&6; }
3909 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3911 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3912 if ${lt_cv_prog_gnu_ld+:} false; then :
3913 $as_echo_n "(cached) " >&6
3915 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3916 case `$LD -v 2>&1 </dev/null` in
3917 *GNU* | *'with BFD'*)
3918 lt_cv_prog_gnu_ld=yes
3921 lt_cv_prog_gnu_ld=no
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3926 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3927 with_gnu_ld=$lt_cv_prog_gnu_ld
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3938 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3939 if ${lt_cv_path_NM+:} false; then :
3940 $as_echo_n "(cached) " >&6
3942 if test -n "$NM"; then
3943 # Let the user override the test.
3946 lt_nm_to_check="${ac_tool_prefix}nm"
3947 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3948 lt_nm_to_check="$lt_nm_to_check nm"
3950 for lt_tmp_nm in $lt_nm_to_check; do
3951 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3952 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3954 test -z "$ac_dir" && ac_dir=.
3955 tmp_nm="$ac_dir/$lt_tmp_nm"
3956 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3957 # Check to see if the nm accepts a BSD-compat flag.
3958 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3959 # nm: unknown option "B" ignored
3960 # Tru64's nm complains that /dev/null is an invalid object file
3961 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3962 */dev/null* | *'Invalid file or object type'*)
3963 lt_cv_path_NM="$tmp_nm -B"
3967 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3969 lt_cv_path_NM="$tmp_nm -p"
3973 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3974 continue # so that we can try to find one that supports BSD flags
3983 : ${lt_cv_path_NM=no}
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3987 $as_echo "$lt_cv_path_NM" >&6; }
3988 if test "$lt_cv_path_NM" != "no"; then
3991 # Didn't find any BSD compatible name lister, look for dumpbin.
3992 if test -n "$DUMPBIN"; then :
3993 # Let the user override the test.
3995 if test -n "$ac_tool_prefix"; then
3996 for ac_prog in dumpbin "link -dump"
3998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4001 $as_echo_n "checking for $ac_word... " >&6; }
4002 if ${ac_cv_prog_DUMPBIN+:} false; then :
4003 $as_echo_n "(cached) " >&6
4005 if test -n "$DUMPBIN"; then
4006 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012 test -z "$as_dir" && as_dir=.
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4015 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 DUMPBIN=$ac_cv_prog_DUMPBIN
4026 if test -n "$DUMPBIN"; then
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4028 $as_echo "$DUMPBIN" >&6; }
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031 $as_echo "no" >&6; }
4035 test -n "$DUMPBIN" && break
4038 if test -z "$DUMPBIN"; then
4039 ac_ct_DUMPBIN=$DUMPBIN
4040 for ac_prog in dumpbin "link -dump"
4042 # Extract the first word of "$ac_prog", so it can be a program name with args.
4043 set dummy $ac_prog; ac_word=$2
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4045 $as_echo_n "checking for $ac_word... " >&6; }
4046 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4047 $as_echo_n "(cached) " >&6
4049 if test -n "$ac_ct_DUMPBIN"; then
4050 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 test -z "$as_dir" && as_dir=.
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4069 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4070 if test -n "$ac_ct_DUMPBIN"; then
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4072 $as_echo "$ac_ct_DUMPBIN" >&6; }
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075 $as_echo "no" >&6; }
4079 test -n "$ac_ct_DUMPBIN" && break
4082 if test "x$ac_ct_DUMPBIN" = x; then
4085 case $cross_compiling:$ac_tool_warned in
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4089 ac_tool_warned=yes ;;
4091 DUMPBIN=$ac_ct_DUMPBIN
4095 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4097 DUMPBIN="$DUMPBIN -symbols"
4105 if test "$DUMPBIN" != ":"; then
4109 test -z "$NM" && NM=nm
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4117 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4118 if ${lt_cv_nm_interface+:} false; then :
4119 $as_echo_n "(cached) " >&6
4121 lt_cv_nm_interface="BSD nm"
4122 echo "int some_variable = 0;" > conftest.$ac_ext
4123 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4124 (eval "$ac_compile" 2>conftest.err)
4125 cat conftest.err >&5
4126 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4127 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4128 cat conftest.err >&5
4129 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4130 cat conftest.out >&5
4131 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4132 lt_cv_nm_interface="MS dumpbin"
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4137 $as_echo "$lt_cv_nm_interface" >&6; }
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4140 $as_echo_n "checking whether ln -s works... " >&6; }
4142 if test "$LN_S" = "ln -s"; then
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4144 $as_echo "yes" >&6; }
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4147 $as_echo "no, using $LN_S" >&6; }
4150 # find the maximum length of command line arguments
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4152 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4153 if ${lt_cv_sys_max_cmd_len+:} false; then :
4154 $as_echo_n "(cached) " >&6
4161 # On DJGPP, this test can blow up pretty badly due to problems in libc
4162 # (any single argument exceeding 2000 bytes causes a buffer overrun
4163 # during glob expansion). Even if it were fixed, the result of this
4164 # check would be larger than it should be.
4165 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4169 # Under GNU Hurd, this test is not required because there is
4170 # no limit to the length of command line arguments.
4171 # Libtool will interpret -1 as no limit whatsoever
4172 lt_cv_sys_max_cmd_len=-1;
4175 cygwin* | mingw* | cegcc*)
4176 # On Win9x/ME, this test blows up -- it succeeds, but takes
4177 # about 5 minutes as the teststring grows exponentially.
4178 # Worse, since 9x/ME are not pre-emptively multitasking,
4179 # you end up with a "frozen" computer, even though with patience
4180 # the test eventually succeeds (with a max line length of 256k).
4181 # Instead, let's just punt: use the minimum linelength reported by
4182 # all of the supported platforms: 8192 (on NT/2K/XP).
4183 lt_cv_sys_max_cmd_len=8192;
4187 # On MiNT this can take a long time and run out of memory.
4188 lt_cv_sys_max_cmd_len=8192;
4192 # On AmigaOS with pdksh, this test takes hours, literally.
4193 # So we just punt and use a minimum line length of 8192.
4194 lt_cv_sys_max_cmd_len=8192;
4197 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4198 # This has been around since 386BSD, at least. Likely further.
4199 if test -x /sbin/sysctl; then
4200 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4201 elif test -x /usr/sbin/sysctl; then
4202 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4204 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4206 # And add a safety zone
4207 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4208 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4212 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4213 lt_cv_sys_max_cmd_len=196608
4217 # The test takes a long time on OS/2.
4218 lt_cv_sys_max_cmd_len=8192
4222 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4223 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4224 # nice to cause kernel panics so lets avoid the loop below.
4225 # First set a reasonable default.
4226 lt_cv_sys_max_cmd_len=16384
4228 if test -x /sbin/sysconfig; then
4229 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4230 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4235 lt_cv_sys_max_cmd_len=102400
4237 sysv5* | sco5v6* | sysv4.2uw2*)
4238 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4239 if test -n "$kargmax"; then
4240 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4242 lt_cv_sys_max_cmd_len=32768
4246 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4247 if test -n "$lt_cv_sys_max_cmd_len" && \
4248 test undefined != "$lt_cv_sys_max_cmd_len"; then
4249 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4250 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4252 # Make teststring a little bigger before we do anything with it.
4253 # a 1K string should be a reasonable start.
4254 for i in 1 2 3 4 5 6 7 8 ; do
4255 teststring=$teststring$teststring
4257 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4258 # If test is not a shell built-in, we'll probably end up computing a
4259 # maximum length that is only half of the actual maximum length, but
4261 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4262 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4263 test $i != 17 # 1/2 MB should be enough
4266 teststring=$teststring$teststring
4268 # Only check the string length outside the loop.
4269 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4271 # Add a significant safety factor because C++ compilers can tack on
4272 # massive amounts of additional arguments before passing them to the
4273 # linker. It appears as though 1/2 is a usable value.
4274 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4281 if test -n $lt_cv_sys_max_cmd_len ; then
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4283 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4286 $as_echo "none" >&6; }
4288 max_cmd_len=$lt_cv_sys_max_cmd_len
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4300 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4301 # Try some XSI features
4304 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4306 && eval 'test $(( 1 + 1 )) -eq 2 \
4307 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4310 $as_echo "$xsi_shell" >&6; }
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4314 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4316 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4318 && lt_shell_append=yes
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4320 $as_echo "$lt_shell_append" >&6; }
4323 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4333 # test EBCDIC or ASCII
4334 case `echo X|tr X '\101'` in
4335 A) # ASCII based system
4336 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4337 lt_SP2NL='tr \040 \012'
4338 lt_NL2SP='tr \015\012 \040\040'
4340 *) # EBCDIC based system
4341 lt_SP2NL='tr \100 \n'
4342 lt_NL2SP='tr \r\n \100\100'
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4355 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4356 if ${lt_cv_to_host_file_cmd+:} false; then :
4357 $as_echo_n "(cached) " >&6
4362 *-*-mingw* ) # actually msys
4363 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4366 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4368 * ) # otherwise, assume *nix
4369 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4375 *-*-mingw* ) # actually msys
4376 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4379 lt_cv_to_host_file_cmd=func_convert_file_noop
4381 * ) # otherwise, assume *nix
4382 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4386 * ) # unhandled hosts (and "normal" native builds)
4387 lt_cv_to_host_file_cmd=func_convert_file_noop
4393 to_host_file_cmd=$lt_cv_to_host_file_cmd
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4395 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4402 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4403 if ${lt_cv_to_tool_file_cmd+:} false; then :
4404 $as_echo_n "(cached) " >&6
4406 #assume ordinary cross tools, or native build.
4407 lt_cv_to_tool_file_cmd=func_convert_file_noop
4411 *-*-mingw* ) # actually msys
4412 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4420 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4422 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4429 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4430 if ${lt_cv_ld_reload_flag+:} false; then :
4431 $as_echo_n "(cached) " >&6
4433 lt_cv_ld_reload_flag='-r'
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4436 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4437 reload_flag=$lt_cv_ld_reload_flag
4438 case $reload_flag in
4440 *) reload_flag=" $reload_flag" ;;
4442 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4444 cygwin* | mingw* | pw32* | cegcc*)
4445 if test "$GCC" != yes; then
4450 if test "$GCC" = yes; then
4451 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4453 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4466 if test -n "$ac_tool_prefix"; then
4467 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4468 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4470 $as_echo_n "checking for $ac_word... " >&6; }
4471 if ${ac_cv_prog_OBJDUMP+:} false; then :
4472 $as_echo_n "(cached) " >&6
4474 if test -n "$OBJDUMP"; then
4475 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4484 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 OBJDUMP=$ac_cv_prog_OBJDUMP
4495 if test -n "$OBJDUMP"; then
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4497 $as_echo "$OBJDUMP" >&6; }
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500 $as_echo "no" >&6; }
4505 if test -z "$ac_cv_prog_OBJDUMP"; then
4506 ac_ct_OBJDUMP=$OBJDUMP
4507 # Extract the first word of "objdump", so it can be a program name with args.
4508 set dummy objdump; ac_word=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4512 $as_echo_n "(cached) " >&6
4514 if test -n "$ac_ct_OBJDUMP"; then
4515 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4535 if test -n "$ac_ct_OBJDUMP"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4537 $as_echo "$ac_ct_OBJDUMP" >&6; }
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4543 if test "x$ac_ct_OBJDUMP" = x; then
4546 case $cross_compiling:$ac_tool_warned in
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4550 ac_tool_warned=yes ;;
4552 OBJDUMP=$ac_ct_OBJDUMP
4555 OBJDUMP="$ac_cv_prog_OBJDUMP"
4558 test -z "$OBJDUMP" && OBJDUMP=objdump
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4569 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4570 if ${lt_cv_deplibs_check_method+:} false; then :
4571 $as_echo_n "(cached) " >&6
4573 lt_cv_file_magic_cmd='$MAGIC_CMD'
4574 lt_cv_file_magic_test_file=
4575 lt_cv_deplibs_check_method='unknown'
4576 # Need to set the preceding variable on all platforms that support
4577 # interlibrary dependencies.
4578 # 'none' -- dependencies not supported.
4579 # `unknown' -- same as none, but documents that we really don't know.
4580 # 'pass_all' -- all dependencies passed with no checks.
4581 # 'test_compile' -- check by making test program.
4582 # 'file_magic [[regex]]' -- check by looking for files in library path
4583 # which responds to the $file_magic_cmd with a given extended regex.
4584 # If you have `file' or equivalent on your system and you're not sure
4585 # whether `pass_all' will *always* work, you probably want this one.
4589 lt_cv_deplibs_check_method=pass_all
4593 lt_cv_deplibs_check_method=pass_all
4597 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4598 lt_cv_file_magic_cmd='/usr/bin/file -L'
4599 lt_cv_file_magic_test_file=/shlib/libc.so
4603 # func_win32_libid is a shell function defined in ltmain.sh
4604 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4605 lt_cv_file_magic_cmd='func_win32_libid'
4609 # Base MSYS/MinGW do not provide the 'file' command needed by
4610 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4611 # unless we find 'file', for example because we are cross-compiling.
4612 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4613 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4614 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4615 lt_cv_file_magic_cmd='func_win32_libid'
4617 # Keep this pattern in sync with the one in func_win32_libid.
4618 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4619 lt_cv_file_magic_cmd='$OBJDUMP -f'
4624 # use the weaker test based on 'objdump'. See mingw*.
4625 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4626 lt_cv_file_magic_cmd='$OBJDUMP -f'
4629 darwin* | rhapsody*)
4630 lt_cv_deplibs_check_method=pass_all
4633 freebsd* | dragonfly*)
4634 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4637 # Not sure whether the presence of OpenBSD here was a mistake.
4638 # Let's accept both of them until this is cleared up.
4639 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4640 lt_cv_file_magic_cmd=/usr/bin/file
4641 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4645 lt_cv_deplibs_check_method=pass_all
4650 lt_cv_deplibs_check_method=pass_all
4653 hpux10.20* | hpux11*)
4654 lt_cv_file_magic_cmd=/usr/bin/file
4657 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4658 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4661 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]'
4662 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4665 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4666 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4672 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4676 irix5* | irix6* | nonstopux*)
4678 *-32|*"-32 ") libmagic=32-bit;;
4679 *-n32|*"-n32 ") libmagic=N32;;
4680 *-64|*"-64 ") libmagic=64-bit;;
4681 *) libmagic=never-match;;
4683 lt_cv_deplibs_check_method=pass_all
4686 # This must be glibc/ELF.
4687 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4688 lt_cv_deplibs_check_method=pass_all
4691 netbsd* | netbsdelf*-gnu)
4692 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4700 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4701 lt_cv_file_magic_cmd=/usr/bin/file
4702 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4706 lt_cv_deplibs_check_method=pass_all
4710 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4713 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4717 osf3* | osf4* | osf5*)
4718 lt_cv_deplibs_check_method=pass_all
4722 lt_cv_deplibs_check_method=pass_all
4726 lt_cv_deplibs_check_method=pass_all
4729 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4730 lt_cv_deplibs_check_method=pass_all
4734 case $host_vendor in
4736 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]'
4737 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4740 lt_cv_deplibs_check_method=pass_all
4743 lt_cv_file_magic_cmd='/bin/file'
4744 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4747 lt_cv_file_magic_cmd='/bin/file'
4748 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4749 lt_cv_file_magic_test_file=/lib/libc.so
4752 lt_cv_deplibs_check_method=pass_all
4755 lt_cv_deplibs_check_method=pass_all
4761 lt_cv_deplibs_check_method=pass_all
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4767 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4771 if test "$build" = "$host"; then
4774 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4777 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4783 file_magic_cmd=$lt_cv_file_magic_cmd
4784 deplibs_check_method=$lt_cv_deplibs_check_method
4785 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4808 if test -n "$ac_tool_prefix"; then
4809 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4810 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 $as_echo_n "checking for $ac_word... " >&6; }
4813 if ${ac_cv_prog_DLLTOOL+:} false; then :
4814 $as_echo_n "(cached) " >&6
4816 if test -n "$DLLTOOL"; then
4817 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4826 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4836 DLLTOOL=$ac_cv_prog_DLLTOOL
4837 if test -n "$DLLTOOL"; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4839 $as_echo "$DLLTOOL" >&6; }
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4847 if test -z "$ac_cv_prog_DLLTOOL"; then
4848 ac_ct_DLLTOOL=$DLLTOOL
4849 # Extract the first word of "dlltool", so it can be a program name with args.
4850 set dummy dlltool; ac_word=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4854 $as_echo_n "(cached) " >&6
4856 if test -n "$ac_ct_DLLTOOL"; then
4857 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4866 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4877 if test -n "$ac_ct_DLLTOOL"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4879 $as_echo "$ac_ct_DLLTOOL" >&6; }
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4885 if test "x$ac_ct_DLLTOOL" = x; then
4888 case $cross_compiling:$ac_tool_warned in
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4892 ac_tool_warned=yes ;;
4894 DLLTOOL=$ac_ct_DLLTOOL
4897 DLLTOOL="$ac_cv_prog_DLLTOOL"
4900 test -z "$DLLTOOL" && DLLTOOL=dlltool
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4912 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4913 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4914 $as_echo_n "(cached) " >&6
4916 lt_cv_sharedlib_from_linklib_cmd='unknown'
4919 cygwin* | mingw* | pw32* | cegcc*)
4920 # two different shell functions defined in ltmain.sh
4921 # decide which to use based on capabilities of $DLLTOOL
4922 case `$DLLTOOL --help 2>&1` in
4923 *--identify-strict*)
4924 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4927 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4932 # fallback: assume linklib IS sharedlib
4933 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4939 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4940 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4941 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4950 if test -n "$ac_tool_prefix"; then
4953 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4954 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956 $as_echo_n "checking for $ac_word... " >&6; }
4957 if ${ac_cv_prog_AR+:} false; then :
4958 $as_echo_n "(cached) " >&6
4960 if test -n "$AR"; then
4961 ac_cv_prog_AR="$AR" # Let the user override the test.
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 test -z "$as_dir" && as_dir=.
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4970 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981 if test -n "$AR"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4983 $as_echo "$AR" >&6; }
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4990 test -n "$AR" && break
4993 if test -z "$AR"; then
4997 # Extract the first word of "$ac_prog", so it can be a program name with args.
4998 set dummy $ac_prog; ac_word=$2
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5000 $as_echo_n "checking for $ac_word... " >&6; }
5001 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5002 $as_echo_n "(cached) " >&6
5004 if test -n "$ac_ct_AR"; then
5005 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5014 ac_cv_prog_ac_ct_AR="$ac_prog"
5015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5025 if test -n "$ac_ct_AR"; then
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5027 $as_echo "$ac_ct_AR" >&6; }
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030 $as_echo "no" >&6; }
5034 test -n "$ac_ct_AR" && break
5037 if test "x$ac_ct_AR" = x; then
5040 case $cross_compiling:$ac_tool_warned in
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5044 ac_tool_warned=yes ;;
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5064 $as_echo_n "checking for archiver @FILE support... " >&6; }
5065 if ${lt_cv_ar_at_file+:} false; then :
5066 $as_echo_n "(cached) " >&6
5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h. */
5080 if ac_fn_c_try_compile "$LINENO"; then :
5081 echo conftest.$ac_objext > conftest.lst
5082 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5084 (eval $lt_ar_try) 2>&5
5086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5087 test $ac_status = 0; }
5088 if test "$ac_status" -eq 0; then
5089 # Ensure the archiver fails upon bogus file names.
5090 rm -f conftest.$ac_objext libconftest.a
5091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5092 (eval $lt_ar_try) 2>&5
5094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5095 test $ac_status = 0; }
5096 if test "$ac_status" -ne 0; then
5100 rm -f conftest.* libconftest.a
5103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5107 $as_echo "$lt_cv_ar_at_file" >&6; }
5109 if test "x$lt_cv_ar_at_file" = xno; then
5112 archiver_list_spec=$lt_cv_ar_at_file
5121 if test -n "$ac_tool_prefix"; then
5122 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5123 set dummy ${ac_tool_prefix}strip; ac_word=$2
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 $as_echo_n "checking for $ac_word... " >&6; }
5126 if ${ac_cv_prog_STRIP+:} false; then :
5127 $as_echo_n "(cached) " >&6
5129 if test -n "$STRIP"; then
5130 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 test -z "$as_dir" && as_dir=.
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5139 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 STRIP=$ac_cv_prog_STRIP
5150 if test -n "$STRIP"; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5152 $as_echo "$STRIP" >&6; }
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5160 if test -z "$ac_cv_prog_STRIP"; then
5162 # Extract the first word of "strip", so it can be a program name with args.
5163 set dummy strip; ac_word=$2
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165 $as_echo_n "checking for $ac_word... " >&6; }
5166 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5167 $as_echo_n "(cached) " >&6
5169 if test -n "$ac_ct_STRIP"; then
5170 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5179 ac_cv_prog_ac_ct_STRIP="strip"
5180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5190 if test -n "$ac_ct_STRIP"; then
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5192 $as_echo "$ac_ct_STRIP" >&6; }
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5198 if test "x$ac_ct_STRIP" = x; then
5201 case $cross_compiling:$ac_tool_warned in
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5205 ac_tool_warned=yes ;;
5210 STRIP="$ac_cv_prog_STRIP"
5213 test -z "$STRIP" && STRIP=:
5220 if test -n "$ac_tool_prefix"; then
5221 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5222 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if ${ac_cv_prog_RANLIB+:} false; then :
5226 $as_echo_n "(cached) " >&6
5228 if test -n "$RANLIB"; then
5229 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 RANLIB=$ac_cv_prog_RANLIB
5249 if test -n "$RANLIB"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5251 $as_echo "$RANLIB" >&6; }
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5259 if test -z "$ac_cv_prog_RANLIB"; then
5260 ac_ct_RANLIB=$RANLIB
5261 # Extract the first word of "ranlib", so it can be a program name with args.
5262 set dummy ranlib; ac_word=$2
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5264 $as_echo_n "checking for $ac_word... " >&6; }
5265 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5266 $as_echo_n "(cached) " >&6
5268 if test -n "$ac_ct_RANLIB"; then
5269 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 test -z "$as_dir" && as_dir=.
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278 ac_cv_prog_ac_ct_RANLIB="ranlib"
5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5289 if test -n "$ac_ct_RANLIB"; then
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5291 $as_echo "$ac_ct_RANLIB" >&6; }
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5297 if test "x$ac_ct_RANLIB" = x; then
5300 case $cross_compiling:$ac_tool_warned in
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5304 ac_tool_warned=yes ;;
5306 RANLIB=$ac_ct_RANLIB
5309 RANLIB="$ac_cv_prog_RANLIB"
5312 test -z "$RANLIB" && RANLIB=:
5319 # Determine commands to create old-style static archives.
5320 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5321 old_postinstall_cmds='chmod 644 $oldlib'
5322 old_postuninstall_cmds=
5324 if test -n "$RANLIB"; then
5327 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5330 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5333 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5338 lock_old_archive_extraction=yes ;;
5340 lock_old_archive_extraction=no ;;
5363 for ac_prog in gawk mawk nawk awk
5365 # Extract the first word of "$ac_prog", so it can be a program name with args.
5366 set dummy $ac_prog; ac_word=$2
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if ${ac_cv_prog_AWK+:} false; then :
5370 $as_echo_n "(cached) " >&6
5372 if test -n "$AWK"; then
5373 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5382 ac_cv_prog_AWK="$ac_prog"
5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 if test -n "$AWK"; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5395 $as_echo "$AWK" >&6; }
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5402 test -n "$AWK" && break
5423 # If no C compiler was specified, use CC.
5426 # If no C compiler flags were specified, use CFLAGS.
5427 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5429 # Allow CC to be a program name with arguments.
5433 # Check for command to grab the raw symbol name followed by C symbol from nm.
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5435 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5436 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5437 $as_echo_n "(cached) " >&6
5440 # These are sane defaults that work on at least a few old systems.
5441 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5443 # Character class describing NM global symbol codes.
5444 symcode='[BCDEGRST]'
5446 # Regexp to match symbols that can be accessed directly from C.
5447 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5449 # Define system-specific variables.
5454 cygwin* | mingw* | pw32* | cegcc*)
5455 symcode='[ABCDGISTW]'
5458 if test "$host_cpu" = ia64; then
5459 symcode='[ABCDEGRST]'
5463 symcode='[BCDEGRST]'
5466 symcode='[BCDEGQRST]'
5477 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5485 # If we're using GNU nm, then use its standard symbol codes.
5486 case `$NM -V 2>&1` in
5487 *GNU* | *'with BFD'*)
5488 symcode='[ABCDGIRSTW]' ;;
5491 # Transform an extracted symbol line into a proper C declaration.
5492 # Some systems (esp. on ia64) link data and code symbols differently,
5493 # so use this general approach.
5494 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5496 # Transform an extracted symbol line into symbol name and symbol address
5497 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5498 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'"
5500 # Handle CRLF in mingw tool chain
5504 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5508 # Try without a prefix underscore, then with it.
5509 for ac_symprfx in "" "_"; do
5511 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5512 symxfrm="\\1 $ac_symprfx\\2 \\2"
5514 # Write the raw and C identifiers.
5515 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5516 # Fake it for dumpbin and say T for any non-static function
5517 # and D for any global variable.
5518 # Also find C++ and __fastcall symbols from MSVC++,
5519 # which start with @ or ?.
5520 lt_cv_sys_global_symbol_pipe="$AWK '"\
5521 " {last_section=section; section=\$ 3};"\
5522 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5523 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5524 " \$ 0!~/External *\|/{next};"\
5525 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5526 " {if(hide[section]) next};"\
5527 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5528 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5529 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5530 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5531 " ' prfx=^$ac_symprfx"
5533 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5535 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5537 # Check to see that the pipe works correctly.
5541 cat > conftest.$ac_ext <<_LT_EOF
5546 void nm_test_func(void);
5547 void nm_test_func(void){}
5551 int main(){nm_test_var='a';nm_test_func();return(0);}
5554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5555 (eval $ac_compile) 2>&5
5557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5558 test $ac_status = 0; }; then
5559 # Now try to grab the symbols.
5561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5562 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5565 test $ac_status = 0; } && test -s "$nlist"; then
5566 # Try sorting and uniquifying the output.
5567 if sort "$nlist" | uniq > "$nlist"T; then
5568 mv -f "$nlist"T "$nlist"
5573 # Make sure that we snagged all the symbols we need.
5574 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5575 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5576 cat <<_LT_EOF > conftest.$ac_ext
5577 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5578 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5579 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5580 relocations are performed -- see ld's documentation on pseudo-relocs. */
5581 # define LT_DLSYM_CONST
5582 #elif defined(__osf__)
5583 /* This system does not cope well with relocations in const data. */
5584 # define LT_DLSYM_CONST
5586 # define LT_DLSYM_CONST const
5594 # Now generate the symbol file.
5595 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5597 cat <<_LT_EOF >> conftest.$ac_ext
5599 /* The mapping between symbol names and symbols. */
5600 LT_DLSYM_CONST struct {
5604 lt__PROGRAM__LTX_preloaded_symbols[] =
5606 { "@PROGRAM@", (void *) 0 },
5608 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5609 cat <<\_LT_EOF >> conftest.$ac_ext
5613 /* This works around a problem in FreeBSD linker */
5614 #ifdef FREEBSD_WORKAROUND
5615 static const void *lt_preloaded_setup() {
5616 return lt__PROGRAM__LTX_preloaded_symbols;
5624 # Now try linking the two files.
5625 mv conftest.$ac_objext conftstm.$ac_objext
5626 lt_globsym_save_LIBS=$LIBS
5627 lt_globsym_save_CFLAGS=$CFLAGS
5628 LIBS="conftstm.$ac_objext"
5629 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5631 (eval $ac_link) 2>&5
5633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5634 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5637 LIBS=$lt_globsym_save_LIBS
5638 CFLAGS=$lt_globsym_save_CFLAGS
5640 echo "cannot find nm_test_func in $nlist" >&5
5643 echo "cannot find nm_test_var in $nlist" >&5
5646 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5649 echo "$progname: failed program was:" >&5
5650 cat conftest.$ac_ext >&5
5652 rm -rf conftest* conftst*
5654 # Do not use the global_symbol_pipe unless it works.
5655 if test "$pipe_works" = yes; then
5658 lt_cv_sys_global_symbol_pipe=
5664 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5665 lt_cv_sys_global_symbol_to_cdecl=
5667 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5669 $as_echo "failed" >&6; }
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5672 $as_echo "ok" >&6; }
5675 # Response file support.
5676 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5677 nm_file_list_spec='@'
5678 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5679 nm_file_list_spec='@'
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5709 $as_echo_n "checking for sysroot... " >&6; }
5711 # Check whether --with-sysroot was given.
5712 if test "${with_sysroot+set}" = set; then :
5713 withval=$with_sysroot;
5720 case ${with_sysroot} in #(
5722 if test "$GCC" = yes; then
5723 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5727 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5733 $as_echo "${with_sysroot}" >&6; }
5734 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5739 $as_echo "${lt_sysroot:-no}" >&6; }
5745 # Check whether --enable-libtool-lock was given.
5746 if test "${enable_libtool_lock+set}" = set; then :
5747 enableval=$enable_libtool_lock;
5750 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5752 # Some flags need to be propagated to the compiler or linker for good
5756 # Find out which ABI we are using.
5757 echo 'int i;' > conftest.$ac_ext
5758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5759 (eval $ac_compile) 2>&5
5761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5762 test $ac_status = 0; }; then
5763 case `/usr/bin/file conftest.$ac_objext` in
5775 # Find out which ABI we are using.
5776 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5778 (eval $ac_compile) 2>&5
5780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5781 test $ac_status = 0; }; then
5782 if test "$lt_cv_prog_gnu_ld" = yes; then
5783 case `/usr/bin/file conftest.$ac_objext` in
5785 LD="${LD-ld} -melf32bsmip"
5788 LD="${LD-ld} -melf32bmipn32"
5791 LD="${LD-ld} -melf64bmip"
5795 case `/usr/bin/file conftest.$ac_objext` in
5811 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5812 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5813 # Find out which ABI we are using.
5814 echo 'int i;' > conftest.$ac_ext
5815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5816 (eval $ac_compile) 2>&5
5818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5819 test $ac_status = 0; }; then
5820 case `/usr/bin/file conftest.o` in
5823 x86_64-*kfreebsd*-gnu)
5824 LD="${LD-ld} -m elf_i386_fbsd"
5827 case `/usr/bin/file conftest.o` in
5829 LD="${LD-ld} -m elf32_x86_64"
5832 LD="${LD-ld} -m elf_i386"
5837 LD="${LD-ld} -m elf32lppclinux"
5840 LD="${LD-ld} -m elf32ppclinux"
5843 LD="${LD-ld} -m elf_s390"
5846 LD="${LD-ld} -m elf32_sparc"
5852 x86_64-*kfreebsd*-gnu)
5853 LD="${LD-ld} -m elf_x86_64_fbsd"
5856 LD="${LD-ld} -m elf_x86_64"
5859 LD="${LD-ld} -m elf64lppc"
5862 LD="${LD-ld} -m elf64ppc"
5864 s390*-*linux*|s390*-*tpf*)
5865 LD="${LD-ld} -m elf64_s390"
5868 LD="${LD-ld} -m elf64_sparc"
5878 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5879 SAVE_CFLAGS="$CFLAGS"
5880 CFLAGS="$CFLAGS -belf"
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5882 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5883 if ${lt_cv_cc_needs_belf+:} false; then :
5884 $as_echo_n "(cached) " >&6
5887 ac_cpp='$CPP $CPPFLAGS'
5888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893 /* end confdefs.h. */
5903 if ac_fn_c_try_link "$LINENO"; then :
5904 lt_cv_cc_needs_belf=yes
5906 lt_cv_cc_needs_belf=no
5908 rm -f core conftest.err conftest.$ac_objext \
5909 conftest$ac_exeext conftest.$ac_ext
5911 ac_cpp='$CPP $CPPFLAGS'
5912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5918 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5919 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5920 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5921 CFLAGS="$SAVE_CFLAGS"
5925 # Find out which ABI we are using.
5926 echo 'int i;' > conftest.$ac_ext
5927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5928 (eval $ac_compile) 2>&5
5930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5931 test $ac_status = 0; }; then
5932 case `/usr/bin/file conftest.o` in
5934 case $lt_cv_prog_gnu_ld in
5938 LD="${LD-ld} -m elf_x86_64"
5941 LD="${LD-ld} -m elf64_sparc"
5944 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5945 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5950 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5962 need_locks="$enable_libtool_lock"
5964 if test -n "$ac_tool_prefix"; then
5965 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5966 set dummy ${ac_tool_prefix}mt; ac_word=$2
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968 $as_echo_n "checking for $ac_word... " >&6; }
5969 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5970 $as_echo_n "(cached) " >&6
5972 if test -n "$MANIFEST_TOOL"; then
5973 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5993 if test -n "$MANIFEST_TOOL"; then
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5995 $as_echo "$MANIFEST_TOOL" >&6; }
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998 $as_echo "no" >&6; }
6003 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6004 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6005 # Extract the first word of "mt", so it can be a program name with args.
6006 set dummy mt; ac_word=$2
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008 $as_echo_n "checking for $ac_word... " >&6; }
6009 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6010 $as_echo_n "(cached) " >&6
6012 if test -n "$ac_ct_MANIFEST_TOOL"; then
6013 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6022 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6033 if test -n "$ac_ct_MANIFEST_TOOL"; then
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6035 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038 $as_echo "no" >&6; }
6041 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6044 case $cross_compiling:$ac_tool_warned in
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6048 ac_tool_warned=yes ;;
6050 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6053 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6056 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6058 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6059 if ${lt_cv_path_mainfest_tool+:} false; then :
6060 $as_echo_n "(cached) " >&6
6062 lt_cv_path_mainfest_tool=no
6063 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6064 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6065 cat conftest.err >&5
6066 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6067 lt_cv_path_mainfest_tool=yes
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6072 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6073 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6083 rhapsody* | darwin*)
6084 if test -n "$ac_tool_prefix"; then
6085 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6086 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088 $as_echo_n "checking for $ac_word... " >&6; }
6089 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6090 $as_echo_n "(cached) " >&6
6092 if test -n "$DSYMUTIL"; then
6093 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6102 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6113 if test -n "$DSYMUTIL"; then
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6115 $as_echo "$DSYMUTIL" >&6; }
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118 $as_echo "no" >&6; }
6123 if test -z "$ac_cv_prog_DSYMUTIL"; then
6124 ac_ct_DSYMUTIL=$DSYMUTIL
6125 # Extract the first word of "dsymutil", so it can be a program name with args.
6126 set dummy dsymutil; ac_word=$2
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128 $as_echo_n "checking for $ac_word... " >&6; }
6129 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6130 $as_echo_n "(cached) " >&6
6132 if test -n "$ac_ct_DSYMUTIL"; then
6133 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 test -z "$as_dir" && as_dir=.
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6142 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6152 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6153 if test -n "$ac_ct_DSYMUTIL"; then
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6155 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158 $as_echo "no" >&6; }
6161 if test "x$ac_ct_DSYMUTIL" = x; then
6164 case $cross_compiling:$ac_tool_warned in
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6168 ac_tool_warned=yes ;;
6170 DSYMUTIL=$ac_ct_DSYMUTIL
6173 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6176 if test -n "$ac_tool_prefix"; then
6177 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6178 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180 $as_echo_n "checking for $ac_word... " >&6; }
6181 if ${ac_cv_prog_NMEDIT+:} false; then :
6182 $as_echo_n "(cached) " >&6
6184 if test -n "$NMEDIT"; then
6185 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 test -z "$as_dir" && as_dir=.
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6194 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6204 NMEDIT=$ac_cv_prog_NMEDIT
6205 if test -n "$NMEDIT"; then
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6207 $as_echo "$NMEDIT" >&6; }
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210 $as_echo "no" >&6; }
6215 if test -z "$ac_cv_prog_NMEDIT"; then
6216 ac_ct_NMEDIT=$NMEDIT
6217 # Extract the first word of "nmedit", so it can be a program name with args.
6218 set dummy nmedit; ac_word=$2
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220 $as_echo_n "checking for $ac_word... " >&6; }
6221 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6222 $as_echo_n "(cached) " >&6
6224 if test -n "$ac_ct_NMEDIT"; then
6225 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 test -z "$as_dir" && as_dir=.
6232 for ac_exec_ext in '' $ac_executable_extensions; do
6233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6234 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6244 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6245 if test -n "$ac_ct_NMEDIT"; then
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6247 $as_echo "$ac_ct_NMEDIT" >&6; }
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250 $as_echo "no" >&6; }
6253 if test "x$ac_ct_NMEDIT" = x; then
6256 case $cross_compiling:$ac_tool_warned in
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6260 ac_tool_warned=yes ;;
6262 NMEDIT=$ac_ct_NMEDIT
6265 NMEDIT="$ac_cv_prog_NMEDIT"
6268 if test -n "$ac_tool_prefix"; then
6269 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6270 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6272 $as_echo_n "checking for $ac_word... " >&6; }
6273 if ${ac_cv_prog_LIPO+:} false; then :
6274 $as_echo_n "(cached) " >&6
6276 if test -n "$LIPO"; then
6277 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 test -z "$as_dir" && as_dir=.
6284 for ac_exec_ext in '' $ac_executable_extensions; do
6285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6286 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 LIPO=$ac_cv_prog_LIPO
6297 if test -n "$LIPO"; then
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6299 $as_echo "$LIPO" >&6; }
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6302 $as_echo "no" >&6; }
6307 if test -z "$ac_cv_prog_LIPO"; then
6309 # Extract the first word of "lipo", so it can be a program name with args.
6310 set dummy lipo; ac_word=$2
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312 $as_echo_n "checking for $ac_word... " >&6; }
6313 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6314 $as_echo_n "(cached) " >&6
6316 if test -n "$ac_ct_LIPO"; then
6317 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6326 ac_cv_prog_ac_ct_LIPO="lipo"
6327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6337 if test -n "$ac_ct_LIPO"; then
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6339 $as_echo "$ac_ct_LIPO" >&6; }
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 $as_echo "no" >&6; }
6345 if test "x$ac_ct_LIPO" = x; then
6348 case $cross_compiling:$ac_tool_warned in
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6352 ac_tool_warned=yes ;;
6357 LIPO="$ac_cv_prog_LIPO"
6360 if test -n "$ac_tool_prefix"; then
6361 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6362 set dummy ${ac_tool_prefix}otool; ac_word=$2
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364 $as_echo_n "checking for $ac_word... " >&6; }
6365 if ${ac_cv_prog_OTOOL+:} false; then :
6366 $as_echo_n "(cached) " >&6
6368 if test -n "$OTOOL"; then
6369 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 test -z "$as_dir" && as_dir=.
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6378 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 OTOOL=$ac_cv_prog_OTOOL
6389 if test -n "$OTOOL"; then
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6391 $as_echo "$OTOOL" >&6; }
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394 $as_echo "no" >&6; }
6399 if test -z "$ac_cv_prog_OTOOL"; then
6401 # Extract the first word of "otool", so it can be a program name with args.
6402 set dummy otool; ac_word=$2
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6404 $as_echo_n "checking for $ac_word... " >&6; }
6405 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6406 $as_echo_n "(cached) " >&6
6408 if test -n "$ac_ct_OTOOL"; then
6409 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 test -z "$as_dir" && as_dir=.
6416 for ac_exec_ext in '' $ac_executable_extensions; do
6417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6418 ac_cv_prog_ac_ct_OTOOL="otool"
6419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6428 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6429 if test -n "$ac_ct_OTOOL"; then
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6431 $as_echo "$ac_ct_OTOOL" >&6; }
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 $as_echo "no" >&6; }
6437 if test "x$ac_ct_OTOOL" = x; then
6440 case $cross_compiling:$ac_tool_warned in
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6444 ac_tool_warned=yes ;;
6449 OTOOL="$ac_cv_prog_OTOOL"
6452 if test -n "$ac_tool_prefix"; then
6453 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6454 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6456 $as_echo_n "checking for $ac_word... " >&6; }
6457 if ${ac_cv_prog_OTOOL64+:} false; then :
6458 $as_echo_n "(cached) " >&6
6460 if test -n "$OTOOL64"; then
6461 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 test -z "$as_dir" && as_dir=.
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6470 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480 OTOOL64=$ac_cv_prog_OTOOL64
6481 if test -n "$OTOOL64"; then
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6483 $as_echo "$OTOOL64" >&6; }
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 $as_echo "no" >&6; }
6491 if test -z "$ac_cv_prog_OTOOL64"; then
6492 ac_ct_OTOOL64=$OTOOL64
6493 # Extract the first word of "otool64", so it can be a program name with args.
6494 set dummy otool64; ac_word=$2
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6496 $as_echo_n "checking for $ac_word... " >&6; }
6497 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6498 $as_echo_n "(cached) " >&6
6500 if test -n "$ac_ct_OTOOL64"; then
6501 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 test -z "$as_dir" && as_dir=.
6508 for ac_exec_ext in '' $ac_executable_extensions; do
6509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6510 ac_cv_prog_ac_ct_OTOOL64="otool64"
6511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6520 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6521 if test -n "$ac_ct_OTOOL64"; then
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6523 $as_echo "$ac_ct_OTOOL64" >&6; }
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526 $as_echo "no" >&6; }
6529 if test "x$ac_ct_OTOOL64" = x; then
6532 case $cross_compiling:$ac_tool_warned in
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6536 ac_tool_warned=yes ;;
6538 OTOOL64=$ac_ct_OTOOL64
6541 OTOOL64="$ac_cv_prog_OTOOL64"
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6571 $as_echo_n "checking for -single_module linker flag... " >&6; }
6572 if ${lt_cv_apple_cc_single_mod+:} false; then :
6573 $as_echo_n "(cached) " >&6
6575 lt_cv_apple_cc_single_mod=no
6576 if test -z "${LT_MULTI_MODULE}"; then
6577 # By default we will add the -single_module flag. You can override
6578 # by either setting the environment variable LT_MULTI_MODULE
6579 # non-empty at configure time, or by adding -multi_module to the
6581 rm -rf libconftest.dylib*
6582 echo "int foo(void){return 1;}" > conftest.c
6583 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6584 -dynamiclib -Wl,-single_module conftest.c" >&5
6585 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6586 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6588 # If there is a non-empty error log, and "single_module"
6589 # appears in it, assume the flag caused a linker warning
6590 if test -s conftest.err && $GREP single_module conftest.err; then
6591 cat conftest.err >&5
6592 # Otherwise, if the output was created with a 0 exit code from
6593 # the compiler, it worked.
6594 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6595 lt_cv_apple_cc_single_mod=yes
6597 cat conftest.err >&5
6599 rm -rf libconftest.dylib*
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6604 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6607 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6608 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6609 $as_echo_n "(cached) " >&6
6611 lt_cv_ld_exported_symbols_list=no
6612 save_LDFLAGS=$LDFLAGS
6613 echo "_main" > conftest.sym
6614 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616 /* end confdefs.h. */
6626 if ac_fn_c_try_link "$LINENO"; then :
6627 lt_cv_ld_exported_symbols_list=yes
6629 lt_cv_ld_exported_symbols_list=no
6631 rm -f core conftest.err conftest.$ac_objext \
6632 conftest$ac_exeext conftest.$ac_ext
6633 LDFLAGS="$save_LDFLAGS"
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6637 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6640 $as_echo_n "checking for -force_load linker flag... " >&6; }
6641 if ${lt_cv_ld_force_load+:} false; then :
6642 $as_echo_n "(cached) " >&6
6644 lt_cv_ld_force_load=no
6645 cat > conftest.c << _LT_EOF
6646 int forced_loaded() { return 2;}
6648 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6649 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6650 echo "$AR cru libconftest.a conftest.o" >&5
6651 $AR cru libconftest.a conftest.o 2>&5
6652 echo "$RANLIB libconftest.a" >&5
6653 $RANLIB libconftest.a 2>&5
6654 cat > conftest.c << _LT_EOF
6655 int main() { return 0;}
6657 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6658 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6660 if test -s conftest.err && $GREP force_load conftest.err; then
6661 cat conftest.err >&5
6662 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6663 lt_cv_ld_force_load=yes
6665 cat conftest.err >&5
6667 rm -f conftest.err libconftest.a conftest conftest.c
6668 rm -rf conftest.dSYM
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6672 $as_echo "$lt_cv_ld_force_load" >&6; }
6674 rhapsody* | darwin1.[012])
6675 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6677 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6678 darwin*) # darwin 5.x on
6679 # if running on 10.5 or later, the deployment target defaults
6680 # to the OS version, if on x86, and 10.4, the deployment
6681 # target defaults to 10.4. Don't you love it?
6682 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6683 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6684 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6686 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6688 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6692 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6693 _lt_dar_single_mod='$single_module'
6695 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6696 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6698 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6700 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6701 _lt_dsymutil='~$DSYMUTIL $lib || :'
6709 ac_cpp='$CPP $CPPFLAGS'
6710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6714 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6715 # On Suns, sometimes $CPP names a directory.
6716 if test -n "$CPP" && test -d "$CPP"; then
6719 if test -z "$CPP"; then
6720 if ${ac_cv_prog_CPP+:} false; then :
6721 $as_echo_n "(cached) " >&6
6723 # Double quotes because CPP needs to be expanded
6724 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6727 for ac_c_preproc_warn_flag in '' yes
6729 # Use a header file that comes with gcc, so configuring glibc
6730 # with a fresh cross-compiler works.
6731 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6732 # <limits.h> exists even on freestanding compilers.
6733 # On the NeXT, cc -E runs the code through the compiler's parser,
6734 # not just through cpp. "Syntax error" is here to catch this case.
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6738 # include <limits.h>
6740 # include <assert.h>
6744 if ac_fn_c_try_cpp "$LINENO"; then :
6747 # Broken: fails on valid input.
6750 rm -f conftest.err conftest.i conftest.$ac_ext
6752 # OK, works on sane cases. Now check whether nonexistent headers
6753 # can be detected and how.
6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755 /* end confdefs.h. */
6756 #include <ac_nonexistent.h>
6758 if ac_fn_c_try_cpp "$LINENO"; then :
6759 # Broken: success on invalid input.
6762 # Passes both tests.
6766 rm -f conftest.err conftest.i conftest.$ac_ext
6769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6770 rm -f conftest.i conftest.err conftest.$ac_ext
6771 if $ac_preproc_ok; then :
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6784 $as_echo "$CPP" >&6; }
6786 for ac_c_preproc_warn_flag in '' yes
6788 # Use a header file that comes with gcc, so configuring glibc
6789 # with a fresh cross-compiler works.
6790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6791 # <limits.h> exists even on freestanding compilers.
6792 # On the NeXT, cc -E runs the code through the compiler's parser,
6793 # not just through cpp. "Syntax error" is here to catch this case.
6794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795 /* end confdefs.h. */
6797 # include <limits.h>
6799 # include <assert.h>
6803 if ac_fn_c_try_cpp "$LINENO"; then :
6806 # Broken: fails on valid input.
6809 rm -f conftest.err conftest.i conftest.$ac_ext
6811 # OK, works on sane cases. Now check whether nonexistent headers
6812 # can be detected and how.
6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6815 #include <ac_nonexistent.h>
6817 if ac_fn_c_try_cpp "$LINENO"; then :
6818 # Broken: success on invalid input.
6821 # Passes both tests.
6825 rm -f conftest.err conftest.i conftest.$ac_ext
6828 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6829 rm -f conftest.i conftest.err conftest.$ac_ext
6830 if $ac_preproc_ok; then :
6833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6835 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6836 See \`config.log' for more details" "$LINENO" 5; }
6840 ac_cpp='$CPP $CPPFLAGS'
6841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6847 $as_echo_n "checking for ANSI C header files... " >&6; }
6848 if ${ac_cv_header_stdc+:} false; then :
6849 $as_echo_n "(cached) " >&6
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6866 if ac_fn_c_try_compile "$LINENO"; then :
6867 ac_cv_header_stdc=yes
6869 ac_cv_header_stdc=no
6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873 if test $ac_cv_header_stdc = yes; then
6874 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6881 $EGREP "memchr" >/dev/null 2>&1; then :
6884 ac_cv_header_stdc=no
6890 if test $ac_cv_header_stdc = yes; then
6891 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6898 $EGREP "free" >/dev/null 2>&1; then :
6901 ac_cv_header_stdc=no
6907 if test $ac_cv_header_stdc = yes; then
6908 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6909 if test "$cross_compiling" = yes; then :
6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h. */
6916 #if ((' ' & 0x0FF) == 0x020)
6917 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6918 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6920 # define ISLOWER(c) \
6921 (('a' <= (c) && (c) <= 'i') \
6922 || ('j' <= (c) && (c) <= 'r') \
6923 || ('s' <= (c) && (c) <= 'z'))
6924 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6927 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6932 for (i = 0; i < 256; i++)
6933 if (XOR (islower (i), ISLOWER (i))
6934 || toupper (i) != TOUPPER (i))
6939 if ac_fn_c_try_run "$LINENO"; then :
6942 ac_cv_header_stdc=no
6944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6945 conftest.$ac_objext conftest.beam conftest.$ac_ext
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6951 $as_echo "$ac_cv_header_stdc" >&6; }
6952 if test $ac_cv_header_stdc = yes; then
6954 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6958 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6959 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6960 inttypes.h stdint.h unistd.h
6962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6963 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6965 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6966 cat >>confdefs.h <<_ACEOF
6967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6975 for ac_header in dlfcn.h
6977 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6979 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6980 cat >>confdefs.h <<_ACEOF
6981 #define HAVE_DLFCN_H 1
7002 # Check whether --enable-shared was given.
7003 if test "${enable_shared+set}" = set; then :
7004 enableval=$enable_shared; p=${PACKAGE-default}
7006 yes) enable_shared=yes ;;
7007 no) enable_shared=no ;;
7010 # Look at the argument we got. We use all the common list separators.
7011 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7012 for pkg in $enableval; do
7014 if test "X$pkg" = "X$p"; then
7033 # Check whether --enable-static was given.
7034 if test "${enable_static+set}" = set; then :
7035 enableval=$enable_static; p=${PACKAGE-default}
7037 yes) enable_static=yes ;;
7038 no) enable_static=no ;;
7041 # Look at the argument we got. We use all the common list separators.
7042 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7043 for pkg in $enableval; do
7045 if test "X$pkg" = "X$p"; then
7065 # Check whether --with-pic was given.
7066 if test "${with_pic+set}" = set; then :
7067 withval=$with_pic; lt_p=${PACKAGE-default}
7069 yes|no) pic_mode=$withval ;;
7072 # Look at the argument we got. We use all the common list separators.
7073 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7074 for lt_pkg in $withval; do
7076 if test "X$lt_pkg" = "X$lt_p"; then
7088 test -z "$pic_mode" && pic_mode=default
7096 # Check whether --enable-fast-install was given.
7097 if test "${enable_fast_install+set}" = set; then :
7098 enableval=$enable_fast_install; p=${PACKAGE-default}
7100 yes) enable_fast_install=yes ;;
7101 no) enable_fast_install=no ;;
7103 enable_fast_install=no
7104 # Look at the argument we got. We use all the common list separators.
7105 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7106 for pkg in $enableval; do
7108 if test "X$pkg" = "X$p"; then
7109 enable_fast_install=yes
7116 enable_fast_install=yes
7129 # This can be used to rebuild libtool when needed
7130 LIBTOOL_DEPS="$ltmain"
7132 # Always use our own libtool.
7133 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7164 test -z "$LN_S" && LN_S="ln -s"
7179 if test -n "${ZSH_VERSION+set}" ; then
7180 setopt NO_GLOB_SUBST
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7184 $as_echo_n "checking for objdir... " >&6; }
7185 if ${lt_cv_objdir+:} false; then :
7186 $as_echo_n "(cached) " >&6
7188 rm -f .libs 2>/dev/null
7189 mkdir .libs 2>/dev/null
7190 if test -d .libs; then
7193 # MS-DOS does not allow filenames that begin with a dot.
7196 rmdir .libs 2>/dev/null
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7199 $as_echo "$lt_cv_objdir" >&6; }
7200 objdir=$lt_cv_objdir
7206 cat >>confdefs.h <<_ACEOF
7207 #define LT_OBJDIR "$lt_cv_objdir/"
7215 # AIX sometimes has problems with the GCC collect2 program. For some
7216 # reason, if we set the COLLECT_NAMES environment variable, the problems
7217 # vanish in a puff of smoke.
7218 if test "X${COLLECT_NAMES+set}" != Xset; then
7220 export COLLECT_NAMES
7227 can_build_shared=yes
7229 # All known linkers require a `.a' archive for static linking (except MSVC,
7230 # which needs '.lib').
7233 with_gnu_ld="$lt_cv_prog_gnu_ld"
7236 old_CFLAGS="$CFLAGS"
7238 # Set sane defaults for various variables
7239 test -z "$CC" && CC=cc
7240 test -z "$LTCC" && LTCC=$CC
7241 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7242 test -z "$LD" && LD=ld
7243 test -z "$ac_objext" && ac_objext=o
7245 for cc_temp in $compiler""; do
7247 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7248 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7253 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7256 # Only perform the check for file, if the check method requires it
7257 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7258 case $deplibs_check_method in
7260 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7262 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7263 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7264 $as_echo_n "(cached) " >&6
7268 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7271 lt_save_MAGIC_CMD="$MAGIC_CMD"
7272 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7273 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7274 for ac_dir in $ac_dummy; do
7276 test -z "$ac_dir" && ac_dir=.
7277 if test -f $ac_dir/${ac_tool_prefix}file; then
7278 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7279 if test -n "$file_magic_test_file"; then
7280 case $deplibs_check_method in
7282 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7283 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7284 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7285 $EGREP "$file_magic_regex" > /dev/null; then
7290 *** Warning: the command libtool uses to detect shared libraries,
7291 *** $file_magic_cmd, produces output that libtool cannot recognize.
7292 *** The result is that libtool may fail to recognize shared libraries
7293 *** as such. This will affect the creation of libtool libraries that
7294 *** depend on shared libraries, but programs linked with such libtool
7295 *** libraries will work regardless of this problem. Nevertheless, you
7296 *** may want to report the problem to your system manager and/or to
7297 *** bug-libtool@gnu.org
7307 MAGIC_CMD="$lt_save_MAGIC_CMD"
7312 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7313 if test -n "$MAGIC_CMD"; then
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7315 $as_echo "$MAGIC_CMD" >&6; }
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318 $as_echo "no" >&6; }
7325 if test -z "$lt_cv_path_MAGIC_CMD"; then
7326 if test -n "$ac_tool_prefix"; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7328 $as_echo_n "checking for file... " >&6; }
7329 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7330 $as_echo_n "(cached) " >&6
7334 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7337 lt_save_MAGIC_CMD="$MAGIC_CMD"
7338 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7339 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7340 for ac_dir in $ac_dummy; do
7342 test -z "$ac_dir" && ac_dir=.
7343 if test -f $ac_dir/file; then
7344 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7345 if test -n "$file_magic_test_file"; then
7346 case $deplibs_check_method in
7348 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7349 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7350 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7351 $EGREP "$file_magic_regex" > /dev/null; then
7356 *** Warning: the command libtool uses to detect shared libraries,
7357 *** $file_magic_cmd, produces output that libtool cannot recognize.
7358 *** The result is that libtool may fail to recognize shared libraries
7359 *** as such. This will affect the creation of libtool libraries that
7360 *** depend on shared libraries, but programs linked with such libtool
7361 *** libraries will work regardless of this problem. Nevertheless, you
7362 *** may want to report the problem to your system manager and/or to
7363 *** bug-libtool@gnu.org
7373 MAGIC_CMD="$lt_save_MAGIC_CMD"
7378 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7379 if test -n "$MAGIC_CMD"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7381 $as_echo "$MAGIC_CMD" >&6; }
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7397 # Use C for the default configuration in the libtool script
7401 ac_cpp='$CPP $CPPFLAGS'
7402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7407 # Source file extension for C test sources.
7410 # Object file extension for compiled C test sources.
7414 # Code to be used in simple compile tests
7415 lt_simple_compile_test_code="int some_variable = 0;"
7417 # Code to be used in simple link tests
7418 lt_simple_link_test_code='int main(){return(0);}'
7426 # If no C compiler was specified, use CC.
7429 # If no C compiler flags were specified, use CFLAGS.
7430 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7432 # Allow CC to be a program name with arguments.
7435 # Save the default compiler, since it gets overwritten when the other
7436 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7437 compiler_DEFAULT=$CC
7439 # save warnings/boilerplate of simple test code
7440 ac_outfile=conftest.$ac_objext
7441 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7442 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7443 _lt_compiler_boilerplate=`cat conftest.err`
7446 ac_outfile=conftest.$ac_objext
7447 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7448 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7449 _lt_linker_boilerplate=`cat conftest.err`
7454 ## There is no encapsulation within the following macros, do not change
7455 ## the running order or otherwise move them around unless you know exactly
7456 ## what you are doing...
7457 if test -n "$compiler"; then
7459 lt_prog_compiler_no_builtin_flag=
7461 if test "$GCC" = yes; then
7462 case $cc_basename in
7464 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7466 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7470 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7471 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7472 $as_echo_n "(cached) " >&6
7474 lt_cv_prog_compiler_rtti_exceptions=no
7475 ac_outfile=conftest.$ac_objext
7476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7477 lt_compiler_flag="-fno-rtti -fno-exceptions"
7478 # Insert the option either (1) after the last *FLAGS variable, or
7479 # (2) before a word containing "conftest.", or (3) at the end.
7480 # Note that $ac_compile itself does not contain backslashes and begins
7481 # with a dollar sign (not a hyphen), so the echo should work correctly.
7482 # The option is referenced via a variable to avoid confusing sed.
7483 lt_compile=`echo "$ac_compile" | $SED \
7484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7486 -e 's:$: $lt_compiler_flag:'`
7487 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7488 (eval "$lt_compile" 2>conftest.err)
7490 cat conftest.err >&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 if (exit $ac_status) && test -s "$ac_outfile"; then
7493 # The compiler can only warn and ignore the option if not recognized
7494 # So say no if there are warnings other than the usual output.
7495 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7496 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7497 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7498 lt_cv_prog_compiler_rtti_exceptions=yes
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7505 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7507 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7508 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7520 lt_prog_compiler_wl=
7521 lt_prog_compiler_pic=
7522 lt_prog_compiler_static=
7525 if test "$GCC" = yes; then
7526 lt_prog_compiler_wl='-Wl,'
7527 lt_prog_compiler_static='-static'
7531 # All AIX code is PIC.
7532 if test "$host_cpu" = ia64; then
7533 # AIX 5 now supports IA64 processor
7534 lt_prog_compiler_static='-Bstatic'
7541 # see comment about AmigaOS4 .so support
7542 lt_prog_compiler_pic='-fPIC'
7545 # FIXME: we need at least 68020 code to build shared libraries, but
7546 # adding the `-m68020' flag to GCC prevents building anything better,
7548 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7553 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7554 # PIC is the default for these OSes.
7557 mingw* | cygwin* | pw32* | os2* | cegcc*)
7558 # This hack is so that the source file can tell whether it is being
7559 # built for inclusion in a dll (and should export symbols for example).
7560 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7561 # (--disable-auto-import) libraries
7562 lt_prog_compiler_pic='-DDLL_EXPORT'
7565 darwin* | rhapsody*)
7566 # PIC is the default on this platform
7567 # Common symbols not allowed in MH_DYLIB files
7568 lt_prog_compiler_pic='-fno-common'
7572 # PIC is the default for Haiku.
7573 # The "-static" flag exists, but is broken.
7574 lt_prog_compiler_static=
7578 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7579 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7580 # sets the default TLS model and affects inlining.
7586 lt_prog_compiler_pic='-fPIC'
7592 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7593 # Instead, we relocate shared libraries at runtime.
7597 # Just because we use GCC doesn't mean we suddenly get shared libraries
7598 # on systems that don't support them.
7599 lt_prog_compiler_can_build_shared=no
7604 # QNX uses GNU C++, but need to define -shared option too, otherwise
7606 lt_prog_compiler_pic='-fPIC -shared'
7610 if test -d /usr/nec; then
7611 lt_prog_compiler_pic=-Kconform_pic
7616 lt_prog_compiler_pic='-fPIC'
7620 case $cc_basename in
7621 nvcc*) # Cuda Compiler Driver 2.2
7622 lt_prog_compiler_wl='-Xlinker '
7623 if test -n "$lt_prog_compiler_pic"; then
7624 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7629 # PORTME Check for flag to pass linker flags through the system compiler.
7632 lt_prog_compiler_wl='-Wl,'
7633 if test "$host_cpu" = ia64; then
7634 # AIX 5 now supports IA64 processor
7635 lt_prog_compiler_static='-Bstatic'
7637 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7641 mingw* | cygwin* | pw32* | os2* | cegcc*)
7642 # This hack is so that the source file can tell whether it is being
7643 # built for inclusion in a dll (and should export symbols for example).
7644 lt_prog_compiler_pic='-DDLL_EXPORT'
7647 hpux9* | hpux10* | hpux11*)
7648 lt_prog_compiler_wl='-Wl,'
7649 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7656 lt_prog_compiler_pic='+Z'
7659 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7660 lt_prog_compiler_static='${wl}-a ${wl}archive'
7663 irix5* | irix6* | nonstopux*)
7664 lt_prog_compiler_wl='-Wl,'
7665 # PIC (with -KPIC) is the default.
7666 lt_prog_compiler_static='-non_shared'
7669 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7670 case $cc_basename in
7671 # old Intel for x86_64 which still supported -KPIC.
7673 lt_prog_compiler_wl='-Wl,'
7674 lt_prog_compiler_pic='-KPIC'
7675 lt_prog_compiler_static='-static'
7677 # icc used to be incompatible with GCC.
7678 # ICC 10 doesn't accept -KPIC any more.
7680 lt_prog_compiler_wl='-Wl,'
7681 lt_prog_compiler_pic='-fPIC'
7682 lt_prog_compiler_static='-static'
7684 # Lahey Fortran 8.1.
7686 lt_prog_compiler_wl='-Wl,'
7687 lt_prog_compiler_pic='--shared'
7688 lt_prog_compiler_static='--static'
7691 # NAG Fortran compiler
7692 lt_prog_compiler_wl='-Wl,-Wl,,'
7693 lt_prog_compiler_pic='-PIC'
7694 lt_prog_compiler_static='-Bstatic'
7696 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7697 # Portland Group compilers (*not* the Pentium gcc compiler,
7698 # which looks to be a dead project)
7699 lt_prog_compiler_wl='-Wl,'
7700 lt_prog_compiler_pic='-fpic'
7701 lt_prog_compiler_static='-Bstatic'
7704 lt_prog_compiler_wl='-Wl,'
7705 # All Alpha code is PIC.
7706 lt_prog_compiler_static='-non_shared'
7708 xl* | bgxl* | bgf* | mpixl*)
7709 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7710 lt_prog_compiler_wl='-Wl,'
7711 lt_prog_compiler_pic='-qpic'
7712 lt_prog_compiler_static='-qstaticlink'
7715 case `$CC -V 2>&1 | sed 5q` in
7716 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7717 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7718 lt_prog_compiler_pic='-KPIC'
7719 lt_prog_compiler_static='-Bstatic'
7720 lt_prog_compiler_wl=''
7722 *Sun\ F* | *Sun*Fortran*)
7723 lt_prog_compiler_pic='-KPIC'
7724 lt_prog_compiler_static='-Bstatic'
7725 lt_prog_compiler_wl='-Qoption ld '
7729 lt_prog_compiler_pic='-KPIC'
7730 lt_prog_compiler_static='-Bstatic'
7731 lt_prog_compiler_wl='-Wl,'
7733 *Intel*\ [CF]*Compiler*)
7734 lt_prog_compiler_wl='-Wl,'
7735 lt_prog_compiler_pic='-fPIC'
7736 lt_prog_compiler_static='-static'
7739 lt_prog_compiler_wl='-Wl,'
7740 lt_prog_compiler_pic='-fpic'
7741 lt_prog_compiler_static='-Bstatic'
7749 lt_prog_compiler_pic='-KPIC'
7750 lt_prog_compiler_static='-Bstatic'
7754 # QNX uses GNU C++, but need to define -shared option too, otherwise
7756 lt_prog_compiler_pic='-fPIC -shared'
7759 osf3* | osf4* | osf5*)
7760 lt_prog_compiler_wl='-Wl,'
7761 # All OSF/1 code is PIC.
7762 lt_prog_compiler_static='-non_shared'
7766 lt_prog_compiler_static='-non_shared'
7770 lt_prog_compiler_pic='-KPIC'
7771 lt_prog_compiler_static='-Bstatic'
7772 case $cc_basename in
7773 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7774 lt_prog_compiler_wl='-Qoption ld ';;
7776 lt_prog_compiler_wl='-Wl,';;
7781 lt_prog_compiler_wl='-Qoption ld '
7782 lt_prog_compiler_pic='-PIC'
7783 lt_prog_compiler_static='-Bstatic'
7786 sysv4 | sysv4.2uw2* | sysv4.3*)
7787 lt_prog_compiler_wl='-Wl,'
7788 lt_prog_compiler_pic='-KPIC'
7789 lt_prog_compiler_static='-Bstatic'
7793 if test -d /usr/nec ;then
7794 lt_prog_compiler_pic='-Kconform_pic'
7795 lt_prog_compiler_static='-Bstatic'
7799 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7800 lt_prog_compiler_wl='-Wl,'
7801 lt_prog_compiler_pic='-KPIC'
7802 lt_prog_compiler_static='-Bstatic'
7806 lt_prog_compiler_wl='-Wl,'
7807 lt_prog_compiler_can_build_shared=no
7811 lt_prog_compiler_pic='-pic'
7812 lt_prog_compiler_static='-Bstatic'
7816 lt_prog_compiler_can_build_shared=no
7822 # For platforms which do not support PIC, -DPIC is meaningless:
7824 lt_prog_compiler_pic=
7827 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7832 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7833 if ${lt_cv_prog_compiler_pic+:} false; then :
7834 $as_echo_n "(cached) " >&6
7836 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7839 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7840 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7843 # Check to make sure the PIC flag actually works.
7845 if test -n "$lt_prog_compiler_pic"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7847 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7848 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7849 $as_echo_n "(cached) " >&6
7851 lt_cv_prog_compiler_pic_works=no
7852 ac_outfile=conftest.$ac_objext
7853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7854 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7855 # Insert the option either (1) after the last *FLAGS variable, or
7856 # (2) before a word containing "conftest.", or (3) at the end.
7857 # Note that $ac_compile itself does not contain backslashes and begins
7858 # with a dollar sign (not a hyphen), so the echo should work correctly.
7859 # The option is referenced via a variable to avoid confusing sed.
7860 lt_compile=`echo "$ac_compile" | $SED \
7861 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7863 -e 's:$: $lt_compiler_flag:'`
7864 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7865 (eval "$lt_compile" 2>conftest.err)
7867 cat conftest.err >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 if (exit $ac_status) && test -s "$ac_outfile"; then
7870 # The compiler can only warn and ignore the option if not recognized
7871 # So say no if there are warnings other than the usual output.
7872 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7874 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7875 lt_cv_prog_compiler_pic_works=yes
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7882 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7884 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7885 case $lt_prog_compiler_pic in
7887 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7890 lt_prog_compiler_pic=
7891 lt_prog_compiler_can_build_shared=no
7907 # Check to make sure the static flag actually works.
7909 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7911 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7912 if ${lt_cv_prog_compiler_static_works+:} false; then :
7913 $as_echo_n "(cached) " >&6
7915 lt_cv_prog_compiler_static_works=no
7916 save_LDFLAGS="$LDFLAGS"
7917 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7918 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7919 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7920 # The linker can only warn and ignore the option if not recognized
7921 # So say no if there are warnings
7922 if test -s conftest.err; then
7923 # Append any errors to the config.log.
7924 cat conftest.err 1>&5
7925 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7927 if diff conftest.exp conftest.er2 >/dev/null; then
7928 lt_cv_prog_compiler_static_works=yes
7931 lt_cv_prog_compiler_static_works=yes
7935 LDFLAGS="$save_LDFLAGS"
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7939 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7941 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7944 lt_prog_compiler_static=
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7954 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7955 if ${lt_cv_prog_compiler_c_o+:} false; then :
7956 $as_echo_n "(cached) " >&6
7958 lt_cv_prog_compiler_c_o=no
7959 $RM -r conftest 2>/dev/null
7963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7965 lt_compiler_flag="-o out/conftest2.$ac_objext"
7966 # Insert the option either (1) after the last *FLAGS variable, or
7967 # (2) before a word containing "conftest.", or (3) at the end.
7968 # Note that $ac_compile itself does not contain backslashes and begins
7969 # with a dollar sign (not a hyphen), so the echo should work correctly.
7970 lt_compile=`echo "$ac_compile" | $SED \
7971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7973 -e 's:$: $lt_compiler_flag:'`
7974 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7975 (eval "$lt_compile" 2>out/conftest.err)
7977 cat out/conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7981 # The compiler can only warn and ignore the option if not recognized
7982 # So say no if there are warnings
7983 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7984 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7985 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7986 lt_cv_prog_compiler_c_o=yes
7991 # SGI C++ compiler will create directory out/ii_files/ for
7992 # template instantiation
7993 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7994 $RM out/* && rmdir out
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8001 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8009 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8010 if ${lt_cv_prog_compiler_c_o+:} false; then :
8011 $as_echo_n "(cached) " >&6
8013 lt_cv_prog_compiler_c_o=no
8014 $RM -r conftest 2>/dev/null
8018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8020 lt_compiler_flag="-o out/conftest2.$ac_objext"
8021 # Insert the option either (1) after the last *FLAGS variable, or
8022 # (2) before a word containing "conftest.", or (3) at the end.
8023 # Note that $ac_compile itself does not contain backslashes and begins
8024 # with a dollar sign (not a hyphen), so the echo should work correctly.
8025 lt_compile=`echo "$ac_compile" | $SED \
8026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8028 -e 's:$: $lt_compiler_flag:'`
8029 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8030 (eval "$lt_compile" 2>out/conftest.err)
8032 cat out/conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8036 # The compiler can only warn and ignore the option if not recognized
8037 # So say no if there are warnings
8038 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8039 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8040 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8041 lt_cv_prog_compiler_c_o=yes
8046 # SGI C++ compiler will create directory out/ii_files/ for
8047 # template instantiation
8048 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8049 $RM out/* && rmdir out
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8056 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8061 hard_links="nottested"
8062 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8063 # do not overwrite the value of need_locks provided by the user
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8065 $as_echo_n "checking if we can lock with hard links... " >&6; }
8068 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8070 ln conftest.a conftest.b 2>&5 || hard_links=no
8071 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8073 $as_echo "$hard_links" >&6; }
8074 if test "$hard_links" = no; then
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8076 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8089 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8092 allow_undefined_flag=
8093 always_export_symbols=no
8095 archive_expsym_cmds=
8096 compiler_needs_object=no
8097 enable_shared_with_static_runtimes=no
8098 export_dynamic_flag_spec=
8099 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8100 hardcode_automatic=no
8102 hardcode_direct_absolute=no
8103 hardcode_libdir_flag_spec=
8104 hardcode_libdir_separator=
8106 hardcode_shlibpath_var=unsupported
8108 link_all_deplibs=unknown
8111 old_archive_from_new_cmds=
8112 old_archive_from_expsyms_cmds=
8113 thread_safe_flag_spec=
8114 whole_archive_flag_spec=
8115 # include_expsyms should be a list of space-separated symbols to be *always*
8116 # included in the symbol list
8118 # exclude_expsyms can be an extended regexp of symbols to exclude
8119 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8120 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8121 # as well as any symbol that contains `d'.
8122 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8123 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8124 # platforms (ab)use it in PIC code, but their linkers get confused if
8125 # the symbol is explicitly referenced. Since portable code cannot
8126 # rely on this symbol name, it's probably fine to never include it in
8127 # preloaded symbol tables.
8128 # Exclude shared library initialization/finalization symbols.
8129 extract_expsyms_cmds=
8132 cygwin* | mingw* | pw32* | cegcc*)
8133 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8134 # When not using gcc, we currently assume that we are using
8135 # Microsoft Visual C++.
8136 if test "$GCC" != yes; then
8141 # we just hope/assume this is gcc and not c89 (= MSVC++)
8147 linux* | k*bsd*-gnu | gnu*)
8154 # On some targets, GNU ld is compatible enough with the native linker
8155 # that we're better off using the native interface for both.
8156 lt_use_gnu_ld_interface=no
8157 if test "$with_gnu_ld" = yes; then
8160 # The AIX port of GNU ld has always aspired to compatibility
8161 # with the native linker. However, as the warning in the GNU ld
8162 # block says, versions before 2.19.5* couldn't really create working
8163 # shared libraries, regardless of the interface used.
8164 case `$LD -v 2>&1` in
8165 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8166 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8167 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8169 lt_use_gnu_ld_interface=yes
8174 lt_use_gnu_ld_interface=yes
8179 if test "$lt_use_gnu_ld_interface" = yes; then
8180 # If archive_cmds runs LD, not CC, wlarc should be empty
8183 # Set some defaults for GNU ld with shared library support. These
8184 # are reset later if shared libraries are not supported. Putting them
8185 # here allows them to be overridden if necessary.
8186 runpath_var=LD_RUN_PATH
8187 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8188 export_dynamic_flag_spec='${wl}--export-dynamic'
8189 # ancient GNU ld didn't support --whole-archive et. al.
8190 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8191 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8193 whole_archive_flag_spec=
8195 supports_anon_versioning=no
8196 case `$LD -v 2>&1` in
8197 *GNU\ gold*) supports_anon_versioning=yes ;;
8198 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8199 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8200 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8201 *\ 2.11.*) ;; # other 2.11 versions
8202 *) supports_anon_versioning=yes ;;
8205 # See if GNU ld supports shared libraries.
8208 # On AIX/PPC, the GNU linker is very broken
8209 if test "$host_cpu" != ia64; then
8213 *** Warning: the GNU linker, at least up to release 2.19, is reported
8214 *** to be unable to reliably create shared libraries on AIX.
8215 *** Therefore, libtool is disabling shared libraries support. If you
8216 *** really care for shared libraries, you may want to install binutils
8217 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8218 *** You will then need to restart the configuration process.
8227 # see comment about AmigaOS4 .so support
8228 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8229 archive_expsym_cmds=''
8232 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)'
8233 hardcode_libdir_flag_spec='-L$libdir'
8234 hardcode_minus_L=yes
8240 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8241 allow_undefined_flag=unsupported
8242 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8243 # support --undefined. This deserves some investigation. FIXME
8244 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8250 cygwin* | mingw* | pw32* | cegcc*)
8251 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8252 # as there is no search path for DLLs.
8253 hardcode_libdir_flag_spec='-L$libdir'
8254 export_dynamic_flag_spec='${wl}--export-all-symbols'
8255 allow_undefined_flag=unsupported
8256 always_export_symbols=no
8257 enable_shared_with_static_runtimes=yes
8258 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'
8259 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8261 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8263 # If the export-symbols file already is a .def file (1st line
8264 # is EXPORTS), use it as is; otherwise, prepend...
8265 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8266 cp $export_symbols $output_objdir/$soname.def;
8268 echo EXPORTS > $output_objdir/$soname.def;
8269 cat $export_symbols >> $output_objdir/$soname.def;
8271 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8279 link_all_deplibs=yes
8284 hardcode_shlibpath_var=no
8285 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8286 export_dynamic_flag_spec='${wl}-E'
8287 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8288 # Instead, shared libraries are loaded at an image base (0x10000000 by
8289 # default) and relocated if they conflict, which is a slow very memory
8290 # consuming and fragmenting process. To avoid this, we pick a random,
8291 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8292 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8293 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8294 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'
8297 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8299 if test "$host_os" = linux-dietlibc; then
8300 case $cc_basename in
8301 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8304 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8305 && test "$tmp_diet" = no
8307 tmp_addflag=' $pic_flag'
8308 tmp_sharedflag='-shared'
8309 case $cc_basename,$host_cpu in
8310 pgcc*) # Portland Group C compiler
8311 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'
8312 tmp_addflag=' $pic_flag'
8314 pgf77* | pgf90* | pgf95* | pgfortran*)
8315 # Portland Group f77 and f90 compilers
8316 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'
8317 tmp_addflag=' $pic_flag -Mnomain' ;;
8318 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8319 tmp_addflag=' -i_dynamic' ;;
8320 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8321 tmp_addflag=' -i_dynamic -nofor_main' ;;
8322 ifc* | ifort*) # Intel Fortran compiler
8323 tmp_addflag=' -nofor_main' ;;
8324 lf95*) # Lahey Fortran 8.1
8325 whole_archive_flag_spec=
8326 tmp_sharedflag='--shared' ;;
8327 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8328 tmp_sharedflag='-qmkshrobj'
8330 nvcc*) # Cuda Compiler Driver 2.2
8331 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'
8332 compiler_needs_object=yes
8335 case `$CC -V 2>&1 | sed 5q` in
8336 *Sun\ C*) # Sun C 5.9
8337 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'
8338 compiler_needs_object=yes
8339 tmp_sharedflag='-G' ;;
8340 *Sun\ F*) # Sun Fortran 8.3
8341 tmp_sharedflag='-G' ;;
8343 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8345 if test "x$supports_anon_versioning" = xyes; then
8346 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8347 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8348 echo "local: *; };" >> $output_objdir/$libname.ver~
8349 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8352 case $cc_basename in
8353 xlf* | bgf* | bgxlf* | mpixlf*)
8354 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8355 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8356 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8357 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8358 if test "x$supports_anon_versioning" = xyes; then
8359 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8360 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8361 echo "local: *; };" >> $output_objdir/$libname.ver~
8362 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8371 netbsd* | netbsdelf*-gnu)
8372 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8373 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8376 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8377 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8382 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8386 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8387 *** create shared libraries on Solaris systems. Therefore, libtool
8388 *** is disabling shared libraries support. We urge you to upgrade GNU
8389 *** binutils to release 2.9.1 or newer. Another option is to modify
8390 *** your PATH or compiler configuration so that the native linker is
8391 *** used, and then restart.
8394 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8395 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8396 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8402 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8403 case `$LD -v 2>&1` in
8404 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8408 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8409 *** reliably create shared libraries on SCO systems. Therefore, libtool
8410 *** is disabling shared libraries support. We urge you to upgrade GNU
8411 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8412 *** your PATH or compiler configuration so that the native linker is
8413 *** used, and then restart.
8418 # For security reasons, it is highly recommended that you always
8419 # use absolute paths for naming shared libraries, and exclude the
8420 # DT_RUNPATH tag from executables and libraries. But doing so
8421 # requires that you compile everything twice, which is a pain.
8422 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8423 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8425 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8434 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8437 hardcode_shlibpath_var=no
8441 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8442 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8443 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8450 if test "$ld_shlibs" = no; then
8452 hardcode_libdir_flag_spec=
8453 export_dynamic_flag_spec=
8454 whole_archive_flag_spec=
8457 # PORTME fill in a description of your system's linker (not GNU ld)
8460 allow_undefined_flag=unsupported
8461 always_export_symbols=yes
8462 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'
8463 # Note: this linker hardcodes the directories in LIBPATH if there
8464 # are no directories specified by -L.
8465 hardcode_minus_L=yes
8466 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8467 # Neither direct hardcoding nor static linking is supported with a
8469 hardcode_direct=unsupported
8474 if test "$host_cpu" = ia64; then
8475 # On IA64, the linker does run time linking by default, so we don't
8476 # have to do anything special.
8477 aix_use_runtimelinking=no
8478 exp_sym_flag='-Bexport'
8481 # If we're using GNU nm, then we don't want the "-C" option.
8482 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8483 # Also, AIX nm treats weak defined symbols like other global
8484 # defined symbols, whereas GNU nm marks them as "W".
8485 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8486 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'
8488 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'
8490 aix_use_runtimelinking=no
8492 # Test if we are trying to use run time linking or normal
8493 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8494 # need to do runtime linking.
8495 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8496 for ld_flag in $LDFLAGS; do
8497 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8498 aix_use_runtimelinking=yes
8505 exp_sym_flag='-bexport'
8506 no_entry_flag='-bnoentry'
8509 # When large executables or shared objects are built, AIX ld can
8510 # have problems creating the table of contents. If linking a library
8511 # or program results in "error TOC overflow" add -mminimal-toc to
8512 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8513 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8517 hardcode_direct_absolute=yes
8518 hardcode_libdir_separator=':'
8519 link_all_deplibs=yes
8520 file_list_spec='${wl}-f,'
8522 if test "$GCC" = yes; then
8523 case $host_os in aix4.[012]|aix4.[012].*)
8524 # We only want to do this on AIX 4.2 and lower, the check
8525 # below for broken collect2 doesn't work under 4.3+
8526 collect2name=`${CC} -print-prog-name=collect2`
8527 if test -f "$collect2name" &&
8528 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8530 # We have reworked collect2
8533 # We have old collect2
8534 hardcode_direct=unsupported
8535 # It fails to find uninstalled libraries when the uninstalled
8536 # path is not listed in the libpath. Setting hardcode_minus_L
8537 # to unsupported forces relinking
8538 hardcode_minus_L=yes
8539 hardcode_libdir_flag_spec='-L$libdir'
8540 hardcode_libdir_separator=
8544 shared_flag='-shared'
8545 if test "$aix_use_runtimelinking" = yes; then
8546 shared_flag="$shared_flag "'${wl}-G'
8551 if test "$host_cpu" = ia64; then
8552 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8553 # chokes on -Wl,-G. The following line is correct:
8556 if test "$aix_use_runtimelinking" = yes; then
8557 shared_flag='${wl}-G'
8559 shared_flag='${wl}-bM:SRE'
8564 export_dynamic_flag_spec='${wl}-bexpall'
8565 # It seems that -bexpall does not export symbols beginning with
8566 # underscore (_), so it is better to generate a list of symbols to export.
8567 always_export_symbols=yes
8568 if test "$aix_use_runtimelinking" = yes; then
8569 # Warning - without using the other runtime loading flags (-brtl),
8570 # -berok will link without error, but may produce a broken library.
8571 allow_undefined_flag='-berok'
8572 # Determine the default libpath from the value encoded in an
8574 if test "${lt_cv_aix_libpath+set}" = set; then
8575 aix_libpath=$lt_cv_aix_libpath
8577 if ${lt_cv_aix_libpath_+:} false; then :
8578 $as_echo_n "(cached) " >&6
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8591 if ac_fn_c_try_link "$LINENO"; then :
8593 lt_aix_libpath_sed='
8594 /Import File Strings/,/^$/ {
8596 s/^0 *\([^ ]*\) *$/\1/
8600 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8601 # Check for a 64-bit object if we didn't find anything.
8602 if test -z "$lt_cv_aix_libpath_"; then
8603 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8606 rm -f core conftest.err conftest.$ac_objext \
8607 conftest$ac_exeext conftest.$ac_ext
8608 if test -z "$lt_cv_aix_libpath_"; then
8609 lt_cv_aix_libpath_="/usr/lib:/lib"
8614 aix_libpath=$lt_cv_aix_libpath_
8617 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8618 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"
8620 if test "$host_cpu" = ia64; then
8621 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8622 allow_undefined_flag="-z nodefs"
8623 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"
8625 # Determine the default libpath from the value encoded in an
8627 if test "${lt_cv_aix_libpath+set}" = set; then
8628 aix_libpath=$lt_cv_aix_libpath
8630 if ${lt_cv_aix_libpath_+:} false; then :
8631 $as_echo_n "(cached) " >&6
8633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8634 /* end confdefs.h. */
8644 if ac_fn_c_try_link "$LINENO"; then :
8646 lt_aix_libpath_sed='
8647 /Import File Strings/,/^$/ {
8649 s/^0 *\([^ ]*\) *$/\1/
8653 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8654 # Check for a 64-bit object if we didn't find anything.
8655 if test -z "$lt_cv_aix_libpath_"; then
8656 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8659 rm -f core conftest.err conftest.$ac_objext \
8660 conftest$ac_exeext conftest.$ac_ext
8661 if test -z "$lt_cv_aix_libpath_"; then
8662 lt_cv_aix_libpath_="/usr/lib:/lib"
8667 aix_libpath=$lt_cv_aix_libpath_
8670 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8671 # Warning - without using the other run time loading flags,
8672 # -berok will link without error, but may produce a broken library.
8673 no_undefined_flag=' ${wl}-bernotok'
8674 allow_undefined_flag=' ${wl}-berok'
8675 if test "$with_gnu_ld" = yes; then
8676 # We only use this code for GNU lds that support --whole-archive.
8677 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8679 # Exported symbols can be pulled into shared objects from archives
8680 whole_archive_flag_spec='$convenience'
8682 archive_cmds_need_lc=yes
8683 # This is similar to how AIX traditionally builds its shared libraries.
8684 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'
8692 # see comment about AmigaOS4 .so support
8693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8694 archive_expsym_cmds=''
8697 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)'
8698 hardcode_libdir_flag_spec='-L$libdir'
8699 hardcode_minus_L=yes
8705 export_dynamic_flag_spec=-rdynamic
8708 cygwin* | mingw* | pw32* | cegcc*)
8709 # When not using gcc, we currently assume that we are using
8710 # Microsoft Visual C++.
8711 # hardcode_libdir_flag_spec is actually meaningless, as there is
8712 # no search path for DLLs.
8713 case $cc_basename in
8716 hardcode_libdir_flag_spec=' '
8717 allow_undefined_flag=unsupported
8718 always_export_symbols=yes
8720 # Tell ltmain to make .lib files, not .a files.
8722 # Tell ltmain to make .dll files, not .so files.
8724 # FIXME: Setting linknames here is a bad hack.
8725 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8726 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8727 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8729 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8731 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8733 # The linker will not automatically build a static lib if we build a DLL.
8734 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8735 enable_shared_with_static_runtimes=yes
8736 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8737 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8739 old_postinstall_cmds='chmod 644 $oldlib'
8740 postlink_cmds='lt_outputfile="@OUTPUT@"~
8741 lt_tool_outputfile="@TOOL_OUTPUT@"~
8742 case $lt_outputfile in
8745 lt_outputfile="$lt_outputfile.exe"
8746 lt_tool_outputfile="$lt_tool_outputfile.exe"
8749 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8750 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8751 $RM "$lt_outputfile.manifest";
8755 # Assume MSVC wrapper
8756 hardcode_libdir_flag_spec=' '
8757 allow_undefined_flag=unsupported
8758 # Tell ltmain to make .lib files, not .a files.
8760 # Tell ltmain to make .dll files, not .so files.
8762 # FIXME: Setting linknames here is a bad hack.
8763 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8764 # The linker will automatically build a .lib file if we build a DLL.
8765 old_archive_from_new_cmds='true'
8766 # FIXME: Should let the user specify the lib program.
8767 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8768 enable_shared_with_static_runtimes=yes
8773 darwin* | rhapsody*)
8776 archive_cmds_need_lc=no
8778 hardcode_automatic=yes
8779 hardcode_shlibpath_var=unsupported
8780 if test "$lt_cv_ld_force_load" = "yes"; then
8781 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\"`'
8784 whole_archive_flag_spec=''
8786 link_all_deplibs=yes
8787 allow_undefined_flag="$_lt_dar_allow_undefined"
8788 case $cc_basename in
8789 ifort*) _lt_dar_can_shared=yes ;;
8790 *) _lt_dar_can_shared=$GCC ;;
8792 if test "$_lt_dar_can_shared" = "yes"; then
8793 output_verbose_link_cmd=func_echo_all
8794 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8795 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8796 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}"
8797 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}"
8806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8807 hardcode_libdir_flag_spec='-L$libdir'
8808 hardcode_shlibpath_var=no
8811 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8812 # support. Future versions do this automatically, but an explicit c++rt0.o
8813 # does not break anything, and helps significantly (at the cost of a little
8816 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8817 hardcode_libdir_flag_spec='-R$libdir'
8819 hardcode_shlibpath_var=no
8822 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8824 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8826 hardcode_minus_L=yes
8827 hardcode_shlibpath_var=no
8830 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8831 freebsd* | dragonfly*)
8832 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8833 hardcode_libdir_flag_spec='-R$libdir'
8835 hardcode_shlibpath_var=no
8839 if test "$GCC" = yes; then
8840 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'
8842 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'
8844 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8845 hardcode_libdir_separator=:
8848 # hardcode_minus_L: Not really in the search PATH,
8849 # but as the default location of the library.
8850 hardcode_minus_L=yes
8851 export_dynamic_flag_spec='${wl}-E'
8855 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8856 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8858 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8860 if test "$with_gnu_ld" = no; then
8861 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8862 hardcode_libdir_separator=:
8864 hardcode_direct_absolute=yes
8865 export_dynamic_flag_spec='${wl}-E'
8866 # hardcode_minus_L: Not really in the search PATH,
8867 # but as the default location of the library.
8868 hardcode_minus_L=yes
8873 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8876 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8879 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8882 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8888 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8891 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8895 # Older versions of the 11.00 compiler do not understand -b yet
8896 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8898 $as_echo_n "checking if $CC understands -b... " >&6; }
8899 if ${lt_cv_prog_compiler__b+:} false; then :
8900 $as_echo_n "(cached) " >&6
8902 lt_cv_prog_compiler__b=no
8903 save_LDFLAGS="$LDFLAGS"
8904 LDFLAGS="$LDFLAGS -b"
8905 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8906 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8907 # The linker can only warn and ignore the option if not recognized
8908 # So say no if there are warnings
8909 if test -s conftest.err; then
8910 # Append any errors to the config.log.
8911 cat conftest.err 1>&5
8912 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8914 if diff conftest.exp conftest.er2 >/dev/null; then
8915 lt_cv_prog_compiler__b=yes
8918 lt_cv_prog_compiler__b=yes
8922 LDFLAGS="$save_LDFLAGS"
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8926 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8928 if test x"$lt_cv_prog_compiler__b" = xyes; then
8929 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8931 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8937 if test "$with_gnu_ld" = no; then
8938 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8939 hardcode_libdir_separator=:
8944 hardcode_shlibpath_var=no
8948 hardcode_direct_absolute=yes
8949 export_dynamic_flag_spec='${wl}-E'
8951 # hardcode_minus_L: Not really in the search PATH,
8952 # but as the default location of the library.
8953 hardcode_minus_L=yes
8959 irix5* | irix6* | nonstopux*)
8960 if test "$GCC" = yes; then
8961 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'
8962 # Try to use the -exported_symbol ld option, if it does not
8963 # work, assume that -exports_file does not work either and
8964 # implicitly export all symbols.
8965 # This should be the same for all languages, so no per-tag cache variable.
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
8967 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
8968 if ${lt_cv_irix_exported_symbol+:} false; then :
8969 $as_echo_n "(cached) " >&6
8971 save_LDFLAGS="$LDFLAGS"
8972 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974 /* end confdefs.h. */
8975 int foo (void) { return 0; }
8977 if ac_fn_c_try_link "$LINENO"; then :
8978 lt_cv_irix_exported_symbol=yes
8980 lt_cv_irix_exported_symbol=no
8982 rm -f core conftest.err conftest.$ac_objext \
8983 conftest$ac_exeext conftest.$ac_ext
8984 LDFLAGS="$save_LDFLAGS"
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
8987 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
8988 if test "$lt_cv_irix_exported_symbol" = yes; then
8989 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'
8992 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'
8993 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'
8995 archive_cmds_need_lc='no'
8996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8997 hardcode_libdir_separator=:
8999 link_all_deplibs=yes
9002 netbsd* | netbsdelf*-gnu)
9003 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9004 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9006 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9008 hardcode_libdir_flag_spec='-R$libdir'
9010 hardcode_shlibpath_var=no
9014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9017 hardcode_libdir_separator=:
9018 hardcode_shlibpath_var=no
9025 if test -f /usr/libexec/ld.so; then
9027 hardcode_shlibpath_var=no
9028 hardcode_direct_absolute=yes
9029 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9030 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9031 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9032 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9033 export_dynamic_flag_spec='${wl}-E'
9036 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9037 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9038 hardcode_libdir_flag_spec='-R$libdir'
9041 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9042 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9052 hardcode_libdir_flag_spec='-L$libdir'
9053 hardcode_minus_L=yes
9054 allow_undefined_flag=unsupported
9055 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'
9056 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9060 if test "$GCC" = yes; then
9061 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9062 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'
9064 allow_undefined_flag=' -expect_unresolved \*'
9065 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'
9067 archive_cmds_need_lc='no'
9068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9069 hardcode_libdir_separator=:
9072 osf4* | osf5*) # as osf3* with the addition of -msym flag
9073 if test "$GCC" = yes; then
9074 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9075 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'
9076 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9078 allow_undefined_flag=' -expect_unresolved \*'
9079 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'
9080 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~
9081 $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'
9083 # Both c and cxx compiler support -rpath directly
9084 hardcode_libdir_flag_spec='-rpath $libdir'
9086 archive_cmds_need_lc='no'
9087 hardcode_libdir_separator=:
9091 no_undefined_flag=' -z defs'
9092 if test "$GCC" = yes; then
9094 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9095 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9096 $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'
9098 case `$CC -V 2>&1` in
9101 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9102 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9103 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9107 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9108 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9109 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9113 hardcode_libdir_flag_spec='-R$libdir'
9114 hardcode_shlibpath_var=no
9116 solaris2.[0-5] | solaris2.[0-5].*) ;;
9118 # The compiler driver will combine and reorder linker options,
9119 # but understands `-z linker_flag'. GCC discards it without `$wl',
9120 # but is careful enough not to reorder.
9121 # Supported since Solaris 2.6 (maybe 2.5.1?)
9122 if test "$GCC" = yes; then
9123 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9125 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9129 link_all_deplibs=yes
9133 if test "x$host_vendor" = xsequent; then
9134 # Use $CC to link under sequent, because it throws in some extra .o
9135 # files that make .init and .fini sections work.
9136 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9138 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9140 hardcode_libdir_flag_spec='-L$libdir'
9142 hardcode_minus_L=yes
9143 hardcode_shlibpath_var=no
9147 case $host_vendor in
9149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9150 hardcode_direct=yes # is this really true???
9153 ## LD is ld it makes a PLAMLIB
9154 ## CC just makes a GrossModule.
9155 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9156 reload_cmds='$CC -r -o $output$reload_objs'
9160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9161 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9164 runpath_var='LD_RUN_PATH'
9165 hardcode_shlibpath_var=no
9169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9170 hardcode_shlibpath_var=no
9171 export_dynamic_flag_spec='-Bexport'
9175 if test -d /usr/nec; then
9176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9177 hardcode_shlibpath_var=no
9178 runpath_var=LD_RUN_PATH
9179 hardcode_runpath_var=yes
9184 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9185 no_undefined_flag='${wl}-z,text'
9186 archive_cmds_need_lc=no
9187 hardcode_shlibpath_var=no
9188 runpath_var='LD_RUN_PATH'
9190 if test "$GCC" = yes; then
9191 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9192 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9194 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9195 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9199 sysv5* | sco3.2v5* | sco5v6*)
9200 # Note: We can NOT use -z defs as we might desire, because we do not
9201 # link with -lc, and that would cause any symbols used from libc to
9202 # always be unresolved, which means just about no library would
9203 # ever link correctly. If we're not using GNU ld we use -z text
9204 # though, which does catch some bad symbols but isn't as heavy-handed
9206 no_undefined_flag='${wl}-z,text'
9207 allow_undefined_flag='${wl}-z,nodefs'
9208 archive_cmds_need_lc=no
9209 hardcode_shlibpath_var=no
9210 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9211 hardcode_libdir_separator=':'
9212 link_all_deplibs=yes
9213 export_dynamic_flag_spec='${wl}-Bexport'
9214 runpath_var='LD_RUN_PATH'
9216 if test "$GCC" = yes; then
9217 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9218 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9220 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9221 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9227 hardcode_libdir_flag_spec='-L$libdir'
9228 hardcode_shlibpath_var=no
9236 if test x$host_vendor = xsni; then
9238 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9239 export_dynamic_flag_spec='${wl}-Blargedynsym'
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9246 $as_echo "$ld_shlibs" >&6; }
9247 test "$ld_shlibs" = no && can_build_shared=no
9249 with_gnu_ld=$with_gnu_ld
9266 # Do we need to explicitly link libc?
9268 case "x$archive_cmds_need_lc" in
9270 # Assume -lc should be added
9271 archive_cmds_need_lc=yes
9273 if test "$enable_shared" = yes && test "$GCC" = yes; then
9274 case $archive_cmds in
9276 # FIXME: we may have to deal with multi-command sequences.
9279 # Test whether the compiler implicitly links with -lc since on some
9280 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9281 # to ld, don't add -lc before -lgcc.
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9283 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9284 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9285 $as_echo_n "(cached) " >&6
9288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9291 (eval $ac_compile) 2>&5
9293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9294 test $ac_status = 0; } 2>conftest.err; then
9297 libobjs=conftest.$ac_objext
9299 wl=$lt_prog_compiler_wl
9300 pic_flag=$lt_prog_compiler_pic
9306 lt_save_allow_undefined_flag=$allow_undefined_flag
9307 allow_undefined_flag=
9308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9309 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9312 test $ac_status = 0; }
9314 lt_cv_archive_cmds_need_lc=no
9316 lt_cv_archive_cmds_need_lc=yes
9318 allow_undefined_flag=$lt_save_allow_undefined_flag
9320 cat conftest.err 1>&5
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9326 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9327 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9486 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9488 if test "$GCC" = yes; then
9490 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9491 *) lt_awk_arg="/^libraries:/" ;;
9494 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9495 *) lt_sed_strip_eq="s,=/,/,g" ;;
9497 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9498 case $lt_search_path_spec in
9500 # if the path contains ";" then we assume it to be the separator
9501 # otherwise default to the standard path separator (i.e. ":") - it is
9502 # assumed that no part of a normal pathname contains ";" but that should
9503 # okay in the real world where ";" in dirpaths is itself problematic.
9504 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9507 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9510 # Ok, now we have the path, separated by spaces, we can step through it
9511 # and add multilib dir if necessary.
9512 lt_tmp_lt_search_path_spec=
9513 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9514 for lt_sys_path in $lt_search_path_spec; do
9515 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9516 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9518 test -d "$lt_sys_path" && \
9519 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9522 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9523 BEGIN {RS=" "; FS="/|\n";} {
9526 for (lt_i = NF; lt_i > 0; lt_i--) {
9527 if ($lt_i != "" && $lt_i != ".") {
9528 if ($lt_i == "..") {
9531 if (lt_count == 0) {
9532 lt_foo="/" $lt_i lt_foo;
9539 if (lt_foo != "") { lt_freq[lt_foo]++; }
9540 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9542 # AWK program above erroneously prepends '/' to C:/dos/paths
9545 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9546 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9548 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9550 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9553 libname_spec='lib$name'
9561 shlibpath_overrides_runpath=unknown
9563 dynamic_linker="$host_os ld.so"
9564 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9565 need_lib_prefix=unknown
9566 hardcode_into_libs=no
9568 # when you set need_version to no, make sure it does not cause -set_version
9569 # flags to be left without arguments
9570 need_version=unknown
9574 version_type=linux # correct to gnu/linux during the next big refactor
9575 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9576 shlibpath_var=LIBPATH
9578 # AIX 3 has no versioning support, so we append a major version to the name.
9579 soname_spec='${libname}${release}${shared_ext}$major'
9583 version_type=linux # correct to gnu/linux during the next big refactor
9586 hardcode_into_libs=yes
9587 if test "$host_cpu" = ia64; then
9588 # AIX 5 supports IA64
9589 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9590 shlibpath_var=LD_LIBRARY_PATH
9592 # With GCC up to 2.95.x, collect2 would create an import file
9593 # for dependence libraries. The import file would start with
9594 # the line `#! .'. This would cause the generated library to
9595 # depend on `.', always an invalid library. This was fixed in
9596 # development snapshots of GCC prior to 3.0.
9598 aix4 | aix4.[01] | aix4.[01].*)
9599 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9601 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9608 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9609 # soname into executable. Probably we can add versioning support to
9610 # collect2, so additional links can be useful in future.
9611 if test "$aix_use_runtimelinking" = yes; then
9612 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9613 # instead of lib<name>.a to let people know that these are not
9614 # typical AIX shared libraries.
9615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9617 # We preserve .a as extension for shared libraries through AIX4.2
9618 # and later when we are not doing run time linking.
9619 library_names_spec='${libname}${release}.a $libname.a'
9620 soname_spec='${libname}${release}${shared_ext}$major'
9622 shlibpath_var=LIBPATH
9629 # Since July 2007 AmigaOS4 officially supports .so libraries.
9630 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9634 library_names_spec='$libname.ixlibrary $libname.a'
9635 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9636 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'
9642 library_names_spec='${libname}${shared_ext}'
9643 dynamic_linker="$host_os ld.so"
9644 shlibpath_var=LIBRARY_PATH
9648 version_type=linux # correct to gnu/linux during the next big refactor
9650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9651 soname_spec='${libname}${release}${shared_ext}$major'
9652 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9653 shlibpath_var=LD_LIBRARY_PATH
9654 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9655 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9656 # the default ld.so.conf also contains /usr/contrib/lib and
9657 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9658 # libtool to hard-code these into programs
9661 cygwin* | mingw* | pw32* | cegcc*)
9662 version_type=windows
9667 case $GCC,$cc_basename in
9670 library_names_spec='$libname.dll.a'
9671 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9672 postinstall_cmds='base_file=`basename \${file}`~
9673 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9674 dldir=$destdir/`dirname \$dlpath`~
9675 test -d \$dldir || mkdir -p \$dldir~
9676 $install_prog $dir/$dlname \$dldir/$dlname~
9677 chmod a+x \$dldir/$dlname~
9678 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9679 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9681 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9682 dlpath=$dir/\$dldll~
9684 shlibpath_overrides_runpath=yes
9688 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9689 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9691 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9694 # MinGW DLLs use traditional 'lib' prefix
9695 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9698 # pw32 DLLs use 'pw' prefix rather than 'lib'
9699 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9702 dynamic_linker='Win32 ld.exe'
9707 libname_spec='$name'
9708 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9709 library_names_spec='${libname}.dll.lib'
9713 sys_lib_search_path_spec=
9719 # Let DOS variable expansion print the short 8.3 style file name.
9720 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9721 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9724 # Convert to MSYS style.
9725 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9728 # Convert to unix form, then to dos form, then back to unix form
9729 # but this time dos style (no spaces!) so that the unix form looks
9730 # like /cygdrive/c/PROGRA~1:/cygdr...
9731 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9732 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9733 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9736 sys_lib_search_path_spec="$LIB"
9737 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9738 # It is most probably a Windows format PATH.
9739 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9741 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9743 # FIXME: find the short name or the path components, as spaces are
9744 # common. (e.g. "Program Files" -> "PROGRA~1")
9748 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9749 postinstall_cmds='base_file=`basename \${file}`~
9750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9751 dldir=$destdir/`dirname \$dlpath`~
9752 test -d \$dldir || mkdir -p \$dldir~
9753 $install_prog $dir/$dlname \$dldir/$dlname'
9754 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9755 dlpath=$dir/\$dldll~
9757 shlibpath_overrides_runpath=yes
9758 dynamic_linker='Win32 link.exe'
9762 # Assume MSVC wrapper
9763 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9764 dynamic_linker='Win32 ld.exe'
9767 # FIXME: first we should search . and the directory the executable is in
9771 darwin* | rhapsody*)
9772 dynamic_linker="$host_os dyld"
9776 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9777 soname_spec='${libname}${release}${major}$shared_ext'
9778 shlibpath_overrides_runpath=yes
9779 shlibpath_var=DYLD_LIBRARY_PATH
9780 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9782 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9783 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9787 version_type=linux # correct to gnu/linux during the next big refactor
9790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9791 soname_spec='${libname}${release}${shared_ext}$major'
9792 shlibpath_var=LD_LIBRARY_PATH
9795 freebsd* | dragonfly*)
9796 # DragonFly does not have aout. When/if they implement a new
9797 # versioning mechanism, adjust this.
9798 if test -x /usr/bin/objformat; then
9799 objformat=`/usr/bin/objformat`
9802 freebsd[23].*) objformat=aout ;;
9806 version_type=freebsd-$objformat
9807 case $version_type in
9809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9814 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9818 shlibpath_var=LD_LIBRARY_PATH
9821 shlibpath_overrides_runpath=yes
9823 freebsd3.[01]* | freebsdelf3.[01]*)
9824 shlibpath_overrides_runpath=yes
9825 hardcode_into_libs=yes
9827 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9828 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9829 shlibpath_overrides_runpath=no
9830 hardcode_into_libs=yes
9832 *) # from 4.6 on, and DragonFly
9833 shlibpath_overrides_runpath=yes
9834 hardcode_into_libs=yes
9840 version_type=linux # correct to gnu/linux during the next big refactor
9843 dynamic_linker="$host_os runtime_loader"
9844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9845 soname_spec='${libname}${release}${shared_ext}$major'
9846 shlibpath_var=LIBRARY_PATH
9847 shlibpath_overrides_runpath=yes
9848 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9849 hardcode_into_libs=yes
9852 hpux9* | hpux10* | hpux11*)
9853 # Give a soname corresponding to the major version so that dld.sl refuses to
9854 # link against other versions.
9861 hardcode_into_libs=yes
9862 dynamic_linker="$host_os dld.so"
9863 shlibpath_var=LD_LIBRARY_PATH
9864 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866 soname_spec='${libname}${release}${shared_ext}$major'
9867 if test "X$HPUX_IA64_MODE" = X32; then
9868 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9870 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9872 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9876 hardcode_into_libs=yes
9877 dynamic_linker="$host_os dld.sl"
9878 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9879 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9881 soname_spec='${libname}${release}${shared_ext}$major'
9882 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9887 dynamic_linker="$host_os dld.sl"
9888 shlibpath_var=SHLIB_PATH
9889 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9891 soname_spec='${libname}${release}${shared_ext}$major'
9894 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9895 postinstall_cmds='chmod 555 $lib'
9896 # or fails outright, so override atomically:
9897 install_override_mode=555
9901 version_type=linux # correct to gnu/linux during the next big refactor
9904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9905 soname_spec='${libname}${release}${shared_ext}$major'
9906 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9907 shlibpath_var=LD_LIBRARY_PATH
9908 shlibpath_overrides_runpath=no
9909 hardcode_into_libs=yes
9912 irix5* | irix6* | nonstopux*)
9914 nonstopux*) version_type=nonstopux ;;
9916 if test "$lt_cv_prog_gnu_ld" = yes; then
9917 version_type=linux # correct to gnu/linux during the next big refactor
9924 soname_spec='${libname}${release}${shared_ext}$major'
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9927 irix5* | nonstopux*)
9931 case $LD in # libtool.m4 will add one of these switches to LD
9932 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9933 libsuff= shlibsuff= libmagic=32-bit;;
9934 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9935 libsuff=32 shlibsuff=N32 libmagic=N32;;
9936 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9937 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9938 *) libsuff= shlibsuff= libmagic=never-match;;
9942 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9943 shlibpath_overrides_runpath=no
9944 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9945 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9946 hardcode_into_libs=yes
9949 # No shared lib support for Linux oldld, aout, or coff.
9950 linux*oldld* | linux*aout* | linux*coff*)
9954 # This must be glibc/ELF.
9955 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9956 version_type=linux # correct to gnu/linux during the next big refactor
9959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9960 soname_spec='${libname}${release}${shared_ext}$major'
9961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9962 shlibpath_var=LD_LIBRARY_PATH
9963 shlibpath_overrides_runpath=no
9965 # Some binutils ld are patched to set DT_RUNPATH
9966 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9967 $as_echo_n "(cached) " >&6
9969 lt_cv_shlibpath_overrides_runpath=no
9970 save_LDFLAGS=$LDFLAGS
9972 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9973 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9985 if ac_fn_c_try_link "$LINENO"; then :
9986 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9987 lt_cv_shlibpath_overrides_runpath=yes
9990 rm -f core conftest.err conftest.$ac_objext \
9991 conftest$ac_exeext conftest.$ac_ext
9992 LDFLAGS=$save_LDFLAGS
9997 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9999 # This implies no fast_install, which is unacceptable.
10000 # Some rework will be needed to allow for fast_install
10001 # before this can be enabled.
10002 hardcode_into_libs=yes
10004 # Append ld.so.conf contents to the search path
10005 if test -f /etc/ld.so.conf; then
10006 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' ' '`
10007 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10010 # We used to test for /lib/ld.so.1 and disable shared libraries on
10011 # powerpc, because MkLinux only supported shared libraries with the
10012 # GNU dynamic linker. Since this was broken with cross compilers,
10013 # most powerpc-linux boxes support dynamic linking these days and
10014 # people can always --disable-shared, the test was removed, and we
10015 # assume the GNU/Linux dynamic linker is in use.
10016 dynamic_linker='GNU/Linux ld.so'
10023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10024 soname_spec='${libname}${release}${shared_ext}$major'
10025 shlibpath_var=LD_LIBRARY_PATH
10026 shlibpath_overrides_runpath=no
10027 hardcode_into_libs=yes
10028 dynamic_linker='NetBSD ld.elf_so'
10035 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10038 dynamic_linker='NetBSD (a.out) ld.so'
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10041 soname_spec='${libname}${release}${shared_ext}$major'
10042 dynamic_linker='NetBSD ld.elf_so'
10044 shlibpath_var=LD_LIBRARY_PATH
10045 shlibpath_overrides_runpath=yes
10046 hardcode_into_libs=yes
10050 version_type=linux # correct to gnu/linux during the next big refactor
10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10052 shlibpath_var=LD_LIBRARY_PATH
10053 shlibpath_overrides_runpath=yes
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061 soname_spec='${libname}${release}${shared_ext}$major'
10062 shlibpath_var=LD_LIBRARY_PATH
10063 shlibpath_overrides_runpath=no
10064 hardcode_into_libs=yes
10065 dynamic_linker='ldqnx.so'
10070 sys_lib_dlsearch_path_spec="/usr/lib"
10072 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10074 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10075 *) need_version=no ;;
10077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10079 shlibpath_var=LD_LIBRARY_PATH
10080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10082 openbsd2.[89] | openbsd2.[89].*)
10083 shlibpath_overrides_runpath=no
10086 shlibpath_overrides_runpath=yes
10090 shlibpath_overrides_runpath=yes
10095 libname_spec='$name'
10098 library_names_spec='$libname${shared_ext} $libname.a'
10099 dynamic_linker='OS/2 ld.exe'
10100 shlibpath_var=LIBPATH
10103 osf3* | osf4* | osf5*)
10107 soname_spec='${libname}${release}${shared_ext}$major'
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10109 shlibpath_var=LD_LIBRARY_PATH
10110 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10111 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10119 version_type=linux # correct to gnu/linux during the next big refactor
10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123 soname_spec='${libname}${release}${shared_ext}$major'
10124 shlibpath_var=LD_LIBRARY_PATH
10125 shlibpath_overrides_runpath=yes
10126 hardcode_into_libs=yes
10127 # ldd complains unless libraries are executable
10128 postinstall_cmds='chmod +x $lib'
10133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10134 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10135 shlibpath_var=LD_LIBRARY_PATH
10136 shlibpath_overrides_runpath=yes
10137 if test "$with_gnu_ld" = yes; then
10144 version_type=linux # correct to gnu/linux during the next big refactor
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 shlibpath_var=LD_LIBRARY_PATH
10148 case $host_vendor in
10150 shlibpath_overrides_runpath=no
10152 runpath_var=LD_RUN_PATH
10160 shlibpath_overrides_runpath=no
10161 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10167 if test -d /usr/nec ;then
10168 version_type=linux # correct to gnu/linux during the next big refactor
10169 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10170 soname_spec='$libname${shared_ext}.$major'
10171 shlibpath_var=LD_LIBRARY_PATH
10175 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10176 version_type=freebsd-elf
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10180 soname_spec='${libname}${release}${shared_ext}$major'
10181 shlibpath_var=LD_LIBRARY_PATH
10182 shlibpath_overrides_runpath=yes
10183 hardcode_into_libs=yes
10184 if test "$with_gnu_ld" = yes; then
10185 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10187 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10190 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10194 sys_lib_dlsearch_path_spec='/usr/lib'
10198 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10199 version_type=linux # correct to gnu/linux during the next big refactor
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203 shlibpath_var=LD_LIBRARY_PATH
10204 shlibpath_overrides_runpath=no
10205 hardcode_into_libs=yes
10209 version_type=linux # correct to gnu/linux during the next big refactor
10210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211 soname_spec='${libname}${release}${shared_ext}$major'
10212 shlibpath_var=LD_LIBRARY_PATH
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10220 $as_echo "$dynamic_linker" >&6; }
10221 test "$dynamic_linker" = no && can_build_shared=no
10223 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10224 if test "$GCC" = yes; then
10225 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10228 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10229 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10231 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10232 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10327 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10329 if test -n "$hardcode_libdir_flag_spec" ||
10330 test -n "$runpath_var" ||
10331 test "X$hardcode_automatic" = "Xyes" ; then
10333 # We can hardcode non-existent directories.
10334 if test "$hardcode_direct" != no &&
10335 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10336 # have to relink, otherwise we might link with an installed library
10337 # when we should be linking with a yet-to-be-installed one
10338 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10339 test "$hardcode_minus_L" != no; then
10340 # Linking always hardcodes the temporary library directory.
10341 hardcode_action=relink
10343 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10344 hardcode_action=immediate
10347 # We cannot hardcode anything, or else we can only hardcode existing
10349 hardcode_action=unsupported
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10352 $as_echo "$hardcode_action" >&6; }
10354 if test "$hardcode_action" = relink ||
10355 test "$inherit_rpath" = yes; then
10356 # Fast installation is not supported
10357 enable_fast_install=no
10358 elif test "$shlibpath_overrides_runpath" = yes ||
10359 test "$enable_shared" = no; then
10360 # Fast installation is not necessary
10361 enable_fast_install=needless
10369 if test "x$enable_dlopen" != xyes; then
10370 enable_dlopen=unknown
10371 enable_dlopen_self=unknown
10372 enable_dlopen_self_static=unknown
10379 lt_cv_dlopen="load_add_on"
10381 lt_cv_dlopen_self=yes
10384 mingw* | pw32* | cegcc*)
10385 lt_cv_dlopen="LoadLibrary"
10390 lt_cv_dlopen="dlopen"
10395 # if libdl is installed we need to link against it
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10397 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10398 if ${ac_cv_lib_dl_dlopen+:} false; then :
10399 $as_echo_n "(cached) " >&6
10401 ac_check_lib_save_LIBS=$LIBS
10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h. */
10406 /* Override any GCC internal prototype to avoid an error.
10407 Use char because int might match the return type of a GCC
10408 builtin and then its argument prototype would still apply. */
10421 if ac_fn_c_try_link "$LINENO"; then :
10422 ac_cv_lib_dl_dlopen=yes
10424 ac_cv_lib_dl_dlopen=no
10426 rm -f core conftest.err conftest.$ac_objext \
10427 conftest$ac_exeext conftest.$ac_ext
10428 LIBS=$ac_check_lib_save_LIBS
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10431 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10432 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10433 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10436 lt_cv_dlopen="dyld"
10438 lt_cv_dlopen_self=yes
10445 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10446 if test "x$ac_cv_func_shl_load" = xyes; then :
10447 lt_cv_dlopen="shl_load"
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10450 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10451 if ${ac_cv_lib_dld_shl_load+:} false; then :
10452 $as_echo_n "(cached) " >&6
10454 ac_check_lib_save_LIBS=$LIBS
10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h. */
10459 /* Override any GCC internal prototype to avoid an error.
10460 Use char because int might match the return type of a GCC
10461 builtin and then its argument prototype would still apply. */
10469 return shl_load ();
10474 if ac_fn_c_try_link "$LINENO"; then :
10475 ac_cv_lib_dld_shl_load=yes
10477 ac_cv_lib_dld_shl_load=no
10479 rm -f core conftest.err conftest.$ac_objext \
10480 conftest$ac_exeext conftest.$ac_ext
10481 LIBS=$ac_check_lib_save_LIBS
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10484 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10485 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10486 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10488 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10489 if test "x$ac_cv_func_dlopen" = xyes; then :
10490 lt_cv_dlopen="dlopen"
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10493 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10494 if ${ac_cv_lib_dl_dlopen+:} false; then :
10495 $as_echo_n "(cached) " >&6
10497 ac_check_lib_save_LIBS=$LIBS
10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h. */
10502 /* Override any GCC internal prototype to avoid an error.
10503 Use char because int might match the return type of a GCC
10504 builtin and then its argument prototype would still apply. */
10517 if ac_fn_c_try_link "$LINENO"; then :
10518 ac_cv_lib_dl_dlopen=yes
10520 ac_cv_lib_dl_dlopen=no
10522 rm -f core conftest.err conftest.$ac_objext \
10523 conftest$ac_exeext conftest.$ac_ext
10524 LIBS=$ac_check_lib_save_LIBS
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10527 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10528 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10529 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10532 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10533 if ${ac_cv_lib_svld_dlopen+:} false; then :
10534 $as_echo_n "(cached) " >&6
10536 ac_check_lib_save_LIBS=$LIBS
10537 LIBS="-lsvld $LIBS"
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10541 /* Override any GCC internal prototype to avoid an error.
10542 Use char because int might match the return type of a GCC
10543 builtin and then its argument prototype would still apply. */
10556 if ac_fn_c_try_link "$LINENO"; then :
10557 ac_cv_lib_svld_dlopen=yes
10559 ac_cv_lib_svld_dlopen=no
10561 rm -f core conftest.err conftest.$ac_objext \
10562 conftest$ac_exeext conftest.$ac_ext
10563 LIBS=$ac_check_lib_save_LIBS
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10566 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10567 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10568 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10571 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10572 if ${ac_cv_lib_dld_dld_link+:} false; then :
10573 $as_echo_n "(cached) " >&6
10575 ac_check_lib_save_LIBS=$LIBS
10577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10578 /* end confdefs.h. */
10580 /* Override any GCC internal prototype to avoid an error.
10581 Use char because int might match the return type of a GCC
10582 builtin and then its argument prototype would still apply. */
10590 return dld_link ();
10595 if ac_fn_c_try_link "$LINENO"; then :
10596 ac_cv_lib_dld_dld_link=yes
10598 ac_cv_lib_dld_dld_link=no
10600 rm -f core conftest.err conftest.$ac_objext \
10601 conftest$ac_exeext conftest.$ac_ext
10602 LIBS=$ac_check_lib_save_LIBS
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10605 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10606 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10607 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10628 if test "x$lt_cv_dlopen" != xno; then
10634 case $lt_cv_dlopen in
10636 save_CPPFLAGS="$CPPFLAGS"
10637 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10639 save_LDFLAGS="$LDFLAGS"
10640 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10643 LIBS="$lt_cv_dlopen_libs $LIBS"
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10646 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10647 if ${lt_cv_dlopen_self+:} false; then :
10648 $as_echo_n "(cached) " >&6
10650 if test "$cross_compiling" = yes; then :
10651 lt_cv_dlopen_self=cross
10653 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10654 lt_status=$lt_dlunknown
10655 cat > conftest.$ac_ext <<_LT_EOF
10656 #line $LINENO "configure"
10657 #include "confdefs.h"
10666 # define LT_DLGLOBAL RTLD_GLOBAL
10669 # define LT_DLGLOBAL DL_GLOBAL
10671 # define LT_DLGLOBAL 0
10675 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10676 find out it does not work in some platform. */
10677 #ifndef LT_DLLAZY_OR_NOW
10679 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10682 # define LT_DLLAZY_OR_NOW DL_LAZY
10685 # define LT_DLLAZY_OR_NOW RTLD_NOW
10688 # define LT_DLLAZY_OR_NOW DL_NOW
10690 # define LT_DLLAZY_OR_NOW 0
10697 /* When -fvisbility=hidden is used, assume the code has been annotated
10698 correspondingly for the symbols needed. */
10699 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10700 int fnord () __attribute__((visibility("default")));
10703 int fnord () { return 42; }
10706 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10707 int status = $lt_dlunknown;
10711 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10714 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10715 else puts (dlerror ());
10717 /* dlclose (self); */
10725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10726 (eval $ac_link) 2>&5
10728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10729 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10730 (./conftest; exit; ) >&5 2>/dev/null
10732 case x$lt_status in
10733 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10734 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10735 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10738 # compilation failed
10739 lt_cv_dlopen_self=no
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10747 $as_echo "$lt_cv_dlopen_self" >&6; }
10749 if test "x$lt_cv_dlopen_self" = xyes; then
10750 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10752 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10753 if ${lt_cv_dlopen_self_static+:} false; then :
10754 $as_echo_n "(cached) " >&6
10756 if test "$cross_compiling" = yes; then :
10757 lt_cv_dlopen_self_static=cross
10759 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10760 lt_status=$lt_dlunknown
10761 cat > conftest.$ac_ext <<_LT_EOF
10762 #line $LINENO "configure"
10763 #include "confdefs.h"
10772 # define LT_DLGLOBAL RTLD_GLOBAL
10775 # define LT_DLGLOBAL DL_GLOBAL
10777 # define LT_DLGLOBAL 0
10781 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10782 find out it does not work in some platform. */
10783 #ifndef LT_DLLAZY_OR_NOW
10785 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10788 # define LT_DLLAZY_OR_NOW DL_LAZY
10791 # define LT_DLLAZY_OR_NOW RTLD_NOW
10794 # define LT_DLLAZY_OR_NOW DL_NOW
10796 # define LT_DLLAZY_OR_NOW 0
10803 /* When -fvisbility=hidden is used, assume the code has been annotated
10804 correspondingly for the symbols needed. */
10805 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10806 int fnord () __attribute__((visibility("default")));
10809 int fnord () { return 42; }
10812 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10813 int status = $lt_dlunknown;
10817 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10820 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10821 else puts (dlerror ());
10823 /* dlclose (self); */
10831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10832 (eval $ac_link) 2>&5
10834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10835 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10836 (./conftest; exit; ) >&5 2>/dev/null
10838 case x$lt_status in
10839 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10840 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10841 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10844 # compilation failed
10845 lt_cv_dlopen_self_static=no
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10853 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10856 CPPFLAGS="$save_CPPFLAGS"
10857 LDFLAGS="$save_LDFLAGS"
10862 case $lt_cv_dlopen_self in
10863 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10864 *) enable_dlopen_self=unknown ;;
10867 case $lt_cv_dlopen_self_static in
10868 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10869 *) enable_dlopen_self_static=unknown ;;
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10892 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10893 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10894 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10895 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10897 $as_echo "yes" >&6; }
10899 # FIXME - insert some real tests, host_os isn't really good enough
10902 if test -n "$STRIP" ; then
10903 striplib="$STRIP -x"
10904 old_striplib="$STRIP -S"
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10906 $as_echo "yes" >&6; }
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10909 $as_echo "no" >&6; }
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10914 $as_echo "no" >&6; }
10930 # Report which library types will actually be built
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10932 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10934 $as_echo "$can_build_shared" >&6; }
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10937 $as_echo_n "checking whether to build shared libraries... " >&6; }
10938 test "$can_build_shared" = "no" && enable_shared=no
10940 # On AIX, shared libraries and static libraries use the same namespace, and
10941 # are all built from PIC.
10944 test "$enable_shared" = yes && enable_static=no
10945 if test -n "$RANLIB"; then
10946 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10947 postinstall_cmds='$RANLIB $lib'
10952 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10953 test "$enable_shared" = yes && enable_static=no
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10958 $as_echo "$enable_shared" >&6; }
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10961 $as_echo_n "checking whether to build static libraries... " >&6; }
10962 # Make sure either enable_shared or enable_static is yes.
10963 test "$enable_shared" = yes || enable_static=yes
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10965 $as_echo "$enable_static" >&6; }
10972 ac_cpp='$CPP $CPPFLAGS'
10973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10993 ac_config_commands="$ac_config_commands libtool"
10998 # Only expand once:
11001 am__api_version='1.15'
11003 # Find a good install program. We prefer a C program (faster),
11004 # so one script is as good as another. But avoid the broken or
11005 # incompatible versions:
11006 # SysV /etc/install, /usr/sbin/install
11007 # SunOS /usr/etc/install
11008 # IRIX /sbin/install
11010 # AmigaOS /C/install, which installs bootblocks on floppy discs
11011 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11012 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11013 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11014 # OS/2's system install, which has a completely different semantic
11015 # ./install, which can be erroneously created by make from ./install.sh.
11016 # Reject install programs that cannot install multiple files.
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11018 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11019 if test -z "$INSTALL"; then
11020 if ${ac_cv_path_install+:} false; then :
11021 $as_echo_n "(cached) " >&6
11023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11024 for as_dir in $PATH
11027 test -z "$as_dir" && as_dir=.
11028 # Account for people who put trailing slashes in PATH elements.
11029 case $as_dir/ in #((
11030 ./ | .// | /[cC]/* | \
11031 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11032 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11035 # OSF1 and SCO ODT 3.0 have their own names for install.
11036 # Don't use installbsd from OSF since it installs stuff as root
11038 for ac_prog in ginstall scoinst install; do
11039 for ac_exec_ext in '' $ac_executable_extensions; do
11040 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11041 if test $ac_prog = install &&
11042 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11043 # AIX install. It has an incompatible calling convention.
11045 elif test $ac_prog = install &&
11046 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11047 # program-specific install script used by HP pwplus--don't use.
11050 rm -rf conftest.one conftest.two conftest.dir
11051 echo one > conftest.one
11052 echo two > conftest.two
11054 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11055 test -s conftest.one && test -s conftest.two &&
11056 test -s conftest.dir/conftest.one &&
11057 test -s conftest.dir/conftest.two
11059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11072 rm -rf conftest.one conftest.two conftest.dir
11075 if test "${ac_cv_path_install+set}" = set; then
11076 INSTALL=$ac_cv_path_install
11078 # As a last resort, use the slow shell script. Don't cache a
11079 # value for INSTALL within a source directory, because that will
11080 # break other packages using the cache if that directory is
11081 # removed, or if the value is a relative name.
11082 INSTALL=$ac_install_sh
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11086 $as_echo "$INSTALL" >&6; }
11088 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11089 # It thinks the first close brace ends the variable substitution.
11090 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11092 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11094 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11097 $as_echo_n "checking whether build environment is sane... " >&6; }
11098 # Reject unsafe characters in $srcdir or the absolute working directory
11099 # name. Accept space and tab only in the latter.
11103 *[\\\"\#\$\&\'\`$am_lf]*)
11104 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
11107 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
11108 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
11111 # Do 'set' in a subshell so we don't clobber the current shell's
11112 # arguments. Must try -L first in case configure is actually a
11113 # symlink; some systems play weird games with the mod time of symlinks
11114 # (eg FreeBSD returns the mod time of the symlink's containing
11118 for am_try in 1 2; do
11119 echo "timestamp, slept: $am_has_slept" > conftest.file
11120 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11121 if test "$*" = "X"; then
11123 set X `ls -t "$srcdir/configure" conftest.file`
11125 if test "$*" != "X $srcdir/configure conftest.file" \
11126 && test "$*" != "X conftest.file $srcdir/configure"; then
11128 # If neither matched, then we have a broken ls. This can happen
11129 # if, for instance, CONFIG_SHELL is bash and it inherits a
11130 # broken ls alias from the environment. This has actually
11131 # happened. Such a system could not be considered "sane".
11132 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
11133 alias in your environment" "$LINENO" 5
11135 if test "$2" = conftest.file || test $am_try -eq 2; then
11142 test "$2" = conftest.file
11148 as_fn_error $? "newly created file is older than distributed files!
11149 Check your system clock" "$LINENO" 5
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11152 $as_echo "yes" >&6; }
11153 # If we didn't sleep, we still need to ensure time stamps of config.status and
11154 # generated files are strictly newer.
11156 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
11161 rm -f conftest.file
11163 test "$program_prefix" != NONE &&
11164 program_transform_name="s&^&$program_prefix&;$program_transform_name"
11165 # Use a double $ so make ignores it.
11166 test "$program_suffix" != NONE &&
11167 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11168 # Double any \ or $.
11169 # By default was `s,x,x', remove it if useless.
11170 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11171 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11173 if test x"${MISSING+set}" != xset; then
11174 case $am_aux_dir in
11176 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
11178 MISSING="\${SHELL} $am_aux_dir/missing" ;;
11181 # Use eval to expand $SHELL
11182 if eval "$MISSING --is-lightweight"; then
11183 am_missing_run="$MISSING "
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
11187 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
11190 if test x"${install_sh+set}" != xset; then
11191 case $am_aux_dir in
11193 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11195 install_sh="\${SHELL} $am_aux_dir/install-sh"
11199 # Installed binaries are usually stripped using 'strip' when the user
11200 # run "make install-strip". However 'strip' might not be the right
11201 # tool to use in cross-compilation environments, therefore Automake
11202 # will honor the 'STRIP' environment variable to overrule this program.
11203 if test "$cross_compiling" != no; then
11204 if test -n "$ac_tool_prefix"; then
11205 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11206 set dummy ${ac_tool_prefix}strip; ac_word=$2
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11208 $as_echo_n "checking for $ac_word... " >&6; }
11209 if ${ac_cv_prog_STRIP+:} false; then :
11210 $as_echo_n "(cached) " >&6
11212 if test -n "$STRIP"; then
11213 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11216 for as_dir in $PATH
11219 test -z "$as_dir" && as_dir=.
11220 for ac_exec_ext in '' $ac_executable_extensions; do
11221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11222 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11232 STRIP=$ac_cv_prog_STRIP
11233 if test -n "$STRIP"; then
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11235 $as_echo "$STRIP" >&6; }
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238 $as_echo "no" >&6; }
11243 if test -z "$ac_cv_prog_STRIP"; then
11245 # Extract the first word of "strip", so it can be a program name with args.
11246 set dummy strip; ac_word=$2
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11248 $as_echo_n "checking for $ac_word... " >&6; }
11249 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11250 $as_echo_n "(cached) " >&6
11252 if test -n "$ac_ct_STRIP"; then
11253 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256 for as_dir in $PATH
11259 test -z "$as_dir" && as_dir=.
11260 for ac_exec_ext in '' $ac_executable_extensions; do
11261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11262 ac_cv_prog_ac_ct_STRIP="strip"
11263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11272 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11273 if test -n "$ac_ct_STRIP"; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11275 $as_echo "$ac_ct_STRIP" >&6; }
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278 $as_echo "no" >&6; }
11281 if test "x$ac_ct_STRIP" = x; then
11284 case $cross_compiling:$ac_tool_warned in
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11288 ac_tool_warned=yes ;;
11293 STRIP="$ac_cv_prog_STRIP"
11297 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11300 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11301 if test -z "$MKDIR_P"; then
11302 if ${ac_cv_path_mkdir+:} false; then :
11303 $as_echo_n "(cached) " >&6
11305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11306 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11309 test -z "$as_dir" && as_dir=.
11310 for ac_prog in mkdir gmkdir; do
11311 for ac_exec_ext in '' $ac_executable_extensions; do
11312 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
11313 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11314 'mkdir (GNU coreutils) '* | \
11315 'mkdir (coreutils) '* | \
11316 'mkdir (fileutils) '4.1*)
11317 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11327 test -d ./--version && rmdir ./--version
11328 if test "${ac_cv_path_mkdir+set}" = set; then
11329 MKDIR_P="$ac_cv_path_mkdir -p"
11331 # As a last resort, use the slow shell script. Don't cache a
11332 # value for MKDIR_P within a source directory, because that will
11333 # break other packages using the cache if that directory is
11334 # removed, or if the value is a relative name.
11335 MKDIR_P="$ac_install_sh -d"
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11339 $as_echo "$MKDIR_P" >&6; }
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11342 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11344 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11345 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11346 $as_echo_n "(cached) " >&6
11348 cat >conftest.make <<\_ACEOF
11351 @echo '@@@%%%=$(MAKE)=@@@%%%'
11353 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11354 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11355 *@@@%%%=?*=@@@%%%*)
11356 eval ac_cv_prog_make_${ac_make}_set=yes;;
11358 eval ac_cv_prog_make_${ac_make}_set=no;;
11360 rm -f conftest.make
11362 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11364 $as_echo "yes" >&6; }
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11368 $as_echo "no" >&6; }
11369 SET_MAKE="MAKE=${MAKE-make}"
11372 rm -rf .tst 2>/dev/null
11373 mkdir .tst 2>/dev/null
11374 if test -d .tst; then
11379 rmdir .tst 2>/dev/null
11381 DEPDIR="${am__leading_dot}deps"
11383 ac_config_commands="$ac_config_commands depfiles"
11386 am_make=${MAKE-make}
11387 cat > confinc << 'END'
11389 @echo this is the am__doit target
11392 # If we don't find an include directive, just comment out the code.
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
11394 $as_echo_n "checking for style of include used by $am_make... " >&6; }
11398 # First try GNU make style include.
11399 echo "include confinc" > confmf
11400 # Ignore all kinds of additional output from 'make'.
11401 case `$am_make -s -f confmf 2> /dev/null` in #(
11402 *the\ am__doit\ target*)
11403 am__include=include
11408 # Now try BSD make style include.
11409 if test "$am__include" = "#"; then
11410 echo '.include "confinc"' > confmf
11411 case `$am_make -s -f confmf 2> /dev/null` in #(
11412 *the\ am__doit\ target*)
11413 am__include=.include
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
11422 $as_echo "$_am_result" >&6; }
11423 rm -f confinc confmf
11425 # Check whether --enable-dependency-tracking was given.
11426 if test "${enable_dependency_tracking+set}" = set; then :
11427 enableval=$enable_dependency_tracking;
11430 if test "x$enable_dependency_tracking" != xno; then
11431 am_depcomp="$ac_aux_dir/depcomp"
11435 if test "x$enable_dependency_tracking" != xno; then
11444 # Check whether --enable-silent-rules was given.
11445 if test "${enable_silent_rules+set}" = set; then :
11446 enableval=$enable_silent_rules;
11449 case $enable_silent_rules in # (((
11450 yes) AM_DEFAULT_VERBOSITY=0;;
11451 no) AM_DEFAULT_VERBOSITY=1;;
11452 *) AM_DEFAULT_VERBOSITY=1;;
11454 am_make=${MAKE-make}
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11456 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11457 if ${am_cv_make_support_nested_variables+:} false; then :
11458 $as_echo_n "(cached) " >&6
11460 if $as_echo 'TRUE=$(BAR$(V))
11466 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11467 am_cv_make_support_nested_variables=yes
11469 am_cv_make_support_nested_variables=no
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11473 $as_echo "$am_cv_make_support_nested_variables" >&6; }
11474 if test $am_cv_make_support_nested_variables = yes; then
11476 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11478 AM_V=$AM_DEFAULT_VERBOSITY
11479 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11483 if test "`cd $srcdir && pwd`" != "`pwd`"; then
11484 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11485 # is not polluted with repeated "-I."
11486 am__isrc=' -I$(srcdir)'
11487 # test to see if srcdir already configured
11488 if test -f $srcdir/config.status; then
11489 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11493 # test whether we have cygpath
11494 if test -z "$CYGPATH_W"; then
11495 if (cygpath --version) >/dev/null 2>/dev/null; then
11496 CYGPATH_W='cygpath -w'
11503 # Define the identity of the package.
11508 cat >>confdefs.h <<_ACEOF
11509 #define PACKAGE "$PACKAGE"
11513 cat >>confdefs.h <<_ACEOF
11514 #define VERSION "$VERSION"
11517 # Some tools Automake needs.
11519 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11522 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11525 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11528 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11531 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11533 # For better backward compatibility. To be removed once Automake 1.9.x
11534 # dies out for good. For more background, see:
11535 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
11536 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
11537 mkdir_p='$(MKDIR_P)'
11539 # We need awk for the "check" target (and possibly the TAP driver). The
11540 # system "awk" is bad on some platforms.
11541 # Always define AMTAR for backward compatibility. Yes, it's still used
11542 # in the wild :-( We should find a proper way to deprecate it ...
11543 AMTAR='$${TAR-tar}'
11546 # We'll loop over all known methods to create a tar archive until one works.
11547 _am_tools='gnutar pax cpio none'
11549 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
11555 depcc="$CC" am_compiler_list=
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11558 $as_echo_n "checking dependency style of $depcc... " >&6; }
11559 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11560 $as_echo_n "(cached) " >&6
11562 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11563 # We make a subdir and do the tests there. Otherwise we can end up
11564 # making bogus files that we don't know about and never remove. For
11565 # instance it was reported that on HP-UX the gcc test will end up
11566 # making a dummy file named 'D' -- because '-MD' means "put the output
11568 rm -rf conftest.dir
11570 # Copy depcomp to subdir because otherwise we won't find it if we're
11571 # using a relative directory.
11572 cp "$am_depcomp" conftest.dir
11574 # We will build objects and dependencies in a subdirectory because
11575 # it helps to detect inapplicable dependency modes. For instance
11576 # both Tru64's cc and ICC support -MD to output dependencies as a
11577 # side effect of compilation, but ICC will put the dependencies in
11578 # the current directory while Tru64 will put them in the object
11582 am_cv_CC_dependencies_compiler_type=none
11583 if test "$am_compiler_list" = ""; then
11584 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11586 am__universal=false
11587 case " $depcc " in #(
11588 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11591 for depmode in $am_compiler_list; do
11592 # Setup a source with many dependencies, because some compilers
11593 # like to wrap large dependency lists on column 80 (with \), and
11594 # we should not choose a depcomp mode which is confused by this.
11596 # We need to recreate these files for each test, as the compiler may
11597 # overwrite some of them when testing with obscure command lines.
11598 # This happens at least with the AIX C compiler.
11600 for i in 1 2 3 4 5 6; do
11601 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11602 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11603 # Solaris 10 /bin/sh.
11604 echo '/* dummy */' > sub/conftst$i.h
11606 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11608 # We check with '-c' and '-o' for the sake of the "dashmstdout"
11609 # mode. It turns out that the SunPro C++ compiler does not properly
11610 # handle '-M -o', and we need to detect this. Also, some Intel
11611 # versions had trouble with output in subdirs.
11612 am__obj=sub/conftest.${OBJEXT-o}
11613 am__minus_obj="-o $am__obj"
11616 # This depmode causes a compiler race in universal mode.
11617 test "$am__universal" = false || continue
11620 # After this tag, mechanisms are not by side-effect, so they'll
11621 # only be used when explicitly requested.
11622 if test "x$enable_dependency_tracking" = xyes; then
11628 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11629 # This compiler won't grok '-c -o', but also, the minuso test has
11630 # not run yet. These depmodes are late enough in the game, and
11631 # so weak that their functioning should not be impacted.
11632 am__obj=conftest.${OBJEXT-o}
11637 if depmode=$depmode \
11638 source=sub/conftest.c object=$am__obj \
11639 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11640 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11641 >/dev/null 2>conftest.err &&
11642 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11643 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11644 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11645 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11646 # icc doesn't choke on unknown options, it will just issue warnings
11647 # or remarks (even with -Werror). So we grep stderr for any message
11648 # that says an option was ignored or not supported.
11649 # When given -MP, icc 7.0 and 7.1 complain thusly:
11650 # icc: Command line warning: ignoring option '-M'; no argument required
11651 # The diagnosis changed in icc 8.0:
11652 # icc: Command line remark: option '-MP' not supported
11653 if (grep 'ignoring option' conftest.err ||
11654 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11655 am_cv_CC_dependencies_compiler_type=$depmode
11662 rm -rf conftest.dir
11664 am_cv_CC_dependencies_compiler_type=none
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11669 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11670 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11673 test "x$enable_dependency_tracking" != xno \
11674 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11675 am__fastdepCC_TRUE=
11676 am__fastdepCC_FALSE='#'
11678 am__fastdepCC_TRUE='#'
11679 am__fastdepCC_FALSE=
11684 # POSIX will say in a future version that running "rm -f" with no argument
11685 # is OK; and we want to be able to make that assumption in our Makefile
11686 # recipes. So use an aggressive probe to check that the usage we want is
11687 # actually supported "in the wild" to an acceptable degree.
11688 # See automake bug#10828.
11689 # To make any issue more visible, cause the running configure to be aborted
11690 # by default if the 'rm' program in use doesn't match our expectations; the
11691 # user can still override this though.
11692 if rm -f && rm -fr && rm -rf; then : OK; else
11696 Your 'rm' program seems unable to run without file operands specified
11697 on the command line, even when the '-f' option is present. This is contrary
11698 to the behaviour of most rm programs out there, and not conforming with
11699 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
11701 Please tell bug-automake@gnu.org about your system, including the value
11702 of your $PATH and any error possibly output before this message. This
11703 can help us improve future automake versions.
11706 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
11707 echo 'Configuration will proceed anyway, since you have set the' >&2
11708 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
11712 Aborting the configuration process, to ensure you take notice of the issue.
11714 You can download and install GNU coreutils to get an 'rm' implementation
11715 that behaves properly: <http://www.gnu.org/software/coreutils/>.
11717 If you want to complete the configuration process using your problematic
11718 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
11719 to "yes", and re-run configure.
11722 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
11726 ac_config_headers="$ac_config_headers src/config.h"
11730 SHARED_VERSION_INFO="2:0:0"
11733 # checks for programs
11738 [\\/$]* | ?:[\\/]*) ;;
11739 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11744 $as_echo_n "checking whether NLS is requested... " >&6; }
11745 # Check whether --enable-nls was given.
11746 if test "${enable_nls+set}" = set; then :
11747 enableval=$enable_nls; USE_NLS=$enableval
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11753 $as_echo "$USE_NLS" >&6; }
11758 GETTEXT_MACRO_VERSION=0.18
11763 # Prepare PATH_SEPARATOR.
11764 # The user is always right.
11765 if test "${PATH_SEPARATOR+set}" != set; then
11766 echo "#! /bin/sh" >conf$$.sh
11767 echo "exit 0" >>conf$$.sh
11769 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11777 # Find out how to test for executable files. Don't use a zero-byte file,
11778 # as systems may use methods other than mode bits to determine executability.
11779 cat >conf$$.file <<_ASEOF
11783 chmod +x conf$$.file
11784 if test -x conf$$.file >/dev/null 2>&1; then
11785 ac_executable_p="test -x"
11787 ac_executable_p="test -f"
11791 # Extract the first word of "msgfmt", so it can be a program name with args.
11792 set dummy msgfmt; ac_word=$2
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11794 $as_echo_n "checking for $ac_word... " >&6; }
11795 if ${ac_cv_path_MSGFMT+:} false; then :
11796 $as_echo_n "(cached) " >&6
11800 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11803 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11804 for ac_dir in $PATH; do
11806 test -z "$ac_dir" && ac_dir=.
11807 for ac_exec_ext in '' $ac_executable_extensions; do
11808 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11809 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11810 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
11811 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11812 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11819 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11823 MSGFMT="$ac_cv_path_MSGFMT"
11824 if test "$MSGFMT" != ":"; then
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11826 $as_echo "$MSGFMT" >&6; }
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11829 $as_echo "no" >&6; }
11832 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11833 set dummy gmsgfmt; ac_word=$2
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11835 $as_echo_n "checking for $ac_word... " >&6; }
11836 if ${ac_cv_path_GMSGFMT+:} false; then :
11837 $as_echo_n "(cached) " >&6
11841 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845 for as_dir in $PATH
11848 test -z "$as_dir" && as_dir=.
11849 for ac_exec_ext in '' $ac_executable_extensions; do
11850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11851 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11859 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11863 GMSGFMT=$ac_cv_path_GMSGFMT
11864 if test -n "$GMSGFMT"; then
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11866 $as_echo "$GMSGFMT" >&6; }
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869 $as_echo "no" >&6; }
11874 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11875 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
11876 *) MSGFMT_015=$MSGFMT ;;
11879 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11880 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
11881 *) GMSGFMT_015=$GMSGFMT ;;
11886 # Prepare PATH_SEPARATOR.
11887 # The user is always right.
11888 if test "${PATH_SEPARATOR+set}" != set; then
11889 echo "#! /bin/sh" >conf$$.sh
11890 echo "exit 0" >>conf$$.sh
11892 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11900 # Find out how to test for executable files. Don't use a zero-byte file,
11901 # as systems may use methods other than mode bits to determine executability.
11902 cat >conf$$.file <<_ASEOF
11906 chmod +x conf$$.file
11907 if test -x conf$$.file >/dev/null 2>&1; then
11908 ac_executable_p="test -x"
11910 ac_executable_p="test -f"
11914 # Extract the first word of "xgettext", so it can be a program name with args.
11915 set dummy xgettext; ac_word=$2
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11917 $as_echo_n "checking for $ac_word... " >&6; }
11918 if ${ac_cv_path_XGETTEXT+:} false; then :
11919 $as_echo_n "(cached) " >&6
11921 case "$XGETTEXT" in
11923 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11926 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11927 for ac_dir in $PATH; do
11929 test -z "$ac_dir" && ac_dir=.
11930 for ac_exec_ext in '' $ac_executable_extensions; do
11931 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11932 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11933 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
11934 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11935 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11942 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11946 XGETTEXT="$ac_cv_path_XGETTEXT"
11947 if test "$XGETTEXT" != ":"; then
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11949 $as_echo "$XGETTEXT" >&6; }
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11952 $as_echo "no" >&6; }
11957 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11958 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
11959 *) XGETTEXT_015=$XGETTEXT ;;
11964 # Prepare PATH_SEPARATOR.
11965 # The user is always right.
11966 if test "${PATH_SEPARATOR+set}" != set; then
11967 echo "#! /bin/sh" >conf$$.sh
11968 echo "exit 0" >>conf$$.sh
11970 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11978 # Find out how to test for executable files. Don't use a zero-byte file,
11979 # as systems may use methods other than mode bits to determine executability.
11980 cat >conf$$.file <<_ASEOF
11984 chmod +x conf$$.file
11985 if test -x conf$$.file >/dev/null 2>&1; then
11986 ac_executable_p="test -x"
11988 ac_executable_p="test -f"
11992 # Extract the first word of "msgmerge", so it can be a program name with args.
11993 set dummy msgmerge; ac_word=$2
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11995 $as_echo_n "checking for $ac_word... " >&6; }
11996 if ${ac_cv_path_MSGMERGE+:} false; then :
11997 $as_echo_n "(cached) " >&6
11999 case "$MSGMERGE" in
12001 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12004 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12005 for ac_dir in $PATH; do
12007 test -z "$ac_dir" && ac_dir=.
12008 for ac_exec_ext in '' $ac_executable_extensions; do
12009 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12010 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12011 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12012 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12019 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12023 MSGMERGE="$ac_cv_path_MSGMERGE"
12024 if test "$MSGMERGE" != ":"; then
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12026 $as_echo "$MSGMERGE" >&6; }
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029 $as_echo "no" >&6; }
12033 test -n "$localedir" || localedir='${datadir}/locale'
12036 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12039 ac_config_commands="$ac_config_commands po-directories"
12043 if test "X$prefix" = "XNONE"; then
12044 acl_final_prefix="$ac_default_prefix"
12046 acl_final_prefix="$prefix"
12048 if test "X$exec_prefix" = "XNONE"; then
12049 acl_final_exec_prefix='${prefix}'
12051 acl_final_exec_prefix="$exec_prefix"
12053 acl_save_prefix="$prefix"
12054 prefix="$acl_final_prefix"
12055 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12056 prefix="$acl_save_prefix"
12059 # Check whether --with-gnu-ld was given.
12060 if test "${with_gnu_ld+set}" = set; then :
12061 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12066 # Prepare PATH_SEPARATOR.
12067 # The user is always right.
12068 if test "${PATH_SEPARATOR+set}" != set; then
12069 echo "#! /bin/sh" >conf$$.sh
12070 echo "exit 0" >>conf$$.sh
12072 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12080 if test "$GCC" = yes; then
12081 # Check if gcc -print-prog-name=ld gives a path.
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12083 $as_echo_n "checking for ld used by GCC... " >&6; }
12086 # gcc leaves a trailing carriage return which upsets mingw
12087 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12089 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12092 # Accept absolute paths.
12093 [\\/]* | [A-Za-z]:[\\/]*)
12094 re_direlt='/[^/][^/]*/\.\./'
12095 # Canonicalize the path of ld
12096 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12097 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12098 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12100 test -z "$LD" && LD="$ac_prog"
12103 # If it fails, then pretend we aren't using GCC.
12107 # If it is relative, then search for the first ld in PATH.
12108 with_gnu_ld=unknown
12111 elif test "$with_gnu_ld" = yes; then
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12113 $as_echo_n "checking for GNU ld... " >&6; }
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12116 $as_echo_n "checking for non-GNU ld... " >&6; }
12118 if ${acl_cv_path_LD+:} false; then :
12119 $as_echo_n "(cached) " >&6
12121 if test -z "$LD"; then
12122 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12123 for ac_dir in $PATH; do
12124 test -z "$ac_dir" && ac_dir=.
12125 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12126 acl_cv_path_LD="$ac_dir/$ac_prog"
12127 # Check to see if the program is GNU ld. I'd rather use --version,
12128 # but apparently some GNU ld's only accept -v.
12129 # Break only if it was the GNU/non-GNU ld that we prefer.
12130 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12131 *GNU* | *'with BFD'*)
12132 test "$with_gnu_ld" != no && break ;;
12134 test "$with_gnu_ld" != yes && break ;;
12140 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12144 LD="$acl_cv_path_LD"
12145 if test -n "$LD"; then
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12147 $as_echo "$LD" >&6; }
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12152 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12154 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12155 if ${acl_cv_prog_gnu_ld+:} false; then :
12156 $as_echo_n "(cached) " >&6
12158 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12159 case `$LD -v 2>&1 </dev/null` in
12160 *GNU* | *'with BFD'*)
12161 acl_cv_prog_gnu_ld=yes ;;
12163 acl_cv_prog_gnu_ld=no ;;
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12167 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12168 with_gnu_ld=$acl_cv_prog_gnu_ld
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12174 $as_echo_n "checking for shared library run path origin... " >&6; }
12175 if ${acl_cv_rpath+:} false; then :
12176 $as_echo_n "(cached) " >&6
12179 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12180 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12182 rm -f ./conftest.sh
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12187 $as_echo "$acl_cv_rpath" >&6; }
12189 acl_libext="$acl_cv_libext"
12190 acl_shlibext="$acl_cv_shlibext"
12191 acl_libname_spec="$acl_cv_libname_spec"
12192 acl_library_names_spec="$acl_cv_library_names_spec"
12193 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12194 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12195 acl_hardcode_direct="$acl_cv_hardcode_direct"
12196 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12197 # Check whether --enable-rpath was given.
12198 if test "${enable_rpath+set}" = set; then :
12199 enableval=$enable_rpath; :
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12212 $as_echo_n "checking for 64-bit host... " >&6; }
12213 if ${gl_cv_solaris_64bit+:} false; then :
12214 $as_echo_n "(cached) " >&6
12216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h. */
12224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12225 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12226 gl_cv_solaris_64bit=yes
12228 gl_cv_solaris_64bit=no
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12235 $as_echo "$gl_cv_solaris_64bit" >&6; }
12236 if test $gl_cv_solaris_64bit = yes; then
12237 acl_libdirstem=lib/64
12238 case "$host_cpu" in
12239 sparc*) acl_libdirstem2=lib/sparcv9 ;;
12240 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12245 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12246 if test -n "$searchpath"; then
12247 acl_save_IFS="${IFS= }"; IFS=":"
12248 for searchdir in $searchpath; do
12249 if test -d "$searchdir"; then
12250 case "$searchdir" in
12251 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12253 # Better ignore directories of this form. They are misleading.
12255 *) searchdir=`cd "$searchdir" && pwd`
12256 case "$searchdir" in
12257 */lib64 ) acl_libdirstem=lib64 ;;
12262 IFS="$acl_save_IFS"
12266 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12281 acl_save_prefix="$prefix"
12282 prefix="$acl_final_prefix"
12283 acl_save_exec_prefix="$exec_prefix"
12284 exec_prefix="$acl_final_exec_prefix"
12286 eval additional_includedir=\"$includedir\"
12287 eval additional_libdir=\"$libdir\"
12289 exec_prefix="$acl_save_exec_prefix"
12290 prefix="$acl_save_prefix"
12293 # Check whether --with-libiconv-prefix was given.
12294 if test "${with_libiconv_prefix+set}" = set; then :
12295 withval=$with_libiconv_prefix;
12296 if test "X$withval" = "Xno"; then
12299 if test "X$withval" = "X"; then
12301 acl_save_prefix="$prefix"
12302 prefix="$acl_final_prefix"
12303 acl_save_exec_prefix="$exec_prefix"
12304 exec_prefix="$acl_final_exec_prefix"
12306 eval additional_includedir=\"$includedir\"
12307 eval additional_libdir=\"$libdir\"
12309 exec_prefix="$acl_save_exec_prefix"
12310 prefix="$acl_save_prefix"
12313 additional_includedir="$withval/include"
12314 additional_libdir="$withval/$acl_libdirstem"
12315 if test "$acl_libdirstem2" != "$acl_libdirstem" \
12316 && ! test -d "$withval/$acl_libdirstem"; then
12317 additional_libdir="$withval/$acl_libdirstem2"
12331 names_already_handled=
12332 names_next_round='iconv '
12333 while test -n "$names_next_round"; do
12334 names_this_round="$names_next_round"
12336 for name in $names_this_round; do
12338 for n in $names_already_handled; do
12339 if test "$n" = "$name"; then
12340 already_handled=yes
12344 if test -z "$already_handled"; then
12345 names_already_handled="$names_already_handled $name"
12346 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12347 eval value=\"\$HAVE_LIB$uppername\"
12348 if test -n "$value"; then
12349 if test "$value" = yes; then
12350 eval value=\"\$LIB$uppername\"
12351 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12352 eval value=\"\$LTLIB$uppername\"
12353 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12362 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12363 if test -n "$acl_shlibext"; then
12364 shrext=".$acl_shlibext" # typically: shrext=.so
12368 if test $use_additional = yes; then
12369 dir="$additional_libdir"
12370 if test -n "$acl_shlibext"; then
12371 if test -f "$dir/$libname$shrext"; then
12373 found_so="$dir/$libname$shrext"
12375 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12376 ver=`(cd "$dir" && \
12377 for f in "$libname$shrext".*; do echo "$f"; done \
12378 | sed -e "s,^$libname$shrext\\\\.,," \
12379 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12380 | sed 1q ) 2>/dev/null`
12381 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12383 found_so="$dir/$libname$shrext.$ver"
12386 eval library_names=\"$acl_library_names_spec\"
12387 for f in $library_names; do
12388 if test -f "$dir/$f"; then
12397 if test "X$found_dir" = "X"; then
12398 if test -f "$dir/$libname.$acl_libext"; then
12400 found_a="$dir/$libname.$acl_libext"
12403 if test "X$found_dir" != "X"; then
12404 if test -f "$dir/$libname.la"; then
12405 found_la="$dir/$libname.la"
12409 if test "X$found_dir" = "X"; then
12410 for x in $LDFLAGS $LTLIBICONV; do
12412 acl_save_prefix="$prefix"
12413 prefix="$acl_final_prefix"
12414 acl_save_exec_prefix="$exec_prefix"
12415 exec_prefix="$acl_final_exec_prefix"
12417 exec_prefix="$acl_save_exec_prefix"
12418 prefix="$acl_save_prefix"
12422 dir=`echo "X$x" | sed -e 's/^X-L//'`
12423 if test -n "$acl_shlibext"; then
12424 if test -f "$dir/$libname$shrext"; then
12426 found_so="$dir/$libname$shrext"
12428 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12429 ver=`(cd "$dir" && \
12430 for f in "$libname$shrext".*; do echo "$f"; done \
12431 | sed -e "s,^$libname$shrext\\\\.,," \
12432 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12433 | sed 1q ) 2>/dev/null`
12434 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12436 found_so="$dir/$libname$shrext.$ver"
12439 eval library_names=\"$acl_library_names_spec\"
12440 for f in $library_names; do
12441 if test -f "$dir/$f"; then
12450 if test "X$found_dir" = "X"; then
12451 if test -f "$dir/$libname.$acl_libext"; then
12453 found_a="$dir/$libname.$acl_libext"
12456 if test "X$found_dir" != "X"; then
12457 if test -f "$dir/$libname.la"; then
12458 found_la="$dir/$libname.la"
12463 if test "X$found_dir" != "X"; then
12468 if test "X$found_dir" != "X"; then
12469 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12470 if test "X$found_so" != "X"; then
12471 if test "$enable_rpath" = no \
12472 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12473 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12474 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12477 for x in $ltrpathdirs; do
12478 if test "X$x" = "X$found_dir"; then
12483 if test -z "$haveit"; then
12484 ltrpathdirs="$ltrpathdirs $found_dir"
12486 if test "$acl_hardcode_direct" = yes; then
12487 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12489 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12490 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12492 for x in $rpathdirs; do
12493 if test "X$x" = "X$found_dir"; then
12498 if test -z "$haveit"; then
12499 rpathdirs="$rpathdirs $found_dir"
12503 for x in $LDFLAGS $LIBICONV; do
12505 acl_save_prefix="$prefix"
12506 prefix="$acl_final_prefix"
12507 acl_save_exec_prefix="$exec_prefix"
12508 exec_prefix="$acl_final_exec_prefix"
12510 exec_prefix="$acl_save_exec_prefix"
12511 prefix="$acl_save_prefix"
12513 if test "X$x" = "X-L$found_dir"; then
12518 if test -z "$haveit"; then
12519 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12521 if test "$acl_hardcode_minus_L" != no; then
12522 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12524 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12530 if test "X$found_a" != "X"; then
12531 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12533 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12536 additional_includedir=
12537 case "$found_dir" in
12538 */$acl_libdirstem | */$acl_libdirstem/)
12539 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12540 if test "$name" = 'iconv'; then
12541 LIBICONV_PREFIX="$basedir"
12543 additional_includedir="$basedir/include"
12545 */$acl_libdirstem2 | */$acl_libdirstem2/)
12546 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12547 if test "$name" = 'iconv'; then
12548 LIBICONV_PREFIX="$basedir"
12550 additional_includedir="$basedir/include"
12553 if test "X$additional_includedir" != "X"; then
12554 if test "X$additional_includedir" != "X/usr/include"; then
12556 if test "X$additional_includedir" = "X/usr/local/include"; then
12557 if test -n "$GCC"; then
12559 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12563 if test -z "$haveit"; then
12564 for x in $CPPFLAGS $INCICONV; do
12566 acl_save_prefix="$prefix"
12567 prefix="$acl_final_prefix"
12568 acl_save_exec_prefix="$exec_prefix"
12569 exec_prefix="$acl_final_exec_prefix"
12571 exec_prefix="$acl_save_exec_prefix"
12572 prefix="$acl_save_prefix"
12574 if test "X$x" = "X-I$additional_includedir"; then
12579 if test -z "$haveit"; then
12580 if test -d "$additional_includedir"; then
12581 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12587 if test -n "$found_la"; then
12588 save_libdir="$libdir"
12589 case "$found_la" in
12590 */* | *\\*) . "$found_la" ;;
12591 *) . "./$found_la" ;;
12593 libdir="$save_libdir"
12594 for dep in $dependency_libs; do
12597 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12598 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12599 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12601 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12602 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12603 if test -n "$GCC"; then
12605 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12609 if test -z "$haveit"; then
12611 for x in $LDFLAGS $LIBICONV; do
12613 acl_save_prefix="$prefix"
12614 prefix="$acl_final_prefix"
12615 acl_save_exec_prefix="$exec_prefix"
12616 exec_prefix="$acl_final_exec_prefix"
12618 exec_prefix="$acl_save_exec_prefix"
12619 prefix="$acl_save_prefix"
12621 if test "X$x" = "X-L$additional_libdir"; then
12626 if test -z "$haveit"; then
12627 if test -d "$additional_libdir"; then
12628 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12632 for x in $LDFLAGS $LTLIBICONV; do
12634 acl_save_prefix="$prefix"
12635 prefix="$acl_final_prefix"
12636 acl_save_exec_prefix="$exec_prefix"
12637 exec_prefix="$acl_final_exec_prefix"
12639 exec_prefix="$acl_save_exec_prefix"
12640 prefix="$acl_save_prefix"
12642 if test "X$x" = "X-L$additional_libdir"; then
12647 if test -z "$haveit"; then
12648 if test -d "$additional_libdir"; then
12649 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12656 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12657 if test "$enable_rpath" != no; then
12659 for x in $rpathdirs; do
12660 if test "X$x" = "X$dir"; then
12665 if test -z "$haveit"; then
12666 rpathdirs="$rpathdirs $dir"
12669 for x in $ltrpathdirs; do
12670 if test "X$x" = "X$dir"; then
12675 if test -z "$haveit"; then
12676 ltrpathdirs="$ltrpathdirs $dir"
12681 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12684 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12687 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12688 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12694 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12695 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12701 if test "X$rpathdirs" != "X"; then
12702 if test -n "$acl_hardcode_libdir_separator"; then
12704 for found_dir in $rpathdirs; do
12705 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12707 acl_save_libdir="$libdir"
12709 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12710 libdir="$acl_save_libdir"
12711 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12713 for found_dir in $rpathdirs; do
12714 acl_save_libdir="$libdir"
12715 libdir="$found_dir"
12716 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12717 libdir="$acl_save_libdir"
12718 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12722 if test "X$ltrpathdirs" != "X"; then
12723 for found_dir in $ltrpathdirs; do
12724 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12759 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12760 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12761 $as_echo_n "(cached) " >&6
12763 gt_save_LIBS="$LIBS"
12764 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766 /* end confdefs.h. */
12767 #include <CoreFoundation/CFPreferences.h>
12771 CFPreferencesCopyAppValue(NULL, NULL)
12776 if ac_fn_c_try_link "$LINENO"; then :
12777 gt_cv_func_CFPreferencesCopyAppValue=yes
12779 gt_cv_func_CFPreferencesCopyAppValue=no
12781 rm -f core conftest.err conftest.$ac_objext \
12782 conftest$ac_exeext conftest.$ac_ext
12783 LIBS="$gt_save_LIBS"
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12786 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12787 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12789 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12793 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12794 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
12795 $as_echo_n "(cached) " >&6
12797 gt_save_LIBS="$LIBS"
12798 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h. */
12801 #include <CoreFoundation/CFLocale.h>
12805 CFLocaleCopyCurrent();
12810 if ac_fn_c_try_link "$LINENO"; then :
12811 gt_cv_func_CFLocaleCopyCurrent=yes
12813 gt_cv_func_CFLocaleCopyCurrent=no
12815 rm -f core conftest.err conftest.$ac_objext \
12816 conftest$ac_exeext conftest.$ac_ext
12817 LIBS="$gt_save_LIBS"
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12820 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12821 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12823 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12827 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12828 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12840 case " $gt_needs " in
12841 *" need-formatstring-macros "*) gt_api_version=3 ;;
12842 *" need-ngettext "*) gt_api_version=2 ;;
12843 *) gt_api_version=1 ;;
12845 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12846 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12848 if test "$USE_NLS" = "yes"; then
12849 gt_use_preinstalled_gnugettext=no
12852 if test $gt_api_version -ge 3; then
12853 gt_revision_test_code='
12854 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12855 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12857 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12860 gt_revision_test_code=
12862 if test $gt_api_version -ge 2; then
12863 gt_expression_test_code=' + * ngettext ("", "", 0)'
12865 gt_expression_test_code=
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12869 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12870 if eval \${$gt_func_gnugettext_libc+:} false; then :
12871 $as_echo_n "(cached) " >&6
12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 /* end confdefs.h. */
12875 #include <libintl.h>
12876 $gt_revision_test_code
12877 extern int _nl_msg_cat_cntr;
12878 extern int *_nl_domain_bindings;
12882 bindtextdomain ("", "");
12883 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
12888 if ac_fn_c_try_link "$LINENO"; then :
12889 eval "$gt_func_gnugettext_libc=yes"
12891 eval "$gt_func_gnugettext_libc=no"
12893 rm -f core conftest.err conftest.$ac_objext \
12894 conftest$ac_exeext conftest.$ac_ext
12896 eval ac_res=\$$gt_func_gnugettext_libc
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12898 $as_echo "$ac_res" >&6; }
12900 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12906 am_save_CPPFLAGS="$CPPFLAGS"
12908 for element in $INCICONV; do
12910 for x in $CPPFLAGS; do
12912 acl_save_prefix="$prefix"
12913 prefix="$acl_final_prefix"
12914 acl_save_exec_prefix="$exec_prefix"
12915 exec_prefix="$acl_final_exec_prefix"
12917 exec_prefix="$acl_save_exec_prefix"
12918 prefix="$acl_save_prefix"
12920 if test "X$x" = "X$element"; then
12925 if test -z "$haveit"; then
12926 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12932 $as_echo_n "checking for iconv... " >&6; }
12933 if ${am_cv_func_iconv+:} false; then :
12934 $as_echo_n "(cached) " >&6
12937 am_cv_func_iconv="no, consider installing GNU libiconv"
12939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940 /* end confdefs.h. */
12941 #include <stdlib.h>
12946 iconv_t cd = iconv_open("","");
12947 iconv(cd,NULL,NULL,NULL,NULL);
12953 if ac_fn_c_try_link "$LINENO"; then :
12954 am_cv_func_iconv=yes
12956 rm -f core conftest.err conftest.$ac_objext \
12957 conftest$ac_exeext conftest.$ac_ext
12958 if test "$am_cv_func_iconv" != yes; then
12959 am_save_LIBS="$LIBS"
12960 LIBS="$LIBS $LIBICONV"
12961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12962 /* end confdefs.h. */
12963 #include <stdlib.h>
12968 iconv_t cd = iconv_open("","");
12969 iconv(cd,NULL,NULL,NULL,NULL);
12975 if ac_fn_c_try_link "$LINENO"; then :
12976 am_cv_lib_iconv=yes
12977 am_cv_func_iconv=yes
12979 rm -f core conftest.err conftest.$ac_objext \
12980 conftest$ac_exeext conftest.$ac_ext
12981 LIBS="$am_save_LIBS"
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12986 $as_echo "$am_cv_func_iconv" >&6; }
12987 if test "$am_cv_func_iconv" = yes; then
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12989 $as_echo_n "checking for working iconv... " >&6; }
12990 if ${am_cv_func_iconv_works+:} false; then :
12991 $as_echo_n "(cached) " >&6
12994 am_save_LIBS="$LIBS"
12995 if test $am_cv_lib_iconv = yes; then
12996 LIBS="$LIBS $LIBICONV"
12998 if test "$cross_compiling" = yes; then :
13000 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13001 *) am_cv_func_iconv_works="guessing yes" ;;
13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h. */
13008 #include <string.h>
13011 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13014 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13015 if (cd_utf8_to_88591 != (iconv_t)(-1))
13017 static const char input[] = "\342\202\254"; /* EURO SIGN */
13019 const char *inptr = input;
13020 size_t inbytesleft = strlen (input);
13021 char *outptr = buf;
13022 size_t outbytesleft = sizeof (buf);
13023 size_t res = iconv (cd_utf8_to_88591,
13024 (char **) &inptr, &inbytesleft,
13025 &outptr, &outbytesleft);
13030 /* Test against Solaris 10 bug: Failures are not distinguishable from
13031 successful returns. */
13033 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13034 if (cd_ascii_to_88591 != (iconv_t)(-1))
13036 static const char input[] = "\263";
13038 const char *inptr = input;
13039 size_t inbytesleft = strlen (input);
13040 char *outptr = buf;
13041 size_t outbytesleft = sizeof (buf);
13042 size_t res = iconv (cd_ascii_to_88591,
13043 (char **) &inptr, &inbytesleft,
13044 &outptr, &outbytesleft);
13049 #if 0 /* This bug could be worked around by the caller. */
13050 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
13052 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13053 if (cd_88591_to_utf8 != (iconv_t)(-1))
13055 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13057 const char *inptr = input;
13058 size_t inbytesleft = strlen (input);
13059 char *outptr = buf;
13060 size_t outbytesleft = sizeof (buf);
13061 size_t res = iconv (cd_88591_to_utf8,
13062 (char **) &inptr, &inbytesleft,
13063 &outptr, &outbytesleft);
13069 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13071 if (/* Try standardized names. */
13072 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13073 /* Try IRIX, OSF/1 names. */
13074 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13075 /* Try AIX names. */
13076 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13077 /* Try HP-UX names. */
13078 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13083 if ac_fn_c_try_run "$LINENO"; then :
13084 am_cv_func_iconv_works=yes
13086 am_cv_func_iconv_works=no
13088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13089 conftest.$ac_objext conftest.beam conftest.$ac_ext
13092 LIBS="$am_save_LIBS"
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13096 $as_echo "$am_cv_func_iconv_works" >&6; }
13097 case "$am_cv_func_iconv_works" in
13098 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13099 *) am_func_iconv=yes ;;
13102 am_func_iconv=no am_cv_lib_iconv=no
13104 if test "$am_func_iconv" = yes; then
13106 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13109 if test "$am_cv_lib_iconv" = yes; then
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13111 $as_echo_n "checking how to link with libiconv... " >&6; }
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13113 $as_echo "$LIBICONV" >&6; }
13115 CPPFLAGS="$am_save_CPPFLAGS"
13132 acl_save_prefix="$prefix"
13133 prefix="$acl_final_prefix"
13134 acl_save_exec_prefix="$exec_prefix"
13135 exec_prefix="$acl_final_exec_prefix"
13137 eval additional_includedir=\"$includedir\"
13138 eval additional_libdir=\"$libdir\"
13140 exec_prefix="$acl_save_exec_prefix"
13141 prefix="$acl_save_prefix"
13144 # Check whether --with-libintl-prefix was given.
13145 if test "${with_libintl_prefix+set}" = set; then :
13146 withval=$with_libintl_prefix;
13147 if test "X$withval" = "Xno"; then
13150 if test "X$withval" = "X"; then
13152 acl_save_prefix="$prefix"
13153 prefix="$acl_final_prefix"
13154 acl_save_exec_prefix="$exec_prefix"
13155 exec_prefix="$acl_final_exec_prefix"
13157 eval additional_includedir=\"$includedir\"
13158 eval additional_libdir=\"$libdir\"
13160 exec_prefix="$acl_save_exec_prefix"
13161 prefix="$acl_save_prefix"
13164 additional_includedir="$withval/include"
13165 additional_libdir="$withval/$acl_libdirstem"
13166 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13167 && ! test -d "$withval/$acl_libdirstem"; then
13168 additional_libdir="$withval/$acl_libdirstem2"
13182 names_already_handled=
13183 names_next_round='intl '
13184 while test -n "$names_next_round"; do
13185 names_this_round="$names_next_round"
13187 for name in $names_this_round; do
13189 for n in $names_already_handled; do
13190 if test "$n" = "$name"; then
13191 already_handled=yes
13195 if test -z "$already_handled"; then
13196 names_already_handled="$names_already_handled $name"
13197 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13198 eval value=\"\$HAVE_LIB$uppername\"
13199 if test -n "$value"; then
13200 if test "$value" = yes; then
13201 eval value=\"\$LIB$uppername\"
13202 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13203 eval value=\"\$LTLIB$uppername\"
13204 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13213 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13214 if test -n "$acl_shlibext"; then
13215 shrext=".$acl_shlibext" # typically: shrext=.so
13219 if test $use_additional = yes; then
13220 dir="$additional_libdir"
13221 if test -n "$acl_shlibext"; then
13222 if test -f "$dir/$libname$shrext"; then
13224 found_so="$dir/$libname$shrext"
13226 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13227 ver=`(cd "$dir" && \
13228 for f in "$libname$shrext".*; do echo "$f"; done \
13229 | sed -e "s,^$libname$shrext\\\\.,," \
13230 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13231 | sed 1q ) 2>/dev/null`
13232 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13234 found_so="$dir/$libname$shrext.$ver"
13237 eval library_names=\"$acl_library_names_spec\"
13238 for f in $library_names; do
13239 if test -f "$dir/$f"; then
13248 if test "X$found_dir" = "X"; then
13249 if test -f "$dir/$libname.$acl_libext"; then
13251 found_a="$dir/$libname.$acl_libext"
13254 if test "X$found_dir" != "X"; then
13255 if test -f "$dir/$libname.la"; then
13256 found_la="$dir/$libname.la"
13260 if test "X$found_dir" = "X"; then
13261 for x in $LDFLAGS $LTLIBINTL; do
13263 acl_save_prefix="$prefix"
13264 prefix="$acl_final_prefix"
13265 acl_save_exec_prefix="$exec_prefix"
13266 exec_prefix="$acl_final_exec_prefix"
13268 exec_prefix="$acl_save_exec_prefix"
13269 prefix="$acl_save_prefix"
13273 dir=`echo "X$x" | sed -e 's/^X-L//'`
13274 if test -n "$acl_shlibext"; then
13275 if test -f "$dir/$libname$shrext"; then
13277 found_so="$dir/$libname$shrext"
13279 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13280 ver=`(cd "$dir" && \
13281 for f in "$libname$shrext".*; do echo "$f"; done \
13282 | sed -e "s,^$libname$shrext\\\\.,," \
13283 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13284 | sed 1q ) 2>/dev/null`
13285 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13287 found_so="$dir/$libname$shrext.$ver"
13290 eval library_names=\"$acl_library_names_spec\"
13291 for f in $library_names; do
13292 if test -f "$dir/$f"; then
13301 if test "X$found_dir" = "X"; then
13302 if test -f "$dir/$libname.$acl_libext"; then
13304 found_a="$dir/$libname.$acl_libext"
13307 if test "X$found_dir" != "X"; then
13308 if test -f "$dir/$libname.la"; then
13309 found_la="$dir/$libname.la"
13314 if test "X$found_dir" != "X"; then
13319 if test "X$found_dir" != "X"; then
13320 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13321 if test "X$found_so" != "X"; then
13322 if test "$enable_rpath" = no \
13323 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13324 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13325 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13328 for x in $ltrpathdirs; do
13329 if test "X$x" = "X$found_dir"; then
13334 if test -z "$haveit"; then
13335 ltrpathdirs="$ltrpathdirs $found_dir"
13337 if test "$acl_hardcode_direct" = yes; then
13338 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13340 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13341 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13343 for x in $rpathdirs; do
13344 if test "X$x" = "X$found_dir"; then
13349 if test -z "$haveit"; then
13350 rpathdirs="$rpathdirs $found_dir"
13354 for x in $LDFLAGS $LIBINTL; do
13356 acl_save_prefix="$prefix"
13357 prefix="$acl_final_prefix"
13358 acl_save_exec_prefix="$exec_prefix"
13359 exec_prefix="$acl_final_exec_prefix"
13361 exec_prefix="$acl_save_exec_prefix"
13362 prefix="$acl_save_prefix"
13364 if test "X$x" = "X-L$found_dir"; then
13369 if test -z "$haveit"; then
13370 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13372 if test "$acl_hardcode_minus_L" != no; then
13373 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13375 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13381 if test "X$found_a" != "X"; then
13382 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13384 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13387 additional_includedir=
13388 case "$found_dir" in
13389 */$acl_libdirstem | */$acl_libdirstem/)
13390 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13391 if test "$name" = 'intl'; then
13392 LIBINTL_PREFIX="$basedir"
13394 additional_includedir="$basedir/include"
13396 */$acl_libdirstem2 | */$acl_libdirstem2/)
13397 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13398 if test "$name" = 'intl'; then
13399 LIBINTL_PREFIX="$basedir"
13401 additional_includedir="$basedir/include"
13404 if test "X$additional_includedir" != "X"; then
13405 if test "X$additional_includedir" != "X/usr/include"; then
13407 if test "X$additional_includedir" = "X/usr/local/include"; then
13408 if test -n "$GCC"; then
13410 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13414 if test -z "$haveit"; then
13415 for x in $CPPFLAGS $INCINTL; do
13417 acl_save_prefix="$prefix"
13418 prefix="$acl_final_prefix"
13419 acl_save_exec_prefix="$exec_prefix"
13420 exec_prefix="$acl_final_exec_prefix"
13422 exec_prefix="$acl_save_exec_prefix"
13423 prefix="$acl_save_prefix"
13425 if test "X$x" = "X-I$additional_includedir"; then
13430 if test -z "$haveit"; then
13431 if test -d "$additional_includedir"; then
13432 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13438 if test -n "$found_la"; then
13439 save_libdir="$libdir"
13440 case "$found_la" in
13441 */* | *\\*) . "$found_la" ;;
13442 *) . "./$found_la" ;;
13444 libdir="$save_libdir"
13445 for dep in $dependency_libs; do
13448 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13449 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13450 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13452 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13453 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13454 if test -n "$GCC"; then
13456 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13460 if test -z "$haveit"; then
13462 for x in $LDFLAGS $LIBINTL; do
13464 acl_save_prefix="$prefix"
13465 prefix="$acl_final_prefix"
13466 acl_save_exec_prefix="$exec_prefix"
13467 exec_prefix="$acl_final_exec_prefix"
13469 exec_prefix="$acl_save_exec_prefix"
13470 prefix="$acl_save_prefix"
13472 if test "X$x" = "X-L$additional_libdir"; then
13477 if test -z "$haveit"; then
13478 if test -d "$additional_libdir"; then
13479 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13483 for x in $LDFLAGS $LTLIBINTL; do
13485 acl_save_prefix="$prefix"
13486 prefix="$acl_final_prefix"
13487 acl_save_exec_prefix="$exec_prefix"
13488 exec_prefix="$acl_final_exec_prefix"
13490 exec_prefix="$acl_save_exec_prefix"
13491 prefix="$acl_save_prefix"
13493 if test "X$x" = "X-L$additional_libdir"; then
13498 if test -z "$haveit"; then
13499 if test -d "$additional_libdir"; then
13500 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13507 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13508 if test "$enable_rpath" != no; then
13510 for x in $rpathdirs; do
13511 if test "X$x" = "X$dir"; then
13516 if test -z "$haveit"; then
13517 rpathdirs="$rpathdirs $dir"
13520 for x in $ltrpathdirs; do
13521 if test "X$x" = "X$dir"; then
13526 if test -z "$haveit"; then
13527 ltrpathdirs="$ltrpathdirs $dir"
13532 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13535 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13538 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13539 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13545 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13546 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13552 if test "X$rpathdirs" != "X"; then
13553 if test -n "$acl_hardcode_libdir_separator"; then
13555 for found_dir in $rpathdirs; do
13556 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13558 acl_save_libdir="$libdir"
13560 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13561 libdir="$acl_save_libdir"
13562 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13564 for found_dir in $rpathdirs; do
13565 acl_save_libdir="$libdir"
13566 libdir="$found_dir"
13567 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13568 libdir="$acl_save_libdir"
13569 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13573 if test "X$ltrpathdirs" != "X"; then
13574 for found_dir in $ltrpathdirs; do
13575 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13585 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13586 if eval \${$gt_func_gnugettext_libintl+:} false; then :
13587 $as_echo_n "(cached) " >&6
13589 gt_save_CPPFLAGS="$CPPFLAGS"
13590 CPPFLAGS="$CPPFLAGS $INCINTL"
13591 gt_save_LIBS="$LIBS"
13592 LIBS="$LIBS $LIBINTL"
13593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13594 /* end confdefs.h. */
13595 #include <libintl.h>
13596 $gt_revision_test_code
13597 extern int _nl_msg_cat_cntr;
13602 const char *_nl_expand_alias (const char *);
13606 bindtextdomain ("", "");
13607 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13612 if ac_fn_c_try_link "$LINENO"; then :
13613 eval "$gt_func_gnugettext_libintl=yes"
13615 eval "$gt_func_gnugettext_libintl=no"
13617 rm -f core conftest.err conftest.$ac_objext \
13618 conftest$ac_exeext conftest.$ac_ext
13619 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13620 LIBS="$LIBS $LIBICONV"
13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h. */
13623 #include <libintl.h>
13624 $gt_revision_test_code
13625 extern int _nl_msg_cat_cntr;
13630 const char *_nl_expand_alias (const char *);
13634 bindtextdomain ("", "");
13635 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13640 if ac_fn_c_try_link "$LINENO"; then :
13641 LIBINTL="$LIBINTL $LIBICONV"
13642 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13643 eval "$gt_func_gnugettext_libintl=yes"
13646 rm -f core conftest.err conftest.$ac_objext \
13647 conftest$ac_exeext conftest.$ac_ext
13649 CPPFLAGS="$gt_save_CPPFLAGS"
13650 LIBS="$gt_save_LIBS"
13652 eval ac_res=\$$gt_func_gnugettext_libintl
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13654 $as_echo "$ac_res" >&6; }
13657 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13658 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13659 && test "$PACKAGE" != gettext-runtime \
13660 && test "$PACKAGE" != gettext-tools; }; then
13661 gt_use_preinstalled_gnugettext=yes
13670 if test -n "$INTL_MACOSX_LIBS"; then
13671 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13672 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13673 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13674 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13678 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13679 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13681 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13689 $as_echo_n "checking whether to use NLS... " >&6; }
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13691 $as_echo "$USE_NLS" >&6; }
13692 if test "$USE_NLS" = "yes"; then
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13694 $as_echo_n "checking where the gettext function comes from... " >&6; }
13695 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13696 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13697 gt_source="external libintl"
13702 gt_source="included intl directory"
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13705 $as_echo "$gt_source" >&6; }
13708 if test "$USE_NLS" = "yes"; then
13710 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13711 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13713 $as_echo_n "checking how to link with libintl... " >&6; }
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13715 $as_echo "$LIBINTL" >&6; }
13717 for element in $INCINTL; do
13719 for x in $CPPFLAGS; do
13721 acl_save_prefix="$prefix"
13722 prefix="$acl_final_prefix"
13723 acl_save_exec_prefix="$exec_prefix"
13724 exec_prefix="$acl_final_exec_prefix"
13726 exec_prefix="$acl_save_exec_prefix"
13727 prefix="$acl_save_prefix"
13729 if test "X$x" = "X$element"; then
13734 if test -z "$haveit"; then
13735 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13742 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13745 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13754 INTLLIBS="$LIBINTL"
13762 for ac_prog in 'bison -y' byacc
13764 # Extract the first word of "$ac_prog", so it can be a program name with args.
13765 set dummy $ac_prog; ac_word=$2
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13767 $as_echo_n "checking for $ac_word... " >&6; }
13768 if ${ac_cv_prog_YACC+:} false; then :
13769 $as_echo_n "(cached) " >&6
13771 if test -n "$YACC"; then
13772 ac_cv_prog_YACC="$YACC" # Let the user override the test.
13774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13775 for as_dir in $PATH
13778 test -z "$as_dir" && as_dir=.
13779 for ac_exec_ext in '' $ac_executable_extensions; do
13780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13781 ac_cv_prog_YACC="$ac_prog"
13782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13791 YACC=$ac_cv_prog_YACC
13792 if test -n "$YACC"; then
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13794 $as_echo "$YACC" >&6; }
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13797 $as_echo "no" >&6; }
13801 test -n "$YACC" && break
13803 test -n "$YACC" || YACC="yacc"
13805 if test "$YACC" != 'bison -y'; then :
13807 YACC="\${top_srcdir}/build-aux/missing bison -y"
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: no bison program found: only required for maintainers" >&5
13809 $as_echo "$as_me: no bison program found: only required for maintainers" >&6;}
13812 if test "$YACC" = 'bison -y'; then
13814 HAVE_BISON_FALSE='#'
13816 HAVE_BISON_TRUE='#'
13820 for ac_prog in flex lex
13822 # Extract the first word of "$ac_prog", so it can be a program name with args.
13823 set dummy $ac_prog; ac_word=$2
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13825 $as_echo_n "checking for $ac_word... " >&6; }
13826 if ${ac_cv_prog_LEX+:} false; then :
13827 $as_echo_n "(cached) " >&6
13829 if test -n "$LEX"; then
13830 ac_cv_prog_LEX="$LEX" # Let the user override the test.
13832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13833 for as_dir in $PATH
13836 test -z "$as_dir" && as_dir=.
13837 for ac_exec_ext in '' $ac_executable_extensions; do
13838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13839 ac_cv_prog_LEX="$ac_prog"
13840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13849 LEX=$ac_cv_prog_LEX
13850 if test -n "$LEX"; then
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
13852 $as_echo "$LEX" >&6; }
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13855 $as_echo "no" >&6; }
13859 test -n "$LEX" && break
13861 test -n "$LEX" || LEX=":"
13863 if test "x$LEX" != "x:"; then
13864 cat >conftest.l <<_ACEOF
13870 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
13871 yyless ((input () != 0)); }
13872 f { unput (yytext[0]); }
13873 . { BEGIN INITIAL; }
13875 #ifdef YYTEXT_POINTER
13876 extern char *yytext;
13881 return ! yylex () + ! yywrap ();
13884 { { ac_try="$LEX conftest.l"
13885 case "(($ac_try" in
13886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13887 *) ac_try_echo=$ac_try;;
13889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13890 $as_echo "$ac_try_echo"; } >&5
13891 (eval "$LEX conftest.l") 2>&5
13893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13894 test $ac_status = 0; }
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
13896 $as_echo_n "checking lex output file root... " >&6; }
13897 if ${ac_cv_prog_lex_root+:} false; then :
13898 $as_echo_n "(cached) " >&6
13901 if test -f lex.yy.c; then
13902 ac_cv_prog_lex_root=lex.yy
13903 elif test -f lexyy.c; then
13904 ac_cv_prog_lex_root=lexyy
13906 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13910 $as_echo "$ac_cv_prog_lex_root" >&6; }
13911 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13913 if test -z "${LEXLIB+set}"; then
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13915 $as_echo_n "checking lex library... " >&6; }
13916 if ${ac_cv_lib_lex+:} false; then :
13917 $as_echo_n "(cached) " >&6
13921 ac_cv_lib_lex='none needed'
13922 for ac_lib in '' -lfl -ll; do
13923 LIBS="$ac_lib $ac_save_LIBS"
13924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13925 /* end confdefs.h. */
13926 `cat $LEX_OUTPUT_ROOT.c`
13928 if ac_fn_c_try_link "$LINENO"; then :
13929 ac_cv_lib_lex=$ac_lib
13931 rm -f core conftest.err conftest.$ac_objext \
13932 conftest$ac_exeext conftest.$ac_ext
13933 test "$ac_cv_lib_lex" != 'none needed' && break
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13939 $as_echo "$ac_cv_lib_lex" >&6; }
13940 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13945 $as_echo_n "checking whether yytext is a pointer... " >&6; }
13946 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
13947 $as_echo_n "(cached) " >&6
13949 # POSIX says lex can declare yytext either as a pointer or an array; the
13950 # default is implementation-dependent. Figure out which it is, since
13951 # not all implementations provide the %pointer and %array declarations.
13952 ac_cv_prog_lex_yytext_pointer=no
13954 LIBS="$LEXLIB $ac_save_LIBS"
13955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13956 /* end confdefs.h. */
13958 #define YYTEXT_POINTER 1
13959 `cat $LEX_OUTPUT_ROOT.c`
13961 if ac_fn_c_try_link "$LINENO"; then :
13962 ac_cv_prog_lex_yytext_pointer=yes
13964 rm -f core conftest.err conftest.$ac_objext \
13965 conftest$ac_exeext conftest.$ac_ext
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13970 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13971 if test $ac_cv_prog_lex_yytext_pointer = yes; then
13973 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
13976 rm -f conftest.l $LEX_OUTPUT_ROOT.c
13979 if test "$LEX" = :; then
13980 LEX=${am_missing_run}flex
13983 ac_cpp='$CPP $CPPFLAGS'
13984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13987 if test -n "$ac_tool_prefix"; then
13988 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13989 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13991 $as_echo_n "checking for $ac_word... " >&6; }
13992 if ${ac_cv_prog_CC+:} false; then :
13993 $as_echo_n "(cached) " >&6
13995 if test -n "$CC"; then
13996 ac_cv_prog_CC="$CC" # Let the user override the test.
13998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13999 for as_dir in $PATH
14002 test -z "$as_dir" && as_dir=.
14003 for ac_exec_ext in '' $ac_executable_extensions; do
14004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14005 ac_cv_prog_CC="${ac_tool_prefix}gcc"
14006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14016 if test -n "$CC"; then
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14018 $as_echo "$CC" >&6; }
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14021 $as_echo "no" >&6; }
14026 if test -z "$ac_cv_prog_CC"; then
14028 # Extract the first word of "gcc", so it can be a program name with args.
14029 set dummy gcc; ac_word=$2
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14031 $as_echo_n "checking for $ac_word... " >&6; }
14032 if ${ac_cv_prog_ac_ct_CC+:} false; then :
14033 $as_echo_n "(cached) " >&6
14035 if test -n "$ac_ct_CC"; then
14036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14039 for as_dir in $PATH
14042 test -z "$as_dir" && as_dir=.
14043 for ac_exec_ext in '' $ac_executable_extensions; do
14044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14045 ac_cv_prog_ac_ct_CC="gcc"
14046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14056 if test -n "$ac_ct_CC"; then
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14058 $as_echo "$ac_ct_CC" >&6; }
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14061 $as_echo "no" >&6; }
14064 if test "x$ac_ct_CC" = x; then
14067 case $cross_compiling:$ac_tool_warned in
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14071 ac_tool_warned=yes ;;
14076 CC="$ac_cv_prog_CC"
14079 if test -z "$CC"; then
14080 if test -n "$ac_tool_prefix"; then
14081 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14082 set dummy ${ac_tool_prefix}cc; ac_word=$2
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14084 $as_echo_n "checking for $ac_word... " >&6; }
14085 if ${ac_cv_prog_CC+:} false; then :
14086 $as_echo_n "(cached) " >&6
14088 if test -n "$CC"; then
14089 ac_cv_prog_CC="$CC" # Let the user override the test.
14091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14092 for as_dir in $PATH
14095 test -z "$as_dir" && as_dir=.
14096 for ac_exec_ext in '' $ac_executable_extensions; do
14097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14098 ac_cv_prog_CC="${ac_tool_prefix}cc"
14099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14109 if test -n "$CC"; then
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14111 $as_echo "$CC" >&6; }
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14114 $as_echo "no" >&6; }
14120 if test -z "$CC"; then
14121 # Extract the first word of "cc", so it can be a program name with args.
14122 set dummy cc; ac_word=$2
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14124 $as_echo_n "checking for $ac_word... " >&6; }
14125 if ${ac_cv_prog_CC+:} false; then :
14126 $as_echo_n "(cached) " >&6
14128 if test -n "$CC"; then
14129 ac_cv_prog_CC="$CC" # Let the user override the test.
14131 ac_prog_rejected=no
14132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14133 for as_dir in $PATH
14136 test -z "$as_dir" && as_dir=.
14137 for ac_exec_ext in '' $ac_executable_extensions; do
14138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14139 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14140 ac_prog_rejected=yes
14144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14151 if test $ac_prog_rejected = yes; then
14152 # We found a bogon in the path, so make sure we never use it.
14153 set dummy $ac_cv_prog_CC
14155 if test $# != 0; then
14156 # We chose a different compiler from the bogus one.
14157 # However, it has the same basename, so the bogon will be chosen
14158 # first if we set CC to just the basename; use the full file name.
14160 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14166 if test -n "$CC"; then
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14168 $as_echo "$CC" >&6; }
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14171 $as_echo "no" >&6; }
14176 if test -z "$CC"; then
14177 if test -n "$ac_tool_prefix"; then
14178 for ac_prog in cl.exe
14180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14183 $as_echo_n "checking for $ac_word... " >&6; }
14184 if ${ac_cv_prog_CC+:} false; then :
14185 $as_echo_n "(cached) " >&6
14187 if test -n "$CC"; then
14188 ac_cv_prog_CC="$CC" # Let the user override the test.
14190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14191 for as_dir in $PATH
14194 test -z "$as_dir" && as_dir=.
14195 for ac_exec_ext in '' $ac_executable_extensions; do
14196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14197 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14208 if test -n "$CC"; then
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14210 $as_echo "$CC" >&6; }
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14213 $as_echo "no" >&6; }
14217 test -n "$CC" && break
14220 if test -z "$CC"; then
14222 for ac_prog in cl.exe
14224 # Extract the first word of "$ac_prog", so it can be a program name with args.
14225 set dummy $ac_prog; ac_word=$2
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14227 $as_echo_n "checking for $ac_word... " >&6; }
14228 if ${ac_cv_prog_ac_ct_CC+:} false; then :
14229 $as_echo_n "(cached) " >&6
14231 if test -n "$ac_ct_CC"; then
14232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14235 for as_dir in $PATH
14238 test -z "$as_dir" && as_dir=.
14239 for ac_exec_ext in '' $ac_executable_extensions; do
14240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14241 ac_cv_prog_ac_ct_CC="$ac_prog"
14242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14252 if test -n "$ac_ct_CC"; then
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14254 $as_echo "$ac_ct_CC" >&6; }
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257 $as_echo "no" >&6; }
14261 test -n "$ac_ct_CC" && break
14264 if test "x$ac_ct_CC" = x; then
14267 case $cross_compiling:$ac_tool_warned in
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14271 ac_tool_warned=yes ;;
14280 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14282 as_fn_error $? "no acceptable C compiler found in \$PATH
14283 See \`config.log' for more details" "$LINENO" 5; }
14285 # Provide some information about the compiler.
14286 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14289 for ac_option in --version -v -V -qversion; do
14290 { { ac_try="$ac_compiler $ac_option >&5"
14291 case "(($ac_try" in
14292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14293 *) ac_try_echo=$ac_try;;
14295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14296 $as_echo "$ac_try_echo"; } >&5
14297 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14299 if test -s conftest.err; then
14301 ... rest of stderr output deleted ...
14302 10q' conftest.err >conftest.er1
14303 cat conftest.er1 >&5
14305 rm -f conftest.er1 conftest.err
14306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14307 test $ac_status = 0; }
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
14311 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
14312 if ${ac_cv_c_compiler_gnu+:} false; then :
14313 $as_echo_n "(cached) " >&6
14315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316 /* end confdefs.h. */
14329 if ac_fn_c_try_compile "$LINENO"; then :
14330 ac_compiler_gnu=yes
14334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14335 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14339 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
14340 if test $ac_compiler_gnu = yes; then
14345 ac_test_CFLAGS=${CFLAGS+set}
14346 ac_save_CFLAGS=$CFLAGS
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14348 $as_echo_n "checking whether $CC accepts -g... " >&6; }
14349 if ${ac_cv_prog_cc_g+:} false; then :
14350 $as_echo_n "(cached) " >&6
14352 ac_save_c_werror_flag=$ac_c_werror_flag
14353 ac_c_werror_flag=yes
14356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357 /* end confdefs.h. */
14367 if ac_fn_c_try_compile "$LINENO"; then :
14368 ac_cv_prog_cc_g=yes
14371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14372 /* end confdefs.h. */
14382 if ac_fn_c_try_compile "$LINENO"; then :
14385 ac_c_werror_flag=$ac_save_c_werror_flag
14387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14388 /* end confdefs.h. */
14398 if ac_fn_c_try_compile "$LINENO"; then :
14399 ac_cv_prog_cc_g=yes
14401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14406 ac_c_werror_flag=$ac_save_c_werror_flag
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14409 $as_echo "$ac_cv_prog_cc_g" >&6; }
14410 if test "$ac_test_CFLAGS" = set; then
14411 CFLAGS=$ac_save_CFLAGS
14412 elif test $ac_cv_prog_cc_g = yes; then
14413 if test "$GCC" = yes; then
14419 if test "$GCC" = yes; then
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14426 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14427 if ${ac_cv_prog_cc_c89+:} false; then :
14428 $as_echo_n "(cached) " >&6
14430 ac_cv_prog_cc_c89=no
14432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14433 /* end confdefs.h. */
14434 #include <stdarg.h>
14437 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
14438 struct buf { int x; };
14439 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14440 static char *e (p, i)
14446 static char *f (char * (*g) (char **, int), char **p, ...)
14451 s = g (p, va_arg (v,int));
14456 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
14457 function prototypes and stuff, but not '\xHH' hex character constants.
14458 These don't provoke an error unfortunately, instead are silently treated
14459 as 'x'. The following induces an error, until -std is added to get
14460 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
14461 array size at least. It's necessary to write '\x00'==0 to get something
14462 that's true only with -std. */
14463 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14465 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14466 inside strings and character constants. */
14468 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14470 int test (int i, double x);
14471 struct s1 {int (*f) (int a);};
14472 struct s2 {int (*f) (double a);};
14473 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14479 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
14484 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14485 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14487 CC="$ac_save_CC $ac_arg"
14488 if ac_fn_c_try_compile "$LINENO"; then :
14489 ac_cv_prog_cc_c89=$ac_arg
14491 rm -f core conftest.err conftest.$ac_objext
14492 test "x$ac_cv_prog_cc_c89" != "xno" && break
14494 rm -f conftest.$ac_ext
14499 case "x$ac_cv_prog_cc_c89" in
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14502 $as_echo "none needed" >&6; } ;;
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14505 $as_echo "unsupported" >&6; } ;;
14507 CC="$CC $ac_cv_prog_cc_c89"
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14509 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14511 if test "x$ac_cv_prog_cc_c89" != xno; then :
14516 ac_cpp='$CPP $CPPFLAGS'
14517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14522 ac_cpp='$CPP $CPPFLAGS'
14523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14527 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
14528 if ${am_cv_prog_cc_c_o+:} false; then :
14529 $as_echo_n "(cached) " >&6
14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h. */
14542 # Make sure it works both with $CC and with simple cc.
14543 # Following AC_PROG_CC_C_O, we do the test twice because some
14544 # compilers refuse to overwrite an existing .o file with -o,
14545 # though they will create one.
14546 am_cv_prog_cc_c_o=yes
14547 for am_i in 1 2; do
14548 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14549 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } \
14553 && test -f conftest2.$ac_objext; then
14556 am_cv_prog_cc_c_o=no
14560 rm -f core conftest*
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14564 $as_echo "$am_cv_prog_cc_c_o" >&6; }
14565 if test "$am_cv_prog_cc_c_o" != yes; then
14566 # Losing compiler, so override with the script.
14567 # FIXME: It is wrong to rewrite CC.
14568 # But if we don't then we get into trouble of one sort or another.
14569 # A longer-term fix would be to have automake use am__CC in this case,
14570 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14571 CC="$am_aux_dir/compile $CC"
14574 ac_cpp='$CPP $CPPFLAGS'
14575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14583 save_cross_compiling=$cross_compiling
14584 save_ac_tool_prefix=$ac_tool_prefix
14589 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
14590 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
14591 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
14592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14593 if test -n "$ac_tool_prefix"; then
14594 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14595 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14597 $as_echo_n "checking for $ac_word... " >&6; }
14598 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
14599 $as_echo_n "(cached) " >&6
14601 if test -n "$CC_FOR_BUILD"; then
14602 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
14604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14605 for as_dir in $PATH
14608 test -z "$as_dir" && as_dir=.
14609 for ac_exec_ext in '' $ac_executable_extensions; do
14610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14611 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
14612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14621 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
14622 if test -n "$CC_FOR_BUILD"; then
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
14624 $as_echo "$CC_FOR_BUILD" >&6; }
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14627 $as_echo "no" >&6; }
14632 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
14633 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
14634 # Extract the first word of "gcc", so it can be a program name with args.
14635 set dummy gcc; ac_word=$2
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14637 $as_echo_n "checking for $ac_word... " >&6; }
14638 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
14639 $as_echo_n "(cached) " >&6
14641 if test -n "$ac_ct_CC_FOR_BUILD"; then
14642 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
14644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14645 for as_dir in $PATH
14648 test -z "$as_dir" && as_dir=.
14649 for ac_exec_ext in '' $ac_executable_extensions; do
14650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14651 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
14652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14661 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
14662 if test -n "$ac_ct_CC_FOR_BUILD"; then
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
14664 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14667 $as_echo "no" >&6; }
14670 if test "x$ac_ct_CC_FOR_BUILD" = x; then
14673 case $cross_compiling:$ac_tool_warned in
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
14676 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
14677 ac_tool_warned=yes ;;
14679 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
14682 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
14685 if test -z "$CC_FOR_BUILD"; then
14686 if test -n "$ac_tool_prefix"; then
14687 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14688 set dummy ${ac_tool_prefix}cc; ac_word=$2
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14690 $as_echo_n "checking for $ac_word... " >&6; }
14691 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
14692 $as_echo_n "(cached) " >&6
14694 if test -n "$CC_FOR_BUILD"; then
14695 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
14697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14698 for as_dir in $PATH
14701 test -z "$as_dir" && as_dir=.
14702 for ac_exec_ext in '' $ac_executable_extensions; do
14703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14704 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
14705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14714 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
14715 if test -n "$CC_FOR_BUILD"; then
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
14717 $as_echo "$CC_FOR_BUILD" >&6; }
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14720 $as_echo "no" >&6; }
14726 if test -z "$CC_FOR_BUILD"; then
14727 # Extract the first word of "cc", so it can be a program name with args.
14728 set dummy cc; ac_word=$2
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14730 $as_echo_n "checking for $ac_word... " >&6; }
14731 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
14732 $as_echo_n "(cached) " >&6
14734 if test -n "$CC_FOR_BUILD"; then
14735 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
14737 ac_prog_rejected=no
14738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14739 for as_dir in $PATH
14742 test -z "$as_dir" && as_dir=.
14743 for ac_exec_ext in '' $ac_executable_extensions; do
14744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14745 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14746 ac_prog_rejected=yes
14749 ac_cv_prog_CC_FOR_BUILD="cc"
14750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14757 if test $ac_prog_rejected = yes; then
14758 # We found a bogon in the path, so make sure we never use it.
14759 set dummy $ac_cv_prog_CC_FOR_BUILD
14761 if test $# != 0; then
14762 # We chose a different compiler from the bogus one.
14763 # However, it has the same basename, so the bogon will be chosen
14764 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
14766 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
14771 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
14772 if test -n "$CC_FOR_BUILD"; then
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
14774 $as_echo "$CC_FOR_BUILD" >&6; }
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14777 $as_echo "no" >&6; }
14782 if test -z "$CC_FOR_BUILD"; then
14783 if test -n "$ac_tool_prefix"; then
14784 for ac_prog in cl.exe
14786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14789 $as_echo_n "checking for $ac_word... " >&6; }
14790 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
14791 $as_echo_n "(cached) " >&6
14793 if test -n "$CC_FOR_BUILD"; then
14794 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
14796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14797 for as_dir in $PATH
14800 test -z "$as_dir" && as_dir=.
14801 for ac_exec_ext in '' $ac_executable_extensions; do
14802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14803 ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
14804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14813 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
14814 if test -n "$CC_FOR_BUILD"; then
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
14816 $as_echo "$CC_FOR_BUILD" >&6; }
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14819 $as_echo "no" >&6; }
14823 test -n "$CC_FOR_BUILD" && break
14826 if test -z "$CC_FOR_BUILD"; then
14827 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
14828 for ac_prog in cl.exe
14830 # Extract the first word of "$ac_prog", so it can be a program name with args.
14831 set dummy $ac_prog; ac_word=$2
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14833 $as_echo_n "checking for $ac_word... " >&6; }
14834 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
14835 $as_echo_n "(cached) " >&6
14837 if test -n "$ac_ct_CC_FOR_BUILD"; then
14838 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
14840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14841 for as_dir in $PATH
14844 test -z "$as_dir" && as_dir=.
14845 for ac_exec_ext in '' $ac_executable_extensions; do
14846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14847 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
14848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14857 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
14858 if test -n "$ac_ct_CC_FOR_BUILD"; then
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
14860 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14863 $as_echo "no" >&6; }
14867 test -n "$ac_ct_CC_FOR_BUILD" && break
14870 if test "x$ac_ct_CC_FOR_BUILD" = x; then
14873 case $cross_compiling:$ac_tool_warned in
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
14876 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
14877 ac_tool_warned=yes ;;
14879 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
14886 test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14888 as_fn_error $? "no acceptable C compiler found in \$PATH
14889 See \`config.log' for more details" "$LINENO" 5; }
14891 # Provide some information about the compiler.
14892 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14893 set X $ac_build_compile
14895 for ac_option in --version -v -V -qversion; do
14896 { { ac_try="$ac_compiler $ac_option >&5"
14897 case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14902 $as_echo "$ac_try_echo"; } >&5
14903 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14905 if test -s conftest.err; then
14907 ... rest of stderr output deleted ...
14908 10q' conftest.err >conftest.er1
14909 cat conftest.er1 >&5
14911 rm -f conftest.er1 conftest.err
14912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14913 test $ac_status = 0; }
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
14917 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
14918 if ${ac_cv_c_compiler_gnu+:} false; then :
14919 $as_echo_n "(cached) " >&6
14921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14922 /* end confdefs.h. */
14935 if ac_fn_c_try_compile "$LINENO"; then :
14936 ac_compiler_gnu=yes
14940 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
14941 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14945 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
14946 if test $ac_compiler_gnu = yes; then
14951 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
14952 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
14954 $as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
14955 if ${ac_cv_build_prog_cc_g+:} false; then :
14956 $as_echo_n "(cached) " >&6
14958 ac_save_c_werror_flag=$ac_c_werror_flag
14959 ac_c_werror_flag=yes
14960 ac_cv_build_prog_cc_g=no
14961 CFLAGS_FOR_BUILD="-g"
14962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14963 /* end confdefs.h. */
14973 if ac_fn_c_try_compile "$LINENO"; then :
14974 ac_cv_build_prog_cc_g=yes
14976 CFLAGS_FOR_BUILD=""
14977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14978 /* end confdefs.h. */
14988 if ac_fn_c_try_compile "$LINENO"; then :
14991 ac_c_werror_flag=$ac_save_c_werror_flag
14992 CFLAGS_FOR_BUILD="-g"
14993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14994 /* end confdefs.h. */
15004 if ac_fn_c_try_compile "$LINENO"; then :
15005 ac_cv_build_prog_cc_g=yes
15007 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
15009 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
15011 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
15012 ac_c_werror_flag=$ac_save_c_werror_flag
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
15015 $as_echo "$ac_cv_build_prog_cc_g" >&6; }
15016 if test "$ac_test_CFLAGS" = set; then
15017 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
15018 elif test $ac_cv_build_prog_cc_g = yes; then
15019 if test "$GCC" = yes; then
15020 CFLAGS_FOR_BUILD="-g -O2"
15022 CFLAGS_FOR_BUILD="-g"
15025 if test "$GCC" = yes; then
15026 CFLAGS_FOR_BUILD="-O2"
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
15032 $as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
15033 if ${ac_cv_prog_cc_c89+:} false; then :
15034 $as_echo_n "(cached) " >&6
15036 ac_cv_prog_cc_c89=no
15037 ac_save_CC=$CC_FOR_BUILD
15038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15039 /* end confdefs.h. */
15040 #include <stdarg.h>
15043 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
15044 struct buf { int x; };
15045 FILE * (*rcsopen) (struct buf *, struct stat *, int);
15046 static char *e (p, i)
15052 static char *f (char * (*g) (char **, int), char **p, ...)
15057 s = g (p, va_arg (v,int));
15062 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
15063 function prototypes and stuff, but not '\xHH' hex character constants.
15064 These don't provoke an error unfortunately, instead are silently treated
15065 as 'x'. The following induces an error, until -std is added to get
15066 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
15067 array size at least. It's necessary to write '\x00'==0 to get something
15068 that's true only with -std. */
15069 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15071 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15072 inside strings and character constants. */
15074 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15076 int test (int i, double x);
15077 struct s1 {int (*f) (int a);};
15078 struct s2 {int (*f) (double a);};
15079 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15085 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
15090 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15091 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15093 CC_FOR_BUILD="$ac_save_CC $ac_arg"
15094 if ac_fn_c_try_compile "$LINENO"; then :
15095 ac_cv_prog_cc_c89=$ac_arg
15097 rm -f core conftest.err conftest.$ac_build_objext
15098 test "x$ac_cv_prog_cc_c89" != "xno" && break
15100 rm -f conftest.$ac_ext
15101 CC_FOR_BUILD=$ac_save_CC
15105 case "x$ac_cv_prog_cc_c89" in
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15108 $as_echo "none needed" >&6; } ;;
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15111 $as_echo "unsupported" >&6; } ;;
15113 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
15115 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
15117 if test "x$ac_cv_prog_cc_c89" != xno; then :
15122 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
15123 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
15124 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
15125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15128 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
15129 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
15130 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
15131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
15133 $as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
15134 if ${am_cv_prog_cc_c_o+:} false; then :
15135 $as_echo_n "(cached) " >&6
15137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138 /* end confdefs.h. */
15148 # Make sure it works both with $CC and with simple cc.
15149 # Following AC_PROG_CC_C_O, we do the test twice because some
15150 # compilers refuse to overwrite an existing .o file with -o,
15151 # though they will create one.
15152 am_cv_prog_cc_c_o=yes
15153 for am_i in 1 2; do
15154 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
15155 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); } \
15159 && test -f conftest2.$ac_build_objext; then
15162 am_cv_prog_cc_c_o=no
15166 rm -f core conftest*
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
15170 $as_echo "$am_cv_prog_cc_c_o" >&6; }
15171 if test "$am_cv_prog_cc_c_o" != yes; then
15172 # Losing compiler, so override with the script.
15173 # FIXME: It is wrong to rewrite CC.
15174 # But if we don't then we get into trouble of one sort or another.
15175 # A longer-term fix would be to have automake use am__CC in this case,
15176 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15177 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
15180 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
15181 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
15182 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
15183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15187 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
15188 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
15189 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
15190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
15192 $as_echo_n "checking how to run the C preprocessor... " >&6; }
15193 # On Suns, sometimes $CPP names a directory.
15194 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
15197 if test -z "$CPP_FOR_BUILD"; then
15198 if ${ac_cv_build_prog_CPP+:} false; then :
15199 $as_echo_n "(cached) " >&6
15201 # Double quotes because CPP needs to be expanded
15202 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
15204 ac_preproc_ok=false
15205 for ac_c_preproc_warn_flag in '' yes
15207 # Use a header file that comes with gcc, so configuring glibc
15208 # with a fresh cross-compiler works.
15209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15210 # <limits.h> exists even on freestanding compilers.
15211 # On the NeXT, cc -E runs the code through the compiler's parser,
15212 # not just through cpp. "Syntax error" is here to catch this case.
15213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h. */
15216 # include <limits.h>
15218 # include <assert.h>
15222 if ac_fn_c_try_cpp "$LINENO"; then :
15225 # Broken: fails on valid input.
15228 rm -f conftest.err conftest.i conftest.$ac_ext
15230 # OK, works on sane cases. Now check whether nonexistent headers
15231 # can be detected and how.
15232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233 /* end confdefs.h. */
15234 #include <ac_nonexistent.h>
15236 if ac_fn_c_try_cpp "$LINENO"; then :
15237 # Broken: success on invalid input.
15240 # Passes both tests.
15244 rm -f conftest.err conftest.i conftest.$ac_ext
15247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15248 rm -f conftest.i conftest.err conftest.$ac_ext
15249 if $ac_preproc_ok; then :
15254 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
15257 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
15259 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
15262 $as_echo "$CPP_FOR_BUILD" >&6; }
15263 ac_preproc_ok=false
15264 for ac_c_preproc_warn_flag in '' yes
15266 # Use a header file that comes with gcc, so configuring glibc
15267 # with a fresh cross-compiler works.
15268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15269 # <limits.h> exists even on freestanding compilers.
15270 # On the NeXT, cc -E runs the code through the compiler's parser,
15271 # not just through cpp. "Syntax error" is here to catch this case.
15272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15273 /* end confdefs.h. */
15275 # include <limits.h>
15277 # include <assert.h>
15281 if ac_fn_c_try_cpp "$LINENO"; then :
15284 # Broken: fails on valid input.
15287 rm -f conftest.err conftest.i conftest.$ac_ext
15289 # OK, works on sane cases. Now check whether nonexistent headers
15290 # can be detected and how.
15291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15292 /* end confdefs.h. */
15293 #include <ac_nonexistent.h>
15295 if ac_fn_c_try_cpp "$LINENO"; then :
15296 # Broken: success on invalid input.
15299 # Passes both tests.
15303 rm -f conftest.err conftest.i conftest.$ac_ext
15306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15307 rm -f conftest.i conftest.err conftest.$ac_ext
15308 if $ac_preproc_ok; then :
15311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15313 as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
15314 See \`config.log' for more details" "$LINENO" 5; }
15318 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
15319 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
15320 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
15321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15325 ac_tool_prefix=$save_ac_tool_prefix
15326 cross_compiling=$save_cross_compiling
15329 BUILD_EXEEXT=$ac_build_exeext
15330 BUILD_OBJEXT=$ac_build_objext
15333 ac_cpp='$CXXCPP $CPPFLAGS'
15334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15337 if test -z "$CXX"; then
15338 if test -n "$CCC"; then
15341 if test -n "$ac_tool_prefix"; then
15342 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15347 $as_echo_n "checking for $ac_word... " >&6; }
15348 if ${ac_cv_prog_CXX+:} false; then :
15349 $as_echo_n "(cached) " >&6
15351 if test -n "$CXX"; then
15352 ac_cv_prog_CXX="$CXX" # Let the user override the test.
15354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15355 for as_dir in $PATH
15358 test -z "$as_dir" && as_dir=.
15359 for ac_exec_ext in '' $ac_executable_extensions; do
15360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15361 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15371 CXX=$ac_cv_prog_CXX
15372 if test -n "$CXX"; then
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
15374 $as_echo "$CXX" >&6; }
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15377 $as_echo "no" >&6; }
15381 test -n "$CXX" && break
15384 if test -z "$CXX"; then
15386 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15388 # Extract the first word of "$ac_prog", so it can be a program name with args.
15389 set dummy $ac_prog; ac_word=$2
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15391 $as_echo_n "checking for $ac_word... " >&6; }
15392 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
15393 $as_echo_n "(cached) " >&6
15395 if test -n "$ac_ct_CXX"; then
15396 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15399 for as_dir in $PATH
15402 test -z "$as_dir" && as_dir=.
15403 for ac_exec_ext in '' $ac_executable_extensions; do
15404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15405 ac_cv_prog_ac_ct_CXX="$ac_prog"
15406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15415 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15416 if test -n "$ac_ct_CXX"; then
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
15418 $as_echo "$ac_ct_CXX" >&6; }
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15421 $as_echo "no" >&6; }
15425 test -n "$ac_ct_CXX" && break
15428 if test "x$ac_ct_CXX" = x; then
15431 case $cross_compiling:$ac_tool_warned in
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15435 ac_tool_warned=yes ;;
15443 # Provide some information about the compiler.
15444 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
15447 for ac_option in --version -v -V -qversion; do
15448 { { ac_try="$ac_compiler $ac_option >&5"
15449 case "(($ac_try" in
15450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451 *) ac_try_echo=$ac_try;;
15453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15454 $as_echo "$ac_try_echo"; } >&5
15455 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15457 if test -s conftest.err; then
15459 ... rest of stderr output deleted ...
15460 10q' conftest.err >conftest.er1
15461 cat conftest.er1 >&5
15463 rm -f conftest.er1 conftest.err
15464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15465 test $ac_status = 0; }
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
15469 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
15470 if ${ac_cv_cxx_compiler_gnu+:} false; then :
15471 $as_echo_n "(cached) " >&6
15473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15474 /* end confdefs.h. */
15487 if ac_fn_cxx_try_compile "$LINENO"; then :
15488 ac_compiler_gnu=yes
15492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15493 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
15497 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
15498 if test $ac_compiler_gnu = yes; then
15503 ac_test_CXXFLAGS=${CXXFLAGS+set}
15504 ac_save_CXXFLAGS=$CXXFLAGS
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
15506 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
15507 if ${ac_cv_prog_cxx_g+:} false; then :
15508 $as_echo_n "(cached) " >&6
15510 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15511 ac_cxx_werror_flag=yes
15512 ac_cv_prog_cxx_g=no
15514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15515 /* end confdefs.h. */
15525 if ac_fn_cxx_try_compile "$LINENO"; then :
15526 ac_cv_prog_cxx_g=yes
15529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15530 /* end confdefs.h. */
15540 if ac_fn_cxx_try_compile "$LINENO"; then :
15543 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15546 /* end confdefs.h. */
15556 if ac_fn_cxx_try_compile "$LINENO"; then :
15557 ac_cv_prog_cxx_g=yes
15559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15564 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15567 $as_echo "$ac_cv_prog_cxx_g" >&6; }
15568 if test "$ac_test_CXXFLAGS" = set; then
15569 CXXFLAGS=$ac_save_CXXFLAGS
15570 elif test $ac_cv_prog_cxx_g = yes; then
15571 if test "$GXX" = yes; then
15577 if test "$GXX" = yes; then
15584 ac_cpp='$CPP $CPPFLAGS'
15585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15591 func_stripname_cnf ()
15594 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15595 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15597 } # func_stripname_cnf
15599 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15600 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15601 (test "X$CXX" != "Xg++"))) ; then
15603 ac_cpp='$CXXCPP $CPPFLAGS'
15604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15608 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15609 if test -z "$CXXCPP"; then
15610 if ${ac_cv_prog_CXXCPP+:} false; then :
15611 $as_echo_n "(cached) " >&6
15613 # Double quotes because CXXCPP needs to be expanded
15614 for CXXCPP in "$CXX -E" "/lib/cpp"
15616 ac_preproc_ok=false
15617 for ac_cxx_preproc_warn_flag in '' yes
15619 # Use a header file that comes with gcc, so configuring glibc
15620 # with a fresh cross-compiler works.
15621 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15622 # <limits.h> exists even on freestanding compilers.
15623 # On the NeXT, cc -E runs the code through the compiler's parser,
15624 # not just through cpp. "Syntax error" is here to catch this case.
15625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h. */
15628 # include <limits.h>
15630 # include <assert.h>
15634 if ac_fn_cxx_try_cpp "$LINENO"; then :
15637 # Broken: fails on valid input.
15640 rm -f conftest.err conftest.i conftest.$ac_ext
15642 # OK, works on sane cases. Now check whether nonexistent headers
15643 # can be detected and how.
15644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15645 /* end confdefs.h. */
15646 #include <ac_nonexistent.h>
15648 if ac_fn_cxx_try_cpp "$LINENO"; then :
15649 # Broken: success on invalid input.
15652 # Passes both tests.
15656 rm -f conftest.err conftest.i conftest.$ac_ext
15659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15660 rm -f conftest.i conftest.err conftest.$ac_ext
15661 if $ac_preproc_ok; then :
15666 ac_cv_prog_CXXCPP=$CXXCPP
15669 CXXCPP=$ac_cv_prog_CXXCPP
15671 ac_cv_prog_CXXCPP=$CXXCPP
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15674 $as_echo "$CXXCPP" >&6; }
15675 ac_preproc_ok=false
15676 for ac_cxx_preproc_warn_flag in '' yes
15678 # Use a header file that comes with gcc, so configuring glibc
15679 # with a fresh cross-compiler works.
15680 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15681 # <limits.h> exists even on freestanding compilers.
15682 # On the NeXT, cc -E runs the code through the compiler's parser,
15683 # not just through cpp. "Syntax error" is here to catch this case.
15684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15685 /* end confdefs.h. */
15687 # include <limits.h>
15689 # include <assert.h>
15693 if ac_fn_cxx_try_cpp "$LINENO"; then :
15696 # Broken: fails on valid input.
15699 rm -f conftest.err conftest.i conftest.$ac_ext
15701 # OK, works on sane cases. Now check whether nonexistent headers
15702 # can be detected and how.
15703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15704 /* end confdefs.h. */
15705 #include <ac_nonexistent.h>
15707 if ac_fn_cxx_try_cpp "$LINENO"; then :
15708 # Broken: success on invalid input.
15711 # Passes both tests.
15715 rm -f conftest.err conftest.i conftest.$ac_ext
15718 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15719 rm -f conftest.i conftest.err conftest.$ac_ext
15720 if $ac_preproc_ok; then :
15723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15725 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15726 See \`config.log' for more details" "$LINENO" 5; }
15730 ac_cpp='$CPP $CPPFLAGS'
15731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15736 _lt_caught_CXX_error=yes
15740 ac_cpp='$CXXCPP $CPPFLAGS'
15741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15745 archive_cmds_need_lc_CXX=no
15746 allow_undefined_flag_CXX=
15747 always_export_symbols_CXX=no
15748 archive_expsym_cmds_CXX=
15749 compiler_needs_object_CXX=no
15750 export_dynamic_flag_spec_CXX=
15751 hardcode_direct_CXX=no
15752 hardcode_direct_absolute_CXX=no
15753 hardcode_libdir_flag_spec_CXX=
15754 hardcode_libdir_separator_CXX=
15755 hardcode_minus_L_CXX=no
15756 hardcode_shlibpath_var_CXX=unsupported
15757 hardcode_automatic_CXX=no
15758 inherit_rpath_CXX=no
15760 module_expsym_cmds_CXX=
15761 link_all_deplibs_CXX=unknown
15762 old_archive_cmds_CXX=$old_archive_cmds
15763 reload_flag_CXX=$reload_flag
15764 reload_cmds_CXX=$reload_cmds
15765 no_undefined_flag_CXX=
15766 whole_archive_flag_spec_CXX=
15767 enable_shared_with_static_runtimes_CXX=no
15769 # Source file extension for C++ test sources.
15772 # Object file extension for compiled C++ test sources.
15776 # No sense in running all these tests if we already determined that
15777 # the CXX compiler isn't working. Some variables (like enable_shared)
15778 # are currently assumed to apply to all compilers on this platform,
15779 # and will be corrupted by setting them based on a non-working compiler.
15780 if test "$_lt_caught_CXX_error" != yes; then
15781 # Code to be used in simple compile tests
15782 lt_simple_compile_test_code="int some_variable = 0;"
15784 # Code to be used in simple link tests
15785 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15787 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15794 # If no C compiler was specified, use CC.
15797 # If no C compiler flags were specified, use CFLAGS.
15798 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15800 # Allow CC to be a program name with arguments.
15804 # save warnings/boilerplate of simple test code
15805 ac_outfile=conftest.$ac_objext
15806 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15807 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15808 _lt_compiler_boilerplate=`cat conftest.err`
15811 ac_outfile=conftest.$ac_objext
15812 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15813 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15814 _lt_linker_boilerplate=`cat conftest.err`
15818 # Allow CC to be a program name with arguments.
15820 lt_save_CFLAGS=$CFLAGS
15824 lt_save_with_gnu_ld=$with_gnu_ld
15825 lt_save_path_LD=$lt_cv_path_LD
15826 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15827 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15829 $as_unset lt_cv_prog_gnu_ld
15831 if test -n "${lt_cv_path_LDCXX+set}"; then
15832 lt_cv_path_LD=$lt_cv_path_LDCXX
15834 $as_unset lt_cv_path_LD
15836 test -z "${LDCXX+set}" || LD=$LDCXX
15841 for cc_temp in $compiler""; do
15843 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15844 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15849 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15852 if test -n "$compiler"; then
15853 # We don't want -fno-exception when compiling C++ code, so set the
15854 # no_builtin_flag separately
15855 if test "$GXX" = yes; then
15856 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15858 lt_prog_compiler_no_builtin_flag_CXX=
15861 if test "$GXX" = yes; then
15862 # Set up default GNU C++ configuration
15866 # Check whether --with-gnu-ld was given.
15867 if test "${with_gnu_ld+set}" = set; then :
15868 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15874 if test "$GCC" = yes; then
15875 # Check if gcc -print-prog-name=ld gives a path.
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15877 $as_echo_n "checking for ld used by $CC... " >&6; }
15880 # gcc leaves a trailing carriage return which upsets mingw
15881 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15883 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15886 # Accept absolute paths.
15888 re_direlt='/[^/][^/]*/\.\./'
15889 # Canonicalize the pathname of ld
15890 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15891 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15892 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15894 test -z "$LD" && LD="$ac_prog"
15897 # If it fails, then pretend we aren't using GCC.
15901 # If it is relative, then search for the first ld in PATH.
15902 with_gnu_ld=unknown
15905 elif test "$with_gnu_ld" = yes; then
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15907 $as_echo_n "checking for GNU ld... " >&6; }
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15910 $as_echo_n "checking for non-GNU ld... " >&6; }
15912 if ${lt_cv_path_LD+:} false; then :
15913 $as_echo_n "(cached) " >&6
15915 if test -z "$LD"; then
15916 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15917 for ac_dir in $PATH; do
15919 test -z "$ac_dir" && ac_dir=.
15920 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15921 lt_cv_path_LD="$ac_dir/$ac_prog"
15922 # Check to see if the program is GNU ld. I'd rather use --version,
15923 # but apparently some variants of GNU ld only accept -v.
15924 # Break only if it was the GNU/non-GNU ld that we prefer.
15925 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15926 *GNU* | *'with BFD'*)
15927 test "$with_gnu_ld" != no && break
15930 test "$with_gnu_ld" != yes && break
15937 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15941 LD="$lt_cv_path_LD"
15942 if test -n "$LD"; then
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15944 $as_echo "$LD" >&6; }
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15947 $as_echo "no" >&6; }
15949 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15951 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15952 if ${lt_cv_prog_gnu_ld+:} false; then :
15953 $as_echo_n "(cached) " >&6
15955 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15956 case `$LD -v 2>&1 </dev/null` in
15957 *GNU* | *'with BFD'*)
15958 lt_cv_prog_gnu_ld=yes
15961 lt_cv_prog_gnu_ld=no
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15966 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15967 with_gnu_ld=$lt_cv_prog_gnu_ld
15975 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15976 # archiving commands below assume that GNU ld is being used.
15977 if test "$with_gnu_ld" = yes; then
15978 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15979 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15981 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15982 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15984 # If archive_cmds runs LD, not CC, wlarc should be empty
15985 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15986 # investigate it a little bit more. (MM)
15989 # ancient GNU ld didn't support --whole-archive et. al.
15990 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15991 $GREP 'no-whole-archive' > /dev/null; then
15992 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15994 whole_archive_flag_spec_CXX=
16000 # A generic and very simple default shared library creation
16001 # command for GNU C++ for the case where it uses the native
16002 # linker, instead of GNU ld. If possible, this setting should
16003 # overridden to take advantage of the native linker features on
16004 # the platform it is being used on.
16005 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16008 # Commands to make compiler produce verbose output that lists
16009 # what "hidden" libraries, object files and flags are used when
16010 # linking a shared library.
16011 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16019 # PORTME: fill in a description of your system's C++ link characteristics
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16021 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16025 # FIXME: insert proper C++ library support
16029 if test "$host_cpu" = ia64; then
16030 # On IA64, the linker does run time linking by default, so we don't
16031 # have to do anything special.
16032 aix_use_runtimelinking=no
16033 exp_sym_flag='-Bexport'
16036 aix_use_runtimelinking=no
16038 # Test if we are trying to use run time linking or normal
16039 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16040 # need to do runtime linking.
16041 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16042 for ld_flag in $LDFLAGS; do
16045 aix_use_runtimelinking=yes
16053 exp_sym_flag='-bexport'
16054 no_entry_flag='-bnoentry'
16057 # When large executables or shared objects are built, AIX ld can
16058 # have problems creating the table of contents. If linking a library
16059 # or program results in "error TOC overflow" add -mminimal-toc to
16060 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16061 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16063 archive_cmds_CXX=''
16064 hardcode_direct_CXX=yes
16065 hardcode_direct_absolute_CXX=yes
16066 hardcode_libdir_separator_CXX=':'
16067 link_all_deplibs_CXX=yes
16068 file_list_spec_CXX='${wl}-f,'
16070 if test "$GXX" = yes; then
16071 case $host_os in aix4.[012]|aix4.[012].*)
16072 # We only want to do this on AIX 4.2 and lower, the check
16073 # below for broken collect2 doesn't work under 4.3+
16074 collect2name=`${CC} -print-prog-name=collect2`
16075 if test -f "$collect2name" &&
16076 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16078 # We have reworked collect2
16081 # We have old collect2
16082 hardcode_direct_CXX=unsupported
16083 # It fails to find uninstalled libraries when the uninstalled
16084 # path is not listed in the libpath. Setting hardcode_minus_L
16085 # to unsupported forces relinking
16086 hardcode_minus_L_CXX=yes
16087 hardcode_libdir_flag_spec_CXX='-L$libdir'
16088 hardcode_libdir_separator_CXX=
16091 shared_flag='-shared'
16092 if test "$aix_use_runtimelinking" = yes; then
16093 shared_flag="$shared_flag "'${wl}-G'
16097 if test "$host_cpu" = ia64; then
16098 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16099 # chokes on -Wl,-G. The following line is correct:
16102 if test "$aix_use_runtimelinking" = yes; then
16103 shared_flag='${wl}-G'
16105 shared_flag='${wl}-bM:SRE'
16110 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16111 # It seems that -bexpall does not export symbols beginning with
16112 # underscore (_), so it is better to generate a list of symbols to
16114 always_export_symbols_CXX=yes
16115 if test "$aix_use_runtimelinking" = yes; then
16116 # Warning - without using the other runtime loading flags (-brtl),
16117 # -berok will link without error, but may produce a broken library.
16118 allow_undefined_flag_CXX='-berok'
16119 # Determine the default libpath from the value encoded in an empty
16121 if test "${lt_cv_aix_libpath+set}" = set; then
16122 aix_libpath=$lt_cv_aix_libpath
16124 if ${lt_cv_aix_libpath__CXX+:} false; then :
16125 $as_echo_n "(cached) " >&6
16127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h. */
16138 if ac_fn_cxx_try_link "$LINENO"; then :
16140 lt_aix_libpath_sed='
16141 /Import File Strings/,/^$/ {
16143 s/^0 *\([^ ]*\) *$/\1/
16147 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16148 # Check for a 64-bit object if we didn't find anything.
16149 if test -z "$lt_cv_aix_libpath__CXX"; then
16150 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16153 rm -f core conftest.err conftest.$ac_objext \
16154 conftest$ac_exeext conftest.$ac_ext
16155 if test -z "$lt_cv_aix_libpath__CXX"; then
16156 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
16161 aix_libpath=$lt_cv_aix_libpath__CXX
16164 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16166 archive_expsym_cmds_CXX='$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"
16168 if test "$host_cpu" = ia64; then
16169 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16170 allow_undefined_flag_CXX="-z nodefs"
16171 archive_expsym_cmds_CXX="\$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"
16173 # Determine the default libpath from the value encoded in an
16174 # empty executable.
16175 if test "${lt_cv_aix_libpath+set}" = set; then
16176 aix_libpath=$lt_cv_aix_libpath
16178 if ${lt_cv_aix_libpath__CXX+:} false; then :
16179 $as_echo_n "(cached) " >&6
16181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16182 /* end confdefs.h. */
16192 if ac_fn_cxx_try_link "$LINENO"; then :
16194 lt_aix_libpath_sed='
16195 /Import File Strings/,/^$/ {
16197 s/^0 *\([^ ]*\) *$/\1/
16201 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16202 # Check for a 64-bit object if we didn't find anything.
16203 if test -z "$lt_cv_aix_libpath__CXX"; then
16204 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16207 rm -f core conftest.err conftest.$ac_objext \
16208 conftest$ac_exeext conftest.$ac_ext
16209 if test -z "$lt_cv_aix_libpath__CXX"; then
16210 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
16215 aix_libpath=$lt_cv_aix_libpath__CXX
16218 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16219 # Warning - without using the other run time loading flags,
16220 # -berok will link without error, but may produce a broken library.
16221 no_undefined_flag_CXX=' ${wl}-bernotok'
16222 allow_undefined_flag_CXX=' ${wl}-berok'
16223 if test "$with_gnu_ld" = yes; then
16224 # We only use this code for GNU lds that support --whole-archive.
16225 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16227 # Exported symbols can be pulled into shared objects from archives
16228 whole_archive_flag_spec_CXX='$convenience'
16230 archive_cmds_need_lc_CXX=yes
16231 # This is similar to how AIX traditionally builds its shared
16233 archive_expsym_cmds_CXX="\$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'
16239 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16240 allow_undefined_flag_CXX=unsupported
16241 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16242 # support --undefined. This deserves some investigation. FIXME
16243 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16250 case $cc_basename in
16252 # FIXME: insert proper C++ library support
16258 cygwin* | mingw* | pw32* | cegcc*)
16259 case $GXX,$cc_basename in
16262 # hardcode_libdir_flag_spec is actually meaningless, as there is
16263 # no search path for DLLs.
16264 hardcode_libdir_flag_spec_CXX=' '
16265 allow_undefined_flag_CXX=unsupported
16266 always_export_symbols_CXX=yes
16267 file_list_spec_CXX='@'
16268 # Tell ltmain to make .lib files, not .a files.
16270 # Tell ltmain to make .dll files, not .so files.
16272 # FIXME: Setting linknames here is a bad hack.
16273 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16274 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16275 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16277 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16279 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16281 # The linker will not automatically build a static lib if we build a DLL.
16282 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16283 enable_shared_with_static_runtimes_CXX=yes
16285 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16286 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16287 lt_tool_outputfile="@TOOL_OUTPUT@"~
16288 case $lt_outputfile in
16291 lt_outputfile="$lt_outputfile.exe"
16292 lt_tool_outputfile="$lt_tool_outputfile.exe"
16295 func_to_tool_file "$lt_outputfile"~
16296 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16297 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16298 $RM "$lt_outputfile.manifest";
16303 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16304 # as there is no search path for DLLs.
16305 hardcode_libdir_flag_spec_CXX='-L$libdir'
16306 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
16307 allow_undefined_flag_CXX=unsupported
16308 always_export_symbols_CXX=no
16309 enable_shared_with_static_runtimes_CXX=yes
16311 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16312 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16313 # If the export-symbols file already is a .def file (1st line
16314 # is EXPORTS), use it as is; otherwise, prepend...
16315 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16316 cp $export_symbols $output_objdir/$soname.def;
16318 echo EXPORTS > $output_objdir/$soname.def;
16319 cat $export_symbols >> $output_objdir/$soname.def;
16321 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16328 darwin* | rhapsody*)
16331 archive_cmds_need_lc_CXX=no
16332 hardcode_direct_CXX=no
16333 hardcode_automatic_CXX=yes
16334 hardcode_shlibpath_var_CXX=unsupported
16335 if test "$lt_cv_ld_force_load" = "yes"; then
16336 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16339 whole_archive_flag_spec_CXX=''
16341 link_all_deplibs_CXX=yes
16342 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16343 case $cc_basename in
16344 ifort*) _lt_dar_can_shared=yes ;;
16345 *) _lt_dar_can_shared=$GCC ;;
16347 if test "$_lt_dar_can_shared" = "yes"; then
16348 output_verbose_link_cmd=func_echo_all
16349 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16350 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16351 archive_expsym_cmds_CXX="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}"
16352 module_expsym_cmds_CXX="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}"
16353 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16354 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
16355 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
16365 case $cc_basename in
16367 # FIXME: insert proper C++ library support
16371 # Green Hills C++ Compiler
16372 # FIXME: insert proper C++ library support
16376 # FIXME: insert proper C++ library support
16383 # C++ shared libraries reported to be fairly broken before
16389 archive_cmds_need_lc_CXX=no
16392 freebsd* | dragonfly*)
16393 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16399 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16400 link_all_deplibs_CXX=yes
16404 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16405 hardcode_libdir_separator_CXX=:
16406 export_dynamic_flag_spec_CXX='${wl}-E'
16407 hardcode_direct_CXX=yes
16408 hardcode_minus_L_CXX=yes # Not in the search PATH,
16409 # but as the default
16410 # location of the library.
16412 case $cc_basename in
16414 # FIXME: insert proper C++ library support
16418 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16419 # Commands to make compiler produce verbose output that lists
16420 # what "hidden" libraries, object files and flags are used when
16421 # linking a shared library.
16423 # There doesn't appear to be a way to prevent this compiler from
16424 # explicitly linking system object files so we need to strip them
16425 # from the output so that they don't get included in the library
16427 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16430 if test "$GXX" = yes; then
16431 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16433 # FIXME: insert proper C++ library support
16441 if test $with_gnu_ld = no; then
16442 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16443 hardcode_libdir_separator_CXX=:
16449 export_dynamic_flag_spec_CXX='${wl}-E'
16455 hardcode_direct_CXX=no
16456 hardcode_shlibpath_var_CXX=no
16459 hardcode_direct_CXX=yes
16460 hardcode_direct_absolute_CXX=yes
16461 hardcode_minus_L_CXX=yes # Not in the search PATH,
16462 # but as the default
16463 # location of the library.
16467 case $cc_basename in
16469 # FIXME: insert proper C++ library support
16475 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16478 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16481 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16484 # Commands to make compiler produce verbose output that lists
16485 # what "hidden" libraries, object files and flags are used when
16486 # linking a shared library.
16488 # There doesn't appear to be a way to prevent this compiler from
16489 # explicitly linking system object files so we need to strip them
16490 # from the output so that they don't get included in the library
16492 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16495 if test "$GXX" = yes; then
16496 if test $with_gnu_ld = no; then
16499 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16502 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16505 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16510 # FIXME: insert proper C++ library support
16518 hardcode_direct_CXX=no
16519 hardcode_shlibpath_var_CXX=no
16520 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16521 export_dynamic_flag_spec_CXX='${wl}-E'
16522 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16523 # Instead, shared libraries are loaded at an image base (0x10000000 by
16524 # default) and relocated if they conflict, which is a slow very memory
16525 # consuming and fragmenting process. To avoid this, we pick a random,
16526 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16527 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16528 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16529 archive_expsym_cmds_CXX='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'
16532 case $cc_basename in
16535 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16537 # Archives containing C++ object files must be created using
16538 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16539 # necessary to make sure instantiated templates are included
16541 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16544 if test "$GXX" = yes; then
16545 if test "$with_gnu_ld" = no; then
16546 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
16548 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
16551 link_all_deplibs_CXX=yes
16554 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16555 hardcode_libdir_separator_CXX=:
16556 inherit_rpath_CXX=yes
16559 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16560 case $cc_basename in
16562 # Kuck and Associates, Inc. (KAI) C++ Compiler
16564 # KCC will only create a shared library if the output file
16565 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16566 # to its proper name (with version) after linking.
16567 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16568 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
16569 # Commands to make compiler produce verbose output that lists
16570 # what "hidden" libraries, object files and flags are used when
16571 # linking a shared library.
16573 # There doesn't appear to be a way to prevent this compiler from
16574 # explicitly linking system object files so we need to strip them
16575 # from the output so that they don't get included in the library
16577 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16579 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16580 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16582 # Archives containing C++ object files must be created using
16583 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16584 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16589 # version 8.0 and above of icpc choke on multiply defined symbols
16590 # if we add $predep_objects and $postdep_objects, however 7.1 and
16591 # earlier do not add the objects themselves.
16592 case `$CC -V 2>&1` in
16594 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16595 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16597 *) # Version 8.0 or newer
16600 ia64*) tmp_idyn=' -i_dynamic';;
16602 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16603 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16606 archive_cmds_need_lc_CXX=no
16607 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16608 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16609 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16612 # Portland Group C++ compiler
16614 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16615 prelink_cmds_CXX='tpldir=Template.dir~
16617 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16618 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16619 old_archive_cmds_CXX='tpldir=Template.dir~
16621 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16622 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16624 archive_cmds_CXX='tpldir=Template.dir~
16626 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16627 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16628 archive_expsym_cmds_CXX='tpldir=Template.dir~
16630 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16631 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16633 *) # Version 6 and above use weak symbols
16634 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16635 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16639 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16640 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16641 whole_archive_flag_spec_CXX='${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'
16645 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16646 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
16648 runpath_var=LD_RUN_PATH
16649 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16650 hardcode_libdir_separator_CXX=:
16652 # Commands to make compiler produce verbose output that lists
16653 # what "hidden" libraries, object files and flags are used when
16654 # linking a shared library.
16656 # There doesn't appear to be a way to prevent this compiler from
16657 # explicitly linking system object files so we need to strip them
16658 # from the output so that they don't get included in the library
16660 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
16662 xl* | mpixl* | bgxl*)
16663 # IBM XL 8.0 on PPC, with GNU ld
16664 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16665 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16666 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16667 if test "x$supports_anon_versioning" = xyes; then
16668 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16669 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16670 echo "local: *; };" >> $output_objdir/$libname.ver~
16671 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16675 case `$CC -V 2>&1 | sed 5q` in
16678 no_undefined_flag_CXX=' -zdefs'
16679 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16680 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
16681 hardcode_libdir_flag_spec_CXX='-R$libdir'
16682 whole_archive_flag_spec_CXX='${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'
16683 compiler_needs_object_CXX=yes
16685 # Not sure whether something based on
16686 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16688 output_verbose_link_cmd='func_echo_all'
16690 # Archives containing C++ object files must be created using
16691 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16692 # necessary to make sure instantiated templates are included
16694 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16702 # FIXME: insert proper C++ library support
16707 # FIXME: insert proper C++ library support
16712 case $cc_basename in
16714 # FIXME: insert proper C++ library support
16718 # FIXME: insert proper C++ library support
16725 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16726 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16728 hardcode_libdir_flag_spec_CXX='-R$libdir'
16729 hardcode_direct_CXX=yes
16730 hardcode_shlibpath_var_CXX=no
16732 # Workaround some broken pre-1.5 toolchains
16733 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16741 # C++ shared libraries are fairly broken
16746 if test -f /usr/libexec/ld.so; then
16747 hardcode_direct_CXX=yes
16748 hardcode_shlibpath_var_CXX=no
16749 hardcode_direct_absolute_CXX=yes
16750 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16751 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16752 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16753 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16754 export_dynamic_flag_spec_CXX='${wl}-E'
16755 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16757 output_verbose_link_cmd=func_echo_all
16763 osf3* | osf4* | osf5*)
16764 case $cc_basename in
16766 # Kuck and Associates, Inc. (KAI) C++ Compiler
16768 # KCC will only create a shared library if the output file
16769 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16770 # to its proper name (with version) after linking.
16771 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16773 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16774 hardcode_libdir_separator_CXX=:
16776 # Archives containing C++ object files must be created using
16777 # the KAI C++ compiler.
16779 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16780 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16784 # Rational C++ 2.4.1
16785 # FIXME: insert proper C++ library support
16791 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16792 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16793 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16796 allow_undefined_flag_CXX=' -expect_unresolved \*'
16797 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16798 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16799 echo "-hidden">> $lib.exp~
16800 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
16802 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16806 hardcode_libdir_separator_CXX=:
16808 # Commands to make compiler produce verbose output that lists
16809 # what "hidden" libraries, object files and flags are used when
16810 # linking a shared library.
16812 # There doesn't appear to be a way to prevent this compiler from
16813 # explicitly linking system object files so we need to strip them
16814 # from the output so that they don't get included in the library
16816 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16819 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16820 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16823 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
16826 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
16830 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16831 hardcode_libdir_separator_CXX=:
16833 # Commands to make compiler produce verbose output that lists
16834 # what "hidden" libraries, object files and flags are used when
16835 # linking a shared library.
16836 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16839 # FIXME: insert proper C++ library support
16847 # FIXME: insert proper C++ library support
16852 case $cc_basename in
16855 # FIXME: insert proper C++ library support
16860 # FIXME: insert proper C++ library support
16864 # FIXME: insert proper C++ library support
16871 case $cc_basename in
16873 # Sun C++ 4.2, 5.x and Centerline C++
16874 archive_cmds_need_lc_CXX=yes
16875 no_undefined_flag_CXX=' -zdefs'
16876 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16877 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16878 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16880 hardcode_libdir_flag_spec_CXX='-R$libdir'
16881 hardcode_shlibpath_var_CXX=no
16883 solaris2.[0-5] | solaris2.[0-5].*) ;;
16885 # The compiler driver will combine and reorder linker options,
16886 # but understands `-z linker_flag'.
16887 # Supported since Solaris 2.6 (maybe 2.5.1?)
16888 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16891 link_all_deplibs_CXX=yes
16893 output_verbose_link_cmd='func_echo_all'
16895 # Archives containing C++ object files must be created using
16896 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16897 # necessary to make sure instantiated templates are included
16899 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16902 # Green Hills C++ Compiler
16903 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16905 # The C++ compiler must be used to create the archive.
16906 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16909 # GNU C++ compiler with Solaris linker
16910 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16911 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16912 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16913 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16914 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16915 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16917 # Commands to make compiler produce verbose output that lists
16918 # what "hidden" libraries, object files and flags are used when
16919 # linking a shared library.
16920 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16922 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16924 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16925 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16926 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16928 # Commands to make compiler produce verbose output that lists
16929 # what "hidden" libraries, object files and flags are used when
16930 # linking a shared library.
16931 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16934 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16936 solaris2.[0-5] | solaris2.[0-5].*) ;;
16938 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16946 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16947 no_undefined_flag_CXX='${wl}-z,text'
16948 archive_cmds_need_lc_CXX=no
16949 hardcode_shlibpath_var_CXX=no
16950 runpath_var='LD_RUN_PATH'
16952 case $cc_basename in
16954 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16955 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16958 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16959 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16964 sysv5* | sco3.2v5* | sco5v6*)
16965 # Note: We can NOT use -z defs as we might desire, because we do not
16966 # link with -lc, and that would cause any symbols used from libc to
16967 # always be unresolved, which means just about no library would
16968 # ever link correctly. If we're not using GNU ld we use -z text
16969 # though, which does catch some bad symbols but isn't as heavy-handed
16971 no_undefined_flag_CXX='${wl}-z,text'
16972 allow_undefined_flag_CXX='${wl}-z,nodefs'
16973 archive_cmds_need_lc_CXX=no
16974 hardcode_shlibpath_var_CXX=no
16975 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16976 hardcode_libdir_separator_CXX=':'
16977 link_all_deplibs_CXX=yes
16978 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16979 runpath_var='LD_RUN_PATH'
16981 case $cc_basename in
16983 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16984 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16985 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16986 '"$old_archive_cmds_CXX"
16987 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16988 '"$reload_cmds_CXX"
16991 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16992 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16998 case $cc_basename in
17000 # NonStop-UX NCC 3.20
17001 # FIXME: insert proper C++ library support
17005 # FIXME: insert proper C++ library support
17012 # FIXME: insert proper C++ library support
17017 # FIXME: insert proper C++ library support
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17023 $as_echo "$ld_shlibs_CXX" >&6; }
17024 test "$ld_shlibs_CXX" = no && can_build_shared=no
17030 ## There is no encapsulation within the following macros, do not change
17031 ## the running order or otherwise move them around unless you know exactly
17032 ## what you are doing...
17033 # Dependencies to place before and after the object being linked:
17034 predep_objects_CXX=
17035 postdep_objects_CXX=
17038 compiler_lib_search_path_CXX=
17040 cat > conftest.$ac_ext <<_LT_EOF
17044 Foo (void) { a = 0; }
17051 _lt_libdeps_save_CFLAGS=$CFLAGS
17052 case "$CC $CFLAGS " in #(
17053 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17054 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17055 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17059 (eval $ac_compile) 2>&5
17061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17062 test $ac_status = 0; }; then
17063 # Parse the compiler output and extract the necessary
17064 # objects, libraries and library flags.
17066 # Sentinel used to keep track of whether or not we are before
17067 # the conftest object file.
17068 pre_test_object_deps_done=no
17070 for p in `eval "$output_verbose_link_cmd"`; do
17071 case ${prev}${p} in
17074 # Some compilers place space between "-{L,R}" and the path.
17075 # Remove the space.
17076 if test $p = "-L" ||
17077 test $p = "-R"; then
17082 # Expand the sysroot to ease extracting the directories later.
17083 if test -z "$prev"; then
17085 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17086 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17087 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17091 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17093 if test "$pre_test_object_deps_done" = no; then
17096 # Internal compiler library paths should come after those
17097 # provided the user. The postdeps already come after the
17098 # user supplied libs so there is no need to process them.
17099 if test -z "$compiler_lib_search_path_CXX"; then
17100 compiler_lib_search_path_CXX="${prev}${p}"
17102 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17105 # The "-l" case would never come before the object being
17106 # linked, so don't bother handling this case.
17109 if test -z "$postdeps_CXX"; then
17110 postdeps_CXX="${prev}${p}"
17112 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17118 *.lto.$objext) ;; # Ignore GCC LTO objects
17120 # This assumes that the test object file only shows up
17121 # once in the compiler output.
17122 if test "$p" = "conftest.$objext"; then
17123 pre_test_object_deps_done=yes
17127 if test "$pre_test_object_deps_done" = no; then
17128 if test -z "$predep_objects_CXX"; then
17129 predep_objects_CXX="$p"
17131 predep_objects_CXX="$predep_objects_CXX $p"
17134 if test -z "$postdep_objects_CXX"; then
17135 postdep_objects_CXX="$p"
17137 postdep_objects_CXX="$postdep_objects_CXX $p"
17142 *) ;; # Ignore the rest.
17150 echo "libtool.m4: error: problem compiling CXX test program"
17153 $RM -f confest.$objext
17154 CFLAGS=$_lt_libdeps_save_CFLAGS
17156 # PORTME: override above test on systems where it is broken
17159 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17160 # hack all around it, let's just trust "g++" to DTRT.
17161 predep_objects_CXX=
17162 postdep_objects_CXX=
17167 case `$CC -V 2>&1 | sed 5q` in
17171 # The more standards-conforming stlport4 library is
17172 # incompatible with the Cstd library. Avoid specifying
17173 # it if it's in CXXFLAGS. Ignore libCrun as
17174 # -library=stlport4 depends on it.
17175 case " $CXX $CXXFLAGS " in
17176 *" -library=stlport4 "*)
17177 solaris_use_stlport4=yes
17181 if test "$solaris_use_stlport4" != yes; then
17182 postdeps_CXX='-library=Cstd -library=Crun'
17189 case $cc_basename in
17191 # The more standards-conforming stlport4 library is
17192 # incompatible with the Cstd library. Avoid specifying
17193 # it if it's in CXXFLAGS. Ignore libCrun as
17194 # -library=stlport4 depends on it.
17195 case " $CXX $CXXFLAGS " in
17196 *" -library=stlport4 "*)
17197 solaris_use_stlport4=yes
17201 # Adding this requires a known-good setup of shared libraries for
17202 # Sun compiler versions before 5.6, else PIC objects from an old
17203 # archive will be linked into the output, leading to subtle bugs.
17204 if test "$solaris_use_stlport4" != yes; then
17205 postdeps_CXX='-library=Cstd -library=Crun'
17213 case " $postdeps_CXX " in
17214 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17216 compiler_lib_search_dirs_CXX=
17217 if test -n "${compiler_lib_search_path_CXX}"; then
17218 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17251 lt_prog_compiler_wl_CXX=
17252 lt_prog_compiler_pic_CXX=
17253 lt_prog_compiler_static_CXX=
17256 # C++ specific cases for pic, static, wl, etc.
17257 if test "$GXX" = yes; then
17258 lt_prog_compiler_wl_CXX='-Wl,'
17259 lt_prog_compiler_static_CXX='-static'
17263 # All AIX code is PIC.
17264 if test "$host_cpu" = ia64; then
17265 # AIX 5 now supports IA64 processor
17266 lt_prog_compiler_static_CXX='-Bstatic'
17273 # see comment about AmigaOS4 .so support
17274 lt_prog_compiler_pic_CXX='-fPIC'
17277 # FIXME: we need at least 68020 code to build shared libraries, but
17278 # adding the `-m68020' flag to GCC prevents building anything better,
17280 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17285 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17286 # PIC is the default for these OSes.
17288 mingw* | cygwin* | os2* | pw32* | cegcc*)
17289 # This hack is so that the source file can tell whether it is being
17290 # built for inclusion in a dll (and should export symbols for example).
17291 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17292 # (--disable-auto-import) libraries
17293 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17295 darwin* | rhapsody*)
17296 # PIC is the default on this platform
17297 # Common symbols not allowed in MH_DYLIB files
17298 lt_prog_compiler_pic_CXX='-fno-common'
17301 # DJGPP does not support shared libraries at all
17302 lt_prog_compiler_pic_CXX=
17305 # PIC is the default for Haiku.
17306 # The "-static" flag exists, but is broken.
17307 lt_prog_compiler_static_CXX=
17310 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17311 # Instead, we relocate shared libraries at runtime.
17314 if test -d /usr/nec; then
17315 lt_prog_compiler_pic_CXX=-Kconform_pic
17319 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17320 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17321 # sets the default TLS model and affects inlining.
17326 lt_prog_compiler_pic_CXX='-fPIC'
17331 # QNX uses GNU C++, but need to define -shared option too, otherwise
17332 # it will coredump.
17333 lt_prog_compiler_pic_CXX='-fPIC -shared'
17336 lt_prog_compiler_pic_CXX='-fPIC'
17342 # All AIX code is PIC.
17343 if test "$host_cpu" = ia64; then
17344 # AIX 5 now supports IA64 processor
17345 lt_prog_compiler_static_CXX='-Bstatic'
17347 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17351 case $cc_basename in
17353 # Green Hills C++ Compiler
17354 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
17358 mingw* | cygwin* | os2* | pw32* | cegcc*)
17359 # This hack is so that the source file can tell whether it is being
17360 # built for inclusion in a dll (and should export symbols for example).
17361 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17364 case $cc_basename in
17366 lt_prog_compiler_pic_CXX='-KPIC'
17369 # Green Hills C++ Compiler
17370 lt_prog_compiler_pic_CXX='-pic'
17376 freebsd* | dragonfly*)
17377 # FreeBSD uses GNU C++
17379 hpux9* | hpux10* | hpux11*)
17380 case $cc_basename in
17382 lt_prog_compiler_wl_CXX='-Wl,'
17383 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17384 if test "$host_cpu" != ia64; then
17385 lt_prog_compiler_pic_CXX='+Z'
17389 lt_prog_compiler_wl_CXX='-Wl,'
17390 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17396 lt_prog_compiler_pic_CXX='+Z'
17405 # This is c89, which is MS Visual C++ (no shared libs)
17406 # Anyone wants to do a port?
17408 irix5* | irix6* | nonstopux*)
17409 case $cc_basename in
17411 lt_prog_compiler_wl_CXX='-Wl,'
17412 lt_prog_compiler_static_CXX='-non_shared'
17413 # CC pic flag -KPIC is the default.
17419 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17420 case $cc_basename in
17423 lt_prog_compiler_wl_CXX='--backend -Wl,'
17424 lt_prog_compiler_pic_CXX='-fPIC'
17427 # old Intel C++ for x86_64 which still supported -KPIC.
17428 lt_prog_compiler_wl_CXX='-Wl,'
17429 lt_prog_compiler_pic_CXX='-KPIC'
17430 lt_prog_compiler_static_CXX='-static'
17433 # Intel C++, used to be incompatible with GCC.
17434 # ICC 10 doesn't accept -KPIC any more.
17435 lt_prog_compiler_wl_CXX='-Wl,'
17436 lt_prog_compiler_pic_CXX='-fPIC'
17437 lt_prog_compiler_static_CXX='-static'
17440 # Portland Group C++ compiler
17441 lt_prog_compiler_wl_CXX='-Wl,'
17442 lt_prog_compiler_pic_CXX='-fpic'
17443 lt_prog_compiler_static_CXX='-Bstatic'
17447 # Make sure the PIC flag is empty. It appears that all Alpha
17448 # Linux and Compaq Tru64 Unix objects are PIC.
17449 lt_prog_compiler_pic_CXX=
17450 lt_prog_compiler_static_CXX='-non_shared'
17452 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17453 # IBM XL 8.0, 9.0 on PPC and BlueGene
17454 lt_prog_compiler_wl_CXX='-Wl,'
17455 lt_prog_compiler_pic_CXX='-qpic'
17456 lt_prog_compiler_static_CXX='-qstaticlink'
17459 case `$CC -V 2>&1 | sed 5q` in
17462 lt_prog_compiler_pic_CXX='-KPIC'
17463 lt_prog_compiler_static_CXX='-Bstatic'
17464 lt_prog_compiler_wl_CXX='-Qoption ld '
17475 case $cc_basename in
17477 lt_prog_compiler_pic_CXX='-W c,exportall'
17483 netbsd* | netbsdelf*-gnu)
17486 # QNX uses GNU C++, but need to define -shared option too, otherwise
17487 # it will coredump.
17488 lt_prog_compiler_pic_CXX='-fPIC -shared'
17490 osf3* | osf4* | osf5*)
17491 case $cc_basename in
17493 lt_prog_compiler_wl_CXX='--backend -Wl,'
17496 # Rational C++ 2.4.1
17497 lt_prog_compiler_pic_CXX='-pic'
17500 # Digital/Compaq C++
17501 lt_prog_compiler_wl_CXX='-Wl,'
17502 # Make sure the PIC flag is empty. It appears that all Alpha
17503 # Linux and Compaq Tru64 Unix objects are PIC.
17504 lt_prog_compiler_pic_CXX=
17505 lt_prog_compiler_static_CXX='-non_shared'
17514 case $cc_basename in
17516 # Sun C++ 4.2, 5.x and Centerline C++
17517 lt_prog_compiler_pic_CXX='-KPIC'
17518 lt_prog_compiler_static_CXX='-Bstatic'
17519 lt_prog_compiler_wl_CXX='-Qoption ld '
17522 # Green Hills C++ Compiler
17523 lt_prog_compiler_pic_CXX='-PIC'
17530 case $cc_basename in
17533 lt_prog_compiler_pic_CXX='-pic'
17534 lt_prog_compiler_static_CXX='-Bstatic'
17538 lt_prog_compiler_pic_CXX='-pic'
17544 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17545 case $cc_basename in
17547 lt_prog_compiler_wl_CXX='-Wl,'
17548 lt_prog_compiler_pic_CXX='-KPIC'
17549 lt_prog_compiler_static_CXX='-Bstatic'
17554 case $cc_basename in
17556 # NonStop-UX NCC 3.20
17557 lt_prog_compiler_pic_CXX='-KPIC'
17566 lt_prog_compiler_can_build_shared_CXX=no
17572 # For platforms which do not support PIC, -DPIC is meaningless:
17574 lt_prog_compiler_pic_CXX=
17577 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17582 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17583 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17584 $as_echo_n "(cached) " >&6
17586 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17589 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17590 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17593 # Check to make sure the PIC flag actually works.
17595 if test -n "$lt_prog_compiler_pic_CXX"; then
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17597 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17598 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17599 $as_echo_n "(cached) " >&6
17601 lt_cv_prog_compiler_pic_works_CXX=no
17602 ac_outfile=conftest.$ac_objext
17603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17604 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17605 # Insert the option either (1) after the last *FLAGS variable, or
17606 # (2) before a word containing "conftest.", or (3) at the end.
17607 # Note that $ac_compile itself does not contain backslashes and begins
17608 # with a dollar sign (not a hyphen), so the echo should work correctly.
17609 # The option is referenced via a variable to avoid confusing sed.
17610 lt_compile=`echo "$ac_compile" | $SED \
17611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17613 -e 's:$: $lt_compiler_flag:'`
17614 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17615 (eval "$lt_compile" 2>conftest.err)
17617 cat conftest.err >&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 if (exit $ac_status) && test -s "$ac_outfile"; then
17620 # The compiler can only warn and ignore the option if not recognized
17621 # So say no if there are warnings other than the usual output.
17622 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17623 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17624 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17625 lt_cv_prog_compiler_pic_works_CXX=yes
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17632 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17634 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17635 case $lt_prog_compiler_pic_CXX in
17637 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17640 lt_prog_compiler_pic_CXX=
17641 lt_prog_compiler_can_build_shared_CXX=no
17651 # Check to make sure the static flag actually works.
17653 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17655 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17656 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17657 $as_echo_n "(cached) " >&6
17659 lt_cv_prog_compiler_static_works_CXX=no
17660 save_LDFLAGS="$LDFLAGS"
17661 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17662 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17663 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17664 # The linker can only warn and ignore the option if not recognized
17665 # So say no if there are warnings
17666 if test -s conftest.err; then
17667 # Append any errors to the config.log.
17668 cat conftest.err 1>&5
17669 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17670 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17671 if diff conftest.exp conftest.er2 >/dev/null; then
17672 lt_cv_prog_compiler_static_works_CXX=yes
17675 lt_cv_prog_compiler_static_works_CXX=yes
17679 LDFLAGS="$save_LDFLAGS"
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17683 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17685 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17688 lt_prog_compiler_static_CXX=
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17695 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17696 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17697 $as_echo_n "(cached) " >&6
17699 lt_cv_prog_compiler_c_o_CXX=no
17700 $RM -r conftest 2>/dev/null
17704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17706 lt_compiler_flag="-o out/conftest2.$ac_objext"
17707 # Insert the option either (1) after the last *FLAGS variable, or
17708 # (2) before a word containing "conftest.", or (3) at the end.
17709 # Note that $ac_compile itself does not contain backslashes and begins
17710 # with a dollar sign (not a hyphen), so the echo should work correctly.
17711 lt_compile=`echo "$ac_compile" | $SED \
17712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17714 -e 's:$: $lt_compiler_flag:'`
17715 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17716 (eval "$lt_compile" 2>out/conftest.err)
17718 cat out/conftest.err >&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17722 # The compiler can only warn and ignore the option if not recognized
17723 # So say no if there are warnings
17724 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17725 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17726 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17727 lt_cv_prog_compiler_c_o_CXX=yes
17732 # SGI C++ compiler will create directory out/ii_files/ for
17733 # template instantiation
17734 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17735 $RM out/* && rmdir out
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17742 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17747 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17748 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17749 $as_echo_n "(cached) " >&6
17751 lt_cv_prog_compiler_c_o_CXX=no
17752 $RM -r conftest 2>/dev/null
17756 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17758 lt_compiler_flag="-o out/conftest2.$ac_objext"
17759 # Insert the option either (1) after the last *FLAGS variable, or
17760 # (2) before a word containing "conftest.", or (3) at the end.
17761 # Note that $ac_compile itself does not contain backslashes and begins
17762 # with a dollar sign (not a hyphen), so the echo should work correctly.
17763 lt_compile=`echo "$ac_compile" | $SED \
17764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17766 -e 's:$: $lt_compiler_flag:'`
17767 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17768 (eval "$lt_compile" 2>out/conftest.err)
17770 cat out/conftest.err >&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17774 # The compiler can only warn and ignore the option if not recognized
17775 # So say no if there are warnings
17776 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17777 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17778 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17779 lt_cv_prog_compiler_c_o_CXX=yes
17784 # SGI C++ compiler will create directory out/ii_files/ for
17785 # template instantiation
17786 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17787 $RM out/* && rmdir out
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17794 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17799 hard_links="nottested"
17800 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17801 # do not overwrite the value of need_locks provided by the user
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17803 $as_echo_n "checking if we can lock with hard links... " >&6; }
17806 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17808 ln conftest.a conftest.b 2>&5 || hard_links=no
17809 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17811 $as_echo "$hard_links" >&6; }
17812 if test "$hard_links" = no; then
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17814 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17824 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17826 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17827 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17830 # If we're using GNU nm, then we don't want the "-C" option.
17831 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17832 # Also, AIX nm treats weak defined symbols like other global defined
17833 # symbols, whereas GNU nm marks them as "W".
17834 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17835 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17837 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17841 export_symbols_cmds_CXX="$ltdll_cmds"
17843 cygwin* | mingw* | cegcc*)
17844 case $cc_basename in
17846 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17849 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17850 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17854 linux* | k*bsd*-gnu | gnu*)
17855 link_all_deplibs_CXX=no
17858 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17863 $as_echo "$ld_shlibs_CXX" >&6; }
17864 test "$ld_shlibs_CXX" = no && can_build_shared=no
17866 with_gnu_ld_CXX=$with_gnu_ld
17874 # Do we need to explicitly link libc?
17876 case "x$archive_cmds_need_lc_CXX" in
17878 # Assume -lc should be added
17879 archive_cmds_need_lc_CXX=yes
17881 if test "$enable_shared" = yes && test "$GCC" = yes; then
17882 case $archive_cmds_CXX in
17884 # FIXME: we may have to deal with multi-command sequences.
17887 # Test whether the compiler implicitly links with -lc since on some
17888 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17889 # to ld, don't add -lc before -lgcc.
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17891 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17892 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17893 $as_echo_n "(cached) " >&6
17896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17899 (eval $ac_compile) 2>&5
17901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17902 test $ac_status = 0; } 2>conftest.err; then
17905 libobjs=conftest.$ac_objext
17907 wl=$lt_prog_compiler_wl_CXX
17908 pic_flag=$lt_prog_compiler_pic_CXX
17914 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17915 allow_undefined_flag_CXX=
17916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17917 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17920 test $ac_status = 0; }
17922 lt_cv_archive_cmds_need_lc_CXX=no
17924 lt_cv_archive_cmds_need_lc_CXX=yes
17926 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17928 cat conftest.err 1>&5
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17934 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17935 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18004 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18006 library_names_spec=
18007 libname_spec='lib$name'
18011 postuninstall_cmds=
18015 shlibpath_overrides_runpath=unknown
18017 dynamic_linker="$host_os ld.so"
18018 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18019 need_lib_prefix=unknown
18020 hardcode_into_libs=no
18022 # when you set need_version to no, make sure it does not cause -set_version
18023 # flags to be left without arguments
18024 need_version=unknown
18028 version_type=linux # correct to gnu/linux during the next big refactor
18029 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18030 shlibpath_var=LIBPATH
18032 # AIX 3 has no versioning support, so we append a major version to the name.
18033 soname_spec='${libname}${release}${shared_ext}$major'
18037 version_type=linux # correct to gnu/linux during the next big refactor
18040 hardcode_into_libs=yes
18041 if test "$host_cpu" = ia64; then
18042 # AIX 5 supports IA64
18043 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18044 shlibpath_var=LD_LIBRARY_PATH
18046 # With GCC up to 2.95.x, collect2 would create an import file
18047 # for dependence libraries. The import file would start with
18048 # the line `#! .'. This would cause the generated library to
18049 # depend on `.', always an invalid library. This was fixed in
18050 # development snapshots of GCC prior to 3.0.
18052 aix4 | aix4.[01] | aix4.[01].*)
18053 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18055 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18058 can_build_shared=no
18062 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18063 # soname into executable. Probably we can add versioning support to
18064 # collect2, so additional links can be useful in future.
18065 if test "$aix_use_runtimelinking" = yes; then
18066 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18067 # instead of lib<name>.a to let people know that these are not
18068 # typical AIX shared libraries.
18069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18071 # We preserve .a as extension for shared libraries through AIX4.2
18072 # and later when we are not doing run time linking.
18073 library_names_spec='${libname}${release}.a $libname.a'
18074 soname_spec='${libname}${release}${shared_ext}$major'
18076 shlibpath_var=LIBPATH
18083 # Since July 2007 AmigaOS4 officially supports .so libraries.
18084 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18088 library_names_spec='$libname.ixlibrary $libname.a'
18089 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18090 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'
18096 library_names_spec='${libname}${shared_ext}'
18097 dynamic_linker="$host_os ld.so"
18098 shlibpath_var=LIBRARY_PATH
18102 version_type=linux # correct to gnu/linux during the next big refactor
18104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18105 soname_spec='${libname}${release}${shared_ext}$major'
18106 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18107 shlibpath_var=LD_LIBRARY_PATH
18108 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18109 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18110 # the default ld.so.conf also contains /usr/contrib/lib and
18111 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18112 # libtool to hard-code these into programs
18115 cygwin* | mingw* | pw32* | cegcc*)
18116 version_type=windows
18121 case $GCC,$cc_basename in
18124 library_names_spec='$libname.dll.a'
18125 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18126 postinstall_cmds='base_file=`basename \${file}`~
18127 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18128 dldir=$destdir/`dirname \$dlpath`~
18129 test -d \$dldir || mkdir -p \$dldir~
18130 $install_prog $dir/$dlname \$dldir/$dlname~
18131 chmod a+x \$dldir/$dlname~
18132 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18133 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18135 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18136 dlpath=$dir/\$dldll~
18138 shlibpath_overrides_runpath=yes
18142 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18143 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18147 # MinGW DLLs use traditional 'lib' prefix
18148 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18151 # pw32 DLLs use 'pw' prefix rather than 'lib'
18152 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18155 dynamic_linker='Win32 ld.exe'
18160 libname_spec='$name'
18161 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18162 library_names_spec='${libname}.dll.lib'
18166 sys_lib_search_path_spec=
18169 for lt_path in $LIB
18172 # Let DOS variable expansion print the short 8.3 style file name.
18173 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18174 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18177 # Convert to MSYS style.
18178 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18181 # Convert to unix form, then to dos form, then back to unix form
18182 # but this time dos style (no spaces!) so that the unix form looks
18183 # like /cygdrive/c/PROGRA~1:/cygdr...
18184 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18185 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18186 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18189 sys_lib_search_path_spec="$LIB"
18190 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18191 # It is most probably a Windows format PATH.
18192 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18194 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18196 # FIXME: find the short name or the path components, as spaces are
18197 # common. (e.g. "Program Files" -> "PROGRA~1")
18201 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18202 postinstall_cmds='base_file=`basename \${file}`~
18203 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18204 dldir=$destdir/`dirname \$dlpath`~
18205 test -d \$dldir || mkdir -p \$dldir~
18206 $install_prog $dir/$dlname \$dldir/$dlname'
18207 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18208 dlpath=$dir/\$dldll~
18210 shlibpath_overrides_runpath=yes
18211 dynamic_linker='Win32 link.exe'
18215 # Assume MSVC wrapper
18216 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18217 dynamic_linker='Win32 ld.exe'
18220 # FIXME: first we should search . and the directory the executable is in
18224 darwin* | rhapsody*)
18225 dynamic_linker="$host_os dyld"
18226 version_type=darwin
18229 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18230 soname_spec='${libname}${release}${major}$shared_ext'
18231 shlibpath_overrides_runpath=yes
18232 shlibpath_var=DYLD_LIBRARY_PATH
18233 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18235 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18239 version_type=linux # correct to gnu/linux during the next big refactor
18242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18243 soname_spec='${libname}${release}${shared_ext}$major'
18244 shlibpath_var=LD_LIBRARY_PATH
18247 freebsd* | dragonfly*)
18248 # DragonFly does not have aout. When/if they implement a new
18249 # versioning mechanism, adjust this.
18250 if test -x /usr/bin/objformat; then
18251 objformat=`/usr/bin/objformat`
18254 freebsd[23].*) objformat=aout ;;
18255 *) objformat=elf ;;
18258 version_type=freebsd-$objformat
18259 case $version_type in
18261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18266 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18270 shlibpath_var=LD_LIBRARY_PATH
18273 shlibpath_overrides_runpath=yes
18275 freebsd3.[01]* | freebsdelf3.[01]*)
18276 shlibpath_overrides_runpath=yes
18277 hardcode_into_libs=yes
18279 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18280 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18281 shlibpath_overrides_runpath=no
18282 hardcode_into_libs=yes
18284 *) # from 4.6 on, and DragonFly
18285 shlibpath_overrides_runpath=yes
18286 hardcode_into_libs=yes
18292 version_type=linux # correct to gnu/linux during the next big refactor
18295 dynamic_linker="$host_os runtime_loader"
18296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18297 soname_spec='${libname}${release}${shared_ext}$major'
18298 shlibpath_var=LIBRARY_PATH
18299 shlibpath_overrides_runpath=yes
18300 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18301 hardcode_into_libs=yes
18304 hpux9* | hpux10* | hpux11*)
18305 # Give a soname corresponding to the major version so that dld.sl refuses to
18306 # link against other versions.
18313 hardcode_into_libs=yes
18314 dynamic_linker="$host_os dld.so"
18315 shlibpath_var=LD_LIBRARY_PATH
18316 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18318 soname_spec='${libname}${release}${shared_ext}$major'
18319 if test "X$HPUX_IA64_MODE" = X32; then
18320 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18322 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18324 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18328 hardcode_into_libs=yes
18329 dynamic_linker="$host_os dld.sl"
18330 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18333 soname_spec='${libname}${release}${shared_ext}$major'
18334 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18335 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18339 dynamic_linker="$host_os dld.sl"
18340 shlibpath_var=SHLIB_PATH
18341 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18343 soname_spec='${libname}${release}${shared_ext}$major'
18346 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18347 postinstall_cmds='chmod 555 $lib'
18348 # or fails outright, so override atomically:
18349 install_override_mode=555
18353 version_type=linux # correct to gnu/linux during the next big refactor
18356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18357 soname_spec='${libname}${release}${shared_ext}$major'
18358 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18359 shlibpath_var=LD_LIBRARY_PATH
18360 shlibpath_overrides_runpath=no
18361 hardcode_into_libs=yes
18364 irix5* | irix6* | nonstopux*)
18366 nonstopux*) version_type=nonstopux ;;
18368 if test "$lt_cv_prog_gnu_ld" = yes; then
18369 version_type=linux # correct to gnu/linux during the next big refactor
18376 soname_spec='${libname}${release}${shared_ext}$major'
18377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18379 irix5* | nonstopux*)
18380 libsuff= shlibsuff=
18383 case $LD in # libtool.m4 will add one of these switches to LD
18384 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18385 libsuff= shlibsuff= libmagic=32-bit;;
18386 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18387 libsuff=32 shlibsuff=N32 libmagic=N32;;
18388 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18389 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18390 *) libsuff= shlibsuff= libmagic=never-match;;
18394 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18395 shlibpath_overrides_runpath=no
18396 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18397 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18398 hardcode_into_libs=yes
18401 # No shared lib support for Linux oldld, aout, or coff.
18402 linux*oldld* | linux*aout* | linux*coff*)
18406 # This must be glibc/ELF.
18407 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18408 version_type=linux # correct to gnu/linux during the next big refactor
18411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18412 soname_spec='${libname}${release}${shared_ext}$major'
18413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18414 shlibpath_var=LD_LIBRARY_PATH
18415 shlibpath_overrides_runpath=no
18417 # Some binutils ld are patched to set DT_RUNPATH
18418 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18419 $as_echo_n "(cached) " >&6
18421 lt_cv_shlibpath_overrides_runpath=no
18422 save_LDFLAGS=$LDFLAGS
18423 save_libdir=$libdir
18424 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18425 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18427 /* end confdefs.h. */
18437 if ac_fn_cxx_try_link "$LINENO"; then :
18438 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18439 lt_cv_shlibpath_overrides_runpath=yes
18442 rm -f core conftest.err conftest.$ac_objext \
18443 conftest$ac_exeext conftest.$ac_ext
18444 LDFLAGS=$save_LDFLAGS
18445 libdir=$save_libdir
18449 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18451 # This implies no fast_install, which is unacceptable.
18452 # Some rework will be needed to allow for fast_install
18453 # before this can be enabled.
18454 hardcode_into_libs=yes
18456 # Append ld.so.conf contents to the search path
18457 if test -f /etc/ld.so.conf; then
18458 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' ' '`
18459 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18462 # We used to test for /lib/ld.so.1 and disable shared libraries on
18463 # powerpc, because MkLinux only supported shared libraries with the
18464 # GNU dynamic linker. Since this was broken with cross compilers,
18465 # most powerpc-linux boxes support dynamic linking these days and
18466 # people can always --disable-shared, the test was removed, and we
18467 # assume the GNU/Linux dynamic linker is in use.
18468 dynamic_linker='GNU/Linux ld.so'
18475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18476 soname_spec='${libname}${release}${shared_ext}$major'
18477 shlibpath_var=LD_LIBRARY_PATH
18478 shlibpath_overrides_runpath=no
18479 hardcode_into_libs=yes
18480 dynamic_linker='NetBSD ld.elf_so'
18487 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18490 dynamic_linker='NetBSD (a.out) ld.so'
18492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18493 soname_spec='${libname}${release}${shared_ext}$major'
18494 dynamic_linker='NetBSD ld.elf_so'
18496 shlibpath_var=LD_LIBRARY_PATH
18497 shlibpath_overrides_runpath=yes
18498 hardcode_into_libs=yes
18502 version_type=linux # correct to gnu/linux during the next big refactor
18503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18504 shlibpath_var=LD_LIBRARY_PATH
18505 shlibpath_overrides_runpath=yes
18512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18513 soname_spec='${libname}${release}${shared_ext}$major'
18514 shlibpath_var=LD_LIBRARY_PATH
18515 shlibpath_overrides_runpath=no
18516 hardcode_into_libs=yes
18517 dynamic_linker='ldqnx.so'
18522 sys_lib_dlsearch_path_spec="/usr/lib"
18524 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18526 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18527 *) need_version=no ;;
18529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18531 shlibpath_var=LD_LIBRARY_PATH
18532 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18534 openbsd2.[89] | openbsd2.[89].*)
18535 shlibpath_overrides_runpath=no
18538 shlibpath_overrides_runpath=yes
18542 shlibpath_overrides_runpath=yes
18547 libname_spec='$name'
18550 library_names_spec='$libname${shared_ext} $libname.a'
18551 dynamic_linker='OS/2 ld.exe'
18552 shlibpath_var=LIBPATH
18555 osf3* | osf4* | osf5*)
18559 soname_spec='${libname}${release}${shared_ext}$major'
18560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18561 shlibpath_var=LD_LIBRARY_PATH
18562 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18563 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18571 version_type=linux # correct to gnu/linux during the next big refactor
18574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18575 soname_spec='${libname}${release}${shared_ext}$major'
18576 shlibpath_var=LD_LIBRARY_PATH
18577 shlibpath_overrides_runpath=yes
18578 hardcode_into_libs=yes
18579 # ldd complains unless libraries are executable
18580 postinstall_cmds='chmod +x $lib'
18585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18586 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18587 shlibpath_var=LD_LIBRARY_PATH
18588 shlibpath_overrides_runpath=yes
18589 if test "$with_gnu_ld" = yes; then
18596 version_type=linux # correct to gnu/linux during the next big refactor
18597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18598 soname_spec='${libname}${release}${shared_ext}$major'
18599 shlibpath_var=LD_LIBRARY_PATH
18600 case $host_vendor in
18602 shlibpath_overrides_runpath=no
18604 runpath_var=LD_RUN_PATH
18612 shlibpath_overrides_runpath=no
18613 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18619 if test -d /usr/nec ;then
18620 version_type=linux # correct to gnu/linux during the next big refactor
18621 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18622 soname_spec='$libname${shared_ext}.$major'
18623 shlibpath_var=LD_LIBRARY_PATH
18627 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18628 version_type=freebsd-elf
18631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18632 soname_spec='${libname}${release}${shared_ext}$major'
18633 shlibpath_var=LD_LIBRARY_PATH
18634 shlibpath_overrides_runpath=yes
18635 hardcode_into_libs=yes
18636 if test "$with_gnu_ld" = yes; then
18637 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18639 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18642 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18646 sys_lib_dlsearch_path_spec='/usr/lib'
18650 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18651 version_type=linux # correct to gnu/linux during the next big refactor
18654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18655 shlibpath_var=LD_LIBRARY_PATH
18656 shlibpath_overrides_runpath=no
18657 hardcode_into_libs=yes
18661 version_type=linux # correct to gnu/linux during the next big refactor
18662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18663 soname_spec='${libname}${release}${shared_ext}$major'
18664 shlibpath_var=LD_LIBRARY_PATH
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18672 $as_echo "$dynamic_linker" >&6; }
18673 test "$dynamic_linker" = no && can_build_shared=no
18675 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18676 if test "$GCC" = yes; then
18677 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18680 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18681 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18683 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18684 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18725 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18726 hardcode_action_CXX=
18727 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18728 test -n "$runpath_var_CXX" ||
18729 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18731 # We can hardcode non-existent directories.
18732 if test "$hardcode_direct_CXX" != no &&
18733 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18734 # have to relink, otherwise we might link with an installed library
18735 # when we should be linking with a yet-to-be-installed one
18736 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18737 test "$hardcode_minus_L_CXX" != no; then
18738 # Linking always hardcodes the temporary library directory.
18739 hardcode_action_CXX=relink
18741 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18742 hardcode_action_CXX=immediate
18745 # We cannot hardcode anything, or else we can only hardcode existing
18747 hardcode_action_CXX=unsupported
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18750 $as_echo "$hardcode_action_CXX" >&6; }
18752 if test "$hardcode_action_CXX" = relink ||
18753 test "$inherit_rpath_CXX" = yes; then
18754 # Fast installation is not supported
18755 enable_fast_install=no
18756 elif test "$shlibpath_overrides_runpath" = yes ||
18757 test "$enable_shared" = no; then
18758 # Fast installation is not necessary
18759 enable_fast_install=needless
18768 fi # test -n "$compiler"
18771 CFLAGS=$lt_save_CFLAGS
18775 with_gnu_ld=$lt_save_with_gnu_ld
18776 lt_cv_path_LDCXX=$lt_cv_path_LD
18777 lt_cv_path_LD=$lt_save_path_LD
18778 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18779 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18780 fi # test "$_lt_caught_CXX_error" != yes
18783 ac_cpp='$CPP $CPPFLAGS'
18784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18789 depcc="$CXX" am_compiler_list=
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18792 $as_echo_n "checking dependency style of $depcc... " >&6; }
18793 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
18794 $as_echo_n "(cached) " >&6
18796 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18797 # We make a subdir and do the tests there. Otherwise we can end up
18798 # making bogus files that we don't know about and never remove. For
18799 # instance it was reported that on HP-UX the gcc test will end up
18800 # making a dummy file named 'D' -- because '-MD' means "put the output
18802 rm -rf conftest.dir
18804 # Copy depcomp to subdir because otherwise we won't find it if we're
18805 # using a relative directory.
18806 cp "$am_depcomp" conftest.dir
18808 # We will build objects and dependencies in a subdirectory because
18809 # it helps to detect inapplicable dependency modes. For instance
18810 # both Tru64's cc and ICC support -MD to output dependencies as a
18811 # side effect of compilation, but ICC will put the dependencies in
18812 # the current directory while Tru64 will put them in the object
18816 am_cv_CXX_dependencies_compiler_type=none
18817 if test "$am_compiler_list" = ""; then
18818 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18820 am__universal=false
18821 case " $depcc " in #(
18822 *\ -arch\ *\ -arch\ *) am__universal=true ;;
18825 for depmode in $am_compiler_list; do
18826 # Setup a source with many dependencies, because some compilers
18827 # like to wrap large dependency lists on column 80 (with \), and
18828 # we should not choose a depcomp mode which is confused by this.
18830 # We need to recreate these files for each test, as the compiler may
18831 # overwrite some of them when testing with obscure command lines.
18832 # This happens at least with the AIX C compiler.
18834 for i in 1 2 3 4 5 6; do
18835 echo '#include "conftst'$i'.h"' >> sub/conftest.c
18836 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
18837 # Solaris 10 /bin/sh.
18838 echo '/* dummy */' > sub/conftst$i.h
18840 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18842 # We check with '-c' and '-o' for the sake of the "dashmstdout"
18843 # mode. It turns out that the SunPro C++ compiler does not properly
18844 # handle '-M -o', and we need to detect this. Also, some Intel
18845 # versions had trouble with output in subdirs.
18846 am__obj=sub/conftest.${OBJEXT-o}
18847 am__minus_obj="-o $am__obj"
18850 # This depmode causes a compiler race in universal mode.
18851 test "$am__universal" = false || continue
18854 # After this tag, mechanisms are not by side-effect, so they'll
18855 # only be used when explicitly requested.
18856 if test "x$enable_dependency_tracking" = xyes; then
18862 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
18863 # This compiler won't grok '-c -o', but also, the minuso test has
18864 # not run yet. These depmodes are late enough in the game, and
18865 # so weak that their functioning should not be impacted.
18866 am__obj=conftest.${OBJEXT-o}
18871 if depmode=$depmode \
18872 source=sub/conftest.c object=$am__obj \
18873 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18874 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18875 >/dev/null 2>conftest.err &&
18876 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18877 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18878 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18879 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18880 # icc doesn't choke on unknown options, it will just issue warnings
18881 # or remarks (even with -Werror). So we grep stderr for any message
18882 # that says an option was ignored or not supported.
18883 # When given -MP, icc 7.0 and 7.1 complain thusly:
18884 # icc: Command line warning: ignoring option '-M'; no argument required
18885 # The diagnosis changed in icc 8.0:
18886 # icc: Command line remark: option '-MP' not supported
18887 if (grep 'ignoring option' conftest.err ||
18888 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18889 am_cv_CXX_dependencies_compiler_type=$depmode
18896 rm -rf conftest.dir
18898 am_cv_CXX_dependencies_compiler_type=none
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
18903 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
18904 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
18907 test "x$enable_dependency_tracking" != xno \
18908 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
18909 am__fastdepCXX_TRUE=
18910 am__fastdepCXX_FALSE='#'
18912 am__fastdepCXX_TRUE='#'
18913 am__fastdepCXX_FALSE=
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
18919 $as_echo_n "checking whether ln -s works... " >&6; }
18921 if test "$LN_S" = "ln -s"; then
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18923 $as_echo "yes" >&6; }
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
18926 $as_echo "no, using $LN_S" >&6; }
18929 for ac_prog in gawk mawk nawk awk
18931 # Extract the first word of "$ac_prog", so it can be a program name with args.
18932 set dummy $ac_prog; ac_word=$2
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18934 $as_echo_n "checking for $ac_word... " >&6; }
18935 if ${ac_cv_prog_AWK+:} false; then :
18936 $as_echo_n "(cached) " >&6
18938 if test -n "$AWK"; then
18939 ac_cv_prog_AWK="$AWK" # Let the user override the test.
18941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18942 for as_dir in $PATH
18945 test -z "$as_dir" && as_dir=.
18946 for ac_exec_ext in '' $ac_executable_extensions; do
18947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18948 ac_cv_prog_AWK="$ac_prog"
18949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18958 AWK=$ac_cv_prog_AWK
18959 if test -n "$AWK"; then
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
18961 $as_echo "$AWK" >&6; }
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18964 $as_echo "no" >&6; }
18968 test -n "$AWK" && break
18973 # allow passing a variable `WARNINGFLAGS',
18974 # either when invoking `configure', or when invoking `make'
18975 # default to something useful if GCC was detected
18977 # Check whether --enable-warnings was given.
18978 if test "${enable_warnings+set}" = set; then :
18979 enableval=$enable_warnings; if test "x$GCC" = xyes; then :
18980 : ${WARNINGFLAGS="-Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs -Wold-style-definition -Wredundant-decls -Wconversion -Wno-unused-but-set-variable"}
18987 # Check whether --enable-libfl was given.
18988 if test "${enable_libfl+set}" = set; then :
18989 enableval=$enable_libfl;
18994 if test "x$enable_libfl" = xyes; then
18996 ENABLE_LIBFL_FALSE='#'
18998 ENABLE_LIBFL_TRUE='#'
18999 ENABLE_LIBFL_FALSE=
19003 # --disable-bootstrap is intended only to workaround problems with bootstrap
19004 # (e.g. when cross-compiling flex or when bootstrapping has bugs).
19005 # Ideally we should be able to bootstrap even when cross-compiling.
19006 # Check whether --enable-bootstrap was given.
19007 if test "${enable_bootstrap+set}" = set; then :
19008 enableval=$enable_bootstrap;
19010 enable_bootstrap=yes
19013 if test "x$enable_bootstrap" = xyes; then
19014 ENABLE_BOOTSTRAP_TRUE=
19015 ENABLE_BOOTSTRAP_FALSE='#'
19017 ENABLE_BOOTSTRAP_TRUE='#'
19018 ENABLE_BOOTSTRAP_FALSE=
19022 if test "x$cross_compiling" = xyes; then
19031 # Extract the first word of "help2man", so it can be a program name with args.
19032 set dummy help2man; ac_word=$2
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19034 $as_echo_n "checking for $ac_word... " >&6; }
19035 if ${ac_cv_path_HELP2MAN+:} false; then :
19036 $as_echo_n "(cached) " >&6
19040 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
19043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19044 for as_dir in $PATH
19047 test -z "$as_dir" && as_dir=.
19048 for ac_exec_ext in '' $ac_executable_extensions; do
19049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19050 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
19051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19058 test -z "$ac_cv_path_HELP2MAN" && ac_cv_path_HELP2MAN="\${top_srcdir}/build-aux/missing help2man"
19062 HELP2MAN=$ac_cv_path_HELP2MAN
19063 if test -n "$HELP2MAN"; then
19064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
19065 $as_echo "$HELP2MAN" >&6; }
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19068 $as_echo "no" >&6; }
19072 if test "$HELP2MAN" = "\${top_srcdir}/build-aux/missing help2man"; then :
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: help2man: program not found: building man page will not work" >&5
19074 $as_echo "$as_me: WARNING: help2man: program not found: building man page will not work" >&2;}
19078 for ac_prog in gtexi2dvi texi2dvi
19080 # Extract the first word of "$ac_prog", so it can be a program name with args.
19081 set dummy $ac_prog; ac_word=$2
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19083 $as_echo_n "checking for $ac_word... " >&6; }
19084 if ${ac_cv_path_TEXI2DVI+:} false; then :
19085 $as_echo_n "(cached) " >&6
19089 ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
19092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19093 for as_dir in $PATH
19096 test -z "$as_dir" && as_dir=.
19097 for ac_exec_ext in '' $ac_executable_extensions; do
19098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19099 ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
19100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19110 TEXI2DVI=$ac_cv_path_TEXI2DVI
19111 if test -n "$TEXI2DVI"; then
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2DVI" >&5
19113 $as_echo "$TEXI2DVI" >&6; }
19115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19116 $as_echo "no" >&6; }
19120 test -n "$TEXI2DVI" && break
19122 test -n "$TEXI2DVI" || TEXI2DVI="\${top_srcdir}/build-aux/missing texi2dvi"
19124 if test "$TEXI2DVI" = "\${top_srcdir}/build-aux/missing texi2dvi"; then :
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: texi2dvi: program not found: building pdf version of manual will not work" >&5
19126 $as_echo "$as_me: WARNING: texi2dvi: program not found: building pdf version of manual will not work" >&2;}
19130 # Check for a m4 that supports -P
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 that supports -P" >&5
19133 $as_echo_n "checking for m4 that supports -P... " >&6; }
19134 if ${ac_cv_path_M4+:} false; then :
19135 $as_echo_n "(cached) " >&6
19137 if test -z "$M4"; then
19138 ac_path_M4_found=false
19139 # Loop through the user's path and test for each of PROGNAME-LIST
19140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19141 for as_dir in $PATH
19144 test -z "$as_dir" && as_dir=.
19145 for ac_prog in gm4 gnum4 m4; do
19146 for ac_exec_ext in '' $ac_executable_extensions; do
19147 ac_path_M4="$as_dir/$ac_prog$ac_exec_ext"
19148 as_fn_executable_p "$ac_path_M4" || continue
19149 m4out=`echo 'm''4_divnum' | $ac_path_M4 -P`
19150 test "x$m4out" = x0 \
19151 && ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=:
19152 $ac_path_M4_found && break 3
19157 if test -z "$ac_cv_path_M4"; then
19158 as_fn_error $? "could not find m4 that supports -P" "$LINENO" 5
19165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_M4" >&5
19166 $as_echo "$ac_cv_path_M4" >&6; }
19170 cat >>confdefs.h <<_ACEOF
19175 # Extract the first word of "indent", so it can be a program name with args.
19176 set dummy indent; ac_word=$2
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19178 $as_echo_n "checking for $ac_word... " >&6; }
19179 if ${ac_cv_path_INDENT+:} false; then :
19180 $as_echo_n "(cached) " >&6
19184 ac_cv_path_INDENT="$INDENT" # Let the user override the test with a path.
19187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19188 for as_dir in $PATH
19191 test -z "$as_dir" && as_dir=.
19192 for ac_exec_ext in '' $ac_executable_extensions; do
19193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19194 ac_cv_path_INDENT="$as_dir/$ac_word$ac_exec_ext"
19195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19202 test -z "$ac_cv_path_INDENT" && ac_cv_path_INDENT="\${top_srcdir}/build-aux/missing indent"
19206 INDENT=$ac_cv_path_INDENT
19207 if test -n "$INDENT"; then
19208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5
19209 $as_echo "$INDENT" >&6; }
19211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19212 $as_echo "no" >&6; }
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $INDENT is GNU indent" >&5
19217 $as_echo_n "checking if $INDENT is GNU indent... " >&6; }
19218 if $INDENT --version 2>/dev/null | head -n 1 | grep "GNU indent" >/dev/null; then :
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19220 $as_echo "yes" >&6; }
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19223 $as_echo "no" >&6; }
19224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $INDENT does not appear to be GNU indent; 'make indent' may not function properly" >&5
19225 $as_echo "$as_me: WARNING: $INDENT does not appear to be GNU indent; 'make indent' may not function properly" >&2;}
19229 # checks for headers
19231 for ac_header in regex.h strings.h sys/stat.h sys/wait.h unistd.h
19233 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19234 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19235 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19236 cat >>confdefs.h <<_ACEOF
19237 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19241 as_fn_error $? "required header not found on your system" "$LINENO" 5
19247 for ac_header in inttypes.h libintl.h limits.h locale.h malloc.h netinet/in.h
19249 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19250 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19251 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19252 cat >>confdefs.h <<_ACEOF
19253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19261 # checks for libraries
19263 # The test test-pthread uses libpthread, so we check for it here, but
19264 # all we need is the preprocessor symbol defined since we don't need
19265 # LIBS to include libpthread for building flex.
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
19269 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
19270 if ${ac_cv_lib_pthread_pthread_mutex_lock+:} false; then :
19271 $as_echo_n "(cached) " >&6
19273 ac_check_lib_save_LIBS=$LIBS
19274 LIBS="-lpthread $LIBS"
19275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19276 /* end confdefs.h. */
19278 /* Override any GCC internal prototype to avoid an error.
19279 Use char because int might match the return type of a GCC
19280 builtin and then its argument prototype would still apply. */
19284 char pthread_mutex_lock ();
19288 return pthread_mutex_lock ();
19293 if ac_fn_c_try_link "$LINENO"; then :
19294 ac_cv_lib_pthread_pthread_mutex_lock=yes
19296 ac_cv_lib_pthread_pthread_mutex_lock=no
19298 rm -f core conftest.err conftest.$ac_objext \
19299 conftest$ac_exeext conftest.$ac_ext
19300 LIBS=$ac_check_lib_save_LIBS
19302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
19303 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
19304 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes; then :
19305 for ac_header in pthread.h
19307 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19308 if test "x$ac_cv_header_pthread_h" = xyes; then :
19309 cat >>confdefs.h <<_ACEOF
19310 #define HAVE_PTHREAD_H 1
19312 LIBPTHREAD=-lpthread
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread tests will be skipped" >&5
19315 $as_echo "$as_me: WARNING: pthread tests will be skipped" >&2;}
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread tests will be skipped" >&5
19322 $as_echo "$as_me: WARNING: pthread tests will be skipped" >&2;}
19327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10 in -lm" >&5
19328 $as_echo_n "checking for log10 in -lm... " >&6; }
19329 if ${ac_cv_lib_m_log10+:} false; then :
19330 $as_echo_n "(cached) " >&6
19332 ac_check_lib_save_LIBS=$LIBS
19334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19335 /* end confdefs.h. */
19337 /* Override any GCC internal prototype to avoid an error.
19338 Use char because int might match the return type of a GCC
19339 builtin and then its argument prototype would still apply. */
19352 if ac_fn_c_try_link "$LINENO"; then :
19353 ac_cv_lib_m_log10=yes
19355 ac_cv_lib_m_log10=no
19357 rm -f core conftest.err conftest.$ac_objext \
19358 conftest$ac_exeext conftest.$ac_ext
19359 LIBS=$ac_check_lib_save_LIBS
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10" >&5
19362 $as_echo "$ac_cv_lib_m_log10" >&6; }
19363 if test "x$ac_cv_lib_m_log10" = xyes; then :
19364 cat >>confdefs.h <<_ACEOF
19365 #define HAVE_LIBM 1
19373 # Checks for typedefs, structures, and compiler characteristics.
19375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19376 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19377 if ${ac_cv_header_stdbool_h+:} false; then :
19378 $as_echo_n "(cached) " >&6
19380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19381 /* end confdefs.h. */
19383 #include <stdbool.h>
19385 "error: bool is not defined"
19388 "error: false is not defined"
19391 "error: false is not 0"
19394 "error: true is not defined"
19397 "error: true is not 1"
19399 #ifndef __bool_true_false_are_defined
19400 "error: __bool_true_false_are_defined is not defined"
19403 struct s { _Bool s: 1; _Bool t; } s;
19405 char a[true == 1 ? 1 : -1];
19406 char b[false == 0 ? 1 : -1];
19407 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19408 char d[(bool) 0.5 == true ? 1 : -1];
19409 /* See body of main program for 'e'. */
19410 char f[(_Bool) 0.0 == false ? 1 : -1];
19412 char h[sizeof (_Bool)];
19413 char i[sizeof s.t];
19414 enum { j = false, k = true, l = false * true, m = true * 256 };
19415 /* The following fails for
19416 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19418 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19419 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19420 /* Catch a bug in an HP-UX C compiler. See
19421 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19422 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19434 /* Refer to every declared value, to avoid compiler optimizations. */
19435 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19436 + !m + !n + !o + !p + !q + !pq);
19442 if ac_fn_c_try_compile "$LINENO"; then :
19443 ac_cv_header_stdbool_h=yes
19445 ac_cv_header_stdbool_h=no
19447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19450 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19451 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19452 if test "x$ac_cv_type__Bool" = xyes; then :
19454 cat >>confdefs.h <<_ACEOF
19455 #define HAVE__BOOL 1
19462 if test $ac_cv_header_stdbool_h = yes; then
19464 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
19468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19469 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19470 if ${ac_cv_c_const+:} false; then :
19471 $as_echo_n "(cached) " >&6
19473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19474 /* end confdefs.h. */
19480 #ifndef __cplusplus
19481 /* Ultrix mips cc rejects this sort of thing. */
19482 typedef int charset[2];
19483 const charset cs = { 0, 0 };
19484 /* SunOS 4.1.1 cc rejects this. */
19485 char const *const *pcpcc;
19487 /* NEC SVR4.0.2 mips cc rejects this. */
19488 struct point {int x, y;};
19489 static struct point const zero = {0,0};
19490 /* AIX XL C 1.02.0.0 rejects this.
19491 It does not let you subtract one const X* pointer from another in
19492 an arm of an if-expression whose if-part is not a constant
19494 const char *g = "string";
19495 pcpcc = &g + (g ? g-g : 0);
19496 /* HPUX 7.0 cc rejects these. */
19498 ppc = (char**) pcpcc;
19499 pcpcc = (char const *const *) ppc;
19500 { /* SCO 3.2v4 cc rejects this sort of thing. */
19503 char const *s = 0 ? (char *) 0 : (char const *) 0;
19508 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19509 int x[] = {25, 17};
19510 const int *foo = &x[0];
19513 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19514 typedef const int *iptr;
19518 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19519 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19520 struct s { int j; const int *ap[3]; } bx;
19521 struct s *b = &bx; b->j = 5;
19523 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19524 const int foo = 10;
19525 if (!foo) return 0;
19527 return !cs[0] && !zero.x;
19534 if ac_fn_c_try_compile "$LINENO"; then :
19539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19542 $as_echo "$ac_cv_c_const" >&6; }
19543 if test $ac_cv_c_const = no; then
19545 $as_echo "#define const /**/" >>confdefs.h
19549 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19550 if test "x$ac_cv_type_size_t" = xyes; then :
19554 cat >>confdefs.h <<_ACEOF
19555 #define size_t unsigned int
19561 # Checks for library functions.
19563 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19564 # for constant arguments. Useless!
19565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19566 $as_echo_n "checking for working alloca.h... " >&6; }
19567 if ${ac_cv_working_alloca_h+:} false; then :
19568 $as_echo_n "(cached) " >&6
19570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19571 /* end confdefs.h. */
19572 #include <alloca.h>
19576 char *p = (char *) alloca (2 * sizeof (int));
19582 if ac_fn_c_try_link "$LINENO"; then :
19583 ac_cv_working_alloca_h=yes
19585 ac_cv_working_alloca_h=no
19587 rm -f core conftest.err conftest.$ac_objext \
19588 conftest$ac_exeext conftest.$ac_ext
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19591 $as_echo "$ac_cv_working_alloca_h" >&6; }
19592 if test $ac_cv_working_alloca_h = yes; then
19594 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19599 $as_echo_n "checking for alloca... " >&6; }
19600 if ${ac_cv_func_alloca_works+:} false; then :
19601 $as_echo_n "(cached) " >&6
19603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19604 /* end confdefs.h. */
19606 # define alloca __builtin_alloca
19609 # include <malloc.h>
19610 # define alloca _alloca
19612 # ifdef HAVE_ALLOCA_H
19613 # include <alloca.h>
19618 # ifndef alloca /* predefined by HP cc +Olibcalls */
19619 void *alloca (size_t);
19629 char *p = (char *) alloca (1);
19635 if ac_fn_c_try_link "$LINENO"; then :
19636 ac_cv_func_alloca_works=yes
19638 ac_cv_func_alloca_works=no
19640 rm -f core conftest.err conftest.$ac_objext \
19641 conftest$ac_exeext conftest.$ac_ext
19643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19644 $as_echo "$ac_cv_func_alloca_works" >&6; }
19646 if test $ac_cv_func_alloca_works = yes; then
19648 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19651 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19652 # that cause trouble. Some versions do not even contain alloca or
19653 # contain a buggy version. If you still want to use their alloca,
19654 # use ar to extract alloca.o from them instead of compiling alloca.c.
19656 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19658 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19662 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19663 if ${ac_cv_os_cray+:} false; then :
19664 $as_echo_n "(cached) " >&6
19666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19667 /* end confdefs.h. */
19668 #if defined CRAY && ! defined CRAY2
19675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19676 $EGREP "webecray" >/dev/null 2>&1; then :
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19685 $as_echo "$ac_cv_os_cray" >&6; }
19686 if test $ac_cv_os_cray = yes; then
19687 for ac_func in _getb67 GETB67 getb67; do
19688 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19689 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19690 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19692 cat >>confdefs.h <<_ACEOF
19693 #define CRAY_STACKSEG_END $ac_func
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19703 $as_echo_n "checking stack direction for C alloca... " >&6; }
19704 if ${ac_cv_c_stack_direction+:} false; then :
19705 $as_echo_n "(cached) " >&6
19707 if test "$cross_compiling" = yes; then :
19708 ac_cv_c_stack_direction=0
19710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19711 /* end confdefs.h. */
19712 $ac_includes_default
19714 find_stack_direction (int *addr, int depth)
19716 int dir, dummy = 0;
19719 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19720 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19721 return dir + dummy;
19725 main (int argc, char **argv)
19727 return find_stack_direction (0, argc + !argv + 20) < 0;
19730 if ac_fn_c_try_run "$LINENO"; then :
19731 ac_cv_c_stack_direction=1
19733 ac_cv_c_stack_direction=-1
19735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19736 conftest.$ac_objext conftest.beam conftest.$ac_ext
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19741 $as_echo "$ac_cv_c_stack_direction" >&6; }
19742 cat >>confdefs.h <<_ACEOF
19743 #define STACK_DIRECTION $ac_cv_c_stack_direction
19749 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19750 if test "x$ac_cv_type_pid_t" = xyes; then :
19754 cat >>confdefs.h <<_ACEOF
19760 for ac_header in vfork.h
19762 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19763 if test "x$ac_cv_header_vfork_h" = xyes; then :
19764 cat >>confdefs.h <<_ACEOF
19765 #define HAVE_VFORK_H 1
19772 for ac_func in fork vfork
19774 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19775 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19776 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19777 cat >>confdefs.h <<_ACEOF
19778 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19784 if test "x$ac_cv_func_fork" = xyes; then
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19786 $as_echo_n "checking for working fork... " >&6; }
19787 if ${ac_cv_func_fork_works+:} false; then :
19788 $as_echo_n "(cached) " >&6
19790 if test "$cross_compiling" = yes; then :
19791 ac_cv_func_fork_works=cross
19793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19794 /* end confdefs.h. */
19795 $ac_includes_default
19800 /* By Ruediger Kuhlmann. */
19801 return fork () < 0;
19807 if ac_fn_c_try_run "$LINENO"; then :
19808 ac_cv_func_fork_works=yes
19810 ac_cv_func_fork_works=no
19812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19813 conftest.$ac_objext conftest.beam conftest.$ac_ext
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19818 $as_echo "$ac_cv_func_fork_works" >&6; }
19821 ac_cv_func_fork_works=$ac_cv_func_fork
19823 if test "x$ac_cv_func_fork_works" = xcross; then
19825 *-*-amigaos* | *-*-msdosdjgpp*)
19826 # Override, as these systems have only a dummy fork() stub
19827 ac_cv_func_fork_works=no
19830 ac_cv_func_fork_works=yes
19833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19834 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19836 ac_cv_func_vfork_works=$ac_cv_func_vfork
19837 if test "x$ac_cv_func_vfork" = xyes; then
19838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19839 $as_echo_n "checking for working vfork... " >&6; }
19840 if ${ac_cv_func_vfork_works+:} false; then :
19841 $as_echo_n "(cached) " >&6
19843 if test "$cross_compiling" = yes; then :
19844 ac_cv_func_vfork_works=cross
19846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19847 /* end confdefs.h. */
19848 /* Thanks to Paul Eggert for this test. */
19849 $ac_includes_default
19850 #include <sys/wait.h>
19851 #ifdef HAVE_VFORK_H
19852 # include <vfork.h>
19854 /* On some sparc systems, changes by the child to local and incoming
19855 argument registers are propagated back to the parent. The compiler
19856 is told about this with #include <vfork.h>, but some compilers
19857 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19858 static variable whose address is put into a register that is
19859 clobbered by the vfork. */
19862 sparc_address_test (int arg)
19864 sparc_address_test (arg) int arg;
19867 static pid_t child;
19885 pid_t parent = getpid ();
19888 sparc_address_test (0);
19893 /* Here is another test for sparc vfork register problems. This
19894 test uses lots of local variables, at least as many local
19895 variables as main has allocated so far including compiler
19896 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19897 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19898 reuse the register of parent for one of the local variables,
19899 since it will think that parent can't possibly be used any more
19900 in this routine. Assigning to the local variable will thus
19901 munge parent in the parent process. */
19903 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19904 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19905 /* Convince the compiler that p..p7 are live; otherwise, it might
19906 use the same hardware register for all 8 local variables. */
19907 if (p != p1 || p != p2 || p != p3 || p != p4
19908 || p != p5 || p != p6 || p != p7)
19911 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19912 from child file descriptors. If the child closes a descriptor
19913 before it execs or exits, this munges the parent's descriptor
19914 as well. Test for this by closing stdout in the child. */
19915 _exit(close(fileno(stdout)) != 0);
19920 while (wait(&status) != child)
19923 /* Was there some problem with vforking? */
19926 /* Did the child fail? (This shouldn't happen.) */
19929 /* Did the vfork/compiler bug occur? */
19930 || parent != getpid()
19932 /* Did the file descriptor bug occur? */
19933 || fstat(fileno(stdout), &st) != 0
19938 if ac_fn_c_try_run "$LINENO"; then :
19939 ac_cv_func_vfork_works=yes
19941 ac_cv_func_vfork_works=no
19943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19944 conftest.$ac_objext conftest.beam conftest.$ac_ext
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19949 $as_echo "$ac_cv_func_vfork_works" >&6; }
19952 if test "x$ac_cv_func_fork_works" = xcross; then
19953 ac_cv_func_vfork_works=$ac_cv_func_vfork
19954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19955 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19958 if test "x$ac_cv_func_vfork_works" = xyes; then
19960 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19964 $as_echo "#define vfork fork" >>confdefs.h
19967 if test "x$ac_cv_func_fork_works" = xyes; then
19969 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19973 for ac_header in stdlib.h
19975 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
19976 if test "x$ac_cv_header_stdlib_h" = xyes; then :
19977 cat >>confdefs.h <<_ACEOF
19978 #define HAVE_STDLIB_H 1
19985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
19986 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
19987 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
19988 $as_echo_n "(cached) " >&6
19990 if test "$cross_compiling" = yes; then :
19991 ac_cv_func_malloc_0_nonnull=no
19993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19994 /* end confdefs.h. */
19995 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
19996 # include <stdlib.h>
20004 return ! malloc (0);
20009 if ac_fn_c_try_run "$LINENO"; then :
20010 ac_cv_func_malloc_0_nonnull=yes
20012 ac_cv_func_malloc_0_nonnull=no
20014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20015 conftest.$ac_objext conftest.beam conftest.$ac_ext
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
20020 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
20021 if test $ac_cv_func_malloc_0_nonnull = yes; then :
20023 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
20026 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
20028 case " $LIBOBJS " in
20029 *" malloc.$ac_objext "* ) ;;
20030 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
20035 $as_echo "#define malloc rpl_malloc" >>confdefs.h
20040 if test "$cross_compiling" = yes; then :
20041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_malloc_0_nonnull guessed because of cross compilation" >&5
20042 $as_echo "$as_me: WARNING: result $ac_cv_func_malloc_0_nonnull guessed because of cross compilation" >&2;}
20044 for ac_header in stdlib.h
20046 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
20047 if test "x$ac_cv_header_stdlib_h" = xyes; then :
20048 cat >>confdefs.h <<_ACEOF
20049 #define HAVE_STDLIB_H 1
20056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
20057 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
20058 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
20059 $as_echo_n "(cached) " >&6
20061 if test "$cross_compiling" = yes; then :
20062 ac_cv_func_realloc_0_nonnull=no
20064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20065 /* end confdefs.h. */
20066 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
20067 # include <stdlib.h>
20075 return ! realloc (0, 0);
20080 if ac_fn_c_try_run "$LINENO"; then :
20081 ac_cv_func_realloc_0_nonnull=yes
20083 ac_cv_func_realloc_0_nonnull=no
20085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20086 conftest.$ac_objext conftest.beam conftest.$ac_ext
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
20091 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
20092 if test $ac_cv_func_realloc_0_nonnull = yes; then :
20094 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
20097 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
20099 case " $LIBOBJS " in
20100 *" realloc.$ac_objext "* ) ;;
20101 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
20106 $as_echo "#define realloc rpl_realloc" >>confdefs.h
20111 if test "$cross_compiling" = yes; then :
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_realloc_0_nonnull guessed because of cross compilation" >&5
20113 $as_echo "$as_me: WARNING: result $ac_cv_func_realloc_0_nonnull guessed because of cross compilation" >&2;}
20116 for ac_func in dup2 memset regcomp strcasecmp strchr strdup strtol
20118 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20119 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20120 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20121 cat >>confdefs.h <<_ACEOF
20122 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20126 as_fn_error $? "required library function not found on your system" "$LINENO" 5
20131 # Optional library functions
20132 for ac_func in pow setlocale reallocarray
20134 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20135 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20136 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20137 cat >>confdefs.h <<_ACEOF
20138 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20145 ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile examples/fastwc/Makefile examples/manual/Makefile po/Makefile.in src/Makefile tools/Makefile tests/Makefile"
20148 cat >confcache <<\_ACEOF
20149 # This file is a shell script that caches the results of configure
20150 # tests run on this system so they can be shared between configure
20151 # scripts and configure runs, see configure's option --config-cache.
20152 # It is not useful on other systems. If it contains results you don't
20153 # want to keep, you may remove or edit it.
20155 # config.status only pays attention to the cache file if you give it
20156 # the --recheck option to rerun configure.
20158 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20159 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20160 # following values.
20164 # The following way of writing the cache mishandles newlines in values,
20165 # but we know of no workaround that is simple, portable, and efficient.
20166 # So, we kill variables containing newlines.
20167 # Ultrix sh set writes to stderr and can't be redirected directly,
20168 # and sets the high bit in the cache file unless we assign to the vars.
20170 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20171 eval ac_val=\$$ac_var
20175 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20176 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20179 _ | IFS | as_nl) ;; #(
20180 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20181 *) { eval $ac_var=; unset $ac_var;} ;;
20187 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20188 *${as_nl}ac_space=\ *)
20189 # `set' does not quote correctly, so add quotes: double-quote
20190 # substitution turns \\\\ into \\, and sed turns \\ into \.
20193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20196 # `set' quotes correctly as required by POSIX, so do not add quotes.
20197 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20206 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20208 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20210 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20211 if test -w "$cache_file"; then
20212 if test "x$cache_file" != "x/dev/null"; then
20213 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20214 $as_echo "$as_me: updating cache $cache_file" >&6;}
20215 if test ! -f "$cache_file" || test -h "$cache_file"; then
20216 cat confcache >"$cache_file"
20218 case $cache_file in #(
20220 mv -f confcache "$cache_file"$$ &&
20221 mv -f "$cache_file"$$ "$cache_file" ;; #(
20223 mv -f confcache "$cache_file" ;;
20228 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20229 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20234 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20235 # Let make expand exec_prefix.
20236 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20238 DEFS=-DHAVE_CONFIG_H
20243 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20244 # 1. Remove the extension, and $U if already installed.
20245 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20246 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20247 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20248 # will be set to the directory where LIBOBJS objects are built.
20249 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20250 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20252 LIBOBJS=$ac_libobjs
20254 LTLIBOBJS=$ac_ltlibobjs
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20258 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20259 if test -n "$am_sleep_pid"; then
20260 # Hide warnings about reused PIDs.
20261 wait $am_sleep_pid 2>/dev/null
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20264 $as_echo "done" >&6; }
20265 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20266 as_fn_error $? "conditional \"AMDEP\" was never defined.
20267 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20269 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20270 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20273 if test -n "$EXEEXT"; then
20275 am__EXEEXT_FALSE='#'
20277 am__EXEEXT_TRUE='#'
20281 if test -z "${HAVE_BISON_TRUE}" && test -z "${HAVE_BISON_FALSE}"; then
20282 as_fn_error $? "conditional \"HAVE_BISON\" was never defined.
20283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20285 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20286 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20289 if test -z "${ENABLE_LIBFL_TRUE}" && test -z "${ENABLE_LIBFL_FALSE}"; then
20290 as_fn_error $? "conditional \"ENABLE_LIBFL\" was never defined.
20291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20293 if test -z "${ENABLE_BOOTSTRAP_TRUE}" && test -z "${ENABLE_BOOTSTRAP_FALSE}"; then
20294 as_fn_error $? "conditional \"ENABLE_BOOTSTRAP\" was never defined.
20295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20297 if test -z "${CROSS_TRUE}" && test -z "${CROSS_FALSE}"; then
20298 as_fn_error $? "conditional \"CROSS\" was never defined.
20299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20302 : "${CONFIG_STATUS=./config.status}"
20304 ac_clean_files_save=$ac_clean_files
20305 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20307 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20309 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20311 # Generated by $as_me.
20312 # Run this file to recreate the current configuration.
20313 # Compiler output produced by configure, useful for debugging
20314 # configure, is in config.log if it exists.
20317 ac_cs_recheck=false
20320 SHELL=\${CONFIG_SHELL-$SHELL}
20323 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20324 ## -------------------- ##
20325 ## M4sh Initialization. ##
20326 ## -------------------- ##
20328 # Be more Bourne compatible
20329 DUALCASE=1; export DUALCASE # for MKS sh
20330 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20333 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20334 # is contrary to our usage. Disable this feature.
20335 alias -g '${1+"$@"}'='"$@"'
20336 setopt NO_GLOB_SUBST
20338 case `(set -o) 2>/dev/null` in #(
20350 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20351 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20352 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20353 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20354 # Prefer a ksh shell builtin over an external printf program on Solaris,
20355 # but without wasting forks for bash or zsh.
20356 if test -z "$BASH_VERSION$ZSH_VERSION" \
20357 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20358 as_echo='print -r --'
20359 as_echo_n='print -rn --'
20360 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20361 as_echo='printf %s\n'
20362 as_echo_n='printf %s'
20364 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20365 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20366 as_echo_n='/usr/ucb/echo -n'
20368 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20369 as_echo_n_body='eval
20373 expr "X$arg" : "X\\(.*\\)$as_nl";
20374 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20376 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20378 export as_echo_n_body
20379 as_echo_n='sh -c $as_echo_n_body as_echo'
20381 export as_echo_body
20382 as_echo='sh -c $as_echo_body as_echo'
20385 # The user is always right.
20386 if test "${PATH_SEPARATOR+set}" != set; then
20388 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20389 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20396 # We need space, tab and new line, in precisely that order. Quoting is
20397 # there to prevent editors from complaining about space-tab.
20398 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20399 # splitting by setting IFS to empty value.)
20402 # Find who we are. Look in the path if we contain no directory separator.
20405 *[\\/]* ) as_myself=$0 ;;
20406 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20407 for as_dir in $PATH
20410 test -z "$as_dir" && as_dir=.
20411 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20417 # We did not find ourselves, most probably we were run as `sh COMMAND'
20418 # in which case we are not to be found in the path.
20419 if test "x$as_myself" = x; then
20422 if test ! -f "$as_myself"; then
20423 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20427 # Unset variables that we do not need and which cause bugs (e.g. in
20428 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20429 # suppresses any "Segmentation fault" message there. '((' could
20430 # trigger a bug in pdksh 5.2.14.
20431 for as_var in BASH_ENV ENV MAIL MAILPATH
20432 do eval test x\${$as_var+set} = xset \
20433 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20446 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20449 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20450 # ----------------------------------------
20451 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20452 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20453 # script with STATUS, using 1 if that was 0.
20456 as_status=$1; test $as_status -eq 0 && as_status=1
20458 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20459 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20461 $as_echo "$as_me: error: $2" >&2
20462 as_fn_exit $as_status
20466 # as_fn_set_status STATUS
20467 # -----------------------
20468 # Set $? to STATUS, without forking.
20469 as_fn_set_status ()
20472 } # as_fn_set_status
20474 # as_fn_exit STATUS
20475 # -----------------
20476 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20480 as_fn_set_status $1
20486 # Portably unset VAR.
20489 { eval $1=; unset $1;}
20491 as_unset=as_fn_unset
20492 # as_fn_append VAR VALUE
20493 # ----------------------
20494 # Append the text in VALUE to the end of the definition contained in VAR. Take
20495 # advantage of any shell optimizations that allow amortized linear growth over
20496 # repeated appends, instead of the typical quadratic growth present in naive
20498 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20499 eval 'as_fn_append ()
20510 # as_fn_arith ARG...
20511 # ------------------
20512 # Perform arithmetic evaluation on the ARGs, and store the result in the
20513 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20514 # must be portable across $(()) and expr.
20515 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20516 eval 'as_fn_arith ()
20523 as_val=`expr "$@" || test $? -eq 1`
20528 if expr a : '\(a\)' >/dev/null 2>&1 &&
20529 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20535 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20536 as_basename=basename
20541 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20547 as_me=`$as_basename -- "$0" ||
20548 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20549 X"$0" : 'X\(//\)$' \| \
20550 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20552 sed '/^.*\/\([^/][^/]*\)\/*$/{
20566 # Avoid depending upon Character Ranges.
20567 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20568 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20569 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20570 as_cr_digits='0123456789'
20571 as_cr_alnum=$as_cr_Letters$as_cr_digits
20573 ECHO_C= ECHO_N= ECHO_T=
20574 case `echo -n x` in #(((((
20576 case `echo 'xy\c'` in
20577 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20579 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20586 rm -f conf$$ conf$$.exe conf$$.file
20587 if test -d conf$$.dir; then
20588 rm -f conf$$.dir/conf$$.file
20591 mkdir conf$$.dir 2>/dev/null
20593 if (echo >conf$$.file) 2>/dev/null; then
20594 if ln -s conf$$.file conf$$ 2>/dev/null; then
20596 # ... but there are two gotchas:
20597 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20598 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20599 # In both cases, we have to default to `cp -pR'.
20600 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20602 elif ln conf$$.file conf$$ 2>/dev/null; then
20610 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20611 rmdir conf$$.dir 2>/dev/null
20616 # Create "$as_dir" as a directory, including parents if necessary.
20621 -*) as_dir=./$as_dir;;
20623 test -d "$as_dir" || eval $as_mkdir_p || {
20627 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20628 *) as_qdir=$as_dir;;
20630 as_dirs="'$as_qdir' $as_dirs"
20631 as_dir=`$as_dirname -- "$as_dir" ||
20632 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20633 X"$as_dir" : 'X\(//\)[^/]' \| \
20634 X"$as_dir" : 'X\(//\)$' \| \
20635 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20636 $as_echo X"$as_dir" |
20637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20641 /^X\(\/\/\)[^/].*/{
20654 test -d "$as_dir" && break
20656 test -z "$as_dirs" || eval "mkdir $as_dirs"
20657 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20661 if mkdir -p . 2>/dev/null; then
20662 as_mkdir_p='mkdir -p "$as_dir"'
20664 test -d ./-p && rmdir ./-p
20669 # as_fn_executable_p FILE
20670 # -----------------------
20671 # Test if FILE is an executable regular file.
20672 as_fn_executable_p ()
20674 test -f "$1" && test -x "$1"
20675 } # as_fn_executable_p
20676 as_test_x='test -x'
20677 as_executable_p=as_fn_executable_p
20679 # Sed expression to map a string onto a valid CPP name.
20680 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20682 # Sed expression to map a string onto a valid variable name.
20683 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20687 ## ----------------------------------- ##
20688 ## Main body of $CONFIG_STATUS script. ##
20689 ## ----------------------------------- ##
20691 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20694 # Save the log message, to keep $0 and so on meaningful, and to
20695 # report actual input values of CONFIG_FILES etc. instead of their
20696 # values after options handling.
20698 This file was extended by the fast lexical analyser generator $as_me 2.6.4, which was
20699 generated by GNU Autoconf 2.69. Invocation command line was
20701 CONFIG_FILES = $CONFIG_FILES
20702 CONFIG_HEADERS = $CONFIG_HEADERS
20703 CONFIG_LINKS = $CONFIG_LINKS
20704 CONFIG_COMMANDS = $CONFIG_COMMANDS
20707 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20712 case $ac_config_files in *"
20713 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20716 case $ac_config_headers in *"
20717 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20722 # Files that config.status was made for.
20723 config_files="$ac_config_files"
20724 config_headers="$ac_config_headers"
20725 config_commands="$ac_config_commands"
20729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20731 \`$as_me' instantiates files and other configuration actions
20732 from templates according to the current configuration. Unless the files
20733 and actions are specified as TAGs, all are instantiated by default.
20735 Usage: $0 [OPTION]... [TAG]...
20737 -h, --help print this help, then exit
20738 -V, --version print version number and configuration settings, then exit
20739 --config print configuration, then exit
20740 -q, --quiet, --silent
20741 do not print progress messages
20742 -d, --debug don't remove temporary files
20743 --recheck update $as_me by reconfiguring in the same conditions
20744 --file=FILE[:TEMPLATE]
20745 instantiate the configuration file FILE
20746 --header=FILE[:TEMPLATE]
20747 instantiate the configuration header FILE
20749 Configuration files:
20752 Configuration headers:
20755 Configuration commands:
20758 Report bugs to <flex-help@lists.sourceforge.net>."
20761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20762 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20764 the fast lexical analyser generator config.status 2.6.4
20765 configured by $0, generated by GNU Autoconf 2.69,
20766 with options \\"\$ac_cs_config\\"
20768 Copyright (C) 2012 Free Software Foundation, Inc.
20769 This config.status script is free software; the Free Software Foundation
20770 gives unlimited permission to copy, distribute and modify it."
20777 test -n "\$AWK" || AWK=awk
20780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20781 # The default lists apply if the user does not specify any file.
20787 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20788 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20792 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20804 # Handling of the options.
20805 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20807 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20808 $as_echo "$ac_cs_version"; exit ;;
20809 --config | --confi | --conf | --con | --co | --c )
20810 $as_echo "$ac_cs_config"; exit ;;
20811 --debug | --debu | --deb | --de | --d | -d )
20813 --file | --fil | --fi | --f )
20816 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20817 '') as_fn_error $? "missing file argument" ;;
20819 as_fn_append CONFIG_FILES " '$ac_optarg'"
20820 ac_need_defaults=false;;
20821 --header | --heade | --head | --hea )
20824 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20826 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20827 ac_need_defaults=false;;
20829 # Conflict between --help and --header
20830 as_fn_error $? "ambiguous option: \`$1'
20831 Try \`$0 --help' for more information.";;
20832 --help | --hel | -h )
20833 $as_echo "$ac_cs_usage"; exit ;;
20834 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20835 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20838 # This is an error.
20839 -*) as_fn_error $? "unrecognized option: \`$1'
20840 Try \`$0 --help' for more information." ;;
20842 *) as_fn_append ac_config_targets " $1"
20843 ac_need_defaults=false ;;
20849 ac_configure_extra_args=
20851 if $ac_cs_silent; then
20853 ac_configure_extra_args="$ac_configure_extra_args --silent"
20857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20858 if \$ac_cs_recheck; then
20859 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20861 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20862 CONFIG_SHELL='$SHELL'
20863 export CONFIG_SHELL
20868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20872 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20873 ## Running $as_me. ##
20879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20885 # The HP-UX ksh and POSIX shell print the target directory to stdout
20886 # if CDPATH is set.
20887 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20889 sed_quote_subst='$sed_quote_subst'
20890 double_quote_subst='$double_quote_subst'
20891 delay_variable_subst='$delay_variable_subst'
20892 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20893 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20894 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20895 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20896 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20897 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20898 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20899 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20900 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20901 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20902 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20903 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20904 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20905 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20906 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20907 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20908 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20909 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20910 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20911 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20912 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20913 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20914 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20915 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20916 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20917 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20918 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20919 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20920 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20921 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20922 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20923 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20924 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20925 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20926 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20927 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20928 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20929 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20930 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20931 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20932 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20933 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20934 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20935 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20936 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20937 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20938 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20939 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20940 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20941 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20942 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20943 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20944 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20945 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20946 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20947 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20948 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"`'
20949 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20950 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20951 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20952 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20953 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20954 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20955 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20956 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20957 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20958 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20959 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20960 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20961 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20962 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20963 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20964 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20965 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20966 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20967 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20968 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20969 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20970 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20971 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20972 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20973 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20974 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20975 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20976 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20977 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20978 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20979 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20980 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20981 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20982 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20983 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20984 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20985 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20986 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20987 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20988 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20989 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20990 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20991 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20992 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20993 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20994 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20995 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20996 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20997 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20998 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20999 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21000 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21001 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21002 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21003 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21004 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21005 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21006 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21007 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21008 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21009 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21010 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21011 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21012 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21013 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21014 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21015 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21016 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21017 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21018 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21019 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21020 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21021 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21022 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21023 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21024 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21025 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21026 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21027 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21028 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21029 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21030 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21031 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21032 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21033 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21034 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21035 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21036 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21037 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21038 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21039 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21040 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21041 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21042 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21043 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21044 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21045 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21046 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21047 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21048 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21049 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21050 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21051 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21052 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21053 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21054 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21055 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21056 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21057 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21058 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21059 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21060 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21061 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21062 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21063 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21064 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21065 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21066 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21067 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21068 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21069 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21070 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21071 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21072 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21073 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21074 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21075 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21078 LTCFLAGS='$LTCFLAGS'
21079 compiler='$compiler_DEFAULT'
21081 # A function that is used when there is no print builtin or printf.
21082 func_fallback_echo ()
21084 eval 'cat <<_LTECHO_EOF
21089 # Quote evaled strings.
21104 deplibs_check_method \
21109 sharedlib_from_linklib_cmd \
21112 archiver_list_spec \
21118 lt_cv_sys_global_symbol_pipe \
21119 lt_cv_sys_global_symbol_to_cdecl \
21120 lt_cv_sys_global_symbol_to_c_name_address \
21121 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21122 nm_file_list_spec \
21123 lt_prog_compiler_no_builtin_flag \
21124 lt_prog_compiler_pic \
21125 lt_prog_compiler_wl \
21126 lt_prog_compiler_static \
21127 lt_cv_prog_compiler_c_o \
21136 export_dynamic_flag_spec \
21137 whole_archive_flag_spec \
21138 compiler_needs_object \
21140 allow_undefined_flag \
21141 no_undefined_flag \
21142 hardcode_libdir_flag_spec \
21143 hardcode_libdir_separator \
21147 variables_saved_for_relink \
21149 library_names_spec \
21151 install_override_mode \
21155 compiler_lib_search_dirs \
21160 compiler_lib_search_path \
21164 lt_prog_compiler_no_builtin_flag_CXX \
21165 lt_prog_compiler_pic_CXX \
21166 lt_prog_compiler_wl_CXX \
21167 lt_prog_compiler_static_CXX \
21168 lt_cv_prog_compiler_c_o_CXX \
21169 export_dynamic_flag_spec_CXX \
21170 whole_archive_flag_spec_CXX \
21171 compiler_needs_object_CXX \
21173 allow_undefined_flag_CXX \
21174 no_undefined_flag_CXX \
21175 hardcode_libdir_flag_spec_CXX \
21176 hardcode_libdir_separator_CXX \
21177 exclude_expsyms_CXX \
21178 include_expsyms_CXX \
21179 file_list_spec_CXX \
21180 compiler_lib_search_dirs_CXX \
21181 predep_objects_CXX \
21182 postdep_objects_CXX \
21185 compiler_lib_search_path_CXX; do
21186 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21187 *[\\\\\\\`\\"\\\$]*)
21188 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21191 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21196 # Double-quote double-evaled strings.
21197 for var in reload_cmds \
21198 old_postinstall_cmds \
21199 old_postuninstall_cmds \
21201 extract_expsyms_cmds \
21202 old_archive_from_new_cmds \
21203 old_archive_from_expsyms_cmds \
21205 archive_expsym_cmds \
21207 module_expsym_cmds \
21208 export_symbols_cmds \
21212 postuninstall_cmds \
21214 sys_lib_search_path_spec \
21215 sys_lib_dlsearch_path_spec \
21217 old_archive_cmds_CXX \
21218 old_archive_from_new_cmds_CXX \
21219 old_archive_from_expsyms_cmds_CXX \
21221 archive_expsym_cmds_CXX \
21223 module_expsym_cmds_CXX \
21224 export_symbols_cmds_CXX \
21226 postlink_cmds_CXX; do
21227 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21228 *[\\\\\\\`\\"\\\$]*)
21229 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21232 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21237 ac_aux_dir='$ac_aux_dir'
21238 xsi_shell='$xsi_shell'
21239 lt_shell_append='$lt_shell_append'
21241 # See if we are running on zsh, and set the options which allow our
21242 # commands through without removal of \ escapes INIT.
21243 if test -n "\${ZSH_VERSION+set}" ; then
21244 setopt NO_GLOB_SUBST
21250 TIMESTAMP='$TIMESTAMP'
21258 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21259 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21260 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21261 # from automake < 1.5.
21262 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21263 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21264 LINGUAS="${LINGUAS-%UNSET%}"
21269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21271 # Handling of arguments.
21272 for ac_config_target in $ac_config_targets
21274 case $ac_config_target in
21275 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21276 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21277 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21278 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
21279 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21280 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21281 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
21282 "examples/fastwc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/fastwc/Makefile" ;;
21283 "examples/manual/Makefile") CONFIG_FILES="$CONFIG_FILES examples/manual/Makefile" ;;
21284 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21285 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21286 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21287 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21289 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21294 # If the user did not use the arguments to specify the items to instantiate,
21295 # then the envvar interface is used. Set only those that are not.
21296 # We use the long form for the default assignment because of an extremely
21297 # bizarre bug on SunOS 4.1.3.
21298 if $ac_need_defaults; then
21299 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21300 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21301 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21304 # Have a temporary directory for convenience. Make it in the build tree
21305 # simply because there is no reason against having it here, and in addition,
21306 # creating and moving files from /tmp can sometimes cause problems.
21307 # Hook for its removal unless debugging.
21308 # Note that there is a small window in which the directory will not be cleaned:
21309 # after its creation but before its name has been assigned to `$tmp'.
21313 trap 'exit_status=$?
21314 : "${ac_tmp:=$tmp}"
21315 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21317 trap 'as_fn_exit 1' 1 2 13 15
21319 # Create a (secure) tmp directory for tmp files.
21322 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21326 tmp=./conf$$-$RANDOM
21327 (umask 077 && mkdir "$tmp")
21328 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21331 # Set up the scripts for CONFIG_FILES section.
21332 # No need to generate them if there are no CONFIG_FILES.
21333 # This happens for instance with `./config.status config.h'.
21334 if test -n "$CONFIG_FILES"; then
21337 ac_cr=`echo X | tr X '\015'`
21338 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21339 # But we know of no other shell where ac_cr would be empty at this
21340 # point, so we can use a bashism as a fallback.
21341 if test "x$ac_cr" = x; then
21342 eval ac_cr=\$\'\\r\'
21344 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21345 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21348 ac_cs_awk_cr=$ac_cr
21351 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21356 echo "cat >conf$$subs.awk <<_ACEOF" &&
21357 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21359 } >conf$$subs.sh ||
21360 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21361 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21363 for ac_last_try in false false false false false :; do
21364 . ./conf$$subs.sh ||
21365 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21367 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21368 if test $ac_delim_n = $ac_delim_num; then
21370 elif $ac_last_try; then
21371 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21373 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21376 rm -f conf$$subs.sh
21378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21379 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21383 s/^/S["/; s/!.*/"]=/
21393 s/\(.\{148\}\)..*/\1/
21395 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21400 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21407 s/\(.\{148\}\)..*/\1/
21409 s/["\\]/\\&/g; s/^/"/; s/$/"/
21413 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21418 ' <conf$$subs.awk | sed '
21423 ' >>$CONFIG_STATUS || ac_write_fail=1
21424 rm -f conf$$subs.awk
21425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21427 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21428 for (key in S) S_is_set[key] = 1
21434 nfields = split(line, field, "@")
21436 len = length(field[1])
21437 for (i = 2; i < nfields; i++) {
21439 keylen = length(key)
21440 if (S_is_set[key]) {
21442 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21443 len += length(value) + length(field[++i])
21454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21455 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21456 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21459 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21460 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21463 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21464 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21465 # trailing colons and then remove the whole line if VPATH becomes empty
21466 # (actually we leave an empty line to preserve line numbers).
21467 if test "x$srcdir" = x.; then
21468 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21487 fi # test -n "$CONFIG_FILES"
21489 # Set up the scripts for CONFIG_HEADERS section.
21490 # No need to generate them if there are no CONFIG_HEADERS.
21491 # This happens for instance with `./config.status Makefile'.
21492 if test -n "$CONFIG_HEADERS"; then
21493 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21497 # Transform confdefs.h into an awk script `defines.awk', embedded as
21498 # here-document in config.status, that substitutes the proper values into
21499 # config.h.in to produce config.h.
21501 # Create a delimiter string that does not exist in confdefs.h, to ease
21502 # handling of long lines.
21504 for ac_last_try in false false :; do
21505 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21506 if test -z "$ac_tt"; then
21508 elif $ac_last_try; then
21509 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21511 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21515 # For the awk script, D is an array of macro values keyed by name,
21516 # likewise P contains macro parameters if any. Preserve backslash
21517 # newline sequences.
21519 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21521 s/.\{148\}/&'"$ac_delim"'/g
21524 s/^[ ]*#[ ]*define[ ][ ]*/ /
21531 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21533 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21537 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21538 D["\1"]=" \3\\\\\\n"\\/p
21540 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21545 s/.\{148\}/&'"$ac_delim"'/g
21550 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21553 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21555 ' <confdefs.h | sed '
21556 s/'"$ac_delim"'/"\\\
21557 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21560 for (key in D) D_is_set[key] = 1
21563 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21565 split(line, arg, " ")
21566 if (arg[1] == "#") {
21570 defundef = substr(arg[1], 2)
21573 split(mac1, mac2, "(") #)
21575 prefix = substr(line, 1, index(line, defundef) - 1)
21576 if (D_is_set[macro]) {
21577 # Preserve the white space surrounding the "#".
21578 print prefix "define", macro P[macro] D[macro]
21581 # Replace #undef with comments. This is necessary, for example,
21582 # in the case of _POSIX_SOURCE, which is predefined and required
21583 # on some systems where configure will not decide to define it.
21584 if (defundef == "undef") {
21585 print "/*", prefix defundef, macro, "*/"
21593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21594 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21595 fi # test -n "$CONFIG_HEADERS"
21598 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21603 :[FHLC]) ac_mode=$ac_tag; continue;;
21605 case $ac_mode$ac_tag in
21607 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21608 :[FH]-) ac_tag=-:-;;
21609 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21626 -) ac_f="$ac_tmp/stdin";;
21627 *) # Look for the file first in the build tree, then in the source tree
21628 # (if the path is not absolute). The absolute path cannot be DOS-style,
21629 # because $ac_f cannot contain `:'.
21633 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21635 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21637 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21638 as_fn_append ac_file_inputs " '$ac_f'"
21641 # Let's still pretend it is `configure' which instantiates (i.e., don't
21642 # use $as_me), people would be surprised to read:
21643 # /* config.h. Generated by config.status. */
21644 configure_input='Generated from '`
21645 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21647 if test x"$ac_file" != x-; then
21648 configure_input="$ac_file. $configure_input"
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21650 $as_echo "$as_me: creating $ac_file" >&6;}
21652 # Neutralize special characters interpreted by sed in replacement strings.
21653 case $configure_input in #(
21654 *\&* | *\|* | *\\* )
21655 ac_sed_conf_input=`$as_echo "$configure_input" |
21656 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21657 *) ac_sed_conf_input=$configure_input;;
21661 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21662 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21667 ac_dir=`$as_dirname -- "$ac_file" ||
21668 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21669 X"$ac_file" : 'X\(//\)[^/]' \| \
21670 X"$ac_file" : 'X\(//\)$' \| \
21671 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21672 $as_echo X"$ac_file" |
21673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21677 /^X\(\/\/\)[^/].*/{
21690 as_dir="$ac_dir"; as_fn_mkdir_p
21694 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21696 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21697 # A ".." for each directory in $ac_dir_suffix.
21698 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21699 case $ac_top_builddir_sub in
21700 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21701 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21704 ac_abs_top_builddir=$ac_pwd
21705 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21706 # for backward compatibility:
21707 ac_top_builddir=$ac_top_build_prefix
21710 .) # We are building in place.
21712 ac_top_srcdir=$ac_top_builddir_sub
21713 ac_abs_top_srcdir=$ac_pwd ;;
21714 [\\/]* | ?:[\\/]* ) # Absolute name.
21715 ac_srcdir=$srcdir$ac_dir_suffix;
21716 ac_top_srcdir=$srcdir
21717 ac_abs_top_srcdir=$srcdir ;;
21718 *) # Relative name.
21719 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21720 ac_top_srcdir=$ac_top_build_prefix$srcdir
21721 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21723 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21733 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21734 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21736 ac_MKDIR_P=$MKDIR_P
21738 [\\/$]* | ?:[\\/]* ) ;;
21739 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21744 # If the template does not know about datarootdir, expand it.
21745 # FIXME: This hack should be removed a few years after 2.60.
21746 ac_datarootdir_hack=; ac_datarootdir_seen=
21757 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21758 *datarootdir*) ac_datarootdir_seen=yes;;
21759 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21761 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21764 ac_datarootdir_hack='
21765 s&@datadir@&$datadir&g
21766 s&@docdir@&$docdir&g
21767 s&@infodir@&$infodir&g
21768 s&@localedir@&$localedir&g
21769 s&@mandir@&$mandir&g
21770 s&\\\${datarootdir}&$datarootdir&g' ;;
21774 # Neutralize VPATH when `$srcdir' = `.'.
21775 # Shell code in configure.ac might set extrasub.
21776 # FIXME: do we really want to maintain this feature?
21777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21778 ac_sed_extra="$ac_vpsub
21781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21783 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21784 s|@configure_input@|$ac_sed_conf_input|;t t
21785 s&@top_builddir@&$ac_top_builddir_sub&;t t
21786 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21787 s&@srcdir@&$ac_srcdir&;t t
21788 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21789 s&@top_srcdir@&$ac_top_srcdir&;t t
21790 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21791 s&@builddir@&$ac_builddir&;t t
21792 s&@abs_builddir@&$ac_abs_builddir&;t t
21793 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21794 s&@INSTALL@&$ac_INSTALL&;t t
21795 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21796 $ac_datarootdir_hack
21798 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21799 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21801 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21802 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21803 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21804 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21806 which seems to be undefined. Please make sure it is defined" >&5
21807 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21808 which seems to be undefined. Please make sure it is defined" >&2;}
21810 rm -f "$ac_tmp/stdin"
21812 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21813 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21815 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21821 if test x"$ac_file" != x-; then
21823 $as_echo "/* $configure_input */" \
21824 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21825 } >"$ac_tmp/config.h" \
21826 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21827 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21829 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21832 mv "$ac_tmp/config.h" "$ac_file" \
21833 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21836 $as_echo "/* $configure_input */" \
21837 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21838 || as_fn_error $? "could not create -" "$LINENO" 5
21840 # Compute "$ac_file"'s index in $config_headers.
21843 for _am_header in $config_headers :; do
21844 case $_am_header in
21845 $_am_arg | $_am_arg:* )
21848 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21851 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21852 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21853 X"$_am_arg" : 'X\(//\)[^/]' \| \
21854 X"$_am_arg" : 'X\(//\)$' \| \
21855 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21856 $as_echo X"$_am_arg" |
21857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21861 /^X\(\/\/\)[^/].*/{
21873 s/.*/./; q'`/stamp-h$_am_stamp_count
21876 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21877 $as_echo "$as_me: executing $ac_file commands" >&6;}
21882 case $ac_file$ac_mode in
21885 # See if we are running on zsh, and set the options which allow our
21886 # commands through without removal of \ escapes.
21887 if test -n "${ZSH_VERSION+set}" ; then
21888 setopt NO_GLOB_SUBST
21891 cfgfile="${ofile}T"
21892 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21895 cat <<_LT_EOF >> "$cfgfile"
21898 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21899 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21900 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21901 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21903 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21904 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21906 # Written by Gordon Matzigkeit, 1996
21908 # This file is part of GNU Libtool.
21910 # GNU Libtool is free software; you can redistribute it and/or
21911 # modify it under the terms of the GNU General Public License as
21912 # published by the Free Software Foundation; either version 2 of
21913 # the License, or (at your option) any later version.
21915 # As a special exception to the GNU General Public License,
21916 # if you distribute this file as part of a program or library that
21917 # is built using GNU Libtool, you may include this file under the
21918 # same distribution terms that you use for the rest of that program.
21920 # GNU Libtool is distributed in the hope that it will be useful,
21921 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21922 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21923 # GNU General Public License for more details.
21925 # You should have received a copy of the GNU General Public License
21926 # along with GNU Libtool; see the file COPYING. If not, a copy
21927 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21928 # obtained by writing to the Free Software Foundation, Inc.,
21929 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21932 # The names of the tagged configurations supported by this script.
21933 available_tags="CXX "
21935 # ### BEGIN LIBTOOL CONFIG
21937 # Which release of libtool.m4 was used?
21938 macro_version=$macro_version
21939 macro_revision=$macro_revision
21941 # Whether or not to build shared libraries.
21942 build_libtool_libs=$enable_shared
21944 # Whether or not to build static libraries.
21945 build_old_libs=$enable_static
21947 # What type of objects to build.
21950 # Whether or not to optimize for fast installation.
21951 fast_install=$enable_fast_install
21953 # Shell to use when invoking shell scripts.
21956 # An echo program that protects backslashes.
21959 # The PATH separator for the build system.
21960 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21963 host_alias=$host_alias
21967 # The build system.
21968 build_alias=$build_alias
21972 # A sed program that does not truncate output.
21975 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21976 Xsed="\$SED -e 1s/^X//"
21978 # A grep program that handles long lines.
21984 # A literal string matcher.
21987 # A BSD- or MS-compatible name lister.
21990 # Whether we need soft or hard links.
21993 # What is the maximum length of a command?
21994 max_cmd_len=$max_cmd_len
21996 # Object file suffix (normally "o").
21999 # Executable file suffix (normally "").
22002 # whether the shell understands "unset".
22005 # turn spaces into newlines.
22008 # turn newlines into spaces.
22011 # convert \$build file names to \$host format.
22012 to_host_file_cmd=$lt_cv_to_host_file_cmd
22014 # convert \$build files to toolchain format.
22015 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22017 # An object symbol dumper.
22018 OBJDUMP=$lt_OBJDUMP
22020 # Method to check whether dependent libraries are shared objects.
22021 deplibs_check_method=$lt_deplibs_check_method
22023 # Command to use when deplibs_check_method = "file_magic".
22024 file_magic_cmd=$lt_file_magic_cmd
22026 # How to find potential files when deplibs_check_method = "file_magic".
22027 file_magic_glob=$lt_file_magic_glob
22029 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22030 want_nocaseglob=$lt_want_nocaseglob
22032 # DLL creation program.
22033 DLLTOOL=$lt_DLLTOOL
22035 # Command to associate shared and link libraries.
22036 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22041 # Flags to create an archive.
22042 AR_FLAGS=$lt_AR_FLAGS
22044 # How to feed a file listing to the archiver.
22045 archiver_list_spec=$lt_archiver_list_spec
22047 # A symbol stripping program.
22050 # Commands used to install an old-style archive.
22052 old_postinstall_cmds=$lt_old_postinstall_cmds
22053 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22055 # Whether to use a lock for old archive extraction.
22056 lock_old_archive_extraction=$lock_old_archive_extraction
22061 # LTCC compiler flags.
22062 LTCFLAGS=$lt_CFLAGS
22064 # Take the output of nm and produce a listing of raw symbols and C names.
22065 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22067 # Transform the output of nm in a proper C declaration.
22068 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22070 # Transform the output of nm in a C name address pair.
22071 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22073 # Transform the output of nm in a C name address pair when lib prefix is needed.
22074 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22076 # Specify filename containing input files for \$NM.
22077 nm_file_list_spec=$lt_nm_file_list_spec
22079 # The root where to search for dependent libraries,and in which our libraries should be installed.
22080 lt_sysroot=$lt_sysroot
22082 # The name of the directory that contains temporary libtool files.
22085 # Used to examine libraries when file_magic_cmd begins with "file".
22086 MAGIC_CMD=$MAGIC_CMD
22088 # Must we lock files when doing compilation?
22089 need_locks=$lt_need_locks
22092 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22094 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22095 DSYMUTIL=$lt_DSYMUTIL
22097 # Tool to change global to local symbols on Mac OS X.
22100 # Tool to manipulate fat objects and archives on Mac OS X.
22103 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22106 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22107 OTOOL64=$lt_OTOOL64
22109 # Old archive suffix (normally "a").
22112 # Shared library suffix (normally ".so").
22113 shrext_cmds=$lt_shrext_cmds
22115 # The commands to extract the exported symbol list from a shared archive.
22116 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22118 # Variables whose values should be saved in libtool wrapper scripts and
22119 # restored at link time.
22120 variables_saved_for_relink=$lt_variables_saved_for_relink
22122 # Do we need the "lib" prefix for modules?
22123 need_lib_prefix=$need_lib_prefix
22125 # Do we need a version for libraries?
22126 need_version=$need_version
22128 # Library versioning type.
22129 version_type=$version_type
22131 # Shared library runtime path variable.
22132 runpath_var=$runpath_var
22134 # Shared library path variable.
22135 shlibpath_var=$shlibpath_var
22137 # Is shlibpath searched before the hard-coded library search path?
22138 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22140 # Format of library name prefix.
22141 libname_spec=$lt_libname_spec
22143 # List of archive names. First name is the real one, the rest are links.
22144 # The last name is the one that the linker finds with -lNAME
22145 library_names_spec=$lt_library_names_spec
22147 # The coded name of the library, if different from the real name.
22148 soname_spec=$lt_soname_spec
22150 # Permission mode override for installation of shared libraries.
22151 install_override_mode=$lt_install_override_mode
22153 # Command to use after installation of a shared archive.
22154 postinstall_cmds=$lt_postinstall_cmds
22156 # Command to use after uninstallation of a shared archive.
22157 postuninstall_cmds=$lt_postuninstall_cmds
22159 # Commands used to finish a libtool library installation in a directory.
22160 finish_cmds=$lt_finish_cmds
22162 # As "finish_cmds", except a single script fragment to be evaled but
22164 finish_eval=$lt_finish_eval
22166 # Whether we should hardcode library paths into libraries.
22167 hardcode_into_libs=$hardcode_into_libs
22169 # Compile-time system search path for libraries.
22170 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22172 # Run-time system search path for libraries.
22173 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22175 # Whether dlopen is supported.
22176 dlopen_support=$enable_dlopen
22178 # Whether dlopen of programs is supported.
22179 dlopen_self=$enable_dlopen_self
22181 # Whether dlopen of statically linked programs is supported.
22182 dlopen_self_static=$enable_dlopen_self_static
22184 # Commands to strip libraries.
22185 old_striplib=$lt_old_striplib
22186 striplib=$lt_striplib
22189 # The linker used to build libraries.
22192 # How to create reloadable object files.
22193 reload_flag=$lt_reload_flag
22194 reload_cmds=$lt_reload_cmds
22196 # Commands used to build an old-style archive.
22197 old_archive_cmds=$lt_old_archive_cmds
22199 # A language specific compiler.
22202 # Is the compiler the GNU compiler?
22205 # Compiler flag to turn off builtin functions.
22206 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22208 # Additional compiler flags for building library objects.
22209 pic_flag=$lt_lt_prog_compiler_pic
22211 # How to pass a linker flag through the compiler.
22212 wl=$lt_lt_prog_compiler_wl
22214 # Compiler flag to prevent dynamic linking.
22215 link_static_flag=$lt_lt_prog_compiler_static
22217 # Does compiler simultaneously support -c and -o options?
22218 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22220 # Whether or not to add -lc for building shared libraries.
22221 build_libtool_need_lc=$archive_cmds_need_lc
22223 # Whether or not to disallow shared libs when runtime libs are static.
22224 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22226 # Compiler flag to allow reflexive dlopens.
22227 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22229 # Compiler flag to generate shared objects directly from archives.
22230 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22232 # Whether the compiler copes with passing no objects directly.
22233 compiler_needs_object=$lt_compiler_needs_object
22235 # Create an old-style archive from a shared archive.
22236 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22238 # Create a temporary old-style archive to link instead of a shared archive.
22239 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22241 # Commands used to build a shared archive.
22242 archive_cmds=$lt_archive_cmds
22243 archive_expsym_cmds=$lt_archive_expsym_cmds
22245 # Commands used to build a loadable module if different from building
22246 # a shared archive.
22247 module_cmds=$lt_module_cmds
22248 module_expsym_cmds=$lt_module_expsym_cmds
22250 # Whether we are building with GNU ld or not.
22251 with_gnu_ld=$lt_with_gnu_ld
22253 # Flag that allows shared libraries with undefined symbols to be built.
22254 allow_undefined_flag=$lt_allow_undefined_flag
22256 # Flag that enforces no undefined symbols.
22257 no_undefined_flag=$lt_no_undefined_flag
22259 # Flag to hardcode \$libdir into a binary during linking.
22260 # This must work even if \$libdir does not exist
22261 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22263 # Whether we need a single "-rpath" flag with a separated argument.
22264 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22266 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22267 # DIR into the resulting binary.
22268 hardcode_direct=$hardcode_direct
22270 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22271 # DIR into the resulting binary and the resulting library dependency is
22272 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22273 # library is relocated.
22274 hardcode_direct_absolute=$hardcode_direct_absolute
22276 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22277 # into the resulting binary.
22278 hardcode_minus_L=$hardcode_minus_L
22280 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22281 # into the resulting binary.
22282 hardcode_shlibpath_var=$hardcode_shlibpath_var
22284 # Set to "yes" if building a shared library automatically hardcodes DIR
22285 # into the library and all subsequent libraries and executables linked
22287 hardcode_automatic=$hardcode_automatic
22289 # Set to yes if linker adds runtime paths of dependent libraries
22290 # to runtime path list.
22291 inherit_rpath=$inherit_rpath
22293 # Whether libtool must link a program against all its dependency libraries.
22294 link_all_deplibs=$link_all_deplibs
22296 # Set to "yes" if exported symbols are required.
22297 always_export_symbols=$always_export_symbols
22299 # The commands to list exported symbols.
22300 export_symbols_cmds=$lt_export_symbols_cmds
22302 # Symbols that should not be listed in the preloaded symbols.
22303 exclude_expsyms=$lt_exclude_expsyms
22305 # Symbols that must always be exported.
22306 include_expsyms=$lt_include_expsyms
22308 # Commands necessary for linking programs (against libraries) with templates.
22309 prelink_cmds=$lt_prelink_cmds
22311 # Commands necessary for finishing linking programs.
22312 postlink_cmds=$lt_postlink_cmds
22314 # Specify filename containing input files.
22315 file_list_spec=$lt_file_list_spec
22317 # How to hardcode a shared library path into an executable.
22318 hardcode_action=$hardcode_action
22320 # The directories searched by this compiler when creating a shared library.
22321 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22323 # Dependencies to place before and after the objects being linked to
22324 # create a shared library.
22325 predep_objects=$lt_predep_objects
22326 postdep_objects=$lt_postdep_objects
22327 predeps=$lt_predeps
22328 postdeps=$lt_postdeps
22330 # The library search path used internally by the compiler when linking
22331 # a shared library.
22332 compiler_lib_search_path=$lt_compiler_lib_search_path
22334 # ### END LIBTOOL CONFIG
22340 cat <<\_LT_EOF >> "$cfgfile"
22341 # AIX sometimes has problems with the GCC collect2 program. For some
22342 # reason, if we set the COLLECT_NAMES environment variable, the problems
22343 # vanish in a puff of smoke.
22344 if test "X${COLLECT_NAMES+set}" != Xset; then
22346 export COLLECT_NAMES
22353 ltmain="$ac_aux_dir/ltmain.sh"
22356 # We use sed instead of cat because bash on DJGPP gets confused if
22357 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22358 # text mode, it properly converts lines to CR/LF. This bash problem
22359 # is reportedly fixed, but why not run on old versions too?
22360 sed '$q' "$ltmain" >> "$cfgfile" \
22361 || (rm -f "$cfgfile"; exit 1)
22363 if test x"$xsi_shell" = xyes; then
22364 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22368 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22369 \ * ) func_dirname_result="${3}" ;;\
22371 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22372 && mv -f "$cfgfile.tmp" "$cfgfile" \
22373 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22374 test 0 -eq $? || _lt_function_replace_fail=:
22377 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22380 \ func_basename_result="${1##*/}"\
22381 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22382 && mv -f "$cfgfile.tmp" "$cfgfile" \
22383 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22384 test 0 -eq $? || _lt_function_replace_fail=:
22387 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22388 func_dirname_and_basename ()\
22391 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22392 \ * ) func_dirname_result="${3}" ;;\
22394 \ func_basename_result="${1##*/}"\
22395 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22396 && mv -f "$cfgfile.tmp" "$cfgfile" \
22397 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22398 test 0 -eq $? || _lt_function_replace_fail=:
22401 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22404 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22405 \ # positional parameters, so assign one to ordinary parameter first.\
22406 \ func_stripname_result=${3}\
22407 \ func_stripname_result=${func_stripname_result#"${1}"}\
22408 \ func_stripname_result=${func_stripname_result%"${2}"}\
22409 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22410 && mv -f "$cfgfile.tmp" "$cfgfile" \
22411 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22412 test 0 -eq $? || _lt_function_replace_fail=:
22415 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22416 func_split_long_opt ()\
22418 \ func_split_long_opt_name=${1%%=*}\
22419 \ func_split_long_opt_arg=${1#*=}\
22420 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22421 && mv -f "$cfgfile.tmp" "$cfgfile" \
22422 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22423 test 0 -eq $? || _lt_function_replace_fail=:
22426 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22427 func_split_short_opt ()\
22429 \ func_split_short_opt_arg=${1#??}\
22430 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22431 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22432 && mv -f "$cfgfile.tmp" "$cfgfile" \
22433 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22434 test 0 -eq $? || _lt_function_replace_fail=:
22437 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22441 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22442 \ *) func_lo2o_result=${1} ;;\
22444 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22445 && mv -f "$cfgfile.tmp" "$cfgfile" \
22446 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22447 test 0 -eq $? || _lt_function_replace_fail=:
22450 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22453 func_xform_result=${1%.*}.lo\
22454 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22455 && mv -f "$cfgfile.tmp" "$cfgfile" \
22456 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22457 test 0 -eq $? || _lt_function_replace_fail=:
22460 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22463 func_arith_result=$(( $* ))\
22464 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22465 && mv -f "$cfgfile.tmp" "$cfgfile" \
22466 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22467 test 0 -eq $? || _lt_function_replace_fail=:
22470 sed -e '/^func_len ()$/,/^} # func_len /c\
22473 func_len_result=${#1}\
22474 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22475 && mv -f "$cfgfile.tmp" "$cfgfile" \
22476 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22477 test 0 -eq $? || _lt_function_replace_fail=:
22481 if test x"$lt_shell_append" = xyes; then
22482 sed -e '/^func_append ()$/,/^} # func_append /c\
22485 eval "${1}+=\\${2}"\
22486 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22487 && mv -f "$cfgfile.tmp" "$cfgfile" \
22488 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22489 test 0 -eq $? || _lt_function_replace_fail=:
22492 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22493 func_append_quoted ()\
22495 \ func_quote_for_eval "${2}"\
22496 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22497 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22498 && mv -f "$cfgfile.tmp" "$cfgfile" \
22499 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22500 test 0 -eq $? || _lt_function_replace_fail=:
22503 # Save a `func_append' function call where possible by direct use of '+='
22504 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22505 && mv -f "$cfgfile.tmp" "$cfgfile" \
22506 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22507 test 0 -eq $? || _lt_function_replace_fail=:
22509 # Save a `func_append' function call even when '+=' is not available
22510 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22511 && mv -f "$cfgfile.tmp" "$cfgfile" \
22512 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22513 test 0 -eq $? || _lt_function_replace_fail=:
22516 if test x"$_lt_function_replace_fail" = x":"; then
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22518 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22522 mv -f "$cfgfile" "$ofile" ||
22523 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22527 cat <<_LT_EOF >> "$ofile"
22529 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22531 # The linker used to build libraries.
22534 # How to create reloadable object files.
22535 reload_flag=$lt_reload_flag_CXX
22536 reload_cmds=$lt_reload_cmds_CXX
22538 # Commands used to build an old-style archive.
22539 old_archive_cmds=$lt_old_archive_cmds_CXX
22541 # A language specific compiler.
22542 CC=$lt_compiler_CXX
22544 # Is the compiler the GNU compiler?
22547 # Compiler flag to turn off builtin functions.
22548 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22550 # Additional compiler flags for building library objects.
22551 pic_flag=$lt_lt_prog_compiler_pic_CXX
22553 # How to pass a linker flag through the compiler.
22554 wl=$lt_lt_prog_compiler_wl_CXX
22556 # Compiler flag to prevent dynamic linking.
22557 link_static_flag=$lt_lt_prog_compiler_static_CXX
22559 # Does compiler simultaneously support -c and -o options?
22560 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22562 # Whether or not to add -lc for building shared libraries.
22563 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22565 # Whether or not to disallow shared libs when runtime libs are static.
22566 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22568 # Compiler flag to allow reflexive dlopens.
22569 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22571 # Compiler flag to generate shared objects directly from archives.
22572 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22574 # Whether the compiler copes with passing no objects directly.
22575 compiler_needs_object=$lt_compiler_needs_object_CXX
22577 # Create an old-style archive from a shared archive.
22578 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22580 # Create a temporary old-style archive to link instead of a shared archive.
22581 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22583 # Commands used to build a shared archive.
22584 archive_cmds=$lt_archive_cmds_CXX
22585 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22587 # Commands used to build a loadable module if different from building
22588 # a shared archive.
22589 module_cmds=$lt_module_cmds_CXX
22590 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22592 # Whether we are building with GNU ld or not.
22593 with_gnu_ld=$lt_with_gnu_ld_CXX
22595 # Flag that allows shared libraries with undefined symbols to be built.
22596 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22598 # Flag that enforces no undefined symbols.
22599 no_undefined_flag=$lt_no_undefined_flag_CXX
22601 # Flag to hardcode \$libdir into a binary during linking.
22602 # This must work even if \$libdir does not exist
22603 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22605 # Whether we need a single "-rpath" flag with a separated argument.
22606 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22608 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22609 # DIR into the resulting binary.
22610 hardcode_direct=$hardcode_direct_CXX
22612 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22613 # DIR into the resulting binary and the resulting library dependency is
22614 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22615 # library is relocated.
22616 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22618 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22619 # into the resulting binary.
22620 hardcode_minus_L=$hardcode_minus_L_CXX
22622 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22623 # into the resulting binary.
22624 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22626 # Set to "yes" if building a shared library automatically hardcodes DIR
22627 # into the library and all subsequent libraries and executables linked
22629 hardcode_automatic=$hardcode_automatic_CXX
22631 # Set to yes if linker adds runtime paths of dependent libraries
22632 # to runtime path list.
22633 inherit_rpath=$inherit_rpath_CXX
22635 # Whether libtool must link a program against all its dependency libraries.
22636 link_all_deplibs=$link_all_deplibs_CXX
22638 # Set to "yes" if exported symbols are required.
22639 always_export_symbols=$always_export_symbols_CXX
22641 # The commands to list exported symbols.
22642 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22644 # Symbols that should not be listed in the preloaded symbols.
22645 exclude_expsyms=$lt_exclude_expsyms_CXX
22647 # Symbols that must always be exported.
22648 include_expsyms=$lt_include_expsyms_CXX
22650 # Commands necessary for linking programs (against libraries) with templates.
22651 prelink_cmds=$lt_prelink_cmds_CXX
22653 # Commands necessary for finishing linking programs.
22654 postlink_cmds=$lt_postlink_cmds_CXX
22656 # Specify filename containing input files.
22657 file_list_spec=$lt_file_list_spec_CXX
22659 # How to hardcode a shared library path into an executable.
22660 hardcode_action=$hardcode_action_CXX
22662 # The directories searched by this compiler when creating a shared library.
22663 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22665 # Dependencies to place before and after the objects being linked to
22666 # create a shared library.
22667 predep_objects=$lt_predep_objects_CXX
22668 postdep_objects=$lt_postdep_objects_CXX
22669 predeps=$lt_predeps_CXX
22670 postdeps=$lt_postdeps_CXX
22672 # The library search path used internally by the compiler when linking
22673 # a shared library.
22674 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22676 # ### END LIBTOOL TAG CONFIG: CXX
22680 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22681 # Older Autoconf quotes --file arguments for eval, but not when files
22682 # are listed without --file. Let's play safe and only enable the eval
22683 # if we detect the quoting.
22684 case $CONFIG_FILES in
22685 *\'*) eval set x "$CONFIG_FILES" ;;
22686 *) set x $CONFIG_FILES ;;
22691 # Strip MF so we end up with the name of the file.
22692 mf=`echo "$mf" | sed -e 's/:.*$//'`
22693 # Check whether this is an Automake generated Makefile or not.
22694 # We used to match only the files named 'Makefile.in', but
22695 # some people rename them; so instead we look at the file content.
22696 # Grep'ing the first line is not enough: some people post-process
22697 # each Makefile.in and add a new line on top of each file to say so.
22698 # Grep'ing the whole file is not good either: AIX grep has a line
22699 # limit of 2048, but all sed's we know have understand at least 4000.
22700 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22701 dirpart=`$as_dirname -- "$mf" ||
22702 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22703 X"$mf" : 'X\(//\)[^/]' \| \
22704 X"$mf" : 'X\(//\)$' \| \
22705 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22711 /^X\(\/\/\)[^/].*/{
22727 # Extract the definition of DEPDIR, am__include, and am__quote
22728 # from the Makefile without running 'make'.
22729 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22730 test -z "$DEPDIR" && continue
22731 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22732 test -z "$am__include" && continue
22733 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22734 # Find all dependency output files, they are included files with
22735 # $(DEPDIR) in their names. We invoke sed twice because it is the
22736 # simplest approach to changing $(DEPDIR) to its actual value in the
22738 for file in `sed -n "
22739 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22740 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22741 # Make sure the directory exists.
22742 test -f "$dirpart/$file" && continue
22743 fdir=`$as_dirname -- "$file" ||
22744 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22745 X"$file" : 'X\(//\)[^/]' \| \
22746 X"$file" : 'X\(//\)$' \| \
22747 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22748 $as_echo X"$file" |
22749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22753 /^X\(\/\/\)[^/].*/{
22766 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22767 # echo "creating $dirpart/$file"
22768 echo '# dummy' > "$dirpart/$file"
22773 "po-directories":C)
22774 for ac_file in $CONFIG_FILES; do
22775 # Support "outfile[:infile[:infile...]]"
22777 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22779 # PO directories have a Makefile.in generated from Makefile.in.in.
22780 case "$ac_file" in */Makefile.in)
22781 # Adjust a relative srcdir.
22782 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22783 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22784 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22785 # In autoconf-2.13 it is called $ac_given_srcdir.
22786 # In autoconf-2.50 it is called $srcdir.
22787 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22788 case "$ac_given_srcdir" in
22789 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22790 /*) top_srcdir="$ac_given_srcdir" ;;
22791 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22793 # Treat a directory as a PO directory if and only if it has a
22794 # POTFILES.in file. This allows packages to have multiple PO
22795 # directories under different names or in different locations.
22796 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22797 rm -f "$ac_dir/POTFILES"
22798 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22799 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22800 POMAKEFILEDEPS="POTFILES.in"
22801 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
22802 # on $ac_dir but don't depend on user-specified configuration
22804 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22805 # The LINGUAS file contains the set of available languages.
22806 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22807 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22809 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22810 # Hide the ALL_LINGUAS assigment from automake < 1.5.
22811 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22812 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22814 # The set of available languages was given in configure.in.
22815 # Hide the ALL_LINGUAS assigment from automake < 1.5.
22816 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22819 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
22820 # Compute UPDATEPOFILES
22821 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
22822 # Compute DUMMYPOFILES
22823 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
22825 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
22826 case "$ac_given_srcdir" in
22828 *) srcdirpre='$(srcdir)/' ;;
22834 for lang in $ALL_LINGUAS; do
22835 POFILES="$POFILES $srcdirpre$lang.po"
22836 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22837 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22838 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22840 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22841 # environment variable.
22843 if test -n "$ALL_LINGUAS"; then
22844 for presentlang in $ALL_LINGUAS; do
22846 if test "%UNSET%" != "$LINGUAS"; then
22847 desiredlanguages="$LINGUAS"
22849 desiredlanguages="$ALL_LINGUAS"
22851 for desiredlang in $desiredlanguages; do
22852 # Use the presentlang catalog if desiredlang is
22853 # a. equal to presentlang, or
22854 # b. a variant of presentlang (because in this case,
22855 # presentlang can be used as a fallback for messages
22856 # which are not translated in the desiredlang catalog).
22857 case "$desiredlang" in
22858 "$presentlang"*) useit=yes;;
22861 if test $useit = yes; then
22862 INST_LINGUAS="$INST_LINGUAS $presentlang"
22867 if test -n "$INST_LINGUAS"; then
22868 for lang in $INST_LINGUAS; do
22869 CATALOGS="$CATALOGS $lang.gmo"
22872 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22873 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
22874 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22875 if test -f "$f"; then
22877 *.orig | *.bak | *~) ;;
22878 *) cat "$f" >> "$ac_dir/Makefile" ;;
22893 ac_clean_files=$ac_clean_files_save
22895 test $ac_write_fail = 0 ||
22896 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22899 # configure is writing to config.log, and then calls config.status.
22900 # config.status does its own redirection, appending to config.log.
22901 # Unfortunately, on DOS this fails, as config.log is still kept open
22902 # by configure, so config.status won't be able to write to it; its
22903 # output is simply discarded. So we exec the FD to /dev/null,
22904 # effectively closing config.log, so it can be properly (re)opened and
22905 # appended to by config.status. When coming back to configure, we
22906 # need to make the FD available again.
22907 if test "$no_create" != yes; then
22909 ac_config_status_args=
22910 test "$silent" = yes &&
22911 ac_config_status_args="$ac_config_status_args --quiet"
22913 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22915 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22916 # would make configure fail if this is the last instruction.
22917 $ac_cs_success || as_fn_exit 1
22919 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22921 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}