2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Find the correct PATH separator. Usually this is `:', but
11 # DJGPP uses `;' like DOS.
12 if test "X${PATH_SEPARATOR+set}" != Xset; then
13 UNAME=${UNAME-`uname 2>/dev/null`}
15 *-DOS) lt_cv_sys_path_separator=';' ;;
16 *) lt_cv_sys_path_separator=':' ;;
18 PATH_SEPARATOR=$lt_cv_sys_path_separator
22 # Check that we are running under the correct shell.
23 SHELL=${CONFIG_SHELL-/bin/sh}
27 # Remove one level of quotation (which was required for Make).
28 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
33 if test "X$1" = X--no-reexec; then
34 # Discard the --no-reexec flag, and continue.
36 elif test "X$1" = X--fallback-echo; then
37 # Avoid inline document here, it may be left over
39 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
40 # Yippee, $echo works!
43 # Restart under the correct shell.
44 exec $SHELL "$0" --no-reexec ${1+"$@"}
47 if test "X$1" = X--fallback-echo; then
48 # used as fallback echo
56 # The HP-UX ksh and POSIX shell print the target directory to stdout
58 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
60 if test -z "$ECHO"; then
61 if test "X${echo_test_string+set}" != Xset; then
62 # find a string as large as possible, as long as the shell can cope with it
63 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
64 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
65 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
66 echo_test_string="`eval $cmd`" &&
67 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
74 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
75 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
76 test "X$echo_testing_string" = "X$echo_test_string"; then
79 # The Solaris, AIX, and Digital Unix default echo programs unquote
80 # backslashes. This makes it impossible to quote backslashes using
81 # echo "$something" | sed 's/\\/\\\\/g'
83 # So, first we look for a working echo in the user's PATH.
85 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
86 for dir in $PATH /usr/ucb; do
87 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
88 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
89 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
90 test "X$echo_testing_string" = "X$echo_test_string"; then
97 if test "X$echo" = Xecho; then
98 # We didn't find a better echo, so look for alternatives.
99 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
100 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
101 test "X$echo_testing_string" = "X$echo_test_string"; then
102 # This shell has a builtin print -r that does the trick.
104 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
105 test "X$CONFIG_SHELL" != X/bin/ksh; then
106 # If we have ksh, try running configure again with it.
107 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
108 export ORIGINAL_CONFIG_SHELL
109 CONFIG_SHELL=/bin/ksh
111 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
115 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
116 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
117 test "X$echo_testing_string" = "X$echo_test_string"; then
120 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
121 test "X$echo_testing_string" = 'X\t' &&
122 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
123 test "X$echo_testing_string" = "X$echo_test_string"; then
124 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
126 SHELL="$CONFIG_SHELL"
128 echo="$CONFIG_SHELL $0 --fallback-echo"
129 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
130 test "X$echo_testing_string" = 'X\t' &&
131 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
132 test "X$echo_testing_string" = "X$echo_test_string"; then
133 echo="$CONFIG_SHELL $0 --fallback-echo"
135 # maybe with a smaller string...
138 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
139 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
146 if test "$prev" != 'sed 50q "$0"'; then
147 echo_test_string=`eval $prev`
148 export echo_test_string
149 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
151 # Oops. We lost completely, so just stick with echo.
160 # Copy echo and quote the copy suitably for passing to libtool from
161 # the Makefile, instead of quoting the original, which is used later.
163 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
164 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
169 if expr a : '\(a\)' >/dev/null 2>&1; then
176 ## --------------------- ##
177 ## M4sh Initialization. ##
178 ## --------------------- ##
180 # Be Bourne compatible
181 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
184 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
189 # Support unset when possible.
190 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
196 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
197 { $as_unset LANG || test "${LANG+set}" != set; } ||
198 { LANG=C; export LANG; }
199 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
200 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
201 { LC_ALL=C; export LC_ALL; }
202 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
203 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
204 { LC_TIME=C; export LC_TIME; }
205 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
206 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
207 { LC_CTYPE=C; export LC_CTYPE; }
208 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
209 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
210 { LANGUAGE=C; export LANGUAGE; }
211 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
212 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
213 { LC_COLLATE=C; export LC_COLLATE; }
214 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
215 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
216 { LC_NUMERIC=C; export LC_NUMERIC; }
217 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
218 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
219 { LC_MESSAGES=C; export LC_MESSAGES; }
222 # Name of the executable.
223 as_me=`(basename "$0") 2>/dev/null ||
224 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
225 X"$0" : 'X\(//\)$' \| \
226 X"$0" : 'X\(/\)$' \| \
227 . : '\(.\)' 2>/dev/null ||
229 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
230 /^X\/\(\/\/\)$/{ s//\1/; q; }
231 /^X\/\(\/\).*/{ s//\1/; q; }
234 # PATH needs CR, and LINENO needs CR and PATH.
235 # Avoid depending upon Character Ranges.
236 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
237 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
238 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
239 as_cr_digits='0123456789'
240 as_cr_alnum=$as_cr_Letters$as_cr_digits
242 # The user is always right.
243 if test "${PATH_SEPARATOR+set}" != set; then
244 echo "#! /bin/sh" >conftest.sh
245 echo "exit 0" >>conftest.sh
247 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
258 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
259 test "x$as_lineno_1" != "x$as_lineno_2" &&
260 test "x$as_lineno_3" = "x$as_lineno_2" || {
261 # Find who we are. Look in the path if we contain no path at all
264 *[\\/]* ) as_myself=$0 ;;
265 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
269 test -z "$as_dir" && as_dir=.
270 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
275 # We did not find ourselves, most probably we were run as `sh COMMAND'
276 # in which case we are not to be found in the path.
277 if test "x$as_myself" = x; then
280 if test ! -f "$as_myself"; then
281 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
282 { (exit 1); exit 1; }; }
284 case $CONFIG_SHELL in
286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
287 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
290 test -z "$as_dir" && as_dir=.
291 for as_base in sh bash ksh sh5; do
294 if ("$as_dir/$as_base" -c '
297 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
298 test "x$as_lineno_1" != "x$as_lineno_2" &&
299 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
300 CONFIG_SHELL=$as_dir/$as_base
302 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
310 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
311 # uniformly replaced by the line number. The first 'sed' inserts a
312 # line-number line before each line; the second 'sed' does the real
313 # work. The second script uses 'N' to pair each line-number line
314 # with the numbered line, and appends trailing '-' during
315 # substitution so that $LINENO is not a special case at line end.
316 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
317 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
318 sed '=' <$as_myself |
323 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
326 s,^['$as_cr_digits']*\n,,
328 chmod +x $as_me.lineno ||
329 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
330 { (exit 1); exit 1; }; }
332 # Don't try to exec as it changes $[0], causing all sort of problems
333 # (the dirname of $[0] is not the place where we might find the
334 # original and so on. Autoconf is especially sensible to this).
336 # Exit status is that of the last command.
341 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
342 *c*,-n*) ECHO_N= ECHO_C='
344 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
345 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
348 if expr a : '\(a\)' >/dev/null 2>&1; then
354 rm -f conf$$ conf$$.exe conf$$.file
356 if ln -s conf$$.file conf$$ 2>/dev/null; then
357 # We could just check for DJGPP; but this test a) works b) is more generic
358 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
359 if test -f conf$$.exe; then
360 # Don't use ln at all; we don't have any links
365 elif ln conf$$.file conf$$ 2>/dev/null; then
370 rm -f conf$$ conf$$.exe conf$$.file
372 as_executable_p="test -f"
374 # Sed expression to map a string onto a valid CPP name.
375 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
377 # Sed expression to map a string onto a valid variable name.
378 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
382 # We need space, tab and new line, in precisely that order.
388 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
392 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
393 # so uname gets run too.
394 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
401 ac_default_prefix=/usr/local
406 SHELL=${CONFIG_SHELL-/bin/sh}
408 # Maximum number of lines to put in a shell here document.
409 # This variable seems obsolete. It should probably be removed, and
410 # only ac_max_sed_lines should be used.
411 : ${ac_max_here_lines=38}
413 # Identity of this package.
420 ac_unique_file="popt.h"
421 # Factoring default headers for most tests.
422 ac_includes_default="\
425 # include <sys/types.h>
428 # include <sys/stat.h>
439 # if !STDC_HEADERS && HAVE_MEMORY_H
445 # include <strings.h>
448 # include <inttypes.h>
459 # Initialize some variables set by options.
461 ac_init_version=false
462 # The variables have the same names as the options, with
463 # dashes changed to underlines.
471 program_transform_name=s,x,x,
479 # Installation directory options.
480 # These are left unexpanded so users can "make install exec_prefix=/foo"
481 # and all the variables that are supposed to be based on exec_prefix
482 # by default will actually change.
483 # Use braces instead of parens because sh, perl, etc. also accept them.
484 bindir='${exec_prefix}/bin'
485 sbindir='${exec_prefix}/sbin'
486 libexecdir='${exec_prefix}/libexec'
487 datadir='${prefix}/share'
488 sysconfdir='${prefix}/etc'
489 sharedstatedir='${prefix}/com'
490 localstatedir='${prefix}/var'
491 libdir='${exec_prefix}/lib'
492 includedir='${prefix}/include'
493 oldincludedir='/usr/include'
494 infodir='${prefix}/info'
495 mandir='${prefix}/man'
500 # If the previous option needs an argument, assign it.
501 if test -n "$ac_prev"; then
502 eval "$ac_prev=\$ac_option"
507 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
509 # Accept the important Cygnus configure options, so we can diagnose typos.
513 -bindir | --bindir | --bindi | --bind | --bin | --bi)
515 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
518 -build | --build | --buil | --bui | --bu)
519 ac_prev=build_alias ;;
520 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
521 build_alias=$ac_optarg ;;
523 -cache-file | --cache-file | --cache-fil | --cache-fi \
524 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
525 ac_prev=cache_file ;;
526 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
527 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
528 cache_file=$ac_optarg ;;
531 cache_file=config.cache ;;
533 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
535 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
537 datadir=$ac_optarg ;;
539 -disable-* | --disable-*)
540 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
541 # Reject names that are not valid shell variable names.
542 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
543 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
544 { (exit 1); exit 1; }; }
545 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
546 eval "enable_$ac_feature=no" ;;
548 -enable-* | --enable-*)
549 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553 { (exit 1); exit 1; }; }
554 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 eval "enable_$ac_feature='$ac_optarg'" ;;
561 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
562 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
563 | --exec | --exe | --ex)
564 ac_prev=exec_prefix ;;
565 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
566 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
567 | --exec=* | --exe=* | --ex=*)
568 exec_prefix=$ac_optarg ;;
570 -gas | --gas | --ga | --g)
571 # Obsolete; use --with-gas.
574 -help | --help | --hel | --he | -h)
576 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
577 ac_init_help=recursive ;;
578 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
579 ac_init_help=short ;;
581 -host | --host | --hos | --ho)
582 ac_prev=host_alias ;;
583 -host=* | --host=* | --hos=* | --ho=*)
584 host_alias=$ac_optarg ;;
586 -includedir | --includedir | --includedi | --included | --include \
587 | --includ | --inclu | --incl | --inc)
588 ac_prev=includedir ;;
589 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
590 | --includ=* | --inclu=* | --incl=* | --inc=*)
591 includedir=$ac_optarg ;;
593 -infodir | --infodir | --infodi | --infod | --info | --inf)
595 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
596 infodir=$ac_optarg ;;
598 -libdir | --libdir | --libdi | --libd)
600 -libdir=* | --libdir=* | --libdi=* | --libd=*)
603 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
604 | --libexe | --libex | --libe)
605 ac_prev=libexecdir ;;
606 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
607 | --libexe=* | --libex=* | --libe=*)
608 libexecdir=$ac_optarg ;;
610 -localstatedir | --localstatedir | --localstatedi | --localstated \
611 | --localstate | --localstat | --localsta | --localst \
612 | --locals | --local | --loca | --loc | --lo)
613 ac_prev=localstatedir ;;
614 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
615 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
616 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
617 localstatedir=$ac_optarg ;;
619 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
621 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
625 # Obsolete; use --without-fp.
628 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
629 | --no-cr | --no-c | -n)
632 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
633 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
636 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
637 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
638 | --oldin | --oldi | --old | --ol | --o)
639 ac_prev=oldincludedir ;;
640 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
641 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
642 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
643 oldincludedir=$ac_optarg ;;
645 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
647 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
650 -program-prefix | --program-prefix | --program-prefi | --program-pref \
651 | --program-pre | --program-pr | --program-p)
652 ac_prev=program_prefix ;;
653 -program-prefix=* | --program-prefix=* | --program-prefi=* \
654 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
655 program_prefix=$ac_optarg ;;
657 -program-suffix | --program-suffix | --program-suffi | --program-suff \
658 | --program-suf | --program-su | --program-s)
659 ac_prev=program_suffix ;;
660 -program-suffix=* | --program-suffix=* | --program-suffi=* \
661 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
662 program_suffix=$ac_optarg ;;
664 -program-transform-name | --program-transform-name \
665 | --program-transform-nam | --program-transform-na \
666 | --program-transform-n | --program-transform- \
667 | --program-transform | --program-transfor \
668 | --program-transfo | --program-transf \
669 | --program-trans | --program-tran \
670 | --progr-tra | --program-tr | --program-t)
671 ac_prev=program_transform_name ;;
672 -program-transform-name=* | --program-transform-name=* \
673 | --program-transform-nam=* | --program-transform-na=* \
674 | --program-transform-n=* | --program-transform-=* \
675 | --program-transform=* | --program-transfor=* \
676 | --program-transfo=* | --program-transf=* \
677 | --program-trans=* | --program-tran=* \
678 | --progr-tra=* | --program-tr=* | --program-t=*)
679 program_transform_name=$ac_optarg ;;
681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
682 | -silent | --silent | --silen | --sile | --sil)
685 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
687 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
689 sbindir=$ac_optarg ;;
691 -sharedstatedir | --sharedstatedir | --sharedstatedi \
692 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
693 | --sharedst | --shareds | --shared | --share | --shar \
695 ac_prev=sharedstatedir ;;
696 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
697 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
698 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
700 sharedstatedir=$ac_optarg ;;
702 -site | --site | --sit)
704 -site=* | --site=* | --sit=*)
707 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
709 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
712 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
713 | --syscon | --sysco | --sysc | --sys | --sy)
714 ac_prev=sysconfdir ;;
715 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
716 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
717 sysconfdir=$ac_optarg ;;
719 -target | --target | --targe | --targ | --tar | --ta | --t)
720 ac_prev=target_alias ;;
721 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
722 target_alias=$ac_optarg ;;
724 -v | -verbose | --verbose | --verbos | --verbo | --verb)
727 -version | --version | --versio | --versi | --vers | -V)
731 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
732 # Reject names that are not valid shell variable names.
733 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
734 { echo "$as_me: error: invalid package name: $ac_package" >&2
735 { (exit 1); exit 1; }; }
736 ac_package=`echo $ac_package| sed 's/-/_/g'`
738 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
741 eval "with_$ac_package='$ac_optarg'" ;;
743 -without-* | --without-*)
744 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package | sed 's/-/_/g'`
750 eval "with_$ac_package=no" ;;
753 # Obsolete; use --with-x.
756 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
757 | --x-incl | --x-inc | --x-in | --x-i)
758 ac_prev=x_includes ;;
759 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
760 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
761 x_includes=$ac_optarg ;;
763 -x-libraries | --x-libraries | --x-librarie | --x-librari \
764 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
765 ac_prev=x_libraries ;;
766 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
767 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
768 x_libraries=$ac_optarg ;;
770 -*) { echo "$as_me: error: unrecognized option: $ac_option
771 Try \`$0 --help' for more information." >&2
772 { (exit 1); exit 1; }; }
776 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
777 # Reject names that are not valid shell variable names.
778 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
779 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
780 { (exit 1); exit 1; }; }
781 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
782 eval "$ac_envvar='$ac_optarg'"
786 # FIXME: should be removed in autoconf 3.0.
787 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
788 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
789 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
790 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796 if test -n "$ac_prev"; then
797 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
798 { echo "$as_me: error: missing argument to $ac_option" >&2
799 { (exit 1); exit 1; }; }
802 # Be sure to have absolute paths.
803 for ac_var in exec_prefix prefix
805 eval ac_val=$`echo $ac_var`
807 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
808 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
809 { (exit 1); exit 1; }; };;
813 # Be sure to have absolute paths.
814 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
815 localstatedir libdir includedir oldincludedir infodir mandir
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # There might be people who depend on the old broken behavior: `$host'
826 # used to hold the argument of --host etc.
827 # FIXME: To remove some day.
832 # FIXME: To remove some day.
833 if test "x$host_alias" != x; then
834 if test "x$build_alias" = x; then
835 cross_compiling=maybe
836 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
837 If a cross compiler is detected then cross compile mode will be used." >&2
838 elif test "x$build_alias" != "x$host_alias"; then
844 test -n "$host_alias" && ac_tool_prefix=$host_alias-
846 test "$silent" = yes && exec 6>/dev/null
849 # Find the source files, if location was not specified.
850 if test -z "$srcdir"; then
851 ac_srcdir_defaulted=yes
852 # Try the directory containing this script, then its parent.
853 ac_confdir=`(dirname "$0") 2>/dev/null ||
854 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
855 X"$0" : 'X\(//\)[^/]' \| \
856 X"$0" : 'X\(//\)$' \| \
857 X"$0" : 'X\(/\)' \| \
858 . : '\(.\)' 2>/dev/null ||
860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
861 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
862 /^X\(\/\/\)$/{ s//\1/; q; }
863 /^X\(\/\).*/{ s//\1/; q; }
866 if test ! -r $srcdir/$ac_unique_file; then
870 ac_srcdir_defaulted=no
872 if test ! -r $srcdir/$ac_unique_file; then
873 if test "$ac_srcdir_defaulted" = yes; then
874 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
875 { (exit 1); exit 1; }; }
877 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
878 { (exit 1); exit 1; }; }
881 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
882 ac_env_build_alias_set=${build_alias+set}
883 ac_env_build_alias_value=$build_alias
884 ac_cv_env_build_alias_set=${build_alias+set}
885 ac_cv_env_build_alias_value=$build_alias
886 ac_env_host_alias_set=${host_alias+set}
887 ac_env_host_alias_value=$host_alias
888 ac_cv_env_host_alias_set=${host_alias+set}
889 ac_cv_env_host_alias_value=$host_alias
890 ac_env_target_alias_set=${target_alias+set}
891 ac_env_target_alias_value=$target_alias
892 ac_cv_env_target_alias_set=${target_alias+set}
893 ac_cv_env_target_alias_value=$target_alias
894 ac_env_CC_set=${CC+set}
896 ac_cv_env_CC_set=${CC+set}
897 ac_cv_env_CC_value=$CC
898 ac_env_CFLAGS_set=${CFLAGS+set}
899 ac_env_CFLAGS_value=$CFLAGS
900 ac_cv_env_CFLAGS_set=${CFLAGS+set}
901 ac_cv_env_CFLAGS_value=$CFLAGS
902 ac_env_LDFLAGS_set=${LDFLAGS+set}
903 ac_env_LDFLAGS_value=$LDFLAGS
904 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
905 ac_cv_env_LDFLAGS_value=$LDFLAGS
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910 ac_env_CPP_set=${CPP+set}
911 ac_env_CPP_value=$CPP
912 ac_cv_env_CPP_set=${CPP+set}
913 ac_cv_env_CPP_value=$CPP
916 # Report the --help message.
918 if test "$ac_init_help" = "long"; then
919 # Omit some internal or obsolete options to make the list less imposing.
920 # This message is too long to be a string in the A/UX 3.1 sh.
922 \`configure' configures this package to adapt to many kinds of systems.
924 Usage: $0 [OPTION]... [VAR=VALUE]...
926 To assign environment variables (e.g., CC, CFLAGS...), specify them as
927 VAR=VALUE. See below for descriptions of some of the useful variables.
929 Defaults for the options are specified in brackets.
932 -h, --help display this help and exit
933 --help=short display options specific to this package
934 --help=recursive display the short help of all the included packages
935 -V, --version display version information and exit
936 -q, --quiet, --silent do not print \`checking...' messages
937 --cache-file=FILE cache test results in FILE [disabled]
938 -C, --config-cache alias for \`--cache-file=config.cache'
939 -n, --no-create do not create output files
940 --srcdir=DIR find the sources in DIR [configure dir or \`..']
945 Installation directories:
946 --prefix=PREFIX install architecture-independent files in PREFIX
948 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
951 By default, \`make install' will install all the files in
952 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
953 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
954 for instance \`--prefix=\$HOME'.
956 For better control, use the options below.
958 Fine tuning of the installation directories:
959 --bindir=DIR user executables [EPREFIX/bin]
960 --sbindir=DIR system admin executables [EPREFIX/sbin]
961 --libexecdir=DIR program executables [EPREFIX/libexec]
962 --datadir=DIR read-only architecture-independent data [PREFIX/share]
963 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
964 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
965 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
966 --libdir=DIR object code libraries [EPREFIX/lib]
967 --includedir=DIR C header files [PREFIX/include]
968 --oldincludedir=DIR C header files for non-gcc [/usr/include]
969 --infodir=DIR info documentation [PREFIX/info]
970 --mandir=DIR man documentation [PREFIX/man]
976 --program-prefix=PREFIX prepend PREFIX to installed program names
977 --program-suffix=SUFFIX append SUFFIX to installed program names
978 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
981 --build=BUILD configure for building on BUILD [guessed]
982 --host=HOST cross-compile to build programs to run on HOST [BUILD]
983 --target=TARGET configure for building compilers for TARGET [HOST]
987 if test -n "$ac_init_help"; then
992 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
993 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
994 --disable-dependency-tracking Speeds up one-time builds
995 --enable-dependency-tracking Do not reject slow dependency extractors
996 --enable-shared=PKGS build shared libraries default=yes
997 --enable-static=PKGS build static libraries default=yes
998 --enable-fast-install=PKGS optimize for fast installation default=yes
999 --disable-libtool-lock avoid locking (might break parallel builds)
1000 --disable-rpath do not hardcode runtime library paths
1001 --disable-nls do not use Native Language Support
1004 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1005 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1006 --with-gnu-ld assume the C compiler uses GNU ld default=no
1007 --with-pic try to use only PIC/non-PIC objects default=use both
1008 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1009 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1010 --with-included-gettext use the GNU gettext library included here
1011 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1012 --without-libintl-prefix don't search for libintl in includedir and libdir
1014 Some influential environment variables:
1015 CC C compiler command
1016 CFLAGS C compiler flags
1017 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1018 nonstandard directory <lib dir>
1019 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1020 headers in a nonstandard directory <include dir>
1023 Use these variables to override the choices made by `configure' or to help
1024 it to find libraries and programs with nonstandard names/locations.
1029 if test "$ac_init_help" = "recursive"; then
1030 # If there are subdirs, report their specific --help.
1032 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1033 test -d $ac_dir || continue
1036 if test "$ac_dir" != .; then
1037 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1038 # A "../" for each directory in $ac_dir_suffix.
1039 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1041 ac_dir_suffix= ac_top_builddir=
1045 .) # No --srcdir option. We are building in place.
1047 if test -z "$ac_top_builddir"; then
1050 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1052 [\\/]* | ?:[\\/]* ) # Absolute path.
1053 ac_srcdir=$srcdir$ac_dir_suffix;
1054 ac_top_srcdir=$srcdir ;;
1056 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1057 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1059 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1061 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1062 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1063 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1064 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1067 # Check for guested configure; otherwise get Cygnus style configure.
1068 if test -f $ac_srcdir/configure.gnu; then
1070 $SHELL $ac_srcdir/configure.gnu --help=recursive
1071 elif test -f $ac_srcdir/configure; then
1073 $SHELL $ac_srcdir/configure --help=recursive
1074 elif test -f $ac_srcdir/configure.ac ||
1075 test -f $ac_srcdir/configure.in; then
1077 $ac_configure --help
1079 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1085 test -n "$ac_init_help" && exit 0
1086 if $ac_init_version; then
1089 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1090 Free Software Foundation, Inc.
1091 This configure script is free software; the Free Software Foundation
1092 gives unlimited permission to copy, distribute and modify it.
1098 This file contains any messages produced by compilers while
1099 running configure, to aid debugging if configure makes a mistake.
1101 It was created by $as_me, which was
1102 generated by GNU Autoconf 2.53. Invocation command line was
1113 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1114 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1115 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1116 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1117 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1119 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1120 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1122 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1123 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1124 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1125 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1126 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1127 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1128 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1136 test -z "$as_dir" && as_dir=.
1137 echo "PATH: $as_dir"
1152 # Keep a trace of the command line.
1153 # Strip out --no-create and --no-recursion so they do not pile up.
1154 # Also quote any args containing shell meta-characters.
1160 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161 | --no-cr | --no-c | -n ) continue ;;
1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1166 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1168 case " $ac_configure_args " in
1169 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1170 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1173 # Get rid of the leading space.
1176 # When interrupted or exit'd, cleanup temporary files, and complete
1177 # config.log. We remove comments because anyway the quotes in there
1178 # would cause problems or look ugly.
1179 # WARNING: Be sure not to use single quotes in there, as some shells,
1180 # such as our DU 5.0 friend, will then `close' the trap.
1181 trap 'exit_status=$?
1182 # Save into config.log some information that might help in debugging.
1186 ## ---------------- ##
1187 ## Cache variables. ##
1188 ## ---------------- ##
1191 # The following way of writing the cache mishandles newlines in values,
1194 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1197 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1198 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1202 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1207 if test -s confdefs.h; then
1214 sed "/^$/d" confdefs.h
1217 test "$ac_signal" != 0 &&
1218 echo "$as_me: caught signal $ac_signal"
1219 echo "$as_me: exit $exit_status"
1221 rm -f core core.* *.core &&
1222 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1225 for ac_signal in 1 2 13 15; do
1226 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1230 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1231 rm -rf conftest* confdefs.h
1232 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1235 # Predefined preprocessor variables.
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_NAME "$PACKAGE_NAME"
1242 cat >>confdefs.h <<_ACEOF
1243 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_STRING "$PACKAGE_STRING"
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1262 # Let the site file select an alternate cache file if it wants to.
1263 # Prefer explicitly selected file to automatically selected ones.
1264 if test -z "$CONFIG_SITE"; then
1265 if test "x$prefix" != xNONE; then
1266 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1268 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1271 for ac_site_file in $CONFIG_SITE; do
1272 if test -r "$ac_site_file"; then
1273 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1274 echo "$as_me: loading site script $ac_site_file" >&6;}
1275 sed 's/^/| /' "$ac_site_file" >&5
1280 if test -r "$cache_file"; then
1281 # Some versions of bash will fail to source /dev/null (special
1282 # files actually), so we avoid doing that.
1283 if test -f "$cache_file"; then
1284 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1285 echo "$as_me: loading cache $cache_file" >&6;}
1287 [\\/]* | ?:[\\/]* ) . $cache_file;;
1288 *) . ./$cache_file;;
1292 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1293 echo "$as_me: creating cache $cache_file" >&6;}
1297 # Check that the precious variables saved in the cache have kept the same
1299 ac_cache_corrupted=false
1300 for ac_var in `(set) 2>&1 |
1301 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1302 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1303 eval ac_new_set=\$ac_env_${ac_var}_set
1304 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1305 eval ac_new_val="\$ac_env_${ac_var}_value"
1306 case $ac_old_set,$ac_new_set in
1308 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1309 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1310 ac_cache_corrupted=: ;;
1312 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1313 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1314 ac_cache_corrupted=: ;;
1317 if test "x$ac_old_val" != "x$ac_new_val"; then
1318 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1319 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1320 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1321 echo "$as_me: former value: $ac_old_val" >&2;}
1322 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1323 echo "$as_me: current value: $ac_new_val" >&2;}
1324 ac_cache_corrupted=:
1327 # Pass precious variables to config.status.
1328 if test "$ac_new_set" = set; then
1330 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1331 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1332 *) ac_arg=$ac_var=$ac_new_val ;;
1334 case " $ac_configure_args " in
1335 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1336 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1340 if $ac_cache_corrupted; then
1341 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1342 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1343 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1344 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1345 { (exit 1); exit 1; }; }
1349 ac_cpp='$CPP $CPPFLAGS'
1350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1372 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1373 if test -f $ac_dir/install-sh; then
1375 ac_install_sh="$ac_aux_dir/install-sh -c"
1377 elif test -f $ac_dir/install.sh; then
1379 ac_install_sh="$ac_aux_dir/install.sh -c"
1381 elif test -f $ac_dir/shtool; then
1383 ac_install_sh="$ac_aux_dir/shtool install -c"
1387 if test -z "$ac_aux_dir"; then
1388 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1389 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1390 { (exit 1); exit 1; }; }
1392 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1393 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1394 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1396 # Make sure we can run config.sub.
1397 $ac_config_sub sun4 >/dev/null 2>&1 ||
1398 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1399 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1400 { (exit 1); exit 1; }; }
1402 echo "$as_me:$LINENO: checking build system type" >&5
1403 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1404 if test "${ac_cv_build+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1407 ac_cv_build_alias=$build_alias
1408 test -z "$ac_cv_build_alias" &&
1409 ac_cv_build_alias=`$ac_config_guess`
1410 test -z "$ac_cv_build_alias" &&
1411 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1412 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1413 { (exit 1); exit 1; }; }
1414 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1415 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1417 { (exit 1); exit 1; }; }
1420 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1421 echo "${ECHO_T}$ac_cv_build" >&6
1423 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428 echo "$as_me:$LINENO: checking host system type" >&5
1429 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1430 if test "${ac_cv_host+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1433 ac_cv_host_alias=$host_alias
1434 test -z "$ac_cv_host_alias" &&
1435 ac_cv_host_alias=$ac_cv_build_alias
1436 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1437 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1438 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1439 { (exit 1); exit 1; }; }
1442 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1443 echo "${ECHO_T}$ac_cv_host" >&6
1445 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450 echo "$as_me:$LINENO: checking target system type" >&5
1451 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1452 if test "${ac_cv_target+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1455 ac_cv_target_alias=$target_alias
1456 test "x$ac_cv_target_alias" = "x" &&
1457 ac_cv_target_alias=$ac_cv_host_alias
1458 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1459 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1460 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1461 { (exit 1); exit 1; }; }
1464 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1465 echo "${ECHO_T}$ac_cv_target" >&6
1466 target=$ac_cv_target
1467 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1472 # The aliases save the names the user supplied, while $host etc.
1473 # will get canonicalized.
1474 test -n "$target_alias" &&
1475 test "$program_prefix$program_suffix$program_transform_name" = \
1477 program_prefix=${target_alias}-
1479 ac_config_headers="$ac_config_headers "
1481 am__api_version="1.6"
1482 # Find a good install program. We prefer a C program (faster),
1483 # so one script is as good as another. But avoid the broken or
1484 # incompatible versions:
1485 # SysV /etc/install, /usr/sbin/install
1486 # SunOS /usr/etc/install
1487 # IRIX /sbin/install
1489 # AmigaOS /C/install, which installs bootblocks on floppy discs
1490 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1491 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1492 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1493 # ./install, which can be erroneously created by make from ./install.sh.
1494 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1495 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1496 if test -z "$INSTALL"; then
1497 if test "${ac_cv_path_install+set}" = set; then
1498 echo $ECHO_N "(cached) $ECHO_C" >&6
1500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504 test -z "$as_dir" && as_dir=.
1505 # Account for people who put trailing slashes in PATH elements.
1507 ./ | .// | /cC/* | \
1508 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1511 # OSF1 and SCO ODT 3.0 have their own names for install.
1512 # Don't use installbsd from OSF since it installs stuff as root
1514 for ac_prog in ginstall scoinst install; do
1515 for ac_exec_ext in '' $ac_executable_extensions; do
1516 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1517 if test $ac_prog = install &&
1518 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1519 # AIX install. It has an incompatible calling convention.
1521 elif test $ac_prog = install &&
1522 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1523 # program-specific install script used by HP pwplus--don't use.
1526 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1538 if test "${ac_cv_path_install+set}" = set; then
1539 INSTALL=$ac_cv_path_install
1541 # As a last resort, use the slow shell script. We don't cache a
1542 # path for INSTALL within a source directory, because that will
1543 # break other packages using the cache if that directory is
1544 # removed, or if the path is relative.
1545 INSTALL=$ac_install_sh
1548 echo "$as_me:$LINENO: result: $INSTALL" >&5
1549 echo "${ECHO_T}$INSTALL" >&6
1551 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1552 # It thinks the first close brace ends the variable substitution.
1553 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1555 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1557 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1559 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1560 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1563 echo timestamp > conftest.file
1564 # Do `set' in a subshell so we don't clobber the current shell's
1565 # arguments. Must try -L first in case configure is actually a
1566 # symlink; some systems play weird games with the mod time of symlinks
1567 # (eg FreeBSD returns the mod time of the symlink's containing
1570 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1571 if test "$*" = "X"; then
1573 set X `ls -t $srcdir/configure conftest.file`
1576 if test "$*" != "X $srcdir/configure conftest.file" \
1577 && test "$*" != "X conftest.file $srcdir/configure"; then
1579 # If neither matched, then we have a broken ls. This can happen
1580 # if, for instance, CONFIG_SHELL is bash and it inherits a
1581 # broken ls alias from the environment. This has actually
1582 # happened. Such a system could not be considered "sane".
1583 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1584 alias in your environment" >&5
1585 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1586 alias in your environment" >&2;}
1587 { (exit 1); exit 1; }; }
1590 test "$2" = conftest.file
1596 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1597 Check your system clock" >&5
1598 echo "$as_me: error: newly created file is older than distributed files!
1599 Check your system clock" >&2;}
1600 { (exit 1); exit 1; }; }
1602 echo "$as_me:$LINENO: result: yes" >&5
1603 echo "${ECHO_T}yes" >&6
1604 test "$program_prefix" != NONE &&
1605 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1606 # Use a double $ so make ignores it.
1607 test "$program_suffix" != NONE &&
1608 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1609 # Double any \ or $. echo might interpret backslashes.
1610 # By default was `s,x,x', remove it if useless.
1611 cat <<\_ACEOF >conftest.sed
1612 s/[\\$]/&&/g;s/;s,x,x,$//
1614 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1618 # expand $ac_aux_dir to an absolute path
1619 am_aux_dir=`cd $ac_aux_dir && pwd`
1621 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1622 # Use eval to expand $SHELL
1623 if eval "$MISSING --run true"; then
1624 am_missing_run="$MISSING --run "
1627 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1628 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1631 for ac_prog in gawk mawk nawk awk
1633 # Extract the first word of "$ac_prog", so it can be a program name with args.
1634 set dummy $ac_prog; ac_word=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_AWK+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 if test -n "$AWK"; then
1641 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 test -z "$as_dir" && as_dir=.
1648 for ac_exec_ext in '' $ac_executable_extensions; do
1649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650 ac_cv_prog_AWK="$ac_prog"
1651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 if test -n "$AWK"; then
1661 echo "$as_me:$LINENO: result: $AWK" >&5
1662 echo "${ECHO_T}$AWK" >&6
1664 echo "$as_me:$LINENO: result: no" >&5
1665 echo "${ECHO_T}no" >&6
1668 test -n "$AWK" && break
1671 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1672 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1673 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1674 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
1677 cat >conftest.make <<\_ACEOF
1679 @echo 'ac_maketemp="${MAKE}"'
1681 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1682 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1683 if test -n "$ac_maketemp"; then
1684 eval ac_cv_prog_make_${ac_make}_set=yes
1686 eval ac_cv_prog_make_${ac_make}_set=no
1690 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1691 echo "$as_me:$LINENO: result: yes" >&5
1692 echo "${ECHO_T}yes" >&6
1695 echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6
1697 SET_MAKE="MAKE=${MAKE-make}"
1700 # test to see if srcdir already configured
1701 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1702 test -f $srcdir/config.status; then
1703 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1704 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1705 { (exit 1); exit 1; }; }
1708 # Define the identity of the package.
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE "$PACKAGE"
1718 cat >>confdefs.h <<_ACEOF
1719 #define VERSION "$VERSION"
1722 # Some tools Automake needs.
1724 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1727 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1730 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1733 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1736 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1739 AMTAR=${AMTAR-"${am_missing_run}tar"}
1741 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1743 # Installed binaries are usually stripped using `strip' when the user
1744 # run `make install-strip'. However `strip' might not be the right
1745 # tool to use in cross-compilation environments, therefore Automake
1746 # will honor the `STRIP' environment variable to overrule this program.
1747 if test "$cross_compiling" != no; then
1748 if test -n "$ac_tool_prefix"; then
1749 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1750 set dummy ${ac_tool_prefix}strip; ac_word=$2
1751 echo "$as_me:$LINENO: checking for $ac_word" >&5
1752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753 if test "${ac_cv_prog_STRIP+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1756 if test -n "$STRIP"; then
1757 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763 test -z "$as_dir" && as_dir=.
1764 for ac_exec_ext in '' $ac_executable_extensions; do
1765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775 STRIP=$ac_cv_prog_STRIP
1776 if test -n "$STRIP"; then
1777 echo "$as_me:$LINENO: result: $STRIP" >&5
1778 echo "${ECHO_T}$STRIP" >&6
1780 echo "$as_me:$LINENO: result: no" >&5
1781 echo "${ECHO_T}no" >&6
1785 if test -z "$ac_cv_prog_STRIP"; then
1787 # Extract the first word of "strip", so it can be a program name with args.
1788 set dummy strip; ac_word=$2
1789 echo "$as_me:$LINENO: checking for $ac_word" >&5
1790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1791 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 if test -n "$ac_ct_STRIP"; then
1795 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801 test -z "$as_dir" && as_dir=.
1802 for ac_exec_ext in '' $ac_executable_extensions; do
1803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1804 ac_cv_prog_ac_ct_STRIP="strip"
1805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1814 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1815 if test -n "$ac_ct_STRIP"; then
1816 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1817 echo "${ECHO_T}$ac_ct_STRIP" >&6
1819 echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1825 STRIP="$ac_cv_prog_STRIP"
1829 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1831 # We need awk for the "check" target. The system "awk" is bad on
1836 # Add the stamp file to the list of files AC keeps track of,
1837 # along with our hook.
1838 ac_config_headers="$ac_config_headers config.h"
1843 ALL_LINGUAS="cs da de es eu_ES fi fr gl hu id is it ja ko no pl pt pt_BR ro ru sk sl sr sv tr uk wa zh zh_CN.GB2312"
1845 rm -f .deps 2>/dev/null
1846 mkdir .deps 2>/dev/null
1847 if test -d .deps; then
1850 # MS-DOS does not allow filenames that begin with a dot.
1853 rmdir .deps 2>/dev/null
1856 ac_config_commands="$ac_config_commands depfiles"
1859 am_make=${MAKE-make}
1860 cat > confinc << 'END'
1864 # If we don't find an include directive, just comment out the code.
1865 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1866 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1870 # First try GNU make style include.
1871 echo "include confinc" > confmf
1872 # We grep out `Entering directory' and `Leaving directory'
1873 # messages which can occur if `w' ends up in MAKEFLAGS.
1874 # In particular we don't look at `^make:' because GNU make might
1875 # be invoked under some other name (usually "gmake"), in which
1876 # case it prints its new name instead of `make'.
1877 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1882 # Now try BSD make style include.
1883 if test "$am__include" = "#"; then
1884 echo '.include "confinc"' > confmf
1885 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1886 am__include=.include
1893 echo "$as_me:$LINENO: result: $_am_result" >&5
1894 echo "${ECHO_T}$_am_result" >&6
1895 rm -f confinc confmf
1897 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1898 if test "${enable_dependency_tracking+set}" = set; then
1899 enableval="$enable_dependency_tracking"
1902 if test "x$enable_dependency_tracking" != xno; then
1903 am_depcomp="$ac_aux_dir/depcomp"
1908 if test "x$enable_dependency_tracking" != xno; then
1919 ac_cpp='$CPP $CPPFLAGS'
1920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923 if test -n "$ac_tool_prefix"; then
1924 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1925 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1926 echo "$as_me:$LINENO: checking for $ac_word" >&5
1927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928 if test "${ac_cv_prog_CC+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 if test -n "$CC"; then
1932 ac_cv_prog_CC="$CC" # Let the user override the test.
1934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 test -z "$as_dir" && as_dir=.
1939 for ac_exec_ext in '' $ac_executable_extensions; do
1940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1941 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951 if test -n "$CC"; then
1952 echo "$as_me:$LINENO: result: $CC" >&5
1953 echo "${ECHO_T}$CC" >&6
1955 echo "$as_me:$LINENO: result: no" >&5
1956 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 $as_executable_p "$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
1988 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1989 if test -n "$ac_ct_CC"; then
1990 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1991 echo "${ECHO_T}$ac_ct_CC" >&6
1993 echo "$as_me:$LINENO: result: no" >&5
1994 echo "${ECHO_T}no" >&6
2002 if test -z "$CC"; then
2003 if test -n "$ac_tool_prefix"; then
2004 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2005 set dummy ${ac_tool_prefix}cc; ac_word=$2
2006 echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008 if test "${ac_cv_prog_CC+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 if test -n "$CC"; then
2012 ac_cv_prog_CC="$CC" # Let the user override the test.
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 test -z "$as_dir" && as_dir=.
2019 for ac_exec_ext in '' $ac_executable_extensions; do
2020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021 ac_cv_prog_CC="${ac_tool_prefix}cc"
2022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 if test -n "$CC"; then
2032 echo "$as_me:$LINENO: result: $CC" >&5
2033 echo "${ECHO_T}$CC" >&6
2035 echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2040 if test -z "$ac_cv_prog_CC"; then
2042 # Extract the first word of "cc", so it can be a program name with args.
2043 set dummy cc; ac_word=$2
2044 echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 if test -n "$ac_ct_CC"; then
2050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 test -z "$as_dir" && as_dir=.
2057 for ac_exec_ext in '' $ac_executable_extensions; do
2058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059 ac_cv_prog_ac_ct_CC="cc"
2060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2069 if test -n "$ac_ct_CC"; then
2070 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2071 echo "${ECHO_T}$ac_ct_CC" >&6
2073 echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6
2083 if test -z "$CC"; then
2084 # Extract the first word of "cc", so it can be a program name with args.
2085 set dummy cc; ac_word=$2
2086 echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088 if test "${ac_cv_prog_CC+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2091 if test -n "$CC"; then
2092 ac_cv_prog_CC="$CC" # Let the user override the test.
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 test -z "$as_dir" && as_dir=.
2100 for ac_exec_ext in '' $ac_executable_extensions; do
2101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2102 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2103 ac_prog_rejected=yes
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113 if test $ac_prog_rejected = yes; then
2114 # We found a bogon in the path, so make sure we never use it.
2115 set dummy $ac_cv_prog_CC
2117 if test $# != 0; then
2118 # We chose a different compiler from the bogus one.
2119 # However, it has the same basename, so the bogon will be chosen
2120 # first if we set CC to just the basename; use the full file name.
2122 set dummy "$as_dir/$ac_word" ${1+"$@"}
2130 if test -n "$CC"; then
2131 echo "$as_me:$LINENO: result: $CC" >&5
2132 echo "${ECHO_T}$CC" >&6
2134 echo "$as_me:$LINENO: result: no" >&5
2135 echo "${ECHO_T}no" >&6
2139 if test -z "$CC"; then
2140 if test -n "$ac_tool_prefix"; then
2143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2145 echo "$as_me:$LINENO: checking for $ac_word" >&5
2146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2147 if test "${ac_cv_prog_CC+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 if test -n "$CC"; then
2151 ac_cv_prog_CC="$CC" # Let the user override the test.
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 test -z "$as_dir" && as_dir=.
2158 for ac_exec_ext in '' $ac_executable_extensions; do
2159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2160 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170 if test -n "$CC"; then
2171 echo "$as_me:$LINENO: result: $CC" >&5
2172 echo "${ECHO_T}$CC" >&6
2174 echo "$as_me:$LINENO: result: no" >&5
2175 echo "${ECHO_T}no" >&6
2178 test -n "$CC" && break
2181 if test -z "$CC"; then
2185 # Extract the first word of "$ac_prog", so it can be a program name with args.
2186 set dummy $ac_prog; ac_word=$2
2187 echo "$as_me:$LINENO: checking for $ac_word" >&5
2188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2189 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 if test -n "$ac_ct_CC"; then
2193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199 test -z "$as_dir" && as_dir=.
2200 for ac_exec_ext in '' $ac_executable_extensions; do
2201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2202 ac_cv_prog_ac_ct_CC="$ac_prog"
2203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2212 if test -n "$ac_ct_CC"; then
2213 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2214 echo "${ECHO_T}$ac_ct_CC" >&6
2216 echo "$as_me:$LINENO: result: no" >&5
2217 echo "${ECHO_T}no" >&6
2220 test -n "$ac_ct_CC" && break
2229 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2230 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2231 { (exit 1); exit 1; }; }
2233 # Provide some information about the compiler.
2234 echo "$as_me:$LINENO:" \
2235 "checking for C compiler version" >&5
2236 ac_compiler=`set X $ac_compile; echo $2`
2237 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2238 (eval $ac_compiler --version </dev/null >&5) 2>&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }
2242 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2243 (eval $ac_compiler -v </dev/null >&5) 2>&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }
2247 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2248 (eval $ac_compiler -V </dev/null >&5) 2>&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }
2253 cat >conftest.$ac_ext <<_ACEOF
2254 #line $LINENO "configure"
2255 #include "confdefs.h"
2257 #ifdef F77_DUMMY_MAIN
2261 int F77_DUMMY_MAIN() { return 1; }
2271 ac_clean_files_save=$ac_clean_files
2272 ac_clean_files="$ac_clean_files a.out a.exe"
2273 # Try to create an executable without -o first, disregard a.out.
2274 # It will help us diagnose broken compilers, and finding out an intuition
2276 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2277 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2278 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2279 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2280 (eval $ac_link_default) 2>&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; then
2284 # Find the output, starting from the most likely. This scheme is
2285 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2288 # Be careful to initialize this variable, since it used to be cached.
2289 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2291 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2292 ls a.out conftest 2>/dev/null;
2293 ls a.* conftest.* 2>/dev/null`; do
2295 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2296 a.out ) # We found the default executable, but exeext='' is most
2299 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2300 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2307 echo "$as_me: failed program was:" >&5
2308 cat conftest.$ac_ext >&5
2309 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2310 echo "$as_me: error: C compiler cannot create executables" >&2;}
2311 { (exit 77); exit 77; }; }
2314 ac_exeext=$ac_cv_exeext
2315 echo "$as_me:$LINENO: result: $ac_file" >&5
2316 echo "${ECHO_T}$ac_file" >&6
2318 # Check the compiler produces executables we can run. If not, either
2319 # the compiler is broken, or we cross compile.
2320 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2321 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2322 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2323 # If not cross compiling, check that we can run a simple program.
2324 if test "$cross_compiling" != yes; then
2325 if { ac_try='./$ac_file'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2333 if test "$cross_compiling" = maybe; then
2336 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2337 If you meant to cross compile, use \`--host'." >&5
2338 echo "$as_me: error: cannot run C compiled programs.
2339 If you meant to cross compile, use \`--host'." >&2;}
2340 { (exit 1); exit 1; }; }
2344 echo "$as_me:$LINENO: result: yes" >&5
2345 echo "${ECHO_T}yes" >&6
2347 rm -f a.out a.exe conftest$ac_cv_exeext
2348 ac_clean_files=$ac_clean_files_save
2349 # Check the compiler produces executables we can run. If not, either
2350 # the compiler is broken, or we cross compile.
2351 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2352 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2353 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2354 echo "${ECHO_T}$cross_compiling" >&6
2356 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2357 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2359 (eval $ac_link) 2>&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; then
2363 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2364 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2365 # work properly (i.e., refer to `conftest.exe'), while it won't with
2367 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2369 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2370 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2377 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2378 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2379 { (exit 1); exit 1; }; }
2382 rm -f conftest$ac_cv_exeext
2383 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2384 echo "${ECHO_T}$ac_cv_exeext" >&6
2386 rm -f conftest.$ac_ext
2387 EXEEXT=$ac_cv_exeext
2389 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2390 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2391 if test "${ac_cv_objext+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 cat >conftest.$ac_ext <<_ACEOF
2395 #line $LINENO "configure"
2396 #include "confdefs.h"
2398 #ifdef F77_DUMMY_MAIN
2402 int F77_DUMMY_MAIN() { return 1; }
2412 rm -f conftest.o conftest.obj
2413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414 (eval $ac_compile) 2>&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; then
2418 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2421 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2426 echo "$as_me: failed program was:" >&5
2427 cat conftest.$ac_ext >&5
2428 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2429 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2430 { (exit 1); exit 1; }; }
2433 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2435 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2436 echo "${ECHO_T}$ac_cv_objext" >&6
2437 OBJEXT=$ac_cv_objext
2439 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2440 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2441 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 cat >conftest.$ac_ext <<_ACEOF
2445 #line $LINENO "configure"
2446 #include "confdefs.h"
2448 #ifdef F77_DUMMY_MAIN
2452 int F77_DUMMY_MAIN() { return 1; }
2465 rm -f conftest.$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467 (eval $ac_compile) 2>&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2479 echo "$as_me: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2483 rm -f conftest.$ac_objext conftest.$ac_ext
2484 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2487 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2488 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2489 GCC=`test $ac_compiler_gnu = yes && echo yes`
2490 ac_test_CFLAGS=${CFLAGS+set}
2491 ac_save_CFLAGS=$CFLAGS
2493 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2494 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2495 if test "${ac_cv_prog_cc_g+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 cat >conftest.$ac_ext <<_ACEOF
2499 #line $LINENO "configure"
2500 #include "confdefs.h"
2502 #ifdef F77_DUMMY_MAIN
2506 int F77_DUMMY_MAIN() { return 1; }
2516 rm -f conftest.$ac_objext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518 (eval $ac_compile) 2>&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); } &&
2522 { ac_try='test -s conftest.$ac_objext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2530 echo "$as_me: failed program was:" >&5
2531 cat conftest.$ac_ext >&5
2534 rm -f conftest.$ac_objext conftest.$ac_ext
2536 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2537 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2538 if test "$ac_test_CFLAGS" = set; then
2539 CFLAGS=$ac_save_CFLAGS
2540 elif test $ac_cv_prog_cc_g = yes; then
2541 if test "$GCC" = yes; then
2547 if test "$GCC" = yes; then
2553 # Some people use a C++ compiler to compile C. Since we use `exit',
2554 # in C++ we need to declare it. In case someone uses the same compiler
2555 # for both compiling C and C++ we need to have the C++ compiler decide
2556 # the declaration of exit, since it's the most demanding environment.
2557 cat >conftest.$ac_ext <<_ACEOF
2562 rm -f conftest.$ac_objext
2563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2564 (eval $ac_compile) 2>&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); } &&
2568 { ac_try='test -s conftest.$ac_objext'
2569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
2574 for ac_declaration in \
2576 '#include <stdlib.h>' \
2577 'extern "C" void std::exit (int) throw (); using std::exit;' \
2578 'extern "C" void std::exit (int); using std::exit;' \
2579 'extern "C" void exit (int) throw ();' \
2580 'extern "C" void exit (int);' \
2583 cat >conftest.$ac_ext <<_ACEOF
2584 #line $LINENO "configure"
2585 #include "confdefs.h"
2588 #ifdef F77_DUMMY_MAIN
2592 int F77_DUMMY_MAIN() { return 1; }
2602 rm -f conftest.$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -s conftest.$ac_objext'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; }; then
2616 echo "$as_me: failed program was:" >&5
2617 cat conftest.$ac_ext >&5
2620 rm -f conftest.$ac_objext conftest.$ac_ext
2621 cat >conftest.$ac_ext <<_ACEOF
2622 #line $LINENO "configure"
2623 #include "confdefs.h"
2625 #ifdef F77_DUMMY_MAIN
2629 int F77_DUMMY_MAIN() { return 1; }
2639 rm -f conftest.$ac_objext
2640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641 (eval $ac_compile) 2>&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } &&
2645 { ac_try='test -s conftest.$ac_objext'
2646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; }; then
2653 echo "$as_me: failed program was:" >&5
2654 cat conftest.$ac_ext >&5
2656 rm -f conftest.$ac_objext conftest.$ac_ext
2659 if test -n "$ac_declaration"; then
2660 echo '#ifdef __cplusplus' >>confdefs.h
2661 echo $ac_declaration >>confdefs.h
2662 echo '#endif' >>confdefs.h
2666 echo "$as_me: failed program was:" >&5
2667 cat conftest.$ac_ext >&5
2669 rm -f conftest.$ac_objext conftest.$ac_ext
2671 ac_cpp='$CPP $CPPFLAGS'
2672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2676 depcc="$CC" am_compiler_list=
2678 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2679 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2680 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2684 # We make a subdir and do the tests there. Otherwise we can end up
2685 # making bogus files that we don't know about and never remove. For
2686 # instance it was reported that on HP-UX the gcc test will end up
2687 # making a dummy file named `D' -- because `-MD' means `put the output
2690 # Copy depcomp to subdir because otherwise we won't find it if we're
2691 # using a relative directory.
2692 cp "$am_depcomp" conftest.dir
2695 am_cv_CC_dependencies_compiler_type=none
2696 if test "$am_compiler_list" = ""; then
2697 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2699 for depmode in $am_compiler_list; do
2700 # We need to recreate these files for each test, as the compiler may
2701 # overwrite some of them when testing with obscure command lines.
2702 # This happens at least with the AIX C compiler.
2703 echo '#include "conftest.h"' > conftest.c
2704 echo 'int i;' > conftest.h
2705 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2709 # after this tag, mechanisms are not by side-effect, so they'll
2710 # only be used when explicitly requested
2711 if test "x$enable_dependency_tracking" = xyes; then
2719 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2720 # mode. It turns out that the SunPro C++ compiler does not properly
2721 # handle `-M -o', and we need to detect this.
2722 if depmode=$depmode \
2723 source=conftest.c object=conftest.o \
2724 depfile=conftest.Po tmpdepfile=conftest.TPo \
2725 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2726 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2727 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2728 am_cv_CC_dependencies_compiler_type=$depmode
2736 am_cv_CC_dependencies_compiler_type=none
2740 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2741 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2742 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2747 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2748 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2749 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 ac_check_lib_save_LIBS=$LIBS
2753 LIBS="-lcposix $LIBS"
2754 cat >conftest.$ac_ext <<_ACEOF
2755 #line $LINENO "configure"
2756 #include "confdefs.h"
2758 /* Override any gcc2 internal prototype to avoid an error. */
2762 /* We use char because int might match the return type of a gcc2
2763 builtin and then its argument prototype would still apply. */
2765 #ifdef F77_DUMMY_MAIN
2769 int F77_DUMMY_MAIN() { return 1; }
2779 rm -f conftest.$ac_objext conftest$ac_exeext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2781 (eval $ac_link) 2>&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } &&
2785 { ac_try='test -s conftest$ac_exeext'
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; }; then
2791 ac_cv_lib_cposix_strerror=yes
2793 echo "$as_me: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2795 ac_cv_lib_cposix_strerror=no
2797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2798 LIBS=$ac_check_lib_save_LIBS
2800 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2801 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2802 if test $ac_cv_lib_cposix_strerror = yes; then
2803 LIBS="$LIBS -lcposix"
2810 ac_cpp='$CPP $CPPFLAGS'
2811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2814 if test -n "$ac_tool_prefix"; then
2815 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2816 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2817 echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2819 if test "${ac_cv_prog_CC+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC="$CC" # Let the user override the test.
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2832 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 if test -n "$CC"; then
2843 echo "$as_me:$LINENO: result: $CC" >&5
2844 echo "${ECHO_T}$CC" >&6
2846 echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6
2851 if test -z "$ac_cv_prog_CC"; then
2853 # Extract the first word of "gcc", so it can be a program name with args.
2854 set dummy gcc; ac_word=$2
2855 echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2857 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 if test -n "$ac_ct_CC"; then
2861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2870 ac_cv_prog_ac_ct_CC="gcc"
2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2880 if test -n "$ac_ct_CC"; then
2881 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2882 echo "${ECHO_T}$ac_ct_CC" >&6
2884 echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6
2893 if test -z "$CC"; then
2894 if test -n "$ac_tool_prefix"; then
2895 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2896 set dummy ${ac_tool_prefix}cc; ac_word=$2
2897 echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2899 if test "${ac_cv_prog_CC+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 if test -n "$CC"; then
2903 ac_cv_prog_CC="$CC" # Let the user override the test.
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_CC="${ac_tool_prefix}cc"
2913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 if test -n "$CC"; then
2923 echo "$as_me:$LINENO: result: $CC" >&5
2924 echo "${ECHO_T}$CC" >&6
2926 echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6
2931 if test -z "$ac_cv_prog_CC"; then
2933 # Extract the first word of "cc", so it can be a program name with args.
2934 set dummy cc; ac_word=$2
2935 echo "$as_me:$LINENO: checking for $ac_word" >&5
2936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2937 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2940 if test -n "$ac_ct_CC"; then
2941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950 ac_cv_prog_ac_ct_CC="cc"
2951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2960 if test -n "$ac_ct_CC"; then
2961 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2962 echo "${ECHO_T}$ac_ct_CC" >&6
2964 echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6
2974 if test -z "$CC"; then
2975 # Extract the first word of "cc", so it can be a program name with args.
2976 set dummy cc; ac_word=$2
2977 echo "$as_me:$LINENO: checking for $ac_word" >&5
2978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2979 if test "${ac_cv_prog_CC+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 if test -n "$CC"; then
2983 ac_cv_prog_CC="$CC" # Let the user override the test.
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2994 ac_prog_rejected=yes
2998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 if test $ac_prog_rejected = yes; then
3005 # We found a bogon in the path, so make sure we never use it.
3006 set dummy $ac_cv_prog_CC
3008 if test $# != 0; then
3009 # We chose a different compiler from the bogus one.
3010 # However, it has the same basename, so the bogon will be chosen
3011 # first if we set CC to just the basename; use the full file name.
3013 set dummy "$as_dir/$ac_word" ${1+"$@"}
3021 if test -n "$CC"; then
3022 echo "$as_me:$LINENO: result: $CC" >&5
3023 echo "${ECHO_T}$CC" >&6
3025 echo "$as_me:$LINENO: result: no" >&5
3026 echo "${ECHO_T}no" >&6
3030 if test -z "$CC"; then
3031 if test -n "$ac_tool_prefix"; then
3034 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3035 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3036 echo "$as_me:$LINENO: checking for $ac_word" >&5
3037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3038 if test "${ac_cv_prog_CC+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 if test -n "$CC"; then
3042 ac_cv_prog_CC="$CC" # Let the user override the test.
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3051 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 if test -n "$CC"; then
3062 echo "$as_me:$LINENO: result: $CC" >&5
3063 echo "${ECHO_T}$CC" >&6
3065 echo "$as_me:$LINENO: result: no" >&5
3066 echo "${ECHO_T}no" >&6
3069 test -n "$CC" && break
3072 if test -z "$CC"; then
3076 # Extract the first word of "$ac_prog", so it can be a program name with args.
3077 set dummy $ac_prog; ac_word=$2
3078 echo "$as_me:$LINENO: checking for $ac_word" >&5
3079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3080 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 if test -n "$ac_ct_CC"; then
3084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093 ac_cv_prog_ac_ct_CC="$ac_prog"
3094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3103 if test -n "$ac_ct_CC"; then
3104 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3105 echo "${ECHO_T}$ac_ct_CC" >&6
3107 echo "$as_me:$LINENO: result: no" >&5
3108 echo "${ECHO_T}no" >&6
3111 test -n "$ac_ct_CC" && break
3120 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
3121 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
3122 { (exit 1); exit 1; }; }
3124 # Provide some information about the compiler.
3125 echo "$as_me:$LINENO:" \
3126 "checking for C compiler version" >&5
3127 ac_compiler=`set X $ac_compile; echo $2`
3128 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3129 (eval $ac_compiler --version </dev/null >&5) 2>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }
3133 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3134 (eval $ac_compiler -v </dev/null >&5) 2>&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }
3138 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3139 (eval $ac_compiler -V </dev/null >&5) 2>&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }
3144 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3145 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3146 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 cat >conftest.$ac_ext <<_ACEOF
3150 #line $LINENO "configure"
3151 #include "confdefs.h"
3153 #ifdef F77_DUMMY_MAIN
3157 int F77_DUMMY_MAIN() { return 1; }
3170 rm -f conftest.$ac_objext
3171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3172 (eval $ac_compile) 2>&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } &&
3176 { ac_try='test -s conftest.$ac_objext'
3177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
3184 echo "$as_me: failed program was:" >&5
3185 cat conftest.$ac_ext >&5
3188 rm -f conftest.$ac_objext conftest.$ac_ext
3189 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3192 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3193 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3194 GCC=`test $ac_compiler_gnu = yes && echo yes`
3195 ac_test_CFLAGS=${CFLAGS+set}
3196 ac_save_CFLAGS=$CFLAGS
3198 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3199 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3200 if test "${ac_cv_prog_cc_g+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 cat >conftest.$ac_ext <<_ACEOF
3204 #line $LINENO "configure"
3205 #include "confdefs.h"
3207 #ifdef F77_DUMMY_MAIN
3211 int F77_DUMMY_MAIN() { return 1; }
3221 rm -f conftest.$ac_objext
3222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3223 (eval $ac_compile) 2>&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); } &&
3227 { ac_try='test -s conftest.$ac_objext'
3228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); }; }; then
3235 echo "$as_me: failed program was:" >&5
3236 cat conftest.$ac_ext >&5
3239 rm -f conftest.$ac_objext conftest.$ac_ext
3241 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3242 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3243 if test "$ac_test_CFLAGS" = set; then
3244 CFLAGS=$ac_save_CFLAGS
3245 elif test $ac_cv_prog_cc_g = yes; then
3246 if test "$GCC" = yes; then
3252 if test "$GCC" = yes; then
3258 # Some people use a C++ compiler to compile C. Since we use `exit',
3259 # in C++ we need to declare it. In case someone uses the same compiler
3260 # for both compiling C and C++ we need to have the C++ compiler decide
3261 # the declaration of exit, since it's the most demanding environment.
3262 cat >conftest.$ac_ext <<_ACEOF
3267 rm -f conftest.$ac_objext
3268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3269 (eval $ac_compile) 2>&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 { ac_try='test -s conftest.$ac_objext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3279 for ac_declaration in \
3281 '#include <stdlib.h>' \
3282 'extern "C" void std::exit (int) throw (); using std::exit;' \
3283 'extern "C" void std::exit (int); using std::exit;' \
3284 'extern "C" void exit (int) throw ();' \
3285 'extern "C" void exit (int);' \
3288 cat >conftest.$ac_ext <<_ACEOF
3289 #line $LINENO "configure"
3290 #include "confdefs.h"
3293 #ifdef F77_DUMMY_MAIN
3297 int F77_DUMMY_MAIN() { return 1; }
3307 rm -f conftest.$ac_objext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3309 (eval $ac_compile) 2>&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } &&
3313 { ac_try='test -s conftest.$ac_objext'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; }; then
3321 echo "$as_me: failed program was:" >&5
3322 cat conftest.$ac_ext >&5
3325 rm -f conftest.$ac_objext conftest.$ac_ext
3326 cat >conftest.$ac_ext <<_ACEOF
3327 #line $LINENO "configure"
3328 #include "confdefs.h"
3330 #ifdef F77_DUMMY_MAIN
3334 int F77_DUMMY_MAIN() { return 1; }
3344 rm -f conftest.$ac_objext
3345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3346 (eval $ac_compile) 2>&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } &&
3350 { ac_try='test -s conftest.$ac_objext'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3358 echo "$as_me: failed program was:" >&5
3359 cat conftest.$ac_ext >&5
3361 rm -f conftest.$ac_objext conftest.$ac_ext
3364 if test -n "$ac_declaration"; then
3365 echo '#ifdef __cplusplus' >>confdefs.h
3366 echo $ac_declaration >>confdefs.h
3367 echo '#endif' >>confdefs.h
3371 echo "$as_me: failed program was:" >&5
3372 cat conftest.$ac_ext >&5
3374 rm -f conftest.$ac_objext conftest.$ac_ext
3376 ac_cpp='$CPP $CPPFLAGS'
3377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3381 depcc="$CC" am_compiler_list=
3383 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3384 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3385 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3389 # We make a subdir and do the tests there. Otherwise we can end up
3390 # making bogus files that we don't know about and never remove. For
3391 # instance it was reported that on HP-UX the gcc test will end up
3392 # making a dummy file named `D' -- because `-MD' means `put the output
3395 # Copy depcomp to subdir because otherwise we won't find it if we're
3396 # using a relative directory.
3397 cp "$am_depcomp" conftest.dir
3400 am_cv_CC_dependencies_compiler_type=none
3401 if test "$am_compiler_list" = ""; then
3402 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3404 for depmode in $am_compiler_list; do
3405 # We need to recreate these files for each test, as the compiler may
3406 # overwrite some of them when testing with obscure command lines.
3407 # This happens at least with the AIX C compiler.
3408 echo '#include "conftest.h"' > conftest.c
3409 echo 'int i;' > conftest.h
3410 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3414 # after this tag, mechanisms are not by side-effect, so they'll
3415 # only be used when explicitly requested
3416 if test "x$enable_dependency_tracking" = xyes; then
3424 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3425 # mode. It turns out that the SunPro C++ compiler does not properly
3426 # handle `-M -o', and we need to detect this.
3427 if depmode=$depmode \
3428 source=conftest.c object=conftest.o \
3429 depfile=conftest.Po tmpdepfile=conftest.TPo \
3430 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3431 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3432 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3433 am_cv_CC_dependencies_compiler_type=$depmode
3441 am_cv_CC_dependencies_compiler_type=none
3445 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3446 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3447 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3451 ac_cpp='$CPP $CPPFLAGS'
3452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3456 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3457 # On Suns, sometimes $CPP names a directory.
3458 if test -n "$CPP" && test -d "$CPP"; then
3461 if test -z "$CPP"; then
3462 if test "${ac_cv_prog_CPP+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 # Double quotes because CPP needs to be expanded
3466 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3469 for ac_c_preproc_warn_flag in '' yes
3471 # Use a header file that comes with gcc, so configuring glibc
3472 # with a fresh cross-compiler works.
3473 # On the NeXT, cc -E runs the code through the compiler's parser,
3474 # not just through cpp. "Syntax error" is here to catch this case.
3475 cat >conftest.$ac_ext <<_ACEOF
3476 #line $LINENO "configure"
3477 #include "confdefs.h"
3481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3484 egrep -v '^ *\+' conftest.er1 >conftest.err
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } >/dev/null; then
3489 if test -s conftest.err; then
3490 ac_cpp_err=$ac_c_preproc_warn_flag
3497 if test -z "$ac_cpp_err"; then
3500 echo "$as_me: failed program was:" >&5
3501 cat conftest.$ac_ext >&5
3502 # Broken: fails on valid input.
3505 rm -f conftest.err conftest.$ac_ext
3507 # OK, works on sane cases. Now check whether non-existent headers
3508 # can be detected and how.
3509 cat >conftest.$ac_ext <<_ACEOF
3510 #line $LINENO "configure"
3511 #include "confdefs.h"
3512 #include <ac_nonexistent.h>
3514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3517 egrep -v '^ *\+' conftest.er1 >conftest.err
3519 cat conftest.err >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } >/dev/null; then
3522 if test -s conftest.err; then
3523 ac_cpp_err=$ac_c_preproc_warn_flag
3530 if test -z "$ac_cpp_err"; then
3531 # Broken: success on invalid input.
3534 echo "$as_me: failed program was:" >&5
3535 cat conftest.$ac_ext >&5
3536 # Passes both tests.
3540 rm -f conftest.err conftest.$ac_ext
3543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3544 rm -f conftest.err conftest.$ac_ext
3545 if $ac_preproc_ok; then
3557 echo "$as_me:$LINENO: result: $CPP" >&5
3558 echo "${ECHO_T}$CPP" >&6
3560 for ac_c_preproc_warn_flag in '' yes
3562 # Use a header file that comes with gcc, so configuring glibc
3563 # with a fresh cross-compiler works.
3564 # On the NeXT, cc -E runs the code through the compiler's parser,
3565 # not just through cpp. "Syntax error" is here to catch this case.
3566 cat >conftest.$ac_ext <<_ACEOF
3567 #line $LINENO "configure"
3568 #include "confdefs.h"
3572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3575 egrep -v '^ *\+' conftest.er1 >conftest.err
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } >/dev/null; then
3580 if test -s conftest.err; then
3581 ac_cpp_err=$ac_c_preproc_warn_flag
3588 if test -z "$ac_cpp_err"; then
3591 echo "$as_me: failed program was:" >&5
3592 cat conftest.$ac_ext >&5
3593 # Broken: fails on valid input.
3596 rm -f conftest.err conftest.$ac_ext
3598 # OK, works on sane cases. Now check whether non-existent headers
3599 # can be detected and how.
3600 cat >conftest.$ac_ext <<_ACEOF
3601 #line $LINENO "configure"
3602 #include "confdefs.h"
3603 #include <ac_nonexistent.h>
3605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3608 egrep -v '^ *\+' conftest.er1 >conftest.err
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } >/dev/null; then
3613 if test -s conftest.err; then
3614 ac_cpp_err=$ac_c_preproc_warn_flag
3621 if test -z "$ac_cpp_err"; then
3622 # Broken: success on invalid input.
3625 echo "$as_me: failed program was:" >&5
3626 cat conftest.$ac_ext >&5
3627 # Passes both tests.
3631 rm -f conftest.err conftest.$ac_ext
3634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3635 rm -f conftest.err conftest.$ac_ext
3636 if $ac_preproc_ok; then
3639 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3640 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3641 { (exit 1); exit 1; }; }
3645 ac_cpp='$CPP $CPPFLAGS'
3646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651 if test $ac_cv_c_compiler_gnu = yes; then
3652 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3653 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3654 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 ac_pattern="Autoconf.*'x'"
3658 cat >conftest.$ac_ext <<_ACEOF
3659 #line $LINENO "configure"
3660 #include "confdefs.h"
3664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3665 egrep "$ac_pattern" >/dev/null 2>&1; then
3666 ac_cv_prog_gcc_traditional=yes
3668 ac_cv_prog_gcc_traditional=no
3673 if test $ac_cv_prog_gcc_traditional = no; then
3674 cat >conftest.$ac_ext <<_ACEOF
3675 #line $LINENO "configure"
3676 #include "confdefs.h"
3680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3681 egrep "$ac_pattern" >/dev/null 2>&1; then
3682 ac_cv_prog_gcc_traditional=yes
3688 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3689 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3690 if test $ac_cv_prog_gcc_traditional = yes; then
3691 CC="$CC -traditional"
3698 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3699 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3700 if test "${am_cv_prog_cc_stdc+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 am_cv_prog_cc_stdc=no
3705 # Don't try gcc -ansi; that turns off useful extensions and
3706 # breaks some systems' header files.
3707 # AIX -qlanglvl=ansi
3708 # Ultrix and OSF/1 -std1
3709 # HP-UX 10.20 and later -Ae
3710 # HP-UX older versions -Aa -D_HPUX_SOURCE
3711 # SVR4 -Xc -D__EXTENSIONS__
3712 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3714 CC="$ac_save_CC $ac_arg"
3715 cat >conftest.$ac_ext <<_ACEOF
3716 #line $LINENO "configure"
3717 #include "confdefs.h"
3720 #include <sys/types.h>
3721 #include <sys/stat.h>
3722 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3723 struct buf { int x; };
3724 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3725 static char *e (p, i)
3731 static char *f (char * (*g) (char **, int), char **p, ...)
3736 s = g (p, va_arg (v,int));
3740 int test (int i, double x);
3741 struct s1 {int (*f) (int a);};
3742 struct s2 {int (*f) (double a);};
3743 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3747 #ifdef F77_DUMMY_MAIN
3751 int F77_DUMMY_MAIN() { return 1; }
3757 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3763 rm -f conftest.$ac_objext
3764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3765 (eval $ac_compile) 2>&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } &&
3769 { ac_try='test -s conftest.$ac_objext'
3770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; }; then
3775 am_cv_prog_cc_stdc="$ac_arg"; break
3777 echo "$as_me: failed program was:" >&5
3778 cat conftest.$ac_ext >&5
3780 rm -f conftest.$ac_objext conftest.$ac_ext
3786 if test -z "$am_cv_prog_cc_stdc"; then
3787 echo "$as_me:$LINENO: result: none needed" >&5
3788 echo "${ECHO_T}none needed" >&6
3790 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3791 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3793 case "x$am_cv_prog_cc_stdc" in
3795 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3798 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3808 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3809 inttypes.h stdint.h unistd.h
3811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3812 echo "$as_me:$LINENO: checking for $ac_header" >&5
3813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 cat >conftest.$ac_ext <<_ACEOF
3818 #line $LINENO "configure"
3819 #include "confdefs.h"
3820 $ac_includes_default
3822 #include <$ac_header>
3824 rm -f conftest.$ac_objext
3825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3826 (eval $ac_compile) 2>&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } &&
3830 { ac_try='test -s conftest.$ac_objext'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
3836 eval "$as_ac_Header=yes"
3838 echo "$as_me: failed program was:" >&5
3839 cat conftest.$ac_ext >&5
3840 eval "$as_ac_Header=no"
3842 rm -f conftest.$ac_objext conftest.$ac_ext
3844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3847 cat >>confdefs.h <<_ACEOF
3848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3858 echo "$as_me:$LINENO: checking for function prototypes" >&5
3859 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3860 if test "$am_cv_prog_cc_stdc" != no; then
3861 echo "$as_me:$LINENO: result: yes" >&5
3862 echo "${ECHO_T}yes" >&6
3864 cat >>confdefs.h <<\_ACEOF
3865 #define PROTOTYPES 1
3870 echo "$as_me:$LINENO: result: no" >&5
3871 echo "${ECHO_T}no" >&6
3872 U=_ ANSI2KNR=./ansi2knr
3874 # Ensure some checks needed by ansi2knr itself.
3875 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3876 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3877 if test "${ac_cv_header_stdc+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 cat >conftest.$ac_ext <<_ACEOF
3881 #line $LINENO "configure"
3882 #include "confdefs.h"
3889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3892 egrep -v '^ *\+' conftest.er1 >conftest.err
3894 cat conftest.err >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } >/dev/null; then
3897 if test -s conftest.err; then
3898 ac_cpp_err=$ac_c_preproc_warn_flag
3905 if test -z "$ac_cpp_err"; then
3906 ac_cv_header_stdc=yes
3908 echo "$as_me: failed program was:" >&5
3909 cat conftest.$ac_ext >&5
3910 ac_cv_header_stdc=no
3912 rm -f conftest.err conftest.$ac_ext
3914 if test $ac_cv_header_stdc = yes; then
3915 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3916 cat >conftest.$ac_ext <<_ACEOF
3917 #line $LINENO "configure"
3918 #include "confdefs.h"
3922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3923 egrep "memchr" >/dev/null 2>&1; then
3926 ac_cv_header_stdc=no
3932 if test $ac_cv_header_stdc = yes; then
3933 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3934 cat >conftest.$ac_ext <<_ACEOF
3935 #line $LINENO "configure"
3936 #include "confdefs.h"
3940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3941 egrep "free" >/dev/null 2>&1; then
3944 ac_cv_header_stdc=no
3950 if test $ac_cv_header_stdc = yes; then
3951 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3952 if test "$cross_compiling" = yes; then
3955 cat >conftest.$ac_ext <<_ACEOF
3956 #line $LINENO "configure"
3957 #include "confdefs.h"
3959 #if ((' ' & 0x0FF) == 0x020)
3960 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3961 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3963 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3964 || ('j' <= (c) && (c) <= 'r') \
3965 || ('s' <= (c) && (c) <= 'z'))
3966 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3969 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3974 for (i = 0; i < 256; i++)
3975 if (XOR (islower (i), ISLOWER (i))
3976 || toupper (i) != TOUPPER (i))
3981 rm -f conftest$ac_exeext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3983 (eval $ac_link) 2>&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; }; then
3994 echo "$as_me: program exited with status $ac_status" >&5
3995 echo "$as_me: failed program was:" >&5
3996 cat conftest.$ac_ext >&5
3998 ac_cv_header_stdc=no
4000 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4004 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4005 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4006 if test $ac_cv_header_stdc = yes; then
4008 cat >>confdefs.h <<\_ACEOF
4009 #define STDC_HEADERS 1
4015 for ac_header in string.h
4017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4019 echo "$as_me:$LINENO: checking for $ac_header" >&5
4020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4027 # Is the header compilable?
4028 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4030 cat >conftest.$ac_ext <<_ACEOF
4031 #line $LINENO "configure"
4032 #include "confdefs.h"
4033 $ac_includes_default
4034 #include <$ac_header>
4036 rm -f conftest.$ac_objext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -s conftest.$ac_objext'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; }; then
4048 ac_header_compiler=yes
4050 echo "$as_me: failed program was:" >&5
4051 cat conftest.$ac_ext >&5
4052 ac_header_compiler=no
4054 rm -f conftest.$ac_objext conftest.$ac_ext
4055 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4056 echo "${ECHO_T}$ac_header_compiler" >&6
4058 # Is the header present?
4059 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4061 cat >conftest.$ac_ext <<_ACEOF
4062 #line $LINENO "configure"
4063 #include "confdefs.h"
4064 #include <$ac_header>
4066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4069 egrep -v '^ *\+' conftest.er1 >conftest.err
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } >/dev/null; then
4074 if test -s conftest.err; then
4075 ac_cpp_err=$ac_c_preproc_warn_flag
4082 if test -z "$ac_cpp_err"; then
4083 ac_header_preproc=yes
4085 echo "$as_me: failed program was:" >&5
4086 cat conftest.$ac_ext >&5
4087 ac_header_preproc=no
4089 rm -f conftest.err conftest.$ac_ext
4090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4091 echo "${ECHO_T}$ac_header_preproc" >&6
4093 # So? What about this header?
4094 case $ac_header_compiler:$ac_header_preproc in
4096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4104 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4108 echo "$as_me:$LINENO: checking for $ac_header" >&5
4109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 eval "$as_ac_Header=$ac_header_preproc"
4115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4120 cat >>confdefs.h <<_ACEOF
4121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4130 # Check whether --enable-shared or --disable-shared was given.
4131 if test "${enable_shared+set}" = set; then
4132 enableval="$enable_shared"
4133 p=${PACKAGE-default}
4135 yes) enable_shared=yes ;;
4136 no) enable_shared=no ;;
4139 # Look at the argument we got. We use all the common list separators.
4140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4141 for pkg in $enableval; do
4142 if test "X$pkg" = "X$p"; then
4152 # Check whether --enable-static or --disable-static was given.
4153 if test "${enable_static+set}" = set; then
4154 enableval="$enable_static"
4155 p=${PACKAGE-default}
4157 yes) enable_static=yes ;;
4158 no) enable_static=no ;;
4161 # Look at the argument we got. We use all the common list separators.
4162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4163 for pkg in $enableval; do
4164 if test "X$pkg" = "X$p"; then
4174 # Check whether --enable-fast-install or --disable-fast-install was given.
4175 if test "${enable_fast_install+set}" = set; then
4176 enableval="$enable_fast_install"
4177 p=${PACKAGE-default}
4179 yes) enable_fast_install=yes ;;
4180 no) enable_fast_install=no ;;
4182 enable_fast_install=no
4183 # Look at the argument we got. We use all the common list separators.
4184 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4185 for pkg in $enableval; do
4186 if test "X$pkg" = "X$p"; then
4187 enable_fast_install=yes
4194 enable_fast_install=yes
4196 # Find the correct PATH separator. Usually this is `:', but
4197 # DJGPP uses `;' like DOS.
4198 if test "X${PATH_SEPARATOR+set}" != Xset; then
4199 UNAME=${UNAME-`uname 2>/dev/null`}
4201 *-DOS) lt_cv_sys_path_separator=';' ;;
4202 *) lt_cv_sys_path_separator=':' ;;
4204 PATH_SEPARATOR=$lt_cv_sys_path_separator
4208 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4209 if test "${with_gnu_ld+set}" = set; then
4210 withval="$with_gnu_ld"
4211 test "$withval" = no || with_gnu_ld=yes
4216 if test "$GCC" = yes; then
4217 # Check if gcc -print-prog-name=ld gives a path.
4218 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4219 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4222 # gcc leaves a trailing carriage return which upsets mingw
4223 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4225 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4228 # Accept absolute paths.
4229 [\\/]* | [A-Za-z]:[\\/]*)
4230 re_direlt='/[^/][^/]*/\.\./'
4231 # Canonicalize the path of ld
4232 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4233 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4234 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4236 test -z "$LD" && LD="$ac_prog"
4239 # If it fails, then pretend we aren't using GCC.
4243 # If it is relative, then search for the first ld in PATH.
4247 elif test "$with_gnu_ld" = yes; then
4248 echo "$as_me:$LINENO: checking for GNU ld" >&5
4249 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4251 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4252 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4254 if test "${lt_cv_path_LD+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 if test -z "$LD"; then
4258 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4259 for ac_dir in $PATH; do
4260 test -z "$ac_dir" && ac_dir=.
4261 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4262 lt_cv_path_LD="$ac_dir/$ac_prog"
4263 # Check to see if the program is GNU ld. I'd rather use --version,
4264 # but apparently some GNU ld's only accept -v.
4265 # Break only if it was the GNU/non-GNU ld that we prefer.
4266 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4267 test "$with_gnu_ld" != no && break
4269 test "$with_gnu_ld" != yes && break
4275 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4280 if test -n "$LD"; then
4281 echo "$as_me:$LINENO: result: $LD" >&5
4282 echo "${ECHO_T}$LD" >&6
4284 echo "$as_me:$LINENO: result: no" >&5
4285 echo "${ECHO_T}no" >&6
4287 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4288 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4289 { (exit 1); exit 1; }; }
4290 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4291 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4292 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4296 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4297 lt_cv_prog_gnu_ld=yes
4299 lt_cv_prog_gnu_ld=no
4302 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4303 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4304 with_gnu_ld=$lt_cv_prog_gnu_ld
4307 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4308 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4309 if test "${lt_cv_ld_reload_flag+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 lt_cv_ld_reload_flag='-r'
4314 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4315 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4316 reload_flag=$lt_cv_ld_reload_flag
4317 test -n "$reload_flag" && reload_flag=" $reload_flag"
4319 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4320 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4321 if test "${lt_cv_path_NM+set}" = set; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 if test -n "$NM"; then
4325 # Let the user override the test.
4328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4329 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4330 test -z "$ac_dir" && ac_dir=.
4331 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4332 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4333 # Check to see if the nm accepts a BSD-compat flag.
4334 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4335 # nm: unknown option "B" ignored
4336 # Tru64's nm complains that /dev/null is an invalid object file
4337 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4338 lt_cv_path_NM="$tmp_nm -B"
4340 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4341 lt_cv_path_NM="$tmp_nm -p"
4344 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4345 continue # so that we can try to find one that supports BSD flags
4350 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4355 echo "$as_me:$LINENO: result: $NM" >&5
4356 echo "${ECHO_T}$NM" >&6
4358 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4359 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4361 if test "$LN_S" = "ln -s"; then
4362 echo "$as_me:$LINENO: result: yes" >&5
4363 echo "${ECHO_T}yes" >&6
4365 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4366 echo "${ECHO_T}no, using $LN_S" >&6
4369 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4370 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4371 if test "${lt_cv_deplibs_check_method+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 lt_cv_file_magic_cmd='$MAGIC_CMD'
4375 lt_cv_file_magic_test_file=
4376 lt_cv_deplibs_check_method='unknown'
4377 # Need to set the preceding variable on all platforms that support
4378 # interlibrary dependencies.
4379 # 'none' -- dependencies not supported.
4380 # `unknown' -- same as none, but documents that we really don't know.
4381 # 'pass_all' -- all dependencies passed with no checks.
4382 # 'test_compile' -- check by making test program.
4383 # 'file_magic [[regex]]' -- check by looking for files in library path
4384 # which responds to the $file_magic_cmd with a given egrep regex.
4385 # If you have `file' or equivalent on your system and you're not sure
4386 # whether `pass_all' will *always* work, you probably want this one.
4390 lt_cv_deplibs_check_method=pass_all
4394 lt_cv_deplibs_check_method=pass_all
4398 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4399 lt_cv_file_magic_cmd='/usr/bin/file -L'
4400 lt_cv_file_magic_test_file=/shlib/libc.so
4403 cygwin* | mingw* | pw32*)
4404 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4405 lt_cv_file_magic_cmd='$OBJDUMP -f'
4408 darwin* | rhapsody*)
4409 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4410 lt_cv_file_magic_cmd='/usr/bin/file -L'
4412 rhapsody* | darwin1.[012])
4413 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4416 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4422 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4425 # Not sure whether the presence of OpenBSD here was a mistake.
4426 # Let's accept both of them until this is cleared up.
4427 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4428 lt_cv_file_magic_cmd=/usr/bin/file
4429 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4433 lt_cv_deplibs_check_method=pass_all
4438 lt_cv_deplibs_check_method=pass_all
4442 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4443 lt_cv_file_magic_cmd=/usr/bin/file
4444 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4450 # this will be overridden with pass_all, but let us keep it just in case
4451 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4455 *-32|*"-32 ") libmagic=32-bit;;
4456 *-n32|*"-n32 ") libmagic=N32;;
4457 *-64|*"-64 ") libmagic=64-bit;;
4458 *) libmagic=never-match;;
4460 # this will be overridden with pass_all, but let us keep it just in case
4461 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4464 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4465 lt_cv_deplibs_check_method=pass_all
4468 # This must be Linux ELF.
4471 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
4472 lt_cv_deplibs_check_method=pass_all ;;
4474 # glibc up to 2.1.1 does not perform some relocations on ARM
4475 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4477 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4481 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4482 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4484 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4489 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4490 lt_cv_file_magic_cmd=/usr/bin/file
4491 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4495 lt_cv_file_magic_cmd=/usr/bin/file
4496 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4497 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4498 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4500 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4504 osf3* | osf4* | osf5*)
4505 # this will be overridden with pass_all, but let us keep it just in case
4506 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4507 lt_cv_file_magic_test_file=/shlib/libc.so
4508 lt_cv_deplibs_check_method=pass_all
4512 lt_cv_deplibs_check_method=pass_all
4516 lt_cv_deplibs_check_method=pass_all
4517 lt_cv_file_magic_test_file=/lib/libc.so
4520 sysv5uw[78]* | sysv4*uw2*)
4521 lt_cv_deplibs_check_method=pass_all
4524 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4525 case $host_vendor in
4527 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]'
4528 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4531 lt_cv_deplibs_check_method=pass_all
4534 lt_cv_file_magic_cmd='/bin/file'
4535 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4538 lt_cv_file_magic_cmd='/bin/file'
4539 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4540 lt_cv_file_magic_test_file=/lib/libc.so
4547 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4548 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4549 file_magic_cmd=$lt_cv_file_magic_cmd
4550 deplibs_check_method=$lt_cv_deplibs_check_method
4558 # Check for command to grab the raw symbol name followed by C symbol from nm.
4559 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4560 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4561 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4565 # These are sane defaults that work on at least a few old systems.
4566 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4568 # Character class describing NM global symbol codes.
4569 symcode='[BCDEGRST]'
4571 # Regexp to match symbols that can be accessed directly from C.
4572 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4574 # Transform the above into a raw symbol and a C symbol.
4575 symxfrm='\1 \2\3 \3'
4577 # Transform an extracted symbol line into a proper C declaration
4578 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4580 # Transform an extracted symbol line into symbol name and symbol address
4581 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'"
4583 # Define system-specific variables.
4588 cygwin* | mingw* | pw32*)
4589 symcode='[ABCDGISTW]'
4591 hpux*) # Its linker distinguishes data from code symbols
4592 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4593 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'"
4596 symcode='[BCDEGRST]'
4606 # Handle CRLF in mingw tool chain
4610 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4614 # If we're using GNU nm, then use its standard symbol codes.
4615 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4616 symcode='[ABCDGISTW]'
4619 # Try without a prefix undercore, then with it.
4620 for ac_symprfx in "" "_"; do
4622 # Write the raw and C identifiers.
4623 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4625 # Check to see that the pipe works correctly.
4628 cat > conftest.$ac_ext <<EOF
4633 void nm_test_func(){}
4637 int main(){nm_test_var='a';nm_test_func();return(0);}
4640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641 (eval $ac_compile) 2>&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; then
4645 # Now try to grab the symbols.
4647 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4648 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } && test -s "$nlist"; then
4652 # Try sorting and uniquifying the output.
4653 if sort "$nlist" | uniq > "$nlist"T; then
4654 mv -f "$nlist"T "$nlist"
4659 # Make sure that we snagged all the symbols we need.
4660 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4661 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4662 cat <<EOF > conftest.$ac_ext
4668 # Now generate the symbol file.
4669 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4671 cat <<EOF >> conftest.$ac_ext
4672 #if defined (__STDC__) && __STDC__
4673 # define lt_ptr void *
4675 # define lt_ptr char *
4679 /* The mapping between symbol names and symbols. */
4684 lt_preloaded_symbols[] =
4687 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4688 cat <<\EOF >> conftest.$ac_ext
4696 # Now try linking the two files.
4697 mv conftest.$ac_objext conftstm.$ac_objext
4699 save_CFLAGS="$CFLAGS"
4700 LIBS="conftstm.$ac_objext"
4701 CFLAGS="$CFLAGS$no_builtin_flag"
4702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4703 (eval $ac_link) 2>&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } && test -s conftest; then
4710 CFLAGS="$save_CFLAGS"
4712 echo "cannot find nm_test_func in $nlist" >&5
4715 echo "cannot find nm_test_var in $nlist" >&5
4718 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4721 echo "$progname: failed program was:" >&5
4722 cat conftest.$ac_ext >&5
4724 rm -f conftest* conftst*
4726 # Do not use the global_symbol_pipe unless it works.
4727 if test "$pipe_works" = yes; then
4730 lt_cv_sys_global_symbol_pipe=
4736 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4737 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4738 global_symbol_to_cdecl=
4739 global_symbol_to_c_name_address=
4741 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4742 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4744 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4746 echo "$as_me:$LINENO: result: failed" >&5
4747 echo "${ECHO_T}failed" >&6
4749 echo "$as_me:$LINENO: result: ok" >&5
4750 echo "${ECHO_T}ok" >&6
4754 for ac_header in dlfcn.h
4756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4758 echo "$as_me:$LINENO: checking for $ac_header" >&5
4759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4766 # Is the header compilable?
4767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4769 cat >conftest.$ac_ext <<_ACEOF
4770 #line $LINENO "configure"
4771 #include "confdefs.h"
4772 $ac_includes_default
4773 #include <$ac_header>
4775 rm -f conftest.$ac_objext
4776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4777 (eval $ac_compile) 2>&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } &&
4781 { ac_try='test -s conftest.$ac_objext'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; }; then
4787 ac_header_compiler=yes
4789 echo "$as_me: failed program was:" >&5
4790 cat conftest.$ac_ext >&5
4791 ac_header_compiler=no
4793 rm -f conftest.$ac_objext conftest.$ac_ext
4794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4795 echo "${ECHO_T}$ac_header_compiler" >&6
4797 # Is the header present?
4798 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4800 cat >conftest.$ac_ext <<_ACEOF
4801 #line $LINENO "configure"
4802 #include "confdefs.h"
4803 #include <$ac_header>
4805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4808 egrep -v '^ *\+' conftest.er1 >conftest.err
4810 cat conftest.err >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } >/dev/null; then
4813 if test -s conftest.err; then
4814 ac_cpp_err=$ac_c_preproc_warn_flag
4821 if test -z "$ac_cpp_err"; then
4822 ac_header_preproc=yes
4824 echo "$as_me: failed program was:" >&5
4825 cat conftest.$ac_ext >&5
4826 ac_header_preproc=no
4828 rm -f conftest.err conftest.$ac_ext
4829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4830 echo "${ECHO_T}$ac_header_preproc" >&6
4832 # So? What about this header?
4833 case $ac_header_compiler:$ac_header_preproc in
4835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4847 echo "$as_me:$LINENO: checking for $ac_header" >&5
4848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 eval "$as_ac_Header=$ac_header_preproc"
4854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4859 cat >>confdefs.h <<_ACEOF
4860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4871 # Only perform the check for file, if the check method requires it
4872 case $deplibs_check_method in
4874 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4875 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4876 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4877 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4885 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4888 ac_save_MAGIC_CMD="$MAGIC_CMD"
4889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4890 ac_dummy="/usr/bin:$PATH"
4891 for ac_dir in $ac_dummy; do
4892 test -z "$ac_dir" && ac_dir=.
4893 if test -f $ac_dir/${ac_tool_prefix}file; then
4894 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4895 if test -n "$file_magic_test_file"; then
4896 case $deplibs_check_method in
4898 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4899 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4900 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4901 egrep "$file_magic_regex" > /dev/null; then
4906 *** Warning: the command libtool uses to detect shared libraries,
4907 *** $file_magic_cmd, produces output that libtool cannot recognize.
4908 *** The result is that libtool may fail to recognize shared libraries
4909 *** as such. This will affect the creation of libtool libraries that
4910 *** depend on shared libraries, but programs linked with such libtool
4911 *** libraries will work regardless of this problem. Nevertheless, you
4912 *** may want to report the problem to your system manager and/or to
4913 *** bug-libtool@gnu.org
4923 MAGIC_CMD="$ac_save_MAGIC_CMD"
4928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4929 if test -n "$MAGIC_CMD"; then
4930 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4931 echo "${ECHO_T}$MAGIC_CMD" >&6
4933 echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4937 if test -z "$lt_cv_path_MAGIC_CMD"; then
4938 if test -n "$ac_tool_prefix"; then
4939 echo "$as_me:$LINENO: checking for file" >&5
4940 echo $ECHO_N "checking for file... $ECHO_C" >&6
4941 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4949 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4952 ac_save_MAGIC_CMD="$MAGIC_CMD"
4953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4954 ac_dummy="/usr/bin:$PATH"
4955 for ac_dir in $ac_dummy; do
4956 test -z "$ac_dir" && ac_dir=.
4957 if test -f $ac_dir/file; then
4958 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4959 if test -n "$file_magic_test_file"; then
4960 case $deplibs_check_method in
4962 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4964 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4965 egrep "$file_magic_regex" > /dev/null; then
4970 *** Warning: the command libtool uses to detect shared libraries,
4971 *** $file_magic_cmd, produces output that libtool cannot recognize.
4972 *** The result is that libtool may fail to recognize shared libraries
4973 *** as such. This will affect the creation of libtool libraries that
4974 *** depend on shared libraries, but programs linked with such libtool
4975 *** libraries will work regardless of this problem. Nevertheless, you
4976 *** may want to report the problem to your system manager and/or to
4977 *** bug-libtool@gnu.org
4987 MAGIC_CMD="$ac_save_MAGIC_CMD"
4992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4993 if test -n "$MAGIC_CMD"; then
4994 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4995 echo "${ECHO_T}$MAGIC_CMD" >&6
4997 echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6
5010 if test -n "$ac_tool_prefix"; then
5011 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5012 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5013 echo "$as_me:$LINENO: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5015 if test "${ac_cv_prog_RANLIB+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 if test -n "$RANLIB"; then
5019 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 RANLIB=$ac_cv_prog_RANLIB
5038 if test -n "$RANLIB"; then
5039 echo "$as_me:$LINENO: result: $RANLIB" >&5
5040 echo "${ECHO_T}$RANLIB" >&6
5042 echo "$as_me:$LINENO: result: no" >&5
5043 echo "${ECHO_T}no" >&6
5047 if test -z "$ac_cv_prog_RANLIB"; then
5048 ac_ct_RANLIB=$RANLIB
5049 # Extract the first word of "ranlib", so it can be a program name with args.
5050 set dummy ranlib; ac_word=$2
5051 echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5053 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 if test -n "$ac_ct_RANLIB"; then
5057 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5066 ac_cv_prog_ac_ct_RANLIB="ranlib"
5067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5076 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5077 if test -n "$ac_ct_RANLIB"; then
5078 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5079 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5081 echo "$as_me:$LINENO: result: no" >&5
5082 echo "${ECHO_T}no" >&6
5085 RANLIB=$ac_ct_RANLIB
5087 RANLIB="$ac_cv_prog_RANLIB"
5090 if test -n "$ac_tool_prefix"; then
5091 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5092 set dummy ${ac_tool_prefix}strip; ac_word=$2
5093 echo "$as_me:$LINENO: checking for $ac_word" >&5
5094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5095 if test "${ac_cv_prog_STRIP+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 if test -n "$STRIP"; then
5099 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 STRIP=$ac_cv_prog_STRIP
5118 if test -n "$STRIP"; then
5119 echo "$as_me:$LINENO: result: $STRIP" >&5
5120 echo "${ECHO_T}$STRIP" >&6
5122 echo "$as_me:$LINENO: result: no" >&5
5123 echo "${ECHO_T}no" >&6
5127 if test -z "$ac_cv_prog_STRIP"; then
5129 # Extract the first word of "strip", so it can be a program name with args.
5130 set dummy strip; ac_word=$2
5131 echo "$as_me:$LINENO: checking for $ac_word" >&5
5132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5133 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 if test -n "$ac_ct_STRIP"; then
5137 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146 ac_cv_prog_ac_ct_STRIP="strip"
5147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5156 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5157 if test -n "$ac_ct_STRIP"; then
5158 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5159 echo "${ECHO_T}$ac_ct_STRIP" >&6
5161 echo "$as_me:$LINENO: result: no" >&5
5162 echo "${ECHO_T}no" >&6
5167 STRIP="$ac_cv_prog_STRIP"
5174 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5175 if test "${enable_libtool_lock+set}" = set; then
5176 enableval="$enable_libtool_lock"
5179 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5181 # Some flags need to be propagated to the compiler or linker for good
5185 # Find out which ABI we are using.
5186 echo '#line 5186 "configure"' > conftest.$ac_ext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5188 (eval $ac_compile) 2>&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); }; then
5192 case `/usr/bin/file conftest.$ac_objext` in
5208 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5209 SAVE_CFLAGS="$CFLAGS"
5210 CFLAGS="$CFLAGS -belf"
5211 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5212 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5213 if test "${lt_cv_cc_needs_belf+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 ac_cpp='$CPP $CPPFLAGS'
5220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5224 cat >conftest.$ac_ext <<_ACEOF
5225 #line $LINENO "configure"
5226 #include "confdefs.h"
5228 #ifdef F77_DUMMY_MAIN
5232 int F77_DUMMY_MAIN() { return 1; }
5242 rm -f conftest.$ac_objext conftest$ac_exeext
5243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5244 (eval $ac_link) 2>&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); } &&
5248 { ac_try='test -s conftest$ac_exeext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5254 lt_cv_cc_needs_belf=yes
5256 echo "$as_me: failed program was:" >&5
5257 cat conftest.$ac_ext >&5
5258 lt_cv_cc_needs_belf=no
5260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5262 ac_cpp='$CPP $CPPFLAGS'
5263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5268 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5269 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5270 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5271 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5272 CFLAGS="$SAVE_CFLAGS"
5279 # Sed substitution that helps us do robust quoting. It backslashifies
5280 # metacharacters that are still active within double-quoted strings.
5281 Xsed='sed -e s/^X//'
5282 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5284 # Same as above, but do not quote variable references.
5285 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5287 # Sed substitution to delay expansion of an escaped shell variable in a
5288 # double_quote_subst'ed string.
5289 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5295 default_ofile=libtool
5296 can_build_shared=yes
5298 # All known linkers require a `.a' archive for static linking (except M$VC,
5299 # which needs '.lib').
5301 ltmain="$ac_aux_dir/ltmain.sh"
5302 ofile="$default_ofile"
5303 with_gnu_ld="$lt_cv_prog_gnu_ld"
5304 need_locks="$enable_libtool_lock"
5307 old_CFLAGS="$CFLAGS"
5309 # Set sane defaults for various variables
5310 test -z "$AR" && AR=ar
5311 test -z "$AR_FLAGS" && AR_FLAGS=cru
5312 test -z "$AS" && AS=as
5313 test -z "$CC" && CC=cc
5314 test -z "$DLLTOOL" && DLLTOOL=dlltool
5315 test -z "$LD" && LD=ld
5316 test -z "$LN_S" && LN_S="ln -s"
5317 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5318 test -z "$NM" && NM=nm
5319 test -z "$OBJDUMP" && OBJDUMP=objdump
5320 test -z "$RANLIB" && RANLIB=:
5321 test -z "$STRIP" && STRIP=:
5322 test -z "$ac_objext" && ac_objext=o
5324 if test x"$host" != x"$build"; then
5325 ac_tool_prefix=${host_alias}-
5330 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5333 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5338 # AIX sometimes has problems with the GCC collect2 program. For some
5339 # reason, if we set the COLLECT_NAMES environment variable, the problems
5340 # vanish in a puff of smoke.
5341 if test "X${COLLECT_NAMES+set}" != Xset; then
5343 export COLLECT_NAMES
5348 # Determine commands to create old-style static archives.
5349 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5350 old_postinstall_cmds='chmod 644 $oldlib'
5351 old_postuninstall_cmds=
5353 if test -n "$RANLIB"; then
5356 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5359 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5362 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5365 # Allow CC to be a program name with arguments.
5369 echo "$as_me:$LINENO: checking for objdir" >&5
5370 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5371 rm -f .libs 2>/dev/null
5372 mkdir .libs 2>/dev/null
5373 if test -d .libs; then
5376 # MS-DOS does not allow filenames that begin with a dot.
5379 rmdir .libs 2>/dev/null
5380 echo "$as_me:$LINENO: result: $objdir" >&5
5381 echo "${ECHO_T}$objdir" >&6
5385 # Check whether --with-pic or --without-pic was given.
5386 if test "${with_pic+set}" = set; then
5392 test -z "$pic_mode" && pic_mode=default
5394 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5395 # in isolation, and that seeing it set (from the cache) indicates that
5396 # the associated values are set (in the cache) correctly too.
5397 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5398 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5399 if test "${lt_cv_prog_cc_pic+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 lt_cv_prog_cc_shlib=
5405 lt_cv_prog_cc_static=
5406 lt_cv_prog_cc_no_builtin=
5407 lt_cv_prog_cc_can_build_shared=$can_build_shared
5409 if test "$GCC" = yes; then
5410 lt_cv_prog_cc_wl='-Wl,'
5411 lt_cv_prog_cc_static='-static'
5415 # Below there is a dirty hack to force normal static linking with -ldl
5416 # The problem is because libdl dynamically linked with both libc and
5417 # libC (AIX C++ library), which obviously doesn't included in libraries
5418 # list by gcc. This cause undefined symbols with -static flags.
5419 # This hack allows C programs to be linked with "-static -ldl", but
5420 # not sure about C++ programs.
5421 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5424 # FIXME: we need at least 68020 code to build shared libraries, but
5425 # adding the `-m68020' flag to GCC prevents building anything better,
5427 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5429 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5430 # PIC is the default for these OSes.
5432 darwin* | rhapsody*)
5433 # PIC is the default on this platform
5434 # Common symbols not allowed in MH_DYLIB files
5435 lt_cv_prog_cc_pic='-fno-common'
5437 cygwin* | mingw* | pw32* | os2*)
5438 # This hack is so that the source file can tell whether it is being
5439 # built for inclusion in a dll (and should export symbols for example).
5440 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5443 if test -d /usr/nec; then
5444 lt_cv_prog_cc_pic=-Kconform_pic
5448 lt_cv_prog_cc_pic='-fPIC'
5452 # PORTME Check for PIC flags for the system compiler.
5454 aix3* | aix4* | aix5*)
5455 lt_cv_prog_cc_wl='-Wl,'
5456 # All AIX code is PIC.
5457 if test "$host_cpu" = ia64; then
5458 # AIX 5 now supports IA64 processor
5459 lt_cv_prog_cc_static='-Bstatic'
5461 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5465 hpux9* | hpux10* | hpux11*)
5466 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5467 lt_cv_prog_cc_wl='-Wl,'
5468 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5469 lt_cv_prog_cc_pic='+Z'
5473 lt_cv_prog_cc_wl='-Wl,'
5474 lt_cv_prog_cc_static='-non_shared'
5475 # PIC (with -KPIC) is the default.
5478 cygwin* | mingw* | pw32* | os2*)
5479 # This hack is so that the source file can tell whether it is being
5480 # built for inclusion in a dll (and should export symbols for example).
5481 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5485 lt_cv_prog_cc_pic='-KPIC'
5486 lt_cv_prog_cc_static='-Bstatic'
5489 osf3* | osf4* | osf5*)
5490 # All OSF/1 code is PIC.
5491 lt_cv_prog_cc_wl='-Wl,'
5492 lt_cv_prog_cc_static='-non_shared'
5496 lt_cv_prog_cc_pic='-Kpic'
5497 lt_cv_prog_cc_static='-dn'
5498 lt_cv_prog_cc_shlib='-belf'
5502 lt_cv_prog_cc_pic='-KPIC'
5503 lt_cv_prog_cc_static='-Bstatic'
5504 lt_cv_prog_cc_wl='-Wl,'
5508 lt_cv_prog_cc_pic='-PIC'
5509 lt_cv_prog_cc_static='-Bstatic'
5510 lt_cv_prog_cc_wl='-Qoption ld '
5513 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5514 lt_cv_prog_cc_pic='-KPIC'
5515 lt_cv_prog_cc_static='-Bstatic'
5516 if test "x$host_vendor" = xsni; then
5517 lt_cv_prog_cc_wl='-LD'
5519 lt_cv_prog_cc_wl='-Wl,'
5524 lt_cv_prog_cc_pic='-pic'
5525 lt_cv_prog_cc_static='-Bstatic'
5529 if test -d /usr/nec ;then
5530 lt_cv_prog_cc_pic='-Kconform_pic'
5531 lt_cv_prog_cc_static='-Bstatic'
5536 lt_cv_prog_cc_can_build_shared=no
5543 if test -z "$lt_cv_prog_cc_pic"; then
5544 echo "$as_me:$LINENO: result: none" >&5
5545 echo "${ECHO_T}none" >&6
5547 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5548 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5550 # Check to make sure the pic_flag actually works.
5551 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5552 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5553 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 save_CFLAGS="$CFLAGS"
5557 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5558 cat >conftest.$ac_ext <<_ACEOF
5559 #line $LINENO "configure"
5560 #include "confdefs.h"
5562 #ifdef F77_DUMMY_MAIN
5566 int F77_DUMMY_MAIN() { return 1; }
5576 rm -f conftest.$ac_objext
5577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5578 (eval $ac_compile) 2>&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } &&
5582 { ac_try='test -s conftest.$ac_objext'
5583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); }; }; then
5589 hpux9* | hpux10* | hpux11*)
5590 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5591 # they create non-PIC objects. So, if there were any warnings, we
5592 # assume that PIC is not supported.
5593 if test -s conftest.err; then
5594 lt_cv_prog_cc_pic_works=no
5596 lt_cv_prog_cc_pic_works=yes
5600 lt_cv_prog_cc_pic_works=yes
5605 echo "$as_me: failed program was:" >&5
5606 cat conftest.$ac_ext >&5
5607 lt_cv_prog_cc_pic_works=no
5610 rm -f conftest.$ac_objext conftest.$ac_ext
5611 CFLAGS="$save_CFLAGS"
5616 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5618 lt_cv_prog_cc_can_build_shared=no
5620 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5623 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5624 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5627 # Check for any special shared library compilation flags.
5628 if test -n "$lt_cv_prog_cc_shlib"; then
5629 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5630 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5631 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5633 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5634 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5635 lt_cv_prog_cc_can_build_shared=no
5639 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5640 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5641 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 lt_cv_prog_cc_static_works=no
5645 save_LDFLAGS="$LDFLAGS"
5646 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5647 cat >conftest.$ac_ext <<_ACEOF
5648 #line $LINENO "configure"
5649 #include "confdefs.h"
5651 #ifdef F77_DUMMY_MAIN
5655 int F77_DUMMY_MAIN() { return 1; }
5665 rm -f conftest.$ac_objext conftest$ac_exeext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5667 (eval $ac_link) 2>&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -s conftest$ac_exeext'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; }; then
5677 lt_cv_prog_cc_static_works=yes
5679 echo "$as_me: failed program was:" >&5
5680 cat conftest.$ac_ext >&5
5682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5683 LDFLAGS="$save_LDFLAGS"
5688 # Belt *and* braces to stop my trousers falling down:
5689 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5690 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5691 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5693 pic_flag="$lt_cv_prog_cc_pic"
5694 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5695 wl="$lt_cv_prog_cc_wl"
5696 link_static_flag="$lt_cv_prog_cc_static"
5697 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5698 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5701 # Check to see if options -o and -c are simultaneously supported by compiler
5702 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5703 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5704 if test "${lt_cv_compiler_c_o+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 $rm -r conftest 2>/dev/null
5711 echo "int some_variable = 0;" > conftest.$ac_ext
5713 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5714 # that will create temporary files in the current directory regardless of
5715 # the output directory. Thus, making CWD read-only will cause this test
5716 # to fail, enabling locking or at least warning the user not to do parallel
5719 save_CFLAGS="$CFLAGS"
5720 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5722 if { (eval echo configure:5722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5723 # The compiler can only warn and ignore the option if not recognized
5724 # So say no if there are warnings
5725 if test -s out/conftest.err; then
5726 lt_cv_compiler_c_o=no
5728 lt_cv_compiler_c_o=yes
5731 # Append any errors to the config.log.
5732 cat out/conftest.err 1>&5
5733 lt_cv_compiler_c_o=no
5735 CFLAGS="$save_CFLAGS"
5741 $rm -r conftest 2>/dev/null
5745 compiler_c_o=$lt_cv_compiler_c_o
5746 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5747 echo "${ECHO_T}$compiler_c_o" >&6
5749 if test x"$compiler_c_o" = x"yes"; then
5750 # Check to see if we can write to a .lo
5751 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5752 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5753 if test "${lt_cv_compiler_o_lo+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 lt_cv_compiler_o_lo=no
5758 save_CFLAGS="$CFLAGS"
5759 CFLAGS="$CFLAGS -c -o conftest.lo"
5760 save_objext="$ac_objext"
5762 cat >conftest.$ac_ext <<_ACEOF
5763 #line $LINENO "configure"
5764 #include "confdefs.h"
5766 #ifdef F77_DUMMY_MAIN
5770 int F77_DUMMY_MAIN() { return 1; }
5775 int some_variable = 0;
5780 rm -f conftest.$ac_objext
5781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5782 (eval $ac_compile) 2>&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try='test -s conftest.$ac_objext'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; }; then
5792 # The compiler can only warn and ignore the option if not recognized
5793 # So say no if there are warnings
5794 if test -s conftest.err; then
5795 lt_cv_compiler_o_lo=no
5797 lt_cv_compiler_o_lo=yes
5801 echo "$as_me: failed program was:" >&5
5802 cat conftest.$ac_ext >&5
5804 rm -f conftest.$ac_objext conftest.$ac_ext
5805 ac_objext="$save_objext"
5806 CFLAGS="$save_CFLAGS"
5810 compiler_o_lo=$lt_cv_compiler_o_lo
5811 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5812 echo "${ECHO_T}$compiler_o_lo" >&6
5817 # Check to see if we can do hard links to lock some files if needed
5818 hard_links="nottested"
5819 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5820 # do not overwrite the value of need_locks provided by the user
5821 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5822 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5825 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5827 ln conftest.a conftest.b 2>&5 || hard_links=no
5828 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5829 echo "$as_me:$LINENO: result: $hard_links" >&5
5830 echo "${ECHO_T}$hard_links" >&6
5831 if test "$hard_links" = no; then
5832 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5833 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5840 if test "$GCC" = yes; then
5841 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5842 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5843 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5844 echo "int some_variable = 0;" > conftest.$ac_ext
5845 save_CFLAGS="$CFLAGS"
5846 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5847 compiler_rtti_exceptions=no
5848 cat >conftest.$ac_ext <<_ACEOF
5849 #line $LINENO "configure"
5850 #include "confdefs.h"
5852 #ifdef F77_DUMMY_MAIN
5856 int F77_DUMMY_MAIN() { return 1; }
5861 int some_variable = 0;
5866 rm -f conftest.$ac_objext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868 (eval $ac_compile) 2>&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try='test -s conftest.$ac_objext'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; }; then
5878 # The compiler can only warn and ignore the option if not recognized
5879 # So say no if there are warnings
5880 if test -s conftest.err; then
5881 compiler_rtti_exceptions=no
5883 compiler_rtti_exceptions=yes
5887 echo "$as_me: failed program was:" >&5
5888 cat conftest.$ac_ext >&5
5890 rm -f conftest.$ac_objext conftest.$ac_ext
5891 CFLAGS="$save_CFLAGS"
5892 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5893 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5895 if test "$compiler_rtti_exceptions" = "yes"; then
5896 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5898 no_builtin_flag=' -fno-builtin'
5902 # See if the linker supports building shared libraries.
5903 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5904 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5906 allow_undefined_flag=
5908 need_lib_prefix=unknown
5909 need_version=unknown
5910 # when you set need_version to no, make sure it does not cause -set_version
5911 # flags to be left without arguments
5913 archive_expsym_cmds=
5914 old_archive_from_new_cmds=
5915 old_archive_from_expsyms_cmds=
5916 export_dynamic_flag_spec=
5917 whole_archive_flag_spec=
5918 thread_safe_flag_spec=
5919 hardcode_into_libs=no
5920 hardcode_libdir_flag_spec=
5921 hardcode_libdir_separator=
5924 hardcode_shlibpath_var=unsupported
5926 link_all_deplibs=unknown
5927 always_export_symbols=no
5928 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5929 # include_expsyms should be a list of space-separated symbols to be *always*
5930 # included in the symbol list
5932 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5933 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5934 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5935 # as well as any symbol that contains `d'.
5936 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5937 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5938 # platforms (ab)use it in PIC code, but their linkers get confused if
5939 # the symbol is explicitly referenced. Since portable code cannot
5940 # rely on this symbol name, it's probably fine to never include it in
5941 # preloaded symbol tables.
5942 extract_expsyms_cmds=
5945 cygwin* | mingw* | pw32*)
5946 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5947 # When not using gcc, we currently assume that we are using
5948 # Microsoft Visual C++.
5949 if test "$GCC" != yes; then
5959 if test "$with_gnu_ld" = yes; then
5960 # If archive_cmds runs LD, not CC, wlarc should be empty
5963 # See if GNU ld supports shared libraries.
5965 aix3* | aix4* | aix5*)
5966 # On AIX, the GNU linker is very broken
5967 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5971 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5972 *** to be unable to reliably create shared libraries on AIX.
5973 *** Therefore, libtool is disabling shared libraries support. If you
5974 *** really care for shared libraries, you may want to modify your PATH
5975 *** so that a non-GNU linker is found, and then restart.
5981 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)'
5982 hardcode_libdir_flag_spec='-L$libdir'
5983 hardcode_minus_L=yes
5985 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5986 # that the semantics of dynamic libraries on AmigaOS, at least up
5987 # to version 4, is to share data among multiple programs linked
5988 # with the same dynamic library. Since this doesn't match the
5989 # behavior of shared libraries on other platforms, we can use
5995 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5996 allow_undefined_flag=unsupported
5997 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5998 # support --undefined. This deserves some investigation. FIXME
5999 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6005 cygwin* | mingw* | pw32*)
6006 # hardcode_libdir_flag_spec is actually meaningless, as there is
6007 # no search path for DLLs.
6008 hardcode_libdir_flag_spec='-L$libdir'
6009 allow_undefined_flag=unsupported
6010 always_export_symbols=yes
6012 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6013 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6014 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6015 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6016 else $CC -o impgen impgen.c ; fi)~
6017 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6019 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6021 # cygwin and mingw dlls have different entry points and sets of symbols
6023 # FIXME: what about values for MSVC?
6024 dll_entry=__cygwin_dll_entry@12
6025 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6029 dll_entry=_DllMainCRTStartup@12
6030 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6034 # mingw and cygwin differ, and it's simplest to just exclude the union
6035 # of the two symbol sets.
6036 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6038 # recent cygwin and mingw systems supply a stub DllMain which the user
6039 # can override, but on older systems we have to supply one (in ltdll.c)
6040 if test "x$lt_cv_need_dllmain" = "xyes"; then
6041 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6042 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~
6043 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6049 # Extract the symbol export list from an `--export-all' def file,
6050 # then regenerate the def file from the symbol export list, so that
6051 # the compiled dll only exports the symbol export list.
6052 # Be careful not to strip the DATA tag left be newer dlltools.
6053 export_symbols_cmds="$ltdll_cmds"'
6054 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6055 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6057 # If the export-symbols file already is a .def file (1st line
6058 # is EXPORTS), use it as is.
6059 # If DATA tags from a recent dlltool are present, honour them!
6060 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6061 cp $export_symbols $output_objdir/$soname-def;
6063 echo EXPORTS > $output_objdir/$soname-def;
6065 cat $export_symbols | while read symbol; do
6068 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6069 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6071 _lt_hint=`expr 1 + \$_lt_hint`;
6075 $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~
6076 $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~
6077 $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~
6078 $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~
6079 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6083 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6084 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6087 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6088 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6093 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6097 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6098 *** create shared libraries on Solaris systems. Therefore, libtool
6099 *** is disabling shared libraries support. We urge you to upgrade GNU
6100 *** binutils to release 2.9.1 or newer. Another option is to modify
6101 *** your PATH or compiler configuration so that the native linker is
6102 *** used, and then restart.
6105 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6107 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6114 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6117 hardcode_shlibpath_var=no
6121 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6123 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6130 if test "$ld_shlibs" = yes; then
6131 runpath_var=LD_RUN_PATH
6132 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6133 export_dynamic_flag_spec='${wl}--export-dynamic'
6135 cygwin* | mingw* | pw32*)
6136 # dlltool doesn't understand --whole-archive et. al.
6137 whole_archive_flag_spec=
6140 # ancient GNU ld didn't support --whole-archive et. al.
6141 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6142 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6144 whole_archive_flag_spec=
6150 # PORTME fill in a description of your system's linker (not GNU ld)
6153 allow_undefined_flag=unsupported
6154 always_export_symbols=yes
6155 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'
6156 # Note: this linker hardcodes the directories in LIBPATH if there
6157 # are no directories specified by -L.
6158 hardcode_minus_L=yes
6159 if test "$GCC" = yes && test -z "$link_static_flag"; then
6160 # Neither direct hardcoding nor static linking is supported with a
6162 hardcode_direct=unsupported
6167 if test "$host_cpu" = ia64; then
6168 # On IA64, the linker does run time linking by default, so we don't
6169 # have to do anything special.
6170 aix_use_runtimelinking=no
6171 exp_sym_flag='-Bexport'
6174 aix_use_runtimelinking=no
6176 # Test if we are trying to use run time linking or normal
6177 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6178 # need to do runtime linking.
6179 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6180 for ld_flag in $LDFLAGS; do
6181 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6182 aix_use_runtimelinking=yes
6188 exp_sym_flag='-bexport'
6189 no_entry_flag='-bnoentry'
6192 # When large executables or shared objects are built, AIX ld can
6193 # have problems creating the table of contents. If linking a library
6194 # or program results in "error TOC overflow" add -mminimal-toc to
6195 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6196 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6200 hardcode_libdir_separator=':'
6201 if test "$GCC" = yes; then
6202 case $host_os in aix4.[012]|aix4.[012].*)
6203 collect2name=`${CC} -print-prog-name=collect2`
6204 if test -f "$collect2name" && \
6205 strings "$collect2name" | grep resolve_lib_name >/dev/null
6207 # We have reworked collect2
6210 # We have old collect2
6211 hardcode_direct=unsupported
6212 # It fails to find uninstalled libraries when the uninstalled
6213 # path is not listed in the libpath. Setting hardcode_minus_L
6214 # to unsupported forces relinking
6215 hardcode_minus_L=yes
6216 hardcode_libdir_flag_spec='-L$libdir'
6217 hardcode_libdir_separator=
6221 shared_flag='-shared'
6224 if test "$host_cpu" = ia64; then
6225 shared_flag='${wl}-G'
6227 if test "$aix_use_runtimelinking" = yes; then
6228 shared_flag='${wl}-G'
6230 shared_flag='${wl}-bM:SRE'
6235 # It seems that -bexpall can do strange things, so it is better to
6236 # generate a list of symbols to export.
6237 always_export_symbols=yes
6238 if test "$aix_use_runtimelinking" = yes; then
6239 # Warning - without using the other runtime loading flags (-brtl),
6240 # -berok will link without error, but may produce a broken library.
6241 allow_undefined_flag='-berok'
6242 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6243 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"
6245 if test "$host_cpu" = ia64; then
6246 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6247 allow_undefined_flag="-z nodefs"
6248 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"
6250 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6251 # Warning - without using the other run time loading flags,
6252 # -berok will link without error, but may produce a broken library.
6253 allow_undefined_flag='${wl}-berok'
6254 # This is a bit strange, but is similar to how AIX traditionally builds
6255 # it's shared libraries.
6256 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'
6262 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)'
6263 hardcode_libdir_flag_spec='-L$libdir'
6264 hardcode_minus_L=yes
6265 # see comment about different semantics on the GNU ld section
6269 cygwin* | mingw* | pw32*)
6270 # When not using gcc, we currently assume that we are using
6271 # Microsoft Visual C++.
6272 # hardcode_libdir_flag_spec is actually meaningless, as there is
6273 # no search path for DLLs.
6274 hardcode_libdir_flag_spec=' '
6275 allow_undefined_flag=unsupported
6276 # Tell ltmain to make .lib files, not .a files.
6278 # FIXME: Setting linknames here is a bad hack.
6279 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6280 # The linker will automatically build a .lib file if we build a DLL.
6281 old_archive_from_new_cmds='true'
6282 # FIXME: Should let the user specify the lib program.
6283 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6284 fix_srcfile_path='`cygpath -w "$srcfile"`'
6287 darwin* | rhapsody*)
6289 rhapsody* | darwin1.[012])
6290 allow_undefined_flag='-undefined suppress'
6293 allow_undefined_flag='-flat_namespace -undefined suppress'
6296 # FIXME: Relying on posixy $() will cause problems for
6297 # cross-compilation, but unfortunately the echo tests do not
6298 # yet detect zsh echo's removal of \ escapes.
6299 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6300 # We need to add '_' to the symbols in $export_symbols first
6301 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6303 hardcode_shlibpath_var=no
6304 whole_archive_flag_spec='-all_load $convenience'
6311 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6312 # support. Future versions do this automatically, but an explicit c++rt0.o
6313 # does not break anything, and helps significantly (at the cost of a little
6316 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6317 hardcode_libdir_flag_spec='-R$libdir'
6319 hardcode_shlibpath_var=no
6322 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6324 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6326 hardcode_minus_L=yes
6327 hardcode_shlibpath_var=no
6330 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6332 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6333 hardcode_libdir_flag_spec='-R$libdir'
6335 hardcode_shlibpath_var=no
6338 hpux9* | hpux10* | hpux11*)
6340 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' ;;
6341 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6343 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6344 hardcode_libdir_separator=:
6346 hardcode_minus_L=yes # Not in the search PATH, but as the default
6347 # location of the library.
6348 export_dynamic_flag_spec='${wl}-E'
6352 if test "$GCC" = yes; then
6353 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'
6355 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'
6357 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6358 hardcode_libdir_separator=:
6359 link_all_deplibs=yes
6363 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6364 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6366 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6368 hardcode_libdir_flag_spec='-R$libdir'
6370 hardcode_shlibpath_var=no
6374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6376 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6377 hardcode_libdir_separator=:
6378 hardcode_shlibpath_var=no
6383 hardcode_shlibpath_var=no
6384 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6385 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6386 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6387 export_dynamic_flag_spec='${wl}-E'
6390 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6391 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6392 hardcode_libdir_flag_spec='-R$libdir'
6395 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6396 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6403 hardcode_libdir_flag_spec='-L$libdir'
6404 hardcode_minus_L=yes
6405 allow_undefined_flag=unsupported
6406 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'
6407 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6411 if test "$GCC" = yes; then
6412 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6413 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'
6415 allow_undefined_flag=' -expect_unresolved \*'
6416 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'
6418 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6419 hardcode_libdir_separator=:
6422 osf4* | osf5*) # as osf3* with the addition of -msym flag
6423 if test "$GCC" = yes; then
6424 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6425 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'
6426 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6428 allow_undefined_flag=' -expect_unresolved \*'
6429 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'
6430 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6431 $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'
6433 #Both c and cxx compiler support -rpath directly
6434 hardcode_libdir_flag_spec='-rpath $libdir'
6436 hardcode_libdir_separator=:
6440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6441 hardcode_shlibpath_var=no
6442 runpath_var=LD_RUN_PATH
6443 hardcode_runpath_var=yes
6444 export_dynamic_flag_spec='${wl}-Bexport'
6448 # gcc --version < 3.0 without binutils cannot create self contained
6449 # shared libraries reliably, requiring libgcc.a to resolve some of
6450 # the object symbols generated in some cases. Libraries that use
6451 # assert need libgcc.a to resolve __eprintf, for example. Linking
6452 # a copy of libgcc.a into every shared library to guarantee resolving
6453 # such symbols causes other problems: According to Tim Van Holder
6454 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6455 # (to the application) exception stack for one thing.
6456 no_undefined_flag=' -z defs'
6457 if test "$GCC" = yes; then
6458 case `$CC --version 2>/dev/null` in
6462 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6463 *** create self contained shared libraries on Solaris systems, without
6464 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6465 *** -no-undefined support, which will at least allow you to build shared
6466 *** libraries. However, you may find that when you link such libraries
6467 *** into an application without using GCC, you have to manually add
6468 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6469 *** upgrade to a newer version of GCC. Another option is to rebuild your
6470 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6477 # $CC -shared without GNU ld will not create a library from C++
6478 # object files and a static libstdc++, better avoid it by now
6479 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6480 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6481 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6482 hardcode_libdir_flag_spec='-R$libdir'
6483 hardcode_shlibpath_var=no
6485 solaris2.[0-5] | solaris2.[0-5].*) ;;
6486 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6487 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6489 link_all_deplibs=yes
6493 if test "x$host_vendor" = xsequent; then
6494 # Use $CC to link under sequent, because it throws in some extra .o
6495 # files that make .init and .fini sections work.
6496 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6498 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6500 hardcode_libdir_flag_spec='-L$libdir'
6502 hardcode_minus_L=yes
6503 hardcode_shlibpath_var=no
6507 if test "x$host_vendor" = xsno; then
6508 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6509 hardcode_direct=yes # is this really true???
6511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6512 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6514 runpath_var='LD_RUN_PATH'
6515 hardcode_shlibpath_var=no
6519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6520 hardcode_shlibpath_var=no
6521 export_dynamic_flag_spec='-Bexport'
6525 no_undefined_flag=' -z text'
6526 # $CC -shared without GNU ld will not create a library from C++
6527 # object files and a static libstdc++, better avoid it by now
6528 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6529 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6530 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6531 hardcode_libdir_flag_spec=
6532 hardcode_shlibpath_var=no
6533 runpath_var='LD_RUN_PATH'
6537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6538 hardcode_libdir_flag_spec='-L$libdir'
6539 hardcode_shlibpath_var=no
6543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6544 hardcode_libdir_flag_spec='-L$libdir'
6545 hardcode_shlibpath_var=no
6549 if test -d /usr/nec; then
6550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6551 hardcode_shlibpath_var=no
6552 runpath_var=LD_RUN_PATH
6553 hardcode_runpath_var=yes
6559 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6562 hardcode_shlibpath_var=no
6563 hardcode_runpath_var=yes
6564 runpath_var=LD_RUN_PATH
6567 sysv5uw7* | unixware7*)
6568 no_undefined_flag='${wl}-z ${wl}text'
6569 if test "$GCC" = yes; then
6570 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6572 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6574 runpath_var='LD_RUN_PATH'
6575 hardcode_shlibpath_var=no
6583 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6584 echo "${ECHO_T}$ld_shlibs" >&6
6585 test "$ld_shlibs" = no && can_build_shared=no
6587 # Check hardcoding attributes.
6588 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6589 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6591 if test -n "$hardcode_libdir_flag_spec" || \
6592 test -n "$runpath_var"; then
6594 # We can hardcode non-existant directories.
6595 if test "$hardcode_direct" != no &&
6596 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6597 # have to relink, otherwise we might link with an installed library
6598 # when we should be linking with a yet-to-be-installed one
6599 ## test "$hardcode_shlibpath_var" != no &&
6600 test "$hardcode_minus_L" != no; then
6601 # Linking always hardcodes the temporary library directory.
6602 hardcode_action=relink
6604 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6605 hardcode_action=immediate
6608 # We cannot hardcode anything, or else we can only hardcode existing
6610 hardcode_action=unsupported
6612 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6613 echo "${ECHO_T}$hardcode_action" >&6
6617 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6618 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6619 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6620 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6621 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6622 echo "$as_me:$LINENO: result: yes" >&5
6623 echo "${ECHO_T}yes" >&6
6625 echo "$as_me:$LINENO: result: no" >&5
6626 echo "${ECHO_T}no" >&6
6629 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6630 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6632 # PORTME Fill in your ld.so characteristics
6633 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6634 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6636 libname_spec='lib$name'
6643 shlibpath_overrides_runpath=unknown
6645 dynamic_linker="$host_os ld.so"
6646 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6647 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6652 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6653 shlibpath_var=LIBPATH
6655 # AIX has no versioning support, so we append a major version to the name.
6656 soname_spec='${libname}${release}.so$major'
6661 if test "$host_cpu" = ia64; then
6662 # AIX 5 supports IA64
6663 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6664 shlibpath_var=LD_LIBRARY_PATH
6666 # With GCC up to 2.95.x, collect2 would create an import file
6667 # for dependence libraries. The import file would start with
6668 # the line `#! .'. This would cause the generated library to
6669 # depend on `.', always an invalid library. This was fixed in
6670 # development snapshots of GCC prior to 3.0.
6672 aix4 | aix4.[01] | aix4.[01].*)
6673 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6675 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6682 # AIX (on Power*) has no versioning support, so currently we can
6683 # not hardcode correct soname into executable. Probably we can
6684 # add versioning support to collect2, so additional links can
6685 # be useful in future.
6686 if test "$aix_use_runtimelinking" = yes; then
6687 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6688 # instead of lib<name>.a to let people know that these are not
6689 # typical AIX shared libraries.
6690 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6692 # We preserve .a as extension for shared libraries through AIX4.2
6693 # and later when we are not doing run time linking.
6694 library_names_spec='${libname}${release}.a $libname.a'
6695 soname_spec='${libname}${release}.so$major'
6697 shlibpath_var=LIBPATH
6702 library_names_spec='$libname.ixlibrary $libname.a'
6703 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6704 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'
6708 library_names_spec='${libname}.so'
6709 dynamic_linker="$host_os ld.so"
6710 shlibpath_var=LIBRARY_PATH
6716 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6717 soname_spec='${libname}${release}.so$major'
6718 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6719 shlibpath_var=LD_LIBRARY_PATH
6720 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6721 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6722 export_dynamic_flag_spec=-rdynamic
6723 # the default ld.so.conf also contains /usr/contrib/lib and
6724 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6725 # libtool to hard-code these into programs
6728 cygwin* | mingw* | pw32*)
6729 version_type=windows
6732 case $GCC,$host_os in
6734 library_names_spec='$libname.dll.a'
6735 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6736 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6737 dldir=$destdir/`dirname \$dlpath`~
6738 test -d \$dldir || mkdir -p \$dldir~
6739 $install_prog .libs/$dlname \$dldir/$dlname'
6740 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6741 dlpath=$dir/\$dldll~
6745 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6746 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6749 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6752 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6755 dynamic_linker='Win32 ld.exe'
6756 # FIXME: first we should search . and the directory the executable is in
6760 darwin* | rhapsody*)
6761 dynamic_linker="$host_os dyld"
6765 # FIXME: Relying on posixy $() will cause problems for
6766 # cross-compilation, but unfortunately the echo tests do not
6767 # yet detect zsh echo's removal of \ escapes.
6768 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)'
6769 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6770 shlibpath_overrides_runpath=yes
6771 shlibpath_var=DYLD_LIBRARY_PATH
6779 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6780 version_type=freebsd-$objformat
6781 case $version_type in
6783 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6788 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6792 shlibpath_var=LD_LIBRARY_PATH
6795 shlibpath_overrides_runpath=yes
6798 shlibpath_overrides_runpath=no
6799 hardcode_into_libs=yes
6808 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6809 soname_spec='${libname}${release}.so$major'
6810 shlibpath_var=LD_LIBRARY_PATH
6811 hardcode_into_libs=yes
6814 hpux9* | hpux10* | hpux11*)
6815 # Give a soname corresponding to the major version so that dld.sl refuses to
6816 # link against other versions.
6817 dynamic_linker="$host_os dld.sl"
6821 shlibpath_var=SHLIB_PATH
6822 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6823 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6824 soname_spec='${libname}${release}.sl$major'
6825 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6826 postinstall_cmds='chmod 555 $lib'
6833 soname_spec='${libname}${release}.so$major'
6834 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6840 case $LD in # libtool.m4 will add one of these switches to LD
6841 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6842 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6843 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6844 *) libsuff= shlibsuff= libmagic=never-match;;
6848 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6849 shlibpath_overrides_runpath=no
6850 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6851 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6854 # No shared lib support for Linux oldld, aout, or coff.
6855 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6859 # This must be Linux ELF.
6864 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6865 soname_spec='${libname}${release}.so$major'
6866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6867 shlibpath_var=LD_LIBRARY_PATH
6868 shlibpath_overrides_runpath=no
6869 # This implies no fast_install, which is unacceptable.
6870 # Some rework will be needed to allow for fast_install
6871 # before this can be enabled.
6872 hardcode_into_libs=yes
6874 # We used to test for /lib/ld.so.1 and disable shared libraries on
6875 # powerpc, because MkLinux only supported shared libraries with the
6876 # GNU dynamic linker. Since this was broken with cross compilers,
6877 # most powerpc-linux boxes support dynamic linking these days and
6878 # people can always --disable-shared, the test was removed, and we
6879 # assume the GNU/Linux dynamic linker is in use.
6880 dynamic_linker='GNU/Linux ld.so'
6887 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6888 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6890 dynamic_linker='NetBSD (a.out) ld.so'
6892 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6893 soname_spec='${libname}${release}.so$major'
6894 dynamic_linker='NetBSD ld.elf_so'
6896 shlibpath_var=LD_LIBRARY_PATH
6897 shlibpath_overrides_runpath=yes
6898 hardcode_into_libs=yes
6903 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6904 shlibpath_var=LD_LIBRARY_PATH
6905 shlibpath_overrides_runpath=yes
6912 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6914 openbsd2.[89] | openbsd2.[89].*)
6915 shlibpath_overrides_runpath=no
6918 shlibpath_overrides_runpath=yes
6922 shlibpath_overrides_runpath=yes
6924 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6926 shlibpath_var=LD_LIBRARY_PATH
6930 libname_spec='$name'
6932 library_names_spec='$libname.dll $libname.a'
6933 dynamic_linker='OS/2 ld.exe'
6934 shlibpath_var=LIBPATH
6937 osf3* | osf4* | osf5*)
6940 soname_spec='${libname}${release}.so'
6941 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $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"
6949 soname_spec='${libname}${release}.so$major'
6950 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6951 shlibpath_var=LD_LIBRARY_PATH
6958 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6959 soname_spec='${libname}${release}.so$major'
6960 shlibpath_var=LD_LIBRARY_PATH
6961 shlibpath_overrides_runpath=yes
6962 hardcode_into_libs=yes
6963 # ldd complains unless libraries are executable
6964 postinstall_cmds='chmod +x $lib'
6969 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6970 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6971 shlibpath_var=LD_LIBRARY_PATH
6972 shlibpath_overrides_runpath=yes
6973 if test "$with_gnu_ld" = yes; then
6979 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6981 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6982 soname_spec='${libname}${release}.so$major'
6983 shlibpath_var=LD_LIBRARY_PATH
6984 case $host_vendor in
6986 shlibpath_overrides_runpath=no
6991 shlibpath_overrides_runpath=no
6992 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6999 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7000 soname_spec='${libname}${release}.so$major'
7001 shlibpath_var=LD_LIBRARY_PATH
7008 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7009 soname_spec='${libname}${release}.so$major'
7010 shlibpath_var=LD_LIBRARY_PATH
7014 if test -d /usr/nec ;then
7016 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7017 soname_spec='$libname.so.$major'
7018 shlibpath_var=LD_LIBRARY_PATH
7026 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7027 echo "${ECHO_T}$dynamic_linker" >&6
7028 test "$dynamic_linker" = no && can_build_shared=no
7030 # Report the final consequences.
7031 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7032 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7033 echo "$as_me:$LINENO: result: $can_build_shared" >&5
7034 echo "${ECHO_T}$can_build_shared" >&6
7036 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7037 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7038 test "$can_build_shared" = "no" && enable_shared=no
7040 # On AIX, shared libraries and static libraries use the same namespace, and
7041 # are all built from PIC.
7044 test "$enable_shared" = yes && enable_static=no
7045 if test -n "$RANLIB"; then
7046 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7047 postinstall_cmds='$RANLIB $lib'
7052 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7053 test "$enable_shared" = yes && enable_static=no
7057 echo "$as_me:$LINENO: result: $enable_shared" >&5
7058 echo "${ECHO_T}$enable_shared" >&6
7060 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7061 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7062 # Make sure either enable_shared or enable_static is yes.
7063 test "$enable_shared" = yes || enable_static=yes
7064 echo "$as_me:$LINENO: result: $enable_static" >&5
7065 echo "${ECHO_T}$enable_static" >&6
7067 if test "$hardcode_action" = relink; then
7068 # Fast installation is not supported
7069 enable_fast_install=no
7070 elif test "$shlibpath_overrides_runpath" = yes ||
7071 test "$enable_shared" = no; then
7072 # Fast installation is not necessary
7073 enable_fast_install=needless
7076 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7077 if test "$GCC" = yes; then
7078 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7081 if test "x$enable_dlopen" != xyes; then
7082 enable_dlopen=unknown
7083 enable_dlopen_self=unknown
7084 enable_dlopen_self_static=unknown
7091 lt_cv_dlopen="load_add_on"
7093 lt_cv_dlopen_self=yes
7096 cygwin* | mingw* | pw32*)
7097 lt_cv_dlopen="LoadLibrary"
7102 echo "$as_me:$LINENO: checking for shl_load" >&5
7103 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7104 if test "${ac_cv_func_shl_load+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 cat >conftest.$ac_ext <<_ACEOF
7108 #line $LINENO "configure"
7109 #include "confdefs.h"
7110 /* System header to define __stub macros and hopefully few prototypes,
7111 which can conflict with char shl_load (); below. */
7113 /* Override any gcc2 internal prototype to avoid an error. */
7117 /* We use char because int might match the return type of a gcc2
7118 builtin and then its argument prototype would still apply. */
7122 #ifdef F77_DUMMY_MAIN
7126 int F77_DUMMY_MAIN() { return 1; }
7131 /* The GNU C library defines this for functions which it implements
7132 to always fail with ENOSYS. Some functions are actually named
7133 something starting with __ and the normal name is an alias. */
7134 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7144 rm -f conftest.$ac_objext conftest$ac_exeext
7145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7146 (eval $ac_link) 2>&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } &&
7150 { ac_try='test -s conftest$ac_exeext'
7151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }; }; then
7156 ac_cv_func_shl_load=yes
7158 echo "$as_me: failed program was:" >&5
7159 cat conftest.$ac_ext >&5
7160 ac_cv_func_shl_load=no
7162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7164 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7165 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7166 if test $ac_cv_func_shl_load = yes; then
7167 lt_cv_dlopen="shl_load"
7169 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7170 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7171 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 ac_check_lib_save_LIBS=$LIBS
7176 cat >conftest.$ac_ext <<_ACEOF
7177 #line $LINENO "configure"
7178 #include "confdefs.h"
7180 /* Override any gcc2 internal prototype to avoid an error. */
7184 /* We use char because int might match the return type of a gcc2
7185 builtin and then its argument prototype would still apply. */
7187 #ifdef F77_DUMMY_MAIN
7191 int F77_DUMMY_MAIN() { return 1; }
7201 rm -f conftest.$ac_objext conftest$ac_exeext
7202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7203 (eval $ac_link) 2>&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } &&
7207 { ac_try='test -s conftest$ac_exeext'
7208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); }; }; then
7213 ac_cv_lib_dld_shl_load=yes
7215 echo "$as_me: failed program was:" >&5
7216 cat conftest.$ac_ext >&5
7217 ac_cv_lib_dld_shl_load=no
7219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7220 LIBS=$ac_check_lib_save_LIBS
7222 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7223 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7224 if test $ac_cv_lib_dld_shl_load = yes; then
7225 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7227 echo "$as_me:$LINENO: checking for dlopen" >&5
7228 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7229 if test "${ac_cv_func_dlopen+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 cat >conftest.$ac_ext <<_ACEOF
7233 #line $LINENO "configure"
7234 #include "confdefs.h"
7235 /* System header to define __stub macros and hopefully few prototypes,
7236 which can conflict with char dlopen (); below. */
7238 /* Override any gcc2 internal prototype to avoid an error. */
7242 /* We use char because int might match the return type of a gcc2
7243 builtin and then its argument prototype would still apply. */
7247 #ifdef F77_DUMMY_MAIN
7251 int F77_DUMMY_MAIN() { return 1; }
7256 /* The GNU C library defines this for functions which it implements
7257 to always fail with ENOSYS. Some functions are actually named
7258 something starting with __ and the normal name is an alias. */
7259 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7269 rm -f conftest.$ac_objext conftest$ac_exeext
7270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7271 (eval $ac_link) 2>&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } &&
7275 { ac_try='test -s conftest$ac_exeext'
7276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); }; }; then
7281 ac_cv_func_dlopen=yes
7283 echo "$as_me: failed program was:" >&5
7284 cat conftest.$ac_ext >&5
7285 ac_cv_func_dlopen=no
7287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7289 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7290 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7291 if test $ac_cv_func_dlopen = yes; then
7292 lt_cv_dlopen="dlopen"
7294 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7295 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7296 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 ac_check_lib_save_LIBS=$LIBS
7301 cat >conftest.$ac_ext <<_ACEOF
7302 #line $LINENO "configure"
7303 #include "confdefs.h"
7305 /* Override any gcc2 internal prototype to avoid an error. */
7309 /* We use char because int might match the return type of a gcc2
7310 builtin and then its argument prototype would still apply. */
7312 #ifdef F77_DUMMY_MAIN
7316 int F77_DUMMY_MAIN() { return 1; }
7326 rm -f conftest.$ac_objext conftest$ac_exeext
7327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7328 (eval $ac_link) 2>&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } &&
7332 { ac_try='test -s conftest$ac_exeext'
7333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); }; }; then
7338 ac_cv_lib_dl_dlopen=yes
7340 echo "$as_me: failed program was:" >&5
7341 cat conftest.$ac_ext >&5
7342 ac_cv_lib_dl_dlopen=no
7344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7345 LIBS=$ac_check_lib_save_LIBS
7347 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7348 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7349 if test $ac_cv_lib_dl_dlopen = yes; then
7350 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7352 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7353 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7354 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 ac_check_lib_save_LIBS=$LIBS
7359 cat >conftest.$ac_ext <<_ACEOF
7360 #line $LINENO "configure"
7361 #include "confdefs.h"
7363 /* Override any gcc2 internal prototype to avoid an error. */
7367 /* We use char because int might match the return type of a gcc2
7368 builtin and then its argument prototype would still apply. */
7370 #ifdef F77_DUMMY_MAIN
7374 int F77_DUMMY_MAIN() { return 1; }
7384 rm -f conftest.$ac_objext conftest$ac_exeext
7385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7386 (eval $ac_link) 2>&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } &&
7390 { ac_try='test -s conftest$ac_exeext'
7391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); }; }; then
7396 ac_cv_lib_svld_dlopen=yes
7398 echo "$as_me: failed program was:" >&5
7399 cat conftest.$ac_ext >&5
7400 ac_cv_lib_svld_dlopen=no
7402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7403 LIBS=$ac_check_lib_save_LIBS
7405 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7406 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7407 if test $ac_cv_lib_svld_dlopen = yes; then
7408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7410 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7411 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7412 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 ac_check_lib_save_LIBS=$LIBS
7417 cat >conftest.$ac_ext <<_ACEOF
7418 #line $LINENO "configure"
7419 #include "confdefs.h"
7421 /* Override any gcc2 internal prototype to avoid an error. */
7425 /* We use char because int might match the return type of a gcc2
7426 builtin and then its argument prototype would still apply. */
7428 #ifdef F77_DUMMY_MAIN
7432 int F77_DUMMY_MAIN() { return 1; }
7442 rm -f conftest.$ac_objext conftest$ac_exeext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7444 (eval $ac_link) 2>&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); } &&
7448 { ac_try='test -s conftest$ac_exeext'
7449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); }; }; then
7454 ac_cv_lib_dld_dld_link=yes
7456 echo "$as_me: failed program was:" >&5
7457 cat conftest.$ac_ext >&5
7458 ac_cv_lib_dld_dld_link=no
7460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7461 LIBS=$ac_check_lib_save_LIBS
7463 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7464 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7465 if test $ac_cv_lib_dld_dld_link = yes; then
7466 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7487 if test "x$lt_cv_dlopen" != xno; then
7493 case $lt_cv_dlopen in
7495 save_CPPFLAGS="$CPPFLAGS"
7496 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7498 save_LDFLAGS="$LDFLAGS"
7499 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7502 LIBS="$lt_cv_dlopen_libs $LIBS"
7504 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7505 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7506 if test "${lt_cv_dlopen_self+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 if test "$cross_compiling" = yes; then :
7510 lt_cv_dlopen_self=cross
7512 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7513 lt_status=$lt_dlunknown
7514 cat > conftest.$ac_ext <<EOF
7515 #line 7515 "configure"
7516 #include "confdefs.h"
7525 # define LT_DLGLOBAL RTLD_GLOBAL
7528 # define LT_DLGLOBAL DL_GLOBAL
7530 # define LT_DLGLOBAL 0
7534 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7535 find out it does not work in some platform. */
7536 #ifndef LT_DLLAZY_OR_NOW
7538 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7541 # define LT_DLLAZY_OR_NOW DL_LAZY
7544 # define LT_DLLAZY_OR_NOW RTLD_NOW
7547 # define LT_DLLAZY_OR_NOW DL_NOW
7549 # define LT_DLLAZY_OR_NOW 0
7557 extern "C" void exit (int);
7560 void fnord() { int i=42;}
7563 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7564 int status = $lt_dlunknown;
7568 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7569 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7570 /* dlclose (self); */
7576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7577 (eval $ac_link) 2>&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7581 (./conftest; exit; ) 2>/dev/null
7584 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7585 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7586 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7589 # compilation failed
7590 lt_cv_dlopen_self=no
7597 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7598 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7600 if test "x$lt_cv_dlopen_self" = xyes; then
7601 LDFLAGS="$LDFLAGS $link_static_flag"
7602 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7603 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7604 if test "${lt_cv_dlopen_self_static+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 if test "$cross_compiling" = yes; then :
7608 lt_cv_dlopen_self_static=cross
7610 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7611 lt_status=$lt_dlunknown
7612 cat > conftest.$ac_ext <<EOF
7613 #line 7613 "configure"
7614 #include "confdefs.h"
7623 # define LT_DLGLOBAL RTLD_GLOBAL
7626 # define LT_DLGLOBAL DL_GLOBAL
7628 # define LT_DLGLOBAL 0
7632 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7633 find out it does not work in some platform. */
7634 #ifndef LT_DLLAZY_OR_NOW
7636 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7639 # define LT_DLLAZY_OR_NOW DL_LAZY
7642 # define LT_DLLAZY_OR_NOW RTLD_NOW
7645 # define LT_DLLAZY_OR_NOW DL_NOW
7647 # define LT_DLLAZY_OR_NOW 0
7655 extern "C" void exit (int);
7658 void fnord() { int i=42;}
7661 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7662 int status = $lt_dlunknown;
7666 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7667 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7668 /* dlclose (self); */
7674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7675 (eval $ac_link) 2>&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7679 (./conftest; exit; ) 2>/dev/null
7682 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7683 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7684 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7687 # compilation failed
7688 lt_cv_dlopen_self_static=no
7695 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7696 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7699 CPPFLAGS="$save_CPPFLAGS"
7700 LDFLAGS="$save_LDFLAGS"
7705 case $lt_cv_dlopen_self in
7706 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7707 *) enable_dlopen_self=unknown ;;
7710 case $lt_cv_dlopen_self_static in
7711 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7712 *) enable_dlopen_self_static=unknown ;;
7717 if test "$enable_shared" = yes && test "$GCC" = yes; then
7718 case $archive_cmds in
7720 # FIXME: we may have to deal with multi-command sequences.
7723 # Test whether the compiler implicitly links with -lc since on some
7724 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7725 # to ld, don't add -lc before -lgcc.
7726 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7727 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7728 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7732 echo 'static int dummy;' > conftest.$ac_ext
7734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7735 (eval $ac_compile) 2>&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; then
7741 libobjs=conftest.$ac_objext
7743 wl=$lt_cv_prog_cc_wl
7749 save_allow_undefined_flag=$allow_undefined_flag
7750 allow_undefined_flag=
7751 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7752 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }
7757 lt_cv_archive_cmds_need_lc=no
7759 lt_cv_archive_cmds_need_lc=yes
7761 allow_undefined_flag=$save_allow_undefined_flag
7763 cat conftest.err 1>&5
7767 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7768 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7772 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7774 # The second clause should only fire when bootstrapping the
7775 # libtool distribution, otherwise you forgot to ship ltmain.sh
7776 # with your package, and you will get complaints that there are
7777 # no rules to generate ltmain.sh.
7778 if test -f "$ltmain"; then
7781 # If there is no Makefile yet, we rely on a make rule to execute
7782 # `config.status --recheck' to rerun these tests and create the
7783 # libtool script then.
7784 test -f Makefile && make "$ltmain"
7787 if test -f "$ltmain"; then
7788 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7791 echo creating $ofile
7793 # Now quote all the things that may contain metacharacters while being
7794 # careful not to overquote the AC_SUBSTed values. We take copies of the
7795 # variables and quote the copies for generation of the libtool script.
7796 for var in echo old_CC old_CFLAGS \
7797 AR AR_FLAGS CC LD LN_S NM SHELL \
7798 reload_flag reload_cmds wl \
7799 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7800 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7801 library_names_spec soname_spec \
7802 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7803 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7804 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7805 old_striplib striplib file_magic_cmd export_symbols_cmds \
7806 deplibs_check_method allow_undefined_flag no_undefined_flag \
7807 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7808 global_symbol_to_c_name_address \
7809 hardcode_libdir_flag_spec hardcode_libdir_separator \
7810 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7811 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7814 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7815 old_postinstall_cmds | old_postuninstall_cmds | \
7816 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7817 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7818 postinstall_cmds | postuninstall_cmds | \
7819 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7820 # Double-quote double-evaled strings.
7821 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7824 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7829 cat <<__EOF__ > "${ofile}T"
7832 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7833 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7834 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7836 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7837 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7839 # This program is free software; you can redistribute it and/or modify
7840 # it under the terms of the GNU General Public License as published by
7841 # the Free Software Foundation; either version 2 of the License, or
7842 # (at your option) any later version.
7844 # This program is distributed in the hope that it will be useful, but
7845 # WITHOUT ANY WARRANTY; without even the implied warranty of
7846 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7847 # General Public License for more details.
7849 # You should have received a copy of the GNU General Public License
7850 # along with this program; if not, write to the Free Software
7851 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7853 # As a special exception to the GNU General Public License, if you
7854 # distribute this file as part of a program that contains a
7855 # configuration script generated by Autoconf, you may include it under
7856 # the same distribution terms that you use for the rest of that program.
7858 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7859 Xsed="sed -e s/^X//"
7861 # The HP-UX ksh and POSIX shell print the target directory to stdout
7863 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7865 # ### BEGIN LIBTOOL CONFIG
7867 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7869 # Shell to use when invoking shell scripts.
7872 # Whether or not to build shared libraries.
7873 build_libtool_libs=$enable_shared
7875 # Whether or not to build static libraries.
7876 build_old_libs=$enable_static
7878 # Whether or not to add -lc for building shared libraries.
7879 build_libtool_need_lc=$need_lc
7881 # Whether or not to optimize for fast installation.
7882 fast_install=$enable_fast_install
7885 host_alias=$host_alias
7888 # An echo program that does not interpret backslashes.
7893 AR_FLAGS=$lt_AR_FLAGS
7895 # The default C compiler.
7898 # Is the compiler the GNU C compiler?
7901 # The linker used to build libraries.
7904 # Whether we need hard or soft links.
7907 # A BSD-compatible nm program.
7910 # A symbol stripping program
7913 # Used to examine libraries when file_magic_cmd begins "file"
7914 MAGIC_CMD=$MAGIC_CMD
7916 # Used on cygwin: DLL creation program.
7919 # Used on cygwin: object dumper.
7922 # Used on cygwin: assembler.
7925 # The name of the directory that contains temporary libtool files.
7928 # How to create reloadable object files.
7929 reload_flag=$lt_reload_flag
7930 reload_cmds=$lt_reload_cmds
7932 # How to pass a linker flag through the compiler.
7935 # Object file suffix (normally "o").
7938 # Old archive suffix (normally "a").
7941 # Executable file suffix (normally "").
7944 # Additional compiler flags for building library objects.
7945 pic_flag=$lt_pic_flag
7948 # Does compiler simultaneously support -c and -o options?
7949 compiler_c_o=$lt_compiler_c_o
7951 # Can we write directly to a .lo ?
7952 compiler_o_lo=$lt_compiler_o_lo
7954 # Must we lock files when doing compilation ?
7955 need_locks=$lt_need_locks
7957 # Do we need the lib prefix for modules?
7958 need_lib_prefix=$need_lib_prefix
7960 # Do we need a version for libraries?
7961 need_version=$need_version
7963 # Whether dlopen is supported.
7964 dlopen_support=$enable_dlopen
7966 # Whether dlopen of programs is supported.
7967 dlopen_self=$enable_dlopen_self
7969 # Whether dlopen of statically linked programs is supported.
7970 dlopen_self_static=$enable_dlopen_self_static
7972 # Compiler flag to prevent dynamic linking.
7973 link_static_flag=$lt_link_static_flag
7975 # Compiler flag to turn off builtin functions.
7976 no_builtin_flag=$lt_no_builtin_flag
7978 # Compiler flag to allow reflexive dlopens.
7979 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7981 # Compiler flag to generate shared objects directly from archives.
7982 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7984 # Compiler flag to generate thread-safe objects.
7985 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7987 # Library versioning type.
7988 version_type=$version_type
7990 # Format of library name prefix.
7991 libname_spec=$lt_libname_spec
7993 # List of archive names. First name is the real one, the rest are links.
7994 # The last name is the one that the linker finds with -lNAME.
7995 library_names_spec=$lt_library_names_spec
7997 # The coded name of the library, if different from the real name.
7998 soname_spec=$lt_soname_spec
8000 # Commands used to build and install an old-style archive.
8002 old_archive_cmds=$lt_old_archive_cmds
8003 old_postinstall_cmds=$lt_old_postinstall_cmds
8004 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8006 # Create an old-style archive from a shared archive.
8007 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8009 # Create a temporary old-style archive to link instead of a shared archive.
8010 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8012 # Commands used to build and install a shared archive.
8013 archive_cmds=$lt_archive_cmds
8014 archive_expsym_cmds=$lt_archive_expsym_cmds
8015 postinstall_cmds=$lt_postinstall_cmds
8016 postuninstall_cmds=$lt_postuninstall_cmds
8018 # Commands to strip libraries.
8019 old_striplib=$lt_old_striplib
8020 striplib=$lt_striplib
8022 # Method to check whether dependent libraries are shared objects.
8023 deplibs_check_method=$lt_deplibs_check_method
8025 # Command to use when deplibs_check_method == file_magic.
8026 file_magic_cmd=$lt_file_magic_cmd
8028 # Flag that allows shared libraries with undefined symbols to be built.
8029 allow_undefined_flag=$lt_allow_undefined_flag
8031 # Flag that forces no undefined symbols.
8032 no_undefined_flag=$lt_no_undefined_flag
8034 # Commands used to finish a libtool library installation in a directory.
8035 finish_cmds=$lt_finish_cmds
8037 # Same as above, but a single script fragment to be evaled but not shown.
8038 finish_eval=$lt_finish_eval
8040 # Take the output of nm and produce a listing of raw symbols and C names.
8041 global_symbol_pipe=$lt_global_symbol_pipe
8043 # Transform the output of nm in a proper C declaration
8044 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8046 # Transform the output of nm in a C name address pair
8047 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8049 # This is the shared library runtime path variable.
8050 runpath_var=$runpath_var
8052 # This is the shared library path variable.
8053 shlibpath_var=$shlibpath_var
8055 # Is shlibpath searched before the hard-coded library search path?
8056 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8058 # How to hardcode a shared library path into an executable.
8059 hardcode_action=$hardcode_action
8061 # Whether we should hardcode library paths into libraries.
8062 hardcode_into_libs=$hardcode_into_libs
8064 # Flag to hardcode \$libdir into a binary during linking.
8065 # This must work even if \$libdir does not exist.
8066 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8068 # Whether we need a single -rpath flag with a separated argument.
8069 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8071 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8073 hardcode_direct=$hardcode_direct
8075 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8077 hardcode_minus_L=$hardcode_minus_L
8079 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8080 # the resulting binary.
8081 hardcode_shlibpath_var=$hardcode_shlibpath_var
8083 # Variables whose values should be saved in libtool wrapper scripts and
8084 # restored at relink time.
8085 variables_saved_for_relink="$variables_saved_for_relink"
8087 # Whether libtool must link a program against all its dependency libraries.
8088 link_all_deplibs=$link_all_deplibs
8090 # Compile-time system search path for libraries
8091 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8093 # Run-time system search path for libraries
8094 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8096 # Fix the shell variable \$srcfile for the compiler.
8097 fix_srcfile_path="$fix_srcfile_path"
8099 # Set to yes if exported symbols are required.
8100 always_export_symbols=$always_export_symbols
8102 # The commands to list exported symbols.
8103 export_symbols_cmds=$lt_export_symbols_cmds
8105 # The commands to extract the exported symbol list from a shared archive.
8106 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8108 # Symbols that should not be listed in the preloaded symbols.
8109 exclude_expsyms=$lt_exclude_expsyms
8111 # Symbols that must always be exported.
8112 include_expsyms=$lt_include_expsyms
8114 # ### END LIBTOOL CONFIG
8120 cat <<\EOF >> "${ofile}T"
8122 # AIX sometimes has problems with the GCC collect2 program. For some
8123 # reason, if we set the COLLECT_NAMES environment variable, the problems
8124 # vanish in a puff of smoke.
8125 if test "X${COLLECT_NAMES+set}" != Xset; then
8127 export COLLECT_NAMES
8134 cygwin* | mingw* | pw32* | os2*)
8135 cat <<'EOF' >> "${ofile}T"
8136 # This is a source program that is used to create dlls on Windows
8137 # Don't remove nor modify the starting and closing comments
8138 # /* ltdll.c starts here */
8139 # #define WIN32_LEAN_AND_MEAN
8140 # #include <windows.h>
8141 # #undef WIN32_LEAN_AND_MEAN
8142 # #include <stdio.h>
8144 # #ifndef __CYGWIN__
8145 # # ifdef __CYGWIN32__
8146 # # define __CYGWIN__ __CYGWIN32__
8150 # #ifdef __cplusplus
8153 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8154 # #ifdef __cplusplus
8159 # #include <cygwin/cygwin_dll.h>
8160 # DECLARE_CYGWIN_DLL( DllMain );
8162 # HINSTANCE __hDllInstance_base;
8165 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8167 # __hDllInstance_base = hInst;
8170 # /* ltdll.c ends here */
8171 # This is a source program that is used to create import libraries
8172 # on Windows for dlls which lack them. Don't remove nor modify the
8173 # starting and closing comments
8174 # /* impgen.c starts here */
8175 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8177 # This file is part of GNU libtool.
8179 # This program is free software; you can redistribute it and/or modify
8180 # it under the terms of the GNU General Public License as published by
8181 # the Free Software Foundation; either version 2 of the License, or
8182 # (at your option) any later version.
8184 # This program is distributed in the hope that it will be useful,
8185 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8186 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8187 # GNU General Public License for more details.
8189 # You should have received a copy of the GNU General Public License
8190 # along with this program; if not, write to the Free Software
8191 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8194 # #include <stdio.h> /* for printf() */
8195 # #include <unistd.h> /* for open(), lseek(), read() */
8196 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8197 # #include <string.h> /* for strdup() */
8199 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8201 # #define O_BINARY 0
8204 # static unsigned int
8205 # pe_get16 (fd, offset)
8209 # unsigned char b[2];
8210 # lseek (fd, offset, SEEK_SET);
8212 # return b[0] + (b[1]<<8);
8215 # static unsigned int
8216 # pe_get32 (fd, offset)
8220 # unsigned char b[4];
8221 # lseek (fd, offset, SEEK_SET);
8223 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8226 # static unsigned int
8230 # unsigned char *b = ptr;
8231 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8240 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8241 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8242 # unsigned long name_rvas, nexp;
8243 # unsigned char *expdata, *erva;
8244 # char *filename, *dll_name;
8246 # filename = argv[1];
8248 # dll = open(filename, O_RDONLY|O_BINARY);
8252 # dll_name = filename;
8254 # for (i=0; filename[i]; i++)
8255 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8256 # dll_name = filename + i +1;
8258 # pe_header_offset = pe_get32 (dll, 0x3c);
8259 # opthdr_ofs = pe_header_offset + 4 + 20;
8260 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8262 # if (num_entries < 1) /* no exports */
8265 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8266 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8267 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8268 # secptr = (pe_header_offset + 4 + 20 +
8269 # pe_get16 (dll, pe_header_offset + 4 + 16));
8272 # for (i = 0; i < nsections; i++)
8275 # unsigned long secptr1 = secptr + 40 * i;
8276 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8277 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8278 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8279 # lseek(dll, secptr1, SEEK_SET);
8280 # read(dll, sname, 8);
8281 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8283 # expptr = fptr + (export_rva - vaddr);
8284 # if (export_rva + export_size > vaddr + vsize)
8285 # export_size = vsize - (export_rva - vaddr);
8290 # expdata = (unsigned char*)malloc(export_size);
8291 # lseek (dll, expptr, SEEK_SET);
8292 # read (dll, expdata, export_size);
8293 # erva = expdata - export_rva;
8295 # nexp = pe_as32 (expdata+24);
8296 # name_rvas = pe_as32 (expdata+32);
8298 # printf ("EXPORTS\n");
8299 # for (i = 0; i<nexp; i++)
8301 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8302 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8307 # /* impgen.c ends here */
8313 # We use sed instead of cat because bash on DJGPP gets confused if
8314 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8315 # text mode, it properly converts lines to CR/LF. This bash problem
8316 # is reportedly fixed, but why not run on old versions too?
8317 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8319 mv -f "${ofile}T" "$ofile" || \
8320 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8328 # This can be used to rebuild libtool when needed
8329 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8331 # Always use our own libtool.
8332 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8334 # Prevent multiple expansion
8338 # Find a good install program. We prefer a C program (faster),
8339 # so one script is as good as another. But avoid the broken or
8340 # incompatible versions:
8341 # SysV /etc/install, /usr/sbin/install
8342 # SunOS /usr/etc/install
8343 # IRIX /sbin/install
8345 # AmigaOS /C/install, which installs bootblocks on floppy discs
8346 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8347 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8348 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8349 # ./install, which can be erroneously created by make from ./install.sh.
8350 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8351 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8352 if test -z "$INSTALL"; then
8353 if test "${ac_cv_path_install+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 test -z "$as_dir" && as_dir=.
8361 # Account for people who put trailing slashes in PATH elements.
8363 ./ | .// | /cC/* | \
8364 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8367 # OSF1 and SCO ODT 3.0 have their own names for install.
8368 # Don't use installbsd from OSF since it installs stuff as root
8370 for ac_prog in ginstall scoinst install; do
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8373 if test $ac_prog = install &&
8374 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8375 # AIX install. It has an incompatible calling convention.
8377 elif test $ac_prog = install &&
8378 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8379 # program-specific install script used by HP pwplus--don't use.
8382 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8394 if test "${ac_cv_path_install+set}" = set; then
8395 INSTALL=$ac_cv_path_install
8397 # As a last resort, use the slow shell script. We don't cache a
8398 # path for INSTALL within a source directory, because that will
8399 # break other packages using the cache if that directory is
8400 # removed, or if the path is relative.
8401 INSTALL=$ac_install_sh
8404 echo "$as_me:$LINENO: result: $INSTALL" >&5
8405 echo "${ECHO_T}$INSTALL" >&6
8407 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8408 # It thinks the first close brace ends the variable substitution.
8409 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8411 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8413 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8416 if test "X$CC" = Xgcc; then
8417 CFLAGS="-Wall $CFLAGS"
8425 *-*-solaris*) LIBS="$LIBS -L$l -R $l $*";;
8426 *) LIBS="$LIBS -L$l $*";;
8430 if test X"$GCC" = "Xyes" ; then
8431 TARGET="depend allprogs"
8435 # let the Makefile know that we're done with `depend', since we don't
8436 # have gcc we're not going to rebuild our dependencies at all.
8447 for ac_header in alloca.h float.h libintl.h mcheck.h unistd.h
8449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8451 echo "$as_me:$LINENO: checking for $ac_header" >&5
8452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8459 # Is the header compilable?
8460 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8462 cat >conftest.$ac_ext <<_ACEOF
8463 #line $LINENO "configure"
8464 #include "confdefs.h"
8465 $ac_includes_default
8466 #include <$ac_header>
8468 rm -f conftest.$ac_objext
8469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8470 (eval $ac_compile) 2>&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); } &&
8474 { ac_try='test -s conftest.$ac_objext'
8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; }; then
8480 ac_header_compiler=yes
8482 echo "$as_me: failed program was:" >&5
8483 cat conftest.$ac_ext >&5
8484 ac_header_compiler=no
8486 rm -f conftest.$ac_objext conftest.$ac_ext
8487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8488 echo "${ECHO_T}$ac_header_compiler" >&6
8490 # Is the header present?
8491 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8493 cat >conftest.$ac_ext <<_ACEOF
8494 #line $LINENO "configure"
8495 #include "confdefs.h"
8496 #include <$ac_header>
8498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8501 egrep -v '^ *\+' conftest.er1 >conftest.err
8503 cat conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } >/dev/null; then
8506 if test -s conftest.err; then
8507 ac_cpp_err=$ac_c_preproc_warn_flag
8514 if test -z "$ac_cpp_err"; then
8515 ac_header_preproc=yes
8517 echo "$as_me: failed program was:" >&5
8518 cat conftest.$ac_ext >&5
8519 ac_header_preproc=no
8521 rm -f conftest.err conftest.$ac_ext
8522 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8523 echo "${ECHO_T}$ac_header_preproc" >&6
8525 # So? What about this header?
8526 case $ac_header_compiler:$ac_header_preproc in
8528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8540 echo "$as_me:$LINENO: checking for $ac_header" >&5
8541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8545 eval "$as_ac_Header=$ac_header_preproc"
8547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8552 cat >>confdefs.h <<_ACEOF
8553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8560 echo "$as_me:$LINENO: checking for /usr/ucblib in LIBS" >&5
8561 echo $ECHO_N "checking for /usr/ucblib in LIBS... $ECHO_C" >&6
8562 if test -d /usr/ucblib ; then
8563 if test "$build" = "mips-sni-sysv4" ; then
8564 addlib /usr/ccs/lib -lc
8569 echo "$as_me:$LINENO: result: yes" >&5
8570 echo "${ECHO_T}yes" >&6
8572 echo "$as_me:$LINENO: result: no" >&5
8573 echo "${ECHO_T}no" >&6
8576 if test ! -f ../rpm.c
8578 echo "$as_me:$LINENO: checking for GNU xgettext" >&5
8579 echo $ECHO_N "checking for GNU xgettext... $ECHO_C" >&6
8580 xgettext --version 2>&1 | grep 'GNU gettext' >/dev/null 2>&1 || { { echo "$as_me:$LINENO: error:
8581 *** GNU gettext is required. The latest version
8582 *** is always available from ftp://ftp.gnu.org/gnu/gettext/." >&5
8583 echo "$as_me: error:
8584 *** GNU gettext is required. The latest version
8585 *** is always available from ftp://ftp.gnu.org/gnu/gettext/." >&2;}
8586 { (exit 1); exit 1; }; }
8587 echo "$as_me:$LINENO: result: yes" >&5
8588 echo "${ECHO_T}yes" >&6
8595 for ac_func in strerror mtrace getuid geteuid
8597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8598 echo "$as_me:$LINENO: checking for $ac_func" >&5
8599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8600 if eval "test \"\${$as_ac_var+set}\" = set"; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 cat >conftest.$ac_ext <<_ACEOF
8604 #line $LINENO "configure"
8605 #include "confdefs.h"
8606 /* System header to define __stub macros and hopefully few prototypes,
8607 which can conflict with char $ac_func (); below. */
8609 /* Override any gcc2 internal prototype to avoid an error. */
8613 /* We use char because int might match the return type of a gcc2
8614 builtin and then its argument prototype would still apply. */
8618 #ifdef F77_DUMMY_MAIN
8622 int F77_DUMMY_MAIN() { return 1; }
8627 /* The GNU C library defines this for functions which it implements
8628 to always fail with ENOSYS. Some functions are actually named
8629 something starting with __ and the normal name is an alias. */
8630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8640 rm -f conftest.$ac_objext conftest$ac_exeext
8641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8642 (eval $ac_link) 2>&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } &&
8646 { ac_try='test -s conftest$ac_exeext'
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; }; then
8652 eval "$as_ac_var=yes"
8654 echo "$as_me: failed program was:" >&5
8655 cat conftest.$ac_ext >&5
8656 eval "$as_ac_var=no"
8658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8661 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8662 if test `eval echo '${'$as_ac_var'}'` = yes; then
8663 cat >>confdefs.h <<_ACEOF
8664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8670 echo "$as_me:$LINENO: checking for setreuid" >&5
8671 echo $ECHO_N "checking for setreuid... $ECHO_C" >&6
8672 if test "${ac_cv_func_setreuid+set}" = set; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
8675 cat >conftest.$ac_ext <<_ACEOF
8676 #line $LINENO "configure"
8677 #include "confdefs.h"
8678 /* System header to define __stub macros and hopefully few prototypes,
8679 which can conflict with char setreuid (); below. */
8681 /* Override any gcc2 internal prototype to avoid an error. */
8685 /* We use char because int might match the return type of a gcc2
8686 builtin and then its argument prototype would still apply. */
8690 #ifdef F77_DUMMY_MAIN
8694 int F77_DUMMY_MAIN() { return 1; }
8699 /* The GNU C library defines this for functions which it implements
8700 to always fail with ENOSYS. Some functions are actually named
8701 something starting with __ and the normal name is an alias. */
8702 #if defined (__stub_setreuid) || defined (__stub___setreuid)
8712 rm -f conftest.$ac_objext conftest$ac_exeext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714 (eval $ac_link) 2>&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } &&
8718 { ac_try='test -s conftest$ac_exeext'
8719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; }; then
8724 ac_cv_func_setreuid=yes
8726 echo "$as_me: failed program was:" >&5
8727 cat conftest.$ac_ext >&5
8728 ac_cv_func_setreuid=no
8730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8732 echo "$as_me:$LINENO: result: $ac_cv_func_setreuid" >&5
8733 echo "${ECHO_T}$ac_cv_func_setreuid" >&6
8734 if test $ac_cv_func_setreuid = yes; then
8738 echo "$as_me:$LINENO: checking for setreuid in -lucb" >&5
8739 echo $ECHO_N "checking for setreuid in -lucb... $ECHO_C" >&6
8740 if test "${ac_cv_lib_ucb_setreuid+set}" = set; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 ac_check_lib_save_LIBS=$LIBS
8745 cat >conftest.$ac_ext <<_ACEOF
8746 #line $LINENO "configure"
8747 #include "confdefs.h"
8749 /* Override any gcc2 internal prototype to avoid an error. */
8753 /* We use char because int might match the return type of a gcc2
8754 builtin and then its argument prototype would still apply. */
8756 #ifdef F77_DUMMY_MAIN
8760 int F77_DUMMY_MAIN() { return 1; }
8770 rm -f conftest.$ac_objext conftest$ac_exeext
8771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8772 (eval $ac_link) 2>&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } &&
8776 { ac_try='test -s conftest$ac_exeext'
8777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; }; then
8782 ac_cv_lib_ucb_setreuid=yes
8784 echo "$as_me: failed program was:" >&5
8785 cat conftest.$ac_ext >&5
8786 ac_cv_lib_ucb_setreuid=no
8788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8789 LIBS=$ac_check_lib_save_LIBS
8791 echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_setreuid" >&5
8792 echo "${ECHO_T}$ac_cv_lib_ucb_setreuid" >&6
8793 if test $ac_cv_lib_ucb_setreuid = yes; then
8794 if echo $LIBS | grep -- -lucb >/dev/null ;then :; else LIBS="$LIBS -lc -lucb" USEUCB=y;fi
8803 if test -n "$ac_aux_dir"; then
8804 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8806 if test -z "$MKINSTALLDIRS"; then
8807 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8814 # Extract the first word of "msgfmt", so it can be a program name with args.
8815 set dummy msgfmt; ac_word=$2
8816 echo "$as_me:$LINENO: checking for $ac_word" >&5
8817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8818 if test "${ac_cv_path_MSGFMT+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8823 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8827 for ac_dir in $PATH; do
8828 test -z "$ac_dir" && ac_dir=.
8829 if test -f $ac_dir/$ac_word; then
8830 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
8831 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8832 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8838 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8842 MSGFMT="$ac_cv_path_MSGFMT"
8843 if test "$MSGFMT" != ":"; then
8844 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8845 echo "${ECHO_T}$MSGFMT" >&6
8847 echo "$as_me:$LINENO: result: no" >&5
8848 echo "${ECHO_T}no" >&6
8851 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8852 set dummy gmsgfmt; ac_word=$2
8853 echo "$as_me:$LINENO: checking for $ac_word" >&5
8854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8855 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8860 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8867 test -z "$as_dir" && as_dir=.
8868 for ac_exec_ext in '' $ac_executable_extensions; do
8869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8870 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8877 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8881 GMSGFMT=$ac_cv_path_GMSGFMT
8883 if test -n "$GMSGFMT"; then
8884 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8885 echo "${ECHO_T}$GMSGFMT" >&6
8887 echo "$as_me:$LINENO: result: no" >&5
8888 echo "${ECHO_T}no" >&6
8892 # Extract the first word of "xgettext", so it can be a program name with args.
8893 set dummy xgettext; ac_word=$2
8894 echo "$as_me:$LINENO: checking for $ac_word" >&5
8895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8896 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8901 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8904 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8905 for ac_dir in $PATH; do
8906 test -z "$ac_dir" && ac_dir=.
8907 if test -f $ac_dir/$ac_word; then
8908 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
8909 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8910 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8916 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8920 XGETTEXT="$ac_cv_path_XGETTEXT"
8921 if test "$XGETTEXT" != ":"; then
8922 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8923 echo "${ECHO_T}$XGETTEXT" >&6
8925 echo "$as_me:$LINENO: result: no" >&5
8926 echo "${ECHO_T}no" >&6
8931 # Extract the first word of "msgmerge", so it can be a program name with args.
8932 set dummy msgmerge; ac_word=$2
8933 echo "$as_me:$LINENO: checking for $ac_word" >&5
8934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8935 if test "${ac_cv_path_MSGMERGE+set}" = set; then
8936 echo $ECHO_N "(cached) $ECHO_C" >&6
8940 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8944 for ac_dir in $PATH; do
8945 test -z "$ac_dir" && ac_dir=.
8946 if test -f $ac_dir/$ac_word; then
8947 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
8948 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
8954 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8958 MSGMERGE="$ac_cv_path_MSGMERGE"
8959 if test "$MSGMERGE" != ":"; then
8960 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
8961 echo "${ECHO_T}$MSGMERGE" >&6
8963 echo "$as_me:$LINENO: result: no" >&5
8964 echo "${ECHO_T}no" >&6
8968 if test "$GMSGFMT" != ":"; then
8969 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
8970 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8973 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
8974 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
8975 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
8980 if test "$XGETTEXT" != ":"; then
8981 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
8982 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8985 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8986 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8992 ac_config_commands="$ac_config_commands default-1"
8995 if test -n "$ac_tool_prefix"; then
8996 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8997 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8998 echo "$as_me:$LINENO: checking for $ac_word" >&5
8999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9000 if test "${ac_cv_prog_RANLIB+set}" = set; then
9001 echo $ECHO_N "(cached) $ECHO_C" >&6
9003 if test -n "$RANLIB"; then
9004 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9010 test -z "$as_dir" && as_dir=.
9011 for ac_exec_ext in '' $ac_executable_extensions; do
9012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9013 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9022 RANLIB=$ac_cv_prog_RANLIB
9023 if test -n "$RANLIB"; then
9024 echo "$as_me:$LINENO: result: $RANLIB" >&5
9025 echo "${ECHO_T}$RANLIB" >&6
9027 echo "$as_me:$LINENO: result: no" >&5
9028 echo "${ECHO_T}no" >&6
9032 if test -z "$ac_cv_prog_RANLIB"; then
9033 ac_ct_RANLIB=$RANLIB
9034 # Extract the first word of "ranlib", so it can be a program name with args.
9035 set dummy ranlib; ac_word=$2
9036 echo "$as_me:$LINENO: checking for $ac_word" >&5
9037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9038 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9039 echo $ECHO_N "(cached) $ECHO_C" >&6
9041 if test -n "$ac_ct_RANLIB"; then
9042 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9048 test -z "$as_dir" && as_dir=.
9049 for ac_exec_ext in '' $ac_executable_extensions; do
9050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9051 ac_cv_prog_ac_ct_RANLIB="ranlib"
9052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9058 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9061 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9062 if test -n "$ac_ct_RANLIB"; then
9063 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9064 echo "${ECHO_T}$ac_ct_RANLIB" >&6
9066 echo "$as_me:$LINENO: result: no" >&5
9067 echo "${ECHO_T}no" >&6
9070 RANLIB=$ac_ct_RANLIB
9072 RANLIB="$ac_cv_prog_RANLIB"
9075 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
9076 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
9077 if test "${ac_cv_prog_cc_stdc+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9080 ac_cv_prog_cc_stdc=no
9082 cat >conftest.$ac_ext <<_ACEOF
9083 #line $LINENO "configure"
9084 #include "confdefs.h"
9087 #include <sys/types.h>
9088 #include <sys/stat.h>
9089 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
9090 struct buf { int x; };
9091 FILE * (*rcsopen) (struct buf *, struct stat *, int);
9092 static char *e (p, i)
9098 static char *f (char * (*g) (char **, int), char **p, ...)
9103 s = g (p, va_arg (v,int));
9107 int test (int i, double x);
9108 struct s1 {int (*f) (int a);};
9109 struct s2 {int (*f) (double a);};
9110 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9113 #ifdef F77_DUMMY_MAIN
9117 int F77_DUMMY_MAIN() { return 1; }
9122 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
9127 # Don't try gcc -ansi; that turns off useful extensions and
9128 # breaks some systems' header files.
9129 # AIX -qlanglvl=ansi
9130 # Ultrix and OSF/1 -std1
9131 # HP-UX 10.20 and later -Ae
9132 # HP-UX older versions -Aa -D_HPUX_SOURCE
9133 # SVR4 -Xc -D__EXTENSIONS__
9134 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9136 CC="$ac_save_CC $ac_arg"
9137 rm -f conftest.$ac_objext
9138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9139 (eval $ac_compile) 2>&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } &&
9143 { ac_try='test -s conftest.$ac_objext'
9144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); }; }; then
9149 ac_cv_prog_cc_stdc=$ac_arg
9152 echo "$as_me: failed program was:" >&5
9153 cat conftest.$ac_ext >&5
9155 rm -f conftest.$ac_objext
9157 rm -f conftest.$ac_ext conftest.$ac_objext
9162 case "x$ac_cv_prog_cc_stdc" in
9164 echo "$as_me:$LINENO: result: none needed" >&5
9165 echo "${ECHO_T}none needed" >&6 ;;
9167 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
9168 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
9169 CC="$CC $ac_cv_prog_cc_stdc" ;;
9172 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9173 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9174 if test "${ac_cv_c_const+set}" = set; then
9175 echo $ECHO_N "(cached) $ECHO_C" >&6
9177 cat >conftest.$ac_ext <<_ACEOF
9178 #line $LINENO "configure"
9179 #include "confdefs.h"
9181 #ifdef F77_DUMMY_MAIN
9185 int F77_DUMMY_MAIN() { return 1; }
9190 /* FIXME: Include the comments suggested by Paul. */
9192 /* Ultrix mips cc rejects this. */
9193 typedef int charset[2];
9195 /* SunOS 4.1.1 cc rejects this. */
9196 char const *const *ccp;
9198 /* NEC SVR4.0.2 mips cc rejects this. */
9199 struct point {int x, y;};
9200 static struct point const zero = {0,0};
9201 /* AIX XL C 1.02.0.0 rejects this.
9202 It does not let you subtract one const X* pointer from another in
9203 an arm of an if-expression whose if-part is not a constant
9205 const char *g = "string";
9206 ccp = &g + (g ? g-g : 0);
9207 /* HPUX 7.0 cc rejects these. */
9210 ccp = (char const *const *) p;
9211 { /* SCO 3.2v4 cc rejects this. */
9213 char const *s = 0 ? (char *) 0 : (char const *) 0;
9217 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9219 const int *foo = &x[0];
9222 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9223 typedef const int *iptr;
9227 { /* AIX XL C 1.02.0.0 rejects this saying
9228 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9229 struct s { int j; const int *ap[3]; };
9230 struct s *b; b->j = 5;
9232 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9241 rm -f conftest.$ac_objext
9242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9243 (eval $ac_compile) 2>&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); } &&
9247 { ac_try='test -s conftest.$ac_objext'
9248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); }; }; then
9255 echo "$as_me: failed program was:" >&5
9256 cat conftest.$ac_ext >&5
9259 rm -f conftest.$ac_objext conftest.$ac_ext
9261 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9262 echo "${ECHO_T}$ac_cv_c_const" >&6
9263 if test $ac_cv_c_const = no; then
9265 cat >>confdefs.h <<\_ACEOF
9271 echo "$as_me:$LINENO: checking for inline" >&5
9272 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9273 if test "${ac_cv_c_inline+set}" = set; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9277 for ac_kw in inline __inline__ __inline; do
9278 cat >conftest.$ac_ext <<_ACEOF
9279 #line $LINENO "configure"
9280 #include "confdefs.h"
9282 static $ac_kw int static_foo () {return 0; }
9283 $ac_kw int foo () {return 0; }
9287 rm -f conftest.$ac_objext
9288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9289 (eval $ac_compile) 2>&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } &&
9293 { ac_try='test -s conftest.$ac_objext'
9294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); }; }; then
9299 ac_cv_c_inline=$ac_kw; break
9301 echo "$as_me: failed program was:" >&5
9302 cat conftest.$ac_ext >&5
9304 rm -f conftest.$ac_objext conftest.$ac_ext
9308 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9309 echo "${ECHO_T}$ac_cv_c_inline" >&6
9310 case $ac_cv_c_inline in
9313 cat >>confdefs.h <<\_ACEOF
9317 *) cat >>confdefs.h <<_ACEOF
9318 #define inline $ac_cv_c_inline
9323 echo "$as_me:$LINENO: checking for off_t" >&5
9324 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9325 if test "${ac_cv_type_off_t+set}" = set; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9328 cat >conftest.$ac_ext <<_ACEOF
9329 #line $LINENO "configure"
9330 #include "confdefs.h"
9331 $ac_includes_default
9332 #ifdef F77_DUMMY_MAIN
9336 int F77_DUMMY_MAIN() { return 1; }
9349 rm -f conftest.$ac_objext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9351 (eval $ac_compile) 2>&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } &&
9355 { ac_try='test -s conftest.$ac_objext'
9356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; }; then
9361 ac_cv_type_off_t=yes
9363 echo "$as_me: failed program was:" >&5
9364 cat conftest.$ac_ext >&5
9367 rm -f conftest.$ac_objext conftest.$ac_ext
9369 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9370 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9371 if test $ac_cv_type_off_t = yes; then
9375 cat >>confdefs.h <<_ACEOF
9381 echo "$as_me:$LINENO: checking for size_t" >&5
9382 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9383 if test "${ac_cv_type_size_t+set}" = set; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
9386 cat >conftest.$ac_ext <<_ACEOF
9387 #line $LINENO "configure"
9388 #include "confdefs.h"
9389 $ac_includes_default
9390 #ifdef F77_DUMMY_MAIN
9394 int F77_DUMMY_MAIN() { return 1; }
9401 if (sizeof (size_t))
9407 rm -f conftest.$ac_objext
9408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9409 (eval $ac_compile) 2>&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } &&
9413 { ac_try='test -s conftest.$ac_objext'
9414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); }; }; then
9419 ac_cv_type_size_t=yes
9421 echo "$as_me: failed program was:" >&5
9422 cat conftest.$ac_ext >&5
9423 ac_cv_type_size_t=no
9425 rm -f conftest.$ac_objext conftest.$ac_ext
9427 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9428 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9429 if test $ac_cv_type_size_t = yes; then
9433 cat >>confdefs.h <<_ACEOF
9434 #define size_t unsigned
9439 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9440 # for constant arguments. Useless!
9441 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9442 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9443 if test "${ac_cv_working_alloca_h+set}" = set; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9446 cat >conftest.$ac_ext <<_ACEOF
9447 #line $LINENO "configure"
9448 #include "confdefs.h"
9450 #ifdef F77_DUMMY_MAIN
9454 int F77_DUMMY_MAIN() { return 1; }
9459 char *p = (char *) alloca (2 * sizeof (int));
9464 rm -f conftest.$ac_objext conftest$ac_exeext
9465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9466 (eval $ac_link) 2>&5
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); } &&
9470 { ac_try='test -s conftest$ac_exeext'
9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; }; then
9476 ac_cv_working_alloca_h=yes
9478 echo "$as_me: failed program was:" >&5
9479 cat conftest.$ac_ext >&5
9480 ac_cv_working_alloca_h=no
9482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9484 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9485 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9486 if test $ac_cv_working_alloca_h = yes; then
9488 cat >>confdefs.h <<\_ACEOF
9489 #define HAVE_ALLOCA_H 1
9494 echo "$as_me:$LINENO: checking for alloca" >&5
9495 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9496 if test "${ac_cv_func_alloca_works+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9499 cat >conftest.$ac_ext <<_ACEOF
9500 #line $LINENO "configure"
9501 #include "confdefs.h"
9503 # define alloca __builtin_alloca
9506 # include <malloc.h>
9507 # define alloca _alloca
9510 # include <alloca.h>
9515 # ifndef alloca /* predefined by HP cc +Olibcalls */
9523 #ifdef F77_DUMMY_MAIN
9527 int F77_DUMMY_MAIN() { return 1; }
9532 char *p = (char *) alloca (1);
9537 rm -f conftest.$ac_objext conftest$ac_exeext
9538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9539 (eval $ac_link) 2>&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } &&
9543 { ac_try='test -s conftest$ac_exeext'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; }; then
9549 ac_cv_func_alloca_works=yes
9551 echo "$as_me: failed program was:" >&5
9552 cat conftest.$ac_ext >&5
9553 ac_cv_func_alloca_works=no
9555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9557 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9558 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9560 if test $ac_cv_func_alloca_works = yes; then
9562 cat >>confdefs.h <<\_ACEOF
9563 #define HAVE_ALLOCA 1
9567 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9568 # that cause trouble. Some versions do not even contain alloca or
9569 # contain a buggy version. If you still want to use their alloca,
9570 # use ar to extract alloca.o from them instead of compiling alloca.c.
9572 ALLOCA=alloca.$ac_objext
9574 cat >>confdefs.h <<\_ACEOF
9579 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9580 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9581 if test "${ac_cv_os_cray+set}" = set; then
9582 echo $ECHO_N "(cached) $ECHO_C" >&6
9584 cat >conftest.$ac_ext <<_ACEOF
9585 #line $LINENO "configure"
9586 #include "confdefs.h"
9587 #if defined(CRAY) && ! defined(CRAY2)
9594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9595 egrep "webecray" >/dev/null 2>&1; then
9603 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9604 echo "${ECHO_T}$ac_cv_os_cray" >&6
9605 if test $ac_cv_os_cray = yes; then
9606 for ac_func in _getb67 GETB67 getb67; do
9607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9608 echo "$as_me:$LINENO: checking for $ac_func" >&5
9609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9610 if eval "test \"\${$as_ac_var+set}\" = set"; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9613 cat >conftest.$ac_ext <<_ACEOF
9614 #line $LINENO "configure"
9615 #include "confdefs.h"
9616 /* System header to define __stub macros and hopefully few prototypes,
9617 which can conflict with char $ac_func (); below. */
9619 /* Override any gcc2 internal prototype to avoid an error. */
9623 /* We use char because int might match the return type of a gcc2
9624 builtin and then its argument prototype would still apply. */
9628 #ifdef F77_DUMMY_MAIN
9632 int F77_DUMMY_MAIN() { return 1; }
9637 /* The GNU C library defines this for functions which it implements
9638 to always fail with ENOSYS. Some functions are actually named
9639 something starting with __ and the normal name is an alias. */
9640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9650 rm -f conftest.$ac_objext conftest$ac_exeext
9651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9652 (eval $ac_link) 2>&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } &&
9656 { ac_try='test -s conftest$ac_exeext'
9657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); }; }; then
9662 eval "$as_ac_var=yes"
9664 echo "$as_me: failed program was:" >&5
9665 cat conftest.$ac_ext >&5
9666 eval "$as_ac_var=no"
9668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9672 if test `eval echo '${'$as_ac_var'}'` = yes; then
9674 cat >>confdefs.h <<_ACEOF
9675 #define CRAY_STACKSEG_END $ac_func
9684 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9685 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9686 if test "${ac_cv_c_stack_direction+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 if test "$cross_compiling" = yes; then
9690 ac_cv_c_stack_direction=0
9692 cat >conftest.$ac_ext <<_ACEOF
9693 #line $LINENO "configure"
9694 #include "confdefs.h"
9696 find_stack_direction ()
9698 static char *addr = 0;
9703 return find_stack_direction ();
9706 return (&dummy > addr) ? 1 : -1;
9712 exit (find_stack_direction () < 0);
9715 rm -f conftest$ac_exeext
9716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9717 (eval $ac_link) 2>&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
9726 ac_cv_c_stack_direction=1
9728 echo "$as_me: program exited with status $ac_status" >&5
9729 echo "$as_me: failed program was:" >&5
9730 cat conftest.$ac_ext >&5
9732 ac_cv_c_stack_direction=-1
9734 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9737 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9738 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9740 cat >>confdefs.h <<_ACEOF
9741 #define STACK_DIRECTION $ac_cv_c_stack_direction
9749 for ac_header in stdlib.h unistd.h
9751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9753 echo "$as_me:$LINENO: checking for $ac_header" >&5
9754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9761 # Is the header compilable?
9762 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9764 cat >conftest.$ac_ext <<_ACEOF
9765 #line $LINENO "configure"
9766 #include "confdefs.h"
9767 $ac_includes_default
9768 #include <$ac_header>
9770 rm -f conftest.$ac_objext
9771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9772 (eval $ac_compile) 2>&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } &&
9776 { ac_try='test -s conftest.$ac_objext'
9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; }; then
9782 ac_header_compiler=yes
9784 echo "$as_me: failed program was:" >&5
9785 cat conftest.$ac_ext >&5
9786 ac_header_compiler=no
9788 rm -f conftest.$ac_objext conftest.$ac_ext
9789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9790 echo "${ECHO_T}$ac_header_compiler" >&6
9792 # Is the header present?
9793 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9795 cat >conftest.$ac_ext <<_ACEOF
9796 #line $LINENO "configure"
9797 #include "confdefs.h"
9798 #include <$ac_header>
9800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9803 egrep -v '^ *\+' conftest.er1 >conftest.err
9805 cat conftest.err >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } >/dev/null; then
9808 if test -s conftest.err; then
9809 ac_cpp_err=$ac_c_preproc_warn_flag
9816 if test -z "$ac_cpp_err"; then
9817 ac_header_preproc=yes
9819 echo "$as_me: failed program was:" >&5
9820 cat conftest.$ac_ext >&5
9821 ac_header_preproc=no
9823 rm -f conftest.err conftest.$ac_ext
9824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9825 echo "${ECHO_T}$ac_header_preproc" >&6
9827 # So? What about this header?
9828 case $ac_header_compiler:$ac_header_preproc in
9830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9842 echo "$as_me:$LINENO: checking for $ac_header" >&5
9843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9847 eval "$as_ac_Header=$ac_header_preproc"
9849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9854 cat >>confdefs.h <<_ACEOF
9855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9863 for ac_func in getpagesize
9865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9866 echo "$as_me:$LINENO: checking for $ac_func" >&5
9867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9868 if eval "test \"\${$as_ac_var+set}\" = set"; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9871 cat >conftest.$ac_ext <<_ACEOF
9872 #line $LINENO "configure"
9873 #include "confdefs.h"
9874 /* System header to define __stub macros and hopefully few prototypes,
9875 which can conflict with char $ac_func (); below. */
9877 /* Override any gcc2 internal prototype to avoid an error. */
9881 /* We use char because int might match the return type of a gcc2
9882 builtin and then its argument prototype would still apply. */
9886 #ifdef F77_DUMMY_MAIN
9890 int F77_DUMMY_MAIN() { return 1; }
9895 /* The GNU C library defines this for functions which it implements
9896 to always fail with ENOSYS. Some functions are actually named
9897 something starting with __ and the normal name is an alias. */
9898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9908 rm -f conftest.$ac_objext conftest$ac_exeext
9909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9910 (eval $ac_link) 2>&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -s conftest$ac_exeext'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9920 eval "$as_ac_var=yes"
9922 echo "$as_me: failed program was:" >&5
9923 cat conftest.$ac_ext >&5
9924 eval "$as_ac_var=no"
9926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9929 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9930 if test `eval echo '${'$as_ac_var'}'` = yes; then
9931 cat >>confdefs.h <<_ACEOF
9932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9938 echo "$as_me:$LINENO: checking for working mmap" >&5
9939 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9940 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9943 if test "$cross_compiling" = yes; then
9944 ac_cv_func_mmap_fixed_mapped=no
9946 cat >conftest.$ac_ext <<_ACEOF
9947 #line $LINENO "configure"
9948 #include "confdefs.h"
9949 $ac_includes_default
9950 /* malloc might have been renamed as rpl_malloc. */
9953 /* Thanks to Mike Haertel and Jim Avera for this test.
9954 Here is a matrix of mmap possibilities:
9955 mmap private not fixed
9956 mmap private fixed at somewhere currently unmapped
9957 mmap private fixed at somewhere already mapped
9958 mmap shared not fixed
9959 mmap shared fixed at somewhere currently unmapped
9960 mmap shared fixed at somewhere already mapped
9961 For private mappings, we should verify that changes cannot be read()
9962 back from the file, nor mmap's back from the file at a different
9963 address. (There have been systems where private was not correctly
9964 implemented like the infamous i386 svr4.0, and systems where the
9965 VM page cache was not coherent with the file system buffer cache
9966 like early versions of FreeBSD and possibly contemporary NetBSD.)
9967 For shared mappings, we should conversely verify that changes get
9968 propagated back to all the places they're supposed to be.
9970 Grep wants private fixed already mapped.
9971 The main things grep needs to know about mmap are:
9972 * does it exist and is it safe to write into the mmap'd area
9973 * how to use it (BSD variants) */
9976 #include <sys/mman.h>
9978 #if !STDC_HEADERS && !HAVE_STDLIB_H
9982 /* This mess was copied from the GNU getpagesize.h. */
9983 #if !HAVE_GETPAGESIZE
9984 /* Assume that all systems that can run configure have sys/param.h. */
9985 # if !HAVE_SYS_PARAM_H
9986 # define HAVE_SYS_PARAM_H 1
9989 # ifdef _SC_PAGESIZE
9990 # define getpagesize() sysconf(_SC_PAGESIZE)
9991 # else /* no _SC_PAGESIZE */
9992 # if HAVE_SYS_PARAM_H
9993 # include <sys/param.h>
9994 # ifdef EXEC_PAGESIZE
9995 # define getpagesize() EXEC_PAGESIZE
9996 # else /* no EXEC_PAGESIZE */
9998 # define getpagesize() NBPG * CLSIZE
10001 # endif /* no CLSIZE */
10002 # else /* no NBPG */
10004 # define getpagesize() NBPC
10005 # else /* no NBPC */
10007 # define getpagesize() PAGESIZE
10008 # endif /* PAGESIZE */
10009 # endif /* no NBPC */
10010 # endif /* no NBPG */
10011 # endif /* no EXEC_PAGESIZE */
10012 # else /* no HAVE_SYS_PARAM_H */
10013 # define getpagesize() 8192 /* punt totally */
10014 # endif /* no HAVE_SYS_PARAM_H */
10015 # endif /* no _SC_PAGESIZE */
10017 #endif /* no HAVE_GETPAGESIZE */
10022 char *data, *data2, *data3;
10026 pagesize = getpagesize ();
10028 /* First, make a file with some known garbage in it. */
10029 data = (char *) malloc (pagesize);
10032 for (i = 0; i < pagesize; ++i)
10033 *(data + i) = rand ();
10035 fd = creat ("conftest.mmap", 0600);
10038 if (write (fd, data, pagesize) != pagesize)
10042 /* Next, try to mmap the file at a fixed address which already has
10043 something else allocated at it. If we can, also make sure that
10044 we see the same garbage. */
10045 fd = open ("conftest.mmap", O_RDWR);
10048 data2 = (char *) malloc (2 * pagesize);
10051 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
10052 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10053 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10055 for (i = 0; i < pagesize; ++i)
10056 if (*(data + i) != *(data2 + i))
10059 /* Finally, make sure that changes to the mapped area do not
10060 percolate back to the file as seen by read(). (This is a bug on
10061 some variants of i386 svr4.0.) */
10062 for (i = 0; i < pagesize; ++i)
10063 *(data2 + i) = *(data2 + i) + 1;
10064 data3 = (char *) malloc (pagesize);
10067 if (read (fd, data3, pagesize) != pagesize)
10069 for (i = 0; i < pagesize; ++i)
10070 if (*(data + i) != *(data3 + i))
10076 rm -f conftest$ac_exeext
10077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10078 (eval $ac_link) 2>&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083 (eval $ac_try) 2>&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; }; then
10087 ac_cv_func_mmap_fixed_mapped=yes
10089 echo "$as_me: program exited with status $ac_status" >&5
10090 echo "$as_me: failed program was:" >&5
10091 cat conftest.$ac_ext >&5
10092 ( exit $ac_status )
10093 ac_cv_func_mmap_fixed_mapped=no
10095 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10098 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10099 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10100 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10102 cat >>confdefs.h <<\_ACEOF
10103 #define HAVE_MMAP 1
10107 rm -f conftest.mmap
10110 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
10111 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
10112 if test "${ac_cv_gnu_library_2_1+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10115 cat >conftest.$ac_ext <<_ACEOF
10116 #line $LINENO "configure"
10117 #include "confdefs.h"
10119 #include <features.h>
10120 #ifdef __GNU_LIBRARY__
10121 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10128 egrep "Lucky GNU user" >/dev/null 2>&1; then
10129 ac_cv_gnu_library_2_1=yes
10131 ac_cv_gnu_library_2_1=no
10138 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
10139 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
10141 GLIBC21="$ac_cv_gnu_library_2_1"
10146 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
10147 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
10148 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10152 if test "$cross_compiling" = yes; then
10154 # Guess based on the CPU.
10155 case "$host_cpu" in
10156 alpha* | i3456786 | m68k | s390*)
10157 gt_cv_int_divbyzero_sigfpe="guessing yes";;
10159 gt_cv_int_divbyzero_sigfpe="guessing no";;
10163 cat >conftest.$ac_ext <<_ACEOF
10164 #line $LINENO "configure"
10165 #include "confdefs.h"
10167 #include <stdlib.h>
10168 #include <signal.h>
10172 sigfpe_handler (int sig)
10174 sigfpe_handler (sig) int sig;
10177 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
10178 exit (sig != SIGFPE);
10188 signal (SIGFPE, sigfpe_handler);
10189 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
10190 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
10191 signal (SIGTRAP, sigfpe_handler);
10193 /* Linux/SPARC yields signal SIGILL. */
10194 #if defined (__sparc__) && defined (__linux__)
10195 signal (SIGILL, sigfpe_handler);
10204 rm -f conftest$ac_exeext
10205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10206 (eval $ac_link) 2>&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; }; then
10215 gt_cv_int_divbyzero_sigfpe=yes
10217 echo "$as_me: program exited with status $ac_status" >&5
10218 echo "$as_me: failed program was:" >&5
10219 cat conftest.$ac_ext >&5
10220 ( exit $ac_status )
10221 gt_cv_int_divbyzero_sigfpe=no
10223 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10227 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
10228 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
10229 case "$gt_cv_int_divbyzero_sigfpe" in
10234 cat >>confdefs.h <<_ACEOF
10235 #define INTDIV0_RAISES_SIGFPE $value
10240 echo "$as_me:$LINENO: checking for inttypes.h" >&5
10241 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10242 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
10243 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 cat >conftest.$ac_ext <<_ACEOF
10246 #line $LINENO "configure"
10247 #include "confdefs.h"
10248 #include <sys/types.h>
10249 #include <inttypes.h>
10250 #ifdef F77_DUMMY_MAIN
10251 # ifdef __cplusplus
10254 int F77_DUMMY_MAIN() { return 1; }
10259 uintmax_t i = (uintmax_t) -1;
10264 rm -f conftest.$ac_objext
10265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10266 (eval $ac_compile) 2>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } &&
10270 { ac_try='test -s conftest.$ac_objext'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; }; then
10276 jm_ac_cv_header_inttypes_h=yes
10278 echo "$as_me: failed program was:" >&5
10279 cat conftest.$ac_ext >&5
10280 jm_ac_cv_header_inttypes_h=no
10282 rm -f conftest.$ac_objext conftest.$ac_ext
10284 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
10285 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
10286 if test $jm_ac_cv_header_inttypes_h = yes; then
10288 cat >>confdefs.h <<_ACEOF
10289 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
10295 echo "$as_me:$LINENO: checking for stdint.h" >&5
10296 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
10297 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 cat >conftest.$ac_ext <<_ACEOF
10301 #line $LINENO "configure"
10302 #include "confdefs.h"
10303 #include <sys/types.h>
10304 #include <stdint.h>
10305 #ifdef F77_DUMMY_MAIN
10306 # ifdef __cplusplus
10309 int F77_DUMMY_MAIN() { return 1; }
10314 uintmax_t i = (uintmax_t) -1;
10319 rm -f conftest.$ac_objext
10320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10321 (eval $ac_compile) 2>&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } &&
10325 { ac_try='test -s conftest.$ac_objext'
10326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327 (eval $ac_try) 2>&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; }; then
10331 jm_ac_cv_header_stdint_h=yes
10333 echo "$as_me: failed program was:" >&5
10334 cat conftest.$ac_ext >&5
10335 jm_ac_cv_header_stdint_h=no
10337 rm -f conftest.$ac_objext conftest.$ac_ext
10339 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
10340 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
10341 if test $jm_ac_cv_header_stdint_h = yes; then
10343 cat >>confdefs.h <<_ACEOF
10344 #define HAVE_STDINT_H_WITH_UINTMAX 1
10350 echo "$as_me:$LINENO: checking for unsigned long long" >&5
10351 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
10352 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10355 cat >conftest.$ac_ext <<_ACEOF
10356 #line $LINENO "configure"
10357 #include "confdefs.h"
10358 unsigned long long ull = 1; int i = 63;
10359 #ifdef F77_DUMMY_MAIN
10360 # ifdef __cplusplus
10363 int F77_DUMMY_MAIN() { return 1; }
10368 unsigned long long ullmax = (unsigned long long) -1;
10369 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
10374 rm -f conftest.$ac_objext conftest$ac_exeext
10375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10376 (eval $ac_link) 2>&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } &&
10380 { ac_try='test -s conftest$ac_exeext'
10381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382 (eval $ac_try) 2>&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; }; then
10386 ac_cv_type_unsigned_long_long=yes
10388 echo "$as_me: failed program was:" >&5
10389 cat conftest.$ac_ext >&5
10390 ac_cv_type_unsigned_long_long=no
10392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10394 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
10395 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
10396 if test $ac_cv_type_unsigned_long_long = yes; then
10398 cat >>confdefs.h <<\_ACEOF
10399 #define HAVE_UNSIGNED_LONG_LONG 1
10407 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
10409 test $ac_cv_type_unsigned_long_long = yes \
10410 && ac_type='unsigned long long' \
10411 || ac_type='unsigned long'
10413 cat >>confdefs.h <<_ACEOF
10414 #define uintmax_t $ac_type
10420 echo "$as_me:$LINENO: checking for inttypes.h" >&5
10421 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10422 if test "${gt_cv_header_inttypes_h+set}" = set; then
10423 echo $ECHO_N "(cached) $ECHO_C" >&6
10426 cat >conftest.$ac_ext <<_ACEOF
10427 #line $LINENO "configure"
10428 #include "confdefs.h"
10429 #include <sys/types.h>
10430 #include <inttypes.h>
10431 #ifdef F77_DUMMY_MAIN
10432 # ifdef __cplusplus
10435 int F77_DUMMY_MAIN() { return 1; }
10445 rm -f conftest.$ac_objext
10446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10447 (eval $ac_compile) 2>&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } &&
10451 { ac_try='test -s conftest.$ac_objext'
10452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453 (eval $ac_try) 2>&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; }; then
10457 gt_cv_header_inttypes_h=yes
10459 echo "$as_me: failed program was:" >&5
10460 cat conftest.$ac_ext >&5
10461 gt_cv_header_inttypes_h=no
10463 rm -f conftest.$ac_objext conftest.$ac_ext
10466 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10467 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
10468 if test $gt_cv_header_inttypes_h = yes; then
10470 cat >>confdefs.h <<_ACEOF
10471 #define HAVE_INTTYPES_H 1
10478 if test $gt_cv_header_inttypes_h = yes; then
10479 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10480 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
10481 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 cat >conftest.$ac_ext <<_ACEOF
10486 #line $LINENO "configure"
10487 #include "confdefs.h"
10488 #include <inttypes.h>
10493 #ifdef F77_DUMMY_MAIN
10494 # ifdef __cplusplus
10497 int F77_DUMMY_MAIN() { return 1; }
10507 rm -f conftest.$ac_objext
10508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10509 (eval $ac_compile) 2>&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } &&
10513 { ac_try='test -s conftest.$ac_objext'
10514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515 (eval $ac_try) 2>&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; }; then
10519 gt_cv_inttypes_pri_broken=no
10521 echo "$as_me: failed program was:" >&5
10522 cat conftest.$ac_ext >&5
10523 gt_cv_inttypes_pri_broken=yes
10525 rm -f conftest.$ac_objext conftest.$ac_ext
10528 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10529 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
10531 if test "$gt_cv_inttypes_pri_broken" = yes; then
10533 cat >>confdefs.h <<_ACEOF
10534 #define PRI_MACROS_BROKEN 1
10540 if test "X$prefix" = "XNONE"; then
10541 acl_final_prefix="$ac_default_prefix"
10543 acl_final_prefix="$prefix"
10545 if test "X$exec_prefix" = "XNONE"; then
10546 acl_final_exec_prefix='${prefix}'
10548 acl_final_exec_prefix="$exec_prefix"
10550 acl_save_prefix="$prefix"
10551 prefix="$acl_final_prefix"
10552 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10553 prefix="$acl_save_prefix"
10556 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10557 if test "${with_gnu_ld+set}" = set; then
10558 withval="$with_gnu_ld"
10559 test "$withval" = no || with_gnu_ld=yes
10564 if test "$GCC" = yes; then
10565 # Check if gcc -print-prog-name=ld gives a path.
10566 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10567 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10570 # gcc leaves a trailing carriage return which upsets mingw
10571 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10573 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10576 # Accept absolute paths.
10577 [\\/]* | [A-Za-z]:[\\/]*)
10578 re_direlt='/[^/][^/]*/\.\./'
10579 # Canonicalize the path of ld
10580 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10581 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10582 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10584 test -z "$LD" && LD="$ac_prog"
10587 # If it fails, then pretend we aren't using GCC.
10591 # If it is relative, then search for the first ld in PATH.
10592 with_gnu_ld=unknown
10595 elif test "$with_gnu_ld" = yes; then
10596 echo "$as_me:$LINENO: checking for GNU ld" >&5
10597 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10599 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10600 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10602 if test "${acl_cv_path_LD+set}" = set; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10605 if test -z "$LD"; then
10606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10607 for ac_dir in $PATH; do
10608 test -z "$ac_dir" && ac_dir=.
10609 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10610 acl_cv_path_LD="$ac_dir/$ac_prog"
10611 # Check to see if the program is GNU ld. I'd rather use --version,
10612 # but apparently some GNU ld's only accept -v.
10613 # Break only if it was the GNU/non-GNU ld that we prefer.
10614 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10615 test "$with_gnu_ld" != no && break
10617 test "$with_gnu_ld" != yes && break
10623 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10627 LD="$acl_cv_path_LD"
10628 if test -n "$LD"; then
10629 echo "$as_me:$LINENO: result: $LD" >&5
10630 echo "${ECHO_T}$LD" >&6
10632 echo "$as_me:$LINENO: result: no" >&5
10633 echo "${ECHO_T}no" >&6
10635 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10636 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10637 { (exit 1); exit 1; }; }
10638 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10639 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10640 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10644 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10645 acl_cv_prog_gnu_ld=yes
10647 acl_cv_prog_gnu_ld=no
10650 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10651 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10652 with_gnu_ld=$acl_cv_prog_gnu_ld
10656 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10657 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10658 if test "${acl_cv_rpath+set}" = set; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10662 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10663 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10665 rm -f ./conftest.sh
10669 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10670 echo "${ECHO_T}$acl_cv_rpath" >&6
10672 libext="$acl_cv_libext"
10673 shlibext="$acl_cv_shlibext"
10674 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10675 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10676 hardcode_direct="$acl_cv_hardcode_direct"
10677 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10678 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
10679 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
10680 # Check whether --enable-rpath or --disable-rpath was given.
10681 if test "${enable_rpath+set}" = set; then
10682 enableval="$enable_rpath"
10696 acl_save_prefix="$prefix"
10697 prefix="$acl_final_prefix"
10698 acl_save_exec_prefix="$exec_prefix"
10699 exec_prefix="$acl_final_exec_prefix"
10701 eval additional_includedir=\"$includedir\"
10702 eval additional_libdir=\"$libdir\"
10704 exec_prefix="$acl_save_exec_prefix"
10705 prefix="$acl_save_prefix"
10708 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10709 if test "${with_libiconv_prefix+set}" = set; then
10710 withval="$with_libiconv_prefix"
10712 if test "X$withval" = "Xno"; then
10715 if test "X$withval" = "X"; then
10717 acl_save_prefix="$prefix"
10718 prefix="$acl_final_prefix"
10719 acl_save_exec_prefix="$exec_prefix"
10720 exec_prefix="$acl_final_exec_prefix"
10722 eval additional_includedir=\"$includedir\"
10723 eval additional_libdir=\"$libdir\"
10725 exec_prefix="$acl_save_exec_prefix"
10726 prefix="$acl_save_prefix"
10729 additional_includedir="$withval/include"
10730 additional_libdir="$withval/lib"
10740 names_already_handled=
10741 names_next_round='iconv '
10742 while test -n "$names_next_round"; do
10743 names_this_round="$names_next_round"
10745 for name in $names_this_round; do
10747 for n in $names_already_handled; do
10748 if test "$n" = "$name"; then
10749 already_handled=yes
10753 if test -z "$already_handled"; then
10754 names_already_handled="$names_already_handled $name"
10755 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10756 eval value=\"\$HAVE_LIB$uppername\"
10757 if test -n "$value"; then
10758 if test "$value" = yes; then
10759 eval value=\"\$LIB$uppername\"
10760 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10761 eval value=\"\$LTLIB$uppername\"
10762 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10771 if test $use_additional = yes; then
10772 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10773 found_dir="$additional_libdir"
10774 found_so="$additional_libdir/lib$name.$shlibext"
10775 if test -f "$additional_libdir/lib$name.la"; then
10776 found_la="$additional_libdir/lib$name.la"
10779 if test -f "$additional_libdir/lib$name.$libext"; then
10780 found_dir="$additional_libdir"
10781 found_a="$additional_libdir/lib$name.$libext"
10782 if test -f "$additional_libdir/lib$name.la"; then
10783 found_la="$additional_libdir/lib$name.la"
10788 if test "X$found_dir" = "X"; then
10789 for x in $LDFLAGS $LTLIBICONV; do
10791 acl_save_prefix="$prefix"
10792 prefix="$acl_final_prefix"
10793 acl_save_exec_prefix="$exec_prefix"
10794 exec_prefix="$acl_final_exec_prefix"
10796 exec_prefix="$acl_save_exec_prefix"
10797 prefix="$acl_save_prefix"
10801 dir=`echo "X$x" | sed -e 's/^X-L//'`
10802 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10804 found_so="$dir/lib$name.$shlibext"
10805 if test -f "$dir/lib$name.la"; then
10806 found_la="$dir/lib$name.la"
10809 if test -f "$dir/lib$name.$libext"; then
10811 found_a="$dir/lib$name.$libext"
10812 if test -f "$dir/lib$name.la"; then
10813 found_la="$dir/lib$name.la"
10819 if test "X$found_dir" != "X"; then
10824 if test "X$found_dir" != "X"; then
10825 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10826 if test "X$found_so" != "X"; then
10827 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10828 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10831 for x in $ltrpathdirs; do
10832 if test "X$x" = "X$found_dir"; then
10837 if test -z "$haveit"; then
10838 ltrpathdirs="$ltrpathdirs $found_dir"
10840 if test "$hardcode_direct" = yes; then
10841 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10843 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10844 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10846 for x in $rpathdirs; do
10847 if test "X$x" = "X$found_dir"; then
10852 if test -z "$haveit"; then
10853 rpathdirs="$rpathdirs $found_dir"
10857 for x in $LDFLAGS $LIBICONV; do
10859 acl_save_prefix="$prefix"
10860 prefix="$acl_final_prefix"
10861 acl_save_exec_prefix="$exec_prefix"
10862 exec_prefix="$acl_final_exec_prefix"
10864 exec_prefix="$acl_save_exec_prefix"
10865 prefix="$acl_save_prefix"
10867 if test "X$x" = "X-L$found_dir"; then
10872 if test -z "$haveit"; then
10873 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10875 if test "$hardcode_minus_L" != no; then
10876 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10878 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10884 if test "X$found_a" != "X"; then
10885 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10887 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10890 additional_includedir=
10891 case "$found_dir" in
10893 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10894 additional_includedir="$basedir/include"
10897 if test "X$additional_includedir" != "X"; then
10898 if test "X$additional_includedir" != "X/usr/include"; then
10900 if test "X$additional_includedir" = "X/usr/local/include"; then
10901 if test -n "$GCC"; then
10903 linux*) haveit=yes;;
10907 if test -z "$haveit"; then
10908 for x in $CPPFLAGS $INCICONV; do
10910 acl_save_prefix="$prefix"
10911 prefix="$acl_final_prefix"
10912 acl_save_exec_prefix="$exec_prefix"
10913 exec_prefix="$acl_final_exec_prefix"
10915 exec_prefix="$acl_save_exec_prefix"
10916 prefix="$acl_save_prefix"
10918 if test "X$x" = "X-I$additional_includedir"; then
10923 if test -z "$haveit"; then
10924 if test -d "$additional_includedir"; then
10925 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10931 if test -n "$found_la"; then
10932 save_libdir="$libdir"
10933 case "$found_la" in
10934 */* | *\\*) . "$found_la" ;;
10935 *) . "./$found_la" ;;
10937 libdir="$save_libdir"
10938 for dep in $dependency_libs; do
10941 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10942 if test "X$additional_libdir" != "X/usr/lib"; then
10944 if test "X$additional_libdir" = "X/usr/local/lib"; then
10945 if test -n "$GCC"; then
10947 linux*) haveit=yes;;
10951 if test -z "$haveit"; then
10953 for x in $LDFLAGS $LIBICONV; do
10955 acl_save_prefix="$prefix"
10956 prefix="$acl_final_prefix"
10957 acl_save_exec_prefix="$exec_prefix"
10958 exec_prefix="$acl_final_exec_prefix"
10960 exec_prefix="$acl_save_exec_prefix"
10961 prefix="$acl_save_prefix"
10963 if test "X$x" = "X-L$additional_libdir"; then
10968 if test -z "$haveit"; then
10969 if test -d "$additional_libdir"; then
10970 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10974 for x in $LDFLAGS $LTLIBICONV; do
10976 acl_save_prefix="$prefix"
10977 prefix="$acl_final_prefix"
10978 acl_save_exec_prefix="$exec_prefix"
10979 exec_prefix="$acl_final_exec_prefix"
10981 exec_prefix="$acl_save_exec_prefix"
10982 prefix="$acl_save_prefix"
10984 if test "X$x" = "X-L$additional_libdir"; then
10989 if test -z "$haveit"; then
10990 if test -d "$additional_libdir"; then
10991 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10998 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10999 if test "$enable_rpath" != no; then
11001 for x in $rpathdirs; do
11002 if test "X$x" = "X$dir"; then
11007 if test -z "$haveit"; then
11008 rpathdirs="$rpathdirs $dir"
11011 for x in $ltrpathdirs; do
11012 if test "X$x" = "X$dir"; then
11017 if test -z "$haveit"; then
11018 ltrpathdirs="$ltrpathdirs $dir"
11023 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11026 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11029 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11030 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11036 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11037 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11043 if test "X$rpathdirs" != "X"; then
11044 if test -n "$hardcode_libdir_separator"; then
11046 for found_dir in $rpathdirs; do
11047 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11049 acl_save_libdir="$libdir"
11051 eval flag=\"$hardcode_libdir_flag_spec\"
11052 libdir="$acl_save_libdir"
11053 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11055 for found_dir in $rpathdirs; do
11056 acl_save_libdir="$libdir"
11057 libdir="$found_dir"
11058 eval flag=\"$hardcode_libdir_flag_spec\"
11059 libdir="$acl_save_libdir"
11060 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11064 if test "X$ltrpathdirs" != "X"; then
11065 for found_dir in $ltrpathdirs; do
11066 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11083 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11084 stdlib.h string.h unistd.h sys/param.h
11086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11088 echo "$as_me:$LINENO: checking for $ac_header" >&5
11089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11096 # Is the header compilable?
11097 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11099 cat >conftest.$ac_ext <<_ACEOF
11100 #line $LINENO "configure"
11101 #include "confdefs.h"
11102 $ac_includes_default
11103 #include <$ac_header>
11105 rm -f conftest.$ac_objext
11106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11107 (eval $ac_compile) 2>&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } &&
11111 { ac_try='test -s conftest.$ac_objext'
11112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113 (eval $ac_try) 2>&5
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; }; then
11117 ac_header_compiler=yes
11119 echo "$as_me: failed program was:" >&5
11120 cat conftest.$ac_ext >&5
11121 ac_header_compiler=no
11123 rm -f conftest.$ac_objext conftest.$ac_ext
11124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11125 echo "${ECHO_T}$ac_header_compiler" >&6
11127 # Is the header present?
11128 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11130 cat >conftest.$ac_ext <<_ACEOF
11131 #line $LINENO "configure"
11132 #include "confdefs.h"
11133 #include <$ac_header>
11135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11138 egrep -v '^ *\+' conftest.er1 >conftest.err
11140 cat conftest.err >&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } >/dev/null; then
11143 if test -s conftest.err; then
11144 ac_cpp_err=$ac_c_preproc_warn_flag
11151 if test -z "$ac_cpp_err"; then
11152 ac_header_preproc=yes
11154 echo "$as_me: failed program was:" >&5
11155 cat conftest.$ac_ext >&5
11156 ac_header_preproc=no
11158 rm -f conftest.err conftest.$ac_ext
11159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11160 echo "${ECHO_T}$ac_header_preproc" >&6
11162 # So? What about this header?
11163 case $ac_header_compiler:$ac_header_preproc in
11165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11177 echo "$as_me:$LINENO: checking for $ac_header" >&5
11178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11180 echo $ECHO_N "(cached) $ECHO_C" >&6
11182 eval "$as_ac_Header=$ac_header_preproc"
11184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11189 cat >>confdefs.h <<_ACEOF
11190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11218 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
11219 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
11220 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
11222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11223 echo "$as_me:$LINENO: checking for $ac_func" >&5
11224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11225 if eval "test \"\${$as_ac_var+set}\" = set"; then
11226 echo $ECHO_N "(cached) $ECHO_C" >&6
11228 cat >conftest.$ac_ext <<_ACEOF
11229 #line $LINENO "configure"
11230 #include "confdefs.h"
11231 /* System header to define __stub macros and hopefully few prototypes,
11232 which can conflict with char $ac_func (); below. */
11233 #include <assert.h>
11234 /* Override any gcc2 internal prototype to avoid an error. */
11238 /* We use char because int might match the return type of a gcc2
11239 builtin and then its argument prototype would still apply. */
11243 #ifdef F77_DUMMY_MAIN
11244 # ifdef __cplusplus
11247 int F77_DUMMY_MAIN() { return 1; }
11252 /* The GNU C library defines this for functions which it implements
11253 to always fail with ENOSYS. Some functions are actually named
11254 something starting with __ and the normal name is an alias. */
11255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11265 rm -f conftest.$ac_objext conftest$ac_exeext
11266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11267 (eval $ac_link) 2>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } &&
11271 { ac_try='test -s conftest$ac_exeext'
11272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273 (eval $ac_try) 2>&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; }; then
11277 eval "$as_ac_var=yes"
11279 echo "$as_me: failed program was:" >&5
11280 cat conftest.$ac_ext >&5
11281 eval "$as_ac_var=no"
11283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11287 if test `eval echo '${'$as_ac_var'}'` = yes; then
11288 cat >>confdefs.h <<_ACEOF
11289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11301 am_save_CPPFLAGS="$CPPFLAGS"
11303 for element in $INCICONV; do
11305 for x in $CPPFLAGS; do
11307 acl_save_prefix="$prefix"
11308 prefix="$acl_final_prefix"
11309 acl_save_exec_prefix="$exec_prefix"
11310 exec_prefix="$acl_final_exec_prefix"
11312 exec_prefix="$acl_save_exec_prefix"
11313 prefix="$acl_save_prefix"
11315 if test "X$x" = "X$element"; then
11320 if test -z "$haveit"; then
11321 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11326 echo "$as_me:$LINENO: checking for iconv" >&5
11327 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11328 if test "${am_cv_func_iconv+set}" = set; then
11329 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 am_cv_func_iconv="no, consider installing GNU libiconv"
11334 cat >conftest.$ac_ext <<_ACEOF
11335 #line $LINENO "configure"
11336 #include "confdefs.h"
11337 #include <stdlib.h>
11339 #ifdef F77_DUMMY_MAIN
11340 # ifdef __cplusplus
11343 int F77_DUMMY_MAIN() { return 1; }
11348 iconv_t cd = iconv_open("","");
11349 iconv(cd,NULL,NULL,NULL,NULL);
11355 rm -f conftest.$ac_objext conftest$ac_exeext
11356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11357 (eval $ac_link) 2>&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } &&
11361 { ac_try='test -s conftest$ac_exeext'
11362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363 (eval $ac_try) 2>&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); }; }; then
11367 am_cv_func_iconv=yes
11369 echo "$as_me: failed program was:" >&5
11370 cat conftest.$ac_ext >&5
11372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11373 if test "$am_cv_func_iconv" != yes; then
11374 am_save_LIBS="$LIBS"
11375 LIBS="$LIBS $LIBICONV"
11376 cat >conftest.$ac_ext <<_ACEOF
11377 #line $LINENO "configure"
11378 #include "confdefs.h"
11379 #include <stdlib.h>
11381 #ifdef F77_DUMMY_MAIN
11382 # ifdef __cplusplus
11385 int F77_DUMMY_MAIN() { return 1; }
11390 iconv_t cd = iconv_open("","");
11391 iconv(cd,NULL,NULL,NULL,NULL);
11397 rm -f conftest.$ac_objext conftest$ac_exeext
11398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11399 (eval $ac_link) 2>&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); } &&
11403 { ac_try='test -s conftest$ac_exeext'
11404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405 (eval $ac_try) 2>&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; }; then
11409 am_cv_lib_iconv=yes
11410 am_cv_func_iconv=yes
11412 echo "$as_me: failed program was:" >&5
11413 cat conftest.$ac_ext >&5
11415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11416 LIBS="$am_save_LIBS"
11420 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11421 echo "${ECHO_T}$am_cv_func_iconv" >&6
11422 if test "$am_cv_func_iconv" = yes; then
11424 cat >>confdefs.h <<\_ACEOF
11425 #define HAVE_ICONV 1
11429 if test "$am_cv_lib_iconv" = yes; then
11430 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11431 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11432 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11433 echo "${ECHO_T}$LIBICONV" >&6
11435 CPPFLAGS="$am_save_CPPFLAGS"
11442 if test "$am_cv_func_iconv" = yes; then
11443 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11444 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11445 if test "${am_cv_proto_iconv+set}" = set; then
11446 echo $ECHO_N "(cached) $ECHO_C" >&6
11449 cat >conftest.$ac_ext <<_ACEOF
11450 #line $LINENO "configure"
11451 #include "confdefs.h"
11453 #include <stdlib.h>
11459 #if defined(__STDC__) || defined(__cplusplus)
11460 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11465 #ifdef F77_DUMMY_MAIN
11466 # ifdef __cplusplus
11469 int F77_DUMMY_MAIN() { return 1; }
11479 rm -f conftest.$ac_objext
11480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11481 (eval $ac_compile) 2>&5
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); } &&
11485 { ac_try='test -s conftest.$ac_objext'
11486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487 (eval $ac_try) 2>&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; }; then
11491 am_cv_proto_iconv_arg1=""
11493 echo "$as_me: failed program was:" >&5
11494 cat conftest.$ac_ext >&5
11495 am_cv_proto_iconv_arg1="const"
11497 rm -f conftest.$ac_objext conftest.$ac_ext
11498 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11501 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11502 echo "$as_me:$LINENO: result: ${ac_t:-
11503 }$am_cv_proto_iconv" >&5
11504 echo "${ECHO_T}${ac_t:-
11505 }$am_cv_proto_iconv" >&6
11507 cat >>confdefs.h <<_ACEOF
11508 #define ICONV_CONST $am_cv_proto_iconv_arg1
11514 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11515 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11516 if test "${am_cv_langinfo_codeset+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11519 cat >conftest.$ac_ext <<_ACEOF
11520 #line $LINENO "configure"
11521 #include "confdefs.h"
11522 #include <langinfo.h>
11523 #ifdef F77_DUMMY_MAIN
11524 # ifdef __cplusplus
11527 int F77_DUMMY_MAIN() { return 1; }
11532 char* cs = nl_langinfo(CODESET);
11537 rm -f conftest.$ac_objext conftest$ac_exeext
11538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11539 (eval $ac_link) 2>&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } &&
11543 { ac_try='test -s conftest$ac_exeext'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; }; then
11549 am_cv_langinfo_codeset=yes
11551 echo "$as_me: failed program was:" >&5
11552 cat conftest.$ac_ext >&5
11553 am_cv_langinfo_codeset=no
11555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11558 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11559 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11560 if test $am_cv_langinfo_codeset = yes; then
11562 cat >>confdefs.h <<\_ACEOF
11563 #define HAVE_LANGINFO_CODESET 1
11568 if test $ac_cv_header_locale_h = yes; then
11570 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11571 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11572 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 cat >conftest.$ac_ext <<_ACEOF
11576 #line $LINENO "configure"
11577 #include "confdefs.h"
11578 #include <locale.h>
11579 #ifdef F77_DUMMY_MAIN
11580 # ifdef __cplusplus
11583 int F77_DUMMY_MAIN() { return 1; }
11593 rm -f conftest.$ac_objext conftest$ac_exeext
11594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11595 (eval $ac_link) 2>&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); } &&
11599 { ac_try='test -s conftest$ac_exeext'
11600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601 (eval $ac_try) 2>&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; }; then
11605 am_cv_val_LC_MESSAGES=yes
11607 echo "$as_me: failed program was:" >&5
11608 cat conftest.$ac_ext >&5
11609 am_cv_val_LC_MESSAGES=no
11611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11613 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11614 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11615 if test $am_cv_val_LC_MESSAGES = yes; then
11617 cat >>confdefs.h <<\_ACEOF
11618 #define HAVE_LC_MESSAGES 1
11625 for ac_prog in bison
11627 # Extract the first word of "$ac_prog", so it can be a program name with args.
11628 set dummy $ac_prog; ac_word=$2
11629 echo "$as_me:$LINENO: checking for $ac_word" >&5
11630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11631 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 if test -n "$INTLBISON"; then
11635 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638 for as_dir in $PATH
11641 test -z "$as_dir" && as_dir=.
11642 for ac_exec_ext in '' $ac_executable_extensions; do
11643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11644 ac_cv_prog_INTLBISON="$ac_prog"
11645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11653 INTLBISON=$ac_cv_prog_INTLBISON
11654 if test -n "$INTLBISON"; then
11655 echo "$as_me:$LINENO: result: $INTLBISON" >&5
11656 echo "${ECHO_T}$INTLBISON" >&6
11658 echo "$as_me:$LINENO: result: no" >&5
11659 echo "${ECHO_T}no" >&6
11662 test -n "$INTLBISON" && break
11665 if test -z "$INTLBISON"; then
11668 echo "$as_me:$LINENO: checking version of bison" >&5
11669 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11670 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11671 case $ac_prog_version in
11672 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11673 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11674 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11675 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11677 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11678 echo "${ECHO_T}$ac_prog_version" >&6
11680 if test $ac_verc_fail = yes; then
11698 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11699 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11700 # Check whether --enable-nls or --disable-nls was given.
11701 if test "${enable_nls+set}" = set; then
11702 enableval="$enable_nls"
11707 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11708 echo "${ECHO_T}$USE_NLS" >&6
11712 BUILD_INCLUDED_LIBINTL=no
11713 USE_INCLUDED_LIBINTL=no
11719 if test "$USE_NLS" = "yes"; then
11720 gt_use_preinstalled_gnugettext=no
11722 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
11723 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
11725 # Check whether --with-included-gettext or --without-included-gettext was given.
11726 if test "${with_included_gettext+set}" = set; then
11727 withval="$with_included_gettext"
11728 nls_cv_force_use_gnu_gettext=$withval
11730 nls_cv_force_use_gnu_gettext=no
11732 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
11733 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
11735 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11736 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11743 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
11744 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
11745 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 cat >conftest.$ac_ext <<_ACEOF
11749 #line $LINENO "configure"
11750 #include "confdefs.h"
11751 #include <libintl.h>
11752 extern int _nl_msg_cat_cntr;
11753 extern int *_nl_domain_bindings;
11754 #ifdef F77_DUMMY_MAIN
11755 # ifdef __cplusplus
11758 int F77_DUMMY_MAIN() { return 1; }
11763 bindtextdomain ("", "");
11764 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
11769 rm -f conftest.$ac_objext conftest$ac_exeext
11770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11771 (eval $ac_link) 2>&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
11775 { ac_try='test -s conftest$ac_exeext'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }; then
11781 gt_cv_func_gnugettext1_libc=yes
11783 echo "$as_me: failed program was:" >&5
11784 cat conftest.$ac_ext >&5
11785 gt_cv_func_gnugettext1_libc=no
11787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11789 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
11790 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
11792 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
11798 acl_save_prefix="$prefix"
11799 prefix="$acl_final_prefix"
11800 acl_save_exec_prefix="$exec_prefix"
11801 exec_prefix="$acl_final_exec_prefix"
11803 eval additional_includedir=\"$includedir\"
11804 eval additional_libdir=\"$libdir\"
11806 exec_prefix="$acl_save_exec_prefix"
11807 prefix="$acl_save_prefix"
11810 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
11811 if test "${with_libintl_prefix+set}" = set; then
11812 withval="$with_libintl_prefix"
11814 if test "X$withval" = "Xno"; then
11817 if test "X$withval" = "X"; then
11819 acl_save_prefix="$prefix"
11820 prefix="$acl_final_prefix"
11821 acl_save_exec_prefix="$exec_prefix"
11822 exec_prefix="$acl_final_exec_prefix"
11824 eval additional_includedir=\"$includedir\"
11825 eval additional_libdir=\"$libdir\"
11827 exec_prefix="$acl_save_exec_prefix"
11828 prefix="$acl_save_prefix"
11831 additional_includedir="$withval/include"
11832 additional_libdir="$withval/lib"
11842 names_already_handled=
11843 names_next_round='intl '
11844 while test -n "$names_next_round"; do
11845 names_this_round="$names_next_round"
11847 for name in $names_this_round; do
11849 for n in $names_already_handled; do
11850 if test "$n" = "$name"; then
11851 already_handled=yes
11855 if test -z "$already_handled"; then
11856 names_already_handled="$names_already_handled $name"
11857 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11858 eval value=\"\$HAVE_LIB$uppername\"
11859 if test -n "$value"; then
11860 if test "$value" = yes; then
11861 eval value=\"\$LIB$uppername\"
11862 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11863 eval value=\"\$LTLIB$uppername\"
11864 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11873 if test $use_additional = yes; then
11874 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11875 found_dir="$additional_libdir"
11876 found_so="$additional_libdir/lib$name.$shlibext"
11877 if test -f "$additional_libdir/lib$name.la"; then
11878 found_la="$additional_libdir/lib$name.la"
11881 if test -f "$additional_libdir/lib$name.$libext"; then
11882 found_dir="$additional_libdir"
11883 found_a="$additional_libdir/lib$name.$libext"
11884 if test -f "$additional_libdir/lib$name.la"; then
11885 found_la="$additional_libdir/lib$name.la"
11890 if test "X$found_dir" = "X"; then
11891 for x in $LDFLAGS $LTLIBINTL; do
11893 acl_save_prefix="$prefix"
11894 prefix="$acl_final_prefix"
11895 acl_save_exec_prefix="$exec_prefix"
11896 exec_prefix="$acl_final_exec_prefix"
11898 exec_prefix="$acl_save_exec_prefix"
11899 prefix="$acl_save_prefix"
11903 dir=`echo "X$x" | sed -e 's/^X-L//'`
11904 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11906 found_so="$dir/lib$name.$shlibext"
11907 if test -f "$dir/lib$name.la"; then
11908 found_la="$dir/lib$name.la"
11911 if test -f "$dir/lib$name.$libext"; then
11913 found_a="$dir/lib$name.$libext"
11914 if test -f "$dir/lib$name.la"; then
11915 found_la="$dir/lib$name.la"
11921 if test "X$found_dir" != "X"; then
11926 if test "X$found_dir" != "X"; then
11927 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11928 if test "X$found_so" != "X"; then
11929 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11930 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11933 for x in $ltrpathdirs; do
11934 if test "X$x" = "X$found_dir"; then
11939 if test -z "$haveit"; then
11940 ltrpathdirs="$ltrpathdirs $found_dir"
11942 if test "$hardcode_direct" = yes; then
11943 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11945 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11946 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11948 for x in $rpathdirs; do
11949 if test "X$x" = "X$found_dir"; then
11954 if test -z "$haveit"; then
11955 rpathdirs="$rpathdirs $found_dir"
11959 for x in $LDFLAGS $LIBINTL; do
11961 acl_save_prefix="$prefix"
11962 prefix="$acl_final_prefix"
11963 acl_save_exec_prefix="$exec_prefix"
11964 exec_prefix="$acl_final_exec_prefix"
11966 exec_prefix="$acl_save_exec_prefix"
11967 prefix="$acl_save_prefix"
11969 if test "X$x" = "X-L$found_dir"; then
11974 if test -z "$haveit"; then
11975 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11977 if test "$hardcode_minus_L" != no; then
11978 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11980 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11986 if test "X$found_a" != "X"; then
11987 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11989 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11992 additional_includedir=
11993 case "$found_dir" in
11995 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11996 additional_includedir="$basedir/include"
11999 if test "X$additional_includedir" != "X"; then
12000 if test "X$additional_includedir" != "X/usr/include"; then
12002 if test "X$additional_includedir" = "X/usr/local/include"; then
12003 if test -n "$GCC"; then
12005 linux*) haveit=yes;;
12009 if test -z "$haveit"; then
12010 for x in $CPPFLAGS $INCINTL; do
12012 acl_save_prefix="$prefix"
12013 prefix="$acl_final_prefix"
12014 acl_save_exec_prefix="$exec_prefix"
12015 exec_prefix="$acl_final_exec_prefix"
12017 exec_prefix="$acl_save_exec_prefix"
12018 prefix="$acl_save_prefix"
12020 if test "X$x" = "X-I$additional_includedir"; then
12025 if test -z "$haveit"; then
12026 if test -d "$additional_includedir"; then
12027 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12033 if test -n "$found_la"; then
12034 save_libdir="$libdir"
12035 case "$found_la" in
12036 */* | *\\*) . "$found_la" ;;
12037 *) . "./$found_la" ;;
12039 libdir="$save_libdir"
12040 for dep in $dependency_libs; do
12043 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12044 if test "X$additional_libdir" != "X/usr/lib"; then
12046 if test "X$additional_libdir" = "X/usr/local/lib"; then
12047 if test -n "$GCC"; then
12049 linux*) haveit=yes;;
12053 if test -z "$haveit"; then
12055 for x in $LDFLAGS $LIBINTL; do
12057 acl_save_prefix="$prefix"
12058 prefix="$acl_final_prefix"
12059 acl_save_exec_prefix="$exec_prefix"
12060 exec_prefix="$acl_final_exec_prefix"
12062 exec_prefix="$acl_save_exec_prefix"
12063 prefix="$acl_save_prefix"
12065 if test "X$x" = "X-L$additional_libdir"; then
12070 if test -z "$haveit"; then
12071 if test -d "$additional_libdir"; then
12072 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12076 for x in $LDFLAGS $LTLIBINTL; do
12078 acl_save_prefix="$prefix"
12079 prefix="$acl_final_prefix"
12080 acl_save_exec_prefix="$exec_prefix"
12081 exec_prefix="$acl_final_exec_prefix"
12083 exec_prefix="$acl_save_exec_prefix"
12084 prefix="$acl_save_prefix"
12086 if test "X$x" = "X-L$additional_libdir"; then
12091 if test -z "$haveit"; then
12092 if test -d "$additional_libdir"; then
12093 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12100 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12101 if test "$enable_rpath" != no; then
12103 for x in $rpathdirs; do
12104 if test "X$x" = "X$dir"; then
12109 if test -z "$haveit"; then
12110 rpathdirs="$rpathdirs $dir"
12113 for x in $ltrpathdirs; do
12114 if test "X$x" = "X$dir"; then
12119 if test -z "$haveit"; then
12120 ltrpathdirs="$ltrpathdirs $dir"
12125 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12128 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12131 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12132 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12138 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12139 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12145 if test "X$rpathdirs" != "X"; then
12146 if test -n "$hardcode_libdir_separator"; then
12148 for found_dir in $rpathdirs; do
12149 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12151 acl_save_libdir="$libdir"
12153 eval flag=\"$hardcode_libdir_flag_spec\"
12154 libdir="$acl_save_libdir"
12155 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12157 for found_dir in $rpathdirs; do
12158 acl_save_libdir="$libdir"
12159 libdir="$found_dir"
12160 eval flag=\"$hardcode_libdir_flag_spec\"
12161 libdir="$acl_save_libdir"
12162 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12166 if test "X$ltrpathdirs" != "X"; then
12167 for found_dir in $ltrpathdirs; do
12168 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12172 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12173 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12174 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 gt_save_CPPFLAGS="$CPPFLAGS"
12178 CPPFLAGS="$CPPFLAGS $INCINTL"
12179 gt_save_LIBS="$LIBS"
12180 LIBS="$LIBS $LIBINTL"
12181 cat >conftest.$ac_ext <<_ACEOF
12182 #line $LINENO "configure"
12183 #include "confdefs.h"
12184 #include <libintl.h>
12185 extern int _nl_msg_cat_cntr;
12190 const char *_nl_expand_alias ();
12191 #ifdef F77_DUMMY_MAIN
12192 # ifdef __cplusplus
12195 int F77_DUMMY_MAIN() { return 1; }
12200 bindtextdomain ("", "");
12201 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
12206 rm -f conftest.$ac_objext conftest$ac_exeext
12207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12208 (eval $ac_link) 2>&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); } &&
12212 { ac_try='test -s conftest$ac_exeext'
12213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214 (eval $ac_try) 2>&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; }; then
12218 gt_cv_func_gnugettext1_libintl=yes
12220 echo "$as_me: failed program was:" >&5
12221 cat conftest.$ac_ext >&5
12222 gt_cv_func_gnugettext1_libintl=no
12224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12225 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12226 LIBS="$LIBS $LIBICONV"
12227 cat >conftest.$ac_ext <<_ACEOF
12228 #line $LINENO "configure"
12229 #include "confdefs.h"
12230 #include <libintl.h>
12231 extern int _nl_msg_cat_cntr;
12236 const char *_nl_expand_alias ();
12237 #ifdef F77_DUMMY_MAIN
12238 # ifdef __cplusplus
12241 int F77_DUMMY_MAIN() { return 1; }
12246 bindtextdomain ("", "");
12247 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
12252 rm -f conftest.$ac_objext conftest$ac_exeext
12253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12254 (eval $ac_link) 2>&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); } &&
12258 { ac_try='test -s conftest$ac_exeext'
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; }; then
12264 LIBINTL="$LIBINTL $LIBICONV"
12265 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12266 gt_cv_func_gnugettext1_libintl=yes
12269 echo "$as_me: failed program was:" >&5
12270 cat conftest.$ac_ext >&5
12272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12274 CPPFLAGS="$gt_save_CPPFLAGS"
12275 LIBS="$gt_save_LIBS"
12277 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12278 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12281 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12282 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12283 && test "$PACKAGE" != gettext; }; then
12284 gt_use_preinstalled_gnugettext=yes
12292 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12293 nls_cv_use_gnu_gettext=yes
12297 if test "$nls_cv_use_gnu_gettext" = "yes"; then
12298 INTLOBJS="\$(GETTOBJS)"
12299 BUILD_INCLUDED_LIBINTL=yes
12300 USE_INCLUDED_LIBINTL=yes
12301 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12302 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12303 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12306 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12307 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12312 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12313 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12315 cat >>confdefs.h <<\_ACEOF
12316 #define ENABLE_NLS 1
12324 if test "$USE_NLS" = "yes"; then
12326 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12327 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12328 echo "$as_me:$LINENO: checking how to link with libintl" >&5
12329 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12330 echo "$as_me:$LINENO: result: $LIBINTL" >&5
12331 echo "${ECHO_T}$LIBINTL" >&6
12333 for element in $INCINTL; do
12335 for x in $CPPFLAGS; do
12337 acl_save_prefix="$prefix"
12338 prefix="$acl_final_prefix"
12339 acl_save_exec_prefix="$exec_prefix"
12340 exec_prefix="$acl_final_exec_prefix"
12342 exec_prefix="$acl_save_exec_prefix"
12343 prefix="$acl_save_prefix"
12345 if test "X$x" = "X$element"; then
12350 if test -z "$haveit"; then
12351 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12358 cat >>confdefs.h <<\_ACEOF
12359 #define HAVE_GETTEXT 1
12363 cat >>confdefs.h <<\_ACEOF
12364 #define HAVE_DCGETTEXT 1
12373 if test "$PACKAGE" = gettext; then
12374 BUILD_INCLUDED_LIBINTL=yes
12382 nls_cv_header_intl=
12383 nls_cv_header_libgt=
12394 INTL_LIBTOOL_SUFFIX_PREFIX=
12398 INTLLIBS="$LIBINTL"
12406 POPT_SOURCE_PATH="`pwd`"
12408 cat >>confdefs.h <<_ACEOF
12409 #define POPT_SOURCE_PATH "$POPT_SOURCE_PATH"
12414 ac_config_files="$ac_config_files Doxyfile Makefile intl/Makefile po/Makefile.in"
12415 cat >confcache <<\_ACEOF
12416 # This file is a shell script that caches the results of configure
12417 # tests run on this system so they can be shared between configure
12418 # scripts and configure runs, see configure's option --config-cache.
12419 # It is not useful on other systems. If it contains results you don't
12420 # want to keep, you may remove or edit it.
12422 # config.status only pays attention to the cache file if you give it
12423 # the --recheck option to rerun configure.
12425 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12426 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12427 # following values.
12431 # The following way of writing the cache mishandles newlines in values,
12432 # but we know of no workaround that is simple, portable, and efficient.
12433 # So, don't put newlines in cache variables' values.
12434 # Ultrix sh set writes to stderr and can't be redirected directly,
12435 # and sets the high bit in the cache file unless we assign to the vars.
12438 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12440 # `set' does not quote correctly, so add quotes (double-quote
12441 # substitution turns \\\\ into \\, and sed turns \\ into \).
12444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12447 # `set' quotes correctly as required by POSIX, so do not add quotes.
12449 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12456 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12458 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12460 if cmp -s $cache_file confcache; then :; else
12461 if test -w $cache_file; then
12462 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12463 cat confcache >$cache_file
12465 echo "not updating unwritable cache $cache_file"
12470 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12471 # Let make expand exec_prefix.
12472 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12474 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12475 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12476 # trailing colons and then remove the whole line if VPATH becomes empty
12477 # (actually we leave an empty line to preserve line numbers).
12478 if test "x$srcdir" = x.; then
12479 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12480 s/:*\$(srcdir):*/:/;
12481 s/:*\${srcdir}:*/:/;
12483 s/^\([^=]*=[ ]*\):*/\1/;
12489 DEFS=-DHAVE_CONFIG_H
12491 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12492 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12493 Usually this means the macro was only invoked conditionally." >&5
12494 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12495 Usually this means the macro was only invoked conditionally." >&2;}
12496 { (exit 1); exit 1; }; }
12499 : ${CONFIG_STATUS=./config.status}
12500 ac_clean_files_save=$ac_clean_files
12501 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12502 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12503 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12504 cat >$CONFIG_STATUS <<_ACEOF
12506 # Generated by $as_me.
12507 # Run this file to recreate the current configuration.
12508 # Compiler output produced by configure, useful for debugging
12509 # configure, is in config.log if it exists.
12512 SHELL=\${CONFIG_SHELL-$SHELL}
12515 cat >>$CONFIG_STATUS <<\_ACEOF
12517 ## --------------------- ##
12518 ## M4sh Initialization. ##
12519 ## --------------------- ##
12521 # Be Bourne compatible
12522 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12525 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12530 # Support unset when possible.
12531 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12537 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
12538 { $as_unset LANG || test "${LANG+set}" != set; } ||
12539 { LANG=C; export LANG; }
12540 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
12541 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
12542 { LC_ALL=C; export LC_ALL; }
12543 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
12544 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
12545 { LC_TIME=C; export LC_TIME; }
12546 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
12547 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
12548 { LC_CTYPE=C; export LC_CTYPE; }
12549 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
12550 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
12551 { LANGUAGE=C; export LANGUAGE; }
12552 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
12553 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
12554 { LC_COLLATE=C; export LC_COLLATE; }
12555 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
12556 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
12557 { LC_NUMERIC=C; export LC_NUMERIC; }
12558 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
12559 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
12560 { LC_MESSAGES=C; export LC_MESSAGES; }
12563 # Name of the executable.
12564 as_me=`(basename "$0") 2>/dev/null ||
12565 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12566 X"$0" : 'X\(//\)$' \| \
12567 X"$0" : 'X\(/\)$' \| \
12568 . : '\(.\)' 2>/dev/null ||
12570 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12571 /^X\/\(\/\/\)$/{ s//\1/; q; }
12572 /^X\/\(\/\).*/{ s//\1/; q; }
12575 # PATH needs CR, and LINENO needs CR and PATH.
12576 # Avoid depending upon Character Ranges.
12577 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12578 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12579 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12580 as_cr_digits='0123456789'
12581 as_cr_alnum=$as_cr_Letters$as_cr_digits
12583 # The user is always right.
12584 if test "${PATH_SEPARATOR+set}" != set; then
12585 echo "#! /bin/sh" >conftest.sh
12586 echo "exit 0" >>conftest.sh
12587 chmod +x conftest.sh
12588 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
12597 as_lineno_1=$LINENO
12598 as_lineno_2=$LINENO
12599 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12600 test "x$as_lineno_1" != "x$as_lineno_2" &&
12601 test "x$as_lineno_3" = "x$as_lineno_2" || {
12602 # Find who we are. Look in the path if we contain no path at all
12605 *[\\/]* ) as_myself=$0 ;;
12606 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12607 for as_dir in $PATH
12610 test -z "$as_dir" && as_dir=.
12611 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12616 # We did not find ourselves, most probably we were run as `sh COMMAND'
12617 # in which case we are not to be found in the path.
12618 if test "x$as_myself" = x; then
12621 if test ! -f "$as_myself"; then
12622 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12623 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12624 { (exit 1); exit 1; }; }
12626 case $CONFIG_SHELL in
12628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12632 test -z "$as_dir" && as_dir=.
12633 for as_base in sh bash ksh sh5; do
12636 if ("$as_dir/$as_base" -c '
12637 as_lineno_1=$LINENO
12638 as_lineno_2=$LINENO
12639 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12640 test "x$as_lineno_1" != "x$as_lineno_2" &&
12641 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12642 CONFIG_SHELL=$as_dir/$as_base
12643 export CONFIG_SHELL
12644 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12652 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12653 # uniformly replaced by the line number. The first 'sed' inserts a
12654 # line-number line before each line; the second 'sed' does the real
12655 # work. The second script uses 'N' to pair each line-number line
12656 # with the numbered line, and appends trailing '-' during
12657 # substitution so that $LINENO is not a special case at line end.
12658 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12659 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12660 sed '=' <$as_myself |
12665 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12668 s,^['$as_cr_digits']*\n,,
12669 ' >$as_me.lineno &&
12670 chmod +x $as_me.lineno ||
12671 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12672 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12673 { (exit 1); exit 1; }; }
12675 # Don't try to exec as it changes $[0], causing all sort of problems
12676 # (the dirname of $[0] is not the place where we might find the
12677 # original and so on. Autoconf is especially sensible to this).
12679 # Exit status is that of the last command.
12684 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12685 *c*,-n*) ECHO_N= ECHO_C='
12687 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12688 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12691 if expr a : '\(a\)' >/dev/null 2>&1; then
12697 rm -f conf$$ conf$$.exe conf$$.file
12699 if ln -s conf$$.file conf$$ 2>/dev/null; then
12700 # We could just check for DJGPP; but this test a) works b) is more generic
12701 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12702 if test -f conf$$.exe; then
12703 # Don't use ln at all; we don't have any links
12708 elif ln conf$$.file conf$$ 2>/dev/null; then
12713 rm -f conf$$ conf$$.exe conf$$.file
12715 as_executable_p="test -f"
12717 # Sed expression to map a string onto a valid CPP name.
12718 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12720 # Sed expression to map a string onto a valid variable name.
12721 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12725 # We need space, tab and new line, in precisely that order.
12731 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
12735 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12736 # report actual input values of CONFIG_FILES etc. instead of their
12737 # values after options handling. Logging --version etc. is OK.
12741 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12742 ## Running $as_me. ##
12747 This file was extended by $as_me, which was
12748 generated by GNU Autoconf 2.53. Invocation command line was
12750 CONFIG_FILES = $CONFIG_FILES
12751 CONFIG_HEADERS = $CONFIG_HEADERS
12752 CONFIG_LINKS = $CONFIG_LINKS
12753 CONFIG_COMMANDS = $CONFIG_COMMANDS
12757 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12761 # Files that config.status was made for.
12762 if test -n "$ac_config_files"; then
12763 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12766 if test -n "$ac_config_headers"; then
12767 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12770 if test -n "$ac_config_links"; then
12771 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12774 if test -n "$ac_config_commands"; then
12775 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12778 cat >>$CONFIG_STATUS <<\_ACEOF
12781 \`$as_me' instantiates files from templates according to the
12782 current configuration.
12784 Usage: $0 [OPTIONS] [FILE]...
12786 -h, --help print this help, then exit
12787 -V, --version print version number, then exit
12788 -d, --debug don't remove temporary files
12789 --recheck update $as_me by reconfiguring in the same conditions
12790 --file=FILE[:TEMPLATE]
12791 instantiate the configuration file FILE
12792 --header=FILE[:TEMPLATE]
12793 instantiate the configuration header FILE
12795 Configuration files:
12798 Configuration headers:
12801 Configuration commands:
12804 Report bugs to <bug-autoconf@gnu.org>."
12807 cat >>$CONFIG_STATUS <<_ACEOF
12810 configured by $0, generated by GNU Autoconf 2.53,
12811 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12813 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12814 Free Software Foundation, Inc.
12815 This config.status script is free software; the Free Software Foundation
12816 gives unlimited permission to copy, distribute and modify it."
12821 cat >>$CONFIG_STATUS <<\_ACEOF
12822 # If no file are specified by the user, then we need to provide default
12823 # value. By we need to know if files were specified by the user.
12829 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12830 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12832 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
12836 *) # This is not an option, so the user has probably given explicit
12838 ac_need_defaults=false;;
12842 # Handling of the options.
12844 cat >>$CONFIG_STATUS <<_ACEOF
12845 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12846 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12847 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12849 cat >>$CONFIG_STATUS <<\_ACEOF
12850 --version | --vers* | -V )
12851 echo "$ac_cs_version"; exit 0 ;;
12853 # Conflict between --help and --header
12854 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12855 Try \`$0 --help' for more information." >&5
12856 echo "$as_me: error: ambiguous option: $1
12857 Try \`$0 --help' for more information." >&2;}
12858 { (exit 1); exit 1; }; };;
12859 --help | --hel | -h )
12860 echo "$ac_cs_usage"; exit 0 ;;
12861 --debug | --d* | -d )
12863 --file | --fil | --fi | --f )
12865 CONFIG_FILES="$CONFIG_FILES $1"
12866 ac_need_defaults=false;;
12867 --header | --heade | --head | --hea )
12869 CONFIG_HEADERS="$CONFIG_HEADERS $1"
12870 ac_need_defaults=false;;
12872 # This is an error.
12873 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12874 Try \`$0 --help' for more information." >&5
12875 echo "$as_me: error: unrecognized option: $1
12876 Try \`$0 --help' for more information." >&2;}
12877 { (exit 1); exit 1; }; } ;;
12879 *) ac_config_targets="$ac_config_targets $1" ;;
12887 cat >>$CONFIG_STATUS <<_ACEOF
12889 # INIT-COMMANDS section.
12892 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12893 # Capture the value of obsolete $ALL_LINGUAS because we need it to compute
12894 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12896 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
12897 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12898 LINGUAS="${LINGUAS-%UNSET%}"
12905 cat >>$CONFIG_STATUS <<\_ACEOF
12906 for ac_config_target in $ac_config_targets
12908 case "$ac_config_target" in
12909 # Handling of arguments.
12910 "Doxyfile" ) CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
12911 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12912 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
12913 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12914 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12915 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12916 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12917 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12918 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12919 { (exit 1); exit 1; }; };;
12923 # If the user did not use the arguments to specify the items to instantiate,
12924 # then the envvar interface is used. Set only those that are not.
12925 # We use the long form for the default assignment because of an extremely
12926 # bizarre bug on SunOS 4.1.3.
12927 if $ac_need_defaults; then
12928 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12929 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12930 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12933 # Create a temporary directory, and hook for its removal unless debugging.
12936 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12937 trap '{ (exit 1); exit 1; }' 1 2 13 15
12940 # Create a (secure) tmp directory for tmp files.
12943 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12944 test -n "$tmp" && test -d "$tmp"
12947 tmp=$TMPDIR/cs$$-$RANDOM
12948 (umask 077 && mkdir $tmp)
12951 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12952 { (exit 1); exit 1; }
12957 cat >>$CONFIG_STATUS <<_ACEOF
12960 # CONFIG_FILES section.
12963 # No need to generate the scripts if there are no CONFIG_FILES.
12964 # This happens for instance when ./config.status config.h
12965 if test -n "\$CONFIG_FILES"; then
12966 # Protect against being on the right side of a sed subst in config.status.
12967 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12968 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12969 s,@SHELL@,$SHELL,;t t
12970 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12971 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12972 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12973 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12974 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12975 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12976 s,@exec_prefix@,$exec_prefix,;t t
12977 s,@prefix@,$prefix,;t t
12978 s,@program_transform_name@,$program_transform_name,;t t
12979 s,@bindir@,$bindir,;t t
12980 s,@sbindir@,$sbindir,;t t
12981 s,@libexecdir@,$libexecdir,;t t
12982 s,@datadir@,$datadir,;t t
12983 s,@sysconfdir@,$sysconfdir,;t t
12984 s,@sharedstatedir@,$sharedstatedir,;t t
12985 s,@localstatedir@,$localstatedir,;t t
12986 s,@libdir@,$libdir,;t t
12987 s,@includedir@,$includedir,;t t
12988 s,@oldincludedir@,$oldincludedir,;t t
12989 s,@infodir@,$infodir,;t t
12990 s,@mandir@,$mandir,;t t
12991 s,@build_alias@,$build_alias,;t t
12992 s,@host_alias@,$host_alias,;t t
12993 s,@target_alias@,$target_alias,;t t
12994 s,@DEFS@,$DEFS,;t t
12995 s,@ECHO_C@,$ECHO_C,;t t
12996 s,@ECHO_N@,$ECHO_N,;t t
12997 s,@ECHO_T@,$ECHO_T,;t t
12998 s,@LIBS@,$LIBS,;t t
12999 s,@build@,$build,;t t
13000 s,@build_cpu@,$build_cpu,;t t
13001 s,@build_vendor@,$build_vendor,;t t
13002 s,@build_os@,$build_os,;t t
13003 s,@host@,$host,;t t
13004 s,@host_cpu@,$host_cpu,;t t
13005 s,@host_vendor@,$host_vendor,;t t
13006 s,@host_os@,$host_os,;t t
13007 s,@target@,$target,;t t
13008 s,@target_cpu@,$target_cpu,;t t
13009 s,@target_vendor@,$target_vendor,;t t
13010 s,@target_os@,$target_os,;t t
13011 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13012 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13013 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13014 s,@PACKAGE@,$PACKAGE,;t t
13015 s,@VERSION@,$VERSION,;t t
13016 s,@ACLOCAL@,$ACLOCAL,;t t
13017 s,@AUTOCONF@,$AUTOCONF,;t t
13018 s,@AUTOMAKE@,$AUTOMAKE,;t t
13019 s,@AUTOHEADER@,$AUTOHEADER,;t t
13020 s,@MAKEINFO@,$MAKEINFO,;t t
13021 s,@AMTAR@,$AMTAR,;t t
13022 s,@install_sh@,$install_sh,;t t
13023 s,@STRIP@,$STRIP,;t t
13024 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13025 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13027 s,@SET_MAKE@,$SET_MAKE,;t t
13029 s,@CFLAGS@,$CFLAGS,;t t
13030 s,@LDFLAGS@,$LDFLAGS,;t t
13031 s,@CPPFLAGS@,$CPPFLAGS,;t t
13032 s,@ac_ct_CC@,$ac_ct_CC,;t t
13033 s,@EXEEXT@,$EXEEXT,;t t
13034 s,@OBJEXT@,$OBJEXT,;t t
13035 s,@DEPDIR@,$DEPDIR,;t t
13036 s,@am__include@,$am__include,;t t
13037 s,@am__quote@,$am__quote,;t t
13038 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13039 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13040 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13041 s,@CCDEPMODE@,$CCDEPMODE,;t t
13044 s,@ANSI2KNR@,$ANSI2KNR,;t t
13045 s,@LN_S@,$LN_S,;t t
13046 s,@ECHO@,$ECHO,;t t
13047 s,@RANLIB@,$RANLIB,;t t
13048 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13049 s,@LIBTOOL@,$LIBTOOL,;t t
13050 s,@TARGET@,$TARGET,;t t
13051 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13052 s,@MSGFMT@,$MSGFMT,;t t
13053 s,@GMSGFMT@,$GMSGFMT,;t t
13054 s,@XGETTEXT@,$XGETTEXT,;t t
13055 s,@MSGMERGE@,$MSGMERGE,;t t
13056 s,@ALLOCA@,$ALLOCA,;t t
13057 s,@GLIBC21@,$GLIBC21,;t t
13058 s,@LIBICONV@,$LIBICONV,;t t
13059 s,@LTLIBICONV@,$LTLIBICONV,;t t
13060 s,@INTLBISON@,$INTLBISON,;t t
13061 s,@USE_NLS@,$USE_NLS,;t t
13062 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
13063 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
13064 s,@CATOBJEXT@,$CATOBJEXT,;t t
13065 s,@INTLOBJS@,$INTLOBJS,;t t
13066 s,@DATADIRNAME@,$DATADIRNAME,;t t
13067 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13068 s,@GENCAT@,$GENCAT,;t t
13069 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
13070 s,@INTLLIBS@,$INTLLIBS,;t t
13071 s,@LIBINTL@,$LIBINTL,;t t
13072 s,@LTLIBINTL@,$LTLIBINTL,;t t
13073 s,@POSUB@,$POSUB,;t t
13074 s,@POPT_SOURCE_PATH@,$POPT_SOURCE_PATH,;t t
13079 cat >>$CONFIG_STATUS <<\_ACEOF
13080 # Split the substitutions into bite-sized pieces for seds with
13081 # small command number limits, like on Digital OSF/1 and HP-UX.
13082 ac_max_sed_lines=48
13083 ac_sed_frag=1 # Number of current file.
13084 ac_beg=1 # First line for current file.
13085 ac_end=$ac_max_sed_lines # Line after last line for current file.
13088 while $ac_more_lines; do
13089 if test $ac_beg -gt 1; then
13090 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13092 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13094 if test ! -s $tmp/subs.frag; then
13095 ac_more_lines=false
13097 # The purpose of the label and of the branching condition is to
13098 # speed up the sed processing (if there are no `@' at all, there
13099 # is no need to browse any of the substitutions).
13100 # These are the two extra sed commands mentioned above.
13102 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13103 if test -z "$ac_sed_cmds"; then
13104 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13106 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13108 ac_sed_frag=`expr $ac_sed_frag + 1`
13110 ac_end=`expr $ac_end + $ac_max_sed_lines`
13113 if test -z "$ac_sed_cmds"; then
13116 fi # test -n "$CONFIG_FILES"
13119 cat >>$CONFIG_STATUS <<\_ACEOF
13120 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13121 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13123 - | *:- | *:-:* ) # input from stdin
13125 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13126 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13127 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13128 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13129 * ) ac_file_in=$ac_file.in ;;
13132 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13133 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13134 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13135 X"$ac_file" : 'X\(//\)[^/]' \| \
13136 X"$ac_file" : 'X\(//\)$' \| \
13137 X"$ac_file" : 'X\(/\)' \| \
13138 . : '\(.\)' 2>/dev/null ||
13140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13141 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13142 /^X\(\/\/\)$/{ s//\1/; q; }
13143 /^X\(\/\).*/{ s//\1/; q; }
13145 { case "$ac_dir" in
13146 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13150 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13151 case $as_mkdir_dir in
13152 # Skip DOS drivespec
13153 ?:) as_incr_dir=$as_mkdir_dir ;;
13155 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13156 test -d "$as_incr_dir" ||
13157 mkdir "$as_incr_dir" ||
13158 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
13159 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
13160 { (exit 1); exit 1; }; }
13167 if test "$ac_dir" != .; then
13168 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13169 # A "../" for each directory in $ac_dir_suffix.
13170 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13172 ac_dir_suffix= ac_top_builddir=
13176 .) # No --srcdir option. We are building in place.
13178 if test -z "$ac_top_builddir"; then
13181 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13183 [\\/]* | ?:[\\/]* ) # Absolute path.
13184 ac_srcdir=$srcdir$ac_dir_suffix;
13185 ac_top_srcdir=$srcdir ;;
13186 *) # Relative path.
13187 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13188 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13190 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13192 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13193 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
13194 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13195 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13199 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13200 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13203 if test x"$ac_file" != x-; then
13204 { echo "$as_me:$LINENO: creating $ac_file" >&5
13205 echo "$as_me: creating $ac_file" >&6;}
13208 # Let's still pretend it is `configure' which instantiates (i.e., don't
13209 # use $as_me), people would be surprised to read:
13210 # /* config.h. Generated by config.status. */
13211 if test x"$ac_file" = x-; then
13214 configure_input="$ac_file. "
13216 configure_input=$configure_input"Generated from `echo $ac_file_in |
13217 sed 's,.*/,,'` by configure."
13219 # First look for the input files in the build tree, otherwise in the
13221 ac_file_inputs=`IFS=:
13222 for f in $ac_file_in; do
13224 -) echo $tmp/stdin ;;
13226 # Absolute (can't be DOS-style, as IFS=:)
13227 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13228 echo "$as_me: error: cannot find input file: $f" >&2;}
13229 { (exit 1); exit 1; }; }
13232 if test -f "$f"; then
13235 elif test -f "$srcdir/$f"; then
13240 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13241 echo "$as_me: error: cannot find input file: $f" >&2;}
13242 { (exit 1); exit 1; }; }
13245 done` || { (exit 1); exit 1; }
13247 cat >>$CONFIG_STATUS <<_ACEOF
13251 cat >>$CONFIG_STATUS <<\_ACEOF
13253 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13254 s,@configure_input@,$configure_input,;t t
13255 s,@srcdir@,$ac_srcdir,;t t
13256 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13257 s,@top_srcdir@,$ac_top_srcdir,;t t
13258 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13259 s,@builddir@,$ac_builddir,;t t
13260 s,@abs_builddir@,$ac_abs_builddir,;t t
13261 s,@top_builddir@,$ac_top_builddir,;t t
13262 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13263 s,@INSTALL@,$ac_INSTALL,;t t
13264 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13266 if test x"$ac_file" != x-; then
13267 mv $tmp/out $ac_file
13275 cat >>$CONFIG_STATUS <<\_ACEOF
13278 # CONFIG_HEADER section.
13281 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13282 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13284 # ac_d sets the value in "#define NAME VALUE" lines.
13285 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13286 ac_dB='[ ].*$,\1#\2'
13289 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13290 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13291 ac_uB='$,\1#\2define\3'
13295 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13296 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13298 - | *:- | *:-:* ) # input from stdin
13300 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13301 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13302 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13303 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13304 * ) ac_file_in=$ac_file.in ;;
13307 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13308 echo "$as_me: creating $ac_file" >&6;}
13310 # First look for the input files in the build tree, otherwise in the
13312 ac_file_inputs=`IFS=:
13313 for f in $ac_file_in; do
13315 -) echo $tmp/stdin ;;
13317 # Absolute (can't be DOS-style, as IFS=:)
13318 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13319 echo "$as_me: error: cannot find input file: $f" >&2;}
13320 { (exit 1); exit 1; }; }
13323 if test -f "$f"; then
13326 elif test -f "$srcdir/$f"; then
13331 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13332 echo "$as_me: error: cannot find input file: $f" >&2;}
13333 { (exit 1); exit 1; }; }
13336 done` || { (exit 1); exit 1; }
13337 # Remove the trailing spaces.
13338 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13342 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13343 # `conftest.undefs', that substitutes the proper values into
13344 # config.h.in to produce config.h. The first handles `#define'
13345 # templates, and the second `#undef' templates.
13346 # And first: Protect against being on the right side of a sed subst in
13347 # config.status. Protect against being in an unquoted here document
13348 # in config.status.
13349 rm -f conftest.defines conftest.undefs
13350 # Using a here document instead of a string reduces the quoting nightmare.
13351 # Putting comments in sed scripts is not portable.
13353 # `end' is used to avoid that the second main sed command (meant for
13354 # 0-ary CPP macros) applies to n-ary macro definitions.
13355 # See the Autoconf documentation for `clear'.
13356 cat >confdef2sed.sed <<\_ACEOF
13361 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13363 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13366 # If some macros were called several times there might be several times
13367 # the same #defines, which is useless. Nevertheless, we may not want to
13368 # sort them, since we want the *last* AC-DEFINE to be honored.
13369 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13370 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13371 rm -f confdef2sed.sed
13373 # This sed command replaces #undef with comments. This is necessary, for
13374 # example, in the case of _POSIX_SOURCE, which is predefined and required
13375 # on some systems where configure will not decide to define it.
13376 cat >>conftest.undefs <<\_ACEOF
13377 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13380 # Break up conftest.defines because some shells have a limit on the size
13381 # of here documents, and old seds have small limits too (100 cmds).
13382 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13383 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13384 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13385 echo ' :' >>$CONFIG_STATUS
13386 rm -f conftest.tail
13387 while grep . conftest.defines >/dev/null
13389 # Write a limited-size here document to $tmp/defines.sed.
13390 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13391 # Speed up: don't consider the non `#define' lines.
13392 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13393 # Work around the forget-to-reset-the-flag bug.
13394 echo 't clr' >>$CONFIG_STATUS
13395 echo ': clr' >>$CONFIG_STATUS
13396 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13398 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13400 mv $tmp/out $tmp/in
13402 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13403 rm -f conftest.defines
13404 mv conftest.tail conftest.defines
13406 rm -f conftest.defines
13407 echo ' fi # egrep' >>$CONFIG_STATUS
13408 echo >>$CONFIG_STATUS
13410 # Break up conftest.undefs because some shells have a limit on the size
13411 # of here documents, and old seds have small limits too (100 cmds).
13412 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13413 rm -f conftest.tail
13414 while grep . conftest.undefs >/dev/null
13416 # Write a limited-size here document to $tmp/undefs.sed.
13417 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13418 # Speed up: don't consider the non `#undef'
13419 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13420 # Work around the forget-to-reset-the-flag bug.
13421 echo 't clr' >>$CONFIG_STATUS
13422 echo ': clr' >>$CONFIG_STATUS
13423 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13425 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13427 mv $tmp/out $tmp/in
13429 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13430 rm -f conftest.undefs
13431 mv conftest.tail conftest.undefs
13433 rm -f conftest.undefs
13435 cat >>$CONFIG_STATUS <<\_ACEOF
13436 # Let's still pretend it is `configure' which instantiates (i.e., don't
13437 # use $as_me), people would be surprised to read:
13438 # /* config.h. Generated by config.status. */
13439 if test x"$ac_file" = x-; then
13440 echo "/* Generated by configure. */" >$tmp/config.h
13442 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13444 cat $tmp/in >>$tmp/config.h
13446 if test x"$ac_file" != x-; then
13447 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
13448 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13449 echo "$as_me: $ac_file is unchanged" >&6;}
13451 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13452 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13453 X"$ac_file" : 'X\(//\)[^/]' \| \
13454 X"$ac_file" : 'X\(//\)$' \| \
13455 X"$ac_file" : 'X\(/\)' \| \
13456 . : '\(.\)' 2>/dev/null ||
13458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13459 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13460 /^X\(\/\/\)$/{ s//\1/; q; }
13461 /^X\(\/\).*/{ s//\1/; q; }
13463 { case "$ac_dir" in
13464 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13468 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13469 case $as_mkdir_dir in
13470 # Skip DOS drivespec
13471 ?:) as_incr_dir=$as_mkdir_dir ;;
13473 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13474 test -d "$as_incr_dir" ||
13475 mkdir "$as_incr_dir" ||
13476 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
13477 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
13478 { (exit 1); exit 1; }; }
13484 mv $tmp/config.h $ac_file
13488 rm -f $tmp/config.h
13490 # Run the commands associated with the file.
13492 config.h ) # update the timestamp
13493 echo 'timestamp for config.h' >"./stamp-h1"
13498 cat >>$CONFIG_STATUS <<\_ACEOF
13501 # CONFIG_COMMANDS section.
13503 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13504 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13505 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13506 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13507 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13508 X"$ac_dest" : 'X\(//\)[^/]' \| \
13509 X"$ac_dest" : 'X\(//\)$' \| \
13510 X"$ac_dest" : 'X\(/\)' \| \
13511 . : '\(.\)' 2>/dev/null ||
13513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13514 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13515 /^X\(\/\/\)$/{ s//\1/; q; }
13516 /^X\(\/\).*/{ s//\1/; q; }
13520 if test "$ac_dir" != .; then
13521 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13522 # A "../" for each directory in $ac_dir_suffix.
13523 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13525 ac_dir_suffix= ac_top_builddir=
13529 .) # No --srcdir option. We are building in place.
13531 if test -z "$ac_top_builddir"; then
13534 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13536 [\\/]* | ?:[\\/]* ) # Absolute path.
13537 ac_srcdir=$srcdir$ac_dir_suffix;
13538 ac_top_srcdir=$srcdir ;;
13539 *) # Relative path.
13540 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13541 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13543 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13545 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13546 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
13547 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13548 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13551 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13552 echo "$as_me: executing $ac_dest commands" >&6;}
13554 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13555 # Strip MF so we end up with the name of the file.
13556 mf=`echo "$mf" | sed -e 's/:.*$//'`
13557 # Check whether this is an Automake generated Makefile or not.
13558 # We used to match only the files named `Makefile.in', but
13559 # some people rename them; so instead we look at the file content.
13560 # Grep'ing the first line is not enough: some people post-process
13561 # each Makefile.in and add a new line on top of each file to say so.
13562 # So let's grep whole file.
13563 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13564 dirpart=`(dirname "$mf") 2>/dev/null ||
13565 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13566 X"$mf" : 'X\(//\)[^/]' \| \
13567 X"$mf" : 'X\(//\)$' \| \
13568 X"$mf" : 'X\(/\)' \| \
13569 . : '\(.\)' 2>/dev/null ||
13571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13573 /^X\(\/\/\)$/{ s//\1/; q; }
13574 /^X\(\/\).*/{ s//\1/; q; }
13579 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
13580 # Extract the definition of DEP_FILES from the Makefile without
13582 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
13583 test -z "$DEPDIR" && continue
13584 # When using ansi2knr, U may be empty or an underscore; expand it
13585 U=`sed -n -e '/^U = / s///p' < "$mf"`
13586 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
13587 # We invoke sed twice because it is the simplest approach to
13588 # changing $(DEPDIR) to its actual value in the expansion.
13589 for file in `sed -n -e '
13590 /^DEP_FILES = .*\\\\$/ {
13599 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
13600 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13601 # Make sure the directory exists.
13602 test -f "$dirpart/$file" && continue
13603 fdir=`(dirname "$file") 2>/dev/null ||
13604 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13605 X"$file" : 'X\(//\)[^/]' \| \
13606 X"$file" : 'X\(//\)$' \| \
13607 X"$file" : 'X\(/\)' \| \
13608 . : '\(.\)' 2>/dev/null ||
13610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13611 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13612 /^X\(\/\/\)$/{ s//\1/; q; }
13613 /^X\(\/\).*/{ s//\1/; q; }
13615 { case $dirpart/$fdir in
13616 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13619 as_dummy=$dirpart/$fdir
13620 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13621 case $as_mkdir_dir in
13622 # Skip DOS drivespec
13623 ?:) as_incr_dir=$as_mkdir_dir ;;
13625 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13626 test -d "$as_incr_dir" ||
13627 mkdir "$as_incr_dir" ||
13628 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
13629 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
13630 { (exit 1); exit 1; }; }
13635 # echo "creating $dirpart/$file"
13636 echo '# dummy' > "$dirpart/$file"
13641 for ac_file in $CONFIG_FILES; do
13642 # Support "outfile[:infile[:infile...]]"
13644 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13646 # PO directories have a Makefile.in generated from Makefile.in.in.
13647 case "$ac_file" in */Makefile.in)
13648 # Adjust a relative srcdir.
13649 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13650 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13651 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13652 # In autoconf-2.13 it is called $ac_given_srcdir.
13653 # In autoconf-2.50 it is called $srcdir.
13654 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13655 case "$ac_given_srcdir" in
13656 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13657 /*) top_srcdir="$ac_given_srcdir" ;;
13658 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13660 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13661 rm -f "$ac_dir/POTFILES"
13662 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13663 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13664 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13665 # on $ac_dir but don't depend on user-specified configuration
13667 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13668 # The LINGUAS file contains the set of available languages.
13669 if test -n "$ALL_LINGUAS"; then
13670 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13672 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13673 # Hide the ALL_LINGUAS assigment from automake.
13674 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13676 case "$ac_given_srcdir" in
13678 *) srcdirpre='$(srcdir)/' ;;
13684 for lang in $ALL_LINGUAS; do
13685 POFILES="$POFILES $srcdirpre$lang.po"
13686 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13687 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13688 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13690 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13691 # environment variable.
13693 if test -n "$ALL_LINGUAS"; then
13694 for presentlang in $ALL_LINGUAS; do
13696 if test "%UNSET%" != "$LINGUAS"; then
13697 desiredlanguages="$LINGUAS"
13699 desiredlanguages="$ALL_LINGUAS"
13701 for desiredlang in $desiredlanguages; do
13702 # Use the presentlang catalog if desiredlang is
13703 # a. equal to presentlang, or
13704 # b. a variant of presentlang (because in this case,
13705 # presentlang can be used as a fallback for messages
13706 # which are not translated in the desiredlang catalog).
13707 case "$desiredlang" in
13708 "$presentlang"*) useit=yes;;
13711 if test $useit = yes; then
13712 INST_LINGUAS="$INST_LINGUAS $presentlang"
13717 if test -n "$INST_LINGUAS"; then
13718 for lang in $INST_LINGUAS; do
13719 CATALOGS="$CATALOGS $lang.gmo"
13722 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13723 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
13724 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13725 if test -f "$f"; then
13727 *.orig | *.bak | *~) ;;
13728 *) cat "$f" >> "$ac_dir/Makefile" ;;
13740 cat >>$CONFIG_STATUS <<\_ACEOF
13742 { (exit 0); exit 0; }
13744 chmod +x $CONFIG_STATUS
13745 ac_clean_files=$ac_clean_files_save
13748 # configure is writing to config.log, and then calls config.status.
13749 # config.status does its own redirection, appending to config.log.
13750 # Unfortunately, on DOS this fails, as config.log is still kept open
13751 # by configure, so config.status won't be able to write to it; its
13752 # output is simply discarded. So we exec the FD to /dev/null,
13753 # effectively closing config.log, so it can be properly (re)opened and
13754 # appended to by config.status. When coming back to configure, we
13755 # need to make the FD available again.
13756 if test "$no_create" != yes; then
13759 $SHELL $CONFIG_STATUS || ac_cs_success=false
13761 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13762 # would make configure fail if this is the last instruction.
13763 $ac_cs_success || { (exit 1); exit 1; }