2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for kpathsea 3.5.7.
5 # Report bugs to <tex-k@mail.tug.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (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 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
576 # Find the correct PATH separator. Usually this is `:', but
577 # DJGPP uses `;' like DOS.
578 if test "X${PATH_SEPARATOR+set}" != Xset; then
579 UNAME=${UNAME-`uname 2>/dev/null`}
581 *-DOS) lt_cv_sys_path_separator=';' ;;
582 *) lt_cv_sys_path_separator=':' ;;
584 PATH_SEPARATOR=$lt_cv_sys_path_separator
588 # Check that we are running under the correct shell.
589 SHELL=${CONFIG_SHELL-/bin/sh}
593 # Remove one level of quotation (which was required for Make).
594 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
599 if test "X$1" = X--no-reexec; then
600 # Discard the --no-reexec flag, and continue.
602 elif test "X$1" = X--fallback-echo; then
603 # Avoid inline document here, it may be left over
605 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
606 # Yippee, $echo works!
609 # Restart under the correct shell.
610 exec $SHELL "$0" --no-reexec ${1+"$@"}
613 if test "X$1" = X--fallback-echo; then
614 # used as fallback echo
622 # The HP-UX ksh and POSIX shell print the target directory to stdout
624 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
626 if test -z "$ECHO"; then
627 if test "X${echo_test_string+set}" != Xset; then
628 # find a string as large as possible, as long as the shell can cope with it
629 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
630 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
631 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
632 echo_test_string="`eval $cmd`" &&
633 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
640 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
641 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
645 # The Solaris, AIX, and Digital Unix default echo programs unquote
646 # backslashes. This makes it impossible to quote backslashes using
647 # echo "$something" | sed 's/\\/\\\\/g'
649 # So, first we look for a working echo in the user's PATH.
651 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
652 for dir in $PATH /usr/ucb; do
653 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
654 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
663 if test "X$echo" = Xecho; then
664 # We didn't find a better echo, so look for alternatives.
665 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
666 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
667 test "X$echo_testing_string" = "X$echo_test_string"; then
668 # This shell has a builtin print -r that does the trick.
670 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
671 test "X$CONFIG_SHELL" != X/bin/ksh; then
672 # If we have ksh, try running configure again with it.
673 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
674 export ORIGINAL_CONFIG_SHELL
675 CONFIG_SHELL=/bin/ksh
677 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
681 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
682 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
683 test "X$echo_testing_string" = "X$echo_test_string"; then
686 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
687 test "X$echo_testing_string" = 'X\t' &&
688 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
689 test "X$echo_testing_string" = "X$echo_test_string"; then
690 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
692 SHELL="$CONFIG_SHELL"
694 echo="$CONFIG_SHELL $0 --fallback-echo"
695 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
696 test "X$echo_testing_string" = 'X\t' &&
697 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
698 test "X$echo_testing_string" = "X$echo_test_string"; then
699 echo="$CONFIG_SHELL $0 --fallback-echo"
701 # maybe with a smaller string...
704 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
705 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
712 if test "$prev" != 'sed 50q "$0"'; then
713 echo_test_string=`eval $prev`
714 export echo_test_string
715 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
717 # Oops. We lost completely, so just stick with echo.
726 # Copy echo and quote the copy suitably for passing to libtool from
727 # the Makefile, instead of quoting the original, which is used later.
729 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
730 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
735 exec 7<&0 </dev/null 6>&1
738 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
739 # so uname gets run too.
740 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
745 ac_default_prefix=/usr/local
747 ac_config_libobj_dir=.
753 SHELL=${CONFIG_SHELL-/bin/sh}
755 # Identity of this package.
756 PACKAGE_NAME='kpathsea'
757 PACKAGE_TARNAME='kpathsea'
758 PACKAGE_VERSION='3.5.7'
759 PACKAGE_STRING='kpathsea 3.5.7'
760 PACKAGE_BUGREPORT='tex-k@mail.tug.org'
762 ac_unique_file="pathsearch.c"
763 # Factoring default headers for most tests.
764 ac_includes_default="\
766 #ifdef HAVE_SYS_TYPES_H
767 # include <sys/types.h>
769 #ifdef HAVE_SYS_STAT_H
770 # include <sys/stat.h>
776 # ifdef HAVE_STDLIB_H
781 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
786 #ifdef HAVE_STRINGS_H
787 # include <strings.h>
789 #ifdef HAVE_INTTYPES_H
790 # include <inttypes.h>
808 program_transform_name
879 enable_option_checking
887 enable_maintainer_mode
890 with_mktextfm_default
893 with_mktexfmt_default
894 with_mktextex_default
896 ac_precious_vars='build_alias
907 # Initialize some variables set by options.
909 ac_init_version=false
910 ac_unrecognized_opts=
912 # The variables have the same names as the options, with
913 # dashes changed to underlines.
921 program_transform_name=s,x,x,
929 # Installation directory options.
930 # These are left unexpanded so users can "make install exec_prefix=/foo"
931 # and all the variables that are supposed to be based on exec_prefix
932 # by default will actually change.
933 # Use braces instead of parens because sh, perl, etc. also accept them.
934 # (The list follows the same order as the GNU Coding Standards.)
935 bindir='${exec_prefix}/bin'
936 sbindir='${exec_prefix}/sbin'
937 libexecdir='${exec_prefix}/libexec'
938 datarootdir='${prefix}/share'
939 datadir='${datarootdir}'
940 sysconfdir='${prefix}/etc'
941 sharedstatedir='${prefix}/com'
942 localstatedir='${prefix}/var'
943 includedir='${prefix}/include'
944 oldincludedir='/usr/include'
945 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
946 infodir='${datarootdir}/info'
951 libdir='${exec_prefix}/lib'
952 localedir='${datarootdir}/locale'
953 mandir='${datarootdir}/man'
959 # If the previous option needs an argument, assign it.
960 if test -n "$ac_prev"; then
961 eval $ac_prev=\$ac_option
967 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
971 # Accept the important Cygnus configure options, so we can diagnose typos.
973 case $ac_dashdash$ac_option in
977 -bindir | --bindir | --bindi | --bind | --bin | --bi)
979 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
982 -build | --build | --buil | --bui | --bu)
983 ac_prev=build_alias ;;
984 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
985 build_alias=$ac_optarg ;;
987 -cache-file | --cache-file | --cache-fil | --cache-fi \
988 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
989 ac_prev=cache_file ;;
990 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
991 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
992 cache_file=$ac_optarg ;;
995 cache_file=config.cache ;;
997 -datadir | --datadir | --datadi | --datad)
999 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1000 datadir=$ac_optarg ;;
1002 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1003 | --dataroo | --dataro | --datar)
1004 ac_prev=datarootdir ;;
1005 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1006 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1007 datarootdir=$ac_optarg ;;
1009 -disable-* | --disable-*)
1010 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1014 { (exit 1); exit 1; }; }
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1019 "enable_$ac_useropt"
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1024 eval enable_$ac_useropt=no ;;
1026 -docdir | --docdir | --docdi | --doc | --do)
1028 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1029 docdir=$ac_optarg ;;
1031 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1033 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1034 dvidir=$ac_optarg ;;
1036 -enable-* | --enable-*)
1037 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1041 { (exit 1); exit 1; }; }
1042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1046 "enable_$ac_useropt"
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1051 eval enable_$ac_useropt=\$ac_optarg ;;
1053 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1054 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1055 | --exec | --exe | --ex)
1056 ac_prev=exec_prefix ;;
1057 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1058 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1059 | --exec=* | --exe=* | --ex=*)
1060 exec_prefix=$ac_optarg ;;
1062 -gas | --gas | --ga | --g)
1063 # Obsolete; use --with-gas.
1066 -help | --help | --hel | --he | -h)
1067 ac_init_help=long ;;
1068 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1069 ac_init_help=recursive ;;
1070 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1071 ac_init_help=short ;;
1073 -host | --host | --hos | --ho)
1074 ac_prev=host_alias ;;
1075 -host=* | --host=* | --hos=* | --ho=*)
1076 host_alias=$ac_optarg ;;
1078 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1080 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1082 htmldir=$ac_optarg ;;
1084 -includedir | --includedir | --includedi | --included | --include \
1085 | --includ | --inclu | --incl | --inc)
1086 ac_prev=includedir ;;
1087 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1088 | --includ=* | --inclu=* | --incl=* | --inc=*)
1089 includedir=$ac_optarg ;;
1091 -infodir | --infodir | --infodi | --infod | --info | --inf)
1093 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1094 infodir=$ac_optarg ;;
1096 -libdir | --libdir | --libdi | --libd)
1098 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1099 libdir=$ac_optarg ;;
1101 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1102 | --libexe | --libex | --libe)
1103 ac_prev=libexecdir ;;
1104 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1105 | --libexe=* | --libex=* | --libe=*)
1106 libexecdir=$ac_optarg ;;
1108 -localedir | --localedir | --localedi | --localed | --locale)
1109 ac_prev=localedir ;;
1110 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1111 localedir=$ac_optarg ;;
1113 -localstatedir | --localstatedir | --localstatedi | --localstated \
1114 | --localstate | --localstat | --localsta | --localst | --locals)
1115 ac_prev=localstatedir ;;
1116 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1117 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1118 localstatedir=$ac_optarg ;;
1120 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1122 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1123 mandir=$ac_optarg ;;
1125 -nfp | --nfp | --nf)
1126 # Obsolete; use --without-fp.
1129 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1130 | --no-cr | --no-c | -n)
1133 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1134 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1137 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1138 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1139 | --oldin | --oldi | --old | --ol | --o)
1140 ac_prev=oldincludedir ;;
1141 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1142 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1143 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1144 oldincludedir=$ac_optarg ;;
1146 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1148 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1149 prefix=$ac_optarg ;;
1151 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1152 | --program-pre | --program-pr | --program-p)
1153 ac_prev=program_prefix ;;
1154 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1155 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1156 program_prefix=$ac_optarg ;;
1158 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1159 | --program-suf | --program-su | --program-s)
1160 ac_prev=program_suffix ;;
1161 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1162 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1163 program_suffix=$ac_optarg ;;
1165 -program-transform-name | --program-transform-name \
1166 | --program-transform-nam | --program-transform-na \
1167 | --program-transform-n | --program-transform- \
1168 | --program-transform | --program-transfor \
1169 | --program-transfo | --program-transf \
1170 | --program-trans | --program-tran \
1171 | --progr-tra | --program-tr | --program-t)
1172 ac_prev=program_transform_name ;;
1173 -program-transform-name=* | --program-transform-name=* \
1174 | --program-transform-nam=* | --program-transform-na=* \
1175 | --program-transform-n=* | --program-transform-=* \
1176 | --program-transform=* | --program-transfor=* \
1177 | --program-transfo=* | --program-transf=* \
1178 | --program-trans=* | --program-tran=* \
1179 | --progr-tra=* | --program-tr=* | --program-t=*)
1180 program_transform_name=$ac_optarg ;;
1182 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1184 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1185 pdfdir=$ac_optarg ;;
1187 -psdir | --psdir | --psdi | --psd | --ps)
1189 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1193 | -silent | --silent | --silen | --sile | --sil)
1196 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1198 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1200 sbindir=$ac_optarg ;;
1202 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1203 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1204 | --sharedst | --shareds | --shared | --share | --shar \
1206 ac_prev=sharedstatedir ;;
1207 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1208 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1209 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1211 sharedstatedir=$ac_optarg ;;
1213 -site | --site | --sit)
1215 -site=* | --site=* | --sit=*)
1218 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1220 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1221 srcdir=$ac_optarg ;;
1223 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1224 | --syscon | --sysco | --sysc | --sys | --sy)
1225 ac_prev=sysconfdir ;;
1226 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1227 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1228 sysconfdir=$ac_optarg ;;
1230 -target | --target | --targe | --targ | --tar | --ta | --t)
1231 ac_prev=target_alias ;;
1232 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1233 target_alias=$ac_optarg ;;
1235 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1238 -version | --version | --versio | --versi | --vers | -V)
1239 ac_init_version=: ;;
1242 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1246 { (exit 1); exit 1; }; }
1247 ac_useropt_orig=$ac_useropt
1248 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249 case $ac_user_opts in
1253 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1254 ac_unrecognized_sep=', ';;
1256 eval with_$ac_useropt=\$ac_optarg ;;
1258 -without-* | --without-*)
1259 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1262 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1263 { (exit 1); exit 1; }; }
1264 ac_useropt_orig=$ac_useropt
1265 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266 case $ac_user_opts in
1270 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1271 ac_unrecognized_sep=', ';;
1273 eval with_$ac_useropt=no ;;
1276 # Obsolete; use --with-x.
1279 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1280 | --x-incl | --x-inc | --x-in | --x-i)
1281 ac_prev=x_includes ;;
1282 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1283 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1284 x_includes=$ac_optarg ;;
1286 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1287 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1288 ac_prev=x_libraries ;;
1289 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1290 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1291 x_libraries=$ac_optarg ;;
1293 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1294 Try \`$0 --help' for more information." >&2
1295 { (exit 1); exit 1; }; }
1299 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1302 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1303 { (exit 1); exit 1; }; }
1304 eval $ac_envvar=\$ac_optarg
1305 export $ac_envvar ;;
1308 # FIXME: should be removed in autoconf 3.0.
1309 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1310 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1311 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1312 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1318 if test -n "$ac_prev"; then
1319 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1320 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1321 { (exit 1); exit 1; }; }
1324 if test -n "$ac_unrecognized_opts"; then
1325 case $enable_option_checking in
1327 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1328 { (exit 1); exit 1; }; } ;;
1329 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1333 # Check all directory arguments for consistency.
1334 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335 datadir sysconfdir sharedstatedir localstatedir includedir \
1336 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337 libdir localedir mandir
1339 eval ac_val=\$$ac_var
1340 # Remove trailing slashes.
1343 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1344 eval $ac_var=\$ac_val;;
1346 # Be sure to have absolute directory names.
1348 [\\/$]* | ?:[\\/]* ) continue;;
1349 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1351 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1352 { (exit 1); exit 1; }; }
1355 # There might be people who depend on the old broken behavior: `$host'
1356 # used to hold the argument of --host etc.
1357 # FIXME: To remove some day.
1360 target=$target_alias
1362 # FIXME: To remove some day.
1363 if test "x$host_alias" != x; then
1364 if test "x$build_alias" = x; then
1365 cross_compiling=maybe
1366 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1367 If a cross compiler is detected then cross compile mode will be used." >&2
1368 elif test "x$build_alias" != "x$host_alias"; then
1374 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1376 test "$silent" = yes && exec 6>/dev/null
1379 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1380 ac_ls_di=`ls -di .` &&
1381 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1382 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1383 { (exit 1); exit 1; }; }
1384 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1385 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1386 { (exit 1); exit 1; }; }
1389 # Find the source files, if location was not specified.
1390 if test -z "$srcdir"; then
1391 ac_srcdir_defaulted=yes
1392 # Try the directory containing this script, then the parent directory.
1393 ac_confdir=`$as_dirname -- "$as_myself" ||
1394 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395 X"$as_myself" : 'X\(//\)[^/]' \| \
1396 X"$as_myself" : 'X\(//\)$' \| \
1397 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1398 $as_echo X"$as_myself" |
1399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1421 ac_srcdir_defaulted=no
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1424 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1425 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1426 { (exit 1); exit 1; }; }
1428 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1430 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1431 { (exit 1); exit 1; }; }
1433 # When building in place, set srcdir=.
1434 if test "$ac_abs_confdir" = "$ac_pwd"; then
1437 # Remove unnecessary trailing slashes from srcdir.
1438 # Double slashes in file names in object file debugging info
1439 # mess up M-x gdb in Emacs.
1441 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443 for ac_var in $ac_precious_vars; do
1444 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_env_${ac_var}_value=\$${ac_var}
1446 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1451 # Report the --help message.
1453 if test "$ac_init_help" = "long"; then
1454 # Omit some internal or obsolete options to make the list less imposing.
1455 # This message is too long to be a string in the A/UX 3.1 sh.
1457 \`configure' configures kpathsea 3.5.7 to adapt to many kinds of systems.
1459 Usage: $0 [OPTION]... [VAR=VALUE]...
1461 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1462 VAR=VALUE. See below for descriptions of some of the useful variables.
1464 Defaults for the options are specified in brackets.
1467 -h, --help display this help and exit
1468 --help=short display options specific to this package
1469 --help=recursive display the short help of all the included packages
1470 -V, --version display version information and exit
1471 -q, --quiet, --silent do not print \`checking...' messages
1472 --cache-file=FILE cache test results in FILE [disabled]
1473 -C, --config-cache alias for \`--cache-file=config.cache'
1474 -n, --no-create do not create output files
1475 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1477 Installation directories:
1478 --prefix=PREFIX install architecture-independent files in PREFIX
1479 [$ac_default_prefix]
1480 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1483 By default, \`make install' will install all the files in
1484 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1485 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1486 for instance \`--prefix=\$HOME'.
1488 For better control, use the options below.
1490 Fine tuning of the installation directories:
1491 --bindir=DIR user executables [EPREFIX/bin]
1492 --sbindir=DIR system admin executables [EPREFIX/sbin]
1493 --libexecdir=DIR program executables [EPREFIX/libexec]
1494 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1495 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1496 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1497 --libdir=DIR object code libraries [EPREFIX/lib]
1498 --includedir=DIR C header files [PREFIX/include]
1499 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1500 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1501 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1502 --infodir=DIR info documentation [DATAROOTDIR/info]
1503 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1504 --mandir=DIR man documentation [DATAROOTDIR/man]
1505 --docdir=DIR documentation root [DATAROOTDIR/doc/kpathsea]
1506 --htmldir=DIR html documentation [DOCDIR]
1507 --dvidir=DIR dvi documentation [DOCDIR]
1508 --pdfdir=DIR pdf documentation [DOCDIR]
1509 --psdir=DIR ps documentation [DOCDIR]
1515 --build=BUILD configure for building on BUILD [guessed]
1516 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1520 if test -n "$ac_init_help"; then
1521 case $ac_init_help in
1522 short | recursive ) echo "Configuration of kpathsea 3.5.7:";;
1527 --disable-option-checking ignore unrecognized --enable/--with options
1528 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1529 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1530 --enable-shared=PKGS build shared libraries default=yes
1531 --enable-static=PKGS build static libraries default=yes
1532 --enable-fast-install=PKGS optimize for fast installation default=yes
1533 --disable-libtool-lock avoid locking (might break parallel builds)
1534 --disable-largefile omit support for large files
1535 --enable-maintainer-mode enable make rules and dependencies not useful
1536 (and sometimes confusing) to the casual installer
1539 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1540 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1541 --with-gnu-ld assume the C compiler uses GNU ld default=no
1542 --with-pic try to use only PIC/non-PIC objects default=use both
1543 --without-mktexmf-default do not run mktexmf if MF source missing
1544 --without-mktexpk-default do not run mktexpk if PK font missing
1545 --without-mktextfm-default do not run mktextfm if TFM file missing
1546 --without-mkocp-default do not run mkocp if OCP file missing
1547 --without-mkofm-default do not run mkofm if OFM file missing
1548 --with-mktexfmt-default run mktexfmt if format file missing
1549 --with-mktextex-default run mktextex if TeX source missing
1551 Some influential environment variables:
1552 CC C compiler command
1553 CFLAGS C compiler flags
1554 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1555 nonstandard directory <lib dir>
1556 LIBS libraries to pass to the linker, e.g. -l<library>
1557 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1558 you have headers in a nonstandard directory <include dir>
1561 Use these variables to override the choices made by `configure' or to help
1562 it to find libraries and programs with nonstandard names/locations.
1564 Report bugs to <tex-k@mail.tug.org>.
1569 if test "$ac_init_help" = "recursive"; then
1570 # If there are subdirs, report their specific --help.
1571 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572 test -d "$ac_dir" ||
1573 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581 # A ".." for each directory in $ac_dir_suffix.
1582 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583 case $ac_top_builddir_sub in
1584 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1588 ac_abs_top_builddir=$ac_pwd
1589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir=$ac_top_build_prefix
1594 .) # We are building in place.
1596 ac_top_srcdir=$ac_top_builddir_sub
1597 ac_abs_top_srcdir=$ac_pwd ;;
1598 [\\/]* | ?:[\\/]* ) # Absolute name.
1599 ac_srcdir=$srcdir$ac_dir_suffix;
1600 ac_top_srcdir=$srcdir
1601 ac_abs_top_srcdir=$srcdir ;;
1603 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604 ac_top_srcdir=$ac_top_build_prefix$srcdir
1605 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1609 cd "$ac_dir" || { ac_status=$?; continue; }
1610 # Check for guested configure.
1611 if test -f "$ac_srcdir/configure.gnu"; then
1613 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614 elif test -f "$ac_srcdir/configure"; then
1616 $SHELL "$ac_srcdir/configure" --help=recursive
1618 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1620 cd "$ac_pwd" || { ac_status=$?; break; }
1624 test -n "$ac_init_help" && exit $ac_status
1625 if $ac_init_version; then
1627 kpathsea configure 3.5.7
1628 generated by GNU Autoconf 2.62
1630 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1631 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1632 This configure script is free software; the Free Software Foundation
1633 gives unlimited permission to copy, distribute and modify it.
1637 cat >config.log <<_ACEOF
1638 This file contains any messages produced by compilers while
1639 running configure, to aid debugging if configure makes a mistake.
1641 It was created by kpathsea $as_me 3.5.7, which was
1642 generated by GNU Autoconf 2.62. Invocation command line was
1654 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1655 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1656 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1657 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1658 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1660 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1661 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1663 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1664 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1665 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1666 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1667 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1668 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1669 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677 test -z "$as_dir" && as_dir=.
1678 $as_echo "PATH: $as_dir"
1694 # Keep a trace of the command line.
1695 # Strip out --no-create and --no-recursion so they do not pile up.
1696 # Strip out --silent because we don't want to record it for future runs.
1697 # Also quote any args containing shell meta-characters.
1698 # Make two passes to allow for proper duplicate-argument suppression.
1702 ac_must_keep_next=false
1708 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1710 | -silent | --silent | --silen | --sile | --sil)
1713 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1716 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1718 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1719 if test $ac_must_keep_next = true; then
1720 ac_must_keep_next=false # Got value, back to normal.
1723 *=* | --config-cache | -C | -disable-* | --disable-* \
1724 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1725 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1726 | -with-* | --with-* | -without-* | --without-* | --x)
1727 case "$ac_configure_args0 " in
1728 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1731 -* ) ac_must_keep_next=true ;;
1734 ac_configure_args="$ac_configure_args '$ac_arg'"
1739 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1740 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1742 # When interrupted or exit'd, cleanup temporary files, and complete
1743 # config.log. We remove comments because anyway the quotes in there
1744 # would cause problems or look ugly.
1745 # WARNING: Use '\'' to represent an apostrophe within the trap.
1746 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1747 trap 'exit_status=$?
1748 # Save into config.log some information that might help in debugging.
1753 ## ---------------- ##
1754 ## Cache variables. ##
1755 ## ---------------- ##
1758 # The following way of writing the cache mishandles newlines in values,
1760 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1761 eval ac_val=\$$ac_var
1765 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1766 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1769 _ | IFS | as_nl) ;; #(
1770 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1771 *) $as_unset $ac_var ;;
1776 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1777 *${as_nl}ac_space=\ *)
1779 "s/'\''/'\''\\\\'\'''\''/g;
1780 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1783 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1791 ## ----------------- ##
1792 ## Output variables. ##
1793 ## ----------------- ##
1796 for ac_var in $ac_subst_vars
1798 eval ac_val=\$$ac_var
1800 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1802 $as_echo "$ac_var='\''$ac_val'\''"
1806 if test -n "$ac_subst_files"; then
1808 ## ------------------- ##
1809 ## File substitutions. ##
1810 ## ------------------- ##
1813 for ac_var in $ac_subst_files
1815 eval ac_val=\$$ac_var
1817 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1819 $as_echo "$ac_var='\''$ac_val'\''"
1824 if test -s confdefs.h; then
1834 test "$ac_signal" != 0 &&
1835 $as_echo "$as_me: caught signal $ac_signal"
1836 $as_echo "$as_me: exit $exit_status"
1838 rm -f core *.core core.conftest.* &&
1839 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1842 for ac_signal in 1 2 13 15; do
1843 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1847 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1848 rm -f -r conftest* confdefs.h
1850 # Predefined preprocessor variables.
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_NAME "$PACKAGE_NAME"
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_STRING "$PACKAGE_STRING"
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1877 # Let the site file select an alternate cache file if it wants to.
1878 # Prefer an explicitly selected file to automatically selected ones.
1881 if test -n "$CONFIG_SITE"; then
1882 ac_site_file1=$CONFIG_SITE
1883 elif test "x$prefix" != xNONE; then
1884 ac_site_file1=$prefix/share/config.site
1885 ac_site_file2=$prefix/etc/config.site
1887 ac_site_file1=$ac_default_prefix/share/config.site
1888 ac_site_file2=$ac_default_prefix/etc/config.site
1890 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1892 test "x$ac_site_file" = xNONE && continue
1893 if test -r "$ac_site_file"; then
1894 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1895 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1896 sed 's/^/| /' "$ac_site_file" >&5
1901 if test -r "$cache_file"; then
1902 # Some versions of bash will fail to source /dev/null (special
1903 # files actually), so we avoid doing that.
1904 if test -f "$cache_file"; then
1905 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1906 $as_echo "$as_me: loading cache $cache_file" >&6;}
1908 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1909 *) . "./$cache_file";;
1913 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1914 $as_echo "$as_me: creating cache $cache_file" >&6;}
1918 # Check that the precious variables saved in the cache have kept the same
1920 ac_cache_corrupted=false
1921 for ac_var in $ac_precious_vars; do
1922 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1923 eval ac_new_set=\$ac_env_${ac_var}_set
1924 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1925 eval ac_new_val=\$ac_env_${ac_var}_value
1926 case $ac_old_set,$ac_new_set in
1928 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1929 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1930 ac_cache_corrupted=: ;;
1932 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1933 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1934 ac_cache_corrupted=: ;;
1937 if test "x$ac_old_val" != "x$ac_new_val"; then
1938 # differences in whitespace do not lead to failure.
1939 ac_old_val_w=`echo x $ac_old_val`
1940 ac_new_val_w=`echo x $ac_new_val`
1941 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1942 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1944 ac_cache_corrupted=:
1946 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1947 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1948 eval $ac_var=\$ac_old_val
1950 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1951 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1952 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1953 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1956 # Pass precious variables to config.status.
1957 if test "$ac_new_set" = set; then
1959 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1960 *) ac_arg=$ac_var=$ac_new_val ;;
1962 case " $ac_configure_args " in
1963 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1964 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1968 if $ac_cache_corrupted; then
1969 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1970 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1971 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1972 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1973 { (exit 1); exit 1; }; }
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2011 cat >>confdefs.h <<\_ACEOF
2012 #define KPSEVERSION "kpathsea version 3.5.7"
2018 ac_config_headers="$ac_config_headers c-auto.h:c-auto.in"
2023 ac_cpp='$CPP $CPPFLAGS'
2024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2027 if test -n "$ac_tool_prefix"; then
2028 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2029 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2030 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 $as_echo_n "checking for $ac_word... " >&6; }
2032 if test "${ac_cv_prog_CC+set}" = set; then
2033 $as_echo_n "(cached) " >&6
2035 if test -n "$CC"; then
2036 ac_cv_prog_CC="$CC" # Let the user override the test.
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2045 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2046 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 if test -n "$CC"; then
2057 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2058 $as_echo "$CC" >&6; }
2060 { $as_echo "$as_me:$LINENO: result: no" >&5
2061 $as_echo "no" >&6; }
2066 if test -z "$ac_cv_prog_CC"; then
2068 # Extract the first word of "gcc", so it can be a program name with args.
2069 set dummy gcc; ac_word=$2
2070 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 $as_echo_n "checking for $ac_word... " >&6; }
2072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2073 $as_echo_n "(cached) " >&6
2075 if test -n "$ac_ct_CC"; then
2076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2085 ac_cv_prog_ac_ct_CC="gcc"
2086 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2096 if test -n "$ac_ct_CC"; then
2097 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2098 $as_echo "$ac_ct_CC" >&6; }
2100 { $as_echo "$as_me:$LINENO: result: no" >&5
2101 $as_echo "no" >&6; }
2104 if test "x$ac_ct_CC" = x; then
2107 case $cross_compiling:$ac_tool_warned in
2109 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2110 whose name does not start with the host triplet. If you think this
2111 configuration is useful to you, please write to autoconf@gnu.org." >&5
2112 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2113 whose name does not start with the host triplet. If you think this
2114 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2115 ac_tool_warned=yes ;;
2123 if test -z "$CC"; then
2124 if test -n "$ac_tool_prefix"; then
2125 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2126 set dummy ${ac_tool_prefix}cc; ac_word=$2
2127 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2128 $as_echo_n "checking for $ac_word... " >&6; }
2129 if test "${ac_cv_prog_CC+set}" = set; then
2130 $as_echo_n "(cached) " >&6
2132 if test -n "$CC"; then
2133 ac_cv_prog_CC="$CC" # Let the user override the test.
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139 test -z "$as_dir" && as_dir=.
2140 for ac_exec_ext in '' $ac_executable_extensions; do
2141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2142 ac_cv_prog_CC="${ac_tool_prefix}cc"
2143 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153 if test -n "$CC"; then
2154 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2155 $as_echo "$CC" >&6; }
2157 { $as_echo "$as_me:$LINENO: result: no" >&5
2158 $as_echo "no" >&6; }
2164 if test -z "$CC"; then
2165 # Extract the first word of "cc", so it can be a program name with args.
2166 set dummy cc; ac_word=$2
2167 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 $as_echo_n "checking for $ac_word... " >&6; }
2169 if test "${ac_cv_prog_CC+set}" = set; then
2170 $as_echo_n "(cached) " >&6
2172 if test -n "$CC"; then
2173 ac_cv_prog_CC="$CC" # Let the user override the test.
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 test -z "$as_dir" && as_dir=.
2181 for ac_exec_ext in '' $ac_executable_extensions; do
2182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2183 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2184 ac_prog_rejected=yes
2188 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 if test $ac_prog_rejected = yes; then
2196 # We found a bogon in the path, so make sure we never use it.
2197 set dummy $ac_cv_prog_CC
2199 if test $# != 0; then
2200 # We chose a different compiler from the bogus one.
2201 # However, it has the same basename, so the bogon will be chosen
2202 # first if we set CC to just the basename; use the full file name.
2204 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2210 if test -n "$CC"; then
2211 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2212 $as_echo "$CC" >&6; }
2214 { $as_echo "$as_me:$LINENO: result: no" >&5
2215 $as_echo "no" >&6; }
2220 if test -z "$CC"; then
2221 if test -n "$ac_tool_prefix"; then
2222 for ac_prog in cl.exe
2224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 $as_echo_n "checking for $ac_word... " >&6; }
2228 if test "${ac_cv_prog_CC+set}" = set; then
2229 $as_echo_n "(cached) " >&6
2231 if test -n "$CC"; then
2232 ac_cv_prog_CC="$CC" # Let the user override the test.
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 test -z "$as_dir" && as_dir=.
2239 for ac_exec_ext in '' $ac_executable_extensions; do
2240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2241 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252 if test -n "$CC"; then
2253 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2254 $as_echo "$CC" >&6; }
2256 { $as_echo "$as_me:$LINENO: result: no" >&5
2257 $as_echo "no" >&6; }
2261 test -n "$CC" && break
2264 if test -z "$CC"; then
2266 for ac_prog in cl.exe
2268 # Extract the first word of "$ac_prog", so it can be a program name with args.
2269 set dummy $ac_prog; ac_word=$2
2270 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 $as_echo_n "checking for $ac_word... " >&6; }
2272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2273 $as_echo_n "(cached) " >&6
2275 if test -n "$ac_ct_CC"; then
2276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 test -z "$as_dir" && as_dir=.
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2285 ac_cv_prog_ac_ct_CC="$ac_prog"
2286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2296 if test -n "$ac_ct_CC"; then
2297 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2298 $as_echo "$ac_ct_CC" >&6; }
2300 { $as_echo "$as_me:$LINENO: result: no" >&5
2301 $as_echo "no" >&6; }
2305 test -n "$ac_ct_CC" && break
2308 if test "x$ac_ct_CC" = x; then
2311 case $cross_compiling:$ac_tool_warned in
2313 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2314 whose name does not start with the host triplet. If you think this
2315 configuration is useful to you, please write to autoconf@gnu.org." >&5
2316 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2317 whose name does not start with the host triplet. If you think this
2318 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2319 ac_tool_warned=yes ;;
2328 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2329 See \`config.log' for more details." >&5
2330 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2331 See \`config.log' for more details." >&2;}
2332 { (exit 1); exit 1; }; }
2334 # Provide some information about the compiler.
2335 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2338 { (ac_try="$ac_compiler --version >&5"
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2344 $as_echo "$ac_try_echo") >&5
2345 (eval "$ac_compiler --version >&5") 2>&5
2347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }
2349 { (ac_try="$ac_compiler -v >&5"
2351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352 *) ac_try_echo=$ac_try;;
2354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2355 $as_echo "$ac_try_echo") >&5
2356 (eval "$ac_compiler -v >&5") 2>&5
2358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }
2360 { (ac_try="$ac_compiler -V >&5"
2362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2363 *) ac_try_echo=$ac_try;;
2365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2366 $as_echo "$ac_try_echo") >&5
2367 (eval "$ac_compiler -V >&5") 2>&5
2369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }
2372 cat >conftest.$ac_ext <<_ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h. */
2387 ac_clean_files_save=$ac_clean_files
2388 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2389 # Try to create an executable without -o first, disregard a.out.
2390 # It will help us diagnose broken compilers, and finding out an intuition
2392 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2393 $as_echo_n "checking for C compiler default output file name... " >&6; }
2394 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2396 # The possible output files:
2397 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2400 for ac_file in $ac_files
2403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2404 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2409 if { (ac_try="$ac_link_default"
2411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412 *) ac_try_echo=$ac_try;;
2414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2415 $as_echo "$ac_try_echo") >&5
2416 (eval "$ac_link_default") 2>&5
2418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; then
2420 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2421 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2422 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2423 # so that the user can short-circuit this test for compilers unknown to
2425 for ac_file in $ac_files ''
2427 test -f "$ac_file" || continue
2429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2432 # We found the default executable, but exeext='' is most
2436 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2438 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2440 # We set ac_cv_exeext here because the later test for it is not
2441 # safe: cross compilers may not add the suffix if given an `-o'
2442 # argument, so we may need to know it at that point already.
2443 # Even if this section looks crufty: it has the advantage of
2450 test "$ac_cv_exeext" = no && ac_cv_exeext=
2456 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2457 $as_echo "$ac_file" >&6; }
2458 if test -z "$ac_file"; then
2459 $as_echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2462 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2463 See \`config.log' for more details." >&5
2464 $as_echo "$as_me: error: C compiler cannot create executables
2465 See \`config.log' for more details." >&2;}
2466 { (exit 77); exit 77; }; }
2469 ac_exeext=$ac_cv_exeext
2471 # Check that the compiler produces executables we can run. If not, either
2472 # the compiler is broken, or we cross compile.
2473 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2474 $as_echo_n "checking whether the C compiler works... " >&6; }
2475 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2476 # If not cross compiling, check that we can run a simple program.
2477 if test "$cross_compiling" != yes; then
2478 if { ac_try='./$ac_file'
2479 { (case "(($ac_try" in
2480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481 *) ac_try_echo=$ac_try;;
2483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2484 $as_echo "$ac_try_echo") >&5
2485 (eval "$ac_try") 2>&5
2487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; }; then
2491 if test "$cross_compiling" = maybe; then
2494 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2495 If you meant to cross compile, use \`--host'.
2496 See \`config.log' for more details." >&5
2497 $as_echo "$as_me: error: cannot run C compiled programs.
2498 If you meant to cross compile, use \`--host'.
2499 See \`config.log' for more details." >&2;}
2500 { (exit 1); exit 1; }; }
2504 { $as_echo "$as_me:$LINENO: result: yes" >&5
2505 $as_echo "yes" >&6; }
2507 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2508 ac_clean_files=$ac_clean_files_save
2509 # Check that the compiler produces executables we can run. If not, either
2510 # the compiler is broken, or we cross compile.
2511 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2512 $as_echo_n "checking whether we are cross compiling... " >&6; }
2513 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2514 $as_echo "$cross_compiling" >&6; }
2516 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2517 $as_echo_n "checking for suffix of executables... " >&6; }
2518 if { (ac_try="$ac_link"
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2524 $as_echo "$ac_try_echo") >&5
2525 (eval "$ac_link") 2>&5
2527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; then
2529 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2530 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2531 # work properly (i.e., refer to `conftest.exe'), while it won't with
2533 for ac_file in conftest.exe conftest conftest.*; do
2534 test -f "$ac_file" || continue
2536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2537 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2543 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2544 See \`config.log' for more details." >&5
2545 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2546 See \`config.log' for more details." >&2;}
2547 { (exit 1); exit 1; }; }
2550 rm -f conftest$ac_cv_exeext
2551 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2552 $as_echo "$ac_cv_exeext" >&6; }
2554 rm -f conftest.$ac_ext
2555 EXEEXT=$ac_cv_exeext
2557 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2558 $as_echo_n "checking for suffix of object files... " >&6; }
2559 if test "${ac_cv_objext+set}" = set; then
2560 $as_echo_n "(cached) " >&6
2562 cat >conftest.$ac_ext <<_ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2577 rm -f conftest.o conftest.obj
2578 if { (ac_try="$ac_compile"
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2584 $as_echo "$ac_try_echo") >&5
2585 (eval "$ac_compile") 2>&5
2587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; then
2589 for ac_file in conftest.o conftest.obj conftest.*; do
2590 test -f "$ac_file" || continue;
2592 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2593 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2598 $as_echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2601 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2602 See \`config.log' for more details." >&5
2603 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2604 See \`config.log' for more details." >&2;}
2605 { (exit 1); exit 1; }; }
2608 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2610 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2611 $as_echo "$ac_cv_objext" >&6; }
2612 OBJEXT=$ac_cv_objext
2614 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2615 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2616 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2617 $as_echo_n "(cached) " >&6
2619 cat >conftest.$ac_ext <<_ACEOF
2622 cat confdefs.h >>conftest.$ac_ext
2623 cat >>conftest.$ac_ext <<_ACEOF
2624 /* end confdefs.h. */
2637 rm -f conftest.$ac_objext
2638 if { (ac_try="$ac_compile"
2640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641 *) ac_try_echo=$ac_try;;
2643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2644 $as_echo "$ac_try_echo") >&5
2645 (eval "$ac_compile") 2>conftest.er1
2647 grep -v '^ *+' conftest.er1 >conftest.err
2649 cat conftest.err >&5
2650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } && {
2652 test -z "$ac_c_werror_flag" ||
2653 test ! -s conftest.err
2654 } && test -s conftest.$ac_objext; then
2657 $as_echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2667 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2668 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2669 if test $ac_compiler_gnu = yes; then
2674 ac_test_CFLAGS=${CFLAGS+set}
2675 ac_save_CFLAGS=$CFLAGS
2676 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2677 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2678 if test "${ac_cv_prog_cc_g+set}" = set; then
2679 $as_echo_n "(cached) " >&6
2681 ac_save_c_werror_flag=$ac_c_werror_flag
2682 ac_c_werror_flag=yes
2685 cat >conftest.$ac_ext <<_ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2700 rm -f conftest.$ac_objext
2701 if { (ac_try="$ac_compile"
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2707 $as_echo "$ac_try_echo") >&5
2708 (eval "$ac_compile") 2>conftest.er1
2710 grep -v '^ *+' conftest.er1 >conftest.err
2712 cat conftest.err >&5
2713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } && {
2715 test -z "$ac_c_werror_flag" ||
2716 test ! -s conftest.err
2717 } && test -s conftest.$ac_objext; then
2720 $as_echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2724 cat >conftest.$ac_ext <<_ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2739 rm -f conftest.$ac_objext
2740 if { (ac_try="$ac_compile"
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2746 $as_echo "$ac_try_echo") >&5
2747 (eval "$ac_compile") 2>conftest.er1
2749 grep -v '^ *+' conftest.er1 >conftest.err
2751 cat conftest.err >&5
2752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); } && {
2754 test -z "$ac_c_werror_flag" ||
2755 test ! -s conftest.err
2756 } && test -s conftest.$ac_objext; then
2759 $as_echo "$as_me: failed program was:" >&5
2760 sed 's/^/| /' conftest.$ac_ext >&5
2762 ac_c_werror_flag=$ac_save_c_werror_flag
2764 cat >conftest.$ac_ext <<_ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2779 rm -f conftest.$ac_objext
2780 if { (ac_try="$ac_compile"
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2786 $as_echo "$ac_try_echo") >&5
2787 (eval "$ac_compile") 2>conftest.er1
2789 grep -v '^ *+' conftest.er1 >conftest.err
2791 cat conftest.err >&5
2792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); } && {
2794 test -z "$ac_c_werror_flag" ||
2795 test ! -s conftest.err
2796 } && test -s conftest.$ac_objext; then
2799 $as_echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2812 ac_c_werror_flag=$ac_save_c_werror_flag
2814 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2815 $as_echo "$ac_cv_prog_cc_g" >&6; }
2816 if test "$ac_test_CFLAGS" = set; then
2817 CFLAGS=$ac_save_CFLAGS
2818 elif test $ac_cv_prog_cc_g = yes; then
2819 if test "$GCC" = yes; then
2825 if test "$GCC" = yes; then
2831 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2832 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2833 if test "${ac_cv_prog_cc_c89+set}" = set; then
2834 $as_echo_n "(cached) " >&6
2836 ac_cv_prog_cc_c89=no
2838 cat >conftest.$ac_ext <<_ACEOF
2841 cat confdefs.h >>conftest.$ac_ext
2842 cat >>conftest.$ac_ext <<_ACEOF
2843 /* end confdefs.h. */
2846 #include <sys/types.h>
2847 #include <sys/stat.h>
2848 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2849 struct buf { int x; };
2850 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2851 static char *e (p, i)
2857 static char *f (char * (*g) (char **, int), char **p, ...)
2862 s = g (p, va_arg (v,int));
2867 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2868 function prototypes and stuff, but not '\xHH' hex character constants.
2869 These don't provoke an error unfortunately, instead are silently treated
2870 as 'x'. The following induces an error, until -std is added to get
2871 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2872 array size at least. It's necessary to write '\x00'==0 to get something
2873 that's true only with -std. */
2874 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2876 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2877 inside strings and character constants. */
2879 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2881 int test (int i, double x);
2882 struct s1 {int (*f) (int a);};
2883 struct s2 {int (*f) (double a);};
2884 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2890 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2895 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2896 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2898 CC="$ac_save_CC $ac_arg"
2899 rm -f conftest.$ac_objext
2900 if { (ac_try="$ac_compile"
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2906 $as_echo "$ac_try_echo") >&5
2907 (eval "$ac_compile") 2>conftest.er1
2909 grep -v '^ *+' conftest.er1 >conftest.err
2911 cat conftest.err >&5
2912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } && {
2914 test -z "$ac_c_werror_flag" ||
2915 test ! -s conftest.err
2916 } && test -s conftest.$ac_objext; then
2917 ac_cv_prog_cc_c89=$ac_arg
2919 $as_echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2925 rm -f core conftest.err conftest.$ac_objext
2926 test "x$ac_cv_prog_cc_c89" != "xno" && break
2928 rm -f conftest.$ac_ext
2933 case "x$ac_cv_prog_cc_c89" in
2935 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2936 $as_echo "none needed" >&6; } ;;
2938 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2939 $as_echo "unsupported" >&6; } ;;
2941 CC="$CC $ac_cv_prog_cc_c89"
2942 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2943 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2948 ac_cpp='$CPP $CPPFLAGS'
2949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2954 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2955 if test -f "$ac_dir/install-sh"; then
2957 ac_install_sh="$ac_aux_dir/install-sh -c"
2959 elif test -f "$ac_dir/install.sh"; then
2961 ac_install_sh="$ac_aux_dir/install.sh -c"
2963 elif test -f "$ac_dir/shtool"; then
2965 ac_install_sh="$ac_aux_dir/shtool install -c"
2969 if test -z "$ac_aux_dir"; then
2970 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2971 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2972 { (exit 1); exit 1; }; }
2975 # These three variables are undocumented and unsupported,
2976 # and are intended to be withdrawn in a future Autoconf release.
2977 # They can cause serious problems if a builder's source tree is in a directory
2978 # whose full name contains unusual characters.
2979 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2980 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2981 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2984 # Find a good install program. We prefer a C program (faster),
2985 # so one script is as good as another. But avoid the broken or
2986 # incompatible versions:
2987 # SysV /etc/install, /usr/sbin/install
2988 # SunOS /usr/etc/install
2989 # IRIX /sbin/install
2991 # AmigaOS /C/install, which installs bootblocks on floppy discs
2992 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2993 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2994 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2995 # OS/2's system install, which has a completely different semantic
2996 # ./install, which can be erroneously created by make from ./install.sh.
2997 # Reject install programs that cannot install multiple files.
2998 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2999 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3000 if test -z "$INSTALL"; then
3001 if test "${ac_cv_path_install+set}" = set; then
3002 $as_echo_n "(cached) " >&6
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 test -z "$as_dir" && as_dir=.
3009 # Account for people who put trailing slashes in PATH elements.
3011 ./ | .// | /cC/* | \
3012 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3013 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3016 # OSF1 and SCO ODT 3.0 have their own names for install.
3017 # Don't use installbsd from OSF since it installs stuff as root
3019 for ac_prog in ginstall scoinst install; do
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3022 if test $ac_prog = install &&
3023 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3024 # AIX install. It has an incompatible calling convention.
3026 elif test $ac_prog = install &&
3027 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3028 # program-specific install script used by HP pwplus--don't use.
3031 rm -rf conftest.one conftest.two conftest.dir
3032 echo one > conftest.one
3033 echo two > conftest.two
3035 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3036 test -s conftest.one && test -s conftest.two &&
3037 test -s conftest.dir/conftest.one &&
3038 test -s conftest.dir/conftest.two
3040 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3053 rm -rf conftest.one conftest.two conftest.dir
3056 if test "${ac_cv_path_install+set}" = set; then
3057 INSTALL=$ac_cv_path_install
3059 # As a last resort, use the slow shell script. Don't cache a
3060 # value for INSTALL within a source directory, because that will
3061 # break other packages using the cache if that directory is
3062 # removed, or if the value is a relative name.
3063 INSTALL=$ac_install_sh
3066 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3067 $as_echo "$INSTALL" >&6; }
3069 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3070 # It thinks the first close brace ends the variable substitution.
3071 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3073 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3075 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3077 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3078 $as_echo_n "checking whether ln -s works... " >&6; }
3080 if test "$LN_S" = "ln -s"; then
3081 { $as_echo "$as_me:$LINENO: result: yes" >&5
3082 $as_echo "yes" >&6; }
3084 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3085 $as_echo "no, using $LN_S" >&6; }
3088 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3089 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3091 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3092 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3093 $as_echo_n "(cached) " >&6
3095 cat >conftest.make <<\_ACEOF
3098 @echo '@@@%%%=$(MAKE)=@@@%%%'
3100 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3101 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3103 eval ac_cv_prog_make_${ac_make}_set=yes;;
3105 eval ac_cv_prog_make_${ac_make}_set=no;;
3109 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3110 { $as_echo "$as_me:$LINENO: result: yes" >&5
3111 $as_echo "yes" >&6; }
3114 { $as_echo "$as_me:$LINENO: result: no" >&5
3115 $as_echo "no" >&6; }
3116 SET_MAKE="MAKE=${MAKE-make}"
3120 # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
3121 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001
3122 ## Free Software Foundation, Inc.
3123 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
3125 ## This program is free software; you can redistribute it and/or modify
3126 ## it under the terms of the GNU General Public License as published by
3127 ## the Free Software Foundation; either version 2 of the License, or
3128 ## (at your option) any later version.
3130 ## This program is distributed in the hope that it will be useful, but
3131 ## WITHOUT ANY WARRANTY; without even the implied warranty of
3132 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3133 ## General Public License for more details.
3135 ## You should have received a copy of the GNU General Public License
3136 ## along with this program; if not, write to the Free Software
3137 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3139 ## As a special exception to the GNU General Public License, if you
3140 ## distribute this file as part of a program that contains a
3141 ## configuration script generated by Autoconf, you may include it under
3142 ## the same distribution terms that you use for the rest of that program.
3144 # serial 46 AC_PROG_LIBTOOL
3150 # AC_LIBTOOL_HEADER_ASSERT
3151 # ------------------------
3152 # AC_LIBTOOL_HEADER_ASSERT
3154 # _LT_AC_CHECK_DLFCN
3155 # --------------------
3156 # _LT_AC_CHECK_DLFCN
3158 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3159 # ---------------------------------
3160 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3162 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
3163 # ---------------------------------
3164 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
3166 # _LT_AC_PROG_ECHO_BACKSLASH
3167 # --------------------------
3168 # Add some code to the start of the generated configure script which
3169 # will find an echo command which doesn't interpret backslashes.
3170 # _LT_AC_PROG_ECHO_BACKSLASH
3172 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3173 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3174 # ------------------------------------------------------------------
3175 # _LT_AC_TRY_DLOPEN_SELF
3177 # AC_LIBTOOL_DLOPEN_SELF
3178 # -------------------
3179 # AC_LIBTOOL_DLOPEN_SELF
3181 # _LT_AC_LTCONFIG_HACK
3183 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
3186 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
3189 # AC_ENABLE_SHARED - implement the --enable-shared flag
3190 # Usage: AC_ENABLE_SHARED[(DEFAULT)]
3191 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
3195 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
3198 # AC_ENABLE_STATIC - implement the --enable-static flag
3199 # Usage: AC_ENABLE_STATIC[(DEFAULT)]
3200 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
3204 # AC_DISABLE_STATIC - set the default static flag to --disable-static
3208 # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
3209 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
3210 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
3214 # AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
3217 # AC_LIBTOOL_PICMODE - implement the --with-pic flag
3218 # Usage: AC_LIBTOOL_PICMODE[(MODE)]
3219 # Where MODE is either `yes' or `no'. If omitted, it defaults to
3224 # AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
3228 # AC_PATH_MAGIC - find a file program which can recognise a shared library
3232 # AC_PROG_LD - find the path to the GNU or non-GNU linker
3238 # AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
3239 # -- PORTME Some linkers may need a different reload flag.
3242 # AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
3243 # -- PORTME fill in with the dynamic library characteristics
3247 # AC_PROG_NM - find the path to a BSD-compatible name lister
3250 # AC_CHECK_LIBM - check for math library
3253 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
3254 # the libltdl convenience library and LTDLINCL to the include flags for
3255 # the libltdl header and adds --enable-ltdl-convenience to the
3256 # configure arguments. Note that LIBLTDL and LTDLINCL are not
3257 # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
3258 # provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
3259 # with '${top_builddir}/' and LTDLINCL will be prefixed with
3260 # '${top_srcdir}/' (note the single quotes!). If your package is not
3261 # flat and you're not using automake, define top_builddir and
3262 # top_srcdir appropriately in the Makefiles.
3265 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
3266 # the libltdl installable library and LTDLINCL to the include flags for
3267 # the libltdl header and adds --enable-ltdl-install to the configure
3268 # arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
3269 # AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
3270 # libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
3271 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
3272 # with '${top_srcdir}/' (note the single quotes!). If your package is
3273 # not flat and you're not using automake, define top_builddir and
3274 # top_srcdir appropriately in the Makefiles.
3275 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3287 # This is just to silence aclocal about the macro not being used
3290 ############################################################
3291 # NOTE: This macro has been submitted for inclusion into #
3292 # GNU Autoconf as AC_PROG_SED. When it is available in #
3293 # a released version of Autoconf we should remove this #
3294 # macro and use it instead. #
3295 ############################################################
3298 # Check for a fully-functional sed program, that truncates
3299 # as few characters as possible. Prefer GNU sed if found.
3303 # Check whether --enable-shared was given.
3304 if test "${enable_shared+set}" = set; then
3305 enableval=$enable_shared; p=${PACKAGE-default}
3307 yes) enable_shared=yes ;;
3308 no) enable_shared=no ;;
3311 # Look at the argument we got. We use all the common list separators.
3312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3313 for pkg in $enableval; do
3314 if test "X$pkg" = "X$p"; then
3325 # Check whether --enable-static was given.
3326 if test "${enable_static+set}" = set; then
3327 enableval=$enable_static; p=${PACKAGE-default}
3329 yes) enable_static=yes ;;
3330 no) enable_static=no ;;
3333 # Look at the argument we got. We use all the common list separators.
3334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3335 for pkg in $enableval; do
3336 if test "X$pkg" = "X$p"; then
3347 # Check whether --enable-fast-install was given.
3348 if test "${enable_fast_install+set}" = set; then
3349 enableval=$enable_fast_install; p=${PACKAGE-default}
3351 yes) enable_fast_install=yes ;;
3352 no) enable_fast_install=no ;;
3354 enable_fast_install=no
3355 # Look at the argument we got. We use all the common list separators.
3356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3357 for pkg in $enableval; do
3358 if test "X$pkg" = "X$p"; then
3359 enable_fast_install=yes
3366 enable_fast_install=yes
3369 # Make sure we can run config.sub.
3370 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3371 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3372 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3373 { (exit 1); exit 1; }; }
3375 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3376 $as_echo_n "checking build system type... " >&6; }
3377 if test "${ac_cv_build+set}" = set; then
3378 $as_echo_n "(cached) " >&6
3380 ac_build_alias=$build_alias
3381 test "x$ac_build_alias" = x &&
3382 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3383 test "x$ac_build_alias" = x &&
3384 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3385 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3386 { (exit 1); exit 1; }; }
3387 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3388 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3389 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3390 { (exit 1); exit 1; }; }
3393 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3394 $as_echo "$ac_cv_build" >&6; }
3395 case $ac_cv_build in
3397 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3398 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3399 { (exit 1); exit 1; }; };;
3402 ac_save_IFS=$IFS; IFS='-'
3408 # Remember, the first character of IFS is used to create $*,
3409 # except with old shells:
3412 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3415 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3416 $as_echo_n "checking host system type... " >&6; }
3417 if test "${ac_cv_host+set}" = set; then
3418 $as_echo_n "(cached) " >&6
3420 if test "x$host_alias" = x; then
3421 ac_cv_host=$ac_cv_build
3423 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3424 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3425 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3426 { (exit 1); exit 1; }; }
3430 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3431 $as_echo "$ac_cv_host" >&6; }
3434 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3435 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3436 { (exit 1); exit 1; }; };;
3439 ac_save_IFS=$IFS; IFS='-'
3445 # Remember, the first character of IFS is used to create $*,
3446 # except with old shells:
3449 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3452 # Find the correct PATH separator. Usually this is `:', but
3453 # DJGPP uses `;' like DOS.
3454 if test "X${PATH_SEPARATOR+set}" != Xset; then
3455 UNAME=${UNAME-`uname 2>/dev/null`}
3457 *-DOS) lt_cv_sys_path_separator=';' ;;
3458 *) lt_cv_sys_path_separator=':' ;;
3460 PATH_SEPARATOR=$lt_cv_sys_path_separator
3464 # Check whether --with-gnu-ld was given.
3465 if test "${with_gnu_ld+set}" = set; then
3466 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3472 if test "$GCC" = yes; then
3473 # Check if gcc -print-prog-name=ld gives a path.
3474 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3475 $as_echo_n "checking for ld used by GCC... " >&6; }
3478 # gcc leaves a trailing carriage return which upsets mingw
3479 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3481 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3484 # Accept absolute paths.
3485 [\\/]* | [A-Za-z]:[\\/]*)
3486 re_direlt='/[^/][^/]*/\.\./'
3487 # Canonicalize the path of ld
3488 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3489 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3490 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3492 test -z "$LD" && LD="$ac_prog"
3495 # If it fails, then pretend we aren't using GCC.
3499 # If it is relative, then search for the first ld in PATH.
3503 elif test "$with_gnu_ld" = yes; then
3504 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3505 $as_echo_n "checking for GNU ld... " >&6; }
3507 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3508 $as_echo_n "checking for non-GNU ld... " >&6; }
3510 if test "${lt_cv_path_LD+set}" = set; then
3511 $as_echo_n "(cached) " >&6
3513 if test -z "$LD"; then
3514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3515 for ac_dir in $PATH; do
3516 test -z "$ac_dir" && ac_dir=.
3517 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3518 lt_cv_path_LD="$ac_dir/$ac_prog"
3519 # Check to see if the program is GNU ld. I'd rather use --version,
3520 # but apparently some GNU ld's only accept -v.
3521 # Break only if it was the GNU/non-GNU ld that we prefer.
3522 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3523 test "$with_gnu_ld" != no && break
3525 test "$with_gnu_ld" != yes && break
3531 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3536 if test -n "$LD"; then
3537 { $as_echo "$as_me:$LINENO: result: $LD" >&5
3538 $as_echo "$LD" >&6; }
3540 { $as_echo "$as_me:$LINENO: result: no" >&5
3541 $as_echo "no" >&6; }
3543 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3544 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3545 { (exit 1); exit 1; }; }
3546 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3547 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3548 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3549 $as_echo_n "(cached) " >&6
3551 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3552 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3553 lt_cv_prog_gnu_ld=yes
3555 lt_cv_prog_gnu_ld=no
3558 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3559 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3560 with_gnu_ld=$lt_cv_prog_gnu_ld
3563 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3564 $as_echo_n "checking for $LD option to reload object files... " >&6; }
3565 if test "${lt_cv_ld_reload_flag+set}" = set; then
3566 $as_echo_n "(cached) " >&6
3568 lt_cv_ld_reload_flag='-r'
3570 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3571 $as_echo "$lt_cv_ld_reload_flag" >&6; }
3572 reload_flag=$lt_cv_ld_reload_flag
3573 test -n "$reload_flag" && reload_flag=" $reload_flag"
3575 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3576 $as_echo_n "checking for BSD-compatible nm... " >&6; }
3577 if test "${lt_cv_path_NM+set}" = set; then
3578 $as_echo_n "(cached) " >&6
3580 if test -n "$NM"; then
3581 # Let the user override the test.
3584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3585 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3586 test -z "$ac_dir" && ac_dir=.
3587 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3588 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3589 # Check to see if the nm accepts a BSD-compat flag.
3590 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3591 # nm: unknown option "B" ignored
3592 # Tru64's nm complains that /dev/null is an invalid object file
3593 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3594 lt_cv_path_NM="$tmp_nm -B"
3596 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3597 lt_cv_path_NM="$tmp_nm -p"
3600 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3601 continue # so that we can try to find one that supports BSD flags
3606 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3611 { $as_echo "$as_me:$LINENO: result: $NM" >&5
3612 $as_echo "$NM" >&6; }
3614 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3615 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3616 if test "${lt_cv_path_SED+set}" = set; then
3617 $as_echo_n "(cached) " >&6
3619 # Loop through the user's path and test for sed and gsed.
3620 # Then use that list of sed's as ones to test for truncation.
3621 as_executable_p="test -f"
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 test -z "$as_dir" && as_dir=.
3627 for ac_prog in sed gsed; do
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3630 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3636 # Create a temporary directory, and hook for its removal unless debugging.
3639 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3640 trap '{ (exit 1); exit 1; }' 1 2 13 15
3643 # Create a (secure) tmp directory for tmp files.
3646 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3647 test -n "$tmp" && test -d "$tmp"
3650 tmp=$TMPDIR/sed$$-$RANDOM
3651 (umask 077 && mkdir $tmp)
3654 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3655 { (exit 1); exit 1; }
3659 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3660 # along with /bin/sed that truncates output.
3661 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3662 test ! -f ${_sed} && break
3663 cat /dev/null > "$tmp/sed.in"
3665 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3666 # Check for GNU sed and select it if it is found.
3667 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3668 lt_cv_path_SED=${_sed}
3672 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3673 mv "$tmp/sed.tmp" "$tmp/sed.in"
3674 cp "$tmp/sed.in" "$tmp/sed.nl"
3675 echo >>"$tmp/sed.nl"
3676 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3677 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3678 # 40000 chars as input seems more than enough
3679 test $_count -gt 10 && break
3680 _count=`expr $_count + 1`
3681 if test $_count -gt $_max; then
3683 lt_cv_path_SED=$_sed
3691 if test "X$SED" != "X"; then
3696 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3697 $as_echo "$SED" >&6; }
3699 { $as_echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3700 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
3701 if test "${lt_cv_deplibs_check_method+set}" = set; then
3702 $as_echo_n "(cached) " >&6
3704 lt_cv_file_magic_cmd='$MAGIC_CMD'
3705 lt_cv_file_magic_test_file=
3706 lt_cv_deplibs_check_method='unknown'
3707 # Need to set the preceding variable on all platforms that support
3708 # interlibrary dependencies.
3709 # 'none' -- dependencies not supported.
3710 # `unknown' -- same as none, but documents that we really don't know.
3711 # 'pass_all' -- all dependencies passed with no checks.
3712 # 'test_compile' -- check by making test program.
3713 # 'file_magic [[regex]]' -- check by looking for files in library path
3714 # which responds to the $file_magic_cmd with a given egrep regex.
3715 # If you have `file' or equivalent on your system and you're not sure
3716 # whether `pass_all' will *always* work, you probably want this one.
3720 lt_cv_deplibs_check_method=pass_all
3724 lt_cv_deplibs_check_method=pass_all
3728 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3729 lt_cv_file_magic_cmd='/usr/bin/file -L'
3730 lt_cv_file_magic_test_file=/shlib/libc.so
3733 cygwin* | mingw* | pw32*)
3734 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3735 lt_cv_file_magic_cmd='$OBJDUMP -f'
3738 darwin* | rhapsody*)
3739 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3740 lt_cv_file_magic_cmd='/usr/bin/file -L'
3742 rhapsody* | darwin1.[012])
3743 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3746 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3751 freebsd* | kfreebsd*-gnu)
3752 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3755 # Not sure whether the presence of OpenBSD here was a mistake.
3756 # Let's accept both of them until this is cleared up.
3757 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3758 lt_cv_file_magic_cmd=/usr/bin/file
3759 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3763 lt_cv_deplibs_check_method=pass_all
3768 lt_cv_deplibs_check_method=pass_all
3772 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3773 lt_cv_file_magic_cmd=/usr/bin/file
3774 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3777 irix5* | irix6* | nonstopux*)
3779 irix5* | nonstopux*)
3780 # this will be overridden with pass_all, but let us keep it just in case
3781 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3785 *-32|*"-32 ") libmagic=32-bit;;
3786 *-n32|*"-n32 ") libmagic=N32;;
3787 *-64|*"-64 ") libmagic=64-bit;;
3788 *) libmagic=never-match;;
3790 # this will be overridden with pass_all, but let us keep it just in case
3791 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3794 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3795 lt_cv_deplibs_check_method=pass_all
3798 # This must be Linux ELF.
3801 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3802 lt_cv_deplibs_check_method=pass_all ;;
3804 # glibc up to 2.1.1 does not perform some relocations on ARM
3805 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3807 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3811 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3812 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3814 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3819 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3820 lt_cv_file_magic_cmd=/usr/bin/file
3821 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3825 lt_cv_file_magic_cmd=/usr/bin/file
3826 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3827 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3828 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3830 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3834 osf3* | osf4* | osf5*)
3835 # this will be overridden with pass_all, but let us keep it just in case
3836 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3837 lt_cv_file_magic_test_file=/shlib/libc.so
3838 lt_cv_deplibs_check_method=pass_all
3842 lt_cv_deplibs_check_method=pass_all
3846 lt_cv_deplibs_check_method=pass_all
3847 lt_cv_file_magic_test_file=/lib/libc.so
3850 sysv5uw[78]* | sysv4*uw2*)
3851 lt_cv_deplibs_check_method=pass_all
3854 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3855 case $host_vendor in
3857 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]'
3858 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3861 lt_cv_deplibs_check_method=pass_all
3864 lt_cv_file_magic_cmd='/bin/file'
3865 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3868 lt_cv_file_magic_cmd='/bin/file'
3869 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3870 lt_cv_file_magic_test_file=/lib/libc.so
3873 lt_cv_deplibs_check_method=pass_all
3880 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3881 $as_echo "$lt_cv_deplibs_check_method" >&6; }
3882 file_magic_cmd=$lt_cv_file_magic_cmd
3883 deplibs_check_method=$lt_cv_deplibs_check_method
3892 # Check for command to grab the raw symbol name followed by C symbol from nm.
3893 { $as_echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3894 $as_echo_n "checking command to parse $NM output... " >&6; }
3895 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3896 $as_echo_n "(cached) " >&6
3899 # These are sane defaults that work on at least a few old systems.
3900 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3902 # Character class describing NM global symbol codes.
3903 symcode='[BCDEGRST]'
3905 # Regexp to match symbols that can be accessed directly from C.
3906 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3908 # Transform the above into a raw symbol and a C symbol.
3909 symxfrm='\1 \2\3 \3'
3911 # Transform an extracted symbol line into a proper C declaration
3912 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3914 # Transform an extracted symbol line into symbol name and symbol address
3915 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3917 # Define system-specific variables.
3922 cygwin* | mingw* | pw32*)
3923 symcode='[ABCDGISTW]'
3925 hpux*) # Its linker distinguishes data from code symbols
3926 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3927 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3930 symcode='[BCDEGRST]'
3933 symcode='[BCDEGQRST]'
3943 # Handle CRLF in mingw tool chain
3947 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3951 # If we're using GNU nm, then use its standard symbol codes.
3952 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3953 symcode='[ABCDGISTW]'
3956 # Try without a prefix undercore, then with it.
3957 for ac_symprfx in "" "_"; do
3959 # Write the raw and C identifiers.
3960 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3962 # Check to see that the pipe works correctly.
3965 cat > conftest.$ac_ext <<EOF
3970 void nm_test_func(){}
3974 int main(){nm_test_var='a';nm_test_func();return(0);}
3977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3978 (eval $ac_compile) 2>&5
3980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; then
3982 # Now try to grab the symbols.
3984 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3985 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } && test -s "$nlist"; then
3989 # Try sorting and uniquifying the output.
3990 if sort "$nlist" | uniq > "$nlist"T; then
3991 mv -f "$nlist"T "$nlist"
3996 # Make sure that we snagged all the symbols we need.
3997 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3998 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3999 cat <<EOF > conftest.$ac_ext
4005 # Now generate the symbol file.
4006 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4008 cat <<EOF >> conftest.$ac_ext
4009 #if defined (__STDC__) && __STDC__
4010 # define lt_ptr void *
4012 # define lt_ptr char *
4016 /* The mapping between symbol names and symbols. */
4021 lt_preloaded_symbols[] =
4024 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4025 cat <<\EOF >> conftest.$ac_ext
4033 # Now try linking the two files.
4034 mv conftest.$ac_objext conftstm.$ac_objext
4036 save_CFLAGS="$CFLAGS"
4037 LIBS="conftstm.$ac_objext"
4038 CFLAGS="$CFLAGS$no_builtin_flag"
4039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4040 (eval $ac_link) 2>&5
4042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } && test -s conftest$ac_exeext; then
4047 CFLAGS="$save_CFLAGS"
4049 echo "cannot find nm_test_func in $nlist" >&5
4052 echo "cannot find nm_test_var in $nlist" >&5
4055 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4058 echo "$progname: failed program was:" >&5
4059 cat conftest.$ac_ext >&5
4061 rm -f conftest* conftst*
4063 # Do not use the global_symbol_pipe unless it works.
4064 if test "$pipe_works" = yes; then
4067 lt_cv_sys_global_symbol_pipe=
4073 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4074 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4075 global_symbol_to_cdecl=
4076 global_symbol_to_c_name_address=
4078 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4079 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4081 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4083 { $as_echo "$as_me:$LINENO: result: failed" >&5
4084 $as_echo "failed" >&6; }
4086 { $as_echo "$as_me:$LINENO: result: ok" >&5
4087 $as_echo "ok" >&6; }
4091 ac_cpp='$CPP $CPPFLAGS'
4092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4095 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4096 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4097 # On Suns, sometimes $CPP names a directory.
4098 if test -n "$CPP" && test -d "$CPP"; then
4101 if test -z "$CPP"; then
4102 if test "${ac_cv_prog_CPP+set}" = set; then
4103 $as_echo_n "(cached) " >&6
4105 # Double quotes because CPP needs to be expanded
4106 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4109 for ac_c_preproc_warn_flag in '' yes
4111 # Use a header file that comes with gcc, so configuring glibc
4112 # with a fresh cross-compiler works.
4113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4114 # <limits.h> exists even on freestanding compilers.
4115 # On the NeXT, cc -E runs the code through the compiler's parser,
4116 # not just through cpp. "Syntax error" is here to catch this case.
4117 cat >conftest.$ac_ext <<_ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h. */
4124 # include <limits.h>
4126 # include <assert.h>
4130 if { (ac_try="$ac_cpp conftest.$ac_ext"
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4136 $as_echo "$ac_try_echo") >&5
4137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4139 grep -v '^ *+' conftest.er1 >conftest.err
4141 cat conftest.err >&5
4142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } >/dev/null && {
4144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4145 test ! -s conftest.err
4149 $as_echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4152 # Broken: fails on valid input.
4156 rm -f conftest.err conftest.$ac_ext
4158 # OK, works on sane cases. Now check whether nonexistent headers
4159 # can be detected and how.
4160 cat >conftest.$ac_ext <<_ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4166 #include <ac_nonexistent.h>
4168 if { (ac_try="$ac_cpp conftest.$ac_ext"
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4174 $as_echo "$ac_try_echo") >&5
4175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4177 grep -v '^ *+' conftest.er1 >conftest.err
4179 cat conftest.err >&5
4180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } >/dev/null && {
4182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4183 test ! -s conftest.err
4185 # Broken: success on invalid input.
4188 $as_echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4191 # Passes both tests.
4196 rm -f conftest.err conftest.$ac_ext
4199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4200 rm -f conftest.err conftest.$ac_ext
4201 if $ac_preproc_ok; then
4213 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4214 $as_echo "$CPP" >&6; }
4216 for ac_c_preproc_warn_flag in '' yes
4218 # Use a header file that comes with gcc, so configuring glibc
4219 # with a fresh cross-compiler works.
4220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4221 # <limits.h> exists even on freestanding compilers.
4222 # On the NeXT, cc -E runs the code through the compiler's parser,
4223 # not just through cpp. "Syntax error" is here to catch this case.
4224 cat >conftest.$ac_ext <<_ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4231 # include <limits.h>
4233 # include <assert.h>
4237 if { (ac_try="$ac_cpp conftest.$ac_ext"
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4243 $as_echo "$ac_try_echo") >&5
4244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4246 grep -v '^ *+' conftest.er1 >conftest.err
4248 cat conftest.err >&5
4249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } >/dev/null && {
4251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4252 test ! -s conftest.err
4256 $as_echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4259 # Broken: fails on valid input.
4263 rm -f conftest.err conftest.$ac_ext
4265 # OK, works on sane cases. Now check whether nonexistent headers
4266 # can be detected and how.
4267 cat >conftest.$ac_ext <<_ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4273 #include <ac_nonexistent.h>
4275 if { (ac_try="$ac_cpp conftest.$ac_ext"
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4281 $as_echo "$ac_try_echo") >&5
4282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4284 grep -v '^ *+' conftest.er1 >conftest.err
4286 cat conftest.err >&5
4287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } >/dev/null && {
4289 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4290 test ! -s conftest.err
4292 # Broken: success on invalid input.
4295 $as_echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4298 # Passes both tests.
4303 rm -f conftest.err conftest.$ac_ext
4306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4307 rm -f conftest.err conftest.$ac_ext
4308 if $ac_preproc_ok; then
4311 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4312 See \`config.log' for more details." >&5
4313 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4314 See \`config.log' for more details." >&2;}
4315 { (exit 1); exit 1; }; }
4319 ac_cpp='$CPP $CPPFLAGS'
4320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4326 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4327 if test "${ac_cv_path_GREP+set}" = set; then
4328 $as_echo_n "(cached) " >&6
4330 if test -z "$GREP"; then
4331 ac_path_GREP_found=false
4332 # Loop through the user's path and test for each of PROGNAME-LIST
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4337 test -z "$as_dir" && as_dir=.
4338 for ac_prog in grep ggrep; do
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4341 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4342 # Check for GNU ac_path_GREP and select it if it is found.
4343 # Check for GNU $ac_path_GREP
4344 case `"$ac_path_GREP" --version 2>&1` in
4346 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4349 $as_echo_n 0123456789 >"conftest.in"
4352 cat "conftest.in" "conftest.in" >"conftest.tmp"
4353 mv "conftest.tmp" "conftest.in"
4354 cp "conftest.in" "conftest.nl"
4355 $as_echo 'GREP' >> "conftest.nl"
4356 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4357 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4358 ac_count=`expr $ac_count + 1`
4359 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4360 # Best one so far, save it but keep looking for a better one
4361 ac_cv_path_GREP="$ac_path_GREP"
4362 ac_path_GREP_max=$ac_count
4364 # 10*(2^10) chars as input seems more than enough
4365 test $ac_count -gt 10 && break
4367 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4370 $ac_path_GREP_found && break 3
4375 if test -z "$ac_cv_path_GREP"; then
4376 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4377 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4378 { (exit 1); exit 1; }; }
4381 ac_cv_path_GREP=$GREP
4385 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4386 $as_echo "$ac_cv_path_GREP" >&6; }
4387 GREP="$ac_cv_path_GREP"
4390 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4391 $as_echo_n "checking for egrep... " >&6; }
4392 if test "${ac_cv_path_EGREP+set}" = set; then
4393 $as_echo_n "(cached) " >&6
4395 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4396 then ac_cv_path_EGREP="$GREP -E"
4398 if test -z "$EGREP"; then
4399 ac_path_EGREP_found=false
4400 # Loop through the user's path and test for each of PROGNAME-LIST
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4405 test -z "$as_dir" && as_dir=.
4406 for ac_prog in egrep; do
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4409 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4410 # Check for GNU ac_path_EGREP and select it if it is found.
4411 # Check for GNU $ac_path_EGREP
4412 case `"$ac_path_EGREP" --version 2>&1` in
4414 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4417 $as_echo_n 0123456789 >"conftest.in"
4420 cat "conftest.in" "conftest.in" >"conftest.tmp"
4421 mv "conftest.tmp" "conftest.in"
4422 cp "conftest.in" "conftest.nl"
4423 $as_echo 'EGREP' >> "conftest.nl"
4424 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4425 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4426 ac_count=`expr $ac_count + 1`
4427 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4428 # Best one so far, save it but keep looking for a better one
4429 ac_cv_path_EGREP="$ac_path_EGREP"
4430 ac_path_EGREP_max=$ac_count
4432 # 10*(2^10) chars as input seems more than enough
4433 test $ac_count -gt 10 && break
4435 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4438 $ac_path_EGREP_found && break 3
4443 if test -z "$ac_cv_path_EGREP"; then
4444 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4445 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4446 { (exit 1); exit 1; }; }
4449 ac_cv_path_EGREP=$EGREP
4454 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4455 $as_echo "$ac_cv_path_EGREP" >&6; }
4456 EGREP="$ac_cv_path_EGREP"
4459 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4460 $as_echo_n "checking for ANSI C header files... " >&6; }
4461 if test "${ac_cv_header_stdc+set}" = set; then
4462 $as_echo_n "(cached) " >&6
4464 cat >conftest.$ac_ext <<_ACEOF
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h. */
4483 rm -f conftest.$ac_objext
4484 if { (ac_try="$ac_compile"
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4490 $as_echo "$ac_try_echo") >&5
4491 (eval "$ac_compile") 2>conftest.er1
4493 grep -v '^ *+' conftest.er1 >conftest.err
4495 cat conftest.err >&5
4496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } && {
4498 test -z "$ac_c_werror_flag" ||
4499 test ! -s conftest.err
4500 } && test -s conftest.$ac_objext; then
4501 ac_cv_header_stdc=yes
4503 $as_echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4506 ac_cv_header_stdc=no
4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 if test $ac_cv_header_stdc = yes; then
4512 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4513 cat >conftest.$ac_ext <<_ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4523 $EGREP "memchr" >/dev/null 2>&1; then
4526 ac_cv_header_stdc=no
4532 if test $ac_cv_header_stdc = yes; then
4533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4534 cat >conftest.$ac_ext <<_ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4544 $EGREP "free" >/dev/null 2>&1; then
4547 ac_cv_header_stdc=no
4553 if test $ac_cv_header_stdc = yes; then
4554 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4555 if test "$cross_compiling" = yes; then
4558 cat >conftest.$ac_ext <<_ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h. */
4566 #if ((' ' & 0x0FF) == 0x020)
4567 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4568 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4570 # define ISLOWER(c) \
4571 (('a' <= (c) && (c) <= 'i') \
4572 || ('j' <= (c) && (c) <= 'r') \
4573 || ('s' <= (c) && (c) <= 'z'))
4574 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4582 for (i = 0; i < 256; i++)
4583 if (XOR (islower (i), ISLOWER (i))
4584 || toupper (i) != TOUPPER (i))
4589 rm -f conftest$ac_exeext
4590 if { (ac_try="$ac_link"
4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593 *) ac_try_echo=$ac_try;;
4595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4596 $as_echo "$ac_try_echo") >&5
4597 (eval "$ac_link") 2>&5
4599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4601 { (case "(($ac_try" in
4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4606 $as_echo "$ac_try_echo") >&5
4607 (eval "$ac_try") 2>&5
4609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; }; then
4613 $as_echo "$as_me: program exited with status $ac_status" >&5
4614 $as_echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4618 ac_cv_header_stdc=no
4620 rm -rf conftest.dSYM
4621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4627 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4628 $as_echo "$ac_cv_header_stdc" >&6; }
4629 if test $ac_cv_header_stdc = yes; then
4631 cat >>confdefs.h <<\_ACEOF
4632 #define STDC_HEADERS 1
4637 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4647 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4648 inttypes.h stdint.h unistd.h
4650 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4651 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4652 $as_echo_n "checking for $ac_header... " >&6; }
4653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4654 $as_echo_n "(cached) " >&6
4656 cat >conftest.$ac_ext <<_ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h. */
4662 $ac_includes_default
4664 #include <$ac_header>
4666 rm -f conftest.$ac_objext
4667 if { (ac_try="$ac_compile"
4669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670 *) ac_try_echo=$ac_try;;
4672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4673 $as_echo "$ac_try_echo") >&5
4674 (eval "$ac_compile") 2>conftest.er1
4676 grep -v '^ *+' conftest.er1 >conftest.err
4678 cat conftest.err >&5
4679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); } && {
4681 test -z "$ac_c_werror_flag" ||
4682 test ! -s conftest.err
4683 } && test -s conftest.$ac_objext; then
4684 eval "$as_ac_Header=yes"
4686 $as_echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4689 eval "$as_ac_Header=no"
4692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694 ac_res=`eval 'as_val=${'$as_ac_Header'}
4695 $as_echo "$as_val"'`
4696 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4697 $as_echo "$ac_res" >&6; }
4698 if test `eval 'as_val=${'$as_ac_Header'}
4699 $as_echo "$as_val"'` = yes; then
4700 cat >>confdefs.h <<_ACEOF
4701 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4710 for ac_header in dlfcn.h
4712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4714 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4715 $as_echo_n "checking for $ac_header... " >&6; }
4716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4717 $as_echo_n "(cached) " >&6
4719 ac_res=`eval 'as_val=${'$as_ac_Header'}
4720 $as_echo "$as_val"'`
4721 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4722 $as_echo "$ac_res" >&6; }
4724 # Is the header compilable?
4725 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4726 $as_echo_n "checking $ac_header usability... " >&6; }
4727 cat >conftest.$ac_ext <<_ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4733 $ac_includes_default
4734 #include <$ac_header>
4736 rm -f conftest.$ac_objext
4737 if { (ac_try="$ac_compile"
4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4743 $as_echo "$ac_try_echo") >&5
4744 (eval "$ac_compile") 2>conftest.er1
4746 grep -v '^ *+' conftest.er1 >conftest.err
4748 cat conftest.err >&5
4749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } && {
4751 test -z "$ac_c_werror_flag" ||
4752 test ! -s conftest.err
4753 } && test -s conftest.$ac_objext; then
4754 ac_header_compiler=yes
4756 $as_echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4759 ac_header_compiler=no
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4764 $as_echo "$ac_header_compiler" >&6; }
4766 # Is the header present?
4767 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4768 $as_echo_n "checking $ac_header presence... " >&6; }
4769 cat >conftest.$ac_ext <<_ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4775 #include <$ac_header>
4777 if { (ac_try="$ac_cpp conftest.$ac_ext"
4779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780 *) ac_try_echo=$ac_try;;
4782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4783 $as_echo "$ac_try_echo") >&5
4784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4786 grep -v '^ *+' conftest.er1 >conftest.err
4788 cat conftest.err >&5
4789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } >/dev/null && {
4791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4792 test ! -s conftest.err
4794 ac_header_preproc=yes
4796 $as_echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4799 ac_header_preproc=no
4802 rm -f conftest.err conftest.$ac_ext
4803 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4804 $as_echo "$ac_header_preproc" >&6; }
4806 # So? What about this header?
4807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4809 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4810 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4811 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4812 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4813 ac_header_preproc=yes
4816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4817 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4819 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4821 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4823 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4824 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4825 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4827 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4829 ## --------------------------------- ##
4830 ## Report this to tex-k@mail.tug.org ##
4831 ## --------------------------------- ##
4833 ) | sed "s/^/$as_me: WARNING: /" >&2
4836 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4837 $as_echo_n "checking for $ac_header... " >&6; }
4838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4839 $as_echo_n "(cached) " >&6
4841 eval "$as_ac_Header=\$ac_header_preproc"
4843 ac_res=`eval 'as_val=${'$as_ac_Header'}
4844 $as_echo "$as_val"'`
4845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4846 $as_echo "$ac_res" >&6; }
4849 if test `eval 'as_val=${'$as_ac_Header'}
4850 $as_echo "$as_val"'` = yes; then
4851 cat >>confdefs.h <<_ACEOF
4852 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4864 # Only perform the check for file, if the check method requires it
4865 case $deplibs_check_method in
4867 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4868 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4869 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
4870 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4871 $as_echo_n "(cached) " >&6
4875 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4878 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4881 ac_save_MAGIC_CMD="$MAGIC_CMD"
4882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4883 ac_dummy="/usr/bin:$PATH"
4884 for ac_dir in $ac_dummy; do
4885 test -z "$ac_dir" && ac_dir=.
4886 if test -f $ac_dir/${ac_tool_prefix}file; then
4887 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4888 if test -n "$file_magic_test_file"; then
4889 case $deplibs_check_method in
4891 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4892 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4893 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4894 egrep "$file_magic_regex" > /dev/null; then
4899 *** Warning: the command libtool uses to detect shared libraries,
4900 *** $file_magic_cmd, produces output that libtool cannot recognize.
4901 *** The result is that libtool may fail to recognize shared libraries
4902 *** as such. This will affect the creation of libtool libraries that
4903 *** depend on shared libraries, but programs linked with such libtool
4904 *** libraries will work regardless of this problem. Nevertheless, you
4905 *** may want to report the problem to your system manager and/or to
4906 *** bug-libtool@gnu.org
4916 MAGIC_CMD="$ac_save_MAGIC_CMD"
4921 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4922 if test -n "$MAGIC_CMD"; then
4923 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4924 $as_echo "$MAGIC_CMD" >&6; }
4926 { $as_echo "$as_me:$LINENO: result: no" >&5
4927 $as_echo "no" >&6; }
4930 if test -z "$lt_cv_path_MAGIC_CMD"; then
4931 if test -n "$ac_tool_prefix"; then
4932 { $as_echo "$as_me:$LINENO: checking for file" >&5
4933 $as_echo_n "checking for file... " >&6; }
4934 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4935 $as_echo_n "(cached) " >&6
4939 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4942 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4945 ac_save_MAGIC_CMD="$MAGIC_CMD"
4946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4947 ac_dummy="/usr/bin:$PATH"
4948 for ac_dir in $ac_dummy; do
4949 test -z "$ac_dir" && ac_dir=.
4950 if test -f $ac_dir/file; then
4951 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4952 if test -n "$file_magic_test_file"; then
4953 case $deplibs_check_method in
4955 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4957 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4958 egrep "$file_magic_regex" > /dev/null; then
4963 *** Warning: the command libtool uses to detect shared libraries,
4964 *** $file_magic_cmd, produces output that libtool cannot recognize.
4965 *** The result is that libtool may fail to recognize shared libraries
4966 *** as such. This will affect the creation of libtool libraries that
4967 *** depend on shared libraries, but programs linked with such libtool
4968 *** libraries will work regardless of this problem. Nevertheless, you
4969 *** may want to report the problem to your system manager and/or to
4970 *** bug-libtool@gnu.org
4980 MAGIC_CMD="$ac_save_MAGIC_CMD"
4985 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4986 if test -n "$MAGIC_CMD"; then
4987 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4988 $as_echo "$MAGIC_CMD" >&6; }
4990 { $as_echo "$as_me:$LINENO: result: no" >&5
4991 $as_echo "no" >&6; }
5003 if test -n "$ac_tool_prefix"; then
5004 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5005 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5006 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5007 $as_echo_n "checking for $ac_word... " >&6; }
5008 if test "${ac_cv_prog_RANLIB+set}" = set; then
5009 $as_echo_n "(cached) " >&6
5011 if test -n "$RANLIB"; then
5012 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5021 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5022 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 RANLIB=$ac_cv_prog_RANLIB
5032 if test -n "$RANLIB"; then
5033 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5034 $as_echo "$RANLIB" >&6; }
5036 { $as_echo "$as_me:$LINENO: result: no" >&5
5037 $as_echo "no" >&6; }
5042 if test -z "$ac_cv_prog_RANLIB"; then
5043 ac_ct_RANLIB=$RANLIB
5044 # Extract the first word of "ranlib", so it can be a program name with args.
5045 set dummy ranlib; ac_word=$2
5046 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5049 $as_echo_n "(cached) " >&6
5051 if test -n "$ac_ct_RANLIB"; then
5052 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061 ac_cv_prog_ac_ct_RANLIB="ranlib"
5062 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5072 if test -n "$ac_ct_RANLIB"; then
5073 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5074 $as_echo "$ac_ct_RANLIB" >&6; }
5076 { $as_echo "$as_me:$LINENO: result: no" >&5
5077 $as_echo "no" >&6; }
5080 if test "x$ac_ct_RANLIB" = x; then
5083 case $cross_compiling:$ac_tool_warned in
5085 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5086 whose name does not start with the host triplet. If you think this
5087 configuration is useful to you, please write to autoconf@gnu.org." >&5
5088 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5089 whose name does not start with the host triplet. If you think this
5090 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5091 ac_tool_warned=yes ;;
5093 RANLIB=$ac_ct_RANLIB
5096 RANLIB="$ac_cv_prog_RANLIB"
5099 if test -n "$ac_tool_prefix"; then
5100 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5101 set dummy ${ac_tool_prefix}strip; ac_word=$2
5102 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5103 $as_echo_n "checking for $ac_word... " >&6; }
5104 if test "${ac_cv_prog_STRIP+set}" = set; then
5105 $as_echo_n "(cached) " >&6
5107 if test -n "$STRIP"; then
5108 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5118 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 STRIP=$ac_cv_prog_STRIP
5128 if test -n "$STRIP"; then
5129 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5130 $as_echo "$STRIP" >&6; }
5132 { $as_echo "$as_me:$LINENO: result: no" >&5
5133 $as_echo "no" >&6; }
5138 if test -z "$ac_cv_prog_STRIP"; then
5140 # Extract the first word of "strip", so it can be a program name with args.
5141 set dummy strip; ac_word=$2
5142 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5145 $as_echo_n "(cached) " >&6
5147 if test -n "$ac_ct_STRIP"; then
5148 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5157 ac_cv_prog_ac_ct_STRIP="strip"
5158 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5168 if test -n "$ac_ct_STRIP"; then
5169 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5170 $as_echo "$ac_ct_STRIP" >&6; }
5172 { $as_echo "$as_me:$LINENO: result: no" >&5
5173 $as_echo "no" >&6; }
5176 if test "x$ac_ct_STRIP" = x; then
5179 case $cross_compiling:$ac_tool_warned in
5181 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5182 whose name does not start with the host triplet. If you think this
5183 configuration is useful to you, please write to autoconf@gnu.org." >&5
5184 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5185 whose name does not start with the host triplet. If you think this
5186 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5187 ac_tool_warned=yes ;;
5192 STRIP="$ac_cv_prog_STRIP"
5199 # Check whether --enable-libtool-lock was given.
5200 if test "${enable_libtool_lock+set}" = set; then
5201 enableval=$enable_libtool_lock;
5204 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5206 # Some flags need to be propagated to the compiler or linker for good
5210 # Find out which ABI we are using.
5211 echo '#line 5211 "configure"' > conftest.$ac_ext
5212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5213 (eval $ac_compile) 2>&5
5215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; then
5217 case `/usr/bin/file conftest.$ac_objext` in
5233 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5234 SAVE_CFLAGS="$CFLAGS"
5235 CFLAGS="$CFLAGS -belf"
5236 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5237 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5238 if test "${lt_cv_cc_needs_belf+set}" = set; then
5239 $as_echo_n "(cached) " >&6
5243 ac_cpp='$CPP $CPPFLAGS'
5244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5248 cat >conftest.$ac_ext <<_ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5263 rm -f conftest.$ac_objext conftest$ac_exeext
5264 if { (ac_try="$ac_link"
5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5270 $as_echo "$ac_try_echo") >&5
5271 (eval "$ac_link") 2>conftest.er1
5273 grep -v '^ *+' conftest.er1 >conftest.err
5275 cat conftest.err >&5
5276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); } && {
5278 test -z "$ac_c_werror_flag" ||
5279 test ! -s conftest.err
5280 } && test -s conftest$ac_exeext && {
5281 test "$cross_compiling" = yes ||
5282 $as_test_x conftest$ac_exeext
5284 lt_cv_cc_needs_belf=yes
5286 $as_echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.$ac_ext >&5
5289 lt_cv_cc_needs_belf=no
5292 rm -rf conftest.dSYM
5293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5294 conftest$ac_exeext conftest.$ac_ext
5296 ac_cpp='$CPP $CPPFLAGS'
5297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5302 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5303 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5304 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5305 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5306 CFLAGS="$SAVE_CFLAGS"
5313 # Sed substitution that helps us do robust quoting. It backslashifies
5314 # metacharacters that are still active within double-quoted strings.
5315 Xsed='sed -e s/^X//'
5316 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5318 # Same as above, but do not quote variable references.
5319 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5321 # Sed substitution to delay expansion of an escaped shell variable in a
5322 # double_quote_subst'ed string.
5323 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5329 default_ofile=libtool
5330 can_build_shared=yes
5332 # All known linkers require a `.a' archive for static linking (except M$VC,
5333 # which needs '.lib').
5335 ltmain="$ac_aux_dir/ltmain.sh"
5336 ofile="$default_ofile"
5337 with_gnu_ld="$lt_cv_prog_gnu_ld"
5338 need_locks="$enable_libtool_lock"
5341 old_CFLAGS="$CFLAGS"
5343 # Set sane defaults for various variables
5344 test -z "$AR" && AR=ar
5345 test -z "$AR_FLAGS" && AR_FLAGS=cru
5346 test -z "$AS" && AS=as
5347 test -z "$CC" && CC=cc
5348 test -z "$DLLTOOL" && DLLTOOL=dlltool
5349 test -z "$LD" && LD=ld
5350 test -z "$LN_S" && LN_S="ln -s"
5351 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5352 test -z "$NM" && NM=nm
5353 test -z "$OBJDUMP" && OBJDUMP=objdump
5354 test -z "$RANLIB" && RANLIB=:
5355 test -z "$STRIP" && STRIP=:
5356 test -z "$ac_objext" && ac_objext=o
5358 if test x"$host" != x"$build"; then
5359 ac_tool_prefix=${host_alias}-
5364 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5367 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5372 # AIX sometimes has problems with the GCC collect2 program. For some
5373 # reason, if we set the COLLECT_NAMES environment variable, the problems
5374 # vanish in a puff of smoke.
5375 if test "X${COLLECT_NAMES+set}" != Xset; then
5377 export COLLECT_NAMES
5382 # Determine commands to create old-style static archives.
5383 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5384 old_postinstall_cmds='chmod 644 $oldlib'
5385 old_postuninstall_cmds=
5387 if test -n "$RANLIB"; then
5390 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5393 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5396 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5399 # Allow CC to be a program name with arguments.
5403 ## FIXME: this should be a separate macro
5405 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
5406 $as_echo_n "checking for objdir... " >&6; }
5407 rm -f .libs 2>/dev/null
5408 mkdir .libs 2>/dev/null
5409 if test -d .libs; then
5412 # MS-DOS does not allow filenames that begin with a dot.
5415 rmdir .libs 2>/dev/null
5416 { $as_echo "$as_me:$LINENO: result: $objdir" >&5
5417 $as_echo "$objdir" >&6; }
5422 ## FIXME: this should be a separate macro
5425 # Check whether --with-pic was given.
5426 if test "${with_pic+set}" = set; then
5427 withval=$with_pic; pic_mode="$withval"
5432 test -z "$pic_mode" && pic_mode=default
5434 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5435 # in isolation, and that seeing it set (from the cache) indicates that
5436 # the associated values are set (in the cache) correctly too.
5437 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5438 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
5439 if test "${lt_cv_prog_cc_pic+set}" = set; then
5440 $as_echo_n "(cached) " >&6
5443 lt_cv_prog_cc_shlib=
5445 lt_cv_prog_cc_static=
5446 lt_cv_prog_cc_no_builtin=
5447 lt_cv_prog_cc_can_build_shared=$can_build_shared
5449 if test "$GCC" = yes; then
5450 lt_cv_prog_cc_wl='-Wl,'
5451 lt_cv_prog_cc_static='-static'
5455 # Below there is a dirty hack to force normal static linking with -ldl
5456 # The problem is because libdl dynamically linked with both libc and
5457 # libC (AIX C++ library), which obviously doesn't included in libraries
5458 # list by gcc. This cause undefined symbols with -static flags.
5459 # This hack allows C programs to be linked with "-static -ldl", but
5460 # not sure about C++ programs.
5461 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5464 # FIXME: we need at least 68020 code to build shared libraries, but
5465 # adding the `-m68020' flag to GCC prevents building anything better,
5467 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5469 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5470 # PIC is the default for these OSes.
5472 darwin* | rhapsody*)
5473 # PIC is the default on this platform
5474 # Common symbols not allowed in MH_DYLIB files
5475 lt_cv_prog_cc_pic='-fno-common'
5477 cygwin* | mingw* | pw32* | os2*)
5478 # This hack is so that the source file can tell whether it is being
5479 # built for inclusion in a dll (and should export symbols for example).
5480 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5483 if test -d /usr/nec; then
5484 lt_cv_prog_cc_pic=-Kconform_pic
5488 lt_cv_prog_cc_pic='-fPIC'
5492 # PORTME Check for PIC flags for the system compiler.
5494 aix3* | aix4* | aix5*)
5495 lt_cv_prog_cc_wl='-Wl,'
5496 # All AIX code is PIC.
5497 if test "$host_cpu" = ia64; then
5498 # AIX 5 now supports IA64 processor
5499 lt_cv_prog_cc_static='-Bstatic'
5501 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5505 hpux9* | hpux10* | hpux11*)
5506 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5507 lt_cv_prog_cc_wl='-Wl,'
5508 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5509 lt_cv_prog_cc_pic='+Z'
5512 irix5* | irix6* | nonstopux*)
5513 lt_cv_prog_cc_wl='-Wl,'
5514 lt_cv_prog_cc_static='-non_shared'
5515 # PIC (with -KPIC) is the default.
5518 cygwin* | mingw* | pw32* | os2*)
5519 # This hack is so that the source file can tell whether it is being
5520 # built for inclusion in a dll (and should export symbols for example).
5521 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5525 lt_cv_prog_cc_pic='-KPIC'
5526 lt_cv_prog_cc_static='-Bstatic'
5529 osf3* | osf4* | osf5*)
5530 # All OSF/1 code is PIC.
5531 lt_cv_prog_cc_wl='-Wl,'
5532 lt_cv_prog_cc_static='-non_shared'
5536 lt_cv_prog_cc_pic='-Kpic'
5537 lt_cv_prog_cc_static='-dn'
5538 lt_cv_prog_cc_shlib='-belf'
5542 lt_cv_prog_cc_pic='-KPIC'
5543 lt_cv_prog_cc_static='-Bstatic'
5544 lt_cv_prog_cc_wl='-Wl,'
5548 lt_cv_prog_cc_pic='-PIC'
5549 lt_cv_prog_cc_static='-Bstatic'
5550 lt_cv_prog_cc_wl='-Qoption ld '
5553 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5554 lt_cv_prog_cc_pic='-KPIC'
5555 lt_cv_prog_cc_static='-Bstatic'
5556 lt_cv_prog_cc_wl='-Wl,'
5560 lt_cv_prog_cc_pic='-pic'
5561 lt_cv_prog_cc_static='-Bstatic'
5565 if test -d /usr/nec ;then
5566 lt_cv_prog_cc_pic='-Kconform_pic'
5567 lt_cv_prog_cc_static='-Bstatic'
5572 lt_cv_prog_cc_can_build_shared=no
5579 if test -z "$lt_cv_prog_cc_pic"; then
5580 { $as_echo "$as_me:$LINENO: result: none" >&5
5581 $as_echo "none" >&6; }
5583 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5584 $as_echo "$lt_cv_prog_cc_pic" >&6; }
5586 # Check to make sure the pic_flag actually works.
5587 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5588 $as_echo_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... " >&6; }
5589 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5590 $as_echo_n "(cached) " >&6
5592 save_CFLAGS="$CFLAGS"
5593 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5594 cat >conftest.$ac_ext <<_ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5609 rm -f conftest.$ac_objext
5610 if { (ac_try="$ac_compile"
5612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5613 *) ac_try_echo=$ac_try;;
5615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5616 $as_echo "$ac_try_echo") >&5
5617 (eval "$ac_compile") 2>conftest.er1
5619 grep -v '^ *+' conftest.er1 >conftest.err
5621 cat conftest.err >&5
5622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } && {
5624 test -z "$ac_c_werror_flag" ||
5625 test ! -s conftest.err
5626 } && test -s conftest.$ac_objext; then
5628 hpux9* | hpux10* | hpux11*)
5629 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5630 # they create non-PIC objects. So, if there were any warnings, we
5631 # assume that PIC is not supported.
5632 if test -s conftest.err; then
5633 lt_cv_prog_cc_pic_works=no
5635 lt_cv_prog_cc_pic_works=yes
5639 lt_cv_prog_cc_pic_works=yes
5644 $as_echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.$ac_ext >&5
5647 lt_cv_prog_cc_pic_works=no
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 CFLAGS="$save_CFLAGS"
5657 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5659 lt_cv_prog_cc_can_build_shared=no
5661 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5664 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5665 $as_echo "$lt_cv_prog_cc_pic_works" >&6; }
5670 # Check for any special shared library compilation flags.
5671 if test -n "$lt_cv_prog_cc_shlib"; then
5672 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5673 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5674 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5676 { $as_echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5677 $as_echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5678 lt_cv_prog_cc_can_build_shared=no
5682 ## FIXME: this should be a separate macro
5684 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5685 $as_echo_n "checking if $compiler static flag $lt_cv_prog_cc_static works... " >&6; }
5686 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5687 $as_echo_n "(cached) " >&6
5689 lt_cv_prog_cc_static_works=no
5690 save_LDFLAGS="$LDFLAGS"
5691 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5692 cat >conftest.$ac_ext <<_ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5707 rm -f conftest.$ac_objext conftest$ac_exeext
5708 if { (ac_try="$ac_link"
5710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711 *) ac_try_echo=$ac_try;;
5713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5714 $as_echo "$ac_try_echo") >&5
5715 (eval "$ac_link") 2>conftest.er1
5717 grep -v '^ *+' conftest.er1 >conftest.err
5719 cat conftest.err >&5
5720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } && {
5722 test -z "$ac_c_werror_flag" ||
5723 test ! -s conftest.err
5724 } && test -s conftest$ac_exeext && {
5725 test "$cross_compiling" = yes ||
5726 $as_test_x conftest$ac_exeext
5728 lt_cv_prog_cc_static_works=yes
5730 $as_echo "$as_me: failed program was:" >&5
5731 sed 's/^/| /' conftest.$ac_ext >&5
5736 rm -rf conftest.dSYM
5737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5738 conftest$ac_exeext conftest.$ac_ext
5739 LDFLAGS="$save_LDFLAGS"
5744 # Belt *and* braces to stop my trousers falling down:
5745 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5746 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5747 $as_echo "$lt_cv_prog_cc_static_works" >&6; }
5749 pic_flag="$lt_cv_prog_cc_pic"
5750 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5751 wl="$lt_cv_prog_cc_wl"
5752 link_static_flag="$lt_cv_prog_cc_static"
5753 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5754 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5759 ## FIXME: this should be a separate macro
5761 # Check to see if options -o and -c are simultaneously supported by compiler
5762 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5763 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
5764 if test "${lt_cv_compiler_c_o+set}" = set; then
5765 $as_echo_n "(cached) " >&6
5768 $rm -r conftest 2>/dev/null
5771 echo "int some_variable = 0;" > conftest.$ac_ext
5773 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5774 # that will create temporary files in the current directory regardless of
5775 # the output directory. Thus, making CWD read-only will cause this test
5776 # to fail, enabling locking or at least warning the user not to do parallel
5779 save_CFLAGS="$CFLAGS"
5780 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5782 if { (eval echo configure:5782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5783 # The compiler can only warn and ignore the option if not recognized
5784 # So say no if there are warnings
5785 if test -s out/conftest.err; then
5786 lt_cv_compiler_c_o=no
5788 lt_cv_compiler_c_o=yes
5791 # Append any errors to the config.log.
5792 cat out/conftest.err 1>&5
5793 lt_cv_compiler_c_o=no
5795 CFLAGS="$save_CFLAGS"
5801 $rm -r conftest 2>/dev/null
5805 compiler_c_o=$lt_cv_compiler_c_o
5806 { $as_echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5807 $as_echo "$compiler_c_o" >&6; }
5809 if test x"$compiler_c_o" = x"yes"; then
5810 # Check to see if we can write to a .lo
5811 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5812 $as_echo_n "checking if $compiler supports -c -o file.lo... " >&6; }
5813 if test "${lt_cv_compiler_o_lo+set}" = set; then
5814 $as_echo_n "(cached) " >&6
5817 lt_cv_compiler_o_lo=no
5818 save_CFLAGS="$CFLAGS"
5819 CFLAGS="$CFLAGS -c -o conftest.lo"
5820 save_objext="$ac_objext"
5822 cat >conftest.$ac_ext <<_ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5832 int some_variable = 0;
5837 rm -f conftest.$ac_objext
5838 if { (ac_try="$ac_compile"
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5844 $as_echo "$ac_try_echo") >&5
5845 (eval "$ac_compile") 2>conftest.er1
5847 grep -v '^ *+' conftest.er1 >conftest.err
5849 cat conftest.err >&5
5850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } && {
5852 test -z "$ac_c_werror_flag" ||
5853 test ! -s conftest.err
5854 } && test -s conftest.$ac_objext; then
5855 # The compiler can only warn and ignore the option if not recognized
5856 # So say no if there are warnings
5857 if test -s conftest.err; then
5858 lt_cv_compiler_o_lo=no
5860 lt_cv_compiler_o_lo=yes
5864 $as_echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5871 ac_objext="$save_objext"
5872 CFLAGS="$save_CFLAGS"
5876 compiler_o_lo=$lt_cv_compiler_o_lo
5877 { $as_echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5878 $as_echo "$compiler_o_lo" >&6; }
5885 ## FIXME: this should be a separate macro
5887 # Check to see if we can do hard links to lock some files if needed
5888 hard_links="nottested"
5889 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5890 # do not overwrite the value of need_locks provided by the user
5891 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5892 $as_echo_n "checking if we can lock with hard links... " >&6; }
5895 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5897 ln conftest.a conftest.b 2>&5 || hard_links=no
5898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5899 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
5900 $as_echo "$hard_links" >&6; }
5901 if test "$hard_links" = no; then
5902 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5903 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5912 ## FIXME: this should be a separate macro
5914 if test "$GCC" = yes; then
5915 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5916 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5917 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
5918 echo "int some_variable = 0;" > conftest.$ac_ext
5919 save_CFLAGS="$CFLAGS"
5920 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5921 compiler_rtti_exceptions=no
5922 cat >conftest.$ac_ext <<_ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5932 int some_variable = 0;
5937 rm -f conftest.$ac_objext
5938 if { (ac_try="$ac_compile"
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5944 $as_echo "$ac_try_echo") >&5
5945 (eval "$ac_compile") 2>conftest.er1
5947 grep -v '^ *+' conftest.er1 >conftest.err
5949 cat conftest.err >&5
5950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } && {
5952 test -z "$ac_c_werror_flag" ||
5953 test ! -s conftest.err
5954 } && test -s conftest.$ac_objext; then
5955 # The compiler can only warn and ignore the option if not recognized
5956 # So say no if there are warnings
5957 if test -s conftest.err; then
5958 compiler_rtti_exceptions=no
5960 compiler_rtti_exceptions=yes
5964 $as_echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971 CFLAGS="$save_CFLAGS"
5972 { $as_echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5973 $as_echo "$compiler_rtti_exceptions" >&6; }
5975 if test "$compiler_rtti_exceptions" = "yes"; then
5976 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5978 no_builtin_flag=' -fno-builtin'
5984 ## FIXME: this should be a separate macro
5986 # See if the linker supports building shared libraries.
5987 { $as_echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5988 $as_echo_n "checking whether the linker ($LD) supports shared libraries... " >&6; }
5990 allow_undefined_flag=
5992 need_lib_prefix=unknown
5993 need_version=unknown
5994 # when you set need_version to no, make sure it does not cause -set_version
5995 # flags to be left without arguments
5997 archive_expsym_cmds=
5998 old_archive_from_new_cmds=
5999 old_archive_from_expsyms_cmds=
6000 export_dynamic_flag_spec=
6001 whole_archive_flag_spec=
6002 thread_safe_flag_spec=
6003 hardcode_into_libs=no
6004 hardcode_libdir_flag_spec=
6005 hardcode_libdir_separator=
6008 hardcode_shlibpath_var=unsupported
6010 link_all_deplibs=unknown
6011 always_export_symbols=no
6012 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6013 # include_expsyms should be a list of space-separated symbols to be *always*
6014 # included in the symbol list
6016 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6017 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6018 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6019 # as well as any symbol that contains `d'.
6020 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6021 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6022 # platforms (ab)use it in PIC code, but their linkers get confused if
6023 # the symbol is explicitly referenced. Since portable code cannot
6024 # rely on this symbol name, it's probably fine to never include it in
6025 # preloaded symbol tables.
6026 extract_expsyms_cmds=
6029 cygwin* | mingw* | pw32*)
6030 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6031 # When not using gcc, we currently assume that we are using
6032 # Microsoft Visual C++.
6033 if test "$GCC" != yes; then
6043 if test "$with_gnu_ld" = yes; then
6044 # If archive_cmds runs LD, not CC, wlarc should be empty
6047 # See if GNU ld supports shared libraries.
6049 aix3* | aix4* | aix5*)
6050 # On AIX, the GNU linker is very broken
6051 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6055 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6056 *** to be unable to reliably create shared libraries on AIX.
6057 *** Therefore, libtool is disabling shared libraries support. If you
6058 *** really care for shared libraries, you may want to modify your PATH
6059 *** so that a non-GNU linker is found, and then restart.
6065 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)'
6066 hardcode_libdir_flag_spec='-L$libdir'
6067 hardcode_minus_L=yes
6069 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6070 # that the semantics of dynamic libraries on AmigaOS, at least up
6071 # to version 4, is to share data among multiple programs linked
6072 # with the same dynamic library. Since this doesn't match the
6073 # behavior of shared libraries on other platforms, we can use
6079 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6080 allow_undefined_flag=unsupported
6081 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6082 # support --undefined. This deserves some investigation. FIXME
6083 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6089 cygwin* | mingw* | pw32*)
6090 # hardcode_libdir_flag_spec is actually meaningless, as there is
6091 # no search path for DLLs.
6092 hardcode_libdir_flag_spec='-L$libdir'
6093 allow_undefined_flag=unsupported
6094 always_export_symbols=yes
6096 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6097 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6098 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6099 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6100 else $CC -o impgen impgen.c ; fi)~
6101 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6103 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6105 # cygwin and mingw dlls have different entry points and sets of symbols
6107 # FIXME: what about values for MSVC?
6108 dll_entry=__cygwin_dll_entry@12
6109 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6113 dll_entry=_DllMainCRTStartup@12
6114 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6118 # mingw and cygwin differ, and it's simplest to just exclude the union
6119 # of the two symbol sets.
6120 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6122 # recent cygwin and mingw systems supply a stub DllMain which the user
6123 # can override, but on older systems we have to supply one (in ltdll.c)
6124 if test "x$lt_cv_need_dllmain" = "xyes"; then
6125 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6126 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6127 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6133 # Extract the symbol export list from an `--export-all' def file,
6134 # then regenerate the def file from the symbol export list, so that
6135 # the compiled dll only exports the symbol export list.
6136 # Be careful not to strip the DATA tag left be newer dlltools.
6137 export_symbols_cmds="$ltdll_cmds"'
6138 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6139 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6141 # If the export-symbols file already is a .def file (1st line
6142 # is EXPORTS), use it as is.
6143 # If DATA tags from a recent dlltool are present, honour them!
6144 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6145 cp $export_symbols $output_objdir/$soname-def;
6147 echo EXPORTS > $output_objdir/$soname-def;
6149 cat $export_symbols | while read symbol; do
6152 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6153 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6154 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6156 _lt_hint=`expr 1 + \$_lt_hint`;
6160 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6161 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6162 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6163 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6164 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6168 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6169 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6172 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6173 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6178 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6182 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6183 *** create shared libraries on Solaris systems. Therefore, libtool
6184 *** is disabling shared libraries support. We urge you to upgrade GNU
6185 *** binutils to release 2.9.1 or newer. Another option is to modify
6186 *** your PATH or compiler configuration so that the native linker is
6187 *** used, and then restart.
6190 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6192 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6199 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6202 hardcode_shlibpath_var=no
6206 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6207 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6208 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6215 if test "$ld_shlibs" = yes; then
6216 runpath_var=LD_RUN_PATH
6217 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6218 export_dynamic_flag_spec='${wl}--export-dynamic'
6220 cygwin* | mingw* | pw32*)
6221 # dlltool doesn't understand --whole-archive et. al.
6222 whole_archive_flag_spec=
6225 # ancient GNU ld didn't support --whole-archive et. al.
6226 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6227 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6229 whole_archive_flag_spec=
6235 # PORTME fill in a description of your system's linker (not GNU ld)
6238 allow_undefined_flag=unsupported
6239 always_export_symbols=yes
6240 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'
6241 # Note: this linker hardcodes the directories in LIBPATH if there
6242 # are no directories specified by -L.
6243 hardcode_minus_L=yes
6244 if test "$GCC" = yes && test -z "$link_static_flag"; then
6245 # Neither direct hardcoding nor static linking is supported with a
6247 hardcode_direct=unsupported
6252 if test "$host_cpu" = ia64; then
6253 # On IA64, the linker does run time linking by default, so we don't
6254 # have to do anything special.
6255 aix_use_runtimelinking=no
6256 exp_sym_flag='-Bexport'
6259 aix_use_runtimelinking=no
6261 # Test if we are trying to use run time linking or normal
6262 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6263 # need to do runtime linking.
6264 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6265 for ld_flag in $LDFLAGS; do
6268 aix_use_runtimelinking=yes
6275 exp_sym_flag='-bexport'
6276 no_entry_flag='-bnoentry'
6279 # When large executables or shared objects are built, AIX ld can
6280 # have problems creating the table of contents. If linking a library
6281 # or program results in "error TOC overflow" add -mminimal-toc to
6282 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6283 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6287 hardcode_libdir_separator=':'
6288 if test "$GCC" = yes; then
6289 case $host_os in aix4.[012]|aix4.[012].*)
6290 collect2name=`${CC} -print-prog-name=collect2`
6291 if test -f "$collect2name" && \
6292 strings "$collect2name" | grep resolve_lib_name >/dev/null
6294 # We have reworked collect2
6297 # We have old collect2
6298 hardcode_direct=unsupported
6299 # It fails to find uninstalled libraries when the uninstalled
6300 # path is not listed in the libpath. Setting hardcode_minus_L
6301 # to unsupported forces relinking
6302 hardcode_minus_L=yes
6303 hardcode_libdir_flag_spec='-L$libdir'
6304 hardcode_libdir_separator=
6308 shared_flag='-shared'
6311 if test "$host_cpu" = ia64; then
6312 shared_flag='${wl}-G'
6314 if test "$aix_use_runtimelinking" = yes; then
6315 shared_flag='${wl}-G'
6317 shared_flag='${wl}-bM:SRE'
6322 # It seems that -bexpall can do strange things, so it is better to
6323 # generate a list of symbols to export.
6324 always_export_symbols=yes
6325 if test "$aix_use_runtimelinking" = yes; then
6326 # Warning - without using the other runtime loading flags (-brtl),
6327 # -berok will link without error, but may produce a broken library.
6328 allow_undefined_flag='-berok'
6329 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6330 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6332 if test "$host_cpu" = ia64; then
6333 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6334 allow_undefined_flag="-z nodefs"
6335 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6337 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6338 # Warning - without using the other run time loading flags,
6339 # -berok will link without error, but may produce a broken library.
6340 allow_undefined_flag='${wl}-berok'
6341 # This is a bit strange, but is similar to how AIX traditionally builds
6342 # it's shared libraries.
6343 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6349 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)'
6350 hardcode_libdir_flag_spec='-L$libdir'
6351 hardcode_minus_L=yes
6352 # see comment about different semantics on the GNU ld section
6356 cygwin* | mingw* | pw32*)
6357 # When not using gcc, we currently assume that we are using
6358 # Microsoft Visual C++.
6359 # hardcode_libdir_flag_spec is actually meaningless, as there is
6360 # no search path for DLLs.
6361 hardcode_libdir_flag_spec=' '
6362 allow_undefined_flag=unsupported
6363 # Tell ltmain to make .lib files, not .a files.
6365 # FIXME: Setting linknames here is a bad hack.
6366 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6367 # The linker will automatically build a .lib file if we build a DLL.
6368 old_archive_from_new_cmds='true'
6369 # FIXME: Should let the user specify the lib program.
6370 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6371 fix_srcfile_path='`cygpath -w "$srcfile"`'
6374 darwin* | rhapsody*)
6376 rhapsody* | darwin1.[012])
6377 allow_undefined_flag='-undefined suppress'
6380 allow_undefined_flag='-flat_namespace -undefined suppress'
6383 # FIXME: Relying on posixy $() will cause problems for
6384 # cross-compilation, but unfortunately the echo tests do not
6385 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6386 # `"' quotes if we put them in here... so don't!
6387 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
6388 # We need to add '_' to the symbols in $export_symbols first
6389 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6391 hardcode_shlibpath_var=no
6392 whole_archive_flag_spec='-all_load $convenience'
6399 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6400 # support. Future versions do this automatically, but an explicit c++rt0.o
6401 # does not break anything, and helps significantly (at the cost of a little
6404 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6405 hardcode_libdir_flag_spec='-R$libdir'
6407 hardcode_shlibpath_var=no
6410 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6412 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6414 hardcode_minus_L=yes
6415 hardcode_shlibpath_var=no
6418 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6419 freebsd* | kfreebsd*-gnu)
6420 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6421 hardcode_libdir_flag_spec='-R$libdir'
6423 hardcode_shlibpath_var=no
6426 hpux9* | hpux10* | hpux11*)
6428 hpux9*) 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' ;;
6429 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6431 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6432 hardcode_libdir_separator=:
6434 hardcode_minus_L=yes # Not in the search PATH, but as the default
6435 # location of the library.
6436 export_dynamic_flag_spec='${wl}-E'
6439 irix5* | irix6* | nonstopux*)
6440 if test "$GCC" = yes; then
6441 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6442 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6444 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6445 hardcode_libdir_flag_spec='-rpath $libdir'
6447 hardcode_libdir_separator=:
6448 link_all_deplibs=yes
6452 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6453 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6455 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6457 hardcode_libdir_flag_spec='-R$libdir'
6459 hardcode_shlibpath_var=no
6463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6465 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6466 hardcode_libdir_separator=:
6467 hardcode_shlibpath_var=no
6472 hardcode_shlibpath_var=no
6473 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6474 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6475 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6476 export_dynamic_flag_spec='${wl}-E'
6479 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6480 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6481 hardcode_libdir_flag_spec='-R$libdir'
6484 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6485 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6492 hardcode_libdir_flag_spec='-L$libdir'
6493 hardcode_minus_L=yes
6494 allow_undefined_flag=unsupported
6495 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'
6496 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6500 if test "$GCC" = yes; then
6501 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6502 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6504 allow_undefined_flag=' -expect_unresolved \*'
6505 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6507 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6508 hardcode_libdir_separator=:
6511 osf4* | osf5*) # as osf3* with the addition of -msym flag
6512 if test "$GCC" = yes; then
6513 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6514 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6515 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6517 allow_undefined_flag=' -expect_unresolved \*'
6518 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6519 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6520 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6522 #Both c and cxx compiler support -rpath directly
6523 hardcode_libdir_flag_spec='-rpath $libdir'
6525 hardcode_libdir_separator=:
6529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6530 hardcode_shlibpath_var=no
6531 runpath_var=LD_RUN_PATH
6532 hardcode_runpath_var=yes
6533 export_dynamic_flag_spec='${wl}-Bexport'
6537 # gcc --version < 3.0 without binutils cannot create self contained
6538 # shared libraries reliably, requiring libgcc.a to resolve some of
6539 # the object symbols generated in some cases. Libraries that use
6540 # assert need libgcc.a to resolve __eprintf, for example. Linking
6541 # a copy of libgcc.a into every shared library to guarantee resolving
6542 # such symbols causes other problems: According to Tim Van Holder
6543 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6544 # (to the application) exception stack for one thing.
6545 no_undefined_flag=' -z defs'
6546 if test "$GCC" = yes; then
6547 case `$CC --version 2>/dev/null` in
6551 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6552 *** create self contained shared libraries on Solaris systems, without
6553 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6554 *** -no-undefined support, which will at least allow you to build shared
6555 *** libraries. However, you may find that when you link such libraries
6556 *** into an application without using GCC, you have to manually add
6557 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6558 *** upgrade to a newer version of GCC. Another option is to rebuild your
6559 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6566 # $CC -shared without GNU ld will not create a library from C++
6567 # object files and a static libstdc++, better avoid it by now
6568 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6569 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6570 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6571 hardcode_libdir_flag_spec='-R$libdir'
6572 hardcode_shlibpath_var=no
6574 solaris2.[0-5] | solaris2.[0-5].*) ;;
6575 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6576 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6578 link_all_deplibs=yes
6582 if test "x$host_vendor" = xsequent; then
6583 # Use $CC to link under sequent, because it throws in some extra .o
6584 # files that make .init and .fini sections work.
6585 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6587 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6589 hardcode_libdir_flag_spec='-L$libdir'
6591 hardcode_minus_L=yes
6592 hardcode_shlibpath_var=no
6596 case $host_vendor in
6598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6599 hardcode_direct=yes # is this really true???
6602 ## LD is ld it makes a PLAMLIB
6603 ## CC just makes a GrossModule.
6604 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6605 reload_cmds='$CC -r -o $output$reload_objs'
6609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6610 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6613 runpath_var='LD_RUN_PATH'
6614 hardcode_shlibpath_var=no
6618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6619 hardcode_shlibpath_var=no
6620 export_dynamic_flag_spec='-Bexport'
6624 no_undefined_flag=' -z text'
6625 # $CC -shared without GNU ld will not create a library from C++
6626 # object files and a static libstdc++, better avoid it by now
6627 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6628 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6629 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6630 hardcode_libdir_flag_spec=
6631 hardcode_shlibpath_var=no
6632 runpath_var='LD_RUN_PATH'
6636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6637 hardcode_libdir_flag_spec='-L$libdir'
6638 hardcode_shlibpath_var=no
6642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6643 hardcode_libdir_flag_spec='-L$libdir'
6644 hardcode_shlibpath_var=no
6648 if test -d /usr/nec; then
6649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6650 hardcode_shlibpath_var=no
6651 runpath_var=LD_RUN_PATH
6652 hardcode_runpath_var=yes
6658 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6661 hardcode_shlibpath_var=no
6662 hardcode_runpath_var=yes
6663 runpath_var=LD_RUN_PATH
6666 sysv5uw7* | unixware7*)
6667 no_undefined_flag='${wl}-z ${wl}text'
6668 if test "$GCC" = yes; then
6669 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6671 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6673 runpath_var='LD_RUN_PATH'
6674 hardcode_shlibpath_var=no
6682 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6683 $as_echo "$ld_shlibs" >&6; }
6684 test "$ld_shlibs" = no && can_build_shared=no
6688 ## FIXME: this should be a separate macro
6690 # Check hardcoding attributes.
6691 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6692 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
6694 if test -n "$hardcode_libdir_flag_spec" || \
6695 test -n "$runpath_var"; then
6697 # We can hardcode non-existant directories.
6698 if test "$hardcode_direct" != no &&
6699 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6700 # have to relink, otherwise we might link with an installed library
6701 # when we should be linking with a yet-to-be-installed one
6702 ## test "$hardcode_shlibpath_var" != no &&
6703 test "$hardcode_minus_L" != no; then
6704 # Linking always hardcodes the temporary library directory.
6705 hardcode_action=relink
6707 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6708 hardcode_action=immediate
6711 # We cannot hardcode anything, or else we can only hardcode existing
6713 hardcode_action=unsupported
6715 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
6716 $as_echo "$hardcode_action" >&6; }
6720 ## FIXME: this should be a separate macro
6724 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6725 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
6726 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6727 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6728 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6729 { $as_echo "$as_me:$LINENO: result: yes" >&5
6730 $as_echo "yes" >&6; }
6732 { $as_echo "$as_me:$LINENO: result: no" >&5
6733 $as_echo "no" >&6; }
6738 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6739 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6741 ## FIXME: this should be a separate macro
6743 # PORTME Fill in your ld.so characteristics
6744 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6745 $as_echo_n "checking dynamic linker characteristics... " >&6; }
6747 libname_spec='lib$name'
6754 shlibpath_overrides_runpath=unknown
6756 dynamic_linker="$host_os ld.so"
6757 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6758 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6763 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6764 shlibpath_var=LIBPATH
6766 # AIX has no versioning support, so we append a major version to the name.
6767 soname_spec='${libname}${release}.so$major'
6774 hardcode_into_libs=yes
6775 if test "$host_cpu" = ia64; then
6776 # AIX 5 supports IA64
6777 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6778 shlibpath_var=LD_LIBRARY_PATH
6780 # With GCC up to 2.95.x, collect2 would create an import file
6781 # for dependence libraries. The import file would start with
6782 # the line `#! .'. This would cause the generated library to
6783 # depend on `.', always an invalid library. This was fixed in
6784 # development snapshots of GCC prior to 3.0.
6786 aix4 | aix4.[01] | aix4.[01].*)
6787 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6789 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6796 # AIX (on Power*) has no versioning support, so currently we can
6797 # not hardcode correct soname into executable. Probably we can
6798 # add versioning support to collect2, so additional links can
6799 # be useful in future.
6800 if test "$aix_use_runtimelinking" = yes; then
6801 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6802 # instead of lib<name>.a to let people know that these are not
6803 # typical AIX shared libraries.
6804 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6806 # We preserve .a as extension for shared libraries through AIX4.2
6807 # and later when we are not doing run time linking.
6808 library_names_spec='${libname}${release}.a $libname.a'
6809 soname_spec='${libname}${release}.so$major'
6811 shlibpath_var=LIBPATH
6813 hardcode_into_libs=yes
6817 library_names_spec='$libname.ixlibrary $libname.a'
6818 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6819 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6823 library_names_spec='${libname}.so'
6824 dynamic_linker="$host_os ld.so"
6825 shlibpath_var=LIBRARY_PATH
6831 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6832 soname_spec='${libname}${release}.so$major'
6833 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6834 shlibpath_var=LD_LIBRARY_PATH
6835 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6836 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6837 export_dynamic_flag_spec=-rdynamic
6838 # the default ld.so.conf also contains /usr/contrib/lib and
6839 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6840 # libtool to hard-code these into programs
6843 cygwin* | mingw* | pw32*)
6844 version_type=windows
6847 case $GCC,$host_os in
6849 library_names_spec='$libname.dll.a'
6850 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6851 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6852 dldir=$destdir/`dirname \$dlpath`~
6853 test -d \$dldir || mkdir -p \$dldir~
6854 $install_prog .libs/$dlname \$dldir/$dlname'
6855 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6856 dlpath=$dir/\$dldll~
6860 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6861 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6864 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6867 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6870 dynamic_linker='Win32 ld.exe'
6871 # FIXME: first we should search . and the directory the executable is in
6875 darwin* | rhapsody*)
6876 dynamic_linker="$host_os dyld"
6880 # FIXME: Relying on posixy $() will cause problems for
6881 # cross-compilation, but unfortunately the echo tests do not
6882 # yet detect zsh echo's removal of \ escapes.
6883 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6884 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6885 shlibpath_overrides_runpath=yes
6886 shlibpath_var=DYLD_LIBRARY_PATH
6897 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6898 soname_spec='${libname}${release}.so$major'
6899 shlibpath_var=LD_LIBRARY_PATH
6900 shlibpath_overrides_runpath=no
6901 hardcode_into_libs=yes
6902 dynamic_linker='GNU/FreeBSD ld.so'
6906 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6907 version_type=freebsd-$objformat
6908 case $version_type in
6910 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6915 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6919 shlibpath_var=LD_LIBRARY_PATH
6922 shlibpath_overrides_runpath=yes
6925 shlibpath_overrides_runpath=no
6926 hardcode_into_libs=yes
6935 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6936 soname_spec='${libname}${release}.so$major'
6937 shlibpath_var=LD_LIBRARY_PATH
6938 hardcode_into_libs=yes
6941 hpux9* | hpux10* | hpux11*)
6942 # Give a soname corresponding to the major version so that dld.sl refuses to
6943 # link against other versions.
6944 dynamic_linker="$host_os dld.sl"
6948 shlibpath_var=SHLIB_PATH
6949 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6950 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6951 soname_spec='${libname}${release}.sl$major'
6952 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6953 postinstall_cmds='chmod 555 $lib'
6956 irix5* | irix6* | nonstopux*)
6958 nonstopux*) version_type=nonstopux ;;
6959 *) version_type=irix ;;
6963 soname_spec='${libname}${release}.so$major'
6964 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6966 irix5* | nonstopux*)
6970 case $LD in # libtool.m4 will add one of these switches to LD
6971 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6972 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6973 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6974 *) libsuff= shlibsuff= libmagic=never-match;;
6978 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6979 shlibpath_overrides_runpath=no
6980 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6981 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6984 # No shared lib support for Linux oldld, aout, or coff.
6985 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6989 # This must be Linux ELF.
6994 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6995 soname_spec='${libname}${release}.so$major'
6996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6997 shlibpath_var=LD_LIBRARY_PATH
6998 shlibpath_overrides_runpath=no
6999 # This implies no fast_install, which is unacceptable.
7000 # Some rework will be needed to allow for fast_install
7001 # before this can be enabled.
7002 hardcode_into_libs=yes
7004 # We used to test for /lib/ld.so.1 and disable shared libraries on
7005 # powerpc, because MkLinux only supported shared libraries with the
7006 # GNU dynamic linker. Since this was broken with cross compilers,
7007 # most powerpc-linux boxes support dynamic linking these days and
7008 # people can always --disable-shared, the test was removed, and we
7009 # assume the GNU/Linux dynamic linker is in use.
7010 dynamic_linker='GNU/Linux ld.so'
7017 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7018 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7020 dynamic_linker='NetBSD (a.out) ld.so'
7022 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7023 soname_spec='${libname}${release}.so$major'
7024 dynamic_linker='NetBSD ld.elf_so'
7026 shlibpath_var=LD_LIBRARY_PATH
7027 shlibpath_overrides_runpath=yes
7028 hardcode_into_libs=yes
7033 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7034 shlibpath_var=LD_LIBRARY_PATH
7035 shlibpath_overrides_runpath=yes
7042 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7044 openbsd2.[89] | openbsd2.[89].*)
7045 shlibpath_overrides_runpath=no
7048 shlibpath_overrides_runpath=yes
7052 shlibpath_overrides_runpath=yes
7054 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7056 shlibpath_var=LD_LIBRARY_PATH
7060 libname_spec='$name'
7062 library_names_spec='$libname.dll $libname.a'
7063 dynamic_linker='OS/2 ld.exe'
7064 shlibpath_var=LIBPATH
7067 osf3* | osf4* | osf5*)
7071 soname_spec='${libname}${release}.so$major'
7072 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7073 shlibpath_var=LD_LIBRARY_PATH
7074 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7075 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7076 hardcode_into_libs=yes
7081 soname_spec='${libname}${release}.so$major'
7082 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7083 shlibpath_var=LD_LIBRARY_PATH
7090 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7091 soname_spec='${libname}${release}.so$major'
7092 shlibpath_var=LD_LIBRARY_PATH
7093 shlibpath_overrides_runpath=yes
7094 hardcode_into_libs=yes
7095 # ldd complains unless libraries are executable
7096 postinstall_cmds='chmod +x $lib'
7101 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7102 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7103 shlibpath_var=LD_LIBRARY_PATH
7104 shlibpath_overrides_runpath=yes
7105 if test "$with_gnu_ld" = yes; then
7111 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7113 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7114 soname_spec='${libname}${release}.so$major'
7115 shlibpath_var=LD_LIBRARY_PATH
7116 case $host_vendor in
7118 shlibpath_overrides_runpath=no
7120 export_dynamic_flag_spec='${wl}-Blargedynsym'
7121 runpath_var=LD_RUN_PATH
7129 shlibpath_overrides_runpath=no
7130 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7137 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7138 soname_spec='${libname}${release}.so$major'
7139 shlibpath_var=LD_LIBRARY_PATH
7146 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7147 soname_spec='${libname}${release}.so$major'
7148 shlibpath_var=LD_LIBRARY_PATH
7152 if test -d /usr/nec ;then
7154 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7155 soname_spec='$libname.so.$major'
7156 shlibpath_var=LD_LIBRARY_PATH
7164 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7165 $as_echo "$dynamic_linker" >&6; }
7166 test "$dynamic_linker" = no && can_build_shared=no
7170 ## FIXME: this should be a separate macro
7172 # Report the final consequences.
7173 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7174 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
7175 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
7176 $as_echo "$can_build_shared" >&6; }
7180 ## FIXME: this should be a separate macro
7182 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7183 $as_echo_n "checking whether to build shared libraries... " >&6; }
7184 test "$can_build_shared" = "no" && enable_shared=no
7186 # On AIX, shared libraries and static libraries use the same namespace, and
7187 # are all built from PIC.
7190 test "$enable_shared" = yes && enable_static=no
7191 if test -n "$RANLIB"; then
7192 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7193 postinstall_cmds='$RANLIB $lib'
7198 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7199 test "$enable_shared" = yes && enable_static=no
7203 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
7204 $as_echo "$enable_shared" >&6; }
7208 ## FIXME: this should be a separate macro
7210 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7211 $as_echo_n "checking whether to build static libraries... " >&6; }
7212 # Make sure either enable_shared or enable_static is yes.
7213 test "$enable_shared" = yes || enable_static=yes
7214 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
7215 $as_echo "$enable_static" >&6; }
7219 if test "$hardcode_action" = relink; then
7220 # Fast installation is not supported
7221 enable_fast_install=no
7222 elif test "$shlibpath_overrides_runpath" = yes ||
7223 test "$enable_shared" = no; then
7224 # Fast installation is not necessary
7225 enable_fast_install=needless
7228 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7229 if test "$GCC" = yes; then
7230 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7233 if test "x$enable_dlopen" != xyes; then
7234 enable_dlopen=unknown
7235 enable_dlopen_self=unknown
7236 enable_dlopen_self_static=unknown
7243 lt_cv_dlopen="load_add_on"
7245 lt_cv_dlopen_self=yes
7248 cygwin* | mingw* | pw32*)
7249 lt_cv_dlopen="LoadLibrary"
7254 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
7255 $as_echo_n "checking for shl_load... " >&6; }
7256 if test "${ac_cv_func_shl_load+set}" = set; then
7257 $as_echo_n "(cached) " >&6
7259 cat >conftest.$ac_ext <<_ACEOF
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7265 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7267 #define shl_load innocuous_shl_load
7269 /* System header to define __stub macros and hopefully few prototypes,
7270 which can conflict with char shl_load (); below.
7271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7272 <limits.h> exists even on freestanding compilers. */
7275 # include <limits.h>
7277 # include <assert.h>
7282 /* Override any GCC internal prototype to avoid an error.
7283 Use char because int might match the return type of a GCC
7284 builtin and then its argument prototype would still apply. */
7289 /* The GNU C library defines this for functions which it implements
7290 to always fail with ENOSYS. Some functions are actually named
7291 something starting with __ and the normal name is an alias. */
7292 #if defined __stub_shl_load || defined __stub___shl_load
7304 rm -f conftest.$ac_objext conftest$ac_exeext
7305 if { (ac_try="$ac_link"
7307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7308 *) ac_try_echo=$ac_try;;
7310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7311 $as_echo "$ac_try_echo") >&5
7312 (eval "$ac_link") 2>conftest.er1
7314 grep -v '^ *+' conftest.er1 >conftest.err
7316 cat conftest.err >&5
7317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); } && {
7319 test -z "$ac_c_werror_flag" ||
7320 test ! -s conftest.err
7321 } && test -s conftest$ac_exeext && {
7322 test "$cross_compiling" = yes ||
7323 $as_test_x conftest$ac_exeext
7325 ac_cv_func_shl_load=yes
7327 $as_echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.$ac_ext >&5
7330 ac_cv_func_shl_load=no
7333 rm -rf conftest.dSYM
7334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7335 conftest$ac_exeext conftest.$ac_ext
7337 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7338 $as_echo "$ac_cv_func_shl_load" >&6; }
7339 if test $ac_cv_func_shl_load = yes; then
7340 lt_cv_dlopen="shl_load"
7342 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7343 $as_echo_n "checking for shl_load in -ldld... " >&6; }
7344 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7345 $as_echo_n "(cached) " >&6
7347 ac_check_lib_save_LIBS=$LIBS
7349 cat >conftest.$ac_ext <<_ACEOF
7352 cat confdefs.h >>conftest.$ac_ext
7353 cat >>conftest.$ac_ext <<_ACEOF
7354 /* end confdefs.h. */
7356 /* Override any GCC internal prototype to avoid an error.
7357 Use char because int might match the return type of a GCC
7358 builtin and then its argument prototype would still apply. */
7371 rm -f conftest.$ac_objext conftest$ac_exeext
7372 if { (ac_try="$ac_link"
7374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7375 *) ac_try_echo=$ac_try;;
7377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7378 $as_echo "$ac_try_echo") >&5
7379 (eval "$ac_link") 2>conftest.er1
7381 grep -v '^ *+' conftest.er1 >conftest.err
7383 cat conftest.err >&5
7384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); } && {
7386 test -z "$ac_c_werror_flag" ||
7387 test ! -s conftest.err
7388 } && test -s conftest$ac_exeext && {
7389 test "$cross_compiling" = yes ||
7390 $as_test_x conftest$ac_exeext
7392 ac_cv_lib_dld_shl_load=yes
7394 $as_echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7397 ac_cv_lib_dld_shl_load=no
7400 rm -rf conftest.dSYM
7401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7402 conftest$ac_exeext conftest.$ac_ext
7403 LIBS=$ac_check_lib_save_LIBS
7405 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7406 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
7407 if test $ac_cv_lib_dld_shl_load = yes; then
7408 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7410 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
7411 $as_echo_n "checking for dlopen... " >&6; }
7412 if test "${ac_cv_func_dlopen+set}" = set; then
7413 $as_echo_n "(cached) " >&6
7415 cat >conftest.$ac_ext <<_ACEOF
7418 cat confdefs.h >>conftest.$ac_ext
7419 cat >>conftest.$ac_ext <<_ACEOF
7420 /* end confdefs.h. */
7421 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7423 #define dlopen innocuous_dlopen
7425 /* System header to define __stub macros and hopefully few prototypes,
7426 which can conflict with char dlopen (); below.
7427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7428 <limits.h> exists even on freestanding compilers. */
7431 # include <limits.h>
7433 # include <assert.h>
7438 /* Override any GCC internal prototype to avoid an error.
7439 Use char because int might match the return type of a GCC
7440 builtin and then its argument prototype would still apply. */
7445 /* The GNU C library defines this for functions which it implements
7446 to always fail with ENOSYS. Some functions are actually named
7447 something starting with __ and the normal name is an alias. */
7448 #if defined __stub_dlopen || defined __stub___dlopen
7460 rm -f conftest.$ac_objext conftest$ac_exeext
7461 if { (ac_try="$ac_link"
7463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7464 *) ac_try_echo=$ac_try;;
7466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7467 $as_echo "$ac_try_echo") >&5
7468 (eval "$ac_link") 2>conftest.er1
7470 grep -v '^ *+' conftest.er1 >conftest.err
7472 cat conftest.err >&5
7473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); } && {
7475 test -z "$ac_c_werror_flag" ||
7476 test ! -s conftest.err
7477 } && test -s conftest$ac_exeext && {
7478 test "$cross_compiling" = yes ||
7479 $as_test_x conftest$ac_exeext
7481 ac_cv_func_dlopen=yes
7483 $as_echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7486 ac_cv_func_dlopen=no
7489 rm -rf conftest.dSYM
7490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7491 conftest$ac_exeext conftest.$ac_ext
7493 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7494 $as_echo "$ac_cv_func_dlopen" >&6; }
7495 if test $ac_cv_func_dlopen = yes; then
7496 lt_cv_dlopen="dlopen"
7498 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7499 $as_echo_n "checking for dlopen in -ldl... " >&6; }
7500 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7501 $as_echo_n "(cached) " >&6
7503 ac_check_lib_save_LIBS=$LIBS
7505 cat >conftest.$ac_ext <<_ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h. */
7512 /* Override any GCC internal prototype to avoid an error.
7513 Use char because int might match the return type of a GCC
7514 builtin and then its argument prototype would still apply. */
7527 rm -f conftest.$ac_objext conftest$ac_exeext
7528 if { (ac_try="$ac_link"
7530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7531 *) ac_try_echo=$ac_try;;
7533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7534 $as_echo "$ac_try_echo") >&5
7535 (eval "$ac_link") 2>conftest.er1
7537 grep -v '^ *+' conftest.er1 >conftest.err
7539 cat conftest.err >&5
7540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } && {
7542 test -z "$ac_c_werror_flag" ||
7543 test ! -s conftest.err
7544 } && test -s conftest$ac_exeext && {
7545 test "$cross_compiling" = yes ||
7546 $as_test_x conftest$ac_exeext
7548 ac_cv_lib_dl_dlopen=yes
7550 $as_echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7553 ac_cv_lib_dl_dlopen=no
7556 rm -rf conftest.dSYM
7557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7558 conftest$ac_exeext conftest.$ac_ext
7559 LIBS=$ac_check_lib_save_LIBS
7561 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7562 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7563 if test $ac_cv_lib_dl_dlopen = yes; then
7564 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7566 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7567 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
7568 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7569 $as_echo_n "(cached) " >&6
7571 ac_check_lib_save_LIBS=$LIBS
7573 cat >conftest.$ac_ext <<_ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h. */
7580 /* Override any GCC internal prototype to avoid an error.
7581 Use char because int might match the return type of a GCC
7582 builtin and then its argument prototype would still apply. */
7595 rm -f conftest.$ac_objext conftest$ac_exeext
7596 if { (ac_try="$ac_link"
7598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7599 *) ac_try_echo=$ac_try;;
7601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7602 $as_echo "$ac_try_echo") >&5
7603 (eval "$ac_link") 2>conftest.er1
7605 grep -v '^ *+' conftest.er1 >conftest.err
7607 cat conftest.err >&5
7608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); } && {
7610 test -z "$ac_c_werror_flag" ||
7611 test ! -s conftest.err
7612 } && test -s conftest$ac_exeext && {
7613 test "$cross_compiling" = yes ||
7614 $as_test_x conftest$ac_exeext
7616 ac_cv_lib_svld_dlopen=yes
7618 $as_echo "$as_me: failed program was:" >&5
7619 sed 's/^/| /' conftest.$ac_ext >&5
7621 ac_cv_lib_svld_dlopen=no
7624 rm -rf conftest.dSYM
7625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7626 conftest$ac_exeext conftest.$ac_ext
7627 LIBS=$ac_check_lib_save_LIBS
7629 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7630 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
7631 if test $ac_cv_lib_svld_dlopen = yes; then
7632 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7634 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7635 $as_echo_n "checking for dld_link in -ldld... " >&6; }
7636 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7637 $as_echo_n "(cached) " >&6
7639 ac_check_lib_save_LIBS=$LIBS
7641 cat >conftest.$ac_ext <<_ACEOF
7644 cat confdefs.h >>conftest.$ac_ext
7645 cat >>conftest.$ac_ext <<_ACEOF
7646 /* end confdefs.h. */
7648 /* Override any GCC internal prototype to avoid an error.
7649 Use char because int might match the return type of a GCC
7650 builtin and then its argument prototype would still apply. */
7663 rm -f conftest.$ac_objext conftest$ac_exeext
7664 if { (ac_try="$ac_link"
7666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7667 *) ac_try_echo=$ac_try;;
7669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7670 $as_echo "$ac_try_echo") >&5
7671 (eval "$ac_link") 2>conftest.er1
7673 grep -v '^ *+' conftest.er1 >conftest.err
7675 cat conftest.err >&5
7676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); } && {
7678 test -z "$ac_c_werror_flag" ||
7679 test ! -s conftest.err
7680 } && test -s conftest$ac_exeext && {
7681 test "$cross_compiling" = yes ||
7682 $as_test_x conftest$ac_exeext
7684 ac_cv_lib_dld_dld_link=yes
7686 $as_echo "$as_me: failed program was:" >&5
7687 sed 's/^/| /' conftest.$ac_ext >&5
7689 ac_cv_lib_dld_dld_link=no
7692 rm -rf conftest.dSYM
7693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7694 conftest$ac_exeext conftest.$ac_ext
7695 LIBS=$ac_check_lib_save_LIBS
7697 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7698 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
7699 if test $ac_cv_lib_dld_dld_link = yes; then
7700 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7721 if test "x$lt_cv_dlopen" != xno; then
7727 case $lt_cv_dlopen in
7729 save_CPPFLAGS="$CPPFLAGS"
7730 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7732 save_LDFLAGS="$LDFLAGS"
7733 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7736 LIBS="$lt_cv_dlopen_libs $LIBS"
7738 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7739 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
7740 if test "${lt_cv_dlopen_self+set}" = set; then
7741 $as_echo_n "(cached) " >&6
7743 if test "$cross_compiling" = yes; then :
7744 lt_cv_dlopen_self=cross
7746 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7747 lt_status=$lt_dlunknown
7748 cat > conftest.$ac_ext <<EOF
7749 #line 7749 "configure"
7750 #include "confdefs.h"
7759 # define LT_DLGLOBAL RTLD_GLOBAL
7762 # define LT_DLGLOBAL DL_GLOBAL
7764 # define LT_DLGLOBAL 0
7768 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7769 find out it does not work in some platform. */
7770 #ifndef LT_DLLAZY_OR_NOW
7772 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7775 # define LT_DLLAZY_OR_NOW DL_LAZY
7778 # define LT_DLLAZY_OR_NOW RTLD_NOW
7781 # define LT_DLLAZY_OR_NOW DL_NOW
7783 # define LT_DLLAZY_OR_NOW 0
7791 extern "C" void exit (int);
7794 void fnord() { int i=42;}
7797 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7798 int status = $lt_dlunknown;
7802 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7803 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7804 /* dlclose (self); */
7810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7811 (eval $ac_link) 2>&5
7813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7815 (./conftest; exit; ) 2>/dev/null
7818 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7819 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7820 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7823 # compilation failed
7824 lt_cv_dlopen_self=no
7831 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7832 $as_echo "$lt_cv_dlopen_self" >&6; }
7834 if test "x$lt_cv_dlopen_self" = xyes; then
7835 LDFLAGS="$LDFLAGS $link_static_flag"
7836 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7837 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
7838 if test "${lt_cv_dlopen_self_static+set}" = set; then
7839 $as_echo_n "(cached) " >&6
7841 if test "$cross_compiling" = yes; then :
7842 lt_cv_dlopen_self_static=cross
7844 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7845 lt_status=$lt_dlunknown
7846 cat > conftest.$ac_ext <<EOF
7847 #line 7847 "configure"
7848 #include "confdefs.h"
7857 # define LT_DLGLOBAL RTLD_GLOBAL
7860 # define LT_DLGLOBAL DL_GLOBAL
7862 # define LT_DLGLOBAL 0
7866 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7867 find out it does not work in some platform. */
7868 #ifndef LT_DLLAZY_OR_NOW
7870 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7873 # define LT_DLLAZY_OR_NOW DL_LAZY
7876 # define LT_DLLAZY_OR_NOW RTLD_NOW
7879 # define LT_DLLAZY_OR_NOW DL_NOW
7881 # define LT_DLLAZY_OR_NOW 0
7889 extern "C" void exit (int);
7892 void fnord() { int i=42;}
7895 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7896 int status = $lt_dlunknown;
7900 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7901 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7902 /* dlclose (self); */
7908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7909 (eval $ac_link) 2>&5
7911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7913 (./conftest; exit; ) 2>/dev/null
7916 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7917 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7918 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7921 # compilation failed
7922 lt_cv_dlopen_self_static=no
7929 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7930 $as_echo "$lt_cv_dlopen_self_static" >&6; }
7933 CPPFLAGS="$save_CPPFLAGS"
7934 LDFLAGS="$save_LDFLAGS"
7939 case $lt_cv_dlopen_self in
7940 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7941 *) enable_dlopen_self=unknown ;;
7944 case $lt_cv_dlopen_self_static in
7945 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7946 *) enable_dlopen_self_static=unknown ;;
7951 ## FIXME: this should be a separate macro
7953 if test "$enable_shared" = yes && test "$GCC" = yes; then
7954 case $archive_cmds in
7956 # FIXME: we may have to deal with multi-command sequences.
7959 # Test whether the compiler implicitly links with -lc since on some
7960 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7961 # to ld, don't add -lc before -lgcc.
7962 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7963 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
7964 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7965 $as_echo_n "(cached) " >&6
7968 echo 'static int dummy;' > conftest.$ac_ext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7971 (eval $ac_compile) 2>&5
7973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; then
7977 libobjs=conftest.$ac_objext
7979 wl=$lt_cv_prog_cc_wl
7985 save_allow_undefined_flag=$allow_undefined_flag
7986 allow_undefined_flag=
7987 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7988 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }
7993 lt_cv_archive_cmds_need_lc=no
7995 lt_cv_archive_cmds_need_lc=yes
7997 allow_undefined_flag=$save_allow_undefined_flag
7999 cat conftest.err 1>&5
8003 { $as_echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8004 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
8008 need_lc=${lt_cv_archive_cmds_need_lc-yes}
8012 ## FIXME: this should be a separate macro
8014 # The second clause should only fire when bootstrapping the
8015 # libtool distribution, otherwise you forgot to ship ltmain.sh
8016 # with your package, and you will get complaints that there are
8017 # no rules to generate ltmain.sh.
8018 if test -f "$ltmain"; then
8021 # If there is no Makefile yet, we rely on a make rule to execute
8022 # `config.status --recheck' to rerun these tests and create the
8023 # libtool script then.
8024 test -f Makefile && make "$ltmain"
8027 if test -f "$ltmain"; then
8028 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
8031 echo creating $ofile
8033 # Now quote all the things that may contain metacharacters while being
8034 # careful not to overquote the AC_SUBSTed values. We take copies of the
8035 # variables and quote the copies for generation of the libtool script.
8036 for var in echo old_CC old_CFLAGS SED \
8037 AR AR_FLAGS CC LD LN_S NM SHELL \
8038 reload_flag reload_cmds wl \
8039 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
8040 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
8041 library_names_spec soname_spec \
8042 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
8043 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
8044 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
8045 old_striplib striplib file_magic_cmd export_symbols_cmds \
8046 deplibs_check_method allow_undefined_flag no_undefined_flag \
8047 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
8048 global_symbol_to_c_name_address \
8049 hardcode_libdir_flag_spec hardcode_libdir_separator \
8050 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8051 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
8054 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
8055 old_postinstall_cmds | old_postuninstall_cmds | \
8056 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
8057 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
8058 postinstall_cmds | postuninstall_cmds | \
8059 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8060 # Double-quote double-evaled strings.
8061 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8064 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8069 cat <<__EOF__ > "${ofile}T"
8072 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8073 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8074 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8076 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
8077 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8079 # This program is free software; you can redistribute it and/or modify
8080 # it under the terms of the GNU General Public License as published by
8081 # the Free Software Foundation; either version 2 of the License, or
8082 # (at your option) any later version.
8084 # This program is distributed in the hope that it will be useful, but
8085 # WITHOUT ANY WARRANTY; without even the implied warranty of
8086 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8087 # General Public License for more details.
8089 # You should have received a copy of the GNU General Public License
8090 # along with this program; if not, write to the Free Software
8091 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8093 # As a special exception to the GNU General Public License, if you
8094 # distribute this file as part of a program that contains a
8095 # configuration script generated by Autoconf, you may include it under
8096 # the same distribution terms that you use for the rest of that program.
8098 # A sed that does not truncate output.
8101 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8102 Xsed="${SED} -e s/^X//"
8104 # The HP-UX ksh and POSIX shell print the target directory to stdout
8106 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8108 # ### BEGIN LIBTOOL CONFIG
8110 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8112 # Shell to use when invoking shell scripts.
8115 # Whether or not to build shared libraries.
8116 build_libtool_libs=$enable_shared
8118 # Whether or not to build static libraries.
8119 build_old_libs=$enable_static
8121 # Whether or not to add -lc for building shared libraries.
8122 build_libtool_need_lc=$need_lc
8124 # Whether or not to optimize for fast installation.
8125 fast_install=$enable_fast_install
8128 host_alias=$host_alias
8131 # An echo program that does not interpret backslashes.
8136 AR_FLAGS=$lt_AR_FLAGS
8138 # The default C compiler.
8141 # Is the compiler the GNU C compiler?
8144 # The linker used to build libraries.
8147 # Whether we need hard or soft links.
8150 # A BSD-compatible nm program.
8153 # A symbol stripping program
8156 # Used to examine libraries when file_magic_cmd begins "file"
8157 MAGIC_CMD=$MAGIC_CMD
8159 # Used on cygwin: DLL creation program.
8162 # Used on cygwin: object dumper.
8165 # Used on cygwin: assembler.
8168 # The name of the directory that contains temporary libtool files.
8171 # How to create reloadable object files.
8172 reload_flag=$lt_reload_flag
8173 reload_cmds=$lt_reload_cmds
8175 # How to pass a linker flag through the compiler.
8178 # Object file suffix (normally "o").
8181 # Old archive suffix (normally "a").
8184 # Executable file suffix (normally "").
8187 # Additional compiler flags for building library objects.
8188 pic_flag=$lt_pic_flag
8191 # Does compiler simultaneously support -c and -o options?
8192 compiler_c_o=$lt_compiler_c_o
8194 # Can we write directly to a .lo ?
8195 compiler_o_lo=$lt_compiler_o_lo
8197 # Must we lock files when doing compilation ?
8198 need_locks=$lt_need_locks
8200 # Do we need the lib prefix for modules?
8201 need_lib_prefix=$need_lib_prefix
8203 # Do we need a version for libraries?
8204 need_version=$need_version
8206 # Whether dlopen is supported.
8207 dlopen_support=$enable_dlopen
8209 # Whether dlopen of programs is supported.
8210 dlopen_self=$enable_dlopen_self
8212 # Whether dlopen of statically linked programs is supported.
8213 dlopen_self_static=$enable_dlopen_self_static
8215 # Compiler flag to prevent dynamic linking.
8216 link_static_flag=$lt_link_static_flag
8218 # Compiler flag to turn off builtin functions.
8219 no_builtin_flag=$lt_no_builtin_flag
8221 # Compiler flag to allow reflexive dlopens.
8222 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8224 # Compiler flag to generate shared objects directly from archives.
8225 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8227 # Compiler flag to generate thread-safe objects.
8228 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8230 # Library versioning type.
8231 version_type=$version_type
8233 # Format of library name prefix.
8234 libname_spec=$lt_libname_spec
8236 # List of archive names. First name is the real one, the rest are links.
8237 # The last name is the one that the linker finds with -lNAME.
8238 library_names_spec=$lt_library_names_spec
8240 # The coded name of the library, if different from the real name.
8241 soname_spec=$lt_soname_spec
8243 # Commands used to build and install an old-style archive.
8245 old_archive_cmds=$lt_old_archive_cmds
8246 old_postinstall_cmds=$lt_old_postinstall_cmds
8247 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8249 # Create an old-style archive from a shared archive.
8250 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8252 # Create a temporary old-style archive to link instead of a shared archive.
8253 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8255 # Commands used to build and install a shared archive.
8256 archive_cmds=$lt_archive_cmds
8257 archive_expsym_cmds=$lt_archive_expsym_cmds
8258 postinstall_cmds=$lt_postinstall_cmds
8259 postuninstall_cmds=$lt_postuninstall_cmds
8261 # Commands to strip libraries.
8262 old_striplib=$lt_old_striplib
8263 striplib=$lt_striplib
8265 # Method to check whether dependent libraries are shared objects.
8266 deplibs_check_method=$lt_deplibs_check_method
8268 # Command to use when deplibs_check_method == file_magic.
8269 file_magic_cmd=$lt_file_magic_cmd
8271 # Flag that allows shared libraries with undefined symbols to be built.
8272 allow_undefined_flag=$lt_allow_undefined_flag
8274 # Flag that forces no undefined symbols.
8275 no_undefined_flag=$lt_no_undefined_flag
8277 # Commands used to finish a libtool library installation in a directory.
8278 finish_cmds=$lt_finish_cmds
8280 # Same as above, but a single script fragment to be evaled but not shown.
8281 finish_eval=$lt_finish_eval
8283 # Take the output of nm and produce a listing of raw symbols and C names.
8284 global_symbol_pipe=$lt_global_symbol_pipe
8286 # Transform the output of nm in a proper C declaration
8287 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8289 # Transform the output of nm in a C name address pair
8290 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8292 # This is the shared library runtime path variable.
8293 runpath_var=$runpath_var
8295 # This is the shared library path variable.
8296 shlibpath_var=$shlibpath_var
8298 # Is shlibpath searched before the hard-coded library search path?
8299 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8301 # How to hardcode a shared library path into an executable.
8302 hardcode_action=$hardcode_action
8304 # Whether we should hardcode library paths into libraries.
8305 hardcode_into_libs=$hardcode_into_libs
8307 # Flag to hardcode \$libdir into a binary during linking.
8308 # This must work even if \$libdir does not exist.
8309 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8311 # Whether we need a single -rpath flag with a separated argument.
8312 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8314 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8316 hardcode_direct=$hardcode_direct
8318 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8320 hardcode_minus_L=$hardcode_minus_L
8322 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8323 # the resulting binary.
8324 hardcode_shlibpath_var=$hardcode_shlibpath_var
8326 # Variables whose values should be saved in libtool wrapper scripts and
8327 # restored at relink time.
8328 variables_saved_for_relink="$variables_saved_for_relink"
8330 # Whether libtool must link a program against all its dependency libraries.
8331 link_all_deplibs=$link_all_deplibs
8333 # Compile-time system search path for libraries
8334 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8336 # Run-time system search path for libraries
8337 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8339 # Fix the shell variable \$srcfile for the compiler.
8340 fix_srcfile_path="$fix_srcfile_path"
8342 # Set to yes if exported symbols are required.
8343 always_export_symbols=$always_export_symbols
8345 # The commands to list exported symbols.
8346 export_symbols_cmds=$lt_export_symbols_cmds
8348 # The commands to extract the exported symbol list from a shared archive.
8349 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8351 # Symbols that should not be listed in the preloaded symbols.
8352 exclude_expsyms=$lt_exclude_expsyms
8354 # Symbols that must always be exported.
8355 include_expsyms=$lt_include_expsyms
8357 # ### END LIBTOOL CONFIG
8363 cat <<\EOF >> "${ofile}T"
8365 # AIX sometimes has problems with the GCC collect2 program. For some
8366 # reason, if we set the COLLECT_NAMES environment variable, the problems
8367 # vanish in a puff of smoke.
8368 if test "X${COLLECT_NAMES+set}" != Xset; then
8370 export COLLECT_NAMES
8377 cygwin* | mingw* | pw32* | os2*)
8378 cat <<'EOF' >> "${ofile}T"
8379 # This is a source program that is used to create dlls on Windows
8380 # Don't remove nor modify the starting and closing comments
8381 # /* ltdll.c starts here */
8382 # #define WIN32_LEAN_AND_MEAN
8383 # #include <windows.h>
8384 # #undef WIN32_LEAN_AND_MEAN
8385 # #include <stdio.h>
8387 # #ifndef __CYGWIN__
8388 # # ifdef __CYGWIN32__
8389 # # define __CYGWIN__ __CYGWIN32__
8393 # #ifdef __cplusplus
8396 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8397 # #ifdef __cplusplus
8402 # #include <cygwin/cygwin_dll.h>
8403 # DECLARE_CYGWIN_DLL( DllMain );
8405 # HINSTANCE __hDllInstance_base;
8408 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8410 # __hDllInstance_base = hInst;
8413 # /* ltdll.c ends here */
8414 # This is a source program that is used to create import libraries
8415 # on Windows for dlls which lack them. Don't remove nor modify the
8416 # starting and closing comments
8417 # /* impgen.c starts here */
8418 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8420 # This file is part of GNU libtool.
8422 # This program is free software; you can redistribute it and/or modify
8423 # it under the terms of the GNU General Public License as published by
8424 # the Free Software Foundation; either version 2 of the License, or
8425 # (at your option) any later version.
8427 # This program is distributed in the hope that it will be useful,
8428 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8429 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8430 # GNU General Public License for more details.
8432 # You should have received a copy of the GNU General Public License
8433 # along with this program; if not, write to the Free Software
8434 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8437 # #include <stdio.h> /* for printf() */
8438 # #include <unistd.h> /* for open(), lseek(), read() */
8439 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8440 # #include <string.h> /* for strdup() */
8442 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8444 # #define O_BINARY 0
8447 # static unsigned int
8448 # pe_get16 (fd, offset)
8452 # unsigned char b[2];
8453 # lseek (fd, offset, SEEK_SET);
8455 # return b[0] + (b[1]<<8);
8458 # static unsigned int
8459 # pe_get32 (fd, offset)
8463 # unsigned char b[4];
8464 # lseek (fd, offset, SEEK_SET);
8466 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8469 # static unsigned int
8473 # unsigned char *b = ptr;
8474 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8483 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8484 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8485 # unsigned long name_rvas, nexp;
8486 # unsigned char *expdata, *erva;
8487 # char *filename, *dll_name;
8489 # filename = argv[1];
8491 # dll = open(filename, O_RDONLY|O_BINARY);
8495 # dll_name = filename;
8497 # for (i=0; filename[i]; i++)
8498 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8499 # dll_name = filename + i +1;
8501 # pe_header_offset = pe_get32 (dll, 0x3c);
8502 # opthdr_ofs = pe_header_offset + 4 + 20;
8503 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8505 # if (num_entries < 1) /* no exports */
8508 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8509 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8510 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8511 # secptr = (pe_header_offset + 4 + 20 +
8512 # pe_get16 (dll, pe_header_offset + 4 + 16));
8515 # for (i = 0; i < nsections; i++)
8518 # unsigned long secptr1 = secptr + 40 * i;
8519 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8520 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8521 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8522 # lseek(dll, secptr1, SEEK_SET);
8523 # read(dll, sname, 8);
8524 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8526 # expptr = fptr + (export_rva - vaddr);
8527 # if (export_rva + export_size > vaddr + vsize)
8528 # export_size = vsize - (export_rva - vaddr);
8533 # expdata = (unsigned char*)malloc(export_size);
8534 # lseek (dll, expptr, SEEK_SET);
8535 # read (dll, expdata, export_size);
8536 # erva = expdata - export_rva;
8538 # nexp = pe_as32 (expdata+24);
8539 # name_rvas = pe_as32 (expdata+32);
8541 # printf ("EXPORTS\n");
8542 # for (i = 0; i<nexp; i++)
8544 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8545 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8550 # /* impgen.c ends here */
8556 # We use sed instead of cat because bash on DJGPP gets confused if
8557 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8558 # text mode, it properly converts lines to CR/LF. This bash problem
8559 # is reportedly fixed, but why not run on old versions too?
8560 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8562 mv -f "${ofile}T" "$ofile" || \
8563 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8573 # This can be used to rebuild libtool when needed
8574 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8576 # Always use our own libtool.
8577 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8579 # Prevent multiple expansion
8583 # Check whether --enable-largefile was given.
8584 if test "${enable_largefile+set}" = set; then
8585 enableval=$enable_largefile;
8588 if test "$enable_largefile" != no; then
8590 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
8591 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8592 if test "${ac_cv_sys_largefile_CC+set}" = set; then
8593 $as_echo_n "(cached) " >&6
8595 ac_cv_sys_largefile_CC=no
8596 if test "$GCC" != yes; then
8599 # IRIX 6.2 and later do not support large files by default,
8600 # so use the C compiler's -n32 option if that helps.
8601 cat >conftest.$ac_ext <<_ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8607 #include <sys/types.h>
8608 /* Check that off_t can represent 2**63 - 1 correctly.
8609 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8610 since some C++ compilers masquerading as C compilers
8611 incorrectly reject 9223372036854775807. */
8612 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8613 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8614 && LARGE_OFF_T % 2147483647 == 1)
8624 rm -f conftest.$ac_objext
8625 if { (ac_try="$ac_compile"
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8631 $as_echo "$ac_try_echo") >&5
8632 (eval "$ac_compile") 2>conftest.er1
8634 grep -v '^ *+' conftest.er1 >conftest.err
8636 cat conftest.err >&5
8637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } && {
8639 test -z "$ac_c_werror_flag" ||
8640 test ! -s conftest.err
8641 } && test -s conftest.$ac_objext; then
8644 $as_echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8650 rm -f core conftest.err conftest.$ac_objext
8652 rm -f conftest.$ac_objext
8653 if { (ac_try="$ac_compile"
8655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656 *) ac_try_echo=$ac_try;;
8658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8659 $as_echo "$ac_try_echo") >&5
8660 (eval "$ac_compile") 2>conftest.er1
8662 grep -v '^ *+' conftest.er1 >conftest.err
8664 cat conftest.err >&5
8665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); } && {
8667 test -z "$ac_c_werror_flag" ||
8668 test ! -s conftest.err
8669 } && test -s conftest.$ac_objext; then
8670 ac_cv_sys_largefile_CC=' -n32'; break
8672 $as_echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8678 rm -f core conftest.err conftest.$ac_objext
8682 rm -f conftest.$ac_ext
8685 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
8686 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8687 if test "$ac_cv_sys_largefile_CC" != no; then
8688 CC=$CC$ac_cv_sys_largefile_CC
8691 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8692 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8693 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8694 $as_echo_n "(cached) " >&6
8697 cat >conftest.$ac_ext <<_ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 #include <sys/types.h>
8704 /* Check that off_t can represent 2**63 - 1 correctly.
8705 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8706 since some C++ compilers masquerading as C compilers
8707 incorrectly reject 9223372036854775807. */
8708 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8709 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8710 && LARGE_OFF_T % 2147483647 == 1)
8720 rm -f conftest.$ac_objext
8721 if { (ac_try="$ac_compile"
8723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724 *) ac_try_echo=$ac_try;;
8726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8727 $as_echo "$ac_try_echo") >&5
8728 (eval "$ac_compile") 2>conftest.er1
8730 grep -v '^ *+' conftest.er1 >conftest.err
8732 cat conftest.err >&5
8733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } && {
8735 test -z "$ac_c_werror_flag" ||
8736 test ! -s conftest.err
8737 } && test -s conftest.$ac_objext; then
8738 ac_cv_sys_file_offset_bits=no; break
8740 $as_echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8747 cat >conftest.$ac_ext <<_ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8753 #define _FILE_OFFSET_BITS 64
8754 #include <sys/types.h>
8755 /* Check that off_t can represent 2**63 - 1 correctly.
8756 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8757 since some C++ compilers masquerading as C compilers
8758 incorrectly reject 9223372036854775807. */
8759 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8760 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8761 && LARGE_OFF_T % 2147483647 == 1)
8771 rm -f conftest.$ac_objext
8772 if { (ac_try="$ac_compile"
8774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775 *) ac_try_echo=$ac_try;;
8777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8778 $as_echo "$ac_try_echo") >&5
8779 (eval "$ac_compile") 2>conftest.er1
8781 grep -v '^ *+' conftest.er1 >conftest.err
8783 cat conftest.err >&5
8784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } && {
8786 test -z "$ac_c_werror_flag" ||
8787 test ! -s conftest.err
8788 } && test -s conftest.$ac_objext; then
8789 ac_cv_sys_file_offset_bits=64; break
8791 $as_echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8798 ac_cv_sys_file_offset_bits=unknown
8802 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8803 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8804 case $ac_cv_sys_file_offset_bits in #(
8807 cat >>confdefs.h <<_ACEOF
8808 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8813 if test $ac_cv_sys_file_offset_bits = unknown; then
8814 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
8815 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8816 if test "${ac_cv_sys_large_files+set}" = set; then
8817 $as_echo_n "(cached) " >&6
8820 cat >conftest.$ac_ext <<_ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8826 #include <sys/types.h>
8827 /* Check that off_t can represent 2**63 - 1 correctly.
8828 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8829 since some C++ compilers masquerading as C compilers
8830 incorrectly reject 9223372036854775807. */
8831 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8832 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8833 && LARGE_OFF_T % 2147483647 == 1)
8843 rm -f conftest.$ac_objext
8844 if { (ac_try="$ac_compile"
8846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8847 *) ac_try_echo=$ac_try;;
8849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8850 $as_echo "$ac_try_echo") >&5
8851 (eval "$ac_compile") 2>conftest.er1
8853 grep -v '^ *+' conftest.er1 >conftest.err
8855 cat conftest.err >&5
8856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } && {
8858 test -z "$ac_c_werror_flag" ||
8859 test ! -s conftest.err
8860 } && test -s conftest.$ac_objext; then
8861 ac_cv_sys_large_files=no; break
8863 $as_echo "$as_me: failed program was:" >&5
8864 sed 's/^/| /' conftest.$ac_ext >&5
8869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8870 cat >conftest.$ac_ext <<_ACEOF
8873 cat confdefs.h >>conftest.$ac_ext
8874 cat >>conftest.$ac_ext <<_ACEOF
8875 /* end confdefs.h. */
8876 #define _LARGE_FILES 1
8877 #include <sys/types.h>
8878 /* Check that off_t can represent 2**63 - 1 correctly.
8879 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8880 since some C++ compilers masquerading as C compilers
8881 incorrectly reject 9223372036854775807. */
8882 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8883 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8884 && LARGE_OFF_T % 2147483647 == 1)
8894 rm -f conftest.$ac_objext
8895 if { (ac_try="$ac_compile"
8897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8898 *) ac_try_echo=$ac_try;;
8900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8901 $as_echo "$ac_try_echo") >&5
8902 (eval "$ac_compile") 2>conftest.er1
8904 grep -v '^ *+' conftest.er1 >conftest.err
8906 cat conftest.err >&5
8907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } && {
8909 test -z "$ac_c_werror_flag" ||
8910 test ! -s conftest.err
8911 } && test -s conftest.$ac_objext; then
8912 ac_cv_sys_large_files=1; break
8914 $as_echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8921 ac_cv_sys_large_files=unknown
8925 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8926 $as_echo "$ac_cv_sys_large_files" >&6; }
8927 case $ac_cv_sys_large_files in #(
8930 cat >>confdefs.h <<_ACEOF
8931 #define _LARGE_FILES $ac_cv_sys_large_files
8939 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8940 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
8941 if test "${ac_cv_sys_largefile_source+set}" = set; then
8942 $as_echo_n "(cached) " >&6
8945 cat >conftest.$ac_ext <<_ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h. */
8951 #include <sys/types.h> /* for off_t */
8956 int (*fp) (FILE *, off_t, int) = fseeko;
8957 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8962 rm -f conftest.$ac_objext conftest$ac_exeext
8963 if { (ac_try="$ac_link"
8965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966 *) ac_try_echo=$ac_try;;
8968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8969 $as_echo "$ac_try_echo") >&5
8970 (eval "$ac_link") 2>conftest.er1
8972 grep -v '^ *+' conftest.er1 >conftest.err
8974 cat conftest.err >&5
8975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } && {
8977 test -z "$ac_c_werror_flag" ||
8978 test ! -s conftest.err
8979 } && test -s conftest$ac_exeext && {
8980 test "$cross_compiling" = yes ||
8981 $as_test_x conftest$ac_exeext
8983 ac_cv_sys_largefile_source=no; break
8985 $as_echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8991 rm -rf conftest.dSYM
8992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8993 conftest$ac_exeext conftest.$ac_ext
8994 cat >conftest.$ac_ext <<_ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h. */
9000 #define _LARGEFILE_SOURCE 1
9001 #include <sys/types.h> /* for off_t */
9006 int (*fp) (FILE *, off_t, int) = fseeko;
9007 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9012 rm -f conftest.$ac_objext conftest$ac_exeext
9013 if { (ac_try="$ac_link"
9015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9016 *) ac_try_echo=$ac_try;;
9018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9019 $as_echo "$ac_try_echo") >&5
9020 (eval "$ac_link") 2>conftest.er1
9022 grep -v '^ *+' conftest.er1 >conftest.err
9024 cat conftest.err >&5
9025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); } && {
9027 test -z "$ac_c_werror_flag" ||
9028 test ! -s conftest.err
9029 } && test -s conftest$ac_exeext && {
9030 test "$cross_compiling" = yes ||
9031 $as_test_x conftest$ac_exeext
9033 ac_cv_sys_largefile_source=1; break
9035 $as_echo "$as_me: failed program was:" >&5
9036 sed 's/^/| /' conftest.$ac_ext >&5
9041 rm -rf conftest.dSYM
9042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9043 conftest$ac_exeext conftest.$ac_ext
9044 ac_cv_sys_largefile_source=unknown
9048 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9049 $as_echo "$ac_cv_sys_largefile_source" >&6; }
9050 case $ac_cv_sys_largefile_source in #(
9053 cat >>confdefs.h <<_ACEOF
9054 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9060 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9061 # in glibc 2.1.3, but that breaks too many other things.
9062 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9063 if test $ac_cv_sys_largefile_source != unknown; then
9065 cat >>confdefs.h <<\_ACEOF
9066 #define HAVE_FSEEKO 1
9078 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9079 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9080 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9081 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9083 $as_echo_n "(cached) " >&6
9085 cat >conftest.$ac_ext <<_ACEOF
9088 cat confdefs.h >>conftest.$ac_ext
9089 cat >>conftest.$ac_ext <<_ACEOF
9090 /* end confdefs.h. */
9091 #include <sys/types.h>
9103 rm -f conftest.$ac_objext
9104 if { (ac_try="$ac_compile"
9106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107 *) ac_try_echo=$ac_try;;
9109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9110 $as_echo "$ac_try_echo") >&5
9111 (eval "$ac_compile") 2>conftest.er1
9113 grep -v '^ *+' conftest.er1 >conftest.err
9115 cat conftest.err >&5
9116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); } && {
9118 test -z "$ac_c_werror_flag" ||
9119 test ! -s conftest.err
9120 } && test -s conftest.$ac_objext; then
9121 eval "$as_ac_Header=yes"
9123 $as_echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9126 eval "$as_ac_Header=no"
9129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9131 ac_res=`eval 'as_val=${'$as_ac_Header'}
9132 $as_echo "$as_val"'`
9133 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9134 $as_echo "$ac_res" >&6; }
9135 if test `eval 'as_val=${'$as_ac_Header'}
9136 $as_echo "$as_val"'` = yes; then
9137 cat >>confdefs.h <<_ACEOF
9138 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9141 ac_header_dirent=$ac_hdr; break
9145 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9146 if test $ac_header_dirent = dirent.h; then
9147 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
9148 $as_echo_n "checking for library containing opendir... " >&6; }
9149 if test "${ac_cv_search_opendir+set}" = set; then
9150 $as_echo_n "(cached) " >&6
9152 ac_func_search_save_LIBS=$LIBS
9153 cat >conftest.$ac_ext <<_ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h. */
9160 /* Override any GCC internal prototype to avoid an error.
9161 Use char because int might match the return type of a GCC
9162 builtin and then its argument prototype would still apply. */
9175 for ac_lib in '' dir; do
9176 if test -z "$ac_lib"; then
9177 ac_res="none required"
9180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9182 rm -f conftest.$ac_objext conftest$ac_exeext
9183 if { (ac_try="$ac_link"
9185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9186 *) ac_try_echo=$ac_try;;
9188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9189 $as_echo "$ac_try_echo") >&5
9190 (eval "$ac_link") 2>conftest.er1
9192 grep -v '^ *+' conftest.er1 >conftest.err
9194 cat conftest.err >&5
9195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } && {
9197 test -z "$ac_c_werror_flag" ||
9198 test ! -s conftest.err
9199 } && test -s conftest$ac_exeext && {
9200 test "$cross_compiling" = yes ||
9201 $as_test_x conftest$ac_exeext
9203 ac_cv_search_opendir=$ac_res
9205 $as_echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.$ac_ext >&5
9211 rm -rf conftest.dSYM
9212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9214 if test "${ac_cv_search_opendir+set}" = set; then
9218 if test "${ac_cv_search_opendir+set}" = set; then
9221 ac_cv_search_opendir=no
9224 LIBS=$ac_func_search_save_LIBS
9226 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9227 $as_echo "$ac_cv_search_opendir" >&6; }
9228 ac_res=$ac_cv_search_opendir
9229 if test "$ac_res" != no; then
9230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9235 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
9236 $as_echo_n "checking for library containing opendir... " >&6; }
9237 if test "${ac_cv_search_opendir+set}" = set; then
9238 $as_echo_n "(cached) " >&6
9240 ac_func_search_save_LIBS=$LIBS
9241 cat >conftest.$ac_ext <<_ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9248 /* Override any GCC internal prototype to avoid an error.
9249 Use char because int might match the return type of a GCC
9250 builtin and then its argument prototype would still apply. */
9263 for ac_lib in '' x; do
9264 if test -z "$ac_lib"; then
9265 ac_res="none required"
9268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9270 rm -f conftest.$ac_objext conftest$ac_exeext
9271 if { (ac_try="$ac_link"
9273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274 *) ac_try_echo=$ac_try;;
9276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9277 $as_echo "$ac_try_echo") >&5
9278 (eval "$ac_link") 2>conftest.er1
9280 grep -v '^ *+' conftest.er1 >conftest.err
9282 cat conftest.err >&5
9283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); } && {
9285 test -z "$ac_c_werror_flag" ||
9286 test ! -s conftest.err
9287 } && test -s conftest$ac_exeext && {
9288 test "$cross_compiling" = yes ||
9289 $as_test_x conftest$ac_exeext
9291 ac_cv_search_opendir=$ac_res
9293 $as_echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9299 rm -rf conftest.dSYM
9300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9302 if test "${ac_cv_search_opendir+set}" = set; then
9306 if test "${ac_cv_search_opendir+set}" = set; then
9309 ac_cv_search_opendir=no
9312 LIBS=$ac_func_search_save_LIBS
9314 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9315 $as_echo "$ac_cv_search_opendir" >&6; }
9316 ac_res=$ac_cv_search_opendir
9317 if test "$ac_res" != no; then
9318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9324 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9325 $as_echo_n "checking for ANSI C header files... " >&6; }
9326 if test "${ac_cv_header_stdc+set}" = set; then
9327 $as_echo_n "(cached) " >&6
9329 cat >conftest.$ac_ext <<_ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h. */
9348 rm -f conftest.$ac_objext
9349 if { (ac_try="$ac_compile"
9351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9352 *) ac_try_echo=$ac_try;;
9354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9355 $as_echo "$ac_try_echo") >&5
9356 (eval "$ac_compile") 2>conftest.er1
9358 grep -v '^ *+' conftest.er1 >conftest.err
9360 cat conftest.err >&5
9361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } && {
9363 test -z "$ac_c_werror_flag" ||
9364 test ! -s conftest.err
9365 } && test -s conftest.$ac_objext; then
9366 ac_cv_header_stdc=yes
9368 $as_echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9371 ac_cv_header_stdc=no
9374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9376 if test $ac_cv_header_stdc = yes; then
9377 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9378 cat >conftest.$ac_ext <<_ACEOF
9381 cat confdefs.h >>conftest.$ac_ext
9382 cat >>conftest.$ac_ext <<_ACEOF
9383 /* end confdefs.h. */
9387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9388 $EGREP "memchr" >/dev/null 2>&1; then
9391 ac_cv_header_stdc=no
9397 if test $ac_cv_header_stdc = yes; then
9398 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9399 cat >conftest.$ac_ext <<_ACEOF
9402 cat confdefs.h >>conftest.$ac_ext
9403 cat >>conftest.$ac_ext <<_ACEOF
9404 /* end confdefs.h. */
9408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9409 $EGREP "free" >/dev/null 2>&1; then
9412 ac_cv_header_stdc=no
9418 if test $ac_cv_header_stdc = yes; then
9419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9420 if test "$cross_compiling" = yes; then
9423 cat >conftest.$ac_ext <<_ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h. */
9431 #if ((' ' & 0x0FF) == 0x020)
9432 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9433 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9435 # define ISLOWER(c) \
9436 (('a' <= (c) && (c) <= 'i') \
9437 || ('j' <= (c) && (c) <= 'r') \
9438 || ('s' <= (c) && (c) <= 'z'))
9439 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9442 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9447 for (i = 0; i < 256; i++)
9448 if (XOR (islower (i), ISLOWER (i))
9449 || toupper (i) != TOUPPER (i))
9454 rm -f conftest$ac_exeext
9455 if { (ac_try="$ac_link"
9457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9458 *) ac_try_echo=$ac_try;;
9460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9461 $as_echo "$ac_try_echo") >&5
9462 (eval "$ac_link") 2>&5
9464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9466 { (case "(($ac_try" in
9467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9468 *) ac_try_echo=$ac_try;;
9470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9471 $as_echo "$ac_try_echo") >&5
9472 (eval "$ac_try") 2>&5
9474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; }; then
9478 $as_echo "$as_me: program exited with status $ac_status" >&5
9479 $as_echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9483 ac_cv_header_stdc=no
9485 rm -rf conftest.dSYM
9486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9492 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9493 $as_echo "$ac_cv_header_stdc" >&6; }
9494 if test $ac_cv_header_stdc = yes; then
9496 cat >>confdefs.h <<\_ACEOF
9497 #define STDC_HEADERS 1
9502 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
9503 $as_echo_n "checking whether closedir returns void... " >&6; }
9504 if test "${ac_cv_func_closedir_void+set}" = set; then
9505 $as_echo_n "(cached) " >&6
9507 if test "$cross_compiling" = yes; then
9508 ac_cv_func_closedir_void=yes
9510 cat >conftest.$ac_ext <<_ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h. */
9516 $ac_includes_default
9517 #include <$ac_header_dirent>
9525 return closedir (opendir (".")) != 0;
9530 rm -f conftest$ac_exeext
9531 if { (ac_try="$ac_link"
9533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534 *) ac_try_echo=$ac_try;;
9536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9537 $as_echo "$ac_try_echo") >&5
9538 (eval "$ac_link") 2>&5
9540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9542 { (case "(($ac_try" in
9543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9544 *) ac_try_echo=$ac_try;;
9546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9547 $as_echo "$ac_try_echo") >&5
9548 (eval "$ac_try") 2>&5
9550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; }; then
9552 ac_cv_func_closedir_void=no
9554 $as_echo "$as_me: program exited with status $ac_status" >&5
9555 $as_echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.$ac_ext >&5
9559 ac_cv_func_closedir_void=yes
9561 rm -rf conftest.dSYM
9562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9567 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
9568 $as_echo "$ac_cv_func_closedir_void" >&6; }
9569 if test $ac_cv_func_closedir_void = yes; then
9571 cat >>confdefs.h <<\_ACEOF
9572 #define CLOSEDIR_VOID 1
9587 for ac_header in assert.h float.h limits.h memory.h pwd.h stdlib.h \
9588 string.h strings.h sys/param.h unistd.h
9590 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9592 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9593 $as_echo_n "checking for $ac_header... " >&6; }
9594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9595 $as_echo_n "(cached) " >&6
9597 ac_res=`eval 'as_val=${'$as_ac_Header'}
9598 $as_echo "$as_val"'`
9599 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9600 $as_echo "$ac_res" >&6; }
9602 # Is the header compilable?
9603 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9604 $as_echo_n "checking $ac_header usability... " >&6; }
9605 cat >conftest.$ac_ext <<_ACEOF
9608 cat confdefs.h >>conftest.$ac_ext
9609 cat >>conftest.$ac_ext <<_ACEOF
9610 /* end confdefs.h. */
9611 $ac_includes_default
9612 #include <$ac_header>
9614 rm -f conftest.$ac_objext
9615 if { (ac_try="$ac_compile"
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9621 $as_echo "$ac_try_echo") >&5
9622 (eval "$ac_compile") 2>conftest.er1
9624 grep -v '^ *+' conftest.er1 >conftest.err
9626 cat conftest.err >&5
9627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); } && {
9629 test -z "$ac_c_werror_flag" ||
9630 test ! -s conftest.err
9631 } && test -s conftest.$ac_objext; then
9632 ac_header_compiler=yes
9634 $as_echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.$ac_ext >&5
9637 ac_header_compiler=no
9640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9641 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9642 $as_echo "$ac_header_compiler" >&6; }
9644 # Is the header present?
9645 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9646 $as_echo_n "checking $ac_header presence... " >&6; }
9647 cat >conftest.$ac_ext <<_ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9653 #include <$ac_header>
9655 if { (ac_try="$ac_cpp conftest.$ac_ext"
9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658 *) ac_try_echo=$ac_try;;
9660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9661 $as_echo "$ac_try_echo") >&5
9662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9664 grep -v '^ *+' conftest.er1 >conftest.err
9666 cat conftest.err >&5
9667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } >/dev/null && {
9669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9670 test ! -s conftest.err
9672 ac_header_preproc=yes
9674 $as_echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9677 ac_header_preproc=no
9680 rm -f conftest.err conftest.$ac_ext
9681 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9682 $as_echo "$ac_header_preproc" >&6; }
9684 # So? What about this header?
9685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9688 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9690 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9691 ac_header_preproc=yes
9694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9695 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9697 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9699 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9701 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9703 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9705 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9707 ## --------------------------------- ##
9708 ## Report this to tex-k@mail.tug.org ##
9709 ## --------------------------------- ##
9711 ) | sed "s/^/$as_me: WARNING: /" >&2
9714 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9715 $as_echo_n "checking for $ac_header... " >&6; }
9716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9717 $as_echo_n "(cached) " >&6
9719 eval "$as_ac_Header=\$ac_header_preproc"
9721 ac_res=`eval 'as_val=${'$as_ac_Header'}
9722 $as_echo "$as_val"'`
9723 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9724 $as_echo "$ac_res" >&6; }
9727 if test `eval 'as_val=${'$as_ac_Header'}
9728 $as_echo "$as_val"'` = yes; then
9729 cat >>confdefs.h <<_ACEOF
9730 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9737 { $as_echo "$as_me:$LINENO: checking whether strstr is declared" >&5
9738 $as_echo_n "checking whether strstr is declared... " >&6; }
9739 if test "${ac_cv_have_decl_strstr+set}" = set; then
9740 $as_echo_n "(cached) " >&6
9742 cat >conftest.$ac_ext <<_ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748 $ac_includes_default
9760 rm -f conftest.$ac_objext
9761 if { (ac_try="$ac_compile"
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9767 $as_echo "$ac_try_echo") >&5
9768 (eval "$ac_compile") 2>conftest.er1
9770 grep -v '^ *+' conftest.er1 >conftest.err
9772 cat conftest.err >&5
9773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } && {
9775 test -z "$ac_c_werror_flag" ||
9776 test ! -s conftest.err
9777 } && test -s conftest.$ac_objext; then
9778 ac_cv_have_decl_strstr=yes
9780 $as_echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9783 ac_cv_have_decl_strstr=no
9786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9788 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
9789 $as_echo "$ac_cv_have_decl_strstr" >&6; }
9790 if test $ac_cv_have_decl_strstr = yes; then
9792 cat >>confdefs.h <<_ACEOF
9793 #define HAVE_DECL_STRSTR 1
9798 cat >>confdefs.h <<_ACEOF
9799 #define HAVE_DECL_STRSTR 0
9808 for ac_func in putenv
9810 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9811 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9812 $as_echo_n "checking for $ac_func... " >&6; }
9813 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9814 $as_echo_n "(cached) " >&6
9816 cat >conftest.$ac_ext <<_ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9824 #define $ac_func innocuous_$ac_func
9826 /* System header to define __stub macros and hopefully few prototypes,
9827 which can conflict with char $ac_func (); below.
9828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9829 <limits.h> exists even on freestanding compilers. */
9832 # include <limits.h>
9834 # include <assert.h>
9839 /* Override any GCC internal prototype to avoid an error.
9840 Use char because int might match the return type of a GCC
9841 builtin and then its argument prototype would still apply. */
9846 /* The GNU C library defines this for functions which it implements
9847 to always fail with ENOSYS. Some functions are actually named
9848 something starting with __ and the normal name is an alias. */
9849 #if defined __stub_$ac_func || defined __stub___$ac_func
9861 rm -f conftest.$ac_objext conftest$ac_exeext
9862 if { (ac_try="$ac_link"
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9868 $as_echo "$ac_try_echo") >&5
9869 (eval "$ac_link") 2>conftest.er1
9871 grep -v '^ *+' conftest.er1 >conftest.err
9873 cat conftest.err >&5
9874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } && {
9876 test -z "$ac_c_werror_flag" ||
9877 test ! -s conftest.err
9878 } && test -s conftest$ac_exeext && {
9879 test "$cross_compiling" = yes ||
9880 $as_test_x conftest$ac_exeext
9882 eval "$as_ac_var=yes"
9884 $as_echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.$ac_ext >&5
9887 eval "$as_ac_var=no"
9890 rm -rf conftest.dSYM
9891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9892 conftest$ac_exeext conftest.$ac_ext
9894 ac_res=`eval 'as_val=${'$as_ac_var'}
9895 $as_echo "$as_val"'`
9896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9897 $as_echo "$ac_res" >&6; }
9898 if test `eval 'as_val=${'$as_ac_var'}
9899 $as_echo "$as_val"'` = yes; then
9900 cat >>confdefs.h <<_ACEOF
9901 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9905 LTLIBOBJS="$LTLIBOBJS putenv.lo"
9910 for ac_func in strcasecmp
9912 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9913 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9914 $as_echo_n "checking for $ac_func... " >&6; }
9915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9916 $as_echo_n "(cached) " >&6
9918 cat >conftest.$ac_ext <<_ACEOF
9921 cat confdefs.h >>conftest.$ac_ext
9922 cat >>conftest.$ac_ext <<_ACEOF
9923 /* end confdefs.h. */
9924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9926 #define $ac_func innocuous_$ac_func
9928 /* System header to define __stub macros and hopefully few prototypes,
9929 which can conflict with char $ac_func (); below.
9930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9931 <limits.h> exists even on freestanding compilers. */
9934 # include <limits.h>
9936 # include <assert.h>
9941 /* Override any GCC internal prototype to avoid an error.
9942 Use char because int might match the return type of a GCC
9943 builtin and then its argument prototype would still apply. */
9948 /* The GNU C library defines this for functions which it implements
9949 to always fail with ENOSYS. Some functions are actually named
9950 something starting with __ and the normal name is an alias. */
9951 #if defined __stub_$ac_func || defined __stub___$ac_func
9963 rm -f conftest.$ac_objext conftest$ac_exeext
9964 if { (ac_try="$ac_link"
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9970 $as_echo "$ac_try_echo") >&5
9971 (eval "$ac_link") 2>conftest.er1
9973 grep -v '^ *+' conftest.er1 >conftest.err
9975 cat conftest.err >&5
9976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } && {
9978 test -z "$ac_c_werror_flag" ||
9979 test ! -s conftest.err
9980 } && test -s conftest$ac_exeext && {
9981 test "$cross_compiling" = yes ||
9982 $as_test_x conftest$ac_exeext
9984 eval "$as_ac_var=yes"
9986 $as_echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9989 eval "$as_ac_var=no"
9992 rm -rf conftest.dSYM
9993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9994 conftest$ac_exeext conftest.$ac_ext
9996 ac_res=`eval 'as_val=${'$as_ac_var'}
9997 $as_echo "$as_val"'`
9998 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9999 $as_echo "$ac_res" >&6; }
10000 if test `eval 'as_val=${'$as_ac_var'}
10001 $as_echo "$as_val"'` = yes; then
10002 cat >>confdefs.h <<_ACEOF
10003 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10007 LTLIBOBJS="$LTLIBOBJS strcasecmp.lo"
10012 for ac_func in strtol
10014 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10015 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10016 $as_echo_n "checking for $ac_func... " >&6; }
10017 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10018 $as_echo_n "(cached) " >&6
10020 cat >conftest.$ac_ext <<_ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h. */
10026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10028 #define $ac_func innocuous_$ac_func
10030 /* System header to define __stub macros and hopefully few prototypes,
10031 which can conflict with char $ac_func (); below.
10032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10033 <limits.h> exists even on freestanding compilers. */
10036 # include <limits.h>
10038 # include <assert.h>
10043 /* Override any GCC internal prototype to avoid an error.
10044 Use char because int might match the return type of a GCC
10045 builtin and then its argument prototype would still apply. */
10050 /* The GNU C library defines this for functions which it implements
10051 to always fail with ENOSYS. Some functions are actually named
10052 something starting with __ and the normal name is an alias. */
10053 #if defined __stub_$ac_func || defined __stub___$ac_func
10060 return $ac_func ();
10065 rm -f conftest.$ac_objext conftest$ac_exeext
10066 if { (ac_try="$ac_link"
10067 case "(($ac_try" in
10068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069 *) ac_try_echo=$ac_try;;
10071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10072 $as_echo "$ac_try_echo") >&5
10073 (eval "$ac_link") 2>conftest.er1
10075 grep -v '^ *+' conftest.er1 >conftest.err
10077 cat conftest.err >&5
10078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } && {
10080 test -z "$ac_c_werror_flag" ||
10081 test ! -s conftest.err
10082 } && test -s conftest$ac_exeext && {
10083 test "$cross_compiling" = yes ||
10084 $as_test_x conftest$ac_exeext
10086 eval "$as_ac_var=yes"
10088 $as_echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.$ac_ext >&5
10091 eval "$as_ac_var=no"
10094 rm -rf conftest.dSYM
10095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10096 conftest$ac_exeext conftest.$ac_ext
10098 ac_res=`eval 'as_val=${'$as_ac_var'}
10099 $as_echo "$as_val"'`
10100 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10101 $as_echo "$ac_res" >&6; }
10102 if test `eval 'as_val=${'$as_ac_var'}
10103 $as_echo "$as_val"'` = yes; then
10104 cat >>confdefs.h <<_ACEOF
10105 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10109 LTLIBOBJS="$LTLIBOBJS strtol.lo"
10114 for ac_func in strstr
10116 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10117 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10118 $as_echo_n "checking for $ac_func... " >&6; }
10119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10120 $as_echo_n "(cached) " >&6
10122 cat >conftest.$ac_ext <<_ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10130 #define $ac_func innocuous_$ac_func
10132 /* System header to define __stub macros and hopefully few prototypes,
10133 which can conflict with char $ac_func (); below.
10134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10135 <limits.h> exists even on freestanding compilers. */
10138 # include <limits.h>
10140 # include <assert.h>
10145 /* Override any GCC internal prototype to avoid an error.
10146 Use char because int might match the return type of a GCC
10147 builtin and then its argument prototype would still apply. */
10152 /* The GNU C library defines this for functions which it implements
10153 to always fail with ENOSYS. Some functions are actually named
10154 something starting with __ and the normal name is an alias. */
10155 #if defined __stub_$ac_func || defined __stub___$ac_func
10162 return $ac_func ();
10167 rm -f conftest.$ac_objext conftest$ac_exeext
10168 if { (ac_try="$ac_link"
10169 case "(($ac_try" in
10170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171 *) ac_try_echo=$ac_try;;
10173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10174 $as_echo "$ac_try_echo") >&5
10175 (eval "$ac_link") 2>conftest.er1
10177 grep -v '^ *+' conftest.er1 >conftest.err
10179 cat conftest.err >&5
10180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } && {
10182 test -z "$ac_c_werror_flag" ||
10183 test ! -s conftest.err
10184 } && test -s conftest$ac_exeext && {
10185 test "$cross_compiling" = yes ||
10186 $as_test_x conftest$ac_exeext
10188 eval "$as_ac_var=yes"
10190 $as_echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10193 eval "$as_ac_var=no"
10196 rm -rf conftest.dSYM
10197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10198 conftest$ac_exeext conftest.$ac_ext
10200 ac_res=`eval 'as_val=${'$as_ac_var'}
10201 $as_echo "$as_val"'`
10202 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10203 $as_echo "$ac_res" >&6; }
10204 if test `eval 'as_val=${'$as_ac_var'}
10205 $as_echo "$as_val"'` = yes; then
10206 cat >>confdefs.h <<_ACEOF
10207 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10211 LTLIBOBJS="$LTLIBOBJS strstr.lo"
10228 for ac_func in bcmp bcopy bzero getcwd getwd index memcmp memcpy rindex strchr strrchr
10230 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10231 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10232 $as_echo_n "checking for $ac_func... " >&6; }
10233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10234 $as_echo_n "(cached) " >&6
10236 cat >conftest.$ac_ext <<_ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10244 #define $ac_func innocuous_$ac_func
10246 /* System header to define __stub macros and hopefully few prototypes,
10247 which can conflict with char $ac_func (); below.
10248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10249 <limits.h> exists even on freestanding compilers. */
10252 # include <limits.h>
10254 # include <assert.h>
10259 /* Override any GCC internal prototype to avoid an error.
10260 Use char because int might match the return type of a GCC
10261 builtin and then its argument prototype would still apply. */
10266 /* The GNU C library defines this for functions which it implements
10267 to always fail with ENOSYS. Some functions are actually named
10268 something starting with __ and the normal name is an alias. */
10269 #if defined __stub_$ac_func || defined __stub___$ac_func
10276 return $ac_func ();
10281 rm -f conftest.$ac_objext conftest$ac_exeext
10282 if { (ac_try="$ac_link"
10283 case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10288 $as_echo "$ac_try_echo") >&5
10289 (eval "$ac_link") 2>conftest.er1
10291 grep -v '^ *+' conftest.er1 >conftest.err
10293 cat conftest.err >&5
10294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } && {
10296 test -z "$ac_c_werror_flag" ||
10297 test ! -s conftest.err
10298 } && test -s conftest$ac_exeext && {
10299 test "$cross_compiling" = yes ||
10300 $as_test_x conftest$ac_exeext
10302 eval "$as_ac_var=yes"
10304 $as_echo "$as_me: failed program was:" >&5
10305 sed 's/^/| /' conftest.$ac_ext >&5
10307 eval "$as_ac_var=no"
10310 rm -rf conftest.dSYM
10311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10312 conftest$ac_exeext conftest.$ac_ext
10314 ac_res=`eval 'as_val=${'$as_ac_var'}
10315 $as_echo "$as_val"'`
10316 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10317 $as_echo "$ac_res" >&6; }
10318 if test `eval 'as_val=${'$as_ac_var'}
10319 $as_echo "$as_val"'` = yes; then
10320 cat >>confdefs.h <<_ACEOF
10321 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10328 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10329 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10330 if test "${ac_cv_c_const+set}" = set; then
10331 $as_echo_n "(cached) " >&6
10333 cat >conftest.$ac_ext <<_ACEOF
10336 cat confdefs.h >>conftest.$ac_ext
10337 cat >>conftest.$ac_ext <<_ACEOF
10338 /* end confdefs.h. */
10343 /* FIXME: Include the comments suggested by Paul. */
10344 #ifndef __cplusplus
10345 /* Ultrix mips cc rejects this. */
10346 typedef int charset[2];
10348 /* SunOS 4.1.1 cc rejects this. */
10349 char const *const *pcpcc;
10351 /* NEC SVR4.0.2 mips cc rejects this. */
10352 struct point {int x, y;};
10353 static struct point const zero = {0,0};
10354 /* AIX XL C 1.02.0.0 rejects this.
10355 It does not let you subtract one const X* pointer from another in
10356 an arm of an if-expression whose if-part is not a constant
10358 const char *g = "string";
10359 pcpcc = &g + (g ? g-g : 0);
10360 /* HPUX 7.0 cc rejects these. */
10362 ppc = (char**) pcpcc;
10363 pcpcc = (char const *const *) ppc;
10364 { /* SCO 3.2v4 cc rejects this. */
10366 char const *s = 0 ? (char *) 0 : (char const *) 0;
10371 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10372 int x[] = {25, 17};
10373 const int *foo = &x[0];
10376 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10377 typedef const int *iptr;
10381 { /* AIX XL C 1.02.0.0 rejects this saying
10382 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10383 struct s { int j; const int *ap[3]; };
10384 struct s *b; b->j = 5;
10386 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10387 const int foo = 10;
10388 if (!foo) return 0;
10390 return !cs[0] && !zero.x;
10397 rm -f conftest.$ac_objext
10398 if { (ac_try="$ac_compile"
10399 case "(($ac_try" in
10400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401 *) ac_try_echo=$ac_try;;
10403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10404 $as_echo "$ac_try_echo") >&5
10405 (eval "$ac_compile") 2>conftest.er1
10407 grep -v '^ *+' conftest.er1 >conftest.err
10409 cat conftest.err >&5
10410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } && {
10412 test -z "$ac_c_werror_flag" ||
10413 test ! -s conftest.err
10414 } && test -s conftest.$ac_objext; then
10417 $as_echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10425 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10426 $as_echo "$ac_cv_c_const" >&6; }
10427 if test $ac_cv_c_const = no; then
10429 cat >>confdefs.h <<\_ACEOF
10436 # Check whether struct stat provides high-res time.
10437 { $as_echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
10438 $as_echo_n "checking for struct stat.st_mtim... " >&6; }
10439 if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
10440 $as_echo_n "(cached) " >&6
10442 cat >conftest.$ac_ext <<_ACEOF
10445 cat confdefs.h >>conftest.$ac_ext
10446 cat >>conftest.$ac_ext <<_ACEOF
10447 /* end confdefs.h. */
10448 $ac_includes_default
10452 static struct stat ac_aggr;
10453 if (ac_aggr.st_mtim)
10459 rm -f conftest.$ac_objext
10460 if { (ac_try="$ac_compile"
10461 case "(($ac_try" in
10462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10463 *) ac_try_echo=$ac_try;;
10465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10466 $as_echo "$ac_try_echo") >&5
10467 (eval "$ac_compile") 2>conftest.er1
10469 grep -v '^ *+' conftest.er1 >conftest.err
10471 cat conftest.err >&5
10472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } && {
10474 test -z "$ac_c_werror_flag" ||
10475 test ! -s conftest.err
10476 } && test -s conftest.$ac_objext; then
10477 ac_cv_member_struct_stat_st_mtim=yes
10479 $as_echo "$as_me: failed program was:" >&5
10480 sed 's/^/| /' conftest.$ac_ext >&5
10482 cat >conftest.$ac_ext <<_ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h. */
10488 $ac_includes_default
10492 static struct stat ac_aggr;
10493 if (sizeof ac_aggr.st_mtim)
10499 rm -f conftest.$ac_objext
10500 if { (ac_try="$ac_compile"
10501 case "(($ac_try" in
10502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10503 *) ac_try_echo=$ac_try;;
10505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10506 $as_echo "$ac_try_echo") >&5
10507 (eval "$ac_compile") 2>conftest.er1
10509 grep -v '^ *+' conftest.er1 >conftest.err
10511 cat conftest.err >&5
10512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } && {
10514 test -z "$ac_c_werror_flag" ||
10515 test ! -s conftest.err
10516 } && test -s conftest.$ac_objext; then
10517 ac_cv_member_struct_stat_st_mtim=yes
10519 $as_echo "$as_me: failed program was:" >&5
10520 sed 's/^/| /' conftest.$ac_ext >&5
10522 ac_cv_member_struct_stat_st_mtim=no
10525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10530 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
10531 $as_echo "$ac_cv_member_struct_stat_st_mtim" >&6; }
10532 if test $ac_cv_member_struct_stat_st_mtim = yes; then
10534 cat >>confdefs.h <<_ACEOF
10535 #define HAVE_STRUCT_STAT_ST_MTIM 1
10542 # Check whether prototypes work.
10543 { $as_echo "$as_me:$LINENO: checking whether the compiler accepts prototypes" >&5
10544 $as_echo_n "checking whether the compiler accepts prototypes... " >&6; }
10545 if test "${kb_cv_c_prototypes+set}" = set; then
10546 $as_echo_n "(cached) " >&6
10548 cat >conftest.$ac_ext <<_ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10554 #include <stdarg.h>
10558 extern void foo(int i,...);
10563 rm -f conftest.$ac_objext
10564 if { (ac_try="$ac_compile"
10565 case "(($ac_try" in
10566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567 *) ac_try_echo=$ac_try;;
10569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10570 $as_echo "$ac_try_echo") >&5
10571 (eval "$ac_compile") 2>conftest.er1
10573 grep -v '^ *+' conftest.er1 >conftest.err
10575 cat conftest.err >&5
10576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } && {
10578 test -z "$ac_c_werror_flag" ||
10579 test ! -s conftest.err
10580 } && test -s conftest.$ac_objext; then
10581 kb_cv_c_prototypes=yes
10583 $as_echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10586 kb_cv_c_prototypes=no
10589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10591 { $as_echo "$as_me:$LINENO: result: $kb_cv_c_prototypes" >&5
10592 $as_echo "$kb_cv_c_prototypes" >&6; }
10593 if test "$kb_cv_c_prototypes" = yes; then
10595 cat >>confdefs.h <<\_ACEOF
10596 #define HAVE_PROTOTYPES 1
10601 # This is a GNU libc invention.
10602 { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is predefined" >&5
10603 $as_echo_n "checking whether program_invocation_name is predefined... " >&6; }
10604 if test "${kb_cv_var_program_inv_name+set}" = set; then
10605 $as_echo_n "(cached) " >&6
10607 cat >conftest.$ac_ext <<_ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10617 extern char *program_invocation_name; program_invocation_name = "love";
10622 rm -f conftest.$ac_objext conftest$ac_exeext
10623 if { (ac_try="$ac_link"
10624 case "(($ac_try" in
10625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10626 *) ac_try_echo=$ac_try;;
10628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10629 $as_echo "$ac_try_echo") >&5
10630 (eval "$ac_link") 2>conftest.er1
10632 grep -v '^ *+' conftest.er1 >conftest.err
10634 cat conftest.err >&5
10635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } && {
10637 test -z "$ac_c_werror_flag" ||
10638 test ! -s conftest.err
10639 } && test -s conftest$ac_exeext && {
10640 test "$cross_compiling" = yes ||
10641 $as_test_x conftest$ac_exeext
10643 kb_cv_var_program_inv_name=yes
10645 $as_echo "$as_me: failed program was:" >&5
10646 sed 's/^/| /' conftest.$ac_ext >&5
10648 kb_cv_var_program_inv_name=no
10651 rm -rf conftest.dSYM
10652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10653 conftest$ac_exeext conftest.$ac_ext
10655 { $as_echo "$as_me:$LINENO: result: $kb_cv_var_program_inv_name" >&5
10656 $as_echo "$kb_cv_var_program_inv_name" >&6; }
10657 if test "$kb_cv_var_program_inv_name" = yes; then
10659 cat >>confdefs.h <<\_ACEOF
10660 #define HAVE_PROGRAM_INVOCATION_NAME 1
10665 if test $ac_cv_func_getcwd = yes; then
10666 # We only need to run this if we have getcwd.
10667 { $as_echo "$as_me:$LINENO: checking whether getcwd uses fork or vfork" >&5
10668 $as_echo_n "checking whether getcwd uses fork or vfork... " >&6; }
10669 if test "${kb_cv_func_getcwd_forks+set}" = set; then
10670 $as_echo_n "(cached) " >&6
10672 if test "$cross_compiling" = yes; then
10673 kb_cv_func_getcwd_forks=no
10675 cat >conftest.$ac_ext <<_ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h. */
10682 int fork() { exit(1); }
10683 int vfork() { exit(1); }
10684 extern char *getcwd();
10691 rm -f conftest$ac_exeext
10692 if { (ac_try="$ac_link"
10693 case "(($ac_try" in
10694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695 *) ac_try_echo=$ac_try;;
10697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10698 $as_echo "$ac_try_echo") >&5
10699 (eval "$ac_link") 2>&5
10701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10703 { (case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10708 $as_echo "$ac_try_echo") >&5
10709 (eval "$ac_try") 2>&5
10711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; }; then
10713 kb_cv_func_getcwd_forks=no
10715 $as_echo "$as_me: program exited with status $ac_status" >&5
10716 $as_echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.$ac_ext >&5
10719 ( exit $ac_status )
10720 kb_cv_func_getcwd_forks=yes
10722 rm -rf conftest.dSYM
10723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10728 { $as_echo "$as_me:$LINENO: result: $kb_cv_func_getcwd_forks" >&5
10729 $as_echo "$kb_cv_func_getcwd_forks" >&6; }
10730 if test $kb_cv_func_getcwd_forks = yes; then
10732 cat >>confdefs.h <<\_ACEOF
10733 #define GETCWD_FORKS 1
10739 # Common --with and --enable options.
10741 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10742 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10743 # Check whether --enable-maintainer-mode was given.
10744 if test "${enable_maintainer_mode+set}" = set; then
10745 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10747 USE_MAINTAINER_MODE=no
10750 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10751 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10752 if test "x$USE_MAINTAINER_MODE" = xyes; then
10760 { $as_echo "$as_me:$LINENO: checking for loader (symbol LD)" >&5
10761 $as_echo_n "checking for loader (symbol LD)... " >&6; }
10762 if test "${cf_cv_subst_LD+set}" = set; then
10763 $as_echo_n "(cached) " >&6
10766 test -z "$LD" && LD=ld
10770 LD=${cf_cv_subst_LD}
10771 { $as_echo "$as_me:$LINENO: result: $LD" >&5
10772 $as_echo "$LD" >&6; }
10775 { $as_echo "$as_me:$LINENO: checking for archiver (symbol AR)" >&5
10776 $as_echo_n "checking for archiver (symbol AR)... " >&6; }
10777 if test "${cf_cv_subst_AR+set}" = set; then
10778 $as_echo_n "(cached) " >&6
10781 test -z "$AR" && AR=ar
10785 AR=${cf_cv_subst_AR}
10786 { $as_echo "$as_me:$LINENO: result: $AR" >&5
10787 $as_echo "$AR" >&6; }
10790 { $as_echo "$as_me:$LINENO: checking for archiver options (symbol ARFLAGS)" >&5
10791 $as_echo_n "checking for archiver options (symbol ARFLAGS)... " >&6; }
10792 if test "${cf_cv_subst_ARFLAGS+set}" = set; then
10793 $as_echo_n "(cached) " >&6
10796 test -z "$ARFLAGS" && ARFLAGS=rc
10797 cf_cv_subst_ARFLAGS=$ARFLAGS
10800 ARFLAGS=${cf_cv_subst_ARFLAGS}
10801 { $as_echo "$as_me:$LINENO: result: $ARFLAGS" >&5
10802 $as_echo "$ARFLAGS" >&6; }
10807 # Check whether --with-mktexmf-default was given.
10808 if test "${with_mktexmf_default+set}" = set; then
10809 withval=$with_mktexmf_default;
10811 with_mktexmf_default=yes
10815 # Check whether --with-mktexpk-default was given.
10816 if test "${with_mktexpk_default+set}" = set; then
10817 withval=$with_mktexpk_default;
10819 with_mktexpk_default=yes
10823 # Check whether --with-mktextfm-default was given.
10824 if test "${with_mktextfm_default+set}" = set; then
10825 withval=$with_mktextfm_default;
10827 with_mktextfm_default=yes
10831 # Check whether --with-mkocp-default was given.
10832 if test "${with_mkocp_default+set}" = set; then
10833 withval=$with_mkocp_default;
10835 with_mkocp_default=yes
10839 # Check whether --with-mkofm-default was given.
10840 if test "${with_mkofm_default+set}" = set; then
10841 withval=$with_mkofm_default;
10843 with_mkofm_default=yes
10847 # Check whether --with-mktexfmt-default was given.
10848 if test "${with_mktexfmt_default+set}" = set; then
10849 withval=$with_mktexfmt_default;
10853 # Check whether --with-mktextex-default was given.
10854 if test "${with_mktextex_default+set}" = set; then
10855 withval=$with_mktextex_default; with_mktextex_default=yes
10857 with_mktextex_default=no
10861 { $as_echo "$as_me:$LINENO: checking where the main texmf tree is located" >&5
10862 $as_echo_n "checking where the main texmf tree is located... " >&6; }
10864 */) prefix=`echo "$prefix" | sed 's@/*$@@'`;;
10867 if test "x$datadir" != 'x${prefix}/share'; then
10868 # First case, datadir is defined...
10869 eval p=\"$datadir\"
10870 # Unconditionally set the directory, but...
10871 texmfmain=`echo "$p/texmf" | sed 's,//*,/,g'`
10872 # ... do complain if it wasn't found.
10873 if test -d "$texmfmain"; then
10874 { $as_echo "$as_me:$LINENO: result: \"$texmfmain\"" >&5
10875 $as_echo "\"$texmfmain\"" >&6; }
10877 true # be silent dnl AC_MSG_RESULT([not found])
10880 # Second case, datadir is default...
10881 if test "x$prefix" = "xNONE"; then
10882 p="$ac_default_prefix"
10886 for e in share/texmf lib/texmf texmf; do
10887 if test -d "$p/$e"; then
10888 texmfmain='${prefix}'/"$e"
10892 if test -z "$texmfmain" && test "x$prefix" = "xNONE"; then
10893 # Still no texmfmain found, no prefix set, perhaps kpsewhich is
10894 # installed and can help us out.
10895 texmfmain=`kpsewhich --expand-path='$TEXMFMAIN'` 2>/dev/null
10897 texmfmain=`echo "$texmfmain" | sed 's,//*,/,g'`
10898 if test -n "$texmfmain"; then
10899 { $as_echo "$as_me:$LINENO: result: \"$texmfmain\"" >&5
10900 $as_echo "\"$texmfmain\"" >&6; }
10902 eval texmfmain="$datadir/texmf"
10903 # (be silent) dnl AC_MSG_RESULT([not found])
10909 # Implementation of those options.
10910 # _KPSE_DEFINE_MAKE_BY_DEFAULT
10912 if test "x$with_mktexmf_default" = xyes; then
10914 cat >>confdefs.h <<\_ACEOF
10915 #define MAKE_TEX_MF_BY_DEFAULT 1
10919 cat >>confdefs.h <<\_ACEOF
10920 #define MAKE_TEX_MF_BY_DEFAULT 0
10925 if test "x$with_mktexpk_default" = xyes; then
10927 cat >>confdefs.h <<\_ACEOF
10928 #define MAKE_TEX_PK_BY_DEFAULT 1
10932 cat >>confdefs.h <<\_ACEOF
10933 #define MAKE_TEX_PK_BY_DEFAULT 0
10938 if test "x$with_mktextex_default" = xyes; then
10940 cat >>confdefs.h <<\_ACEOF
10941 #define MAKE_TEX_TEX_BY_DEFAULT 1
10945 cat >>confdefs.h <<\_ACEOF
10946 #define MAKE_TEX_TEX_BY_DEFAULT 0
10951 if test "x$with_mktexfmt_default" = xyes; then
10953 cat >>confdefs.h <<\_ACEOF
10954 #define MAKE_TEX_FMT_BY_DEFAULT 1
10958 cat >>confdefs.h <<\_ACEOF
10959 #define MAKE_TEX_FMT_BY_DEFAULT 0
10964 if test "x$with_mktextfm_default" = xyes; then
10966 cat >>confdefs.h <<\_ACEOF
10967 #define MAKE_TEX_TFM_BY_DEFAULT 1
10971 cat >>confdefs.h <<\_ACEOF
10972 #define MAKE_TEX_TFM_BY_DEFAULT 0
10977 if test "x$with_mkocp_default" = xyes; then
10979 cat >>confdefs.h <<\_ACEOF
10980 #define MAKE_OMEGA_OCP_BY_DEFAULT 1
10984 cat >>confdefs.h <<\_ACEOF
10985 #define MAKE_OMEGA_OCP_BY_DEFAULT 0
10990 if test "x$with_mkofm_default" = xyes; then
10992 cat >>confdefs.h <<\_ACEOF
10993 #define MAKE_OMEGA_OFM_BY_DEFAULT 1
10997 cat >>confdefs.h <<\_ACEOF
10998 #define MAKE_OMEGA_OFM_BY_DEFAULT 0
11004 # Is libm present. FIXME: do we need it at all?
11006 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
11007 $as_echo_n "checking for main in -lm... " >&6; }
11008 if test "${ac_cv_lib_m_main+set}" = set; then
11009 $as_echo_n "(cached) " >&6
11011 ac_check_lib_save_LIBS=$LIBS
11013 cat >conftest.$ac_ext <<_ACEOF
11016 cat confdefs.h >>conftest.$ac_ext
11017 cat >>conftest.$ac_ext <<_ACEOF
11018 /* end confdefs.h. */
11029 rm -f conftest.$ac_objext conftest$ac_exeext
11030 if { (ac_try="$ac_link"
11031 case "(($ac_try" in
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11036 $as_echo "$ac_try_echo") >&5
11037 (eval "$ac_link") 2>conftest.er1
11039 grep -v '^ *+' conftest.er1 >conftest.err
11041 cat conftest.err >&5
11042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } && {
11044 test -z "$ac_c_werror_flag" ||
11045 test ! -s conftest.err
11046 } && test -s conftest$ac_exeext && {
11047 test "$cross_compiling" = yes ||
11048 $as_test_x conftest$ac_exeext
11050 ac_cv_lib_m_main=yes
11052 $as_echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11055 ac_cv_lib_m_main=no
11058 rm -rf conftest.dSYM
11059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11060 conftest$ac_exeext conftest.$ac_ext
11061 LIBS=$ac_check_lib_save_LIBS
11063 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
11064 $as_echo "$ac_cv_lib_m_main" >&6; }
11065 if test $ac_cv_lib_m_main = yes; then
11066 cat >>confdefs.h <<_ACEOF
11067 #define HAVE_LIBM 1
11075 # If you're cross-compiling, these macros set up the variables in
11076 # ../make/cross.mk: BUILDCC, BUILDCFLAGS, BUILDCCLD etc.
11077 if test "$cross_compiling" = yes; then
11078 if test -z "${BUILDCC}"; then
11081 { $as_echo "$as_me:$LINENO: result: setting \$BUILDCC to ${BUILDCC}" >&5
11082 $as_echo "setting \$BUILDCC to ${BUILDCC}" >&6; }
11084 if test -n "${BUILDCC}"; then
11085 { $as_echo "$as_me:$LINENO: WARNING: \$BUILDCC set but not cross-compiling." >&5
11086 $as_echo "$as_me: WARNING: \$BUILDCC set but not cross-compiling." >&2;}
11092 if test "$cross_compiling" = yes; then
11093 if test -z "${BUILDCFLAGS}"; then
11094 BUILDCFLAGS='$(BUILDXCFLAGS)'
11096 { $as_echo "$as_me:$LINENO: result: setting \$BUILDCFLAGS to ${BUILDCFLAGS}" >&5
11097 $as_echo "setting \$BUILDCFLAGS to ${BUILDCFLAGS}" >&6; }
11099 if test -n "${BUILDCFLAGS}"; then
11100 { $as_echo "$as_me:$LINENO: WARNING: \$BUILDCFLAGS set but not cross-compiling." >&5
11101 $as_echo "$as_me: WARNING: \$BUILDCFLAGS set but not cross-compiling." >&2;}
11103 BUILDCFLAGS='$(CFLAGS)'
11107 if test "$cross_compiling" = yes; then
11108 if test -z "${BUILDCPPFLAGS}"; then
11109 BUILDCPPFLAGS='$(BUILDXCPPFLAGS)'
11111 { $as_echo "$as_me:$LINENO: result: setting \$BUILDCPPFLAGS to ${BUILDCPPFLAGS}" >&5
11112 $as_echo "setting \$BUILDCPPFLAGS to ${BUILDCPPFLAGS}" >&6; }
11114 if test -n "${BUILDCPPFLAGS}"; then
11115 { $as_echo "$as_me:$LINENO: WARNING: \$BUILDCPPFLAGS set but not cross-compiling." >&5
11116 $as_echo "$as_me: WARNING: \$BUILDCPPFLAGS set but not cross-compiling." >&2;}
11118 BUILDCPPFLAGS='$(CPPFLAGS)'
11122 if test "$cross_compiling" = yes; then
11123 if test -z "${BUILDLDFLAGS}"; then
11124 BUILDLDFLAGS='$(BUILDXLDFLAGS)'
11126 { $as_echo "$as_me:$LINENO: result: setting \$BUILDLDFLAGS to ${BUILDLDFLAGS}" >&5
11127 $as_echo "setting \$BUILDLDFLAGS to ${BUILDLDFLAGS}" >&6; }
11129 if test -n "${BUILDLDFLAGS}"; then
11130 { $as_echo "$as_me:$LINENO: WARNING: \$BUILDLDFLAGS set but not cross-compiling." >&5
11131 $as_echo "$as_me: WARNING: \$BUILDLDFLAGS set but not cross-compiling." >&2;}
11133 BUILDLDFLAGS='$(LDFLAGS)'
11137 if test "$cross_compiling" = yes; then
11138 if test -z "${BUILDCCLD}"; then
11139 BUILDCCLD='$(BUILDCC)'
11141 { $as_echo "$as_me:$LINENO: result: setting \$BUILDCCLD to ${BUILDCCLD}" >&5
11142 $as_echo "setting \$BUILDCCLD to ${BUILDCCLD}" >&6; }
11144 if test -n "${BUILDCCLD}"; then
11145 { $as_echo "$as_me:$LINENO: WARNING: \$BUILDCCLD set but not cross-compiling." >&5
11146 $as_echo "$as_me: WARNING: \$BUILDCCLD set but not cross-compiling." >&2;}
11148 BUILDCCLD='$(CCLD)'
11159 ac_config_files="$ac_config_files Makefile.aux:Makefile.in"
11160 ac_config_files="$ac_config_files Makefile:Makefile.aux"
11162 cat >confcache <<\_ACEOF
11163 # This file is a shell script that caches the results of configure
11164 # tests run on this system so they can be shared between configure
11165 # scripts and configure runs, see configure's option --config-cache.
11166 # It is not useful on other systems. If it contains results you don't
11167 # want to keep, you may remove or edit it.
11169 # config.status only pays attention to the cache file if you give it
11170 # the --recheck option to rerun configure.
11172 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11173 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11174 # following values.
11178 # The following way of writing the cache mishandles newlines in values,
11179 # but we know of no workaround that is simple, portable, and efficient.
11180 # So, we kill variables containing newlines.
11181 # Ultrix sh set writes to stderr and can't be redirected directly,
11182 # and sets the high bit in the cache file unless we assign to the vars.
11184 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11185 eval ac_val=\$$ac_var
11189 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11190 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11193 _ | IFS | as_nl) ;; #(
11194 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11195 *) $as_unset $ac_var ;;
11201 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11202 *${as_nl}ac_space=\ *)
11203 # `set' does not quote correctly, so add quotes (double-quote
11204 # substitution turns \\\\ into \\, and sed turns \\ into \).
11207 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11210 # `set' quotes correctly as required by POSIX, so do not add quotes.
11211 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11220 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11222 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11224 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11225 if test -w "$cache_file"; then
11226 test "x$cache_file" != "x/dev/null" &&
11227 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11228 $as_echo "$as_me: updating cache $cache_file" >&6;}
11229 cat confcache >$cache_file
11231 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11232 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11237 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11238 # Let make expand exec_prefix.
11239 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11241 DEFS=-DHAVE_CONFIG_H
11245 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11246 # 1. Remove the extension, and $U if already installed.
11247 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11248 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11249 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11250 # will be set to the directory where LIBOBJS objects are built.
11251 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11252 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11254 LIBOBJS=$ac_libobjs
11256 LTLIBOBJS=$ac_ltlibobjs
11260 : ${CONFIG_STATUS=./config.status}
11262 ac_clean_files_save=$ac_clean_files
11263 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11264 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11265 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11266 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11268 # Generated by $as_me.
11269 # Run this file to recreate the current configuration.
11270 # Compiler output produced by configure, useful for debugging
11271 # configure, is in config.log if it exists.
11274 ac_cs_recheck=false
11276 SHELL=\${CONFIG_SHELL-$SHELL}
11279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11280 ## --------------------- ##
11281 ## M4sh Initialization. ##
11282 ## --------------------- ##
11284 # Be more Bourne compatible
11285 DUALCASE=1; export DUALCASE # for MKS sh
11286 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11289 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11290 # is contrary to our usage. Disable this feature.
11291 alias -g '${1+"$@"}'='"$@"'
11292 setopt NO_GLOB_SUBST
11294 case `(set -o) 2>/dev/null` in
11295 *posix*) set -o posix ;;
11304 # Avoid depending upon Character Ranges.
11305 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11306 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11307 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11308 as_cr_digits='0123456789'
11309 as_cr_alnum=$as_cr_Letters$as_cr_digits
11314 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11315 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11316 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11317 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11318 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11319 as_echo='printf %s\n'
11320 as_echo_n='printf %s'
11322 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11323 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11324 as_echo_n='/usr/ucb/echo -n'
11326 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11327 as_echo_n_body='eval
11331 expr "X$arg" : "X\\(.*\\)$as_nl";
11332 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11334 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11336 export as_echo_n_body
11337 as_echo_n='sh -c $as_echo_n_body as_echo'
11339 export as_echo_body
11340 as_echo='sh -c $as_echo_body as_echo'
11343 # The user is always right.
11344 if test "${PATH_SEPARATOR+set}" != set; then
11346 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11347 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11352 # Support unset when possible.
11353 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11361 # We need space, tab and new line, in precisely that order. Quoting is
11362 # there to prevent editors from complaining about space-tab.
11363 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11364 # splitting by setting IFS to empty value.)
11367 # Find who we are. Look in the path if we contain no directory separator.
11369 *[\\/]* ) as_myself=$0 ;;
11370 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371 for as_dir in $PATH
11374 test -z "$as_dir" && as_dir=.
11375 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11381 # We did not find ourselves, most probably we were run as `sh COMMAND'
11382 # in which case we are not to be found in the path.
11383 if test "x$as_myself" = x; then
11386 if test ! -f "$as_myself"; then
11387 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11388 { (exit 1); exit 1; }
11391 # Work around bugs in pre-3.0 UWIN ksh.
11392 for as_var in ENV MAIL MAILPATH
11393 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11405 # Required to use basename.
11406 if expr a : '\(a\)' >/dev/null 2>&1 &&
11407 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11413 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11414 as_basename=basename
11420 # Name of the executable.
11421 as_me=`$as_basename -- "$0" ||
11422 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11423 X"$0" : 'X\(//\)$' \| \
11424 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11426 sed '/^.*\/\([^/][^/]*\)\/*$/{
11445 as_lineno_1=$LINENO
11446 as_lineno_2=$LINENO
11447 test "x$as_lineno_1" != "x$as_lineno_2" &&
11448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11451 # uniformly replaced by the line number. The first 'sed' inserts a
11452 # line-number line after each line using $LINENO; the second 'sed'
11453 # does the real work. The second script uses 'N' to pair each
11454 # line-number line with the line containing $LINENO, and appends
11455 # trailing '-' during substitution so that $LINENO is not a special
11456 # case at line end.
11457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11458 # scripts with optimization help from Paolo Bonzini. Blame Lee
11459 # E. McMahon (1931-1989) for sed's syntax. :-)
11471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11474 ' >$as_me.lineno &&
11475 chmod +x "$as_me.lineno" ||
11476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11477 { (exit 1); exit 1; }; }
11479 # Don't try to exec as it changes $[0], causing all sort of problems
11480 # (the dirname of $[0] is not the place where we might find the
11481 # original and so on. Autoconf is especially sensitive to this).
11482 . "./$as_me.lineno"
11483 # Exit status is that of the last command.
11488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11494 ECHO_C= ECHO_N= ECHO_T=
11495 case `echo -n x` in
11497 case `echo 'x\c'` in
11498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11504 if expr a : '\(a\)' >/dev/null 2>&1 &&
11505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11511 rm -f conf$$ conf$$.exe conf$$.file
11512 if test -d conf$$.dir; then
11513 rm -f conf$$.dir/conf$$.file
11516 mkdir conf$$.dir 2>/dev/null
11518 if (echo >conf$$.file) 2>/dev/null; then
11519 if ln -s conf$$.file conf$$ 2>/dev/null; then
11521 # ... but there are two gotchas:
11522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11524 # In both cases, we have to default to `cp -p'.
11525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11527 elif ln conf$$.file conf$$ 2>/dev/null; then
11535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11536 rmdir conf$$.dir 2>/dev/null
11538 if mkdir -p . 2>/dev/null; then
11541 test -d ./-p && rmdir ./-p
11545 if test -x / >/dev/null 2>&1; then
11546 as_test_x='test -x'
11548 if ls -dL / >/dev/null 2>&1; then
11555 if test -d "$1"; then
11561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11562 ???[sx]*):;;*)false;;esac;fi
11566 as_executable_p=$as_test_x
11568 # Sed expression to map a string onto a valid CPP name.
11569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11571 # Sed expression to map a string onto a valid variable name.
11572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11577 # Save the log message, to keep $[0] and so on meaningful, and to
11578 # report actual input values of CONFIG_FILES etc. instead of their
11579 # values after options handling.
11581 This file was extended by kpathsea $as_me 3.5.7, which was
11582 generated by GNU Autoconf 2.62. Invocation command line was
11584 CONFIG_FILES = $CONFIG_FILES
11585 CONFIG_HEADERS = $CONFIG_HEADERS
11586 CONFIG_LINKS = $CONFIG_LINKS
11587 CONFIG_COMMANDS = $CONFIG_COMMANDS
11590 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11596 # Files that config.status was made for.
11597 config_files="$ac_config_files"
11598 config_headers="$ac_config_headers"
11602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11604 \`$as_me' instantiates files from templates according to the
11605 current configuration.
11607 Usage: $0 [OPTIONS] [FILE]...
11609 -h, --help print this help, then exit
11610 -V, --version print version number and configuration settings, then exit
11611 -q, --quiet do not print progress messages
11612 -d, --debug don't remove temporary files
11613 --recheck update $as_me by reconfiguring in the same conditions
11614 --file=FILE[:TEMPLATE]
11615 instantiate the configuration file FILE
11616 --header=FILE[:TEMPLATE]
11617 instantiate the configuration header FILE
11619 Configuration files:
11622 Configuration headers:
11625 Report bugs to <bug-autoconf@gnu.org>."
11628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11630 kpathsea config.status 3.5.7
11631 configured by $0, generated by GNU Autoconf 2.62,
11632 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11634 Copyright (C) 2008 Free Software Foundation, Inc.
11635 This config.status script is free software; the Free Software Foundation
11636 gives unlimited permission to copy, distribute and modify it."
11641 test -n "\$AWK" || AWK=awk
11644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11645 # The default lists apply if the user does not specify any file.
11651 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11652 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11663 # Handling of the options.
11664 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11666 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11667 $as_echo "$ac_cs_version"; exit ;;
11668 --debug | --debu | --deb | --de | --d | -d )
11670 --file | --fil | --fi | --f )
11673 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11675 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
11676 ac_need_defaults=false;;
11677 --header | --heade | --head | --hea )
11680 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11682 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
11683 ac_need_defaults=false;;
11685 # Conflict between --help and --header
11686 { $as_echo "$as_me: error: ambiguous option: $1
11687 Try \`$0 --help' for more information." >&2
11688 { (exit 1); exit 1; }; };;
11689 --help | --hel | -h )
11690 $as_echo "$ac_cs_usage"; exit ;;
11691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11692 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11695 # This is an error.
11696 -*) { $as_echo "$as_me: error: unrecognized option: $1
11697 Try \`$0 --help' for more information." >&2
11698 { (exit 1); exit 1; }; } ;;
11700 *) ac_config_targets="$ac_config_targets $1"
11701 ac_need_defaults=false ;;
11707 ac_configure_extra_args=
11709 if $ac_cs_silent; then
11711 ac_configure_extra_args="$ac_configure_extra_args --silent"
11715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11716 if \$ac_cs_recheck; then
11717 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11719 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11720 CONFIG_SHELL='$SHELL'
11721 export CONFIG_SHELL
11726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11730 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11731 ## Running $as_me. ##
11737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11742 # Handling of arguments.
11743 for ac_config_target in $ac_config_targets
11745 case $ac_config_target in
11746 "c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS c-auto.h:c-auto.in" ;;
11747 "Makefile.aux") CONFIG_FILES="$CONFIG_FILES Makefile.aux:Makefile.in" ;;
11748 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.aux" ;;
11750 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11751 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11752 { (exit 1); exit 1; }; };;
11757 # If the user did not use the arguments to specify the items to instantiate,
11758 # then the envvar interface is used. Set only those that are not.
11759 # We use the long form for the default assignment because of an extremely
11760 # bizarre bug on SunOS 4.1.3.
11761 if $ac_need_defaults; then
11762 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11763 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11766 # Have a temporary directory for convenience. Make it in the build tree
11767 # simply because there is no reason against having it here, and in addition,
11768 # creating and moving files from /tmp can sometimes cause problems.
11769 # Hook for its removal unless debugging.
11770 # Note that there is a small window in which the directory will not be cleaned:
11771 # after its creation but before its name has been assigned to `$tmp'.
11775 trap 'exit_status=$?
11776 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11778 trap '{ (exit 1); exit 1; }' 1 2 13 15
11780 # Create a (secure) tmp directory for tmp files.
11783 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11784 test -n "$tmp" && test -d "$tmp"
11787 tmp=./conf$$-$RANDOM
11788 (umask 077 && mkdir "$tmp")
11791 $as_echo "$as_me: cannot create a temporary directory in ." >&2
11792 { (exit 1); exit 1; }
11795 # Set up the scripts for CONFIG_FILES section.
11796 # No need to generate them if there are no CONFIG_FILES.
11797 # This happens for instance with `./config.status config.h'.
11798 if test -n "$CONFIG_FILES"; then
11802 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11803 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11806 ac_cs_awk_cr=$ac_cr
11809 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11814 echo "cat >conf$$subs.awk <<_ACEOF" &&
11815 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11817 } >conf$$subs.sh ||
11818 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11819 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11820 { (exit 1); exit 1; }; }
11821 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11823 for ac_last_try in false false false false false :; do
11824 . ./conf$$subs.sh ||
11825 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11826 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11827 { (exit 1); exit 1; }; }
11829 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
11831 elif $ac_last_try; then
11832 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11833 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11834 { (exit 1); exit 1; }; }
11836 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11839 rm -f conf$$subs.sh
11841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11842 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11846 s/^/S["/; s/!.*/"]=/
11856 s/\(.\{148\}\).*/\1/
11858 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11863 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11870 s/\(.\{148\}\).*/\1/
11872 s/["\\]/\\&/g; s/^/"/; s/$/"/
11876 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11881 ' <conf$$subs.awk | sed '
11886 ' >>$CONFIG_STATUS || ac_write_fail=1
11887 rm -f conf$$subs.awk
11888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11890 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11891 for (key in S) S_is_set[key] = 1
11897 nfields = split(line, field, "@")
11899 len = length(field[1])
11900 for (i = 2; i < nfields; i++) {
11902 keylen = length(key)
11903 if (S_is_set[key]) {
11905 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11906 len += length(value) + length(field[++i])
11917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11918 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11919 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11922 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11923 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
11924 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
11925 { (exit 1); exit 1; }; }
11928 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11929 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11930 # trailing colons and then remove the whole line if VPATH becomes empty
11931 # (actually we leave an empty line to preserve line numbers).
11932 if test "x$srcdir" = x.; then
11933 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11934 s/:*\$(srcdir):*/:/
11935 s/:*\${srcdir}:*/:/
11937 s/^\([^=]*=[ ]*\):*/\1/
11943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11944 fi # test -n "$CONFIG_FILES"
11946 # Set up the scripts for CONFIG_HEADERS section.
11947 # No need to generate them if there are no CONFIG_HEADERS.
11948 # This happens for instance with `./config.status Makefile'.
11949 if test -n "$CONFIG_HEADERS"; then
11950 cat >"$tmp/defines.awk" <<\_ACAWK ||
11954 # Transform confdefs.h into an awk script `defines.awk', embedded as
11955 # here-document in config.status, that substitutes the proper values into
11956 # config.h.in to produce config.h.
11958 # Create a delimiter string that does not exist in confdefs.h, to ease
11959 # handling of long lines.
11961 for ac_last_try in false false :; do
11962 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11963 if test -z "$ac_t"; then
11965 elif $ac_last_try; then
11966 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
11967 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
11968 { (exit 1); exit 1; }; }
11970 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11974 # For the awk script, D is an array of macro values keyed by name,
11975 # likewise P contains macro parameters if any. Preserve backslash
11976 # newline sequences.
11978 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11980 s/.\{148\}/&'"$ac_delim"'/g
11983 s/^[ ]*#[ ]*define[ ][ ]*/ /
11990 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11992 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11996 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11997 D["\1"]=" \3\\\\\\n"\\/p
11999 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12004 s/.\{148\}/&'"$ac_delim"'/g
12009 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12012 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12014 ' <confdefs.h | sed '
12015 s/'"$ac_delim"'/"\\\
12016 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12019 for (key in D) D_is_set[key] = 1
12022 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12024 split(line, arg, " ")
12025 if (arg[1] == "#") {
12029 defundef = substr(arg[1], 2)
12032 split(mac1, mac2, "(") #)
12034 if (D_is_set[macro]) {
12035 # Preserve the white space surrounding the "#".
12036 prefix = substr(line, 1, index(line, defundef) - 1)
12037 print prefix "define", macro P[macro] D[macro]
12040 # Replace #undef with comments. This is necessary, for example,
12041 # in the case of _POSIX_SOURCE, which is predefined and required
12042 # on some systems where configure will not decide to define it.
12043 if (defundef == "undef") {
12044 print "/*", line, "*/"
12052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12053 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12054 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12055 { (exit 1); exit 1; }; }
12056 fi # test -n "$CONFIG_HEADERS"
12059 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
12064 :[FHLC]) ac_mode=$ac_tag; continue;;
12066 case $ac_mode$ac_tag in
12068 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12069 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12070 { (exit 1); exit 1; }; };;
12071 :[FH]-) ac_tag=-:-;;
12072 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12089 -) ac_f="$tmp/stdin";;
12090 *) # Look for the file first in the build tree, then in the source tree
12091 # (if the path is not absolute). The absolute path cannot be DOS-style,
12092 # because $ac_f cannot contain `:'.
12096 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12098 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12099 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12100 { (exit 1); exit 1; }; };;
12102 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12103 ac_file_inputs="$ac_file_inputs '$ac_f'"
12106 # Let's still pretend it is `configure' which instantiates (i.e., don't
12107 # use $as_me), people would be surprised to read:
12108 # /* config.h. Generated by config.status. */
12109 configure_input='Generated from '`
12110 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12112 if test x"$ac_file" != x-; then
12113 configure_input="$ac_file. $configure_input"
12114 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12115 $as_echo "$as_me: creating $ac_file" >&6;}
12117 # Neutralize special characters interpreted by sed in replacement strings.
12118 case $configure_input in #(
12119 *\&* | *\|* | *\\* )
12120 ac_sed_conf_input=`$as_echo "$configure_input" |
12121 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12122 *) ac_sed_conf_input=$configure_input;;
12126 *:-:* | *:-) cat >"$tmp/stdin" \
12127 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12128 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12129 { (exit 1); exit 1; }; } ;;
12134 ac_dir=`$as_dirname -- "$ac_file" ||
12135 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12136 X"$ac_file" : 'X\(//\)[^/]' \| \
12137 X"$ac_file" : 'X\(//\)$' \| \
12138 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12139 $as_echo X"$ac_file" |
12140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12144 /^X\(\/\/\)[^/].*/{
12159 -*) as_dir=./$as_dir;;
12161 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12165 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12166 *) as_qdir=$as_dir;;
12168 as_dirs="'$as_qdir' $as_dirs"
12169 as_dir=`$as_dirname -- "$as_dir" ||
12170 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12171 X"$as_dir" : 'X\(//\)[^/]' \| \
12172 X"$as_dir" : 'X\(//\)$' \| \
12173 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12174 $as_echo X"$as_dir" |
12175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12179 /^X\(\/\/\)[^/].*/{
12192 test -d "$as_dir" && break
12194 test -z "$as_dirs" || eval "mkdir $as_dirs"
12195 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12196 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12197 { (exit 1); exit 1; }; }; }
12201 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12203 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12204 # A ".." for each directory in $ac_dir_suffix.
12205 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12206 case $ac_top_builddir_sub in
12207 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12208 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12211 ac_abs_top_builddir=$ac_pwd
12212 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12213 # for backward compatibility:
12214 ac_top_builddir=$ac_top_build_prefix
12217 .) # We are building in place.
12219 ac_top_srcdir=$ac_top_builddir_sub
12220 ac_abs_top_srcdir=$ac_pwd ;;
12221 [\\/]* | ?:[\\/]* ) # Absolute name.
12222 ac_srcdir=$srcdir$ac_dir_suffix;
12223 ac_top_srcdir=$srcdir
12224 ac_abs_top_srcdir=$srcdir ;;
12225 *) # Relative name.
12226 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12227 ac_top_srcdir=$ac_top_build_prefix$srcdir
12228 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12230 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12240 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12241 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12246 # If the template does not know about datarootdir, expand it.
12247 # FIXME: This hack should be removed a few years after 2.60.
12248 ac_datarootdir_hack=; ac_datarootdir_seen=
12261 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12262 *datarootdir*) ac_datarootdir_seen=yes;;
12263 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12264 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12265 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12268 ac_datarootdir_hack='
12269 s&@datadir@&$datadir&g
12270 s&@docdir@&$docdir&g
12271 s&@infodir@&$infodir&g
12272 s&@localedir@&$localedir&g
12273 s&@mandir@&$mandir&g
12274 s&\\\${datarootdir}&$datarootdir&g' ;;
12278 # Neutralize VPATH when `$srcdir' = `.'.
12279 # Shell code in configure.ac might set extrasub.
12280 # FIXME: do we really want to maintain this feature?
12281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12282 ac_sed_extra="$ac_vpsub
12285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12287 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12288 s|@configure_input@|$ac_sed_conf_input|;t t
12289 s&@top_builddir@&$ac_top_builddir_sub&;t t
12290 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12291 s&@srcdir@&$ac_srcdir&;t t
12292 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12293 s&@top_srcdir@&$ac_top_srcdir&;t t
12294 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12295 s&@builddir@&$ac_builddir&;t t
12296 s&@abs_builddir@&$ac_abs_builddir&;t t
12297 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12298 s&@INSTALL@&$ac_INSTALL&;t t
12299 $ac_datarootdir_hack
12301 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12302 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12303 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12304 { (exit 1); exit 1; }; }
12306 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12307 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12308 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12309 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12310 which seems to be undefined. Please make sure it is defined." >&5
12311 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12312 which seems to be undefined. Please make sure it is defined." >&2;}
12316 -) cat "$tmp/out" && rm -f "$tmp/out";;
12317 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12319 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12320 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12321 { (exit 1); exit 1; }; }
12327 if test x"$ac_file" != x-; then
12329 $as_echo "/* $configure_input */" \
12330 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12331 } >"$tmp/config.h" \
12332 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12333 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12334 { (exit 1); exit 1; }; }
12335 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12336 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12337 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12340 mv "$tmp/config.h" "$ac_file" \
12341 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12342 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12343 { (exit 1); exit 1; }; }
12346 $as_echo "/* $configure_input */" \
12347 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12348 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
12349 $as_echo "$as_me: error: could not create -" >&2;}
12350 { (exit 1); exit 1; }; }
12358 case $ac_file$ac_mode in
12359 "c-auto.h":H) sed 's/^#define PACKAGE_/#define KPSE_PACKAGE_/' c-auto.h >c-auto.tmp && mv -f c-auto.tmp c-auto.h
12360 date >stamp-auto ;;
12361 "Makefile.aux":F) # Discard the file just generated and first resolve kpse_include's
12362 kpse_input=`case Makefile.in in
12363 [\\/$]*) # Absolute
12364 test -f "Makefile.in" || { { $as_echo "$as_me:$LINENO: error: cannot find input file: Makefile.in" >&5
12365 $as_echo "$as_me: error: cannot find input file: Makefile.in" >&2;}
12366 { (exit 1); exit 1; }; }
12367 echo "Makefile.in";;
12369 if test -f "Makefile.in"; then
12372 elif test -f "$srcdir/Makefile.in"; then
12374 echo "$srcdir/Makefile.in"
12377 { { $as_echo "$as_me:$LINENO: error: cannot find input file: Makefile.in" >&5
12378 $as_echo "$as_me: error: cannot find input file: Makefile.in" >&2;}
12379 { (exit 1); exit 1; }; }
12381 esac` || { (exit 1); exit 1; }
12382 # Replace lines of the form "kpse_include foo" with the contents of foo:
12383 # first, from the kpse_include lines construct a list of file names.
12384 # From that list, we construct a second list of those files that exist.
12385 # Then we construct a list of sed commands for including those files,
12386 # and a sed command that removes the kpse_include lines. We don't attempt
12387 # to read non-existent files because some (buggy) versions of sed choke
12388 # on this. Have to use sed because old (Ultrix, SunOs) awk does not support
12389 # getline or system. (Anyway, configure scripts aren't supposed to use awk.)
12390 # Can't use only one -e and commands {dr foo} because foo has to be last.
12391 # Be careful, because the filename may contain /.
12392 # Be careful with whitespace; we need to use echo.
12393 kpse_file_substs=`sed -n '/^kpse_include/s%[ ]*\(.*\)%\1%p' "$kpse_input"`
12394 if test x"$kpse_file_substs" = x; then
12395 { $as_echo "$as_me:$LINENO: WARNING: No need to use \`KPSE_CONFIG_FILES' for input \`Makefile.in'
12396 without any \`kpse_include' directives" >&5
12397 $as_echo "$as_me: WARNING: No need to use \`KPSE_CONFIG_FILES' for input \`Makefile.in'
12398 without any \`kpse_include' directives" >&2;}
12400 # Create the sed command line ...
12401 # Input lines containing "@configure_input@" are output twice,
12402 # first with our modifications and then unmodified.
12403 kpse_substs="sed -e '/@configure_input@/ { h; \
12404 s,@configure_input@,Makefile.aux. Generated from `echo Makefile.in |
12405 sed 's,.*/,,'` by configure.,; G; }'"
12406 for kpse_inc in $kpse_file_substs; do
12407 kpse_read=`case $kpse_inc in
12408 [\\/$]*) # Absolute
12409 if test -f "$kpse_inc"; then
12413 if test -f "$kpse_inc"; then
12416 elif test -f "$srcdir/$kpse_inc"; then
12418 echo "$srcdir/$kpse_inc"
12421 if test -n "$kpse_read"; then
12422 kpse_mung=`echo $kpse_inc | sed 's,/,%,g'`
12423 kpse_substs="$kpse_substs -e '/^kpse_include $kpse_mung$/r $kpse_read'"
12426 # ... and fix the whitespace and escaped slashes.
12427 kpse_substs=`echo "$kpse_substs" | sed -e 's,%,\\\/,g' \
12428 -e 's/kpse_include /kpse_include[ ]*/g'`
12429 (eval $kpse_substs -e '/^kpse_include/d' "$kpse_input") > Makefile.aux
12436 { (exit 0); exit 0; }
12438 chmod +x $CONFIG_STATUS
12439 ac_clean_files=$ac_clean_files_save
12441 test $ac_write_fail = 0 ||
12442 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
12443 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
12444 { (exit 1); exit 1; }; }
12447 # configure is writing to config.log, and then calls config.status.
12448 # config.status does its own redirection, appending to config.log.
12449 # Unfortunately, on DOS this fails, as config.log is still kept open
12450 # by configure, so config.status won't be able to write to it; its
12451 # output is simply discarded. So we exec the FD to /dev/null,
12452 # effectively closing config.log, so it can be properly (re)opened and
12453 # appended to by config.status. When coming back to configure, we
12454 # need to make the FD available again.
12455 if test "$no_create" != yes; then
12457 ac_config_status_args=
12458 test "$silent" = yes &&
12459 ac_config_status_args="$ac_config_status_args --quiet"
12461 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12463 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12464 # would make configure fail if this is the last instruction.
12465 $ac_cs_success || { (exit 1); exit 1; }
12467 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12468 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
12469 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}