2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for kpathsea 3.5.6dev.
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 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 # Zsh 3.x and 4.x performs 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
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 # Find the correct PATH separator. Usually this is `:', but
555 # DJGPP uses `;' like DOS.
556 if test "X${PATH_SEPARATOR+set}" != Xset; then
557 UNAME=${UNAME-`uname 2>/dev/null`}
559 *-DOS) lt_cv_sys_path_separator=';' ;;
560 *) lt_cv_sys_path_separator=':' ;;
562 PATH_SEPARATOR=$lt_cv_sys_path_separator
566 # Check that we are running under the correct shell.
567 SHELL=${CONFIG_SHELL-/bin/sh}
571 # Remove one level of quotation (which was required for Make).
572 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
577 if test "X$1" = X--no-reexec; then
578 # Discard the --no-reexec flag, and continue.
580 elif test "X$1" = X--fallback-echo; then
581 # Avoid inline document here, it may be left over
583 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
584 # Yippee, $echo works!
587 # Restart under the correct shell.
588 exec $SHELL "$0" --no-reexec ${1+"$@"}
591 if test "X$1" = X--fallback-echo; then
592 # used as fallback echo
600 # The HP-UX ksh and POSIX shell print the target directory to stdout
602 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
604 if test -z "$ECHO"; then
605 if test "X${echo_test_string+set}" != Xset; then
606 # find a string as large as possible, as long as the shell can cope with it
607 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
608 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
609 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
610 echo_test_string="`eval $cmd`" &&
611 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
618 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
619 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
620 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # The Solaris, AIX, and Digital Unix default echo programs unquote
624 # backslashes. This makes it impossible to quote backslashes using
625 # echo "$something" | sed 's/\\/\\\\/g'
627 # So, first we look for a working echo in the user's PATH.
629 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
630 for dir in $PATH /usr/ucb; do
631 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
632 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
641 if test "X$echo" = Xecho; then
642 # We didn't find a better echo, so look for alternatives.
643 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 # This shell has a builtin print -r that does the trick.
648 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
649 test "X$CONFIG_SHELL" != X/bin/ksh; then
650 # If we have ksh, try running configure again with it.
651 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
652 export ORIGINAL_CONFIG_SHELL
653 CONFIG_SHELL=/bin/ksh
655 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
659 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
660 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
661 test "X$echo_testing_string" = "X$echo_test_string"; then
664 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665 test "X$echo_testing_string" = 'X\t' &&
666 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667 test "X$echo_testing_string" = "X$echo_test_string"; then
668 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
670 SHELL="$CONFIG_SHELL"
672 echo="$CONFIG_SHELL $0 --fallback-echo"
673 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 echo="$CONFIG_SHELL $0 --fallback-echo"
679 # maybe with a smaller string...
682 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
683 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
690 if test "$prev" != 'sed 50q "$0"'; then
691 echo_test_string=`eval $prev`
692 export echo_test_string
693 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
695 # Oops. We lost completely, so just stick with echo.
704 # Copy echo and quote the copy suitably for passing to libtool from
705 # the Makefile, instead of quoting the original, which is used later.
707 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
708 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
713 exec 7<&0 </dev/null 6>&1
716 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
717 # so uname gets run too.
718 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
723 ac_default_prefix=/usr/local
725 ac_config_libobj_dir=.
731 SHELL=${CONFIG_SHELL-/bin/sh}
733 # Identity of this package.
734 PACKAGE_NAME='kpathsea'
735 PACKAGE_TARNAME='kpathsea'
736 PACKAGE_VERSION='3.5.6dev'
737 PACKAGE_STRING='kpathsea 3.5.6dev'
738 PACKAGE_BUGREPORT='tex-k@mail.tug.org'
740 ac_unique_file="pathsearch.c"
741 # Factoring default headers for most tests.
742 ac_includes_default="\
744 #ifdef HAVE_SYS_TYPES_H
745 # include <sys/types.h>
747 #ifdef HAVE_SYS_STAT_H
748 # include <sys/stat.h>
754 # ifdef HAVE_STDLIB_H
759 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
764 #ifdef HAVE_STRINGS_H
765 # include <strings.h>
767 #ifdef HAVE_INTTYPES_H
768 # include <inttypes.h>
786 program_transform_name
856 ac_precious_vars='build_alias
867 # Initialize some variables set by options.
869 ac_init_version=false
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
879 program_transform_name=s,x,x,
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 includedir='${prefix}/include'
902 oldincludedir='/usr/include'
903 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
904 infodir='${datarootdir}/info'
909 libdir='${exec_prefix}/lib'
910 localedir='${datarootdir}/locale'
911 mandir='${datarootdir}/man'
917 # If the previous option needs an argument, assign it.
918 if test -n "$ac_prev"; then
919 eval $ac_prev=\$ac_option
925 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929 # Accept the important Cygnus configure options, so we can diagnose typos.
931 case $ac_dashdash$ac_option in
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
953 cache_file=config.cache ;;
955 -datadir | --datadir | --datadi | --datad)
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
967 -disable-* | --disable-*)
968 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
971 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
972 { (exit 1); exit 1; }; }
973 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
974 eval enable_$ac_feature=no ;;
976 -docdir | --docdir | --docdi | --doc | --do)
978 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
981 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
983 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
986 -enable-* | --enable-*)
987 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
990 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
991 { (exit 1); exit 1; }; }
992 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
993 eval enable_$ac_feature=\$ac_optarg ;;
995 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
996 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
997 | --exec | --exe | --ex)
998 ac_prev=exec_prefix ;;
999 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1000 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1001 | --exec=* | --exe=* | --ex=*)
1002 exec_prefix=$ac_optarg ;;
1004 -gas | --gas | --ga | --g)
1005 # Obsolete; use --with-gas.
1008 -help | --help | --hel | --he | -h)
1009 ac_init_help=long ;;
1010 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1011 ac_init_help=recursive ;;
1012 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1013 ac_init_help=short ;;
1015 -host | --host | --hos | --ho)
1016 ac_prev=host_alias ;;
1017 -host=* | --host=* | --hos=* | --ho=*)
1018 host_alias=$ac_optarg ;;
1020 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024 htmldir=$ac_optarg ;;
1026 -includedir | --includedir | --includedi | --included | --include \
1027 | --includ | --inclu | --incl | --inc)
1028 ac_prev=includedir ;;
1029 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1030 | --includ=* | --inclu=* | --incl=* | --inc=*)
1031 includedir=$ac_optarg ;;
1033 -infodir | --infodir | --infodi | --infod | --info | --inf)
1035 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1036 infodir=$ac_optarg ;;
1038 -libdir | --libdir | --libdi | --libd)
1040 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1041 libdir=$ac_optarg ;;
1043 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1044 | --libexe | --libex | --libe)
1045 ac_prev=libexecdir ;;
1046 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1047 | --libexe=* | --libex=* | --libe=*)
1048 libexecdir=$ac_optarg ;;
1050 -localedir | --localedir | --localedi | --localed | --locale)
1051 ac_prev=localedir ;;
1052 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1053 localedir=$ac_optarg ;;
1055 -localstatedir | --localstatedir | --localstatedi | --localstated \
1056 | --localstate | --localstat | --localsta | --localst | --locals)
1057 ac_prev=localstatedir ;;
1058 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1059 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1060 localstatedir=$ac_optarg ;;
1062 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1065 mandir=$ac_optarg ;;
1067 -nfp | --nfp | --nf)
1068 # Obsolete; use --without-fp.
1071 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1072 | --no-cr | --no-c | -n)
1075 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1076 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1079 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1080 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1081 | --oldin | --oldi | --old | --ol | --o)
1082 ac_prev=oldincludedir ;;
1083 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1084 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1085 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1086 oldincludedir=$ac_optarg ;;
1088 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1091 prefix=$ac_optarg ;;
1093 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1094 | --program-pre | --program-pr | --program-p)
1095 ac_prev=program_prefix ;;
1096 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1097 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1098 program_prefix=$ac_optarg ;;
1100 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1101 | --program-suf | --program-su | --program-s)
1102 ac_prev=program_suffix ;;
1103 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1104 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1105 program_suffix=$ac_optarg ;;
1107 -program-transform-name | --program-transform-name \
1108 | --program-transform-nam | --program-transform-na \
1109 | --program-transform-n | --program-transform- \
1110 | --program-transform | --program-transfor \
1111 | --program-transfo | --program-transf \
1112 | --program-trans | --program-tran \
1113 | --progr-tra | --program-tr | --program-t)
1114 ac_prev=program_transform_name ;;
1115 -program-transform-name=* | --program-transform-name=* \
1116 | --program-transform-nam=* | --program-transform-na=* \
1117 | --program-transform-n=* | --program-transform-=* \
1118 | --program-transform=* | --program-transfor=* \
1119 | --program-transfo=* | --program-transf=* \
1120 | --program-trans=* | --program-tran=* \
1121 | --progr-tra=* | --program-tr=* | --program-t=*)
1122 program_transform_name=$ac_optarg ;;
1124 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1127 pdfdir=$ac_optarg ;;
1129 -psdir | --psdir | --psdi | --psd | --ps)
1131 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135 | -silent | --silent | --silen | --sile | --sil)
1138 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1140 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1142 sbindir=$ac_optarg ;;
1144 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1145 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1146 | --sharedst | --shareds | --shared | --share | --shar \
1148 ac_prev=sharedstatedir ;;
1149 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1150 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1151 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1153 sharedstatedir=$ac_optarg ;;
1155 -site | --site | --sit)
1157 -site=* | --site=* | --sit=*)
1160 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1162 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1163 srcdir=$ac_optarg ;;
1165 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1166 | --syscon | --sysco | --sysc | --sys | --sy)
1167 ac_prev=sysconfdir ;;
1168 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1169 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1170 sysconfdir=$ac_optarg ;;
1172 -target | --target | --targe | --targ | --tar | --ta | --t)
1173 ac_prev=target_alias ;;
1174 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1175 target_alias=$ac_optarg ;;
1177 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1180 -version | --version | --versio | --versi | --vers | -V)
1181 ac_init_version=: ;;
1184 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 { echo "$as_me: error: invalid package name: $ac_package" >&2
1188 { (exit 1); exit 1; }; }
1189 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1190 eval with_$ac_package=\$ac_optarg ;;
1192 -without-* | --without-*)
1193 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196 { echo "$as_me: error: invalid package name: $ac_package" >&2
1197 { (exit 1); exit 1; }; }
1198 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1199 eval with_$ac_package=no ;;
1202 # Obsolete; use --with-x.
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210 x_includes=$ac_optarg ;;
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;;
1219 -*) { echo "$as_me: error: unrecognized option: $ac_option
1220 Try \`$0 --help' for more information." >&2
1221 { (exit 1); exit 1; }; }
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1228 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1229 { (exit 1); exit 1; }; }
1230 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;;
1234 # FIXME: should be removed in autoconf 3.0.
1235 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1244 if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246 { echo "$as_me: error: missing argument to $ac_option" >&2
1247 { (exit 1); exit 1; }; }
1250 # Be sure to have absolute directory names.
1251 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252 datadir sysconfdir sharedstatedir localstatedir includedir \
1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254 libdir localedir mandir
1256 eval ac_val=\$$ac_var
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1262 { (exit 1); exit 1; }; }
1265 # There might be people who depend on the old broken behavior: `$host'
1266 # used to hold the argument of --host etc.
1267 # FIXME: To remove some day.
1270 target=$target_alias
1272 # FIXME: To remove some day.
1273 if test "x$host_alias" != x; then
1274 if test "x$build_alias" = x; then
1275 cross_compiling=maybe
1276 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1277 If a cross compiler is detected then cross compile mode will be used." >&2
1278 elif test "x$build_alias" != "x$host_alias"; then
1284 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1286 test "$silent" = yes && exec 6>/dev/null
1289 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1290 ac_ls_di=`ls -di .` &&
1291 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1292 { echo "$as_me: error: Working directory cannot be determined" >&2
1293 { (exit 1); exit 1; }; }
1294 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1295 { echo "$as_me: error: pwd does not report name of working directory" >&2
1296 { (exit 1); exit 1; }; }
1299 # Find the source files, if location was not specified.
1300 if test -z "$srcdir"; then
1301 ac_srcdir_defaulted=yes
1302 # Try the directory containing this script, then the parent directory.
1303 ac_confdir=`$as_dirname -- "$0" ||
1304 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1305 X"$0" : 'X\(//\)[^/]' \| \
1306 X"$0" : 'X\(//\)$' \| \
1307 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1331 ac_srcdir_defaulted=no
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1335 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1336 { (exit 1); exit 1; }; }
1338 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1341 { (exit 1); exit 1; }; }
1343 # When building in place, set srcdir=.
1344 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 # Remove unnecessary trailing slashes from srcdir.
1348 # Double slashes in file names in object file debugging info
1349 # mess up M-x gdb in Emacs.
1351 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353 for ac_var in $ac_precious_vars; do
1354 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355 eval ac_env_${ac_var}_value=\$${ac_var}
1356 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361 # Report the --help message.
1363 if test "$ac_init_help" = "long"; then
1364 # Omit some internal or obsolete options to make the list less imposing.
1365 # This message is too long to be a string in the A/UX 3.1 sh.
1367 \`configure' configures kpathsea 3.5.6dev to adapt to many kinds of systems.
1369 Usage: $0 [OPTION]... [VAR=VALUE]...
1371 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372 VAR=VALUE. See below for descriptions of some of the useful variables.
1374 Defaults for the options are specified in brackets.
1377 -h, --help display this help and exit
1378 --help=short display options specific to this package
1379 --help=recursive display the short help of all the included packages
1380 -V, --version display version information and exit
1381 -q, --quiet, --silent do not print \`checking...' messages
1382 --cache-file=FILE cache test results in FILE [disabled]
1383 -C, --config-cache alias for \`--cache-file=config.cache'
1384 -n, --no-create do not create output files
1385 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1387 Installation directories:
1388 --prefix=PREFIX install architecture-independent files in PREFIX
1389 [$ac_default_prefix]
1390 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1393 By default, \`make install' will install all the files in
1394 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1395 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1396 for instance \`--prefix=\$HOME'.
1398 For better control, use the options below.
1400 Fine tuning of the installation directories:
1401 --bindir=DIR user executables [EPREFIX/bin]
1402 --sbindir=DIR system admin executables [EPREFIX/sbin]
1403 --libexecdir=DIR program executables [EPREFIX/libexec]
1404 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1405 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1406 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1407 --libdir=DIR object code libraries [EPREFIX/lib]
1408 --includedir=DIR C header files [PREFIX/include]
1409 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1410 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1411 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1412 --infodir=DIR info documentation [DATAROOTDIR/info]
1413 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1414 --mandir=DIR man documentation [DATAROOTDIR/man]
1415 --docdir=DIR documentation root [DATAROOTDIR/doc/kpathsea]
1416 --htmldir=DIR html documentation [DOCDIR]
1417 --dvidir=DIR dvi documentation [DOCDIR]
1418 --pdfdir=DIR pdf documentation [DOCDIR]
1419 --psdir=DIR ps documentation [DOCDIR]
1425 --build=BUILD configure for building on BUILD [guessed]
1426 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1430 if test -n "$ac_init_help"; then
1431 case $ac_init_help in
1432 short | recursive ) echo "Configuration of kpathsea 3.5.6dev:";;
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-shared=PKGS build shared libraries default=yes
1440 --enable-static=PKGS build static libraries default=yes
1441 --enable-fast-install=PKGS optimize for fast installation default=yes
1442 --disable-libtool-lock avoid locking (might break parallel builds)
1443 --disable-largefile omit support for large files
1444 --enable-maintainer-mode enable make rules and dependencies not useful
1445 (and sometimes confusing) to the casual installer
1448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1450 --with-gnu-ld assume the C compiler uses GNU ld default=no
1451 --with-pic try to use only PIC/non-PIC objects default=use both
1452 --without-mktexmf-default do not run mktexmf if MF source missing
1453 --without-mktexpk-default do not run mktexpk if PK font missing
1454 --without-mktextfm-default do not run mktextfm if TFM file missing
1455 --without-mkocp-default do not run mkocp if OCP file missing
1456 --without-mkofm-default do not run mkofm if OFM file missing
1457 --with-mktexfmt-default run mktexfmt if format file missing
1458 --with-mktextex-default run mktextex if TeX source missing
1460 Some influential environment variables:
1461 CC C compiler command
1462 CFLAGS C compiler flags
1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1464 nonstandard directory <lib dir>
1465 LIBS libraries to pass to the linker, e.g. -l<library>
1466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1470 Use these variables to override the choices made by `configure' or to help
1471 it to find libraries and programs with nonstandard names/locations.
1473 Report bugs to <tex-k@mail.tug.org>.
1478 if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481 test -d "$ac_dir" || continue
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1488 # A ".." for each directory in $ac_dir_suffix.
1489 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1501 .) # We are building in place.
1503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
1506 ac_srcdir=$srcdir$ac_dir_suffix;
1507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for guested configure.
1518 if test -f "$ac_srcdir/configure.gnu"; then
1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521 elif test -f "$ac_srcdir/configure"; then
1523 $SHELL "$ac_srcdir/configure" --help=recursive
1525 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527 cd "$ac_pwd" || { ac_status=$?; break; }
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1534 kpathsea configure 3.5.6dev
1535 generated by GNU Autoconf 2.61
1537 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1538 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1544 cat >config.log <<_ACEOF
1545 This file contains any messages produced by compilers while
1546 running configure, to aid debugging if configure makes a mistake.
1548 It was created by kpathsea $as_me 3.5.6dev, which was
1549 generated by GNU Autoconf 2.61. Invocation command line was
1561 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1562 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1563 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1564 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1565 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1567 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1568 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1570 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1571 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1572 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1573 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1574 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1575 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1576 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584 test -z "$as_dir" && as_dir=.
1585 echo "PATH: $as_dir"
1601 # Keep a trace of the command line.
1602 # Strip out --no-create and --no-recursion so they do not pile up.
1603 # Strip out --silent because we don't want to record it for future runs.
1604 # Also quote any args containing shell meta-characters.
1605 # Make two passes to allow for proper duplicate-argument suppression.
1609 ac_must_keep_next=false
1615 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1616 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1617 | -silent | --silent | --silen | --sile | --sil)
1620 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1623 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1625 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1626 if test $ac_must_keep_next = true; then
1627 ac_must_keep_next=false # Got value, back to normal.
1630 *=* | --config-cache | -C | -disable-* | --disable-* \
1631 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1632 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1633 | -with-* | --with-* | -without-* | --without-* | --x)
1634 case "$ac_configure_args0 " in
1635 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1638 -* ) ac_must_keep_next=true ;;
1641 ac_configure_args="$ac_configure_args '$ac_arg'"
1646 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1647 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1649 # When interrupted or exit'd, cleanup temporary files, and complete
1650 # config.log. We remove comments because anyway the quotes in there
1651 # would cause problems or look ugly.
1652 # WARNING: Use '\'' to represent an apostrophe within the trap.
1653 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1654 trap 'exit_status=$?
1655 # Save into config.log some information that might help in debugging.
1660 ## ---------------- ##
1661 ## Cache variables. ##
1662 ## ---------------- ##
1665 # The following way of writing the cache mishandles newlines in values,
1667 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1668 eval ac_val=\$$ac_var
1672 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1673 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1676 _ | IFS | as_nl) ;; #(
1677 *) $as_unset $ac_var ;;
1682 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1683 *${as_nl}ac_space=\ *)
1685 "s/'\''/'\''\\\\'\'''\''/g;
1686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1689 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1697 ## ----------------- ##
1698 ## Output variables. ##
1699 ## ----------------- ##
1702 for ac_var in $ac_subst_vars
1704 eval ac_val=\$$ac_var
1706 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1708 echo "$ac_var='\''$ac_val'\''"
1712 if test -n "$ac_subst_files"; then
1714 ## ------------------- ##
1715 ## File substitutions. ##
1716 ## ------------------- ##
1719 for ac_var in $ac_subst_files
1721 eval ac_val=\$$ac_var
1723 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1725 echo "$ac_var='\''$ac_val'\''"
1730 if test -s confdefs.h; then
1740 test "$ac_signal" != 0 &&
1741 echo "$as_me: caught signal $ac_signal"
1742 echo "$as_me: exit $exit_status"
1744 rm -f core *.core core.conftest.* &&
1745 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1748 for ac_signal in 1 2 13 15; do
1749 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1753 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1754 rm -f -r conftest* confdefs.h
1756 # Predefined preprocessor variables.
1758 cat >>confdefs.h <<_ACEOF
1759 #define PACKAGE_NAME "$PACKAGE_NAME"
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_STRING "$PACKAGE_STRING"
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1783 # Let the site file select an alternate cache file if it wants to.
1784 # Prefer explicitly selected file to automatically selected ones.
1785 if test -n "$CONFIG_SITE"; then
1786 set x "$CONFIG_SITE"
1787 elif test "x$prefix" != xNONE; then
1788 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1790 set x "$ac_default_prefix/share/config.site" \
1791 "$ac_default_prefix/etc/config.site"
1796 if test -r "$ac_site_file"; then
1797 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1798 echo "$as_me: loading site script $ac_site_file" >&6;}
1799 sed 's/^/| /' "$ac_site_file" >&5
1804 if test -r "$cache_file"; then
1805 # Some versions of bash will fail to source /dev/null (special
1806 # files actually), so we avoid doing that.
1807 if test -f "$cache_file"; then
1808 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1809 echo "$as_me: loading cache $cache_file" >&6;}
1811 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1812 *) . "./$cache_file";;
1816 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1817 echo "$as_me: creating cache $cache_file" >&6;}
1821 # Check that the precious variables saved in the cache have kept the same
1823 ac_cache_corrupted=false
1824 for ac_var in $ac_precious_vars; do
1825 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1826 eval ac_new_set=\$ac_env_${ac_var}_set
1827 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1828 eval ac_new_val=\$ac_env_${ac_var}_value
1829 case $ac_old_set,$ac_new_set in
1831 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1832 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1833 ac_cache_corrupted=: ;;
1835 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1837 ac_cache_corrupted=: ;;
1840 if test "x$ac_old_val" != "x$ac_new_val"; then
1841 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1842 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1843 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1844 echo "$as_me: former value: $ac_old_val" >&2;}
1845 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1846 echo "$as_me: current value: $ac_new_val" >&2;}
1847 ac_cache_corrupted=:
1850 # Pass precious variables to config.status.
1851 if test "$ac_new_set" = set; then
1853 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1854 *) ac_arg=$ac_var=$ac_new_val ;;
1856 case " $ac_configure_args " in
1857 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1858 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1862 if $ac_cache_corrupted; then
1863 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1864 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1865 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1866 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1867 { (exit 1); exit 1; }; }
1895 ac_cpp='$CPP $CPPFLAGS'
1896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903 KPSEVERSION=3.5.6dev
1905 cat >>confdefs.h <<\_ACEOF
1906 #define KPSEVERSION "kpathsea version 3.5.6dev"
1912 ac_config_headers="$ac_config_headers c-auto.h:c-auto.in"
1917 ac_cpp='$CPP $CPPFLAGS'
1918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1921 if test -n "$ac_tool_prefix"; then
1922 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1923 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1926 if test "${ac_cv_prog_CC+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 if test -n "$CC"; then
1930 ac_cv_prog_CC="$CC" # Let the user override the test.
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 test -z "$as_dir" && as_dir=.
1937 for ac_exec_ext in '' $ac_executable_extensions; do
1938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1939 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950 if test -n "$CC"; then
1951 { echo "$as_me:$LINENO: result: $CC" >&5
1952 echo "${ECHO_T}$CC" >&6; }
1954 { echo "$as_me:$LINENO: result: no" >&5
1955 echo "${ECHO_T}no" >&6; }
1960 if test -z "$ac_cv_prog_CC"; then
1962 # Extract the first word of "gcc", so it can be a program name with args.
1963 set dummy gcc; ac_word=$2
1964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1966 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 if test -n "$ac_ct_CC"; then
1970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 test -z "$as_dir" && as_dir=.
1977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1979 ac_cv_prog_ac_ct_CC="gcc"
1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1990 if test -n "$ac_ct_CC"; then
1991 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1992 echo "${ECHO_T}$ac_ct_CC" >&6; }
1994 { echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6; }
1998 if test "x$ac_ct_CC" = x; then
2001 case $cross_compiling:$ac_tool_warned in
2003 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2004 whose name does not start with the host triplet. If you think this
2005 configuration is useful to you, please write to autoconf@gnu.org." >&5
2006 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2007 whose name does not start with the host triplet. If you think this
2008 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2009 ac_tool_warned=yes ;;
2017 if test -z "$CC"; then
2018 if test -n "$ac_tool_prefix"; then
2019 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2020 set dummy ${ac_tool_prefix}cc; ac_word=$2
2021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2023 if test "${ac_cv_prog_CC+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 if test -n "$CC"; then
2027 ac_cv_prog_CC="$CC" # Let the user override the test.
2029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 test -z "$as_dir" && as_dir=.
2034 for ac_exec_ext in '' $ac_executable_extensions; do
2035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2036 ac_cv_prog_CC="${ac_tool_prefix}cc"
2037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047 if test -n "$CC"; then
2048 { echo "$as_me:$LINENO: result: $CC" >&5
2049 echo "${ECHO_T}$CC" >&6; }
2051 { echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6; }
2058 if test -z "$CC"; then
2059 # Extract the first word of "cc", so it can be a program name with args.
2060 set dummy cc; ac_word=$2
2061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2063 if test "${ac_cv_prog_CC+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 if test -n "$CC"; then
2067 ac_cv_prog_CC="$CC" # Let the user override the test.
2070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 test -z "$as_dir" && as_dir=.
2075 for ac_exec_ext in '' $ac_executable_extensions; do
2076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2077 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2078 ac_prog_rejected=yes
2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089 if test $ac_prog_rejected = yes; then
2090 # We found a bogon in the path, so make sure we never use it.
2091 set dummy $ac_cv_prog_CC
2093 if test $# != 0; then
2094 # We chose a different compiler from the bogus one.
2095 # However, it has the same basename, so the bogon will be chosen
2096 # first if we set CC to just the basename; use the full file name.
2098 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2104 if test -n "$CC"; then
2105 { echo "$as_me:$LINENO: result: $CC" >&5
2106 echo "${ECHO_T}$CC" >&6; }
2108 { echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6; }
2114 if test -z "$CC"; then
2115 if test -n "$ac_tool_prefix"; then
2116 for ac_prog in cl.exe
2118 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2119 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2122 if test "${ac_cv_prog_CC+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 if test -n "$CC"; then
2126 ac_cv_prog_CC="$CC" # Let the user override the test.
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 test -z "$as_dir" && as_dir=.
2133 for ac_exec_ext in '' $ac_executable_extensions; do
2134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2135 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146 if test -n "$CC"; then
2147 { echo "$as_me:$LINENO: result: $CC" >&5
2148 echo "${ECHO_T}$CC" >&6; }
2150 { echo "$as_me:$LINENO: result: no" >&5
2151 echo "${ECHO_T}no" >&6; }
2155 test -n "$CC" && break
2158 if test -z "$CC"; then
2160 for ac_prog in cl.exe
2162 # Extract the first word of "$ac_prog", so it can be a program name with args.
2163 set dummy $ac_prog; ac_word=$2
2164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2166 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 if test -n "$ac_ct_CC"; then
2170 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 test -z "$as_dir" && as_dir=.
2177 for ac_exec_ext in '' $ac_executable_extensions; do
2178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2179 ac_cv_prog_ac_ct_CC="$ac_prog"
2180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2189 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2190 if test -n "$ac_ct_CC"; then
2191 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2192 echo "${ECHO_T}$ac_ct_CC" >&6; }
2194 { echo "$as_me:$LINENO: result: no" >&5
2195 echo "${ECHO_T}no" >&6; }
2199 test -n "$ac_ct_CC" && break
2202 if test "x$ac_ct_CC" = x; then
2205 case $cross_compiling:$ac_tool_warned in
2207 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2208 whose name does not start with the host triplet. If you think this
2209 configuration is useful to you, please write to autoconf@gnu.org." >&5
2210 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2211 whose name does not start with the host triplet. If you think this
2212 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2213 ac_tool_warned=yes ;;
2222 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2223 See \`config.log' for more details." >&5
2224 echo "$as_me: error: no acceptable C compiler found in \$PATH
2225 See \`config.log' for more details." >&2;}
2226 { (exit 1); exit 1; }; }
2228 # Provide some information about the compiler.
2229 echo "$as_me:$LINENO: checking for C compiler version" >&5
2230 ac_compiler=`set X $ac_compile; echo $2`
2231 { (ac_try="$ac_compiler --version >&5"
2233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2234 *) ac_try_echo=$ac_try;;
2236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2237 (eval "$ac_compiler --version >&5") 2>&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }
2241 { (ac_try="$ac_compiler -v >&5"
2243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2244 *) ac_try_echo=$ac_try;;
2246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2247 (eval "$ac_compiler -v >&5") 2>&5
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }
2251 { (ac_try="$ac_compiler -V >&5"
2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254 *) ac_try_echo=$ac_try;;
2256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257 (eval "$ac_compiler -V >&5") 2>&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }
2262 cat >conftest.$ac_ext <<_ACEOF
2265 cat confdefs.h >>conftest.$ac_ext
2266 cat >>conftest.$ac_ext <<_ACEOF
2267 /* end confdefs.h. */
2277 ac_clean_files_save=$ac_clean_files
2278 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2279 # Try to create an executable without -o first, disregard a.out.
2280 # It will help us diagnose broken compilers, and finding out an intuition
2282 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2283 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2284 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2286 # List of possible output files, starting from the most likely.
2287 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2288 # only as a last resort. b.out is created by i960 compilers.
2289 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2291 # The IRIX 6 linker writes into existing files which may not be
2292 # executable, retaining their permissions. Remove them first so a
2293 # subsequent execution test works.
2295 for ac_file in $ac_files
2298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2299 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2304 if { (ac_try="$ac_link_default"
2306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307 *) ac_try_echo=$ac_try;;
2309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2310 (eval "$ac_link_default") 2>&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; then
2314 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2315 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2316 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2317 # so that the user can short-circuit this test for compilers unknown to
2319 for ac_file in $ac_files ''
2321 test -f "$ac_file" || continue
2323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2326 # We found the default executable, but exeext='' is most
2330 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2332 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2334 # We set ac_cv_exeext here because the later test for it is not
2335 # safe: cross compilers may not add the suffix if given an `-o'
2336 # argument, so we may need to know it at that point already.
2337 # Even if this section looks crufty: it has the advantage of
2344 test "$ac_cv_exeext" = no && ac_cv_exeext=
2350 { echo "$as_me:$LINENO: result: $ac_file" >&5
2351 echo "${ECHO_T}$ac_file" >&6; }
2352 if test -z "$ac_file"; then
2353 echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2356 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2357 See \`config.log' for more details." >&5
2358 echo "$as_me: error: C compiler cannot create executables
2359 See \`config.log' for more details." >&2;}
2360 { (exit 77); exit 77; }; }
2363 ac_exeext=$ac_cv_exeext
2365 # Check that the compiler produces executables we can run. If not, either
2366 # the compiler is broken, or we cross compile.
2367 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2368 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2369 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2370 # If not cross compiling, check that we can run a simple program.
2371 if test "$cross_compiling" != yes; then
2372 if { ac_try='./$ac_file'
2373 { (case "(($ac_try" in
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378 (eval "$ac_try") 2>&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; }; then
2384 if test "$cross_compiling" = maybe; then
2387 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2388 If you meant to cross compile, use \`--host'.
2389 See \`config.log' for more details." >&5
2390 echo "$as_me: error: cannot run C compiled programs.
2391 If you meant to cross compile, use \`--host'.
2392 See \`config.log' for more details." >&2;}
2393 { (exit 1); exit 1; }; }
2397 { echo "$as_me:$LINENO: result: yes" >&5
2398 echo "${ECHO_T}yes" >&6; }
2400 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2401 ac_clean_files=$ac_clean_files_save
2402 # Check that the compiler produces executables we can run. If not, either
2403 # the compiler is broken, or we cross compile.
2404 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2405 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2406 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2407 echo "${ECHO_T}$cross_compiling" >&6; }
2409 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2410 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2411 if { (ac_try="$ac_link"
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417 (eval "$ac_link") 2>&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; then
2421 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2422 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2423 # work properly (i.e., refer to `conftest.exe'), while it won't with
2425 for ac_file in conftest.exe conftest conftest.*; do
2426 test -f "$ac_file" || continue
2428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2429 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2435 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2438 See \`config.log' for more details." >&2;}
2439 { (exit 1); exit 1; }; }
2442 rm -f conftest$ac_cv_exeext
2443 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2444 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2446 rm -f conftest.$ac_ext
2447 EXEEXT=$ac_cv_exeext
2449 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2450 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2451 if test "${ac_cv_objext+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2454 cat >conftest.$ac_ext <<_ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2469 rm -f conftest.o conftest.obj
2470 if { (ac_try="$ac_compile"
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_compile") 2>&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; then
2480 for ac_file in conftest.o conftest.obj conftest.*; do
2481 test -f "$ac_file" || continue;
2483 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2484 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2492 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2493 See \`config.log' for more details." >&5
2494 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2495 See \`config.log' for more details." >&2;}
2496 { (exit 1); exit 1; }; }
2499 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2501 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2502 echo "${ECHO_T}$ac_cv_objext" >&6; }
2503 OBJEXT=$ac_cv_objext
2505 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2506 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2507 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 cat >conftest.$ac_ext <<_ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h. */
2528 rm -f conftest.$ac_objext
2529 if { (ac_try="$ac_compile"
2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535 (eval "$ac_compile") 2>conftest.er1
2537 grep -v '^ *+' conftest.er1 >conftest.err
2539 cat conftest.err >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); } && {
2542 test -z "$ac_c_werror_flag" ||
2543 test ! -s conftest.err
2544 } && test -s conftest.$ac_objext; then
2547 echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2557 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2558 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2559 GCC=`test $ac_compiler_gnu = yes && echo yes`
2560 ac_test_CFLAGS=${CFLAGS+set}
2561 ac_save_CFLAGS=$CFLAGS
2562 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2563 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_cc_g+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 ac_save_c_werror_flag=$ac_c_werror_flag
2568 ac_c_werror_flag=yes
2571 cat >conftest.$ac_ext <<_ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2586 rm -f conftest.$ac_objext
2587 if { (ac_try="$ac_compile"
2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590 *) ac_try_echo=$ac_try;;
2592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593 (eval "$ac_compile") 2>conftest.er1
2595 grep -v '^ *+' conftest.er1 >conftest.err
2597 cat conftest.err >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); } && {
2600 test -z "$ac_c_werror_flag" ||
2601 test ! -s conftest.err
2602 } && test -s conftest.$ac_objext; then
2605 echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2609 cat >conftest.$ac_ext <<_ACEOF
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h. */
2624 rm -f conftest.$ac_objext
2625 if { (ac_try="$ac_compile"
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631 (eval "$ac_compile") 2>conftest.er1
2633 grep -v '^ *+' conftest.er1 >conftest.err
2635 cat conftest.err >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } && {
2638 test -z "$ac_c_werror_flag" ||
2639 test ! -s conftest.err
2640 } && test -s conftest.$ac_objext; then
2643 echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2646 ac_c_werror_flag=$ac_save_c_werror_flag
2648 cat >conftest.$ac_ext <<_ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h. */
2663 rm -f conftest.$ac_objext
2664 if { (ac_try="$ac_compile"
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2670 (eval "$ac_compile") 2>conftest.er1
2672 grep -v '^ *+' conftest.er1 >conftest.err
2674 cat conftest.err >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); } && {
2677 test -z "$ac_c_werror_flag" ||
2678 test ! -s conftest.err
2679 } && test -s conftest.$ac_objext; then
2682 echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2695 ac_c_werror_flag=$ac_save_c_werror_flag
2697 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2698 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2699 if test "$ac_test_CFLAGS" = set; then
2700 CFLAGS=$ac_save_CFLAGS
2701 elif test $ac_cv_prog_cc_g = yes; then
2702 if test "$GCC" = yes; then
2708 if test "$GCC" = yes; then
2714 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2715 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2716 if test "${ac_cv_prog_cc_c89+set}" = set; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 ac_cv_prog_cc_c89=no
2721 cat >conftest.$ac_ext <<_ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2729 #include <sys/types.h>
2730 #include <sys/stat.h>
2731 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2732 struct buf { int x; };
2733 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2734 static char *e (p, i)
2740 static char *f (char * (*g) (char **, int), char **p, ...)
2745 s = g (p, va_arg (v,int));
2750 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2751 function prototypes and stuff, but not '\xHH' hex character constants.
2752 These don't provoke an error unfortunately, instead are silently treated
2753 as 'x'. The following induces an error, until -std is added to get
2754 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2755 array size at least. It's necessary to write '\x00'==0 to get something
2756 that's true only with -std. */
2757 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2759 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2760 inside strings and character constants. */
2762 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2764 int test (int i, double x);
2765 struct s1 {int (*f) (int a);};
2766 struct s2 {int (*f) (double a);};
2767 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2773 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2778 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2779 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2781 CC="$ac_save_CC $ac_arg"
2782 rm -f conftest.$ac_objext
2783 if { (ac_try="$ac_compile"
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789 (eval "$ac_compile") 2>conftest.er1
2791 grep -v '^ *+' conftest.er1 >conftest.err
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } && {
2796 test -z "$ac_c_werror_flag" ||
2797 test ! -s conftest.err
2798 } && test -s conftest.$ac_objext; then
2799 ac_cv_prog_cc_c89=$ac_arg
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2807 rm -f core conftest.err conftest.$ac_objext
2808 test "x$ac_cv_prog_cc_c89" != "xno" && break
2810 rm -f conftest.$ac_ext
2815 case "x$ac_cv_prog_cc_c89" in
2817 { echo "$as_me:$LINENO: result: none needed" >&5
2818 echo "${ECHO_T}none needed" >&6; } ;;
2820 { echo "$as_me:$LINENO: result: unsupported" >&5
2821 echo "${ECHO_T}unsupported" >&6; } ;;
2823 CC="$CC $ac_cv_prog_cc_c89"
2824 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2825 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2830 ac_cpp='$CPP $CPPFLAGS'
2831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2837 if test -f "$ac_dir/install-sh"; then
2839 ac_install_sh="$ac_aux_dir/install-sh -c"
2841 elif test -f "$ac_dir/install.sh"; then
2843 ac_install_sh="$ac_aux_dir/install.sh -c"
2845 elif test -f "$ac_dir/shtool"; then
2847 ac_install_sh="$ac_aux_dir/shtool install -c"
2851 if test -z "$ac_aux_dir"; then
2852 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2853 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2854 { (exit 1); exit 1; }; }
2857 # These three variables are undocumented and unsupported,
2858 # and are intended to be withdrawn in a future Autoconf release.
2859 # They can cause serious problems if a builder's source tree is in a directory
2860 # whose full name contains unusual characters.
2861 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2862 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2863 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2866 # Find a good install program. We prefer a C program (faster),
2867 # so one script is as good as another. But avoid the broken or
2868 # incompatible versions:
2869 # SysV /etc/install, /usr/sbin/install
2870 # SunOS /usr/etc/install
2871 # IRIX /sbin/install
2873 # AmigaOS /C/install, which installs bootblocks on floppy discs
2874 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2875 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2876 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2877 # OS/2's system install, which has a completely different semantic
2878 # ./install, which can be erroneously created by make from ./install.sh.
2879 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2880 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2881 if test -z "$INSTALL"; then
2882 if test "${ac_cv_path_install+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir=.
2890 # Account for people who put trailing slashes in PATH elements.
2892 ./ | .// | /cC/* | \
2893 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2894 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2897 # OSF1 and SCO ODT 3.0 have their own names for install.
2898 # Don't use installbsd from OSF since it installs stuff as root
2900 for ac_prog in ginstall scoinst install; do
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2903 if test $ac_prog = install &&
2904 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2905 # AIX install. It has an incompatible calling convention.
2907 elif test $ac_prog = install &&
2908 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2909 # program-specific install script used by HP pwplus--don't use.
2912 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2925 if test "${ac_cv_path_install+set}" = set; then
2926 INSTALL=$ac_cv_path_install
2928 # As a last resort, use the slow shell script. Don't cache a
2929 # value for INSTALL within a source directory, because that will
2930 # break other packages using the cache if that directory is
2931 # removed, or if the value is a relative name.
2932 INSTALL=$ac_install_sh
2935 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2936 echo "${ECHO_T}$INSTALL" >&6; }
2938 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2939 # It thinks the first close brace ends the variable substitution.
2940 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2942 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2944 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2946 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
2947 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2949 if test "$LN_S" = "ln -s"; then
2950 { echo "$as_me:$LINENO: result: yes" >&5
2951 echo "${ECHO_T}yes" >&6; }
2953 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2954 echo "${ECHO_T}no, using $LN_S" >&6; }
2957 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2958 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2959 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2960 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 cat >conftest.make <<\_ACEOF
2966 @echo '@@@%%%=$(MAKE)=@@@%%%'
2968 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2969 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2971 eval ac_cv_prog_make_${ac_make}_set=yes;;
2973 eval ac_cv_prog_make_${ac_make}_set=no;;
2977 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2978 { echo "$as_me:$LINENO: result: yes" >&5
2979 echo "${ECHO_T}yes" >&6; }
2982 { echo "$as_me:$LINENO: result: no" >&5
2983 echo "${ECHO_T}no" >&6; }
2984 SET_MAKE="MAKE=${MAKE-make}"
2988 # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
2989 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001
2990 ## Free Software Foundation, Inc.
2991 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
2993 ## This program is free software; you can redistribute it and/or modify
2994 ## it under the terms of the GNU General Public License as published by
2995 ## the Free Software Foundation; either version 2 of the License, or
2996 ## (at your option) any later version.
2998 ## This program is distributed in the hope that it will be useful, but
2999 ## WITHOUT ANY WARRANTY; without even the implied warranty of
3000 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3001 ## General Public License for more details.
3003 ## You should have received a copy of the GNU General Public License
3004 ## along with this program; if not, write to the Free Software
3005 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3007 ## As a special exception to the GNU General Public License, if you
3008 ## distribute this file as part of a program that contains a
3009 ## configuration script generated by Autoconf, you may include it under
3010 ## the same distribution terms that you use for the rest of that program.
3012 # serial 46 AC_PROG_LIBTOOL
3018 # AC_LIBTOOL_HEADER_ASSERT
3019 # ------------------------
3020 # AC_LIBTOOL_HEADER_ASSERT
3022 # _LT_AC_CHECK_DLFCN
3023 # --------------------
3024 # _LT_AC_CHECK_DLFCN
3026 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3027 # ---------------------------------
3028 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3030 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
3031 # ---------------------------------
3032 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
3034 # _LT_AC_PROG_ECHO_BACKSLASH
3035 # --------------------------
3036 # Add some code to the start of the generated configure script which
3037 # will find an echo command which doesn't interpret backslashes.
3038 # _LT_AC_PROG_ECHO_BACKSLASH
3040 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3041 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3042 # ------------------------------------------------------------------
3043 # _LT_AC_TRY_DLOPEN_SELF
3045 # AC_LIBTOOL_DLOPEN_SELF
3046 # -------------------
3047 # AC_LIBTOOL_DLOPEN_SELF
3049 # _LT_AC_LTCONFIG_HACK
3051 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
3054 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
3057 # AC_ENABLE_SHARED - implement the --enable-shared flag
3058 # Usage: AC_ENABLE_SHARED[(DEFAULT)]
3059 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
3063 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
3066 # AC_ENABLE_STATIC - implement the --enable-static flag
3067 # Usage: AC_ENABLE_STATIC[(DEFAULT)]
3068 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
3072 # AC_DISABLE_STATIC - set the default static flag to --disable-static
3076 # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
3077 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
3078 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
3082 # AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
3085 # AC_LIBTOOL_PICMODE - implement the --with-pic flag
3086 # Usage: AC_LIBTOOL_PICMODE[(MODE)]
3087 # Where MODE is either `yes' or `no'. If omitted, it defaults to
3092 # AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
3096 # AC_PATH_MAGIC - find a file program which can recognise a shared library
3100 # AC_PROG_LD - find the path to the GNU or non-GNU linker
3106 # AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
3107 # -- PORTME Some linkers may need a different reload flag.
3110 # AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
3111 # -- PORTME fill in with the dynamic library characteristics
3115 # AC_PROG_NM - find the path to a BSD-compatible name lister
3118 # AC_CHECK_LIBM - check for math library
3121 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
3122 # the libltdl convenience library and LTDLINCL to the include flags for
3123 # the libltdl header and adds --enable-ltdl-convenience to the
3124 # configure arguments. Note that LIBLTDL and LTDLINCL are not
3125 # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
3126 # provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
3127 # with '${top_builddir}/' and LTDLINCL will be prefixed with
3128 # '${top_srcdir}/' (note the single quotes!). If your package is not
3129 # flat and you're not using automake, define top_builddir and
3130 # top_srcdir appropriately in the Makefiles.
3133 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
3134 # the libltdl installable library and LTDLINCL to the include flags for
3135 # the libltdl header and adds --enable-ltdl-install to the configure
3136 # arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
3137 # AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
3138 # libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
3139 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
3140 # with '${top_srcdir}/' (note the single quotes!). If your package is
3141 # not flat and you're not using automake, define top_builddir and
3142 # top_srcdir appropriately in the Makefiles.
3143 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3155 # This is just to silence aclocal about the macro not being used
3158 ############################################################
3159 # NOTE: This macro has been submitted for inclusion into #
3160 # GNU Autoconf as AC_PROG_SED. When it is available in #
3161 # a released version of Autoconf we should remove this #
3162 # macro and use it instead. #
3163 ############################################################
3166 # Check for a fully-functional sed program, that truncates
3167 # as few characters as possible. Prefer GNU sed if found.
3171 # Check whether --enable-shared was given.
3172 if test "${enable_shared+set}" = set; then
3173 enableval=$enable_shared; p=${PACKAGE-default}
3175 yes) enable_shared=yes ;;
3176 no) enable_shared=no ;;
3179 # Look at the argument we got. We use all the common list separators.
3180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3181 for pkg in $enableval; do
3182 if test "X$pkg" = "X$p"; then
3193 # Check whether --enable-static was given.
3194 if test "${enable_static+set}" = set; then
3195 enableval=$enable_static; p=${PACKAGE-default}
3197 yes) enable_static=yes ;;
3198 no) enable_static=no ;;
3201 # Look at the argument we got. We use all the common list separators.
3202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3203 for pkg in $enableval; do
3204 if test "X$pkg" = "X$p"; then
3215 # Check whether --enable-fast-install was given.
3216 if test "${enable_fast_install+set}" = set; then
3217 enableval=$enable_fast_install; p=${PACKAGE-default}
3219 yes) enable_fast_install=yes ;;
3220 no) enable_fast_install=no ;;
3222 enable_fast_install=no
3223 # Look at the argument we got. We use all the common list separators.
3224 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3225 for pkg in $enableval; do
3226 if test "X$pkg" = "X$p"; then
3227 enable_fast_install=yes
3234 enable_fast_install=yes
3237 # Make sure we can run config.sub.
3238 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3239 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3240 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3241 { (exit 1); exit 1; }; }
3243 { echo "$as_me:$LINENO: checking build system type" >&5
3244 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3245 if test "${ac_cv_build+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 ac_build_alias=$build_alias
3249 test "x$ac_build_alias" = x &&
3250 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3251 test "x$ac_build_alias" = x &&
3252 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3253 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3254 { (exit 1); exit 1; }; }
3255 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3256 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3257 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3258 { (exit 1); exit 1; }; }
3261 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3262 echo "${ECHO_T}$ac_cv_build" >&6; }
3263 case $ac_cv_build in
3265 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3266 echo "$as_me: error: invalid value of canonical build" >&2;}
3267 { (exit 1); exit 1; }; };;
3270 ac_save_IFS=$IFS; IFS='-'
3276 # Remember, the first character of IFS is used to create $*,
3277 # except with old shells:
3280 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3283 { echo "$as_me:$LINENO: checking host system type" >&5
3284 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3285 if test "${ac_cv_host+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 if test "x$host_alias" = x; then
3289 ac_cv_host=$ac_cv_build
3291 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3292 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3293 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3294 { (exit 1); exit 1; }; }
3298 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3299 echo "${ECHO_T}$ac_cv_host" >&6; }
3302 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3303 echo "$as_me: error: invalid value of canonical host" >&2;}
3304 { (exit 1); exit 1; }; };;
3307 ac_save_IFS=$IFS; IFS='-'
3313 # Remember, the first character of IFS is used to create $*,
3314 # except with old shells:
3317 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3320 # Find the correct PATH separator. Usually this is `:', but
3321 # DJGPP uses `;' like DOS.
3322 if test "X${PATH_SEPARATOR+set}" != Xset; then
3323 UNAME=${UNAME-`uname 2>/dev/null`}
3325 *-DOS) lt_cv_sys_path_separator=';' ;;
3326 *) lt_cv_sys_path_separator=':' ;;
3328 PATH_SEPARATOR=$lt_cv_sys_path_separator
3332 # Check whether --with-gnu-ld was given.
3333 if test "${with_gnu_ld+set}" = set; then
3334 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3340 if test "$GCC" = yes; then
3341 # Check if gcc -print-prog-name=ld gives a path.
3342 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3343 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
3346 # gcc leaves a trailing carriage return which upsets mingw
3347 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3349 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3352 # Accept absolute paths.
3353 [\\/]* | [A-Za-z]:[\\/]*)
3354 re_direlt='/[^/][^/]*/\.\./'
3355 # Canonicalize the path of ld
3356 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3357 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3358 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3360 test -z "$LD" && LD="$ac_prog"
3363 # If it fails, then pretend we aren't using GCC.
3367 # If it is relative, then search for the first ld in PATH.
3371 elif test "$with_gnu_ld" = yes; then
3372 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3373 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3375 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3376 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3378 if test "${lt_cv_path_LD+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 if test -z "$LD"; then
3382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3383 for ac_dir in $PATH; do
3384 test -z "$ac_dir" && ac_dir=.
3385 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3386 lt_cv_path_LD="$ac_dir/$ac_prog"
3387 # Check to see if the program is GNU ld. I'd rather use --version,
3388 # but apparently some GNU ld's only accept -v.
3389 # Break only if it was the GNU/non-GNU ld that we prefer.
3390 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3391 test "$with_gnu_ld" != no && break
3393 test "$with_gnu_ld" != yes && break
3399 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3404 if test -n "$LD"; then
3405 { echo "$as_me:$LINENO: result: $LD" >&5
3406 echo "${ECHO_T}$LD" >&6; }
3408 { echo "$as_me:$LINENO: result: no" >&5
3409 echo "${ECHO_T}no" >&6; }
3411 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3412 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3413 { (exit 1); exit 1; }; }
3414 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3415 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3416 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3419 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3420 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3421 lt_cv_prog_gnu_ld=yes
3423 lt_cv_prog_gnu_ld=no
3426 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3427 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3428 with_gnu_ld=$lt_cv_prog_gnu_ld
3431 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3432 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3433 if test "${lt_cv_ld_reload_flag+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 lt_cv_ld_reload_flag='-r'
3438 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3439 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3440 reload_flag=$lt_cv_ld_reload_flag
3441 test -n "$reload_flag" && reload_flag=" $reload_flag"
3443 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3444 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3445 if test "${lt_cv_path_NM+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 if test -n "$NM"; then
3449 # Let the user override the test.
3452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3453 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3454 test -z "$ac_dir" && ac_dir=.
3455 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3456 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3457 # Check to see if the nm accepts a BSD-compat flag.
3458 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3459 # nm: unknown option "B" ignored
3460 # Tru64's nm complains that /dev/null is an invalid object file
3461 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3462 lt_cv_path_NM="$tmp_nm -B"
3464 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3465 lt_cv_path_NM="$tmp_nm -p"
3468 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3469 continue # so that we can try to find one that supports BSD flags
3474 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3479 { echo "$as_me:$LINENO: result: $NM" >&5
3480 echo "${ECHO_T}$NM" >&6; }
3482 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3483 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3484 if test "${lt_cv_path_SED+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 # Loop through the user's path and test for sed and gsed.
3488 # Then use that list of sed's as ones to test for truncation.
3489 as_executable_p="test -f"
3490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494 test -z "$as_dir" && as_dir=.
3495 for ac_prog in sed gsed; do
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3498 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3504 # Create a temporary directory, and hook for its removal unless debugging.
3507 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3508 trap '{ (exit 1); exit 1; }' 1 2 13 15
3511 # Create a (secure) tmp directory for tmp files.
3514 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3515 test -n "$tmp" && test -d "$tmp"
3518 tmp=$TMPDIR/sed$$-$RANDOM
3519 (umask 077 && mkdir $tmp)
3522 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3523 { (exit 1); exit 1; }
3527 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3528 # along with /bin/sed that truncates output.
3529 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3530 test ! -f ${_sed} && break
3531 cat /dev/null > "$tmp/sed.in"
3533 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3534 # Check for GNU sed and select it if it is found.
3535 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3536 lt_cv_path_SED=${_sed}
3540 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3541 mv "$tmp/sed.tmp" "$tmp/sed.in"
3542 cp "$tmp/sed.in" "$tmp/sed.nl"
3543 echo >>"$tmp/sed.nl"
3544 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3545 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3546 # 40000 chars as input seems more than enough
3547 test $_count -gt 10 && break
3548 _count=`expr $_count + 1`
3549 if test $_count -gt $_max; then
3551 lt_cv_path_SED=$_sed
3559 if test "X$SED" != "X"; then
3564 { echo "$as_me:$LINENO: result: $SED" >&5
3565 echo "${ECHO_T}$SED" >&6; }
3567 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3568 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
3569 if test "${lt_cv_deplibs_check_method+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 lt_cv_file_magic_cmd='$MAGIC_CMD'
3573 lt_cv_file_magic_test_file=
3574 lt_cv_deplibs_check_method='unknown'
3575 # Need to set the preceding variable on all platforms that support
3576 # interlibrary dependencies.
3577 # 'none' -- dependencies not supported.
3578 # `unknown' -- same as none, but documents that we really don't know.
3579 # 'pass_all' -- all dependencies passed with no checks.
3580 # 'test_compile' -- check by making test program.
3581 # 'file_magic [[regex]]' -- check by looking for files in library path
3582 # which responds to the $file_magic_cmd with a given egrep regex.
3583 # If you have `file' or equivalent on your system and you're not sure
3584 # whether `pass_all' will *always* work, you probably want this one.
3588 lt_cv_deplibs_check_method=pass_all
3592 lt_cv_deplibs_check_method=pass_all
3596 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3597 lt_cv_file_magic_cmd='/usr/bin/file -L'
3598 lt_cv_file_magic_test_file=/shlib/libc.so
3601 cygwin* | mingw* | pw32*)
3602 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3603 lt_cv_file_magic_cmd='$OBJDUMP -f'
3606 darwin* | rhapsody*)
3607 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3608 lt_cv_file_magic_cmd='/usr/bin/file -L'
3610 rhapsody* | darwin1.[012])
3611 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3614 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3619 freebsd* | kfreebsd*-gnu)
3620 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3623 # Not sure whether the presence of OpenBSD here was a mistake.
3624 # Let's accept both of them until this is cleared up.
3625 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3626 lt_cv_file_magic_cmd=/usr/bin/file
3627 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3631 lt_cv_deplibs_check_method=pass_all
3636 lt_cv_deplibs_check_method=pass_all
3640 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3641 lt_cv_file_magic_cmd=/usr/bin/file
3642 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3645 irix5* | irix6* | nonstopux*)
3647 irix5* | nonstopux*)
3648 # this will be overridden with pass_all, but let us keep it just in case
3649 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3653 *-32|*"-32 ") libmagic=32-bit;;
3654 *-n32|*"-n32 ") libmagic=N32;;
3655 *-64|*"-64 ") libmagic=64-bit;;
3656 *) libmagic=never-match;;
3658 # this will be overridden with pass_all, but let us keep it just in case
3659 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3662 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3663 lt_cv_deplibs_check_method=pass_all
3666 # This must be Linux ELF.
3669 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3670 lt_cv_deplibs_check_method=pass_all ;;
3672 # glibc up to 2.1.1 does not perform some relocations on ARM
3673 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3675 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3679 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3680 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3682 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3687 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3688 lt_cv_file_magic_cmd=/usr/bin/file
3689 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3693 lt_cv_file_magic_cmd=/usr/bin/file
3694 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3695 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3696 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3698 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3702 osf3* | osf4* | osf5*)
3703 # this will be overridden with pass_all, but let us keep it just in case
3704 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3705 lt_cv_file_magic_test_file=/shlib/libc.so
3706 lt_cv_deplibs_check_method=pass_all
3710 lt_cv_deplibs_check_method=pass_all
3714 lt_cv_deplibs_check_method=pass_all
3715 lt_cv_file_magic_test_file=/lib/libc.so
3718 sysv5uw[78]* | sysv4*uw2*)
3719 lt_cv_deplibs_check_method=pass_all
3722 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3723 case $host_vendor in
3725 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]'
3726 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3729 lt_cv_deplibs_check_method=pass_all
3732 lt_cv_file_magic_cmd='/bin/file'
3733 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3736 lt_cv_file_magic_cmd='/bin/file'
3737 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3738 lt_cv_file_magic_test_file=/lib/libc.so
3741 lt_cv_deplibs_check_method=pass_all
3748 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3749 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3750 file_magic_cmd=$lt_cv_file_magic_cmd
3751 deplibs_check_method=$lt_cv_deplibs_check_method
3760 # Check for command to grab the raw symbol name followed by C symbol from nm.
3761 { echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3762 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6; }
3763 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 # These are sane defaults that work on at least a few old systems.
3768 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3770 # Character class describing NM global symbol codes.
3771 symcode='[BCDEGRST]'
3773 # Regexp to match symbols that can be accessed directly from C.
3774 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3776 # Transform the above into a raw symbol and a C symbol.
3777 symxfrm='\1 \2\3 \3'
3779 # Transform an extracted symbol line into a proper C declaration
3780 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3782 # Transform an extracted symbol line into symbol name and symbol address
3783 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'"
3785 # Define system-specific variables.
3790 cygwin* | mingw* | pw32*)
3791 symcode='[ABCDGISTW]'
3793 hpux*) # Its linker distinguishes data from code symbols
3794 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3795 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'"
3798 symcode='[BCDEGRST]'
3801 symcode='[BCDEGQRST]'
3811 # Handle CRLF in mingw tool chain
3815 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3819 # If we're using GNU nm, then use its standard symbol codes.
3820 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3821 symcode='[ABCDGISTW]'
3824 # Try without a prefix undercore, then with it.
3825 for ac_symprfx in "" "_"; do
3827 # Write the raw and C identifiers.
3828 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3830 # Check to see that the pipe works correctly.
3833 cat > conftest.$ac_ext <<EOF
3838 void nm_test_func(){}
3842 int main(){nm_test_var='a';nm_test_func();return(0);}
3845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846 (eval $ac_compile) 2>&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; then
3850 # Now try to grab the symbols.
3852 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3853 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } && test -s "$nlist"; then
3857 # Try sorting and uniquifying the output.
3858 if sort "$nlist" | uniq > "$nlist"T; then
3859 mv -f "$nlist"T "$nlist"
3864 # Make sure that we snagged all the symbols we need.
3865 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3866 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3867 cat <<EOF > conftest.$ac_ext
3873 # Now generate the symbol file.
3874 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3876 cat <<EOF >> conftest.$ac_ext
3877 #if defined (__STDC__) && __STDC__
3878 # define lt_ptr void *
3880 # define lt_ptr char *
3884 /* The mapping between symbol names and symbols. */
3889 lt_preloaded_symbols[] =
3892 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3893 cat <<\EOF >> conftest.$ac_ext
3901 # Now try linking the two files.
3902 mv conftest.$ac_objext conftstm.$ac_objext
3904 save_CFLAGS="$CFLAGS"
3905 LIBS="conftstm.$ac_objext"
3906 CFLAGS="$CFLAGS$no_builtin_flag"
3907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3908 (eval $ac_link) 2>&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } && test -s conftest$ac_exeext; then
3915 CFLAGS="$save_CFLAGS"
3917 echo "cannot find nm_test_func in $nlist" >&5
3920 echo "cannot find nm_test_var in $nlist" >&5
3923 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3926 echo "$progname: failed program was:" >&5
3927 cat conftest.$ac_ext >&5
3929 rm -f conftest* conftst*
3931 # Do not use the global_symbol_pipe unless it works.
3932 if test "$pipe_works" = yes; then
3935 lt_cv_sys_global_symbol_pipe=
3941 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3942 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3943 global_symbol_to_cdecl=
3944 global_symbol_to_c_name_address=
3946 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3947 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3949 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3951 { echo "$as_me:$LINENO: result: failed" >&5
3952 echo "${ECHO_T}failed" >&6; }
3954 { echo "$as_me:$LINENO: result: ok" >&5
3955 echo "${ECHO_T}ok" >&6; }
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3964 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3965 # On Suns, sometimes $CPP names a directory.
3966 if test -n "$CPP" && test -d "$CPP"; then
3969 if test -z "$CPP"; then
3970 if test "${ac_cv_prog_CPP+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 # Double quotes because CPP needs to be expanded
3974 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3977 for ac_c_preproc_warn_flag in '' yes
3979 # Use a header file that comes with gcc, so configuring glibc
3980 # with a fresh cross-compiler works.
3981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3982 # <limits.h> exists even on freestanding compilers.
3983 # On the NeXT, cc -E runs the code through the compiler's parser,
3984 # not just through cpp. "Syntax error" is here to catch this case.
3985 cat >conftest.$ac_ext <<_ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h. */
3992 # include <limits.h>
3994 # include <assert.h>
3998 if { (ac_try="$ac_cpp conftest.$ac_ext"
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4006 grep -v '^ *+' conftest.er1 >conftest.err
4008 cat conftest.err >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } >/dev/null && {
4011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4012 test ! -s conftest.err
4016 echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4019 # Broken: fails on valid input.
4023 rm -f conftest.err conftest.$ac_ext
4025 # OK, works on sane cases. Now check whether nonexistent headers
4026 # can be detected and how.
4027 cat >conftest.$ac_ext <<_ACEOF
4030 cat confdefs.h >>conftest.$ac_ext
4031 cat >>conftest.$ac_ext <<_ACEOF
4032 /* end confdefs.h. */
4033 #include <ac_nonexistent.h>
4035 if { (ac_try="$ac_cpp conftest.$ac_ext"
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4043 grep -v '^ *+' conftest.er1 >conftest.err
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } >/dev/null && {
4048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4049 test ! -s conftest.err
4051 # Broken: success on invalid input.
4054 echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4057 # Passes both tests.
4062 rm -f conftest.err conftest.$ac_ext
4065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4066 rm -f conftest.err conftest.$ac_ext
4067 if $ac_preproc_ok; then
4079 { echo "$as_me:$LINENO: result: $CPP" >&5
4080 echo "${ECHO_T}$CPP" >&6; }
4082 for ac_c_preproc_warn_flag in '' yes
4084 # Use a header file that comes with gcc, so configuring glibc
4085 # with a fresh cross-compiler works.
4086 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4087 # <limits.h> exists even on freestanding compilers.
4088 # On the NeXT, cc -E runs the code through the compiler's parser,
4089 # not just through cpp. "Syntax error" is here to catch this case.
4090 cat >conftest.$ac_ext <<_ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h. */
4097 # include <limits.h>
4099 # include <assert.h>
4103 if { (ac_try="$ac_cpp conftest.$ac_ext"
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4111 grep -v '^ *+' conftest.er1 >conftest.err
4113 cat conftest.err >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } >/dev/null && {
4116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4117 test ! -s conftest.err
4121 echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4124 # Broken: fails on valid input.
4128 rm -f conftest.err conftest.$ac_ext
4130 # OK, works on sane cases. Now check whether nonexistent headers
4131 # can be detected and how.
4132 cat >conftest.$ac_ext <<_ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4138 #include <ac_nonexistent.h>
4140 if { (ac_try="$ac_cpp conftest.$ac_ext"
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4148 grep -v '^ *+' conftest.er1 >conftest.err
4150 cat conftest.err >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } >/dev/null && {
4153 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4154 test ! -s conftest.err
4156 # Broken: success on invalid input.
4159 echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4162 # Passes both tests.
4167 rm -f conftest.err conftest.$ac_ext
4170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4171 rm -f conftest.err conftest.$ac_ext
4172 if $ac_preproc_ok; then
4175 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4176 See \`config.log' for more details." >&5
4177 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4178 See \`config.log' for more details." >&2;}
4179 { (exit 1); exit 1; }; }
4183 ac_cpp='$CPP $CPPFLAGS'
4184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4190 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4191 if test "${ac_cv_path_GREP+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 # Extract the first word of "grep ggrep" to use in msg output
4195 if test -z "$GREP"; then
4196 set dummy grep ggrep; ac_prog_name=$2
4197 if test "${ac_cv_path_GREP+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 ac_path_GREP_found=false
4201 # Loop through the user's path and test for each of PROGNAME-LIST
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4206 test -z "$as_dir" && as_dir=.
4207 for ac_prog in grep ggrep; do
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4210 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4211 # Check for GNU ac_path_GREP and select it if it is found.
4212 # Check for GNU $ac_path_GREP
4213 case `"$ac_path_GREP" --version 2>&1` in
4215 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4218 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4221 cat "conftest.in" "conftest.in" >"conftest.tmp"
4222 mv "conftest.tmp" "conftest.in"
4223 cp "conftest.in" "conftest.nl"
4224 echo 'GREP' >> "conftest.nl"
4225 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4226 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4227 ac_count=`expr $ac_count + 1`
4228 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4229 # Best one so far, save it but keep looking for a better one
4230 ac_cv_path_GREP="$ac_path_GREP"
4231 ac_path_GREP_max=$ac_count
4233 # 10*(2^10) chars as input seems more than enough
4234 test $ac_count -gt 10 && break
4236 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4240 $ac_path_GREP_found && break 3
4250 GREP="$ac_cv_path_GREP"
4251 if test -z "$GREP"; then
4252 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4253 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4254 { (exit 1); exit 1; }; }
4258 ac_cv_path_GREP=$GREP
4263 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4264 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4265 GREP="$ac_cv_path_GREP"
4268 { echo "$as_me:$LINENO: checking for egrep" >&5
4269 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4270 if test "${ac_cv_path_EGREP+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4274 then ac_cv_path_EGREP="$GREP -E"
4276 # Extract the first word of "egrep" to use in msg output
4277 if test -z "$EGREP"; then
4278 set dummy egrep; ac_prog_name=$2
4279 if test "${ac_cv_path_EGREP+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4282 ac_path_EGREP_found=false
4283 # Loop through the user's path and test for each of PROGNAME-LIST
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4288 test -z "$as_dir" && as_dir=.
4289 for ac_prog in egrep; do
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4292 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4293 # Check for GNU ac_path_EGREP and select it if it is found.
4294 # Check for GNU $ac_path_EGREP
4295 case `"$ac_path_EGREP" --version 2>&1` in
4297 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4300 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4303 cat "conftest.in" "conftest.in" >"conftest.tmp"
4304 mv "conftest.tmp" "conftest.in"
4305 cp "conftest.in" "conftest.nl"
4306 echo 'EGREP' >> "conftest.nl"
4307 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4309 ac_count=`expr $ac_count + 1`
4310 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4311 # Best one so far, save it but keep looking for a better one
4312 ac_cv_path_EGREP="$ac_path_EGREP"
4313 ac_path_EGREP_max=$ac_count
4315 # 10*(2^10) chars as input seems more than enough
4316 test $ac_count -gt 10 && break
4318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4322 $ac_path_EGREP_found && break 3
4332 EGREP="$ac_cv_path_EGREP"
4333 if test -z "$EGREP"; then
4334 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4335 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4336 { (exit 1); exit 1; }; }
4340 ac_cv_path_EGREP=$EGREP
4346 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4347 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4348 EGREP="$ac_cv_path_EGREP"
4351 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4352 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4353 if test "${ac_cv_header_stdc+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 cat >conftest.$ac_ext <<_ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4375 rm -f conftest.$ac_objext
4376 if { (ac_try="$ac_compile"
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382 (eval "$ac_compile") 2>conftest.er1
4384 grep -v '^ *+' conftest.er1 >conftest.err
4386 cat conftest.err >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } && {
4389 test -z "$ac_c_werror_flag" ||
4390 test ! -s conftest.err
4391 } && test -s conftest.$ac_objext; then
4392 ac_cv_header_stdc=yes
4394 echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4397 ac_cv_header_stdc=no
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402 if test $ac_cv_header_stdc = yes; then
4403 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4404 cat >conftest.$ac_ext <<_ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4414 $EGREP "memchr" >/dev/null 2>&1; then
4417 ac_cv_header_stdc=no
4423 if test $ac_cv_header_stdc = yes; then
4424 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4425 cat >conftest.$ac_ext <<_ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4435 $EGREP "free" >/dev/null 2>&1; then
4438 ac_cv_header_stdc=no
4444 if test $ac_cv_header_stdc = yes; then
4445 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4446 if test "$cross_compiling" = yes; then
4449 cat >conftest.$ac_ext <<_ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4457 #if ((' ' & 0x0FF) == 0x020)
4458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4461 # define ISLOWER(c) \
4462 (('a' <= (c) && (c) <= 'i') \
4463 || ('j' <= (c) && (c) <= 'r') \
4464 || ('s' <= (c) && (c) <= 'z'))
4465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4473 for (i = 0; i < 256; i++)
4474 if (XOR (islower (i), ISLOWER (i))
4475 || toupper (i) != TOUPPER (i))
4480 rm -f conftest$ac_exeext
4481 if { (ac_try="$ac_link"
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4487 (eval "$ac_link") 2>&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4491 { (case "(($ac_try" in
4492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4496 (eval "$ac_try") 2>&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; }; then
4502 echo "$as_me: program exited with status $ac_status" >&5
4503 echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4507 ac_cv_header_stdc=no
4509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4515 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4516 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4517 if test $ac_cv_header_stdc = yes; then
4519 cat >>confdefs.h <<\_ACEOF
4520 #define STDC_HEADERS 1
4525 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4535 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4536 inttypes.h stdint.h unistd.h
4538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 cat >conftest.$ac_ext <<_ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4550 $ac_includes_default
4552 #include <$ac_header>
4554 rm -f conftest.$ac_objext
4555 if { (ac_try="$ac_compile"
4557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4561 (eval "$ac_compile") 2>conftest.er1
4563 grep -v '^ *+' conftest.er1 >conftest.err
4565 cat conftest.err >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } && {
4568 test -z "$ac_c_werror_flag" ||
4569 test ! -s conftest.err
4570 } && test -s conftest.$ac_objext; then
4571 eval "$as_ac_Header=yes"
4573 echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.$ac_ext >&5
4576 eval "$as_ac_Header=no"
4579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581 ac_res=`eval echo '${'$as_ac_Header'}'`
4582 { echo "$as_me:$LINENO: result: $ac_res" >&5
4583 echo "${ECHO_T}$ac_res" >&6; }
4584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4585 cat >>confdefs.h <<_ACEOF
4586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4595 for ac_header in dlfcn.h
4597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 ac_res=`eval echo '${'$as_ac_Header'}'`
4605 { echo "$as_me:$LINENO: result: $ac_res" >&5
4606 echo "${ECHO_T}$ac_res" >&6; }
4608 # Is the header compilable?
4609 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4610 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4611 cat >conftest.$ac_ext <<_ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4617 $ac_includes_default
4618 #include <$ac_header>
4620 rm -f conftest.$ac_objext
4621 if { (ac_try="$ac_compile"
4623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624 *) ac_try_echo=$ac_try;;
4626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4627 (eval "$ac_compile") 2>conftest.er1
4629 grep -v '^ *+' conftest.er1 >conftest.err
4631 cat conftest.err >&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } && {
4634 test -z "$ac_c_werror_flag" ||
4635 test ! -s conftest.err
4636 } && test -s conftest.$ac_objext; then
4637 ac_header_compiler=yes
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4642 ac_header_compiler=no
4645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4646 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4647 echo "${ECHO_T}$ac_header_compiler" >&6; }
4649 # Is the header present?
4650 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4652 cat >conftest.$ac_ext <<_ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4658 #include <$ac_header>
4660 if { (ac_try="$ac_cpp conftest.$ac_ext"
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4668 grep -v '^ *+' conftest.er1 >conftest.err
4670 cat conftest.err >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } >/dev/null && {
4673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4674 test ! -s conftest.err
4676 ac_header_preproc=yes
4678 echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4681 ac_header_preproc=no
4684 rm -f conftest.err conftest.$ac_ext
4685 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4686 echo "${ECHO_T}$ac_header_preproc" >&6; }
4688 # So? What about this header?
4689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4694 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4695 ac_header_preproc=yes
4698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4701 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4703 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4705 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4709 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4711 ## --------------------------------- ##
4712 ## Report this to tex-k@mail.tug.org ##
4713 ## --------------------------------- ##
4715 ) | sed "s/^/$as_me: WARNING: /" >&2
4718 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 eval "$as_ac_Header=\$ac_header_preproc"
4725 ac_res=`eval echo '${'$as_ac_Header'}'`
4726 { echo "$as_me:$LINENO: result: $ac_res" >&5
4727 echo "${ECHO_T}$ac_res" >&6; }
4730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4731 cat >>confdefs.h <<_ACEOF
4732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4744 # Only perform the check for file, if the check method requires it
4745 case $deplibs_check_method in
4747 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4748 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4749 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
4750 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4755 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4758 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4761 ac_save_MAGIC_CMD="$MAGIC_CMD"
4762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4763 ac_dummy="/usr/bin:$PATH"
4764 for ac_dir in $ac_dummy; do
4765 test -z "$ac_dir" && ac_dir=.
4766 if test -f $ac_dir/${ac_tool_prefix}file; then
4767 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4768 if test -n "$file_magic_test_file"; then
4769 case $deplibs_check_method in
4771 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4773 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4774 egrep "$file_magic_regex" > /dev/null; then
4779 *** Warning: the command libtool uses to detect shared libraries,
4780 *** $file_magic_cmd, produces output that libtool cannot recognize.
4781 *** The result is that libtool may fail to recognize shared libraries
4782 *** as such. This will affect the creation of libtool libraries that
4783 *** depend on shared libraries, but programs linked with such libtool
4784 *** libraries will work regardless of this problem. Nevertheless, you
4785 *** may want to report the problem to your system manager and/or to
4786 *** bug-libtool@gnu.org
4796 MAGIC_CMD="$ac_save_MAGIC_CMD"
4801 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4802 if test -n "$MAGIC_CMD"; then
4803 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4804 echo "${ECHO_T}$MAGIC_CMD" >&6; }
4806 { echo "$as_me:$LINENO: result: no" >&5
4807 echo "${ECHO_T}no" >&6; }
4810 if test -z "$lt_cv_path_MAGIC_CMD"; then
4811 if test -n "$ac_tool_prefix"; then
4812 { echo "$as_me:$LINENO: checking for file" >&5
4813 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
4814 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4822 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4825 ac_save_MAGIC_CMD="$MAGIC_CMD"
4826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4827 ac_dummy="/usr/bin:$PATH"
4828 for ac_dir in $ac_dummy; do
4829 test -z "$ac_dir" && ac_dir=.
4830 if test -f $ac_dir/file; then
4831 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4832 if test -n "$file_magic_test_file"; then
4833 case $deplibs_check_method in
4835 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4836 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4837 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4838 egrep "$file_magic_regex" > /dev/null; then
4843 *** Warning: the command libtool uses to detect shared libraries,
4844 *** $file_magic_cmd, produces output that libtool cannot recognize.
4845 *** The result is that libtool may fail to recognize shared libraries
4846 *** as such. This will affect the creation of libtool libraries that
4847 *** depend on shared libraries, but programs linked with such libtool
4848 *** libraries will work regardless of this problem. Nevertheless, you
4849 *** may want to report the problem to your system manager and/or to
4850 *** bug-libtool@gnu.org
4860 MAGIC_CMD="$ac_save_MAGIC_CMD"
4865 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4866 if test -n "$MAGIC_CMD"; then
4867 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4868 echo "${ECHO_T}$MAGIC_CMD" >&6; }
4870 { echo "$as_me:$LINENO: result: no" >&5
4871 echo "${ECHO_T}no" >&6; }
4883 if test -n "$ac_tool_prefix"; then
4884 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4885 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4888 if test "${ac_cv_prog_RANLIB+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 if test -n "$RANLIB"; then
4892 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4901 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 RANLIB=$ac_cv_prog_RANLIB
4912 if test -n "$RANLIB"; then
4913 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4914 echo "${ECHO_T}$RANLIB" >&6; }
4916 { echo "$as_me:$LINENO: result: no" >&5
4917 echo "${ECHO_T}no" >&6; }
4922 if test -z "$ac_cv_prog_RANLIB"; then
4923 ac_ct_RANLIB=$RANLIB
4924 # Extract the first word of "ranlib", so it can be a program name with args.
4925 set dummy ranlib; ac_word=$2
4926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4928 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 if test -n "$ac_ct_RANLIB"; then
4932 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_prog_ac_ct_RANLIB="ranlib"
4942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4952 if test -n "$ac_ct_RANLIB"; then
4953 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4954 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4956 { echo "$as_me:$LINENO: result: no" >&5
4957 echo "${ECHO_T}no" >&6; }
4960 if test "x$ac_ct_RANLIB" = x; then
4963 case $cross_compiling:$ac_tool_warned in
4965 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4966 whose name does not start with the host triplet. If you think this
4967 configuration is useful to you, please write to autoconf@gnu.org." >&5
4968 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4969 whose name does not start with the host triplet. If you think this
4970 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4971 ac_tool_warned=yes ;;
4973 RANLIB=$ac_ct_RANLIB
4976 RANLIB="$ac_cv_prog_RANLIB"
4979 if test -n "$ac_tool_prefix"; then
4980 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4981 set dummy ${ac_tool_prefix}strip; ac_word=$2
4982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4984 if test "${ac_cv_prog_STRIP+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4987 if test -n "$STRIP"; then
4988 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4997 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 STRIP=$ac_cv_prog_STRIP
5008 if test -n "$STRIP"; then
5009 { echo "$as_me:$LINENO: result: $STRIP" >&5
5010 echo "${ECHO_T}$STRIP" >&6; }
5012 { echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6; }
5018 if test -z "$ac_cv_prog_STRIP"; then
5020 # Extract the first word of "strip", so it can be a program name with args.
5021 set dummy strip; ac_word=$2
5022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5024 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 if test -n "$ac_ct_STRIP"; then
5028 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_prog_ac_ct_STRIP="strip"
5038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5048 if test -n "$ac_ct_STRIP"; then
5049 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5050 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5052 { echo "$as_me:$LINENO: result: no" >&5
5053 echo "${ECHO_T}no" >&6; }
5056 if test "x$ac_ct_STRIP" = x; then
5059 case $cross_compiling:$ac_tool_warned in
5061 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5062 whose name does not start with the host triplet. If you think this
5063 configuration is useful to you, please write to autoconf@gnu.org." >&5
5064 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5065 whose name does not start with the host triplet. If you think this
5066 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5067 ac_tool_warned=yes ;;
5072 STRIP="$ac_cv_prog_STRIP"
5079 # Check whether --enable-libtool-lock was given.
5080 if test "${enable_libtool_lock+set}" = set; then
5081 enableval=$enable_libtool_lock;
5084 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5086 # Some flags need to be propagated to the compiler or linker for good
5090 # Find out which ABI we are using.
5091 echo '#line 5091 "configure"' > conftest.$ac_ext
5092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5093 (eval $ac_compile) 2>&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; then
5097 case `/usr/bin/file conftest.$ac_objext` in
5113 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5114 SAVE_CFLAGS="$CFLAGS"
5115 CFLAGS="$CFLAGS -belf"
5116 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5117 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5118 if test "${lt_cv_cc_needs_belf+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 ac_cpp='$CPP $CPPFLAGS'
5124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5128 cat >conftest.$ac_ext <<_ACEOF
5131 cat confdefs.h >>conftest.$ac_ext
5132 cat >>conftest.$ac_ext <<_ACEOF
5133 /* end confdefs.h. */
5143 rm -f conftest.$ac_objext conftest$ac_exeext
5144 if { (ac_try="$ac_link"
5146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5147 *) ac_try_echo=$ac_try;;
5149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5150 (eval "$ac_link") 2>conftest.er1
5152 grep -v '^ *+' conftest.er1 >conftest.err
5154 cat conftest.err >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } && {
5157 test -z "$ac_c_werror_flag" ||
5158 test ! -s conftest.err
5159 } && test -s conftest$ac_exeext &&
5160 $as_test_x conftest$ac_exeext; then
5161 lt_cv_cc_needs_belf=yes
5163 echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5166 lt_cv_cc_needs_belf=no
5169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5170 conftest$ac_exeext conftest.$ac_ext
5172 ac_cpp='$CPP $CPPFLAGS'
5173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5178 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5179 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5180 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5181 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5182 CFLAGS="$SAVE_CFLAGS"
5189 # Sed substitution that helps us do robust quoting. It backslashifies
5190 # metacharacters that are still active within double-quoted strings.
5191 Xsed='sed -e s/^X//'
5192 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5194 # Same as above, but do not quote variable references.
5195 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5197 # Sed substitution to delay expansion of an escaped shell variable in a
5198 # double_quote_subst'ed string.
5199 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5205 default_ofile=libtool
5206 can_build_shared=yes
5208 # All known linkers require a `.a' archive for static linking (except M$VC,
5209 # which needs '.lib').
5211 ltmain="$ac_aux_dir/ltmain.sh"
5212 ofile="$default_ofile"
5213 with_gnu_ld="$lt_cv_prog_gnu_ld"
5214 need_locks="$enable_libtool_lock"
5217 old_CFLAGS="$CFLAGS"
5219 # Set sane defaults for various variables
5220 test -z "$AR" && AR=ar
5221 test -z "$AR_FLAGS" && AR_FLAGS=cru
5222 test -z "$AS" && AS=as
5223 test -z "$CC" && CC=cc
5224 test -z "$DLLTOOL" && DLLTOOL=dlltool
5225 test -z "$LD" && LD=ld
5226 test -z "$LN_S" && LN_S="ln -s"
5227 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5228 test -z "$NM" && NM=nm
5229 test -z "$OBJDUMP" && OBJDUMP=objdump
5230 test -z "$RANLIB" && RANLIB=:
5231 test -z "$STRIP" && STRIP=:
5232 test -z "$ac_objext" && ac_objext=o
5234 if test x"$host" != x"$build"; then
5235 ac_tool_prefix=${host_alias}-
5240 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5243 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5248 # AIX sometimes has problems with the GCC collect2 program. For some
5249 # reason, if we set the COLLECT_NAMES environment variable, the problems
5250 # vanish in a puff of smoke.
5251 if test "X${COLLECT_NAMES+set}" != Xset; then
5253 export COLLECT_NAMES
5258 # Determine commands to create old-style static archives.
5259 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5260 old_postinstall_cmds='chmod 644 $oldlib'
5261 old_postuninstall_cmds=
5263 if test -n "$RANLIB"; then
5266 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5269 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5272 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5275 # Allow CC to be a program name with arguments.
5279 ## FIXME: this should be a separate macro
5281 { echo "$as_me:$LINENO: checking for objdir" >&5
5282 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5283 rm -f .libs 2>/dev/null
5284 mkdir .libs 2>/dev/null
5285 if test -d .libs; then
5288 # MS-DOS does not allow filenames that begin with a dot.
5291 rmdir .libs 2>/dev/null
5292 { echo "$as_me:$LINENO: result: $objdir" >&5
5293 echo "${ECHO_T}$objdir" >&6; }
5298 ## FIXME: this should be a separate macro
5301 # Check whether --with-pic was given.
5302 if test "${with_pic+set}" = set; then
5303 withval=$with_pic; pic_mode="$withval"
5308 test -z "$pic_mode" && pic_mode=default
5310 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5311 # in isolation, and that seeing it set (from the cache) indicates that
5312 # the associated values are set (in the cache) correctly too.
5313 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5314 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
5315 if test "${lt_cv_prog_cc_pic+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 lt_cv_prog_cc_shlib=
5321 lt_cv_prog_cc_static=
5322 lt_cv_prog_cc_no_builtin=
5323 lt_cv_prog_cc_can_build_shared=$can_build_shared
5325 if test "$GCC" = yes; then
5326 lt_cv_prog_cc_wl='-Wl,'
5327 lt_cv_prog_cc_static='-static'
5331 # Below there is a dirty hack to force normal static linking with -ldl
5332 # The problem is because libdl dynamically linked with both libc and
5333 # libC (AIX C++ library), which obviously doesn't included in libraries
5334 # list by gcc. This cause undefined symbols with -static flags.
5335 # This hack allows C programs to be linked with "-static -ldl", but
5336 # not sure about C++ programs.
5337 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5340 # FIXME: we need at least 68020 code to build shared libraries, but
5341 # adding the `-m68020' flag to GCC prevents building anything better,
5343 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5345 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5346 # PIC is the default for these OSes.
5348 darwin* | rhapsody*)
5349 # PIC is the default on this platform
5350 # Common symbols not allowed in MH_DYLIB files
5351 lt_cv_prog_cc_pic='-fno-common'
5353 cygwin* | mingw* | pw32* | os2*)
5354 # This hack is so that the source file can tell whether it is being
5355 # built for inclusion in a dll (and should export symbols for example).
5356 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5359 if test -d /usr/nec; then
5360 lt_cv_prog_cc_pic=-Kconform_pic
5364 lt_cv_prog_cc_pic='-fPIC'
5368 # PORTME Check for PIC flags for the system compiler.
5370 aix3* | aix4* | aix5*)
5371 lt_cv_prog_cc_wl='-Wl,'
5372 # All AIX code is PIC.
5373 if test "$host_cpu" = ia64; then
5374 # AIX 5 now supports IA64 processor
5375 lt_cv_prog_cc_static='-Bstatic'
5377 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5381 hpux9* | hpux10* | hpux11*)
5382 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5383 lt_cv_prog_cc_wl='-Wl,'
5384 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5385 lt_cv_prog_cc_pic='+Z'
5388 irix5* | irix6* | nonstopux*)
5389 lt_cv_prog_cc_wl='-Wl,'
5390 lt_cv_prog_cc_static='-non_shared'
5391 # PIC (with -KPIC) is the default.
5394 cygwin* | mingw* | pw32* | os2*)
5395 # This hack is so that the source file can tell whether it is being
5396 # built for inclusion in a dll (and should export symbols for example).
5397 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5401 lt_cv_prog_cc_pic='-KPIC'
5402 lt_cv_prog_cc_static='-Bstatic'
5405 osf3* | osf4* | osf5*)
5406 # All OSF/1 code is PIC.
5407 lt_cv_prog_cc_wl='-Wl,'
5408 lt_cv_prog_cc_static='-non_shared'
5412 lt_cv_prog_cc_pic='-Kpic'
5413 lt_cv_prog_cc_static='-dn'
5414 lt_cv_prog_cc_shlib='-belf'
5418 lt_cv_prog_cc_pic='-KPIC'
5419 lt_cv_prog_cc_static='-Bstatic'
5420 lt_cv_prog_cc_wl='-Wl,'
5424 lt_cv_prog_cc_pic='-PIC'
5425 lt_cv_prog_cc_static='-Bstatic'
5426 lt_cv_prog_cc_wl='-Qoption ld '
5429 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5430 lt_cv_prog_cc_pic='-KPIC'
5431 lt_cv_prog_cc_static='-Bstatic'
5432 lt_cv_prog_cc_wl='-Wl,'
5436 lt_cv_prog_cc_pic='-pic'
5437 lt_cv_prog_cc_static='-Bstatic'
5441 if test -d /usr/nec ;then
5442 lt_cv_prog_cc_pic='-Kconform_pic'
5443 lt_cv_prog_cc_static='-Bstatic'
5448 lt_cv_prog_cc_can_build_shared=no
5455 if test -z "$lt_cv_prog_cc_pic"; then
5456 { echo "$as_me:$LINENO: result: none" >&5
5457 echo "${ECHO_T}none" >&6; }
5459 { echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5460 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6; }
5462 # Check to make sure the pic_flag actually works.
5463 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5464 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6; }
5465 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 save_CFLAGS="$CFLAGS"
5469 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5470 cat >conftest.$ac_ext <<_ACEOF
5473 cat confdefs.h >>conftest.$ac_ext
5474 cat >>conftest.$ac_ext <<_ACEOF
5475 /* end confdefs.h. */
5485 rm -f conftest.$ac_objext
5486 if { (ac_try="$ac_compile"
5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5492 (eval "$ac_compile") 2>conftest.er1
5494 grep -v '^ *+' conftest.er1 >conftest.err
5496 cat conftest.err >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } && {
5499 test -z "$ac_c_werror_flag" ||
5500 test ! -s conftest.err
5501 } && test -s conftest.$ac_objext; then
5503 hpux9* | hpux10* | hpux11*)
5504 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5505 # they create non-PIC objects. So, if there were any warnings, we
5506 # assume that PIC is not supported.
5507 if test -s conftest.err; then
5508 lt_cv_prog_cc_pic_works=no
5510 lt_cv_prog_cc_pic_works=yes
5514 lt_cv_prog_cc_pic_works=yes
5519 echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5522 lt_cv_prog_cc_pic_works=no
5526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527 CFLAGS="$save_CFLAGS"
5532 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5534 lt_cv_prog_cc_can_build_shared=no
5536 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5539 { echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5540 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6; }
5545 # Check for any special shared library compilation flags.
5546 if test -n "$lt_cv_prog_cc_shlib"; then
5547 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5548 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5549 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5551 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5552 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5553 lt_cv_prog_cc_can_build_shared=no
5557 ## FIXME: this should be a separate macro
5559 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5560 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6; }
5561 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 lt_cv_prog_cc_static_works=no
5565 save_LDFLAGS="$LDFLAGS"
5566 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5567 cat >conftest.$ac_ext <<_ACEOF
5570 cat confdefs.h >>conftest.$ac_ext
5571 cat >>conftest.$ac_ext <<_ACEOF
5572 /* end confdefs.h. */
5582 rm -f conftest.$ac_objext conftest$ac_exeext
5583 if { (ac_try="$ac_link"
5585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586 *) ac_try_echo=$ac_try;;
5588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589 (eval "$ac_link") 2>conftest.er1
5591 grep -v '^ *+' conftest.er1 >conftest.err
5593 cat conftest.err >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } && {
5596 test -z "$ac_c_werror_flag" ||
5597 test ! -s conftest.err
5598 } && test -s conftest$ac_exeext &&
5599 $as_test_x conftest$ac_exeext; then
5600 lt_cv_prog_cc_static_works=yes
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5609 conftest$ac_exeext conftest.$ac_ext
5610 LDFLAGS="$save_LDFLAGS"
5615 # Belt *and* braces to stop my trousers falling down:
5616 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5617 { echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5618 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6; }
5620 pic_flag="$lt_cv_prog_cc_pic"
5621 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5622 wl="$lt_cv_prog_cc_wl"
5623 link_static_flag="$lt_cv_prog_cc_static"
5624 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5625 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5630 ## FIXME: this should be a separate macro
5632 # Check to see if options -o and -c are simultaneously supported by compiler
5633 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5634 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
5635 if test "${lt_cv_compiler_c_o+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 $rm -r conftest 2>/dev/null
5642 echo "int some_variable = 0;" > conftest.$ac_ext
5644 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5645 # that will create temporary files in the current directory regardless of
5646 # the output directory. Thus, making CWD read-only will cause this test
5647 # to fail, enabling locking or at least warning the user not to do parallel
5650 save_CFLAGS="$CFLAGS"
5651 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5653 if { (eval echo configure:5653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5654 # The compiler can only warn and ignore the option if not recognized
5655 # So say no if there are warnings
5656 if test -s out/conftest.err; then
5657 lt_cv_compiler_c_o=no
5659 lt_cv_compiler_c_o=yes
5662 # Append any errors to the config.log.
5663 cat out/conftest.err 1>&5
5664 lt_cv_compiler_c_o=no
5666 CFLAGS="$save_CFLAGS"
5672 $rm -r conftest 2>/dev/null
5676 compiler_c_o=$lt_cv_compiler_c_o
5677 { echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5678 echo "${ECHO_T}$compiler_c_o" >&6; }
5680 if test x"$compiler_c_o" = x"yes"; then
5681 # Check to see if we can write to a .lo
5682 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5683 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6; }
5684 if test "${lt_cv_compiler_o_lo+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 lt_cv_compiler_o_lo=no
5689 save_CFLAGS="$CFLAGS"
5690 CFLAGS="$CFLAGS -c -o conftest.lo"
5691 save_objext="$ac_objext"
5693 cat >conftest.$ac_ext <<_ACEOF
5696 cat confdefs.h >>conftest.$ac_ext
5697 cat >>conftest.$ac_ext <<_ACEOF
5698 /* end confdefs.h. */
5703 int some_variable = 0;
5708 rm -f conftest.$ac_objext
5709 if { (ac_try="$ac_compile"
5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715 (eval "$ac_compile") 2>conftest.er1
5717 grep -v '^ *+' conftest.er1 >conftest.err
5719 cat conftest.err >&5
5720 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_objext; then
5725 # The compiler can only warn and ignore the option if not recognized
5726 # So say no if there are warnings
5727 if test -s conftest.err; then
5728 lt_cv_compiler_o_lo=no
5730 lt_cv_compiler_o_lo=yes
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741 ac_objext="$save_objext"
5742 CFLAGS="$save_CFLAGS"
5746 compiler_o_lo=$lt_cv_compiler_o_lo
5747 { echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5748 echo "${ECHO_T}$compiler_o_lo" >&6; }
5755 ## FIXME: this should be a separate macro
5757 # Check to see if we can do hard links to lock some files if needed
5758 hard_links="nottested"
5759 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5760 # do not overwrite the value of need_locks provided by the user
5761 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5762 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
5765 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5767 ln conftest.a conftest.b 2>&5 || hard_links=no
5768 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5769 { echo "$as_me:$LINENO: result: $hard_links" >&5
5770 echo "${ECHO_T}$hard_links" >&6; }
5771 if test "$hard_links" = no; then
5772 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5773 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5782 ## FIXME: this should be a separate macro
5784 if test "$GCC" = yes; then
5785 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5786 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5787 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
5788 echo "int some_variable = 0;" > conftest.$ac_ext
5789 save_CFLAGS="$CFLAGS"
5790 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5791 compiler_rtti_exceptions=no
5792 cat >conftest.$ac_ext <<_ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5802 int some_variable = 0;
5807 rm -f conftest.$ac_objext
5808 if { (ac_try="$ac_compile"
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_compile") 2>conftest.er1
5816 grep -v '^ *+' conftest.er1 >conftest.err
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } && {
5821 test -z "$ac_c_werror_flag" ||
5822 test ! -s conftest.err
5823 } && test -s conftest.$ac_objext; then
5824 # The compiler can only warn and ignore the option if not recognized
5825 # So say no if there are warnings
5826 if test -s conftest.err; then
5827 compiler_rtti_exceptions=no
5829 compiler_rtti_exceptions=yes
5833 echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5840 CFLAGS="$save_CFLAGS"
5841 { echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5842 echo "${ECHO_T}$compiler_rtti_exceptions" >&6; }
5844 if test "$compiler_rtti_exceptions" = "yes"; then
5845 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5847 no_builtin_flag=' -fno-builtin'
5853 ## FIXME: this should be a separate macro
5855 # See if the linker supports building shared libraries.
5856 { echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5857 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6; }
5859 allow_undefined_flag=
5861 need_lib_prefix=unknown
5862 need_version=unknown
5863 # when you set need_version to no, make sure it does not cause -set_version
5864 # flags to be left without arguments
5866 archive_expsym_cmds=
5867 old_archive_from_new_cmds=
5868 old_archive_from_expsyms_cmds=
5869 export_dynamic_flag_spec=
5870 whole_archive_flag_spec=
5871 thread_safe_flag_spec=
5872 hardcode_into_libs=no
5873 hardcode_libdir_flag_spec=
5874 hardcode_libdir_separator=
5877 hardcode_shlibpath_var=unsupported
5879 link_all_deplibs=unknown
5880 always_export_symbols=no
5881 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5882 # include_expsyms should be a list of space-separated symbols to be *always*
5883 # included in the symbol list
5885 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5886 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5887 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5888 # as well as any symbol that contains `d'.
5889 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5890 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5891 # platforms (ab)use it in PIC code, but their linkers get confused if
5892 # the symbol is explicitly referenced. Since portable code cannot
5893 # rely on this symbol name, it's probably fine to never include it in
5894 # preloaded symbol tables.
5895 extract_expsyms_cmds=
5898 cygwin* | mingw* | pw32*)
5899 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5900 # When not using gcc, we currently assume that we are using
5901 # Microsoft Visual C++.
5902 if test "$GCC" != yes; then
5912 if test "$with_gnu_ld" = yes; then
5913 # If archive_cmds runs LD, not CC, wlarc should be empty
5916 # See if GNU ld supports shared libraries.
5918 aix3* | aix4* | aix5*)
5919 # On AIX, the GNU linker is very broken
5920 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5924 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5925 *** to be unable to reliably create shared libraries on AIX.
5926 *** Therefore, libtool is disabling shared libraries support. If you
5927 *** really care for shared libraries, you may want to modify your PATH
5928 *** so that a non-GNU linker is found, and then restart.
5934 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)'
5935 hardcode_libdir_flag_spec='-L$libdir'
5936 hardcode_minus_L=yes
5938 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5939 # that the semantics of dynamic libraries on AmigaOS, at least up
5940 # to version 4, is to share data among multiple programs linked
5941 # with the same dynamic library. Since this doesn't match the
5942 # behavior of shared libraries on other platforms, we can use
5948 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5949 allow_undefined_flag=unsupported
5950 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5951 # support --undefined. This deserves some investigation. FIXME
5952 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5958 cygwin* | mingw* | pw32*)
5959 # hardcode_libdir_flag_spec is actually meaningless, as there is
5960 # no search path for DLLs.
5961 hardcode_libdir_flag_spec='-L$libdir'
5962 allow_undefined_flag=unsupported
5963 always_export_symbols=yes
5965 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5966 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5967 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5968 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5969 else $CC -o impgen impgen.c ; fi)~
5970 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5972 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5974 # cygwin and mingw dlls have different entry points and sets of symbols
5976 # FIXME: what about values for MSVC?
5977 dll_entry=__cygwin_dll_entry@12
5978 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5982 dll_entry=_DllMainCRTStartup@12
5983 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5987 # mingw and cygwin differ, and it's simplest to just exclude the union
5988 # of the two symbol sets.
5989 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5991 # recent cygwin and mingw systems supply a stub DllMain which the user
5992 # can override, but on older systems we have to supply one (in ltdll.c)
5993 if test "x$lt_cv_need_dllmain" = "xyes"; then
5994 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5995 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~
5996 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6002 # Extract the symbol export list from an `--export-all' def file,
6003 # then regenerate the def file from the symbol export list, so that
6004 # the compiled dll only exports the symbol export list.
6005 # Be careful not to strip the DATA tag left be newer dlltools.
6006 export_symbols_cmds="$ltdll_cmds"'
6007 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6008 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6010 # If the export-symbols file already is a .def file (1st line
6011 # is EXPORTS), use it as is.
6012 # If DATA tags from a recent dlltool are present, honour them!
6013 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6014 cp $export_symbols $output_objdir/$soname-def;
6016 echo EXPORTS > $output_objdir/$soname-def;
6018 cat $export_symbols | while read symbol; do
6021 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6022 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6023 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6025 _lt_hint=`expr 1 + \$_lt_hint`;
6029 $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~
6030 $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~
6031 $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~
6032 $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~
6033 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6037 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6038 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6041 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6042 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6047 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6051 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6052 *** create shared libraries on Solaris systems. Therefore, libtool
6053 *** is disabling shared libraries support. We urge you to upgrade GNU
6054 *** binutils to release 2.9.1 or newer. Another option is to modify
6055 *** your PATH or compiler configuration so that the native linker is
6056 *** used, and then restart.
6059 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6061 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6068 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6071 hardcode_shlibpath_var=no
6075 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6077 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6084 if test "$ld_shlibs" = yes; then
6085 runpath_var=LD_RUN_PATH
6086 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6087 export_dynamic_flag_spec='${wl}--export-dynamic'
6089 cygwin* | mingw* | pw32*)
6090 # dlltool doesn't understand --whole-archive et. al.
6091 whole_archive_flag_spec=
6094 # ancient GNU ld didn't support --whole-archive et. al.
6095 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6096 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6098 whole_archive_flag_spec=
6104 # PORTME fill in a description of your system's linker (not GNU ld)
6107 allow_undefined_flag=unsupported
6108 always_export_symbols=yes
6109 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'
6110 # Note: this linker hardcodes the directories in LIBPATH if there
6111 # are no directories specified by -L.
6112 hardcode_minus_L=yes
6113 if test "$GCC" = yes && test -z "$link_static_flag"; then
6114 # Neither direct hardcoding nor static linking is supported with a
6116 hardcode_direct=unsupported
6121 if test "$host_cpu" = ia64; then
6122 # On IA64, the linker does run time linking by default, so we don't
6123 # have to do anything special.
6124 aix_use_runtimelinking=no
6125 exp_sym_flag='-Bexport'
6128 aix_use_runtimelinking=no
6130 # Test if we are trying to use run time linking or normal
6131 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6132 # need to do runtime linking.
6133 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6134 for ld_flag in $LDFLAGS; do
6137 aix_use_runtimelinking=yes
6144 exp_sym_flag='-bexport'
6145 no_entry_flag='-bnoentry'
6148 # When large executables or shared objects are built, AIX ld can
6149 # have problems creating the table of contents. If linking a library
6150 # or program results in "error TOC overflow" add -mminimal-toc to
6151 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6152 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6156 hardcode_libdir_separator=':'
6157 if test "$GCC" = yes; then
6158 case $host_os in aix4.[012]|aix4.[012].*)
6159 collect2name=`${CC} -print-prog-name=collect2`
6160 if test -f "$collect2name" && \
6161 strings "$collect2name" | grep resolve_lib_name >/dev/null
6163 # We have reworked collect2
6166 # We have old collect2
6167 hardcode_direct=unsupported
6168 # It fails to find uninstalled libraries when the uninstalled
6169 # path is not listed in the libpath. Setting hardcode_minus_L
6170 # to unsupported forces relinking
6171 hardcode_minus_L=yes
6172 hardcode_libdir_flag_spec='-L$libdir'
6173 hardcode_libdir_separator=
6177 shared_flag='-shared'
6180 if test "$host_cpu" = ia64; then
6181 shared_flag='${wl}-G'
6183 if test "$aix_use_runtimelinking" = yes; then
6184 shared_flag='${wl}-G'
6186 shared_flag='${wl}-bM:SRE'
6191 # It seems that -bexpall can do strange things, so it is better to
6192 # generate a list of symbols to export.
6193 always_export_symbols=yes
6194 if test "$aix_use_runtimelinking" = yes; then
6195 # Warning - without using the other runtime loading flags (-brtl),
6196 # -berok will link without error, but may produce a broken library.
6197 allow_undefined_flag='-berok'
6198 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6199 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"
6201 if test "$host_cpu" = ia64; then
6202 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6203 allow_undefined_flag="-z nodefs"
6204 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"
6206 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6207 # Warning - without using the other run time loading flags,
6208 # -berok will link without error, but may produce a broken library.
6209 allow_undefined_flag='${wl}-berok'
6210 # This is a bit strange, but is similar to how AIX traditionally builds
6211 # it's shared libraries.
6212 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'
6218 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)'
6219 hardcode_libdir_flag_spec='-L$libdir'
6220 hardcode_minus_L=yes
6221 # see comment about different semantics on the GNU ld section
6225 cygwin* | mingw* | pw32*)
6226 # When not using gcc, we currently assume that we are using
6227 # Microsoft Visual C++.
6228 # hardcode_libdir_flag_spec is actually meaningless, as there is
6229 # no search path for DLLs.
6230 hardcode_libdir_flag_spec=' '
6231 allow_undefined_flag=unsupported
6232 # Tell ltmain to make .lib files, not .a files.
6234 # FIXME: Setting linknames here is a bad hack.
6235 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6236 # The linker will automatically build a .lib file if we build a DLL.
6237 old_archive_from_new_cmds='true'
6238 # FIXME: Should let the user specify the lib program.
6239 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6240 fix_srcfile_path='`cygpath -w "$srcfile"`'
6243 darwin* | rhapsody*)
6245 rhapsody* | darwin1.[012])
6246 allow_undefined_flag='-undefined suppress'
6249 allow_undefined_flag='-flat_namespace -undefined suppress'
6252 # FIXME: Relying on posixy $() will cause problems for
6253 # cross-compilation, but unfortunately the echo tests do not
6254 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6255 # `"' quotes if we put them in here... so don't!
6256 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)'
6257 # We need to add '_' to the symbols in $export_symbols first
6258 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6260 hardcode_shlibpath_var=no
6261 whole_archive_flag_spec='-all_load $convenience'
6268 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6269 # support. Future versions do this automatically, but an explicit c++rt0.o
6270 # does not break anything, and helps significantly (at the cost of a little
6273 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6274 hardcode_libdir_flag_spec='-R$libdir'
6276 hardcode_shlibpath_var=no
6279 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6281 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6283 hardcode_minus_L=yes
6284 hardcode_shlibpath_var=no
6287 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6288 freebsd* | kfreebsd*-gnu)
6289 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6290 hardcode_libdir_flag_spec='-R$libdir'
6292 hardcode_shlibpath_var=no
6295 hpux9* | hpux10* | hpux11*)
6297 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' ;;
6298 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6300 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6301 hardcode_libdir_separator=:
6303 hardcode_minus_L=yes # Not in the search PATH, but as the default
6304 # location of the library.
6305 export_dynamic_flag_spec='${wl}-E'
6308 irix5* | irix6* | nonstopux*)
6309 if test "$GCC" = yes; then
6310 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'
6311 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6313 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'
6314 hardcode_libdir_flag_spec='-rpath $libdir'
6316 hardcode_libdir_separator=:
6317 link_all_deplibs=yes
6321 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6322 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6324 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6326 hardcode_libdir_flag_spec='-R$libdir'
6328 hardcode_shlibpath_var=no
6332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6334 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6335 hardcode_libdir_separator=:
6336 hardcode_shlibpath_var=no
6341 hardcode_shlibpath_var=no
6342 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6343 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6344 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6345 export_dynamic_flag_spec='${wl}-E'
6348 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6349 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6350 hardcode_libdir_flag_spec='-R$libdir'
6353 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6354 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6361 hardcode_libdir_flag_spec='-L$libdir'
6362 hardcode_minus_L=yes
6363 allow_undefined_flag=unsupported
6364 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'
6365 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6369 if test "$GCC" = yes; then
6370 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6371 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'
6373 allow_undefined_flag=' -expect_unresolved \*'
6374 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'
6376 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6377 hardcode_libdir_separator=:
6380 osf4* | osf5*) # as osf3* with the addition of -msym flag
6381 if test "$GCC" = yes; then
6382 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6383 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'
6384 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6386 allow_undefined_flag=' -expect_unresolved \*'
6387 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'
6388 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6389 $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'
6391 #Both c and cxx compiler support -rpath directly
6392 hardcode_libdir_flag_spec='-rpath $libdir'
6394 hardcode_libdir_separator=:
6398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6399 hardcode_shlibpath_var=no
6400 runpath_var=LD_RUN_PATH
6401 hardcode_runpath_var=yes
6402 export_dynamic_flag_spec='${wl}-Bexport'
6406 # gcc --version < 3.0 without binutils cannot create self contained
6407 # shared libraries reliably, requiring libgcc.a to resolve some of
6408 # the object symbols generated in some cases. Libraries that use
6409 # assert need libgcc.a to resolve __eprintf, for example. Linking
6410 # a copy of libgcc.a into every shared library to guarantee resolving
6411 # such symbols causes other problems: According to Tim Van Holder
6412 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6413 # (to the application) exception stack for one thing.
6414 no_undefined_flag=' -z defs'
6415 if test "$GCC" = yes; then
6416 case `$CC --version 2>/dev/null` in
6420 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6421 *** create self contained shared libraries on Solaris systems, without
6422 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6423 *** -no-undefined support, which will at least allow you to build shared
6424 *** libraries. However, you may find that when you link such libraries
6425 *** into an application without using GCC, you have to manually add
6426 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6427 *** upgrade to a newer version of GCC. Another option is to rebuild your
6428 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6435 # $CC -shared without GNU ld will not create a library from C++
6436 # object files and a static libstdc++, better avoid it by now
6437 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6438 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6439 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6440 hardcode_libdir_flag_spec='-R$libdir'
6441 hardcode_shlibpath_var=no
6443 solaris2.[0-5] | solaris2.[0-5].*) ;;
6444 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6445 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6447 link_all_deplibs=yes
6451 if test "x$host_vendor" = xsequent; then
6452 # Use $CC to link under sequent, because it throws in some extra .o
6453 # files that make .init and .fini sections work.
6454 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6456 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6458 hardcode_libdir_flag_spec='-L$libdir'
6460 hardcode_minus_L=yes
6461 hardcode_shlibpath_var=no
6465 case $host_vendor in
6467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6468 hardcode_direct=yes # is this really true???
6471 ## LD is ld it makes a PLAMLIB
6472 ## CC just makes a GrossModule.
6473 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6474 reload_cmds='$CC -r -o $output$reload_objs'
6478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6479 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6482 runpath_var='LD_RUN_PATH'
6483 hardcode_shlibpath_var=no
6487 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6488 hardcode_shlibpath_var=no
6489 export_dynamic_flag_spec='-Bexport'
6493 no_undefined_flag=' -z text'
6494 # $CC -shared without GNU ld will not create a library from C++
6495 # object files and a static libstdc++, better avoid it by now
6496 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6497 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6498 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6499 hardcode_libdir_flag_spec=
6500 hardcode_shlibpath_var=no
6501 runpath_var='LD_RUN_PATH'
6505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6506 hardcode_libdir_flag_spec='-L$libdir'
6507 hardcode_shlibpath_var=no
6511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6512 hardcode_libdir_flag_spec='-L$libdir'
6513 hardcode_shlibpath_var=no
6517 if test -d /usr/nec; then
6518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6519 hardcode_shlibpath_var=no
6520 runpath_var=LD_RUN_PATH
6521 hardcode_runpath_var=yes
6527 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6530 hardcode_shlibpath_var=no
6531 hardcode_runpath_var=yes
6532 runpath_var=LD_RUN_PATH
6535 sysv5uw7* | unixware7*)
6536 no_undefined_flag='${wl}-z ${wl}text'
6537 if test "$GCC" = yes; then
6538 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6540 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6542 runpath_var='LD_RUN_PATH'
6543 hardcode_shlibpath_var=no
6551 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6552 echo "${ECHO_T}$ld_shlibs" >&6; }
6553 test "$ld_shlibs" = no && can_build_shared=no
6557 ## FIXME: this should be a separate macro
6559 # Check hardcoding attributes.
6560 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6561 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
6563 if test -n "$hardcode_libdir_flag_spec" || \
6564 test -n "$runpath_var"; then
6566 # We can hardcode non-existant directories.
6567 if test "$hardcode_direct" != no &&
6568 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6569 # have to relink, otherwise we might link with an installed library
6570 # when we should be linking with a yet-to-be-installed one
6571 ## test "$hardcode_shlibpath_var" != no &&
6572 test "$hardcode_minus_L" != no; then
6573 # Linking always hardcodes the temporary library directory.
6574 hardcode_action=relink
6576 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6577 hardcode_action=immediate
6580 # We cannot hardcode anything, or else we can only hardcode existing
6582 hardcode_action=unsupported
6584 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
6585 echo "${ECHO_T}$hardcode_action" >&6; }
6589 ## FIXME: this should be a separate macro
6593 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6594 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
6595 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6596 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6597 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6598 { echo "$as_me:$LINENO: result: yes" >&5
6599 echo "${ECHO_T}yes" >&6; }
6601 { echo "$as_me:$LINENO: result: no" >&5
6602 echo "${ECHO_T}no" >&6; }
6607 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6608 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6610 ## FIXME: this should be a separate macro
6612 # PORTME Fill in your ld.so characteristics
6613 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6614 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
6616 libname_spec='lib$name'
6623 shlibpath_overrides_runpath=unknown
6625 dynamic_linker="$host_os ld.so"
6626 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6627 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6632 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6633 shlibpath_var=LIBPATH
6635 # AIX has no versioning support, so we append a major version to the name.
6636 soname_spec='${libname}${release}.so$major'
6643 hardcode_into_libs=yes
6644 if test "$host_cpu" = ia64; then
6645 # AIX 5 supports IA64
6646 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6647 shlibpath_var=LD_LIBRARY_PATH
6649 # With GCC up to 2.95.x, collect2 would create an import file
6650 # for dependence libraries. The import file would start with
6651 # the line `#! .'. This would cause the generated library to
6652 # depend on `.', always an invalid library. This was fixed in
6653 # development snapshots of GCC prior to 3.0.
6655 aix4 | aix4.[01] | aix4.[01].*)
6656 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6658 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6665 # AIX (on Power*) has no versioning support, so currently we can
6666 # not hardcode correct soname into executable. Probably we can
6667 # add versioning support to collect2, so additional links can
6668 # be useful in future.
6669 if test "$aix_use_runtimelinking" = yes; then
6670 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6671 # instead of lib<name>.a to let people know that these are not
6672 # typical AIX shared libraries.
6673 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6675 # We preserve .a as extension for shared libraries through AIX4.2
6676 # and later when we are not doing run time linking.
6677 library_names_spec='${libname}${release}.a $libname.a'
6678 soname_spec='${libname}${release}.so$major'
6680 shlibpath_var=LIBPATH
6682 hardcode_into_libs=yes
6686 library_names_spec='$libname.ixlibrary $libname.a'
6687 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6688 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'
6692 library_names_spec='${libname}.so'
6693 dynamic_linker="$host_os ld.so"
6694 shlibpath_var=LIBRARY_PATH
6700 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6701 soname_spec='${libname}${release}.so$major'
6702 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6703 shlibpath_var=LD_LIBRARY_PATH
6704 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6705 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6706 export_dynamic_flag_spec=-rdynamic
6707 # the default ld.so.conf also contains /usr/contrib/lib and
6708 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6709 # libtool to hard-code these into programs
6712 cygwin* | mingw* | pw32*)
6713 version_type=windows
6716 case $GCC,$host_os in
6718 library_names_spec='$libname.dll.a'
6719 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6720 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6721 dldir=$destdir/`dirname \$dlpath`~
6722 test -d \$dldir || mkdir -p \$dldir~
6723 $install_prog .libs/$dlname \$dldir/$dlname'
6724 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6725 dlpath=$dir/\$dldll~
6729 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6730 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6733 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6736 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6739 dynamic_linker='Win32 ld.exe'
6740 # FIXME: first we should search . and the directory the executable is in
6744 darwin* | rhapsody*)
6745 dynamic_linker="$host_os dyld"
6749 # FIXME: Relying on posixy $() will cause problems for
6750 # cross-compilation, but unfortunately the echo tests do not
6751 # yet detect zsh echo's removal of \ escapes.
6752 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)'
6753 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6754 shlibpath_overrides_runpath=yes
6755 shlibpath_var=DYLD_LIBRARY_PATH
6766 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6767 soname_spec='${libname}${release}.so$major'
6768 shlibpath_var=LD_LIBRARY_PATH
6769 shlibpath_overrides_runpath=no
6770 hardcode_into_libs=yes
6771 dynamic_linker='GNU/FreeBSD ld.so'
6775 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6776 version_type=freebsd-$objformat
6777 case $version_type in
6779 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6784 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6788 shlibpath_var=LD_LIBRARY_PATH
6791 shlibpath_overrides_runpath=yes
6794 shlibpath_overrides_runpath=no
6795 hardcode_into_libs=yes
6804 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6805 soname_spec='${libname}${release}.so$major'
6806 shlibpath_var=LD_LIBRARY_PATH
6807 hardcode_into_libs=yes
6810 hpux9* | hpux10* | hpux11*)
6811 # Give a soname corresponding to the major version so that dld.sl refuses to
6812 # link against other versions.
6813 dynamic_linker="$host_os dld.sl"
6817 shlibpath_var=SHLIB_PATH
6818 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6819 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6820 soname_spec='${libname}${release}.sl$major'
6821 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6822 postinstall_cmds='chmod 555 $lib'
6825 irix5* | irix6* | nonstopux*)
6827 nonstopux*) version_type=nonstopux ;;
6828 *) version_type=irix ;;
6832 soname_spec='${libname}${release}.so$major'
6833 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6835 irix5* | nonstopux*)
6839 case $LD in # libtool.m4 will add one of these switches to LD
6840 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6841 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6842 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6843 *) libsuff= shlibsuff= libmagic=never-match;;
6847 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6848 shlibpath_overrides_runpath=no
6849 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6850 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6853 # No shared lib support for Linux oldld, aout, or coff.
6854 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6858 # This must be Linux ELF.
6863 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6864 soname_spec='${libname}${release}.so$major'
6865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6866 shlibpath_var=LD_LIBRARY_PATH
6867 shlibpath_overrides_runpath=no
6868 # This implies no fast_install, which is unacceptable.
6869 # Some rework will be needed to allow for fast_install
6870 # before this can be enabled.
6871 hardcode_into_libs=yes
6873 # We used to test for /lib/ld.so.1 and disable shared libraries on
6874 # powerpc, because MkLinux only supported shared libraries with the
6875 # GNU dynamic linker. Since this was broken with cross compilers,
6876 # most powerpc-linux boxes support dynamic linking these days and
6877 # people can always --disable-shared, the test was removed, and we
6878 # assume the GNU/Linux dynamic linker is in use.
6879 dynamic_linker='GNU/Linux ld.so'
6886 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6887 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6889 dynamic_linker='NetBSD (a.out) ld.so'
6891 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6892 soname_spec='${libname}${release}.so$major'
6893 dynamic_linker='NetBSD ld.elf_so'
6895 shlibpath_var=LD_LIBRARY_PATH
6896 shlibpath_overrides_runpath=yes
6897 hardcode_into_libs=yes
6902 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6903 shlibpath_var=LD_LIBRARY_PATH
6904 shlibpath_overrides_runpath=yes
6911 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6913 openbsd2.[89] | openbsd2.[89].*)
6914 shlibpath_overrides_runpath=no
6917 shlibpath_overrides_runpath=yes
6921 shlibpath_overrides_runpath=yes
6923 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6925 shlibpath_var=LD_LIBRARY_PATH
6929 libname_spec='$name'
6931 library_names_spec='$libname.dll $libname.a'
6932 dynamic_linker='OS/2 ld.exe'
6933 shlibpath_var=LIBPATH
6936 osf3* | osf4* | osf5*)
6940 soname_spec='${libname}${release}.so$major'
6941 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6942 shlibpath_var=LD_LIBRARY_PATH
6943 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6944 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6945 hardcode_into_libs=yes
6950 soname_spec='${libname}${release}.so$major'
6951 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6952 shlibpath_var=LD_LIBRARY_PATH
6959 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6960 soname_spec='${libname}${release}.so$major'
6961 shlibpath_var=LD_LIBRARY_PATH
6962 shlibpath_overrides_runpath=yes
6963 hardcode_into_libs=yes
6964 # ldd complains unless libraries are executable
6965 postinstall_cmds='chmod +x $lib'
6970 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6971 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6972 shlibpath_var=LD_LIBRARY_PATH
6973 shlibpath_overrides_runpath=yes
6974 if test "$with_gnu_ld" = yes; then
6980 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6982 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6983 soname_spec='${libname}${release}.so$major'
6984 shlibpath_var=LD_LIBRARY_PATH
6985 case $host_vendor in
6987 shlibpath_overrides_runpath=no
6989 export_dynamic_flag_spec='${wl}-Blargedynsym'
6990 runpath_var=LD_RUN_PATH
6998 shlibpath_overrides_runpath=no
6999 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7006 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7007 soname_spec='${libname}${release}.so$major'
7008 shlibpath_var=LD_LIBRARY_PATH
7015 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7016 soname_spec='${libname}${release}.so$major'
7017 shlibpath_var=LD_LIBRARY_PATH
7021 if test -d /usr/nec ;then
7023 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7024 soname_spec='$libname.so.$major'
7025 shlibpath_var=LD_LIBRARY_PATH
7033 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7034 echo "${ECHO_T}$dynamic_linker" >&6; }
7035 test "$dynamic_linker" = no && can_build_shared=no
7039 ## FIXME: this should be a separate macro
7041 # Report the final consequences.
7042 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7043 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
7044 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
7045 echo "${ECHO_T}$can_build_shared" >&6; }
7049 ## FIXME: this should be a separate macro
7051 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7052 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
7053 test "$can_build_shared" = "no" && enable_shared=no
7055 # On AIX, shared libraries and static libraries use the same namespace, and
7056 # are all built from PIC.
7059 test "$enable_shared" = yes && enable_static=no
7060 if test -n "$RANLIB"; then
7061 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7062 postinstall_cmds='$RANLIB $lib'
7067 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7068 test "$enable_shared" = yes && enable_static=no
7072 { echo "$as_me:$LINENO: result: $enable_shared" >&5
7073 echo "${ECHO_T}$enable_shared" >&6; }
7077 ## FIXME: this should be a separate macro
7079 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7080 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
7081 # Make sure either enable_shared or enable_static is yes.
7082 test "$enable_shared" = yes || enable_static=yes
7083 { echo "$as_me:$LINENO: result: $enable_static" >&5
7084 echo "${ECHO_T}$enable_static" >&6; }
7088 if test "$hardcode_action" = relink; then
7089 # Fast installation is not supported
7090 enable_fast_install=no
7091 elif test "$shlibpath_overrides_runpath" = yes ||
7092 test "$enable_shared" = no; then
7093 # Fast installation is not necessary
7094 enable_fast_install=needless
7097 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7098 if test "$GCC" = yes; then
7099 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7102 if test "x$enable_dlopen" != xyes; then
7103 enable_dlopen=unknown
7104 enable_dlopen_self=unknown
7105 enable_dlopen_self_static=unknown
7112 lt_cv_dlopen="load_add_on"
7114 lt_cv_dlopen_self=yes
7117 cygwin* | mingw* | pw32*)
7118 lt_cv_dlopen="LoadLibrary"
7123 { echo "$as_me:$LINENO: checking for shl_load" >&5
7124 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
7125 if test "${ac_cv_func_shl_load+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 cat >conftest.$ac_ext <<_ACEOF
7131 cat confdefs.h >>conftest.$ac_ext
7132 cat >>conftest.$ac_ext <<_ACEOF
7133 /* end confdefs.h. */
7134 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7136 #define shl_load innocuous_shl_load
7138 /* System header to define __stub macros and hopefully few prototypes,
7139 which can conflict with char shl_load (); below.
7140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7141 <limits.h> exists even on freestanding compilers. */
7144 # include <limits.h>
7146 # include <assert.h>
7151 /* Override any GCC internal prototype to avoid an error.
7152 Use char because int might match the return type of a GCC
7153 builtin and then its argument prototype would still apply. */
7158 /* The GNU C library defines this for functions which it implements
7159 to always fail with ENOSYS. Some functions are actually named
7160 something starting with __ and the normal name is an alias. */
7161 #if defined __stub_shl_load || defined __stub___shl_load
7173 rm -f conftest.$ac_objext conftest$ac_exeext
7174 if { (ac_try="$ac_link"
7176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177 *) ac_try_echo=$ac_try;;
7179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7180 (eval "$ac_link") 2>conftest.er1
7182 grep -v '^ *+' conftest.er1 >conftest.err
7184 cat conftest.err >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } && {
7187 test -z "$ac_c_werror_flag" ||
7188 test ! -s conftest.err
7189 } && test -s conftest$ac_exeext &&
7190 $as_test_x conftest$ac_exeext; then
7191 ac_cv_func_shl_load=yes
7193 echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.$ac_ext >&5
7196 ac_cv_func_shl_load=no
7199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7200 conftest$ac_exeext conftest.$ac_ext
7202 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7203 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
7204 if test $ac_cv_func_shl_load = yes; then
7205 lt_cv_dlopen="shl_load"
7207 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7208 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
7209 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 ac_check_lib_save_LIBS=$LIBS
7214 cat >conftest.$ac_ext <<_ACEOF
7217 cat confdefs.h >>conftest.$ac_ext
7218 cat >>conftest.$ac_ext <<_ACEOF
7219 /* end confdefs.h. */
7221 /* Override any GCC internal prototype to avoid an error.
7222 Use char because int might match the return type of a GCC
7223 builtin and then its argument prototype would still apply. */
7236 rm -f conftest.$ac_objext conftest$ac_exeext
7237 if { (ac_try="$ac_link"
7239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7240 *) ac_try_echo=$ac_try;;
7242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7243 (eval "$ac_link") 2>conftest.er1
7245 grep -v '^ *+' conftest.er1 >conftest.err
7247 cat conftest.err >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); } && {
7250 test -z "$ac_c_werror_flag" ||
7251 test ! -s conftest.err
7252 } && test -s conftest$ac_exeext &&
7253 $as_test_x conftest$ac_exeext; then
7254 ac_cv_lib_dld_shl_load=yes
7256 echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7259 ac_cv_lib_dld_shl_load=no
7262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7263 conftest$ac_exeext conftest.$ac_ext
7264 LIBS=$ac_check_lib_save_LIBS
7266 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7267 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
7268 if test $ac_cv_lib_dld_shl_load = yes; then
7269 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7271 { echo "$as_me:$LINENO: checking for dlopen" >&5
7272 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
7273 if test "${ac_cv_func_dlopen+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 cat >conftest.$ac_ext <<_ACEOF
7279 cat confdefs.h >>conftest.$ac_ext
7280 cat >>conftest.$ac_ext <<_ACEOF
7281 /* end confdefs.h. */
7282 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7284 #define dlopen innocuous_dlopen
7286 /* System header to define __stub macros and hopefully few prototypes,
7287 which can conflict with char dlopen (); below.
7288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7289 <limits.h> exists even on freestanding compilers. */
7292 # include <limits.h>
7294 # include <assert.h>
7299 /* Override any GCC internal prototype to avoid an error.
7300 Use char because int might match the return type of a GCC
7301 builtin and then its argument prototype would still apply. */
7306 /* The GNU C library defines this for functions which it implements
7307 to always fail with ENOSYS. Some functions are actually named
7308 something starting with __ and the normal name is an alias. */
7309 #if defined __stub_dlopen || defined __stub___dlopen
7321 rm -f conftest.$ac_objext conftest$ac_exeext
7322 if { (ac_try="$ac_link"
7324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7325 *) ac_try_echo=$ac_try;;
7327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7328 (eval "$ac_link") 2>conftest.er1
7330 grep -v '^ *+' conftest.er1 >conftest.err
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } && {
7335 test -z "$ac_c_werror_flag" ||
7336 test ! -s conftest.err
7337 } && test -s conftest$ac_exeext &&
7338 $as_test_x conftest$ac_exeext; then
7339 ac_cv_func_dlopen=yes
7341 echo "$as_me: failed program was:" >&5
7342 sed 's/^/| /' conftest.$ac_ext >&5
7344 ac_cv_func_dlopen=no
7347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7348 conftest$ac_exeext conftest.$ac_ext
7350 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7351 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
7352 if test $ac_cv_func_dlopen = yes; then
7353 lt_cv_dlopen="dlopen"
7355 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7356 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
7357 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 ac_check_lib_save_LIBS=$LIBS
7362 cat >conftest.$ac_ext <<_ACEOF
7365 cat confdefs.h >>conftest.$ac_ext
7366 cat >>conftest.$ac_ext <<_ACEOF
7367 /* end confdefs.h. */
7369 /* Override any GCC internal prototype to avoid an error.
7370 Use char because int might match the return type of a GCC
7371 builtin and then its argument prototype would still apply. */
7384 rm -f conftest.$ac_objext conftest$ac_exeext
7385 if { (ac_try="$ac_link"
7387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7388 *) ac_try_echo=$ac_try;;
7390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7391 (eval "$ac_link") 2>conftest.er1
7393 grep -v '^ *+' conftest.er1 >conftest.err
7395 cat conftest.err >&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } && {
7398 test -z "$ac_c_werror_flag" ||
7399 test ! -s conftest.err
7400 } && test -s conftest$ac_exeext &&
7401 $as_test_x conftest$ac_exeext; then
7402 ac_cv_lib_dl_dlopen=yes
7404 echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.$ac_ext >&5
7407 ac_cv_lib_dl_dlopen=no
7410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7411 conftest$ac_exeext conftest.$ac_ext
7412 LIBS=$ac_check_lib_save_LIBS
7414 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7415 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
7416 if test $ac_cv_lib_dl_dlopen = yes; then
7417 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7419 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7420 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
7421 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7424 ac_check_lib_save_LIBS=$LIBS
7426 cat >conftest.$ac_ext <<_ACEOF
7429 cat confdefs.h >>conftest.$ac_ext
7430 cat >>conftest.$ac_ext <<_ACEOF
7431 /* end confdefs.h. */
7433 /* Override any GCC internal prototype to avoid an error.
7434 Use char because int might match the return type of a GCC
7435 builtin and then its argument prototype would still apply. */
7448 rm -f conftest.$ac_objext conftest$ac_exeext
7449 if { (ac_try="$ac_link"
7451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7452 *) ac_try_echo=$ac_try;;
7454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7455 (eval "$ac_link") 2>conftest.er1
7457 grep -v '^ *+' conftest.er1 >conftest.err
7459 cat conftest.err >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } && {
7462 test -z "$ac_c_werror_flag" ||
7463 test ! -s conftest.err
7464 } && test -s conftest$ac_exeext &&
7465 $as_test_x conftest$ac_exeext; then
7466 ac_cv_lib_svld_dlopen=yes
7468 echo "$as_me: failed program was:" >&5
7469 sed 's/^/| /' conftest.$ac_ext >&5
7471 ac_cv_lib_svld_dlopen=no
7474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7475 conftest$ac_exeext conftest.$ac_ext
7476 LIBS=$ac_check_lib_save_LIBS
7478 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7479 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
7480 if test $ac_cv_lib_svld_dlopen = yes; then
7481 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7483 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7484 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
7485 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 ac_check_lib_save_LIBS=$LIBS
7490 cat >conftest.$ac_ext <<_ACEOF
7493 cat confdefs.h >>conftest.$ac_ext
7494 cat >>conftest.$ac_ext <<_ACEOF
7495 /* end confdefs.h. */
7497 /* Override any GCC internal prototype to avoid an error.
7498 Use char because int might match the return type of a GCC
7499 builtin and then its argument prototype would still apply. */
7512 rm -f conftest.$ac_objext conftest$ac_exeext
7513 if { (ac_try="$ac_link"
7515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516 *) ac_try_echo=$ac_try;;
7518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7519 (eval "$ac_link") 2>conftest.er1
7521 grep -v '^ *+' conftest.er1 >conftest.err
7523 cat conftest.err >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } && {
7526 test -z "$ac_c_werror_flag" ||
7527 test ! -s conftest.err
7528 } && test -s conftest$ac_exeext &&
7529 $as_test_x conftest$ac_exeext; then
7530 ac_cv_lib_dld_dld_link=yes
7532 echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7535 ac_cv_lib_dld_dld_link=no
7538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7539 conftest$ac_exeext conftest.$ac_ext
7540 LIBS=$ac_check_lib_save_LIBS
7542 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7543 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
7544 if test $ac_cv_lib_dld_dld_link = yes; then
7545 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7566 if test "x$lt_cv_dlopen" != xno; then
7572 case $lt_cv_dlopen in
7574 save_CPPFLAGS="$CPPFLAGS"
7575 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7577 save_LDFLAGS="$LDFLAGS"
7578 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7581 LIBS="$lt_cv_dlopen_libs $LIBS"
7583 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7584 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
7585 if test "${lt_cv_dlopen_self+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 if test "$cross_compiling" = yes; then :
7589 lt_cv_dlopen_self=cross
7591 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7592 lt_status=$lt_dlunknown
7593 cat > conftest.$ac_ext <<EOF
7594 #line 7594 "configure"
7595 #include "confdefs.h"
7604 # define LT_DLGLOBAL RTLD_GLOBAL
7607 # define LT_DLGLOBAL DL_GLOBAL
7609 # define LT_DLGLOBAL 0
7613 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7614 find out it does not work in some platform. */
7615 #ifndef LT_DLLAZY_OR_NOW
7617 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7620 # define LT_DLLAZY_OR_NOW DL_LAZY
7623 # define LT_DLLAZY_OR_NOW RTLD_NOW
7626 # define LT_DLLAZY_OR_NOW DL_NOW
7628 # define LT_DLLAZY_OR_NOW 0
7636 extern "C" void exit (int);
7639 void fnord() { int i=42;}
7642 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7643 int status = $lt_dlunknown;
7647 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7648 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7649 /* dlclose (self); */
7655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7656 (eval $ac_link) 2>&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7660 (./conftest; exit; ) 2>/dev/null
7663 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7664 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7665 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7668 # compilation failed
7669 lt_cv_dlopen_self=no
7676 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7677 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
7679 if test "x$lt_cv_dlopen_self" = xyes; then
7680 LDFLAGS="$LDFLAGS $link_static_flag"
7681 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7682 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
7683 if test "${lt_cv_dlopen_self_static+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7686 if test "$cross_compiling" = yes; then :
7687 lt_cv_dlopen_self_static=cross
7689 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7690 lt_status=$lt_dlunknown
7691 cat > conftest.$ac_ext <<EOF
7692 #line 7692 "configure"
7693 #include "confdefs.h"
7702 # define LT_DLGLOBAL RTLD_GLOBAL
7705 # define LT_DLGLOBAL DL_GLOBAL
7707 # define LT_DLGLOBAL 0
7711 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7712 find out it does not work in some platform. */
7713 #ifndef LT_DLLAZY_OR_NOW
7715 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7718 # define LT_DLLAZY_OR_NOW DL_LAZY
7721 # define LT_DLLAZY_OR_NOW RTLD_NOW
7724 # define LT_DLLAZY_OR_NOW DL_NOW
7726 # define LT_DLLAZY_OR_NOW 0
7734 extern "C" void exit (int);
7737 void fnord() { int i=42;}
7740 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7741 int status = $lt_dlunknown;
7745 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7746 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7747 /* dlclose (self); */
7753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7754 (eval $ac_link) 2>&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7758 (./conftest; exit; ) 2>/dev/null
7761 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7762 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7763 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7766 # compilation failed
7767 lt_cv_dlopen_self_static=no
7774 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7775 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
7778 CPPFLAGS="$save_CPPFLAGS"
7779 LDFLAGS="$save_LDFLAGS"
7784 case $lt_cv_dlopen_self in
7785 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7786 *) enable_dlopen_self=unknown ;;
7789 case $lt_cv_dlopen_self_static in
7790 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7791 *) enable_dlopen_self_static=unknown ;;
7796 ## FIXME: this should be a separate macro
7798 if test "$enable_shared" = yes && test "$GCC" = yes; then
7799 case $archive_cmds in
7801 # FIXME: we may have to deal with multi-command sequences.
7804 # Test whether the compiler implicitly links with -lc since on some
7805 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7806 # to ld, don't add -lc before -lgcc.
7807 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7808 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7809 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 echo 'static int dummy;' > conftest.$ac_ext
7815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7816 (eval $ac_compile) 2>&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); }; then
7822 libobjs=conftest.$ac_objext
7824 wl=$lt_cv_prog_cc_wl
7830 save_allow_undefined_flag=$allow_undefined_flag
7831 allow_undefined_flag=
7832 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7833 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); }
7838 lt_cv_archive_cmds_need_lc=no
7840 lt_cv_archive_cmds_need_lc=yes
7842 allow_undefined_flag=$save_allow_undefined_flag
7844 cat conftest.err 1>&5
7848 { echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7849 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6; }
7853 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7857 ## FIXME: this should be a separate macro
7859 # The second clause should only fire when bootstrapping the
7860 # libtool distribution, otherwise you forgot to ship ltmain.sh
7861 # with your package, and you will get complaints that there are
7862 # no rules to generate ltmain.sh.
7863 if test -f "$ltmain"; then
7866 # If there is no Makefile yet, we rely on a make rule to execute
7867 # `config.status --recheck' to rerun these tests and create the
7868 # libtool script then.
7869 test -f Makefile && make "$ltmain"
7872 if test -f "$ltmain"; then
7873 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7876 echo creating $ofile
7878 # Now quote all the things that may contain metacharacters while being
7879 # careful not to overquote the AC_SUBSTed values. We take copies of the
7880 # variables and quote the copies for generation of the libtool script.
7881 for var in echo old_CC old_CFLAGS SED \
7882 AR AR_FLAGS CC LD LN_S NM SHELL \
7883 reload_flag reload_cmds wl \
7884 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7885 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7886 library_names_spec soname_spec \
7887 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7888 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7889 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7890 old_striplib striplib file_magic_cmd export_symbols_cmds \
7891 deplibs_check_method allow_undefined_flag no_undefined_flag \
7892 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7893 global_symbol_to_c_name_address \
7894 hardcode_libdir_flag_spec hardcode_libdir_separator \
7895 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7896 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7899 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7900 old_postinstall_cmds | old_postuninstall_cmds | \
7901 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7902 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7903 postinstall_cmds | postuninstall_cmds | \
7904 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7905 # Double-quote double-evaled strings.
7906 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7909 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7914 cat <<__EOF__ > "${ofile}T"
7917 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7918 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7919 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7921 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7922 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7924 # This program is free software; you can redistribute it and/or modify
7925 # it under the terms of the GNU General Public License as published by
7926 # the Free Software Foundation; either version 2 of the License, or
7927 # (at your option) any later version.
7929 # This program is distributed in the hope that it will be useful, but
7930 # WITHOUT ANY WARRANTY; without even the implied warranty of
7931 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7932 # General Public License for more details.
7934 # You should have received a copy of the GNU General Public License
7935 # along with this program; if not, write to the Free Software
7936 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7938 # As a special exception to the GNU General Public License, if you
7939 # distribute this file as part of a program that contains a
7940 # configuration script generated by Autoconf, you may include it under
7941 # the same distribution terms that you use for the rest of that program.
7943 # A sed that does not truncate output.
7946 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7947 Xsed="${SED} -e s/^X//"
7949 # The HP-UX ksh and POSIX shell print the target directory to stdout
7951 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7953 # ### BEGIN LIBTOOL CONFIG
7955 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7957 # Shell to use when invoking shell scripts.
7960 # Whether or not to build shared libraries.
7961 build_libtool_libs=$enable_shared
7963 # Whether or not to build static libraries.
7964 build_old_libs=$enable_static
7966 # Whether or not to add -lc for building shared libraries.
7967 build_libtool_need_lc=$need_lc
7969 # Whether or not to optimize for fast installation.
7970 fast_install=$enable_fast_install
7973 host_alias=$host_alias
7976 # An echo program that does not interpret backslashes.
7981 AR_FLAGS=$lt_AR_FLAGS
7983 # The default C compiler.
7986 # Is the compiler the GNU C compiler?
7989 # The linker used to build libraries.
7992 # Whether we need hard or soft links.
7995 # A BSD-compatible nm program.
7998 # A symbol stripping program
8001 # Used to examine libraries when file_magic_cmd begins "file"
8002 MAGIC_CMD=$MAGIC_CMD
8004 # Used on cygwin: DLL creation program.
8007 # Used on cygwin: object dumper.
8010 # Used on cygwin: assembler.
8013 # The name of the directory that contains temporary libtool files.
8016 # How to create reloadable object files.
8017 reload_flag=$lt_reload_flag
8018 reload_cmds=$lt_reload_cmds
8020 # How to pass a linker flag through the compiler.
8023 # Object file suffix (normally "o").
8026 # Old archive suffix (normally "a").
8029 # Executable file suffix (normally "").
8032 # Additional compiler flags for building library objects.
8033 pic_flag=$lt_pic_flag
8036 # Does compiler simultaneously support -c and -o options?
8037 compiler_c_o=$lt_compiler_c_o
8039 # Can we write directly to a .lo ?
8040 compiler_o_lo=$lt_compiler_o_lo
8042 # Must we lock files when doing compilation ?
8043 need_locks=$lt_need_locks
8045 # Do we need the lib prefix for modules?
8046 need_lib_prefix=$need_lib_prefix
8048 # Do we need a version for libraries?
8049 need_version=$need_version
8051 # Whether dlopen is supported.
8052 dlopen_support=$enable_dlopen
8054 # Whether dlopen of programs is supported.
8055 dlopen_self=$enable_dlopen_self
8057 # Whether dlopen of statically linked programs is supported.
8058 dlopen_self_static=$enable_dlopen_self_static
8060 # Compiler flag to prevent dynamic linking.
8061 link_static_flag=$lt_link_static_flag
8063 # Compiler flag to turn off builtin functions.
8064 no_builtin_flag=$lt_no_builtin_flag
8066 # Compiler flag to allow reflexive dlopens.
8067 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8069 # Compiler flag to generate shared objects directly from archives.
8070 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8072 # Compiler flag to generate thread-safe objects.
8073 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8075 # Library versioning type.
8076 version_type=$version_type
8078 # Format of library name prefix.
8079 libname_spec=$lt_libname_spec
8081 # List of archive names. First name is the real one, the rest are links.
8082 # The last name is the one that the linker finds with -lNAME.
8083 library_names_spec=$lt_library_names_spec
8085 # The coded name of the library, if different from the real name.
8086 soname_spec=$lt_soname_spec
8088 # Commands used to build and install an old-style archive.
8090 old_archive_cmds=$lt_old_archive_cmds
8091 old_postinstall_cmds=$lt_old_postinstall_cmds
8092 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8094 # Create an old-style archive from a shared archive.
8095 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8097 # Create a temporary old-style archive to link instead of a shared archive.
8098 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8100 # Commands used to build and install a shared archive.
8101 archive_cmds=$lt_archive_cmds
8102 archive_expsym_cmds=$lt_archive_expsym_cmds
8103 postinstall_cmds=$lt_postinstall_cmds
8104 postuninstall_cmds=$lt_postuninstall_cmds
8106 # Commands to strip libraries.
8107 old_striplib=$lt_old_striplib
8108 striplib=$lt_striplib
8110 # Method to check whether dependent libraries are shared objects.
8111 deplibs_check_method=$lt_deplibs_check_method
8113 # Command to use when deplibs_check_method == file_magic.
8114 file_magic_cmd=$lt_file_magic_cmd
8116 # Flag that allows shared libraries with undefined symbols to be built.
8117 allow_undefined_flag=$lt_allow_undefined_flag
8119 # Flag that forces no undefined symbols.
8120 no_undefined_flag=$lt_no_undefined_flag
8122 # Commands used to finish a libtool library installation in a directory.
8123 finish_cmds=$lt_finish_cmds
8125 # Same as above, but a single script fragment to be evaled but not shown.
8126 finish_eval=$lt_finish_eval
8128 # Take the output of nm and produce a listing of raw symbols and C names.
8129 global_symbol_pipe=$lt_global_symbol_pipe
8131 # Transform the output of nm in a proper C declaration
8132 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8134 # Transform the output of nm in a C name address pair
8135 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8137 # This is the shared library runtime path variable.
8138 runpath_var=$runpath_var
8140 # This is the shared library path variable.
8141 shlibpath_var=$shlibpath_var
8143 # Is shlibpath searched before the hard-coded library search path?
8144 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8146 # How to hardcode a shared library path into an executable.
8147 hardcode_action=$hardcode_action
8149 # Whether we should hardcode library paths into libraries.
8150 hardcode_into_libs=$hardcode_into_libs
8152 # Flag to hardcode \$libdir into a binary during linking.
8153 # This must work even if \$libdir does not exist.
8154 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8156 # Whether we need a single -rpath flag with a separated argument.
8157 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8159 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8161 hardcode_direct=$hardcode_direct
8163 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8165 hardcode_minus_L=$hardcode_minus_L
8167 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8168 # the resulting binary.
8169 hardcode_shlibpath_var=$hardcode_shlibpath_var
8171 # Variables whose values should be saved in libtool wrapper scripts and
8172 # restored at relink time.
8173 variables_saved_for_relink="$variables_saved_for_relink"
8175 # Whether libtool must link a program against all its dependency libraries.
8176 link_all_deplibs=$link_all_deplibs
8178 # Compile-time system search path for libraries
8179 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8181 # Run-time system search path for libraries
8182 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8184 # Fix the shell variable \$srcfile for the compiler.
8185 fix_srcfile_path="$fix_srcfile_path"
8187 # Set to yes if exported symbols are required.
8188 always_export_symbols=$always_export_symbols
8190 # The commands to list exported symbols.
8191 export_symbols_cmds=$lt_export_symbols_cmds
8193 # The commands to extract the exported symbol list from a shared archive.
8194 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8196 # Symbols that should not be listed in the preloaded symbols.
8197 exclude_expsyms=$lt_exclude_expsyms
8199 # Symbols that must always be exported.
8200 include_expsyms=$lt_include_expsyms
8202 # ### END LIBTOOL CONFIG
8208 cat <<\EOF >> "${ofile}T"
8210 # AIX sometimes has problems with the GCC collect2 program. For some
8211 # reason, if we set the COLLECT_NAMES environment variable, the problems
8212 # vanish in a puff of smoke.
8213 if test "X${COLLECT_NAMES+set}" != Xset; then
8215 export COLLECT_NAMES
8222 cygwin* | mingw* | pw32* | os2*)
8223 cat <<'EOF' >> "${ofile}T"
8224 # This is a source program that is used to create dlls on Windows
8225 # Don't remove nor modify the starting and closing comments
8226 # /* ltdll.c starts here */
8227 # #define WIN32_LEAN_AND_MEAN
8228 # #include <windows.h>
8229 # #undef WIN32_LEAN_AND_MEAN
8230 # #include <stdio.h>
8232 # #ifndef __CYGWIN__
8233 # # ifdef __CYGWIN32__
8234 # # define __CYGWIN__ __CYGWIN32__
8238 # #ifdef __cplusplus
8241 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8242 # #ifdef __cplusplus
8247 # #include <cygwin/cygwin_dll.h>
8248 # DECLARE_CYGWIN_DLL( DllMain );
8250 # HINSTANCE __hDllInstance_base;
8253 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8255 # __hDllInstance_base = hInst;
8258 # /* ltdll.c ends here */
8259 # This is a source program that is used to create import libraries
8260 # on Windows for dlls which lack them. Don't remove nor modify the
8261 # starting and closing comments
8262 # /* impgen.c starts here */
8263 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8265 # This file is part of GNU libtool.
8267 # This program is free software; you can redistribute it and/or modify
8268 # it under the terms of the GNU General Public License as published by
8269 # the Free Software Foundation; either version 2 of the License, or
8270 # (at your option) any later version.
8272 # This program is distributed in the hope that it will be useful,
8273 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8274 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8275 # GNU General Public License for more details.
8277 # You should have received a copy of the GNU General Public License
8278 # along with this program; if not, write to the Free Software
8279 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8282 # #include <stdio.h> /* for printf() */
8283 # #include <unistd.h> /* for open(), lseek(), read() */
8284 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8285 # #include <string.h> /* for strdup() */
8287 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8289 # #define O_BINARY 0
8292 # static unsigned int
8293 # pe_get16 (fd, offset)
8297 # unsigned char b[2];
8298 # lseek (fd, offset, SEEK_SET);
8300 # return b[0] + (b[1]<<8);
8303 # static unsigned int
8304 # pe_get32 (fd, offset)
8308 # unsigned char b[4];
8309 # lseek (fd, offset, SEEK_SET);
8311 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8314 # static unsigned int
8318 # unsigned char *b = ptr;
8319 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8328 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8329 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8330 # unsigned long name_rvas, nexp;
8331 # unsigned char *expdata, *erva;
8332 # char *filename, *dll_name;
8334 # filename = argv[1];
8336 # dll = open(filename, O_RDONLY|O_BINARY);
8340 # dll_name = filename;
8342 # for (i=0; filename[i]; i++)
8343 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8344 # dll_name = filename + i +1;
8346 # pe_header_offset = pe_get32 (dll, 0x3c);
8347 # opthdr_ofs = pe_header_offset + 4 + 20;
8348 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8350 # if (num_entries < 1) /* no exports */
8353 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8354 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8355 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8356 # secptr = (pe_header_offset + 4 + 20 +
8357 # pe_get16 (dll, pe_header_offset + 4 + 16));
8360 # for (i = 0; i < nsections; i++)
8363 # unsigned long secptr1 = secptr + 40 * i;
8364 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8365 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8366 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8367 # lseek(dll, secptr1, SEEK_SET);
8368 # read(dll, sname, 8);
8369 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8371 # expptr = fptr + (export_rva - vaddr);
8372 # if (export_rva + export_size > vaddr + vsize)
8373 # export_size = vsize - (export_rva - vaddr);
8378 # expdata = (unsigned char*)malloc(export_size);
8379 # lseek (dll, expptr, SEEK_SET);
8380 # read (dll, expdata, export_size);
8381 # erva = expdata - export_rva;
8383 # nexp = pe_as32 (expdata+24);
8384 # name_rvas = pe_as32 (expdata+32);
8386 # printf ("EXPORTS\n");
8387 # for (i = 0; i<nexp; i++)
8389 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8390 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8395 # /* impgen.c ends here */
8401 # We use sed instead of cat because bash on DJGPP gets confused if
8402 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8403 # text mode, it properly converts lines to CR/LF. This bash problem
8404 # is reportedly fixed, but why not run on old versions too?
8405 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8407 mv -f "${ofile}T" "$ofile" || \
8408 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8418 # This can be used to rebuild libtool when needed
8419 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8421 # Always use our own libtool.
8422 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8424 # Prevent multiple expansion
8428 # Check whether --enable-largefile was given.
8429 if test "${enable_largefile+set}" = set; then
8430 enableval=$enable_largefile;
8433 if test "$enable_largefile" != no; then
8435 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
8436 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
8437 if test "${ac_cv_sys_largefile_CC+set}" = set; then
8438 echo $ECHO_N "(cached) $ECHO_C" >&6
8440 ac_cv_sys_largefile_CC=no
8441 if test "$GCC" != yes; then
8444 # IRIX 6.2 and later do not support large files by default,
8445 # so use the C compiler's -n32 option if that helps.
8446 cat >conftest.$ac_ext <<_ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8452 #include <sys/types.h>
8453 /* Check that off_t can represent 2**63 - 1 correctly.
8454 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8455 since some C++ compilers masquerading as C compilers
8456 incorrectly reject 9223372036854775807. */
8457 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8458 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8459 && LARGE_OFF_T % 2147483647 == 1)
8469 rm -f conftest.$ac_objext
8470 if { (ac_try="$ac_compile"
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476 (eval "$ac_compile") 2>conftest.er1
8478 grep -v '^ *+' conftest.er1 >conftest.err
8480 cat conftest.err >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } && {
8483 test -z "$ac_c_werror_flag" ||
8484 test ! -s conftest.err
8485 } && test -s conftest.$ac_objext; then
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8494 rm -f core conftest.err conftest.$ac_objext
8496 rm -f conftest.$ac_objext
8497 if { (ac_try="$ac_compile"
8499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500 *) ac_try_echo=$ac_try;;
8502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8503 (eval "$ac_compile") 2>conftest.er1
8505 grep -v '^ *+' conftest.er1 >conftest.err
8507 cat conftest.err >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); } && {
8510 test -z "$ac_c_werror_flag" ||
8511 test ! -s conftest.err
8512 } && test -s conftest.$ac_objext; then
8513 ac_cv_sys_largefile_CC=' -n32'; break
8515 echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8521 rm -f core conftest.err conftest.$ac_objext
8525 rm -f conftest.$ac_ext
8528 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
8529 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
8530 if test "$ac_cv_sys_largefile_CC" != no; then
8531 CC=$CC$ac_cv_sys_largefile_CC
8534 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8535 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
8536 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8540 cat >conftest.$ac_ext <<_ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8546 #include <sys/types.h>
8547 /* Check that off_t can represent 2**63 - 1 correctly.
8548 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8549 since some C++ compilers masquerading as C compilers
8550 incorrectly reject 9223372036854775807. */
8551 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8552 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8553 && LARGE_OFF_T % 2147483647 == 1)
8563 rm -f conftest.$ac_objext
8564 if { (ac_try="$ac_compile"
8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570 (eval "$ac_compile") 2>conftest.er1
8572 grep -v '^ *+' conftest.er1 >conftest.err
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } && {
8577 test -z "$ac_c_werror_flag" ||
8578 test ! -s conftest.err
8579 } && test -s conftest.$ac_objext; then
8580 ac_cv_sys_file_offset_bits=no; break
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589 cat >conftest.$ac_ext <<_ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8595 #define _FILE_OFFSET_BITS 64
8596 #include <sys/types.h>
8597 /* Check that off_t can represent 2**63 - 1 correctly.
8598 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8599 since some C++ compilers masquerading as C compilers
8600 incorrectly reject 9223372036854775807. */
8601 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8602 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8603 && LARGE_OFF_T % 2147483647 == 1)
8613 rm -f conftest.$ac_objext
8614 if { (ac_try="$ac_compile"
8616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617 *) ac_try_echo=$ac_try;;
8619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620 (eval "$ac_compile") 2>conftest.er1
8622 grep -v '^ *+' conftest.er1 >conftest.err
8624 cat conftest.err >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); } && {
8627 test -z "$ac_c_werror_flag" ||
8628 test ! -s conftest.err
8629 } && test -s conftest.$ac_objext; then
8630 ac_cv_sys_file_offset_bits=64; break
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639 ac_cv_sys_file_offset_bits=unknown
8643 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8644 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
8645 case $ac_cv_sys_file_offset_bits in #(
8648 cat >>confdefs.h <<_ACEOF
8649 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8654 if test $ac_cv_sys_file_offset_bits = unknown; then
8655 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
8656 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
8657 if test "${ac_cv_sys_large_files+set}" = set; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8661 cat >conftest.$ac_ext <<_ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667 #include <sys/types.h>
8668 /* Check that off_t can represent 2**63 - 1 correctly.
8669 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8670 since some C++ compilers masquerading as C compilers
8671 incorrectly reject 9223372036854775807. */
8672 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8673 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8674 && LARGE_OFF_T % 2147483647 == 1)
8684 rm -f conftest.$ac_objext
8685 if { (ac_try="$ac_compile"
8687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688 *) ac_try_echo=$ac_try;;
8690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691 (eval "$ac_compile") 2>conftest.er1
8693 grep -v '^ *+' conftest.er1 >conftest.err
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } && {
8698 test -z "$ac_c_werror_flag" ||
8699 test ! -s conftest.err
8700 } && test -s conftest.$ac_objext; then
8701 ac_cv_sys_large_files=no; break
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710 cat >conftest.$ac_ext <<_ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8716 #define _LARGE_FILES 1
8717 #include <sys/types.h>
8718 /* Check that off_t can represent 2**63 - 1 correctly.
8719 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8720 since some C++ compilers masquerading as C compilers
8721 incorrectly reject 9223372036854775807. */
8722 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8723 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8724 && LARGE_OFF_T % 2147483647 == 1)
8734 rm -f conftest.$ac_objext
8735 if { (ac_try="$ac_compile"
8737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8738 *) ac_try_echo=$ac_try;;
8740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8741 (eval "$ac_compile") 2>conftest.er1
8743 grep -v '^ *+' conftest.er1 >conftest.err
8745 cat conftest.err >&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); } && {
8748 test -z "$ac_c_werror_flag" ||
8749 test ! -s conftest.err
8750 } && test -s conftest.$ac_objext; then
8751 ac_cv_sys_large_files=1; break
8753 echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8760 ac_cv_sys_large_files=unknown
8764 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8765 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
8766 case $ac_cv_sys_large_files in #(
8769 cat >>confdefs.h <<_ACEOF
8770 #define _LARGE_FILES $ac_cv_sys_large_files
8778 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8779 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
8780 if test "${ac_cv_sys_largefile_source+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8784 cat >conftest.$ac_ext <<_ACEOF
8787 cat confdefs.h >>conftest.$ac_ext
8788 cat >>conftest.$ac_ext <<_ACEOF
8789 /* end confdefs.h. */
8794 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
8799 rm -f conftest.$ac_objext conftest$ac_exeext
8800 if { (ac_try="$ac_link"
8802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8803 *) ac_try_echo=$ac_try;;
8805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8806 (eval "$ac_link") 2>conftest.er1
8808 grep -v '^ *+' conftest.er1 >conftest.err
8810 cat conftest.err >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } && {
8813 test -z "$ac_c_werror_flag" ||
8814 test ! -s conftest.err
8815 } && test -s conftest$ac_exeext &&
8816 $as_test_x conftest$ac_exeext; then
8817 ac_cv_sys_largefile_source=no; break
8819 echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8826 conftest$ac_exeext conftest.$ac_ext
8827 cat >conftest.$ac_ext <<_ACEOF
8830 cat confdefs.h >>conftest.$ac_ext
8831 cat >>conftest.$ac_ext <<_ACEOF
8832 /* end confdefs.h. */
8833 #define _LARGEFILE_SOURCE 1
8838 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
8843 rm -f conftest.$ac_objext conftest$ac_exeext
8844 if { (ac_try="$ac_link"
8846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8847 *) ac_try_echo=$ac_try;;
8849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8850 (eval "$ac_link") 2>conftest.er1
8852 grep -v '^ *+' conftest.er1 >conftest.err
8854 cat conftest.err >&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } && {
8857 test -z "$ac_c_werror_flag" ||
8858 test ! -s conftest.err
8859 } && test -s conftest$ac_exeext &&
8860 $as_test_x conftest$ac_exeext; then
8861 ac_cv_sys_largefile_source=1; break
8863 echo "$as_me: failed program was:" >&5
8864 sed 's/^/| /' conftest.$ac_ext >&5
8869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8870 conftest$ac_exeext conftest.$ac_ext
8871 ac_cv_sys_largefile_source=unknown
8875 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8876 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
8877 case $ac_cv_sys_largefile_source in #(
8880 cat >>confdefs.h <<_ACEOF
8881 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8887 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8888 # in glibc 2.1.3, but that breaks too many other things.
8889 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8890 if test $ac_cv_sys_largefile_source != unknown; then
8892 cat >>confdefs.h <<\_ACEOF
8893 #define HAVE_FSEEKO 1
8905 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8906 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8907 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8908 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8912 cat >conftest.$ac_ext <<_ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8918 #include <sys/types.h>
8930 rm -f conftest.$ac_objext
8931 if { (ac_try="$ac_compile"
8933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934 *) ac_try_echo=$ac_try;;
8936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8937 (eval "$ac_compile") 2>conftest.er1
8939 grep -v '^ *+' conftest.er1 >conftest.err
8941 cat conftest.err >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } && {
8944 test -z "$ac_c_werror_flag" ||
8945 test ! -s conftest.err
8946 } && test -s conftest.$ac_objext; then
8947 eval "$as_ac_Header=yes"
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8952 eval "$as_ac_Header=no"
8955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8957 ac_res=`eval echo '${'$as_ac_Header'}'`
8958 { echo "$as_me:$LINENO: result: $ac_res" >&5
8959 echo "${ECHO_T}$ac_res" >&6; }
8960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8961 cat >>confdefs.h <<_ACEOF
8962 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8965 ac_header_dirent=$ac_hdr; break
8969 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8970 if test $ac_header_dirent = dirent.h; then
8971 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8972 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8973 if test "${ac_cv_search_opendir+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 ac_func_search_save_LIBS=$LIBS
8977 cat >conftest.$ac_ext <<_ACEOF
8980 cat confdefs.h >>conftest.$ac_ext
8981 cat >>conftest.$ac_ext <<_ACEOF
8982 /* end confdefs.h. */
8984 /* Override any GCC internal prototype to avoid an error.
8985 Use char because int might match the return type of a GCC
8986 builtin and then its argument prototype would still apply. */
8999 for ac_lib in '' dir; do
9000 if test -z "$ac_lib"; then
9001 ac_res="none required"
9004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9006 rm -f conftest.$ac_objext conftest$ac_exeext
9007 if { (ac_try="$ac_link"
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013 (eval "$ac_link") 2>conftest.er1
9015 grep -v '^ *+' conftest.er1 >conftest.err
9017 cat conftest.err >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } && {
9020 test -z "$ac_c_werror_flag" ||
9021 test ! -s conftest.err
9022 } && test -s conftest$ac_exeext &&
9023 $as_test_x conftest$ac_exeext; then
9024 ac_cv_search_opendir=$ac_res
9026 echo "$as_me: failed program was:" >&5
9027 sed 's/^/| /' conftest.$ac_ext >&5
9032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9034 if test "${ac_cv_search_opendir+set}" = set; then
9038 if test "${ac_cv_search_opendir+set}" = set; then
9041 ac_cv_search_opendir=no
9044 LIBS=$ac_func_search_save_LIBS
9046 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9047 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9048 ac_res=$ac_cv_search_opendir
9049 if test "$ac_res" != no; then
9050 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9055 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9056 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9057 if test "${ac_cv_search_opendir+set}" = set; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9060 ac_func_search_save_LIBS=$LIBS
9061 cat >conftest.$ac_ext <<_ACEOF
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9068 /* Override any GCC internal prototype to avoid an error.
9069 Use char because int might match the return type of a GCC
9070 builtin and then its argument prototype would still apply. */
9083 for ac_lib in '' x; do
9084 if test -z "$ac_lib"; then
9085 ac_res="none required"
9088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9090 rm -f conftest.$ac_objext conftest$ac_exeext
9091 if { (ac_try="$ac_link"
9093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9094 *) ac_try_echo=$ac_try;;
9096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9097 (eval "$ac_link") 2>conftest.er1
9099 grep -v '^ *+' conftest.er1 >conftest.err
9101 cat conftest.err >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } && {
9104 test -z "$ac_c_werror_flag" ||
9105 test ! -s conftest.err
9106 } && test -s conftest$ac_exeext &&
9107 $as_test_x conftest$ac_exeext; then
9108 ac_cv_search_opendir=$ac_res
9110 echo "$as_me: failed program was:" >&5
9111 sed 's/^/| /' conftest.$ac_ext >&5
9116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9118 if test "${ac_cv_search_opendir+set}" = set; then
9122 if test "${ac_cv_search_opendir+set}" = set; then
9125 ac_cv_search_opendir=no
9128 LIBS=$ac_func_search_save_LIBS
9130 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9131 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9132 ac_res=$ac_cv_search_opendir
9133 if test "$ac_res" != no; then
9134 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9140 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9141 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9142 if test "${ac_cv_header_stdc+set}" = set; then
9143 echo $ECHO_N "(cached) $ECHO_C" >&6
9145 cat >conftest.$ac_ext <<_ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h. */
9164 rm -f conftest.$ac_objext
9165 if { (ac_try="$ac_compile"
9167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9168 *) ac_try_echo=$ac_try;;
9170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9171 (eval "$ac_compile") 2>conftest.er1
9173 grep -v '^ *+' conftest.er1 >conftest.err
9175 cat conftest.err >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); } && {
9178 test -z "$ac_c_werror_flag" ||
9179 test ! -s conftest.err
9180 } && test -s conftest.$ac_objext; then
9181 ac_cv_header_stdc=yes
9183 echo "$as_me: failed program was:" >&5
9184 sed 's/^/| /' conftest.$ac_ext >&5
9186 ac_cv_header_stdc=no
9189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9191 if test $ac_cv_header_stdc = yes; then
9192 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9193 cat >conftest.$ac_ext <<_ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9203 $EGREP "memchr" >/dev/null 2>&1; then
9206 ac_cv_header_stdc=no
9212 if test $ac_cv_header_stdc = yes; then
9213 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9214 cat >conftest.$ac_ext <<_ACEOF
9217 cat confdefs.h >>conftest.$ac_ext
9218 cat >>conftest.$ac_ext <<_ACEOF
9219 /* end confdefs.h. */
9223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9224 $EGREP "free" >/dev/null 2>&1; then
9227 ac_cv_header_stdc=no
9233 if test $ac_cv_header_stdc = yes; then
9234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9235 if test "$cross_compiling" = yes; then
9238 cat >conftest.$ac_ext <<_ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9246 #if ((' ' & 0x0FF) == 0x020)
9247 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9248 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9250 # define ISLOWER(c) \
9251 (('a' <= (c) && (c) <= 'i') \
9252 || ('j' <= (c) && (c) <= 'r') \
9253 || ('s' <= (c) && (c) <= 'z'))
9254 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9257 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9262 for (i = 0; i < 256; i++)
9263 if (XOR (islower (i), ISLOWER (i))
9264 || toupper (i) != TOUPPER (i))
9269 rm -f conftest$ac_exeext
9270 if { (ac_try="$ac_link"
9272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273 *) ac_try_echo=$ac_try;;
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276 (eval "$ac_link") 2>&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9280 { (case "(($ac_try" in
9281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9282 *) ac_try_echo=$ac_try;;
9284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9285 (eval "$ac_try") 2>&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; }; then
9291 echo "$as_me: program exited with status $ac_status" >&5
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9296 ac_cv_header_stdc=no
9298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9304 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9305 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9306 if test $ac_cv_header_stdc = yes; then
9308 cat >>confdefs.h <<\_ACEOF
9309 #define STDC_HEADERS 1
9314 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
9315 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
9316 if test "${ac_cv_func_closedir_void+set}" = set; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9319 if test "$cross_compiling" = yes; then
9320 ac_cv_func_closedir_void=yes
9322 cat >conftest.$ac_ext <<_ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9328 $ac_includes_default
9329 #include <$ac_header_dirent>
9337 return closedir (opendir (".")) != 0;
9342 rm -f conftest$ac_exeext
9343 if { (ac_try="$ac_link"
9345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346 *) ac_try_echo=$ac_try;;
9348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9349 (eval "$ac_link") 2>&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9353 { (case "(($ac_try" in
9354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9355 *) ac_try_echo=$ac_try;;
9357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358 (eval "$ac_try") 2>&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; }; then
9362 ac_cv_func_closedir_void=no
9364 echo "$as_me: program exited with status $ac_status" >&5
9365 echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9369 ac_cv_func_closedir_void=yes
9371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9376 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
9377 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
9378 if test $ac_cv_func_closedir_void = yes; then
9380 cat >>confdefs.h <<\_ACEOF
9381 #define CLOSEDIR_VOID 1
9396 for ac_header in assert.h float.h limits.h memory.h pwd.h stdlib.h \
9397 string.h strings.h sys/param.h unistd.h
9399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9406 ac_res=`eval echo '${'$as_ac_Header'}'`
9407 { echo "$as_me:$LINENO: result: $ac_res" >&5
9408 echo "${ECHO_T}$ac_res" >&6; }
9410 # Is the header compilable?
9411 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9413 cat >conftest.$ac_ext <<_ACEOF
9416 cat confdefs.h >>conftest.$ac_ext
9417 cat >>conftest.$ac_ext <<_ACEOF
9418 /* end confdefs.h. */
9419 $ac_includes_default
9420 #include <$ac_header>
9422 rm -f conftest.$ac_objext
9423 if { (ac_try="$ac_compile"
9425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9429 (eval "$ac_compile") 2>conftest.er1
9431 grep -v '^ *+' conftest.er1 >conftest.err
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } && {
9436 test -z "$ac_c_werror_flag" ||
9437 test ! -s conftest.err
9438 } && test -s conftest.$ac_objext; then
9439 ac_header_compiler=yes
9441 echo "$as_me: failed program was:" >&5
9442 sed 's/^/| /' conftest.$ac_ext >&5
9444 ac_header_compiler=no
9447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9448 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9449 echo "${ECHO_T}$ac_header_compiler" >&6; }
9451 # Is the header present?
9452 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9454 cat >conftest.$ac_ext <<_ACEOF
9457 cat confdefs.h >>conftest.$ac_ext
9458 cat >>conftest.$ac_ext <<_ACEOF
9459 /* end confdefs.h. */
9460 #include <$ac_header>
9462 if { (ac_try="$ac_cpp conftest.$ac_ext"
9464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9465 *) ac_try_echo=$ac_try;;
9467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9470 grep -v '^ *+' conftest.er1 >conftest.err
9472 cat conftest.err >&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } >/dev/null && {
9475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9476 test ! -s conftest.err
9478 ac_header_preproc=yes
9480 echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9483 ac_header_preproc=no
9486 rm -f conftest.err conftest.$ac_ext
9487 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9488 echo "${ECHO_T}$ac_header_preproc" >&6; }
9490 # So? What about this header?
9491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9497 ac_header_preproc=yes
9500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9507 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9513 ## --------------------------------- ##
9514 ## Report this to tex-k@mail.tug.org ##
9515 ## --------------------------------- ##
9517 ) | sed "s/^/$as_me: WARNING: /" >&2
9520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9523 echo $ECHO_N "(cached) $ECHO_C" >&6
9525 eval "$as_ac_Header=\$ac_header_preproc"
9527 ac_res=`eval echo '${'$as_ac_Header'}'`
9528 { echo "$as_me:$LINENO: result: $ac_res" >&5
9529 echo "${ECHO_T}$ac_res" >&6; }
9532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9533 cat >>confdefs.h <<_ACEOF
9534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9541 { echo "$as_me:$LINENO: checking whether strstr is declared" >&5
9542 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6; }
9543 if test "${ac_cv_have_decl_strstr+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 cat >conftest.$ac_ext <<_ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 $ac_includes_default
9564 rm -f conftest.$ac_objext
9565 if { (ac_try="$ac_compile"
9567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9568 *) ac_try_echo=$ac_try;;
9570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9571 (eval "$ac_compile") 2>conftest.er1
9573 grep -v '^ *+' conftest.er1 >conftest.err
9575 cat conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } && {
9578 test -z "$ac_c_werror_flag" ||
9579 test ! -s conftest.err
9580 } && test -s conftest.$ac_objext; then
9581 ac_cv_have_decl_strstr=yes
9583 echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9586 ac_cv_have_decl_strstr=no
9589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9591 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
9592 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6; }
9593 if test $ac_cv_have_decl_strstr = yes; then
9595 cat >>confdefs.h <<_ACEOF
9596 #define HAVE_DECL_STRSTR 1
9601 cat >>confdefs.h <<_ACEOF
9602 #define HAVE_DECL_STRSTR 0
9611 for ac_func in putenv
9613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9614 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9616 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9619 cat >conftest.$ac_ext <<_ACEOF
9622 cat confdefs.h >>conftest.$ac_ext
9623 cat >>conftest.$ac_ext <<_ACEOF
9624 /* end confdefs.h. */
9625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9627 #define $ac_func innocuous_$ac_func
9629 /* System header to define __stub macros and hopefully few prototypes,
9630 which can conflict with char $ac_func (); below.
9631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9632 <limits.h> exists even on freestanding compilers. */
9635 # include <limits.h>
9637 # include <assert.h>
9642 /* Override any GCC internal prototype to avoid an error.
9643 Use char because int might match the return type of a GCC
9644 builtin and then its argument prototype would still apply. */
9649 /* The GNU C library defines this for functions which it implements
9650 to always fail with ENOSYS. Some functions are actually named
9651 something starting with __ and the normal name is an alias. */
9652 #if defined __stub_$ac_func || defined __stub___$ac_func
9664 rm -f conftest.$ac_objext conftest$ac_exeext
9665 if { (ac_try="$ac_link"
9667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668 *) ac_try_echo=$ac_try;;
9670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9671 (eval "$ac_link") 2>conftest.er1
9673 grep -v '^ *+' conftest.er1 >conftest.err
9675 cat conftest.err >&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); } && {
9678 test -z "$ac_c_werror_flag" ||
9679 test ! -s conftest.err
9680 } && test -s conftest$ac_exeext &&
9681 $as_test_x conftest$ac_exeext; then
9682 eval "$as_ac_var=yes"
9684 echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9687 eval "$as_ac_var=no"
9690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9691 conftest$ac_exeext conftest.$ac_ext
9693 ac_res=`eval echo '${'$as_ac_var'}'`
9694 { echo "$as_me:$LINENO: result: $ac_res" >&5
9695 echo "${ECHO_T}$ac_res" >&6; }
9696 if test `eval echo '${'$as_ac_var'}'` = yes; then
9697 cat >>confdefs.h <<_ACEOF
9698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9702 LTLIBOBJS="$LTLIBOBJS putenv.lo"
9707 for ac_func in strcasecmp
9709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 cat >conftest.$ac_ext <<_ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9723 #define $ac_func innocuous_$ac_func
9725 /* System header to define __stub macros and hopefully few prototypes,
9726 which can conflict with char $ac_func (); below.
9727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9728 <limits.h> exists even on freestanding compilers. */
9731 # include <limits.h>
9733 # include <assert.h>
9738 /* Override any GCC internal prototype to avoid an error.
9739 Use char because int might match the return type of a GCC
9740 builtin and then its argument prototype would still apply. */
9745 /* The GNU C library defines this for functions which it implements
9746 to always fail with ENOSYS. Some functions are actually named
9747 something starting with __ and the normal name is an alias. */
9748 #if defined __stub_$ac_func || defined __stub___$ac_func
9760 rm -f conftest.$ac_objext conftest$ac_exeext
9761 if { (ac_try="$ac_link"
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_link") 2>conftest.er1
9769 grep -v '^ *+' conftest.er1 >conftest.err
9771 cat conftest.err >&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); } && {
9774 test -z "$ac_c_werror_flag" ||
9775 test ! -s conftest.err
9776 } && test -s conftest$ac_exeext &&
9777 $as_test_x conftest$ac_exeext; then
9778 eval "$as_ac_var=yes"
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9783 eval "$as_ac_var=no"
9786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9787 conftest$ac_exeext conftest.$ac_ext
9789 ac_res=`eval echo '${'$as_ac_var'}'`
9790 { echo "$as_me:$LINENO: result: $ac_res" >&5
9791 echo "${ECHO_T}$ac_res" >&6; }
9792 if test `eval echo '${'$as_ac_var'}'` = yes; then
9793 cat >>confdefs.h <<_ACEOF
9794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9798 LTLIBOBJS="$LTLIBOBJS strcasecmp.lo"
9803 for ac_func in strtol
9805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9806 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9808 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9809 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 cat >conftest.$ac_ext <<_ACEOF
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h. */
9817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9819 #define $ac_func innocuous_$ac_func
9821 /* System header to define __stub macros and hopefully few prototypes,
9822 which can conflict with char $ac_func (); below.
9823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9824 <limits.h> exists even on freestanding compilers. */
9827 # include <limits.h>
9829 # include <assert.h>
9834 /* Override any GCC internal prototype to avoid an error.
9835 Use char because int might match the return type of a GCC
9836 builtin and then its argument prototype would still apply. */
9841 /* The GNU C library defines this for functions which it implements
9842 to always fail with ENOSYS. Some functions are actually named
9843 something starting with __ and the normal name is an alias. */
9844 #if defined __stub_$ac_func || defined __stub___$ac_func
9856 rm -f conftest.$ac_objext conftest$ac_exeext
9857 if { (ac_try="$ac_link"
9859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9860 *) ac_try_echo=$ac_try;;
9862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9863 (eval "$ac_link") 2>conftest.er1
9865 grep -v '^ *+' conftest.er1 >conftest.err
9867 cat conftest.err >&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } && {
9870 test -z "$ac_c_werror_flag" ||
9871 test ! -s conftest.err
9872 } && test -s conftest$ac_exeext &&
9873 $as_test_x conftest$ac_exeext; then
9874 eval "$as_ac_var=yes"
9876 echo "$as_me: failed program was:" >&5
9877 sed 's/^/| /' conftest.$ac_ext >&5
9879 eval "$as_ac_var=no"
9882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9883 conftest$ac_exeext conftest.$ac_ext
9885 ac_res=`eval echo '${'$as_ac_var'}'`
9886 { echo "$as_me:$LINENO: result: $ac_res" >&5
9887 echo "${ECHO_T}$ac_res" >&6; }
9888 if test `eval echo '${'$as_ac_var'}'` = yes; then
9889 cat >>confdefs.h <<_ACEOF
9890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9894 LTLIBOBJS="$LTLIBOBJS strtol.lo"
9899 for ac_func in strstr
9901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 cat >conftest.$ac_ext <<_ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h. */
9913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9915 #define $ac_func innocuous_$ac_func
9917 /* System header to define __stub macros and hopefully few prototypes,
9918 which can conflict with char $ac_func (); below.
9919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9920 <limits.h> exists even on freestanding compilers. */
9923 # include <limits.h>
9925 # include <assert.h>
9930 /* Override any GCC internal prototype to avoid an error.
9931 Use char because int might match the return type of a GCC
9932 builtin and then its argument prototype would still apply. */
9937 /* The GNU C library defines this for functions which it implements
9938 to always fail with ENOSYS. Some functions are actually named
9939 something starting with __ and the normal name is an alias. */
9940 #if defined __stub_$ac_func || defined __stub___$ac_func
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (ac_try="$ac_link"
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959 (eval "$ac_link") 2>conftest.er1
9961 grep -v '^ *+' conftest.er1 >conftest.err
9963 cat conftest.err >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } && {
9966 test -z "$ac_c_werror_flag" ||
9967 test ! -s conftest.err
9968 } && test -s conftest$ac_exeext &&
9969 $as_test_x conftest$ac_exeext; then
9970 eval "$as_ac_var=yes"
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9975 eval "$as_ac_var=no"
9978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9979 conftest$ac_exeext conftest.$ac_ext
9981 ac_res=`eval echo '${'$as_ac_var'}'`
9982 { echo "$as_me:$LINENO: result: $ac_res" >&5
9983 echo "${ECHO_T}$ac_res" >&6; }
9984 if test `eval echo '${'$as_ac_var'}'` = yes; then
9985 cat >>confdefs.h <<_ACEOF
9986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9990 LTLIBOBJS="$LTLIBOBJS strstr.lo"
10007 for ac_func in bcmp bcopy bzero getcwd getwd index memcmp memcpy rindex strchr strrchr
10009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10010 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10015 cat >conftest.$ac_ext <<_ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h. */
10021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10023 #define $ac_func innocuous_$ac_func
10025 /* System header to define __stub macros and hopefully few prototypes,
10026 which can conflict with char $ac_func (); below.
10027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10028 <limits.h> exists even on freestanding compilers. */
10031 # include <limits.h>
10033 # include <assert.h>
10038 /* Override any GCC internal prototype to avoid an error.
10039 Use char because int might match the return type of a GCC
10040 builtin and then its argument prototype would still apply. */
10045 /* The GNU C library defines this for functions which it implements
10046 to always fail with ENOSYS. Some functions are actually named
10047 something starting with __ and the normal name is an alias. */
10048 #if defined __stub_$ac_func || defined __stub___$ac_func
10055 return $ac_func ();
10060 rm -f conftest.$ac_objext conftest$ac_exeext
10061 if { (ac_try="$ac_link"
10062 case "(($ac_try" in
10063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064 *) ac_try_echo=$ac_try;;
10066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067 (eval "$ac_link") 2>conftest.er1
10069 grep -v '^ *+' conftest.er1 >conftest.err
10071 cat conftest.err >&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } && {
10074 test -z "$ac_c_werror_flag" ||
10075 test ! -s conftest.err
10076 } && test -s conftest$ac_exeext &&
10077 $as_test_x conftest$ac_exeext; then
10078 eval "$as_ac_var=yes"
10080 echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10083 eval "$as_ac_var=no"
10086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10087 conftest$ac_exeext conftest.$ac_ext
10089 ac_res=`eval echo '${'$as_ac_var'}'`
10090 { echo "$as_me:$LINENO: result: $ac_res" >&5
10091 echo "${ECHO_T}$ac_res" >&6; }
10092 if test `eval echo '${'$as_ac_var'}'` = yes; then
10093 cat >>confdefs.h <<_ACEOF
10094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10101 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10102 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
10103 if test "${ac_cv_c_const+set}" = set; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10106 cat >conftest.$ac_ext <<_ACEOF
10109 cat confdefs.h >>conftest.$ac_ext
10110 cat >>conftest.$ac_ext <<_ACEOF
10111 /* end confdefs.h. */
10116 /* FIXME: Include the comments suggested by Paul. */
10117 #ifndef __cplusplus
10118 /* Ultrix mips cc rejects this. */
10119 typedef int charset[2];
10121 /* SunOS 4.1.1 cc rejects this. */
10122 char const *const *pcpcc;
10124 /* NEC SVR4.0.2 mips cc rejects this. */
10125 struct point {int x, y;};
10126 static struct point const zero = {0,0};
10127 /* AIX XL C 1.02.0.0 rejects this.
10128 It does not let you subtract one const X* pointer from another in
10129 an arm of an if-expression whose if-part is not a constant
10131 const char *g = "string";
10132 pcpcc = &g + (g ? g-g : 0);
10133 /* HPUX 7.0 cc rejects these. */
10135 ppc = (char**) pcpcc;
10136 pcpcc = (char const *const *) ppc;
10137 { /* SCO 3.2v4 cc rejects this. */
10139 char const *s = 0 ? (char *) 0 : (char const *) 0;
10144 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10145 int x[] = {25, 17};
10146 const int *foo = &x[0];
10149 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10150 typedef const int *iptr;
10154 { /* AIX XL C 1.02.0.0 rejects this saying
10155 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10156 struct s { int j; const int *ap[3]; };
10157 struct s *b; b->j = 5;
10159 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10160 const int foo = 10;
10161 if (!foo) return 0;
10163 return !cs[0] && !zero.x;
10170 rm -f conftest.$ac_objext
10171 if { (ac_try="$ac_compile"
10172 case "(($ac_try" in
10173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174 *) ac_try_echo=$ac_try;;
10176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177 (eval "$ac_compile") 2>conftest.er1
10179 grep -v '^ *+' conftest.er1 >conftest.err
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } && {
10184 test -z "$ac_c_werror_flag" ||
10185 test ! -s conftest.err
10186 } && test -s conftest.$ac_objext; then
10189 echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.$ac_ext >&5
10195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10197 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10198 echo "${ECHO_T}$ac_cv_c_const" >&6; }
10199 if test $ac_cv_c_const = no; then
10201 cat >>confdefs.h <<\_ACEOF
10208 # Check whether struct stat provides high-res time.
10209 { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
10210 echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
10211 if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 cat >conftest.$ac_ext <<_ACEOF
10217 cat confdefs.h >>conftest.$ac_ext
10218 cat >>conftest.$ac_ext <<_ACEOF
10219 /* end confdefs.h. */
10220 $ac_includes_default
10224 static struct stat ac_aggr;
10225 if (ac_aggr.st_mtim)
10231 rm -f conftest.$ac_objext
10232 if { (ac_try="$ac_compile"
10233 case "(($ac_try" in
10234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235 *) ac_try_echo=$ac_try;;
10237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238 (eval "$ac_compile") 2>conftest.er1
10240 grep -v '^ *+' conftest.er1 >conftest.err
10242 cat conftest.err >&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } && {
10245 test -z "$ac_c_werror_flag" ||
10246 test ! -s conftest.err
10247 } && test -s conftest.$ac_objext; then
10248 ac_cv_member_struct_stat_st_mtim=yes
10250 echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.$ac_ext >&5
10253 cat >conftest.$ac_ext <<_ACEOF
10256 cat confdefs.h >>conftest.$ac_ext
10257 cat >>conftest.$ac_ext <<_ACEOF
10258 /* end confdefs.h. */
10259 $ac_includes_default
10263 static struct stat ac_aggr;
10264 if (sizeof ac_aggr.st_mtim)
10270 rm -f conftest.$ac_objext
10271 if { (ac_try="$ac_compile"
10272 case "(($ac_try" in
10273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274 *) ac_try_echo=$ac_try;;
10276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10277 (eval "$ac_compile") 2>conftest.er1
10279 grep -v '^ *+' conftest.er1 >conftest.err
10281 cat conftest.err >&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } && {
10284 test -z "$ac_c_werror_flag" ||
10285 test ! -s conftest.err
10286 } && test -s conftest.$ac_objext; then
10287 ac_cv_member_struct_stat_st_mtim=yes
10289 echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.$ac_ext >&5
10292 ac_cv_member_struct_stat_st_mtim=no
10295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10300 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
10301 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
10302 if test $ac_cv_member_struct_stat_st_mtim = yes; then
10304 cat >>confdefs.h <<_ACEOF
10305 #define HAVE_STRUCT_STAT_ST_MTIM 1
10312 # Check whether prototypes work.
10313 { echo "$as_me:$LINENO: checking whether the compiler accepts prototypes" >&5
10314 echo $ECHO_N "checking whether the compiler accepts prototypes... $ECHO_C" >&6; }
10315 if test "${kb_cv_c_prototypes+set}" = set; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 cat >conftest.$ac_ext <<_ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10324 #include <stdarg.h>
10328 extern void foo(int i,...);
10333 rm -f conftest.$ac_objext
10334 if { (ac_try="$ac_compile"
10335 case "(($ac_try" in
10336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10337 *) ac_try_echo=$ac_try;;
10339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10340 (eval "$ac_compile") 2>conftest.er1
10342 grep -v '^ *+' conftest.er1 >conftest.err
10344 cat conftest.err >&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); } && {
10347 test -z "$ac_c_werror_flag" ||
10348 test ! -s conftest.err
10349 } && test -s conftest.$ac_objext; then
10350 kb_cv_c_prototypes=yes
10352 echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10355 kb_cv_c_prototypes=no
10358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10360 { echo "$as_me:$LINENO: result: $kb_cv_c_prototypes" >&5
10361 echo "${ECHO_T}$kb_cv_c_prototypes" >&6; }
10362 if test "$kb_cv_c_prototypes" = yes; then
10364 cat >>confdefs.h <<\_ACEOF
10365 #define HAVE_PROTOTYPES 1
10370 # This is a GNU libc invention.
10371 { echo "$as_me:$LINENO: checking whether program_invocation_name is predefined" >&5
10372 echo $ECHO_N "checking whether program_invocation_name is predefined... $ECHO_C" >&6; }
10373 if test "${kb_cv_var_program_inv_name+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 cat >conftest.$ac_ext <<_ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h. */
10386 extern char *program_invocation_name; program_invocation_name = "love";
10391 rm -f conftest.$ac_objext conftest$ac_exeext
10392 if { (ac_try="$ac_link"
10393 case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_link") 2>conftest.er1
10400 grep -v '^ *+' conftest.er1 >conftest.err
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } && {
10405 test -z "$ac_c_werror_flag" ||
10406 test ! -s conftest.err
10407 } && test -s conftest$ac_exeext &&
10408 $as_test_x conftest$ac_exeext; then
10409 kb_cv_var_program_inv_name=yes
10411 echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10414 kb_cv_var_program_inv_name=no
10417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10418 conftest$ac_exeext conftest.$ac_ext
10420 { echo "$as_me:$LINENO: result: $kb_cv_var_program_inv_name" >&5
10421 echo "${ECHO_T}$kb_cv_var_program_inv_name" >&6; }
10422 if test "$kb_cv_var_program_inv_name" = yes; then
10424 cat >>confdefs.h <<\_ACEOF
10425 #define HAVE_PROGRAM_INVOCATION_NAME 1
10430 if test $ac_cv_func_getcwd = yes; then
10431 # We only need to run this if we have getcwd.
10432 { echo "$as_me:$LINENO: checking whether getcwd uses fork or vfork" >&5
10433 echo $ECHO_N "checking whether getcwd uses fork or vfork... $ECHO_C" >&6; }
10434 if test "${kb_cv_func_getcwd_forks+set}" = set; then
10435 echo $ECHO_N "(cached) $ECHO_C" >&6
10437 if test "$cross_compiling" = yes; then
10438 kb_cv_func_getcwd_forks=no
10440 cat >conftest.$ac_ext <<_ACEOF
10443 cat confdefs.h >>conftest.$ac_ext
10444 cat >>conftest.$ac_ext <<_ACEOF
10445 /* end confdefs.h. */
10447 int fork() { exit(1); }
10448 int vfork() { exit(1); }
10449 extern char *getcwd();
10456 rm -f conftest$ac_exeext
10457 if { (ac_try="$ac_link"
10458 case "(($ac_try" in
10459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10460 *) ac_try_echo=$ac_try;;
10462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10463 (eval "$ac_link") 2>&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10467 { (case "(($ac_try" in
10468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10469 *) ac_try_echo=$ac_try;;
10471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10472 (eval "$ac_try") 2>&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; }; then
10476 kb_cv_func_getcwd_forks=no
10478 echo "$as_me: program exited with status $ac_status" >&5
10479 echo "$as_me: failed program was:" >&5
10480 sed 's/^/| /' conftest.$ac_ext >&5
10482 ( exit $ac_status )
10483 kb_cv_func_getcwd_forks=yes
10485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10490 { echo "$as_me:$LINENO: result: $kb_cv_func_getcwd_forks" >&5
10491 echo "${ECHO_T}$kb_cv_func_getcwd_forks" >&6; }
10492 if test $kb_cv_func_getcwd_forks = yes; then
10494 cat >>confdefs.h <<\_ACEOF
10495 #define GETCWD_FORKS 1
10501 # Common --with and --enable options.
10503 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10504 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
10505 # Check whether --enable-maintainer-mode was given.
10506 if test "${enable_maintainer_mode+set}" = set; then
10507 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10509 USE_MAINTAINER_MODE=no
10512 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10513 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
10514 if test "x$USE_MAINTAINER_MODE" = xyes; then
10522 { echo "$as_me:$LINENO: checking for loader (symbol LD)" >&5
10523 echo $ECHO_N "checking for loader (symbol LD)... $ECHO_C" >&6; }
10524 if test "${cf_cv_subst_LD+set}" = set; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10528 test -z "$LD" && LD=ld
10532 LD=${cf_cv_subst_LD}
10533 { echo "$as_me:$LINENO: result: $LD" >&5
10534 echo "${ECHO_T}$LD" >&6; }
10537 { echo "$as_me:$LINENO: checking for archiver (symbol AR)" >&5
10538 echo $ECHO_N "checking for archiver (symbol AR)... $ECHO_C" >&6; }
10539 if test "${cf_cv_subst_AR+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 test -z "$AR" && AR=ar
10547 AR=${cf_cv_subst_AR}
10548 { echo "$as_me:$LINENO: result: $AR" >&5
10549 echo "${ECHO_T}$AR" >&6; }
10552 { echo "$as_me:$LINENO: checking for archiver options (symbol ARFLAGS)" >&5
10553 echo $ECHO_N "checking for archiver options (symbol ARFLAGS)... $ECHO_C" >&6; }
10554 if test "${cf_cv_subst_ARFLAGS+set}" = set; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10558 test -z "$ARFLAGS" && ARFLAGS=rc
10559 cf_cv_subst_ARFLAGS=$ARFLAGS
10562 ARFLAGS=${cf_cv_subst_ARFLAGS}
10563 { echo "$as_me:$LINENO: result: $ARFLAGS" >&5
10564 echo "${ECHO_T}$ARFLAGS" >&6; }
10569 # Check whether --with-mktexmf-default was given.
10570 if test "${with_mktexmf_default+set}" = set; then
10571 withval=$with_mktexmf_default;
10573 with_mktexmf_default=yes
10577 # Check whether --with-mktexpk-default was given.
10578 if test "${with_mktexpk_default+set}" = set; then
10579 withval=$with_mktexpk_default;
10581 with_mktexpk_default=yes
10585 # Check whether --with-mktextfm-default was given.
10586 if test "${with_mktextfm_default+set}" = set; then
10587 withval=$with_mktextfm_default;
10589 with_mktextfm_default=yes
10593 # Check whether --with-mkocp-default was given.
10594 if test "${with_mkocp_default+set}" = set; then
10595 withval=$with_mkocp_default;
10597 with_mkocp_default=yes
10601 # Check whether --with-mkofm-default was given.
10602 if test "${with_mkofm_default+set}" = set; then
10603 withval=$with_mkofm_default;
10605 with_mkofm_default=yes
10609 # Check whether --with-mktexfmt-default was given.
10610 if test "${with_mktexfmt_default+set}" = set; then
10611 withval=$with_mktexfmt_default;
10615 # Check whether --with-mktextex-default was given.
10616 if test "${with_mktextex_default+set}" = set; then
10617 withval=$with_mktextex_default; with_mktextex_default=yes
10619 with_mktextex_default=no
10623 { echo "$as_me:$LINENO: checking where the main texmf tree is located" >&5
10624 echo $ECHO_N "checking where the main texmf tree is located... $ECHO_C" >&6; }
10626 */) prefix=`echo "$prefix" | sed 's@/*$@@'`;;
10629 if test "x$datadir" != 'x${prefix}/share'; then
10630 # First case, datadir is defined...
10631 eval p=\"$datadir\"
10632 # Unconditionally set the directory, but...
10633 texmfmain=`echo "$p/texmf" | sed 's,//*,/,g'`
10634 # ... do complain if it wasn't found.
10635 if test -d "$texmfmain"; then
10636 { echo "$as_me:$LINENO: result: \"$texmfmain\"" >&5
10637 echo "${ECHO_T}\"$texmfmain\"" >&6; }
10639 { echo "$as_me:$LINENO: result: not found" >&5
10640 echo "${ECHO_T}not found" >&6; }
10641 { echo "$as_me:$LINENO: WARNING: No texmf tree found at $texmfmain.
10642 *****************************************************************
10643 * Error: The main texmf tree was not found. *
10644 * If you do not have the files, you should be able to them from *
10645 * the same place you got these sources from, or from one of the *
10647 *****************************************************************
10649 echo "$as_me: WARNING: No texmf tree found at $texmfmain.
10650 *****************************************************************
10651 * Error: The main texmf tree was not found. *
10652 * If you do not have the files, you should be able to them from *
10653 * the same place you got these sources from, or from one of the *
10655 *****************************************************************
10659 # Second case, datadir is default...
10660 if test "x$prefix" = "xNONE"; then
10661 p="$ac_default_prefix"
10665 for e in share/texmf lib/texmf texmf; do
10666 if test -d "$p/$e"; then
10667 texmfmain='${prefix}'/"$e"
10671 if test -z "$texmfmain" && test "x$prefix" = "xNONE"; then
10672 # Still no texmfmain found, no prefix set, perhaps kpsewhich is
10673 # installed and can help us out.
10674 texmfmain=`kpsewhich --expand-path='$TEXMFMAIN'` 2>/dev/null
10676 texmfmain=`echo "$texmfmain" | sed 's,//*,/,g'`
10677 if test -n "$texmfmain"; then
10678 { echo "$as_me:$LINENO: result: \"$texmfmain\"" >&5
10679 echo "${ECHO_T}\"$texmfmain\"" >&6; }
10681 eval texmfmain="$datadir/texmf"
10682 { echo "$as_me:$LINENO: result: not found" >&5
10683 echo "${ECHO_T}not found" >&6; }
10684 { echo "$as_me:$LINENO: WARNING: The main texmf tree was not found at $texmfmain.
10685 *****************************************************************
10686 * Error: The main texmf tree was not found. *
10687 * Use the --datadir option to specify its parent directory. *
10688 * If you do not have the files, you should be able to them from *
10689 * the same place you got these sources from, or from one of the *
10691 *****************************************************************
10692 Winging it by pretending $texmfmain is correct." >&5
10693 echo "$as_me: WARNING: The main texmf tree was not found at $texmfmain.
10694 *****************************************************************
10695 * Error: The main texmf tree was not found. *
10696 * Use the --datadir option to specify its parent directory. *
10697 * If you do not have the files, you should be able to them from *
10698 * the same place you got these sources from, or from one of the *
10700 *****************************************************************
10701 Winging it by pretending $texmfmain is correct." >&2;}
10707 # Implementation of those options.
10708 # _KPSE_DEFINE_MAKE_BY_DEFAULT
10710 if test "x$with_mktexmf_default" = xyes; then
10712 cat >>confdefs.h <<\_ACEOF
10713 #define MAKE_TEX_MF_BY_DEFAULT 1
10717 cat >>confdefs.h <<\_ACEOF
10718 #define MAKE_TEX_MF_BY_DEFAULT 0
10723 if test "x$with_mktexpk_default" = xyes; then
10725 cat >>confdefs.h <<\_ACEOF
10726 #define MAKE_TEX_PK_BY_DEFAULT 1
10730 cat >>confdefs.h <<\_ACEOF
10731 #define MAKE_TEX_PK_BY_DEFAULT 0
10736 if test "x$with_mktextex_default" = xyes; then
10738 cat >>confdefs.h <<\_ACEOF
10739 #define MAKE_TEX_TEX_BY_DEFAULT 1
10743 cat >>confdefs.h <<\_ACEOF
10744 #define MAKE_TEX_TEX_BY_DEFAULT 0
10749 if test "x$with_mktexfmt_default" = xyes; then
10751 cat >>confdefs.h <<\_ACEOF
10752 #define MAKE_TEX_FMT_BY_DEFAULT 1
10756 cat >>confdefs.h <<\_ACEOF
10757 #define MAKE_TEX_FMT_BY_DEFAULT 0
10762 if test "x$with_mktextfm_default" = xyes; then
10764 cat >>confdefs.h <<\_ACEOF
10765 #define MAKE_TEX_TFM_BY_DEFAULT 1
10769 cat >>confdefs.h <<\_ACEOF
10770 #define MAKE_TEX_TFM_BY_DEFAULT 0
10775 if test "x$with_mkocp_default" = xyes; then
10777 cat >>confdefs.h <<\_ACEOF
10778 #define MAKE_OMEGA_OCP_BY_DEFAULT 1
10782 cat >>confdefs.h <<\_ACEOF
10783 #define MAKE_OMEGA_OCP_BY_DEFAULT 0
10788 if test "x$with_mkofm_default" = xyes; then
10790 cat >>confdefs.h <<\_ACEOF
10791 #define MAKE_OMEGA_OFM_BY_DEFAULT 1
10795 cat >>confdefs.h <<\_ACEOF
10796 #define MAKE_OMEGA_OFM_BY_DEFAULT 0
10802 # Is libm present. FIXME: do we need it at all?
10804 { echo "$as_me:$LINENO: checking for main in -lm" >&5
10805 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
10806 if test "${ac_cv_lib_m_main+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10809 ac_check_lib_save_LIBS=$LIBS
10811 cat >conftest.$ac_ext <<_ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h. */
10827 rm -f conftest.$ac_objext conftest$ac_exeext
10828 if { (ac_try="$ac_link"
10829 case "(($ac_try" in
10830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831 *) ac_try_echo=$ac_try;;
10833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10834 (eval "$ac_link") 2>conftest.er1
10836 grep -v '^ *+' conftest.er1 >conftest.err
10838 cat conftest.err >&5
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); } && {
10841 test -z "$ac_c_werror_flag" ||
10842 test ! -s conftest.err
10843 } && test -s conftest$ac_exeext &&
10844 $as_test_x conftest$ac_exeext; then
10845 ac_cv_lib_m_main=yes
10847 echo "$as_me: failed program was:" >&5
10848 sed 's/^/| /' conftest.$ac_ext >&5
10850 ac_cv_lib_m_main=no
10853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10854 conftest$ac_exeext conftest.$ac_ext
10855 LIBS=$ac_check_lib_save_LIBS
10857 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10858 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
10859 if test $ac_cv_lib_m_main = yes; then
10860 cat >>confdefs.h <<_ACEOF
10861 #define HAVE_LIBM 1
10869 # If you're cross-compiling, these macros set up the variables in
10870 # ../make/cross.mk: BUILDCC, BUILDCFLAGS, BUILDCCLD etc.
10871 if test "$cross_compiling" = yes; then
10872 if test -z "${BUILDCC}"; then
10875 { echo "$as_me:$LINENO: result: setting \$BUILDCC to ${BUILDCC}" >&5
10876 echo "${ECHO_T}setting \$BUILDCC to ${BUILDCC}" >&6; }
10878 if test -n "${BUILDCC}"; then
10879 { echo "$as_me:$LINENO: WARNING: \$BUILDCC set but not cross-compiling." >&5
10880 echo "$as_me: WARNING: \$BUILDCC set but not cross-compiling." >&2;}
10886 if test "$cross_compiling" = yes; then
10887 if test -z "${BUILDCFLAGS}"; then
10888 BUILDCFLAGS='$(BUILDXCFLAGS)'
10890 { echo "$as_me:$LINENO: result: setting \$BUILDCFLAGS to ${BUILDCFLAGS}" >&5
10891 echo "${ECHO_T}setting \$BUILDCFLAGS to ${BUILDCFLAGS}" >&6; }
10893 if test -n "${BUILDCFLAGS}"; then
10894 { echo "$as_me:$LINENO: WARNING: \$BUILDCFLAGS set but not cross-compiling." >&5
10895 echo "$as_me: WARNING: \$BUILDCFLAGS set but not cross-compiling." >&2;}
10897 BUILDCFLAGS='$(CFLAGS)'
10901 if test "$cross_compiling" = yes; then
10902 if test -z "${BUILDCPPFLAGS}"; then
10903 BUILDCPPFLAGS='$(BUILDXCPPFLAGS)'
10905 { echo "$as_me:$LINENO: result: setting \$BUILDCPPFLAGS to ${BUILDCPPFLAGS}" >&5
10906 echo "${ECHO_T}setting \$BUILDCPPFLAGS to ${BUILDCPPFLAGS}" >&6; }
10908 if test -n "${BUILDCPPFLAGS}"; then
10909 { echo "$as_me:$LINENO: WARNING: \$BUILDCPPFLAGS set but not cross-compiling." >&5
10910 echo "$as_me: WARNING: \$BUILDCPPFLAGS set but not cross-compiling." >&2;}
10912 BUILDCPPFLAGS='$(CPPFLAGS)'
10916 if test "$cross_compiling" = yes; then
10917 if test -z "${BUILDLDFLAGS}"; then
10918 BUILDLDFLAGS='$(BUILDXLDFLAGS)'
10920 { echo "$as_me:$LINENO: result: setting \$BUILDLDFLAGS to ${BUILDLDFLAGS}" >&5
10921 echo "${ECHO_T}setting \$BUILDLDFLAGS to ${BUILDLDFLAGS}" >&6; }
10923 if test -n "${BUILDLDFLAGS}"; then
10924 { echo "$as_me:$LINENO: WARNING: \$BUILDLDFLAGS set but not cross-compiling." >&5
10925 echo "$as_me: WARNING: \$BUILDLDFLAGS set but not cross-compiling." >&2;}
10927 BUILDLDFLAGS='$(LDFLAGS)'
10931 if test "$cross_compiling" = yes; then
10932 if test -z "${BUILDCCLD}"; then
10933 BUILDCCLD='$(BUILDCC)'
10935 { echo "$as_me:$LINENO: result: setting \$BUILDCCLD to ${BUILDCCLD}" >&5
10936 echo "${ECHO_T}setting \$BUILDCCLD to ${BUILDCCLD}" >&6; }
10938 if test -n "${BUILDCCLD}"; then
10939 { echo "$as_me:$LINENO: WARNING: \$BUILDCCLD set but not cross-compiling." >&5
10940 echo "$as_me: WARNING: \$BUILDCCLD set but not cross-compiling." >&2;}
10942 BUILDCCLD='$(CCLD)'
10953 ac_config_files="$ac_config_files Makefile.aux:Makefile.in"
10954 ac_config_files="$ac_config_files Makefile:Makefile.aux"
10956 cat >confcache <<\_ACEOF
10957 # This file is a shell script that caches the results of configure
10958 # tests run on this system so they can be shared between configure
10959 # scripts and configure runs, see configure's option --config-cache.
10960 # It is not useful on other systems. If it contains results you don't
10961 # want to keep, you may remove or edit it.
10963 # config.status only pays attention to the cache file if you give it
10964 # the --recheck option to rerun configure.
10966 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10967 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10968 # following values.
10972 # The following way of writing the cache mishandles newlines in values,
10973 # but we know of no workaround that is simple, portable, and efficient.
10974 # So, we kill variables containing newlines.
10975 # Ultrix sh set writes to stderr and can't be redirected directly,
10976 # and sets the high bit in the cache file unless we assign to the vars.
10978 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10979 eval ac_val=\$$ac_var
10983 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10984 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10987 _ | IFS | as_nl) ;; #(
10988 *) $as_unset $ac_var ;;
10994 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10995 *${as_nl}ac_space=\ *)
10996 # `set' does not quote correctly, so add quotes (double-quote
10997 # substitution turns \\\\ into \\, and sed turns \\ into \).
11000 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11003 # `set' quotes correctly as required by POSIX, so do not add quotes.
11004 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11013 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11015 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11017 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11018 if test -w "$cache_file"; then
11019 test "x$cache_file" != "x/dev/null" &&
11020 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11021 echo "$as_me: updating cache $cache_file" >&6;}
11022 cat confcache >$cache_file
11024 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11025 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11030 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11031 # Let make expand exec_prefix.
11032 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11034 DEFS=-DHAVE_CONFIG_H
11038 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11039 # 1. Remove the extension, and $U if already installed.
11040 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11041 ac_i=`echo "$ac_i" | sed "$ac_script"`
11042 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11043 # will be set to the directory where LIBOBJS objects are built.
11044 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11045 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11047 LIBOBJS=$ac_libobjs
11049 LTLIBOBJS=$ac_ltlibobjs
11053 : ${CONFIG_STATUS=./config.status}
11054 ac_clean_files_save=$ac_clean_files
11055 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11056 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11057 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11058 cat >$CONFIG_STATUS <<_ACEOF
11060 # Generated by $as_me.
11061 # Run this file to recreate the current configuration.
11062 # Compiler output produced by configure, useful for debugging
11063 # configure, is in config.log if it exists.
11066 ac_cs_recheck=false
11068 SHELL=\${CONFIG_SHELL-$SHELL}
11071 cat >>$CONFIG_STATUS <<\_ACEOF
11072 ## --------------------- ##
11073 ## M4sh Initialization. ##
11074 ## --------------------- ##
11076 # Be more Bourne compatible
11077 DUALCASE=1; export DUALCASE # for MKS sh
11078 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11081 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11082 # is contrary to our usage. Disable this feature.
11083 alias -g '${1+"$@"}'='"$@"'
11084 setopt NO_GLOB_SUBST
11086 case `(set -o) 2>/dev/null` in
11087 *posix*) set -o posix ;;
11096 # Avoid depending upon Character Ranges.
11097 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11098 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11099 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11100 as_cr_digits='0123456789'
11101 as_cr_alnum=$as_cr_Letters$as_cr_digits
11103 # The user is always right.
11104 if test "${PATH_SEPARATOR+set}" != set; then
11105 echo "#! /bin/sh" >conf$$.sh
11106 echo "exit 0" >>conf$$.sh
11108 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11116 # Support unset when possible.
11117 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11125 # We need space, tab and new line, in precisely that order. Quoting is
11126 # there to prevent editors from complaining about space-tab.
11127 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11128 # splitting by setting IFS to empty value.)
11133 # Find who we are. Look in the path if we contain no directory separator.
11135 *[\\/]* ) as_myself=$0 ;;
11136 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11137 for as_dir in $PATH
11140 test -z "$as_dir" && as_dir=.
11141 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11147 # We did not find ourselves, most probably we were run as `sh COMMAND'
11148 # in which case we are not to be found in the path.
11149 if test "x$as_myself" = x; then
11152 if test ! -f "$as_myself"; then
11153 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11154 { (exit 1); exit 1; }
11157 # Work around bugs in pre-3.0 UWIN ksh.
11158 for as_var in ENV MAIL MAILPATH
11159 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11167 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11168 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11169 LC_TELEPHONE LC_TIME
11171 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11172 eval $as_var=C; export $as_var
11174 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11178 # Required to use basename.
11179 if expr a : '\(a\)' >/dev/null 2>&1 &&
11180 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11186 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11187 as_basename=basename
11193 # Name of the executable.
11194 as_me=`$as_basename -- "$0" ||
11195 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11196 X"$0" : 'X\(//\)$' \| \
11197 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11199 sed '/^.*\/\([^/][^/]*\)\/*$/{
11218 as_lineno_1=$LINENO
11219 as_lineno_2=$LINENO
11220 test "x$as_lineno_1" != "x$as_lineno_2" &&
11221 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11223 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11224 # uniformly replaced by the line number. The first 'sed' inserts a
11225 # line-number line after each line using $LINENO; the second 'sed'
11226 # does the real work. The second script uses 'N' to pair each
11227 # line-number line with the line containing $LINENO, and appends
11228 # trailing '-' during substitution so that $LINENO is not a special
11229 # case at line end.
11230 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11231 # scripts with optimization help from Paolo Bonzini. Blame Lee
11232 # E. McMahon (1931-1989) for sed's syntax. :-)
11244 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11247 ' >$as_me.lineno &&
11248 chmod +x "$as_me.lineno" ||
11249 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11250 { (exit 1); exit 1; }; }
11252 # Don't try to exec as it changes $[0], causing all sort of problems
11253 # (the dirname of $[0] is not the place where we might find the
11254 # original and so on. Autoconf is especially sensitive to this).
11255 . "./$as_me.lineno"
11256 # Exit status is that of the last command.
11261 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11267 ECHO_C= ECHO_N= ECHO_T=
11268 case `echo -n x` in
11270 case `echo 'x\c'` in
11271 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11278 if expr a : '\(a\)' >/dev/null 2>&1 &&
11279 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11285 rm -f conf$$ conf$$.exe conf$$.file
11286 if test -d conf$$.dir; then
11287 rm -f conf$$.dir/conf$$.file
11293 if ln -s conf$$.file conf$$ 2>/dev/null; then
11295 # ... but there are two gotchas:
11296 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11297 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11298 # In both cases, we have to default to `cp -p'.
11299 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11301 elif ln conf$$.file conf$$ 2>/dev/null; then
11306 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11307 rmdir conf$$.dir 2>/dev/null
11309 if mkdir -p . 2>/dev/null; then
11312 test -d ./-p && rmdir ./-p
11316 if test -x / >/dev/null 2>&1; then
11317 as_test_x='test -x'
11319 if ls -dL / >/dev/null 2>&1; then
11326 if test -d "$1"; then
11332 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11333 ???[sx]*):;;*)false;;esac;fi
11337 as_executable_p=$as_test_x
11339 # Sed expression to map a string onto a valid CPP name.
11340 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11342 # Sed expression to map a string onto a valid variable name.
11343 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11348 # Save the log message, to keep $[0] and so on meaningful, and to
11349 # report actual input values of CONFIG_FILES etc. instead of their
11350 # values after options handling.
11352 This file was extended by kpathsea $as_me 3.5.6dev, which was
11353 generated by GNU Autoconf 2.61. Invocation command line was
11355 CONFIG_FILES = $CONFIG_FILES
11356 CONFIG_HEADERS = $CONFIG_HEADERS
11357 CONFIG_LINKS = $CONFIG_LINKS
11358 CONFIG_COMMANDS = $CONFIG_COMMANDS
11361 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11366 cat >>$CONFIG_STATUS <<_ACEOF
11367 # Files that config.status was made for.
11368 config_files="$ac_config_files"
11369 config_headers="$ac_config_headers"
11373 cat >>$CONFIG_STATUS <<\_ACEOF
11375 \`$as_me' instantiates files from templates according to the
11376 current configuration.
11378 Usage: $0 [OPTIONS] [FILE]...
11380 -h, --help print this help, then exit
11381 -V, --version print version number and configuration settings, then exit
11382 -q, --quiet do not print progress messages
11383 -d, --debug don't remove temporary files
11384 --recheck update $as_me by reconfiguring in the same conditions
11385 --file=FILE[:TEMPLATE]
11386 instantiate the configuration file FILE
11387 --header=FILE[:TEMPLATE]
11388 instantiate the configuration header FILE
11390 Configuration files:
11393 Configuration headers:
11396 Report bugs to <bug-autoconf@gnu.org>."
11399 cat >>$CONFIG_STATUS <<_ACEOF
11401 kpathsea config.status 3.5.6dev
11402 configured by $0, generated by GNU Autoconf 2.61,
11403 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11405 Copyright (C) 2006 Free Software Foundation, Inc.
11406 This config.status script is free software; the Free Software Foundation
11407 gives unlimited permission to copy, distribute and modify it."
11414 cat >>$CONFIG_STATUS <<\_ACEOF
11415 # If no file are specified by the user, then we need to provide default
11416 # value. By we need to know if files were specified by the user.
11422 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11423 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11434 # Handling of the options.
11435 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11437 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11438 echo "$ac_cs_version"; exit ;;
11439 --debug | --debu | --deb | --de | --d | -d )
11441 --file | --fil | --fi | --f )
11443 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11444 ac_need_defaults=false;;
11445 --header | --heade | --head | --hea )
11447 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11448 ac_need_defaults=false;;
11450 # Conflict between --help and --header
11451 { echo "$as_me: error: ambiguous option: $1
11452 Try \`$0 --help' for more information." >&2
11453 { (exit 1); exit 1; }; };;
11454 --help | --hel | -h )
11455 echo "$ac_cs_usage"; exit ;;
11456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11457 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11460 # This is an error.
11461 -*) { echo "$as_me: error: unrecognized option: $1
11462 Try \`$0 --help' for more information." >&2
11463 { (exit 1); exit 1; }; } ;;
11465 *) ac_config_targets="$ac_config_targets $1"
11466 ac_need_defaults=false ;;
11472 ac_configure_extra_args=
11474 if $ac_cs_silent; then
11476 ac_configure_extra_args="$ac_configure_extra_args --silent"
11480 cat >>$CONFIG_STATUS <<_ACEOF
11481 if \$ac_cs_recheck; then
11482 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11483 CONFIG_SHELL=$SHELL
11484 export CONFIG_SHELL
11485 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11489 cat >>$CONFIG_STATUS <<\_ACEOF
11493 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11494 ## Running $as_me. ##
11500 cat >>$CONFIG_STATUS <<_ACEOF
11503 cat >>$CONFIG_STATUS <<\_ACEOF
11505 # Handling of arguments.
11506 for ac_config_target in $ac_config_targets
11508 case $ac_config_target in
11509 "c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS c-auto.h:c-auto.in" ;;
11510 "Makefile.aux") CONFIG_FILES="$CONFIG_FILES Makefile.aux:Makefile.in" ;;
11511 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.aux" ;;
11513 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11514 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11515 { (exit 1); exit 1; }; };;
11520 # If the user did not use the arguments to specify the items to instantiate,
11521 # then the envvar interface is used. Set only those that are not.
11522 # We use the long form for the default assignment because of an extremely
11523 # bizarre bug on SunOS 4.1.3.
11524 if $ac_need_defaults; then
11525 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11526 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11529 # Have a temporary directory for convenience. Make it in the build tree
11530 # simply because there is no reason against having it here, and in addition,
11531 # creating and moving files from /tmp can sometimes cause problems.
11532 # Hook for its removal unless debugging.
11533 # Note that there is a small window in which the directory will not be cleaned:
11534 # after its creation but before its name has been assigned to `$tmp'.
11538 trap 'exit_status=$?
11539 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11541 trap '{ (exit 1); exit 1; }' 1 2 13 15
11543 # Create a (secure) tmp directory for tmp files.
11546 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11547 test -n "$tmp" && test -d "$tmp"
11550 tmp=./conf$$-$RANDOM
11551 (umask 077 && mkdir "$tmp")
11554 echo "$me: cannot create a temporary directory in ." >&2
11555 { (exit 1); exit 1; }
11559 # Set up the sed scripts for CONFIG_FILES section.
11562 # No need to generate the scripts if there are no CONFIG_FILES.
11563 # This happens for instance when ./config.status config.h
11564 if test -n "$CONFIG_FILES"; then
11571 for ac_last_try in false false false false false :; do
11572 cat >conf$$subs.sed <<_ACEOF
11573 SHELL!$SHELL$ac_delim
11574 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11575 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11576 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11577 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11578 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11579 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11580 exec_prefix!$exec_prefix$ac_delim
11581 prefix!$prefix$ac_delim
11582 program_transform_name!$program_transform_name$ac_delim
11583 bindir!$bindir$ac_delim
11584 sbindir!$sbindir$ac_delim
11585 libexecdir!$libexecdir$ac_delim
11586 datarootdir!$datarootdir$ac_delim
11587 datadir!$datadir$ac_delim
11588 sysconfdir!$sysconfdir$ac_delim
11589 sharedstatedir!$sharedstatedir$ac_delim
11590 localstatedir!$localstatedir$ac_delim
11591 includedir!$includedir$ac_delim
11592 oldincludedir!$oldincludedir$ac_delim
11593 docdir!$docdir$ac_delim
11594 infodir!$infodir$ac_delim
11595 htmldir!$htmldir$ac_delim
11596 dvidir!$dvidir$ac_delim
11597 pdfdir!$pdfdir$ac_delim
11598 psdir!$psdir$ac_delim
11599 libdir!$libdir$ac_delim
11600 localedir!$localedir$ac_delim
11601 mandir!$mandir$ac_delim
11602 DEFS!$DEFS$ac_delim
11603 ECHO_C!$ECHO_C$ac_delim
11604 ECHO_N!$ECHO_N$ac_delim
11605 ECHO_T!$ECHO_T$ac_delim
11606 LIBS!$LIBS$ac_delim
11607 build_alias!$build_alias$ac_delim
11608 host_alias!$host_alias$ac_delim
11609 target_alias!$target_alias$ac_delim
11610 KPSEVERSION!$KPSEVERSION$ac_delim
11611 KPSE_LT_VERS!$KPSE_LT_VERS$ac_delim
11613 CFLAGS!$CFLAGS$ac_delim
11614 LDFLAGS!$LDFLAGS$ac_delim
11615 CPPFLAGS!$CPPFLAGS$ac_delim
11616 ac_ct_CC!$ac_ct_CC$ac_delim
11617 EXEEXT!$EXEEXT$ac_delim
11618 OBJEXT!$OBJEXT$ac_delim
11619 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11620 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11621 INSTALL_DATA!$INSTALL_DATA$ac_delim
11622 LN_S!$LN_S$ac_delim
11623 SET_MAKE!$SET_MAKE$ac_delim
11624 build!$build$ac_delim
11625 build_cpu!$build_cpu$ac_delim
11626 build_vendor!$build_vendor$ac_delim
11627 build_os!$build_os$ac_delim
11628 host!$host$ac_delim
11629 host_cpu!$host_cpu$ac_delim
11630 host_vendor!$host_vendor$ac_delim
11631 host_os!$host_os$ac_delim
11632 ECHO!$ECHO$ac_delim
11633 RANLIB!$RANLIB$ac_delim
11634 STRIP!$STRIP$ac_delim
11636 GREP!$GREP$ac_delim
11637 EGREP!$EGREP$ac_delim
11638 LIBTOOL!$LIBTOOL$ac_delim
11639 LTLIBOBJS!$LTLIBOBJS$ac_delim
11640 MAINT!$MAINT$ac_delim
11643 ARFLAGS!$ARFLAGS$ac_delim
11644 texmfmain!$texmfmain$ac_delim
11645 BUILDCC!$BUILDCC$ac_delim
11646 BUILDCFLAGS!$BUILDCFLAGS$ac_delim
11647 BUILDCPPFLAGS!$BUILDCPPFLAGS$ac_delim
11648 BUILDLDFLAGS!$BUILDLDFLAGS$ac_delim
11649 BUILDCCLD!$BUILDCCLD$ac_delim
11650 LIBOBJS!$LIBOBJS$ac_delim
11653 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 78; then
11655 elif $ac_last_try; then
11656 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11657 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11658 { (exit 1); exit 1; }; }
11660 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11664 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11665 if test -n "$ac_eof"; then
11666 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11667 ac_eof=`expr $ac_eof + 1`
11670 cat >>$CONFIG_STATUS <<_ACEOF
11671 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11672 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11675 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11676 s/^/s,@/; s/!/@,|#_!!_#|/
11679 s/'"$ac_delim"'$/,g/; t
11681 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11682 ' >>$CONFIG_STATUS <conf$$subs.sed
11683 rm -f conf$$subs.sed
11684 cat >>$CONFIG_STATUS <<_ACEOF
11691 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11692 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11693 # trailing colons and then remove the whole line if VPATH becomes empty
11694 # (actually we leave an empty line to preserve line numbers).
11695 if test "x$srcdir" = x.; then
11696 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11697 s/:*\$(srcdir):*/:/
11698 s/:*\${srcdir}:*/:/
11700 s/^\([^=]*=[ ]*\):*/\1/
11706 cat >>$CONFIG_STATUS <<\_ACEOF
11707 fi # test -n "$CONFIG_FILES"
11710 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
11713 :[FHLC]) ac_mode=$ac_tag; continue;;
11715 case $ac_mode$ac_tag in
11717 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11718 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11719 { (exit 1); exit 1; }; };;
11720 :[FH]-) ac_tag=-:-;;
11721 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11738 -) ac_f="$tmp/stdin";;
11739 *) # Look for the file first in the build tree, then in the source tree
11740 # (if the path is not absolute). The absolute path cannot be DOS-style,
11741 # because $ac_f cannot contain `:'.
11745 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11747 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11748 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11749 { (exit 1); exit 1; }; };;
11751 ac_file_inputs="$ac_file_inputs $ac_f"
11754 # Let's still pretend it is `configure' which instantiates (i.e., don't
11755 # use $as_me), people would be surprised to read:
11756 # /* config.h. Generated by config.status. */
11757 configure_input="Generated from "`IFS=:
11758 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11759 if test x"$ac_file" != x-; then
11760 configure_input="$ac_file. $configure_input"
11761 { echo "$as_me:$LINENO: creating $ac_file" >&5
11762 echo "$as_me: creating $ac_file" >&6;}
11766 *:-:* | *:-) cat >"$tmp/stdin";;
11771 ac_dir=`$as_dirname -- "$ac_file" ||
11772 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11773 X"$ac_file" : 'X\(//\)[^/]' \| \
11774 X"$ac_file" : 'X\(//\)$' \| \
11775 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11781 /^X\(\/\/\)[^/].*/{
11796 -*) as_dir=./$as_dir;;
11798 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11802 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11803 *) as_qdir=$as_dir;;
11805 as_dirs="'$as_qdir' $as_dirs"
11806 as_dir=`$as_dirname -- "$as_dir" ||
11807 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11808 X"$as_dir" : 'X\(//\)[^/]' \| \
11809 X"$as_dir" : 'X\(//\)$' \| \
11810 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11816 /^X\(\/\/\)[^/].*/{
11829 test -d "$as_dir" && break
11831 test -z "$as_dirs" || eval "mkdir $as_dirs"
11832 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11833 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11834 { (exit 1); exit 1; }; }; }
11838 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11840 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11841 # A ".." for each directory in $ac_dir_suffix.
11842 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11843 case $ac_top_builddir_sub in
11844 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11845 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11848 ac_abs_top_builddir=$ac_pwd
11849 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11850 # for backward compatibility:
11851 ac_top_builddir=$ac_top_build_prefix
11854 .) # We are building in place.
11856 ac_top_srcdir=$ac_top_builddir_sub
11857 ac_abs_top_srcdir=$ac_pwd ;;
11858 [\\/]* | ?:[\\/]* ) # Absolute name.
11859 ac_srcdir=$srcdir$ac_dir_suffix;
11860 ac_top_srcdir=$srcdir
11861 ac_abs_top_srcdir=$srcdir ;;
11862 *) # Relative name.
11863 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11864 ac_top_srcdir=$ac_top_build_prefix$srcdir
11865 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11867 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11877 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11878 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11882 cat >>$CONFIG_STATUS <<\_ACEOF
11883 # If the template does not know about datarootdir, expand it.
11884 # FIXME: This hack should be removed a few years after 2.60.
11885 ac_datarootdir_hack=; ac_datarootdir_seen=
11887 case `sed -n '/datarootdir/ {
11896 ' $ac_file_inputs` in
11897 *datarootdir*) ac_datarootdir_seen=yes;;
11898 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11899 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11900 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11902 cat >>$CONFIG_STATUS <<_ACEOF
11903 ac_datarootdir_hack='
11904 s&@datadir@&$datadir&g
11905 s&@docdir@&$docdir&g
11906 s&@infodir@&$infodir&g
11907 s&@localedir@&$localedir&g
11908 s&@mandir@&$mandir&g
11909 s&\\\${datarootdir}&$datarootdir&g' ;;
11913 # Neutralize VPATH when `$srcdir' = `.'.
11914 # Shell code in configure.ac might set extrasub.
11915 # FIXME: do we really want to maintain this feature?
11916 cat >>$CONFIG_STATUS <<_ACEOF
11920 cat >>$CONFIG_STATUS <<\_ACEOF
11922 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11923 s&@configure_input@&$configure_input&;t t
11924 s&@top_builddir@&$ac_top_builddir_sub&;t t
11925 s&@srcdir@&$ac_srcdir&;t t
11926 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11927 s&@top_srcdir@&$ac_top_srcdir&;t t
11928 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11929 s&@builddir@&$ac_builddir&;t t
11930 s&@abs_builddir@&$ac_abs_builddir&;t t
11931 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11932 s&@INSTALL@&$ac_INSTALL&;t t
11933 $ac_datarootdir_hack
11934 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
11936 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11937 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11938 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11939 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11940 which seems to be undefined. Please make sure it is defined." >&5
11941 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11942 which seems to be undefined. Please make sure it is defined." >&2;}
11946 -) cat "$tmp/out"; rm -f "$tmp/out";;
11947 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11956 # Transform confdefs.h into a sed script `conftest.defines', that
11957 # substitutes the proper values into config.h.in to produce config.h.
11958 rm -f conftest.defines conftest.tail
11959 # First, append a space to every undef/define line, to ease matching.
11960 echo 's/$/ /' >conftest.defines
11961 # Then, protect against being on the right side of a sed subst, or in
11962 # an unquoted here document, in config.status. If some macros were
11963 # called several times there might be several #defines for the same
11964 # symbol, which is useless. But do not sort them, since the last
11965 # AC_DEFINE must be honored.
11966 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11967 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11968 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11969 # PARAMS is the parameter list in the macro definition--in most cases, it's
11970 # just an empty string.
11971 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11972 ac_dB='\\)[ (].*,\\1define\\2'
11980 s/^[ ]*#[ ]*define[ ][ ]*//
11985 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11986 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11987 ' >>conftest.defines
11989 # Remove the space that was appended to ease matching.
11990 # Then replace #undef with comments. This is necessary, for
11991 # example, in the case of _POSIX_SOURCE, which is predefined and required
11992 # on some systems where configure will not decide to define it.
11993 # (The regexp can be short, since the line contains either #define or #undef.)
11995 s,^[ #]*u.*,/* & */,' >>conftest.defines
11997 # Break up conftest.defines:
11998 ac_max_sed_lines=50
12000 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12001 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12002 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12004 ac_in='$ac_file_inputs'
12005 ac_out='"$tmp/out1"'
12006 ac_nxt='"$tmp/out2"'
12010 # Write a here document:
12011 cat >>$CONFIG_STATUS <<_ACEOF
12012 # First, check the format of the line:
12013 cat >"\$tmp/defines.sed" <<\\CEOF
12014 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12015 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12019 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12021 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12022 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12023 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12024 grep . conftest.tail >/dev/null || break
12025 rm -f conftest.defines
12026 mv conftest.tail conftest.defines
12028 rm -f conftest.defines conftest.tail
12030 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12031 cat >>$CONFIG_STATUS <<\_ACEOF
12032 if test x"$ac_file" != x-; then
12033 echo "/* $configure_input */" >"$tmp/config.h"
12034 cat "$ac_result" >>"$tmp/config.h"
12035 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12036 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12037 echo "$as_me: $ac_file is unchanged" >&6;}
12040 mv "$tmp/config.h" $ac_file
12043 echo "/* $configure_input */"
12053 case $ac_file$ac_mode in
12054 "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
12055 date >stamp-auto ;;
12056 "Makefile.aux":F) # Discard the file just generated and first resolve kpse_include's
12057 kpse_input=`case Makefile.in in
12058 [\\/$]*) # Absolute
12059 test -f "Makefile.in" || { { echo "$as_me:$LINENO: error: cannot find input file: Makefile.in" >&5
12060 echo "$as_me: error: cannot find input file: Makefile.in" >&2;}
12061 { (exit 1); exit 1; }; }
12062 echo "Makefile.in";;
12064 if test -f "Makefile.in"; then
12067 elif test -f "$srcdir/Makefile.in"; then
12069 echo "$srcdir/Makefile.in"
12072 { { echo "$as_me:$LINENO: error: cannot find input file: Makefile.in" >&5
12073 echo "$as_me: error: cannot find input file: Makefile.in" >&2;}
12074 { (exit 1); exit 1; }; }
12076 esac` || { (exit 1); exit 1; }
12077 # Replace lines of the form "kpse_include foo" with the contents of foo:
12078 # first, from the kpse_include lines construct a list of file names.
12079 # From that list, we construct a second list of those files that exist.
12080 # Then we construct a list of sed commands for including those files,
12081 # and a sed command that removes the kpse_include lines. We don't attempt
12082 # to read non-existent files because some (buggy) versions of sed choke
12083 # on this. Have to use sed because old (Ultrix, SunOs) awk does not support
12084 # getline or system. (Anyway, configure scripts aren't supposed to use awk.)
12085 # Can't use only one -e and commands {dr foo} because foo has to be last.
12086 # Be careful, because the filename may contain /.
12087 # Be careful with whitespace; we need to use echo.
12088 kpse_file_substs=`sed -n '/^kpse_include/s%[ ]*\(.*\)%\1%p' "$kpse_input"`
12089 if test x"$kpse_file_substs" = x; then
12090 { echo "$as_me:$LINENO: WARNING: No need to use \`KPSE_CONFIG_FILES' for input \`Makefile.in'
12091 without any \`kpse_include' directives" >&5
12092 echo "$as_me: WARNING: No need to use \`KPSE_CONFIG_FILES' for input \`Makefile.in'
12093 without any \`kpse_include' directives" >&2;}
12095 # Create the sed command line ...
12096 # Input lines containing "@configure_input@" are output twice,
12097 # first with our modifications and then unmodified.
12098 kpse_substs="sed -e '/@configure_input@/ { h; \
12099 s,@configure_input@,Makefile.aux. Generated from `echo Makefile.in |
12100 sed 's,.*/,,'` by configure.,; G; }'"
12101 for kpse_inc in $kpse_file_substs; do
12102 kpse_read=`case $kpse_inc in
12103 [\\/$]*) # Absolute
12104 if test -f "$kpse_inc"; then
12108 if test -f "$kpse_inc"; then
12111 elif test -f "$srcdir/$kpse_inc"; then
12113 echo "$srcdir/$kpse_inc"
12116 if test -n "$kpse_read"; then
12117 kpse_mung=`echo $kpse_inc | sed 's,/,%,g'`
12118 kpse_substs="$kpse_substs -e '/^kpse_include $kpse_mung$/r $kpse_read'"
12121 # ... and fix the whitespace and escaped slashes.
12122 kpse_substs=`echo "$kpse_substs" | sed -e 's,%,\\\/,g' \
12123 -e 's/kpse_include /kpse_include[ ]*/g'`
12124 (eval $kpse_substs -e '/^kpse_include/d' "$kpse_input") > Makefile.aux
12131 { (exit 0); exit 0; }
12133 chmod +x $CONFIG_STATUS
12134 ac_clean_files=$ac_clean_files_save
12137 # configure is writing to config.log, and then calls config.status.
12138 # config.status does its own redirection, appending to config.log.
12139 # Unfortunately, on DOS this fails, as config.log is still kept open
12140 # by configure, so config.status won't be able to write to it; its
12141 # output is simply discarded. So we exec the FD to /dev/null,
12142 # effectively closing config.log, so it can be properly (re)opened and
12143 # appended to by config.status. When coming back to configure, we
12144 # need to make the FD available again.
12145 if test "$no_create" != yes; then
12147 ac_config_status_args=
12148 test "$silent" = yes &&
12149 ac_config_status_args="$ac_config_status_args --quiet"
12151 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12153 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12154 # would make configure fail if this is the last instruction.
12155 $ac_cs_success || { (exit 1); exit 1; }