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 if expr a : '\(a\)' >/dev/null 2>&1; then
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 s,^['$as_cr_digits']*\n,,
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
177 # Exit status is that of the last command.
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 if expr a : '\(a\)' >/dev/null 2>&1; then
195 rm -f conf$$ conf$$.exe conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
206 elif ln conf$$.file conf$$ 2>/dev/null; then
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
223 # We need space, tab and new line, in precisely that order.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
242 ac_default_prefix=/usr/local
247 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
261 ac_unique_file="README"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
266 # include <sys/types.h>
269 # include <sys/stat.h>
280 # if !STDC_HEADERS && HAVE_MEMORY_H
286 # include <strings.h>
289 # include <inttypes.h>
299 ac_subdirs_all="$ac_subdirs_all $targ_subdirs"
301 # Initialize some variables set by options.
303 ac_init_version=false
304 # The variables have the same names as the options, with
305 # dashes changed to underlines.
313 program_transform_name=s,x,x,
321 # Installation directory options.
322 # These are left unexpanded so users can "make install exec_prefix=/foo"
323 # and all the variables that are supposed to be based on exec_prefix
324 # by default will actually change.
325 # Use braces instead of parens because sh, perl, etc. also accept them.
326 bindir='${exec_prefix}/bin'
327 sbindir='${exec_prefix}/sbin'
328 libexecdir='${exec_prefix}/libexec'
329 datadir='${prefix}/share'
330 sysconfdir='${prefix}/etc'
331 sharedstatedir='${prefix}/com'
332 localstatedir='${prefix}/var'
333 libdir='${exec_prefix}/lib'
334 includedir='${prefix}/include'
335 oldincludedir='/usr/include'
336 infodir='${prefix}/info'
337 mandir='${prefix}/man'
342 # If the previous option needs an argument, assign it.
343 if test -n "$ac_prev"; then
344 eval "$ac_prev=\$ac_option"
349 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
351 # Accept the important Cygnus configure options, so we can diagnose typos.
355 -bindir | --bindir | --bindi | --bind | --bin | --bi)
357 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
360 -build | --build | --buil | --bui | --bu)
361 ac_prev=build_alias ;;
362 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
363 build_alias=$ac_optarg ;;
365 -cache-file | --cache-file | --cache-fil | --cache-fi \
366 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
367 ac_prev=cache_file ;;
368 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
369 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
370 cache_file=$ac_optarg ;;
373 cache_file=config.cache ;;
375 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
377 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
379 datadir=$ac_optarg ;;
381 -disable-* | --disable-*)
382 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
383 # Reject names that are not valid shell variable names.
384 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
385 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
386 { (exit 1); exit 1; }; }
387 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
388 eval "enable_$ac_feature=no" ;;
390 -enable-* | --enable-*)
391 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
392 # Reject names that are not valid shell variable names.
393 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
394 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
395 { (exit 1); exit 1; }; }
396 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
401 eval "enable_$ac_feature='$ac_optarg'" ;;
403 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
404 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
405 | --exec | --exe | --ex)
406 ac_prev=exec_prefix ;;
407 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
408 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
409 | --exec=* | --exe=* | --ex=*)
410 exec_prefix=$ac_optarg ;;
412 -gas | --gas | --ga | --g)
413 # Obsolete; use --with-gas.
416 -help | --help | --hel | --he | -h)
418 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
419 ac_init_help=recursive ;;
420 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
421 ac_init_help=short ;;
423 -host | --host | --hos | --ho)
424 ac_prev=host_alias ;;
425 -host=* | --host=* | --hos=* | --ho=*)
426 host_alias=$ac_optarg ;;
428 -includedir | --includedir | --includedi | --included | --include \
429 | --includ | --inclu | --incl | --inc)
430 ac_prev=includedir ;;
431 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
432 | --includ=* | --inclu=* | --incl=* | --inc=*)
433 includedir=$ac_optarg ;;
435 -infodir | --infodir | --infodi | --infod | --info | --inf)
437 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
438 infodir=$ac_optarg ;;
440 -libdir | --libdir | --libdi | --libd)
442 -libdir=* | --libdir=* | --libdi=* | --libd=*)
445 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
446 | --libexe | --libex | --libe)
447 ac_prev=libexecdir ;;
448 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
449 | --libexe=* | --libex=* | --libe=*)
450 libexecdir=$ac_optarg ;;
452 -localstatedir | --localstatedir | --localstatedi | --localstated \
453 | --localstate | --localstat | --localsta | --localst \
454 | --locals | --local | --loca | --loc | --lo)
455 ac_prev=localstatedir ;;
456 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
457 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
458 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
459 localstatedir=$ac_optarg ;;
461 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
463 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
467 # Obsolete; use --without-fp.
470 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
471 | --no-cr | --no-c | -n)
474 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
475 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
478 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
479 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
480 | --oldin | --oldi | --old | --ol | --o)
481 ac_prev=oldincludedir ;;
482 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
483 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
484 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
485 oldincludedir=$ac_optarg ;;
487 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
489 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
492 -program-prefix | --program-prefix | --program-prefi | --program-pref \
493 | --program-pre | --program-pr | --program-p)
494 ac_prev=program_prefix ;;
495 -program-prefix=* | --program-prefix=* | --program-prefi=* \
496 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
497 program_prefix=$ac_optarg ;;
499 -program-suffix | --program-suffix | --program-suffi | --program-suff \
500 | --program-suf | --program-su | --program-s)
501 ac_prev=program_suffix ;;
502 -program-suffix=* | --program-suffix=* | --program-suffi=* \
503 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
504 program_suffix=$ac_optarg ;;
506 -program-transform-name | --program-transform-name \
507 | --program-transform-nam | --program-transform-na \
508 | --program-transform-n | --program-transform- \
509 | --program-transform | --program-transfor \
510 | --program-transfo | --program-transf \
511 | --program-trans | --program-tran \
512 | --progr-tra | --program-tr | --program-t)
513 ac_prev=program_transform_name ;;
514 -program-transform-name=* | --program-transform-name=* \
515 | --program-transform-nam=* | --program-transform-na=* \
516 | --program-transform-n=* | --program-transform-=* \
517 | --program-transform=* | --program-transfor=* \
518 | --program-transfo=* | --program-transf=* \
519 | --program-trans=* | --program-tran=* \
520 | --progr-tra=* | --program-tr=* | --program-t=*)
521 program_transform_name=$ac_optarg ;;
523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
524 | -silent | --silent | --silen | --sile | --sil)
527 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
529 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
531 sbindir=$ac_optarg ;;
533 -sharedstatedir | --sharedstatedir | --sharedstatedi \
534 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
535 | --sharedst | --shareds | --shared | --share | --shar \
537 ac_prev=sharedstatedir ;;
538 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
539 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
540 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
542 sharedstatedir=$ac_optarg ;;
544 -site | --site | --sit)
546 -site=* | --site=* | --sit=*)
549 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
551 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
554 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
555 | --syscon | --sysco | --sysc | --sys | --sy)
556 ac_prev=sysconfdir ;;
557 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
558 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
559 sysconfdir=$ac_optarg ;;
561 -target | --target | --targe | --targ | --tar | --ta | --t)
562 ac_prev=target_alias ;;
563 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
564 target_alias=$ac_optarg ;;
566 -v | -verbose | --verbose | --verbos | --verbo | --verb)
569 -version | --version | --versio | --versi | --vers | -V)
573 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
574 # Reject names that are not valid shell variable names.
575 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576 { echo "$as_me: error: invalid package name: $ac_package" >&2
577 { (exit 1); exit 1; }; }
578 ac_package=`echo $ac_package| sed 's/-/_/g'`
580 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
583 eval "with_$ac_package='$ac_optarg'" ;;
585 -without-* | --without-*)
586 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package | sed 's/-/_/g'`
592 eval "with_$ac_package=no" ;;
595 # Obsolete; use --with-x.
598 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
599 | --x-incl | --x-inc | --x-in | --x-i)
600 ac_prev=x_includes ;;
601 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
602 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
603 x_includes=$ac_optarg ;;
605 -x-libraries | --x-libraries | --x-librarie | --x-librari \
606 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
607 ac_prev=x_libraries ;;
608 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
609 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
610 x_libraries=$ac_optarg ;;
612 -*) { echo "$as_me: error: unrecognized option: $ac_option
613 Try \`$0 --help' for more information." >&2
614 { (exit 1); exit 1; }; }
618 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
619 # Reject names that are not valid shell variable names.
620 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
621 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
622 { (exit 1); exit 1; }; }
623 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
624 eval "$ac_envvar='$ac_optarg'"
628 # FIXME: should be removed in autoconf 3.0.
629 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
630 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
631 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
632 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
638 if test -n "$ac_prev"; then
639 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
640 { echo "$as_me: error: missing argument to $ac_option" >&2
641 { (exit 1); exit 1; }; }
644 # Be sure to have absolute paths.
645 for ac_var in exec_prefix prefix
647 eval ac_val=$`echo $ac_var`
649 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
650 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
651 { (exit 1); exit 1; }; };;
655 # Be sure to have absolute paths.
656 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
657 localstatedir libdir includedir oldincludedir infodir mandir
659 eval ac_val=$`echo $ac_var`
661 [\\/$]* | ?:[\\/]* ) ;;
662 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
663 { (exit 1); exit 1; }; };;
667 # There might be people who depend on the old broken behavior: `$host'
668 # used to hold the argument of --host etc.
669 # FIXME: To remove some day.
674 # FIXME: To remove some day.
675 if test "x$host_alias" != x; then
676 if test "x$build_alias" = x; then
677 cross_compiling=maybe
678 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
679 If a cross compiler is detected then cross compile mode will be used." >&2
680 elif test "x$build_alias" != "x$host_alias"; then
686 test -n "$host_alias" && ac_tool_prefix=$host_alias-
688 test "$silent" = yes && exec 6>/dev/null
691 # Find the source files, if location was not specified.
692 if test -z "$srcdir"; then
693 ac_srcdir_defaulted=yes
694 # Try the directory containing this script, then its parent.
695 ac_confdir=`(dirname "$0") 2>/dev/null ||
696 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
697 X"$0" : 'X\(//\)[^/]' \| \
698 X"$0" : 'X\(//\)$' \| \
699 X"$0" : 'X\(/\)' \| \
700 . : '\(.\)' 2>/dev/null ||
702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
704 /^X\(\/\/\)$/{ s//\1/; q; }
705 /^X\(\/\).*/{ s//\1/; q; }
708 if test ! -r $srcdir/$ac_unique_file; then
712 ac_srcdir_defaulted=no
714 if test ! -r $srcdir/$ac_unique_file; then
715 if test "$ac_srcdir_defaulted" = yes; then
716 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
717 { (exit 1); exit 1; }; }
719 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
720 { (exit 1); exit 1; }; }
723 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
724 ac_env_build_alias_set=${build_alias+set}
725 ac_env_build_alias_value=$build_alias
726 ac_cv_env_build_alias_set=${build_alias+set}
727 ac_cv_env_build_alias_value=$build_alias
728 ac_env_host_alias_set=${host_alias+set}
729 ac_env_host_alias_value=$host_alias
730 ac_cv_env_host_alias_set=${host_alias+set}
731 ac_cv_env_host_alias_value=$host_alias
732 ac_env_target_alias_set=${target_alias+set}
733 ac_env_target_alias_value=$target_alias
734 ac_cv_env_target_alias_set=${target_alias+set}
735 ac_cv_env_target_alias_value=$target_alias
736 ac_env_CC_set=${CC+set}
738 ac_cv_env_CC_set=${CC+set}
739 ac_cv_env_CC_value=$CC
740 ac_env_CFLAGS_set=${CFLAGS+set}
741 ac_env_CFLAGS_value=$CFLAGS
742 ac_cv_env_CFLAGS_set=${CFLAGS+set}
743 ac_cv_env_CFLAGS_value=$CFLAGS
744 ac_env_LDFLAGS_set=${LDFLAGS+set}
745 ac_env_LDFLAGS_value=$LDFLAGS
746 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
747 ac_cv_env_LDFLAGS_value=$LDFLAGS
748 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
749 ac_env_CPPFLAGS_value=$CPPFLAGS
750 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
751 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
752 ac_env_CPP_set=${CPP+set}
753 ac_env_CPP_value=$CPP
754 ac_cv_env_CPP_set=${CPP+set}
755 ac_cv_env_CPP_value=$CPP
758 # Report the --help message.
760 if test "$ac_init_help" = "long"; then
761 # Omit some internal or obsolete options to make the list less imposing.
762 # This message is too long to be a string in the A/UX 3.1 sh.
764 \`configure' configures this package to adapt to many kinds of systems.
766 Usage: $0 [OPTION]... [VAR=VALUE]...
768 To assign environment variables (e.g., CC, CFLAGS...), specify them as
769 VAR=VALUE. See below for descriptions of some of the useful variables.
771 Defaults for the options are specified in brackets.
774 -h, --help display this help and exit
775 --help=short display options specific to this package
776 --help=recursive display the short help of all the included packages
777 -V, --version display version information and exit
778 -q, --quiet, --silent do not print \`checking...' messages
779 --cache-file=FILE cache test results in FILE [disabled]
780 -C, --config-cache alias for \`--cache-file=config.cache'
781 -n, --no-create do not create output files
782 --srcdir=DIR find the sources in DIR [configure dir or \`..']
787 Installation directories:
788 --prefix=PREFIX install architecture-independent files in PREFIX
790 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
793 By default, \`make install' will install all the files in
794 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
795 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
796 for instance \`--prefix=\$HOME'.
798 For better control, use the options below.
800 Fine tuning of the installation directories:
801 --bindir=DIR user executables [EPREFIX/bin]
802 --sbindir=DIR system admin executables [EPREFIX/sbin]
803 --libexecdir=DIR program executables [EPREFIX/libexec]
804 --datadir=DIR read-only architecture-independent data [PREFIX/share]
805 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
806 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
807 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
808 --libdir=DIR object code libraries [EPREFIX/lib]
809 --includedir=DIR C header files [PREFIX/include]
810 --oldincludedir=DIR C header files for non-gcc [/usr/include]
811 --infodir=DIR info documentation [PREFIX/info]
812 --mandir=DIR man documentation [PREFIX/man]
818 --program-prefix=PREFIX prepend PREFIX to installed program names
819 --program-suffix=SUFFIX append SUFFIX to installed program names
820 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
823 --build=BUILD configure for building on BUILD [guessed]
824 --host=HOST cross-compile to build programs to run on HOST [BUILD]
825 --target=TARGET configure for building compilers for TARGET [HOST]
829 if test -n "$ac_init_help"; then
834 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
835 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
836 --enable-maintainer-mode enable make rules and dependencies not useful
837 (and sometimes confusing) to the casual installer
838 --enable-shared=PKGS build shared libraries default=yes
839 --enable-static=PKGS build static libraries default=yes
840 --enable-fast-install=PKGS optimize for fast installation default=yes
841 --disable-dependency-tracking Speeds up one-time builds
842 --enable-dependency-tracking Do not reject slow dependency extractors
843 --disable-libtool-lock avoid locking (might break parallel builds)
844 --enable-build-warnings Enable build-time compiler warnings if gcc is used
845 --enable-rda-build-warnings Enable RDA specific build-time compiler warnings if gcc is used
846 --disable-nls do not use Native Language Support
849 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
850 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
851 --with-gnu-ld assume the C compiler uses GNU ld default=no
852 --with-pic try to use only PIC/non-PIC objects default=use both
853 --with-included-gettext use the GNU gettext library included here
855 Some influential environment variables:
856 CC C compiler command
857 CFLAGS C compiler flags
858 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
859 nonstandard directory <lib dir>
860 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
861 headers in a nonstandard directory <include dir>
864 Use these variables to override the choices made by `configure' or to help
865 it to find libraries and programs with nonstandard names/locations.
870 if test "$ac_init_help" = "recursive"; then
871 # If there are subdirs, report their specific --help.
873 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
874 test -d $ac_dir || continue
877 if test "$ac_dir" != .; then
878 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
879 # A "../" for each directory in $ac_dir_suffix.
880 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
882 ac_dir_suffix= ac_top_builddir=
886 .) # No --srcdir option. We are building in place.
888 if test -z "$ac_top_builddir"; then
891 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
893 [\\/]* | ?:[\\/]* ) # Absolute path.
894 ac_srcdir=$srcdir$ac_dir_suffix;
895 ac_top_srcdir=$srcdir ;;
897 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
898 ac_top_srcdir=$ac_top_builddir$srcdir ;;
900 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
902 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
903 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
904 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
905 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
908 # Check for guested configure; otherwise get Cygnus style configure.
909 if test -f $ac_srcdir/configure.gnu; then
911 $SHELL $ac_srcdir/configure.gnu --help=recursive
912 elif test -f $ac_srcdir/configure; then
914 $SHELL $ac_srcdir/configure --help=recursive
915 elif test -f $ac_srcdir/configure.ac ||
916 test -f $ac_srcdir/configure.in; then
920 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
926 test -n "$ac_init_help" && exit 0
927 if $ac_init_version; then
930 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
931 Free Software Foundation, Inc.
932 This configure script is free software; the Free Software Foundation
933 gives unlimited permission to copy, distribute and modify it.
939 This file contains any messages produced by compilers while
940 running configure, to aid debugging if configure makes a mistake.
942 It was created by $as_me, which was
943 generated by GNU Autoconf 2.53. Invocation command line was
954 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
955 uname -m = `(uname -m) 2>/dev/null || echo unknown`
956 uname -r = `(uname -r) 2>/dev/null || echo unknown`
957 uname -s = `(uname -s) 2>/dev/null || echo unknown`
958 uname -v = `(uname -v) 2>/dev/null || echo unknown`
960 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
961 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
963 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
964 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
965 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
966 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
967 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
968 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
969 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
977 test -z "$as_dir" && as_dir=.
993 # Keep a trace of the command line.
994 # Strip out --no-create and --no-recursion so they do not pile up.
995 # Also quote any args containing shell meta-characters.
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n ) continue ;;
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1007 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1009 case " $ac_configure_args " in
1010 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1011 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1014 # Get rid of the leading space.
1017 # When interrupted or exit'd, cleanup temporary files, and complete
1018 # config.log. We remove comments because anyway the quotes in there
1019 # would cause problems or look ugly.
1020 # WARNING: Be sure not to use single quotes in there, as some shells,
1021 # such as our DU 5.0 friend, will then `close' the trap.
1022 trap 'exit_status=$?
1023 # Save into config.log some information that might help in debugging.
1027 ## ---------------- ##
1028 ## Cache variables. ##
1029 ## ---------------- ##
1032 # The following way of writing the cache mishandles newlines in values,
1035 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1038 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1043 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1048 if test -s confdefs.h; then
1055 sed "/^$/d" confdefs.h
1058 test "$ac_signal" != 0 &&
1059 echo "$as_me: caught signal $ac_signal"
1060 echo "$as_me: exit $exit_status"
1062 rm -f core core.* *.core &&
1063 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1066 for ac_signal in 1 2 13 15; do
1067 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1071 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1072 rm -rf conftest* confdefs.h
1073 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1076 # Predefined preprocessor variables.
1078 cat >>confdefs.h <<_ACEOF
1079 #define PACKAGE_NAME "$PACKAGE_NAME"
1083 cat >>confdefs.h <<_ACEOF
1084 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1088 cat >>confdefs.h <<_ACEOF
1089 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1093 cat >>confdefs.h <<_ACEOF
1094 #define PACKAGE_STRING "$PACKAGE_STRING"
1098 cat >>confdefs.h <<_ACEOF
1099 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1103 # Let the site file select an alternate cache file if it wants to.
1104 # Prefer explicitly selected file to automatically selected ones.
1105 if test -z "$CONFIG_SITE"; then
1106 if test "x$prefix" != xNONE; then
1107 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1109 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1112 for ac_site_file in $CONFIG_SITE; do
1113 if test -r "$ac_site_file"; then
1114 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1115 echo "$as_me: loading site script $ac_site_file" >&6;}
1116 sed 's/^/| /' "$ac_site_file" >&5
1121 if test -r "$cache_file"; then
1122 # Some versions of bash will fail to source /dev/null (special
1123 # files actually), so we avoid doing that.
1124 if test -f "$cache_file"; then
1125 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1126 echo "$as_me: loading cache $cache_file" >&6;}
1128 [\\/]* | ?:[\\/]* ) . $cache_file;;
1129 *) . ./$cache_file;;
1133 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1134 echo "$as_me: creating cache $cache_file" >&6;}
1138 # Check that the precious variables saved in the cache have kept the same
1140 ac_cache_corrupted=false
1141 for ac_var in `(set) 2>&1 |
1142 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1143 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1144 eval ac_new_set=\$ac_env_${ac_var}_set
1145 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1146 eval ac_new_val="\$ac_env_${ac_var}_value"
1147 case $ac_old_set,$ac_new_set in
1149 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1150 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1151 ac_cache_corrupted=: ;;
1153 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1154 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1155 ac_cache_corrupted=: ;;
1158 if test "x$ac_old_val" != "x$ac_new_val"; then
1159 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1160 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1161 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1162 echo "$as_me: former value: $ac_old_val" >&2;}
1163 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1164 echo "$as_me: current value: $ac_new_val" >&2;}
1165 ac_cache_corrupted=:
1168 # Pass precious variables to config.status.
1169 if test "$ac_new_set" = set; then
1171 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1172 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1173 *) ac_arg=$ac_var=$ac_new_val ;;
1175 case " $ac_configure_args " in
1176 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1177 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1181 if $ac_cache_corrupted; then
1182 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1183 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1184 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1185 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1186 { (exit 1); exit 1; }; }
1190 ac_cpp='$CPP $CPPFLAGS'
1191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1213 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1214 if test -f $ac_dir/install-sh; then
1216 ac_install_sh="$ac_aux_dir/install-sh -c"
1218 elif test -f $ac_dir/install.sh; then
1220 ac_install_sh="$ac_aux_dir/install.sh -c"
1222 elif test -f $ac_dir/shtool; then
1224 ac_install_sh="$ac_aux_dir/shtool install -c"
1228 if test -z "$ac_aux_dir"; then
1229 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1230 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1231 { (exit 1); exit 1; }; }
1233 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1234 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1235 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1237 # Make sure we can run config.sub.
1238 $ac_config_sub sun4 >/dev/null 2>&1 ||
1239 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1240 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1241 { (exit 1); exit 1; }; }
1243 echo "$as_me:$LINENO: checking build system type" >&5
1244 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1245 if test "${ac_cv_build+set}" = set; then
1246 echo $ECHO_N "(cached) $ECHO_C" >&6
1248 ac_cv_build_alias=$build_alias
1249 test -z "$ac_cv_build_alias" &&
1250 ac_cv_build_alias=`$ac_config_guess`
1251 test -z "$ac_cv_build_alias" &&
1252 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1253 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1254 { (exit 1); exit 1; }; }
1255 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1256 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1257 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1258 { (exit 1); exit 1; }; }
1261 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1262 echo "${ECHO_T}$ac_cv_build" >&6
1264 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1265 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1266 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1269 echo "$as_me:$LINENO: checking host system type" >&5
1270 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1271 if test "${ac_cv_host+set}" = set; then
1272 echo $ECHO_N "(cached) $ECHO_C" >&6
1274 ac_cv_host_alias=$host_alias
1275 test -z "$ac_cv_host_alias" &&
1276 ac_cv_host_alias=$ac_cv_build_alias
1277 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1278 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1279 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1280 { (exit 1); exit 1; }; }
1283 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1284 echo "${ECHO_T}$ac_cv_host" >&6
1286 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1287 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1288 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1291 echo "$as_me:$LINENO: checking target system type" >&5
1292 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1293 if test "${ac_cv_target+set}" = set; then
1294 echo $ECHO_N "(cached) $ECHO_C" >&6
1296 ac_cv_target_alias=$target_alias
1297 test "x$ac_cv_target_alias" = "x" &&
1298 ac_cv_target_alias=$ac_cv_host_alias
1299 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1300 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1301 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1302 { (exit 1); exit 1; }; }
1305 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1306 echo "${ECHO_T}$ac_cv_target" >&6
1307 target=$ac_cv_target
1308 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1309 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1310 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1313 # The aliases save the names the user supplied, while $host etc.
1314 # will get canonicalized.
1315 test -n "$target_alias" &&
1316 test "$program_prefix$program_suffix$program_transform_name" = \
1318 program_prefix=${target_alias}-
1319 am__api_version="1.6"
1320 # Find a good install program. We prefer a C program (faster),
1321 # so one script is as good as another. But avoid the broken or
1322 # incompatible versions:
1323 # SysV /etc/install, /usr/sbin/install
1324 # SunOS /usr/etc/install
1325 # IRIX /sbin/install
1327 # AmigaOS /C/install, which installs bootblocks on floppy discs
1328 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1329 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1330 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1331 # ./install, which can be erroneously created by make from ./install.sh.
1332 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1333 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1334 if test -z "$INSTALL"; then
1335 if test "${ac_cv_path_install+set}" = set; then
1336 echo $ECHO_N "(cached) $ECHO_C" >&6
1338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1342 test -z "$as_dir" && as_dir=.
1343 # Account for people who put trailing slashes in PATH elements.
1345 ./ | .// | /cC/* | \
1346 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1349 # OSF1 and SCO ODT 3.0 have their own names for install.
1350 # Don't use installbsd from OSF since it installs stuff as root
1352 for ac_prog in ginstall scoinst install; do
1353 for ac_exec_ext in '' $ac_executable_extensions; do
1354 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1355 if test $ac_prog = install &&
1356 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1357 # AIX install. It has an incompatible calling convention.
1359 elif test $ac_prog = install &&
1360 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1361 # program-specific install script used by HP pwplus--don't use.
1364 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1376 if test "${ac_cv_path_install+set}" = set; then
1377 INSTALL=$ac_cv_path_install
1379 # As a last resort, use the slow shell script. We don't cache a
1380 # path for INSTALL within a source directory, because that will
1381 # break other packages using the cache if that directory is
1382 # removed, or if the path is relative.
1383 INSTALL=$ac_install_sh
1386 echo "$as_me:$LINENO: result: $INSTALL" >&5
1387 echo "${ECHO_T}$INSTALL" >&6
1389 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1390 # It thinks the first close brace ends the variable substitution.
1391 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1393 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1395 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1397 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1398 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1401 echo timestamp > conftest.file
1402 # Do `set' in a subshell so we don't clobber the current shell's
1403 # arguments. Must try -L first in case configure is actually a
1404 # symlink; some systems play weird games with the mod time of symlinks
1405 # (eg FreeBSD returns the mod time of the symlink's containing
1408 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1409 if test "$*" = "X"; then
1411 set X `ls -t $srcdir/configure conftest.file`
1414 if test "$*" != "X $srcdir/configure conftest.file" \
1415 && test "$*" != "X conftest.file $srcdir/configure"; then
1417 # If neither matched, then we have a broken ls. This can happen
1418 # if, for instance, CONFIG_SHELL is bash and it inherits a
1419 # broken ls alias from the environment. This has actually
1420 # happened. Such a system could not be considered "sane".
1421 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1422 alias in your environment" >&5
1423 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1424 alias in your environment" >&2;}
1425 { (exit 1); exit 1; }; }
1428 test "$2" = conftest.file
1434 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1435 Check your system clock" >&5
1436 echo "$as_me: error: newly created file is older than distributed files!
1437 Check your system clock" >&2;}
1438 { (exit 1); exit 1; }; }
1440 echo "$as_me:$LINENO: result: yes" >&5
1441 echo "${ECHO_T}yes" >&6
1442 test "$program_prefix" != NONE &&
1443 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1444 # Use a double $ so make ignores it.
1445 test "$program_suffix" != NONE &&
1446 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1447 # Double any \ or $. echo might interpret backslashes.
1448 # By default was `s,x,x', remove it if useless.
1449 cat <<\_ACEOF >conftest.sed
1450 s/[\\$]/&&/g;s/;s,x,x,$//
1452 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1456 # expand $ac_aux_dir to an absolute path
1457 am_aux_dir=`cd $ac_aux_dir && pwd`
1459 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1460 # Use eval to expand $SHELL
1461 if eval "$MISSING --run true"; then
1462 am_missing_run="$MISSING --run "
1465 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1466 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1469 for ac_prog in gawk mawk nawk awk
1471 # Extract the first word of "$ac_prog", so it can be a program name with args.
1472 set dummy $ac_prog; ac_word=$2
1473 echo "$as_me:$LINENO: checking for $ac_word" >&5
1474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 if test "${ac_cv_prog_AWK+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 if test -n "$AWK"; then
1479 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 test -z "$as_dir" && as_dir=.
1486 for ac_exec_ext in '' $ac_executable_extensions; do
1487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488 ac_cv_prog_AWK="$ac_prog"
1489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 if test -n "$AWK"; then
1499 echo "$as_me:$LINENO: result: $AWK" >&5
1500 echo "${ECHO_T}$AWK" >&6
1502 echo "$as_me:$LINENO: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1506 test -n "$AWK" && break
1509 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1510 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1511 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1512 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1513 echo $ECHO_N "(cached) $ECHO_C" >&6
1515 cat >conftest.make <<\_ACEOF
1517 @echo 'ac_maketemp="${MAKE}"'
1519 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1520 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1521 if test -n "$ac_maketemp"; then
1522 eval ac_cv_prog_make_${ac_make}_set=yes
1524 eval ac_cv_prog_make_${ac_make}_set=no
1528 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1529 echo "$as_me:$LINENO: result: yes" >&5
1530 echo "${ECHO_T}yes" >&6
1533 echo "$as_me:$LINENO: result: no" >&5
1534 echo "${ECHO_T}no" >&6
1535 SET_MAKE="MAKE=${MAKE-make}"
1538 # test to see if srcdir already configured
1539 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1540 test -f $srcdir/config.status; then
1541 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1542 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1543 { (exit 1); exit 1; }; }
1546 # Define the identity of the package.
1551 cat >>confdefs.h <<_ACEOF
1552 #define PACKAGE "$PACKAGE"
1556 cat >>confdefs.h <<_ACEOF
1557 #define VERSION "$VERSION"
1560 # Some tools Automake needs.
1562 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1565 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1568 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1571 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1574 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1577 AMTAR=${AMTAR-"${am_missing_run}tar"}
1579 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1581 # Installed binaries are usually stripped using `strip' when the user
1582 # run `make install-strip'. However `strip' might not be the right
1583 # tool to use in cross-compilation environments, therefore Automake
1584 # will honor the `STRIP' environment variable to overrule this program.
1585 if test "$cross_compiling" != no; then
1586 if test -n "$ac_tool_prefix"; then
1587 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1588 set dummy ${ac_tool_prefix}strip; ac_word=$2
1589 echo "$as_me:$LINENO: checking for $ac_word" >&5
1590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1591 if test "${ac_cv_prog_STRIP+set}" = set; then
1592 echo $ECHO_N "(cached) $ECHO_C" >&6
1594 if test -n "$STRIP"; then
1595 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601 test -z "$as_dir" && as_dir=.
1602 for ac_exec_ext in '' $ac_executable_extensions; do
1603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1604 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1613 STRIP=$ac_cv_prog_STRIP
1614 if test -n "$STRIP"; then
1615 echo "$as_me:$LINENO: result: $STRIP" >&5
1616 echo "${ECHO_T}$STRIP" >&6
1618 echo "$as_me:$LINENO: result: no" >&5
1619 echo "${ECHO_T}no" >&6
1623 if test -z "$ac_cv_prog_STRIP"; then
1625 # Extract the first word of "strip", so it can be a program name with args.
1626 set dummy strip; ac_word=$2
1627 echo "$as_me:$LINENO: checking for $ac_word" >&5
1628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1632 if test -n "$ac_ct_STRIP"; then
1633 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 test -z "$as_dir" && as_dir=.
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 ac_cv_prog_ac_ct_STRIP="strip"
1643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1649 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1652 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1653 if test -n "$ac_ct_STRIP"; then
1654 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1655 echo "${ECHO_T}$ac_ct_STRIP" >&6
1657 echo "$as_me:$LINENO: result: no" >&5
1658 echo "${ECHO_T}no" >&6
1663 STRIP="$ac_cv_prog_STRIP"
1667 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1669 # We need awk for the "check" target. The system "awk" is bad on
1674 # Add the stamp file to the list of files AC keeps track of,
1675 # along with our hook.
1676 ac_config_headers="$ac_config_headers config.h:config.in"
1681 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1682 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1683 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1684 if test "${enable_maintainer_mode+set}" = set; then
1685 enableval="$enable_maintainer_mode"
1686 USE_MAINTAINER_MODE=$enableval
1688 USE_MAINTAINER_MODE=no
1690 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1691 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1694 if test $USE_MAINTAINER_MODE = yes; then
1695 MAINTAINER_MODE_TRUE=
1696 MAINTAINER_MODE_FALSE='#'
1698 MAINTAINER_MODE_TRUE='#'
1699 MAINTAINER_MODE_FALSE=
1702 MAINT=$MAINTAINER_MODE_TRUE
1705 # Check whether --enable-shared or --disable-shared was given.
1706 if test "${enable_shared+set}" = set; then
1707 enableval="$enable_shared"
1708 p=${PACKAGE-default}
1710 yes) enable_shared=yes ;;
1711 no) enable_shared=no ;;
1714 # Look at the argument we got. We use all the common list separators.
1715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1716 for pkg in $enableval; do
1717 if test "X$pkg" = "X$p"; then
1727 # Check whether --enable-static or --disable-static was given.
1728 if test "${enable_static+set}" = set; then
1729 enableval="$enable_static"
1730 p=${PACKAGE-default}
1732 yes) enable_static=yes ;;
1733 no) enable_static=no ;;
1736 # Look at the argument we got. We use all the common list separators.
1737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1738 for pkg in $enableval; do
1739 if test "X$pkg" = "X$p"; then
1749 # Check whether --enable-fast-install or --disable-fast-install was given.
1750 if test "${enable_fast_install+set}" = set; then
1751 enableval="$enable_fast_install"
1752 p=${PACKAGE-default}
1754 yes) enable_fast_install=yes ;;
1755 no) enable_fast_install=no ;;
1757 enable_fast_install=no
1758 # Look at the argument we got. We use all the common list separators.
1759 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1760 for pkg in $enableval; do
1761 if test "X$pkg" = "X$p"; then
1762 enable_fast_install=yes
1769 enable_fast_install=yes
1771 rm -f .deps 2>/dev/null
1772 mkdir .deps 2>/dev/null
1773 if test -d .deps; then
1776 # MS-DOS does not allow filenames that begin with a dot.
1779 rmdir .deps 2>/dev/null
1782 ac_config_commands="$ac_config_commands depfiles"
1785 am_make=${MAKE-make}
1786 cat > confinc << 'END'
1790 # If we don't find an include directive, just comment out the code.
1791 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1792 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1796 # First try GNU make style include.
1797 echo "include confinc" > confmf
1798 # We grep out `Entering directory' and `Leaving directory'
1799 # messages which can occur if `w' ends up in MAKEFLAGS.
1800 # In particular we don't look at `^make:' because GNU make might
1801 # be invoked under some other name (usually "gmake"), in which
1802 # case it prints its new name instead of `make'.
1803 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1808 # Now try BSD make style include.
1809 if test "$am__include" = "#"; then
1810 echo '.include "confinc"' > confmf
1811 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1812 am__include=.include
1819 echo "$as_me:$LINENO: result: $_am_result" >&5
1820 echo "${ECHO_T}$_am_result" >&6
1821 rm -f confinc confmf
1823 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1824 if test "${enable_dependency_tracking+set}" = set; then
1825 enableval="$enable_dependency_tracking"
1828 if test "x$enable_dependency_tracking" != xno; then
1829 am_depcomp="$ac_aux_dir/depcomp"
1834 if test "x$enable_dependency_tracking" != xno; then
1845 ac_cpp='$CPP $CPPFLAGS'
1846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1849 if test -n "$ac_tool_prefix"; then
1850 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1851 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_CC+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 if test -n "$CC"; then
1858 ac_cv_prog_CC="$CC" # Let the user override the test.
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 if test -n "$CC"; then
1878 echo "$as_me:$LINENO: result: $CC" >&5
1879 echo "${ECHO_T}$CC" >&6
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1886 if test -z "$ac_cv_prog_CC"; then
1888 # Extract the first word of "gcc", so it can be a program name with args.
1889 set dummy gcc; ac_word=$2
1890 echo "$as_me:$LINENO: checking for $ac_word" >&5
1891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1895 if test -n "$ac_ct_CC"; then
1896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902 test -z "$as_dir" && as_dir=.
1903 for ac_exec_ext in '' $ac_executable_extensions; do
1904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905 ac_cv_prog_ac_ct_CC="gcc"
1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1915 if test -n "$ac_ct_CC"; then
1916 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1917 echo "${ECHO_T}$ac_ct_CC" >&6
1919 echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6
1928 if test -z "$CC"; then
1929 if test -n "$ac_tool_prefix"; then
1930 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1931 set dummy ${ac_tool_prefix}cc; ac_word=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_prog_CC+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 if test -n "$CC"; then
1938 ac_cv_prog_CC="$CC" # Let the user override the test.
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 ac_cv_prog_CC="${ac_tool_prefix}cc"
1948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957 if test -n "$CC"; then
1958 echo "$as_me:$LINENO: result: $CC" >&5
1959 echo "${ECHO_T}$CC" >&6
1961 echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6
1966 if test -z "$ac_cv_prog_CC"; then
1968 # Extract the first word of "cc", so it can be a program name with args.
1969 set dummy cc; ac_word=$2
1970 echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1972 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 if test -n "$ac_ct_CC"; then
1976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 test -z "$as_dir" && as_dir=.
1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1985 ac_cv_prog_ac_ct_CC="cc"
1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1995 if test -n "$ac_ct_CC"; then
1996 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1997 echo "${ECHO_T}$ac_ct_CC" >&6
1999 echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6
2009 if test -z "$CC"; then
2010 # Extract the first word of "cc", so it can be a program name with args.
2011 set dummy cc; ac_word=$2
2012 echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2014 if test "${ac_cv_prog_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 if test -n "$CC"; then
2018 ac_cv_prog_CC="$CC" # Let the user override the test.
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2028 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2029 ac_prog_rejected=yes
2033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 if test $ac_prog_rejected = yes; then
2040 # We found a bogon in the path, so make sure we never use it.
2041 set dummy $ac_cv_prog_CC
2043 if test $# != 0; then
2044 # We chose a different compiler from the bogus one.
2045 # However, it has the same basename, so the bogon will be chosen
2046 # first if we set CC to just the basename; use the full file name.
2048 set dummy "$as_dir/$ac_word" ${1+"$@"}
2056 if test -n "$CC"; then
2057 echo "$as_me:$LINENO: result: $CC" >&5
2058 echo "${ECHO_T}$CC" >&6
2060 echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2065 if test -z "$CC"; then
2066 if test -n "$ac_tool_prefix"; then
2069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2070 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2071 echo "$as_me:$LINENO: checking for $ac_word" >&5
2072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2073 if test "${ac_cv_prog_CC+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2076 if test -n "$CC"; then
2077 ac_cv_prog_CC="$CC" # Let the user override the test.
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 test -z "$as_dir" && as_dir=.
2084 for ac_exec_ext in '' $ac_executable_extensions; do
2085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2086 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096 if test -n "$CC"; then
2097 echo "$as_me:$LINENO: result: $CC" >&5
2098 echo "${ECHO_T}$CC" >&6
2100 echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6
2104 test -n "$CC" && break
2107 if test -z "$CC"; then
2111 # Extract the first word of "$ac_prog", so it can be a program name with args.
2112 set dummy $ac_prog; ac_word=$2
2113 echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 if test -n "$ac_ct_CC"; then
2119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2128 ac_cv_prog_ac_ct_CC="$ac_prog"
2129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2138 if test -n "$ac_ct_CC"; then
2139 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2140 echo "${ECHO_T}$ac_ct_CC" >&6
2142 echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6
2146 test -n "$ac_ct_CC" && break
2155 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2156 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2157 { (exit 1); exit 1; }; }
2159 # Provide some information about the compiler.
2160 echo "$as_me:$LINENO:" \
2161 "checking for C compiler version" >&5
2162 ac_compiler=`set X $ac_compile; echo $2`
2163 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2164 (eval $ac_compiler --version </dev/null >&5) 2>&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }
2168 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2169 (eval $ac_compiler -v </dev/null >&5) 2>&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }
2173 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2174 (eval $ac_compiler -V </dev/null >&5) 2>&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }
2179 cat >conftest.$ac_ext <<_ACEOF
2180 #line $LINENO "configure"
2181 #include "confdefs.h"
2183 #ifdef F77_DUMMY_MAIN
2187 int F77_DUMMY_MAIN() { return 1; }
2197 ac_clean_files_save=$ac_clean_files
2198 ac_clean_files="$ac_clean_files a.out a.exe"
2199 # Try to create an executable without -o first, disregard a.out.
2200 # It will help us diagnose broken compilers, and finding out an intuition
2202 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2203 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2204 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2205 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2206 (eval $ac_link_default) 2>&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; then
2210 # Find the output, starting from the most likely. This scheme is
2211 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2214 # Be careful to initialize this variable, since it used to be cached.
2215 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2217 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2218 ls a.out conftest 2>/dev/null;
2219 ls a.* conftest.* 2>/dev/null`; do
2221 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2222 a.out ) # We found the default executable, but exeext='' is most
2225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2226 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2233 echo "$as_me: failed program was:" >&5
2234 cat conftest.$ac_ext >&5
2235 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2236 echo "$as_me: error: C compiler cannot create executables" >&2;}
2237 { (exit 77); exit 77; }; }
2240 ac_exeext=$ac_cv_exeext
2241 echo "$as_me:$LINENO: result: $ac_file" >&5
2242 echo "${ECHO_T}$ac_file" >&6
2244 # Check the compiler produces executables we can run. If not, either
2245 # the compiler is broken, or we cross compile.
2246 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2247 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2248 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2249 # If not cross compiling, check that we can run a simple program.
2250 if test "$cross_compiling" != yes; then
2251 if { ac_try='./$ac_file'
2252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; }; then
2259 if test "$cross_compiling" = maybe; then
2262 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2263 If you meant to cross compile, use \`--host'." >&5
2264 echo "$as_me: error: cannot run C compiled programs.
2265 If you meant to cross compile, use \`--host'." >&2;}
2266 { (exit 1); exit 1; }; }
2270 echo "$as_me:$LINENO: result: yes" >&5
2271 echo "${ECHO_T}yes" >&6
2273 rm -f a.out a.exe conftest$ac_cv_exeext
2274 ac_clean_files=$ac_clean_files_save
2275 # Check the compiler produces executables we can run. If not, either
2276 # the compiler is broken, or we cross compile.
2277 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2278 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2279 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2280 echo "${ECHO_T}$cross_compiling" >&6
2282 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2283 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2285 (eval $ac_link) 2>&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; then
2289 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2290 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2291 # work properly (i.e., refer to `conftest.exe'), while it won't with
2293 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2295 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2296 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2303 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2304 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2305 { (exit 1); exit 1; }; }
2308 rm -f conftest$ac_cv_exeext
2309 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2310 echo "${ECHO_T}$ac_cv_exeext" >&6
2312 rm -f conftest.$ac_ext
2313 EXEEXT=$ac_cv_exeext
2315 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2316 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2317 if test "${ac_cv_objext+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 cat >conftest.$ac_ext <<_ACEOF
2321 #line $LINENO "configure"
2322 #include "confdefs.h"
2324 #ifdef F77_DUMMY_MAIN
2328 int F77_DUMMY_MAIN() { return 1; }
2338 rm -f conftest.o conftest.obj
2339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2340 (eval $ac_compile) 2>&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; then
2344 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2347 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2352 echo "$as_me: failed program was:" >&5
2353 cat conftest.$ac_ext >&5
2354 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2355 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2356 { (exit 1); exit 1; }; }
2359 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2361 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2362 echo "${ECHO_T}$ac_cv_objext" >&6
2363 OBJEXT=$ac_cv_objext
2365 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2366 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2367 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 cat >conftest.$ac_ext <<_ACEOF
2371 #line $LINENO "configure"
2372 #include "confdefs.h"
2374 #ifdef F77_DUMMY_MAIN
2378 int F77_DUMMY_MAIN() { return 1; }
2391 rm -f conftest.$ac_objext
2392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2393 (eval $ac_compile) 2>&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } &&
2397 { ac_try='test -s conftest.$ac_objext'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
2405 echo "$as_me: failed program was:" >&5
2406 cat conftest.$ac_ext >&5
2409 rm -f conftest.$ac_objext conftest.$ac_ext
2410 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2413 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2414 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2415 GCC=`test $ac_compiler_gnu = yes && echo yes`
2416 ac_test_CFLAGS=${CFLAGS+set}
2417 ac_save_CFLAGS=$CFLAGS
2419 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2420 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2421 if test "${ac_cv_prog_cc_g+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 cat >conftest.$ac_ext <<_ACEOF
2425 #line $LINENO "configure"
2426 #include "confdefs.h"
2428 #ifdef F77_DUMMY_MAIN
2432 int F77_DUMMY_MAIN() { return 1; }
2442 rm -f conftest.$ac_objext
2443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444 (eval $ac_compile) 2>&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); } &&
2448 { ac_try='test -s conftest.$ac_objext'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2456 echo "$as_me: failed program was:" >&5
2457 cat conftest.$ac_ext >&5
2460 rm -f conftest.$ac_objext conftest.$ac_ext
2462 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2463 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2464 if test "$ac_test_CFLAGS" = set; then
2465 CFLAGS=$ac_save_CFLAGS
2466 elif test $ac_cv_prog_cc_g = yes; then
2467 if test "$GCC" = yes; then
2473 if test "$GCC" = yes; then
2479 # Some people use a C++ compiler to compile C. Since we use `exit',
2480 # in C++ we need to declare it. In case someone uses the same compiler
2481 # for both compiling C and C++ we need to have the C++ compiler decide
2482 # the declaration of exit, since it's the most demanding environment.
2483 cat >conftest.$ac_ext <<_ACEOF
2488 rm -f conftest.$ac_objext
2489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2490 (eval $ac_compile) 2>&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); } &&
2494 { ac_try='test -s conftest.$ac_objext'
2495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; }; then
2500 for ac_declaration in \
2502 '#include <stdlib.h>' \
2503 'extern "C" void std::exit (int) throw (); using std::exit;' \
2504 'extern "C" void std::exit (int); using std::exit;' \
2505 'extern "C" void exit (int) throw ();' \
2506 'extern "C" void exit (int);' \
2509 cat >conftest.$ac_ext <<_ACEOF
2510 #line $LINENO "configure"
2511 #include "confdefs.h"
2514 #ifdef F77_DUMMY_MAIN
2518 int F77_DUMMY_MAIN() { return 1; }
2528 rm -f conftest.$ac_objext
2529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2530 (eval $ac_compile) 2>&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } &&
2534 { ac_try='test -s conftest.$ac_objext'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2542 echo "$as_me: failed program was:" >&5
2543 cat conftest.$ac_ext >&5
2546 rm -f conftest.$ac_objext conftest.$ac_ext
2547 cat >conftest.$ac_ext <<_ACEOF
2548 #line $LINENO "configure"
2549 #include "confdefs.h"
2551 #ifdef F77_DUMMY_MAIN
2555 int F77_DUMMY_MAIN() { return 1; }
2565 rm -f conftest.$ac_objext
2566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567 (eval $ac_compile) 2>&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; }; then
2579 echo "$as_me: failed program was:" >&5
2580 cat conftest.$ac_ext >&5
2582 rm -f conftest.$ac_objext conftest.$ac_ext
2585 if test -n "$ac_declaration"; then
2586 echo '#ifdef __cplusplus' >>confdefs.h
2587 echo $ac_declaration >>confdefs.h
2588 echo '#endif' >>confdefs.h
2592 echo "$as_me: failed program was:" >&5
2593 cat conftest.$ac_ext >&5
2595 rm -f conftest.$ac_objext conftest.$ac_ext
2597 ac_cpp='$CPP $CPPFLAGS'
2598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602 depcc="$CC" am_compiler_list=
2604 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2605 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2606 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2610 # We make a subdir and do the tests there. Otherwise we can end up
2611 # making bogus files that we don't know about and never remove. For
2612 # instance it was reported that on HP-UX the gcc test will end up
2613 # making a dummy file named `D' -- because `-MD' means `put the output
2616 # Copy depcomp to subdir because otherwise we won't find it if we're
2617 # using a relative directory.
2618 cp "$am_depcomp" conftest.dir
2621 am_cv_CC_dependencies_compiler_type=none
2622 if test "$am_compiler_list" = ""; then
2623 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2625 for depmode in $am_compiler_list; do
2626 # We need to recreate these files for each test, as the compiler may
2627 # overwrite some of them when testing with obscure command lines.
2628 # This happens at least with the AIX C compiler.
2629 echo '#include "conftest.h"' > conftest.c
2630 echo 'int i;' > conftest.h
2631 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2635 # after this tag, mechanisms are not by side-effect, so they'll
2636 # only be used when explicitly requested
2637 if test "x$enable_dependency_tracking" = xyes; then
2645 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2646 # mode. It turns out that the SunPro C++ compiler does not properly
2647 # handle `-M -o', and we need to detect this.
2648 if depmode=$depmode \
2649 source=conftest.c object=conftest.o \
2650 depfile=conftest.Po tmpdepfile=conftest.TPo \
2651 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2652 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2653 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2654 am_cv_CC_dependencies_compiler_type=$depmode
2662 am_cv_CC_dependencies_compiler_type=none
2666 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2667 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2668 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2672 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2673 if test "${with_gnu_ld+set}" = set; then
2674 withval="$with_gnu_ld"
2675 test "$withval" = no || with_gnu_ld=yes
2680 if test "$GCC" = yes; then
2681 # Check if gcc -print-prog-name=ld gives a path.
2682 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2683 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2686 # gcc leaves a trailing carriage return which upsets mingw
2687 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2689 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2692 # Accept absolute paths.
2693 [\\/]* | [A-Za-z]:[\\/]*)
2694 re_direlt='/[^/][^/]*/\.\./'
2695 # Canonicalize the path of ld
2696 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2697 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2698 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2700 test -z "$LD" && LD="$ac_prog"
2703 # If it fails, then pretend we aren't using GCC.
2707 # If it is relative, then search for the first ld in PATH.
2711 elif test "$with_gnu_ld" = yes; then
2712 echo "$as_me:$LINENO: checking for GNU ld" >&5
2713 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2715 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2716 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2718 if test "${lt_cv_path_LD+set}" = set; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2721 if test -z "$LD"; then
2722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2723 for ac_dir in $PATH; do
2724 test -z "$ac_dir" && ac_dir=.
2725 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2726 lt_cv_path_LD="$ac_dir/$ac_prog"
2727 # Check to see if the program is GNU ld. I'd rather use --version,
2728 # but apparently some GNU ld's only accept -v.
2729 # Break only if it was the GNU/non-GNU ld that we prefer.
2730 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2731 test "$with_gnu_ld" != no && break
2733 test "$with_gnu_ld" != yes && break
2739 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2744 if test -n "$LD"; then
2745 echo "$as_me:$LINENO: result: $LD" >&5
2746 echo "${ECHO_T}$LD" >&6
2748 echo "$as_me:$LINENO: result: no" >&5
2749 echo "${ECHO_T}no" >&6
2751 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2752 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2753 { (exit 1); exit 1; }; }
2754 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2755 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2756 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2760 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2761 lt_cv_prog_gnu_ld=yes
2763 lt_cv_prog_gnu_ld=no
2766 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2767 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2768 with_gnu_ld=$lt_cv_prog_gnu_ld
2771 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2772 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2773 if test "${lt_cv_ld_reload_flag+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 lt_cv_ld_reload_flag='-r'
2778 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2779 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2780 reload_flag=$lt_cv_ld_reload_flag
2781 test -n "$reload_flag" && reload_flag=" $reload_flag"
2783 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2784 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2785 if test "${lt_cv_path_NM+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 if test -n "$NM"; then
2789 # Let the user override the test.
2792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2793 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2794 test -z "$ac_dir" && ac_dir=.
2795 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2796 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2797 # Check to see if the nm accepts a BSD-compat flag.
2798 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2799 # nm: unknown option "B" ignored
2800 # Tru64's nm complains that /dev/null is an invalid object file
2801 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2802 lt_cv_path_NM="$tmp_nm -B"
2804 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2805 lt_cv_path_NM="$tmp_nm -p"
2808 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2809 continue # so that we can try to find one that supports BSD flags
2814 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2819 echo "$as_me:$LINENO: result: $NM" >&5
2820 echo "${ECHO_T}$NM" >&6
2822 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2823 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2825 if test "$LN_S" = "ln -s"; then
2826 echo "$as_me:$LINENO: result: yes" >&5
2827 echo "${ECHO_T}yes" >&6
2829 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2830 echo "${ECHO_T}no, using $LN_S" >&6
2833 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2834 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2835 if test "${lt_cv_deplibs_check_method+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 lt_cv_file_magic_cmd='$MAGIC_CMD'
2839 lt_cv_file_magic_test_file=
2840 lt_cv_deplibs_check_method='unknown'
2841 # Need to set the preceding variable on all platforms that support
2842 # interlibrary dependencies.
2843 # 'none' -- dependencies not supported.
2844 # `unknown' -- same as none, but documents that we really don't know.
2845 # 'pass_all' -- all dependencies passed with no checks.
2846 # 'test_compile' -- check by making test program.
2847 # 'file_magic [regex]' -- check by looking for files in library path
2848 # which responds to the $file_magic_cmd with a given egrep regex.
2849 # If you have `file' or equivalent on your system and you're not sure
2850 # whether `pass_all' will *always* work, you probably want this one.
2854 lt_cv_deplibs_check_method=pass_all
2858 lt_cv_deplibs_check_method=pass_all
2862 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2863 lt_cv_file_magic_cmd='/usr/bin/file -L'
2864 lt_cv_file_magic_test_file=/shlib/libc.so
2867 cygwin* | mingw* |pw32*)
2868 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2869 lt_cv_file_magic_cmd='$OBJDUMP -f'
2872 darwin* | rhapsody*)
2873 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2874 lt_cv_file_magic_cmd='/usr/bin/file -L'
2876 rhapsody* | darwin1.012)
2877 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2880 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2886 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2889 # Not sure whether the presence of OpenBSD here was a mistake.
2890 # Let's accept both of them until this is cleared up.
2891 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2892 lt_cv_file_magic_cmd=/usr/bin/file
2893 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2897 lt_cv_deplibs_check_method=pass_all
2902 lt_cv_deplibs_check_method=pass_all
2908 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2909 lt_cv_file_magic_cmd=/usr/bin/file
2910 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2913 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2914 lt_cv_file_magic_cmd=/usr/bin/file
2915 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2923 # this will be overridden with pass_all, but let us keep it just in case
2924 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2928 *-32|*"-32 ") libmagic=32-bit;;
2929 *-n32|*"-n32 ") libmagic=N32;;
2930 *-64|*"-64 ") libmagic=64-bit;;
2931 *) libmagic=never-match;;
2933 # this will be overridden with pass_all, but let us keep it just in case
2934 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2937 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2938 lt_cv_deplibs_check_method=pass_all
2941 # This must be Linux ELF.
2944 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2945 lt_cv_deplibs_check_method=pass_all ;;
2947 # glibc up to 2.1.1 does not perform some relocations on ARM
2948 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2950 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2954 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2955 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2957 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2963 lt_cv_file_magic_cmd=/usr/bin/file
2964 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2967 osf3* | osf4* | osf5*)
2968 # this will be overridden with pass_all, but let us keep it just in case
2969 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2970 lt_cv_file_magic_test_file=/shlib/libc.so
2971 lt_cv_deplibs_check_method=pass_all
2975 lt_cv_deplibs_check_method=pass_all
2979 lt_cv_deplibs_check_method=pass_all
2980 lt_cv_file_magic_test_file=/lib/libc.so
2983 sysv5uw[78]* | sysv4*uw2*)
2984 lt_cv_deplibs_check_method=pass_all
2987 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2988 case $host_vendor in
2990 lt_cv_deplibs_check_method=pass_all
2993 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]'
2994 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3001 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3002 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3003 file_magic_cmd=$lt_cv_file_magic_cmd
3004 deplibs_check_method=$lt_cv_deplibs_check_method
3010 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3012 # Only perform the check for file, if the check method requires it
3013 case $deplibs_check_method in
3015 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3016 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3017 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3018 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3026 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3029 ac_save_MAGIC_CMD="$MAGIC_CMD"
3030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3031 ac_dummy="/usr/bin:$PATH"
3032 for ac_dir in $ac_dummy; do
3033 test -z "$ac_dir" && ac_dir=.
3034 if test -f $ac_dir/${ac_tool_prefix}file; then
3035 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3036 if test -n "$file_magic_test_file"; then
3037 case $deplibs_check_method in
3039 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3040 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3041 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3042 egrep "$file_magic_regex" > /dev/null; then
3047 *** Warning: the command libtool uses to detect shared libraries,
3048 *** $file_magic_cmd, produces output that libtool cannot recognize.
3049 *** The result is that libtool may fail to recognize shared libraries
3050 *** as such. This will affect the creation of libtool libraries that
3051 *** depend on shared libraries, but programs linked with such libtool
3052 *** libraries will work regardless of this problem. Nevertheless, you
3053 *** may want to report the problem to your system manager and/or to
3054 *** bug-libtool@gnu.org
3064 MAGIC_CMD="$ac_save_MAGIC_CMD"
3069 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3070 if test -n "$MAGIC_CMD"; then
3071 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3072 echo "${ECHO_T}$MAGIC_CMD" >&6
3074 echo "$as_me:$LINENO: result: no" >&5
3075 echo "${ECHO_T}no" >&6
3078 if test -z "$lt_cv_path_MAGIC_CMD"; then
3079 if test -n "$ac_tool_prefix"; then
3080 echo "$as_me:$LINENO: checking for file" >&5
3081 echo $ECHO_N "checking for file... $ECHO_C" >&6
3082 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3090 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3093 ac_save_MAGIC_CMD="$MAGIC_CMD"
3094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3095 ac_dummy="/usr/bin:$PATH"
3096 for ac_dir in $ac_dummy; do
3097 test -z "$ac_dir" && ac_dir=.
3098 if test -f $ac_dir/file; then
3099 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3100 if test -n "$file_magic_test_file"; then
3101 case $deplibs_check_method in
3103 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3104 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3105 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3106 egrep "$file_magic_regex" > /dev/null; then
3111 *** Warning: the command libtool uses to detect shared libraries,
3112 *** $file_magic_cmd, produces output that libtool cannot recognize.
3113 *** The result is that libtool may fail to recognize shared libraries
3114 *** as such. This will affect the creation of libtool libraries that
3115 *** depend on shared libraries, but programs linked with such libtool
3116 *** libraries will work regardless of this problem. Nevertheless, you
3117 *** may want to report the problem to your system manager and/or to
3118 *** bug-libtool@gnu.org
3128 MAGIC_CMD="$ac_save_MAGIC_CMD"
3133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3134 if test -n "$MAGIC_CMD"; then
3135 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3136 echo "${ECHO_T}$MAGIC_CMD" >&6
3138 echo "$as_me:$LINENO: result: no" >&5
3139 echo "${ECHO_T}no" >&6
3151 if test -n "$ac_tool_prefix"; then
3152 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3153 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3154 echo "$as_me:$LINENO: checking for $ac_word" >&5
3155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3156 if test "${ac_cv_prog_RANLIB+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 if test -n "$RANLIB"; then
3160 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3169 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 RANLIB=$ac_cv_prog_RANLIB
3179 if test -n "$RANLIB"; then
3180 echo "$as_me:$LINENO: result: $RANLIB" >&5
3181 echo "${ECHO_T}$RANLIB" >&6
3183 echo "$as_me:$LINENO: result: no" >&5
3184 echo "${ECHO_T}no" >&6
3188 if test -z "$ac_cv_prog_RANLIB"; then
3189 ac_ct_RANLIB=$RANLIB
3190 # Extract the first word of "ranlib", so it can be a program name with args.
3191 set dummy ranlib; ac_word=$2
3192 echo "$as_me:$LINENO: checking for $ac_word" >&5
3193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3194 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 if test -n "$ac_ct_RANLIB"; then
3198 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3207 ac_cv_prog_ac_ct_RANLIB="ranlib"
3208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3217 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3218 if test -n "$ac_ct_RANLIB"; then
3219 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3220 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3222 echo "$as_me:$LINENO: result: no" >&5
3223 echo "${ECHO_T}no" >&6
3226 RANLIB=$ac_ct_RANLIB
3228 RANLIB="$ac_cv_prog_RANLIB"
3231 if test -n "$ac_tool_prefix"; then
3232 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3233 set dummy ${ac_tool_prefix}strip; ac_word=$2
3234 echo "$as_me:$LINENO: checking for $ac_word" >&5
3235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3236 if test "${ac_cv_prog_STRIP+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 if test -n "$STRIP"; then
3240 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 test -z "$as_dir" && as_dir=.
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3249 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 STRIP=$ac_cv_prog_STRIP
3259 if test -n "$STRIP"; then
3260 echo "$as_me:$LINENO: result: $STRIP" >&5
3261 echo "${ECHO_T}$STRIP" >&6
3263 echo "$as_me:$LINENO: result: no" >&5
3264 echo "${ECHO_T}no" >&6
3268 if test -z "$ac_cv_prog_STRIP"; then
3270 # Extract the first word of "strip", so it can be a program name with args.
3271 set dummy strip; ac_word=$2
3272 echo "$as_me:$LINENO: checking for $ac_word" >&5
3273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3274 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 if test -n "$ac_ct_STRIP"; then
3278 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287 ac_cv_prog_ac_ct_STRIP="strip"
3288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3297 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3298 if test -n "$ac_ct_STRIP"; then
3299 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3300 echo "${ECHO_T}$ac_ct_STRIP" >&6
3302 echo "$as_me:$LINENO: result: no" >&5
3303 echo "${ECHO_T}no" >&6
3308 STRIP="$ac_cv_prog_STRIP"
3312 # Check for any special flags to pass to ltconfig.
3313 libtool_flags="--cache-file=$cache_file"
3314 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3315 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3316 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3317 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3318 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3321 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3322 if test "${enable_libtool_lock+set}" = set; then
3323 enableval="$enable_libtool_lock"
3326 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3327 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3330 # Check whether --with-pic or --without-pic was given.
3331 if test "${with_pic+set}" = set; then
3337 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3338 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3340 # Some flags need to be propagated to the compiler or linker for good
3344 # Find out which ABI we are using.
3345 echo '#line 3345 "configure"' > conftest.$ac_ext
3346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3347 (eval $ac_compile) 2>&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; then
3351 case `/usr/bin/file conftest.$ac_objext` in
3367 # Find out which ABI we are using.
3368 echo 'int i;' > conftest.$ac_ext
3369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3370 (eval $ac_compile) 2>&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; then
3374 case "`/usr/bin/file conftest.o`" in
3387 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3388 SAVE_CFLAGS="$CFLAGS"
3389 CFLAGS="$CFLAGS -belf"
3390 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3391 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3392 if test "${lt_cv_cc_needs_belf+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 ac_cpp='$CPP $CPPFLAGS'
3399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3403 cat >conftest.$ac_ext <<_ACEOF
3404 #line $LINENO "configure"
3405 #include "confdefs.h"
3407 #ifdef F77_DUMMY_MAIN
3411 int F77_DUMMY_MAIN() { return 1; }
3421 rm -f conftest.$ac_objext conftest$ac_exeext
3422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3423 (eval $ac_link) 2>&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } &&
3427 { ac_try='test -s conftest$ac_exeext'
3428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }; }; then
3433 lt_cv_cc_needs_belf=yes
3435 echo "$as_me: failed program was:" >&5
3436 cat conftest.$ac_ext >&5
3437 lt_cv_cc_needs_belf=no
3439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3441 ac_cpp='$CPP $CPPFLAGS'
3442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3448 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3449 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3450 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3451 CFLAGS="$SAVE_CFLAGS"
3459 # Save cache, so that ltconfig can load it
3460 cat >confcache <<\_ACEOF
3461 # This file is a shell script that caches the results of configure
3462 # tests run on this system so they can be shared between configure
3463 # scripts and configure runs, see configure's option --config-cache.
3464 # It is not useful on other systems. If it contains results you don't
3465 # want to keep, you may remove or edit it.
3467 # config.status only pays attention to the cache file if you give it
3468 # the --recheck option to rerun configure.
3470 # `ac_cv_env_foo' variables (set or unset) will be overriden when
3471 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3476 # The following way of writing the cache mishandles newlines in values,
3477 # but we know of no workaround that is simple, portable, and efficient.
3478 # So, don't put newlines in cache variables' values.
3479 # Ultrix sh set writes to stderr and can't be redirected directly,
3480 # and sets the high bit in the cache file unless we assign to the vars.
3483 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3485 # `set' does not quote correctly, so add quotes (double-quote
3486 # substitution turns \\\\ into \\, and sed turns \\ into \).
3489 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3492 # `set' quotes correctly as required by POSIX, so do not add quotes.
3494 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3501 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3503 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3505 if cmp -s $cache_file confcache; then :; else
3506 if test -w $cache_file; then
3507 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3508 cat confcache >$cache_file
3510 echo "not updating unwritable cache $cache_file"
3515 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3516 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3517 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3518 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3519 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3520 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3521 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
3522 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3523 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
3524 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3525 echo "$as_me: error: libtool configure failed" >&2;}
3526 { (exit 1); exit 1; }; }
3528 # Reload cache, that may have been modified by ltconfig
3529 if test -r "$cache_file"; then
3530 # Some versions of bash will fail to source /dev/null (special
3531 # files actually), so we avoid doing that.
3532 if test -f "$cache_file"; then
3533 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3534 echo "$as_me: loading cache $cache_file" >&6;}
3536 [\\/]* | ?:[\\/]* ) . $cache_file;;
3537 *) . ./$cache_file;;
3541 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3542 echo "$as_me: creating cache $cache_file" >&6;}
3547 # This can be used to rebuild libtool when needed
3548 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3550 # Always use our own libtool.
3551 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3553 # Redirect the config.log output again, so that the ltconfig log is not
3554 # clobbered by the next message.
3555 exec 5>>./config.log
3564 ac_cpp='$CPP $CPPFLAGS'
3565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571 ac_cpp='$CPP $CPPFLAGS'
3572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3576 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3577 # On Suns, sometimes $CPP names a directory.
3578 if test -n "$CPP" && test -d "$CPP"; then
3581 if test -z "$CPP"; then
3582 if test "${ac_cv_prog_CPP+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 # Double quotes because CPP needs to be expanded
3586 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3589 for ac_c_preproc_warn_flag in '' yes
3591 # Use a header file that comes with gcc, so configuring glibc
3592 # with a fresh cross-compiler works.
3593 # On the NeXT, cc -E runs the code through the compiler's parser,
3594 # not just through cpp. "Syntax error" is here to catch this case.
3595 cat >conftest.$ac_ext <<_ACEOF
3596 #line $LINENO "configure"
3597 #include "confdefs.h"
3601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3604 egrep -v '^ *\+' conftest.er1 >conftest.err
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } >/dev/null; then
3609 if test -s conftest.err; then
3610 ac_cpp_err=$ac_c_preproc_warn_flag
3617 if test -z "$ac_cpp_err"; then
3620 echo "$as_me: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3622 # Broken: fails on valid input.
3625 rm -f conftest.err conftest.$ac_ext
3627 # OK, works on sane cases. Now check whether non-existent headers
3628 # can be detected and how.
3629 cat >conftest.$ac_ext <<_ACEOF
3630 #line $LINENO "configure"
3631 #include "confdefs.h"
3632 #include <ac_nonexistent.h>
3634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3637 egrep -v '^ *\+' conftest.er1 >conftest.err
3639 cat conftest.err >&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } >/dev/null; then
3642 if test -s conftest.err; then
3643 ac_cpp_err=$ac_c_preproc_warn_flag
3650 if test -z "$ac_cpp_err"; then
3651 # Broken: success on invalid input.
3654 echo "$as_me: failed program was:" >&5
3655 cat conftest.$ac_ext >&5
3656 # Passes both tests.
3660 rm -f conftest.err conftest.$ac_ext
3663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3664 rm -f conftest.err conftest.$ac_ext
3665 if $ac_preproc_ok; then
3677 echo "$as_me:$LINENO: result: $CPP" >&5
3678 echo "${ECHO_T}$CPP" >&6
3680 for ac_c_preproc_warn_flag in '' yes
3682 # Use a header file that comes with gcc, so configuring glibc
3683 # with a fresh cross-compiler works.
3684 # On the NeXT, cc -E runs the code through the compiler's parser,
3685 # not just through cpp. "Syntax error" is here to catch this case.
3686 cat >conftest.$ac_ext <<_ACEOF
3687 #line $LINENO "configure"
3688 #include "confdefs.h"
3692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3695 egrep -v '^ *\+' conftest.er1 >conftest.err
3697 cat conftest.err >&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); } >/dev/null; then
3700 if test -s conftest.err; then
3701 ac_cpp_err=$ac_c_preproc_warn_flag
3708 if test -z "$ac_cpp_err"; then
3711 echo "$as_me: failed program was:" >&5
3712 cat conftest.$ac_ext >&5
3713 # Broken: fails on valid input.
3716 rm -f conftest.err conftest.$ac_ext
3718 # OK, works on sane cases. Now check whether non-existent headers
3719 # can be detected and how.
3720 cat >conftest.$ac_ext <<_ACEOF
3721 #line $LINENO "configure"
3722 #include "confdefs.h"
3723 #include <ac_nonexistent.h>
3725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3728 egrep -v '^ *\+' conftest.er1 >conftest.err
3730 cat conftest.err >&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } >/dev/null; then
3733 if test -s conftest.err; then
3734 ac_cpp_err=$ac_c_preproc_warn_flag
3741 if test -z "$ac_cpp_err"; then
3742 # Broken: success on invalid input.
3745 echo "$as_me: failed program was:" >&5
3746 cat conftest.$ac_ext >&5
3747 # Passes both tests.
3751 rm -f conftest.err conftest.$ac_ext
3754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3755 rm -f conftest.err conftest.$ac_ext
3756 if $ac_preproc_ok; then
3759 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3760 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3761 { (exit 1); exit 1; }; }
3765 ac_cpp='$CPP $CPPFLAGS'
3766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3772 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3773 if test "${ac_cv_header_stdc+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 cat >conftest.$ac_ext <<_ACEOF
3777 #line $LINENO "configure"
3778 #include "confdefs.h"
3785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3788 egrep -v '^ *\+' conftest.er1 >conftest.err
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } >/dev/null; then
3793 if test -s conftest.err; then
3794 ac_cpp_err=$ac_c_preproc_warn_flag
3801 if test -z "$ac_cpp_err"; then
3802 ac_cv_header_stdc=yes
3804 echo "$as_me: failed program was:" >&5
3805 cat conftest.$ac_ext >&5
3806 ac_cv_header_stdc=no
3808 rm -f conftest.err conftest.$ac_ext
3810 if test $ac_cv_header_stdc = yes; then
3811 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3812 cat >conftest.$ac_ext <<_ACEOF
3813 #line $LINENO "configure"
3814 #include "confdefs.h"
3818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3819 egrep "memchr" >/dev/null 2>&1; then
3822 ac_cv_header_stdc=no
3828 if test $ac_cv_header_stdc = yes; then
3829 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3830 cat >conftest.$ac_ext <<_ACEOF
3831 #line $LINENO "configure"
3832 #include "confdefs.h"
3836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3837 egrep "free" >/dev/null 2>&1; then
3840 ac_cv_header_stdc=no
3846 if test $ac_cv_header_stdc = yes; then
3847 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3848 if test "$cross_compiling" = yes; then
3851 cat >conftest.$ac_ext <<_ACEOF
3852 #line $LINENO "configure"
3853 #include "confdefs.h"
3855 #if ((' ' & 0x0FF) == 0x020)
3856 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3857 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3859 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3860 || ('j' <= (c) && (c) <= 'r') \
3861 || ('s' <= (c) && (c) <= 'z'))
3862 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3865 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3870 for (i = 0; i < 256; i++)
3871 if (XOR (islower (i), ISLOWER (i))
3872 || toupper (i) != TOUPPER (i))
3877 rm -f conftest$ac_exeext
3878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3879 (eval $ac_link) 2>&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); }; }; then
3890 echo "$as_me: program exited with status $ac_status" >&5
3891 echo "$as_me: failed program was:" >&5
3892 cat conftest.$ac_ext >&5
3894 ac_cv_header_stdc=no
3896 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3900 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3901 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3902 if test $ac_cv_header_stdc = yes; then
3904 cat >>confdefs.h <<\_ACEOF
3905 #define STDC_HEADERS 1
3910 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3920 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3921 inttypes.h stdint.h unistd.h
3923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3924 echo "$as_me:$LINENO: checking for $ac_header" >&5
3925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 cat >conftest.$ac_ext <<_ACEOF
3930 #line $LINENO "configure"
3931 #include "confdefs.h"
3932 $ac_includes_default
3934 #include <$ac_header>
3936 rm -f conftest.$ac_objext
3937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3938 (eval $ac_compile) 2>&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } &&
3942 { ac_try='test -s conftest.$ac_objext'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; }; then
3948 eval "$as_ac_Header=yes"
3950 echo "$as_me: failed program was:" >&5
3951 cat conftest.$ac_ext >&5
3952 eval "$as_ac_Header=no"
3954 rm -f conftest.$ac_objext conftest.$ac_ext
3956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3959 cat >>confdefs.h <<_ACEOF
3960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3969 for ac_header in sys/time.h
3971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3973 echo "$as_me:$LINENO: checking for $ac_header" >&5
3974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3981 # Is the header compilable?
3982 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3984 cat >conftest.$ac_ext <<_ACEOF
3985 #line $LINENO "configure"
3986 #include "confdefs.h"
3987 $ac_includes_default
3988 #include <$ac_header>
3990 rm -f conftest.$ac_objext
3991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3992 (eval $ac_compile) 2>&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } &&
3996 { ac_try='test -s conftest.$ac_objext'
3997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }; }; then
4002 ac_header_compiler=yes
4004 echo "$as_me: failed program was:" >&5
4005 cat conftest.$ac_ext >&5
4006 ac_header_compiler=no
4008 rm -f conftest.$ac_objext conftest.$ac_ext
4009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4010 echo "${ECHO_T}$ac_header_compiler" >&6
4012 # Is the header present?
4013 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4015 cat >conftest.$ac_ext <<_ACEOF
4016 #line $LINENO "configure"
4017 #include "confdefs.h"
4018 #include <$ac_header>
4020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4023 egrep -v '^ *\+' conftest.er1 >conftest.err
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } >/dev/null; then
4028 if test -s conftest.err; then
4029 ac_cpp_err=$ac_c_preproc_warn_flag
4036 if test -z "$ac_cpp_err"; then
4037 ac_header_preproc=yes
4039 echo "$as_me: failed program was:" >&5
4040 cat conftest.$ac_ext >&5
4041 ac_header_preproc=no
4043 rm -f conftest.err conftest.$ac_ext
4044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4045 echo "${ECHO_T}$ac_header_preproc" >&6
4047 # So? What about this header?
4048 case $ac_header_compiler:$ac_header_preproc in
4050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4055 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4056 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4057 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4058 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4062 echo "$as_me:$LINENO: checking for $ac_header" >&5
4063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 eval "$as_ac_Header=$ac_header_preproc"
4069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4074 cat >>confdefs.h <<_ACEOF
4075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4082 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4083 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4084 if test "${ac_cv_header_time+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4087 cat >conftest.$ac_ext <<_ACEOF
4088 #line $LINENO "configure"
4089 #include "confdefs.h"
4090 #include <sys/types.h>
4091 #include <sys/time.h>
4094 #ifdef F77_DUMMY_MAIN
4098 int F77_DUMMY_MAIN() { return 1; }
4103 if ((struct tm *) 0)
4109 rm -f conftest.$ac_objext
4110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4111 (eval $ac_compile) 2>&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } &&
4115 { ac_try='test -s conftest.$ac_objext'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; }; then
4121 ac_cv_header_time=yes
4123 echo "$as_me: failed program was:" >&5
4124 cat conftest.$ac_ext >&5
4125 ac_cv_header_time=no
4127 rm -f conftest.$ac_objext conftest.$ac_ext
4129 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4130 echo "${ECHO_T}$ac_cv_header_time" >&6
4131 if test $ac_cv_header_time = yes; then
4133 cat >>confdefs.h <<\_ACEOF
4134 #define TIME_WITH_SYS_TIME 1
4140 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4141 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4142 if test "${ac_cv_c_bigendian+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 # See if sys/param.h defines the BYTE_ORDER macro.
4146 cat >conftest.$ac_ext <<_ACEOF
4147 #line $LINENO "configure"
4148 #include "confdefs.h"
4149 #include <sys/types.h>
4150 #include <sys/param.h>
4152 #ifdef F77_DUMMY_MAIN
4156 int F77_DUMMY_MAIN() { return 1; }
4161 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4169 rm -f conftest.$ac_objext
4170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4171 (eval $ac_compile) 2>&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } &&
4175 { ac_try='test -s conftest.$ac_objext'
4176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; }; then
4181 # It does; now see whether it defined to BIG_ENDIAN or not.
4182 cat >conftest.$ac_ext <<_ACEOF
4183 #line $LINENO "configure"
4184 #include "confdefs.h"
4185 #include <sys/types.h>
4186 #include <sys/param.h>
4188 #ifdef F77_DUMMY_MAIN
4192 int F77_DUMMY_MAIN() { return 1; }
4197 #if BYTE_ORDER != BIG_ENDIAN
4205 rm -f conftest.$ac_objext
4206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4207 (eval $ac_compile) 2>&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } &&
4211 { ac_try='test -s conftest.$ac_objext'
4212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
4217 ac_cv_c_bigendian=yes
4219 echo "$as_me: failed program was:" >&5
4220 cat conftest.$ac_ext >&5
4221 ac_cv_c_bigendian=no
4223 rm -f conftest.$ac_objext conftest.$ac_ext
4225 echo "$as_me: failed program was:" >&5
4226 cat conftest.$ac_ext >&5
4227 # It does not; compile a test program.
4228 if test "$cross_compiling" = yes; then
4229 # try to guess the endianess by grep'ing values into an object file
4230 ac_cv_c_bigendian=unknown
4231 cat >conftest.$ac_ext <<_ACEOF
4232 #line $LINENO "configure"
4233 #include "confdefs.h"
4234 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4235 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4236 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4237 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4238 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4239 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4240 #ifdef F77_DUMMY_MAIN
4244 int F77_DUMMY_MAIN() { return 1; }
4249 _ascii (); _ebcdic ();
4254 rm -f conftest.$ac_objext
4255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4256 (eval $ac_compile) 2>&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); } &&
4260 { ac_try='test -s conftest.$ac_objext'
4261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; }; then
4266 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4267 ac_cv_c_bigendian=yes
4269 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4270 if test "$ac_cv_c_bigendian" = unknown; then
4271 ac_cv_c_bigendian=no
4273 # finding both strings is unlikely to happen, but who knows?
4274 ac_cv_c_bigendian=unknown
4278 echo "$as_me: failed program was:" >&5
4279 cat conftest.$ac_ext >&5
4281 rm -f conftest.$ac_objext conftest.$ac_ext
4283 cat >conftest.$ac_ext <<_ACEOF
4284 #line $LINENO "configure"
4285 #include "confdefs.h"
4289 /* Are we little or big endian? From Harbison&Steele. */
4293 char c[sizeof (long)];
4296 exit (u.c[sizeof (long) - 1] == 1);
4299 rm -f conftest$ac_exeext
4300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4301 (eval $ac_link) 2>&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; }; then
4310 ac_cv_c_bigendian=no
4312 echo "$as_me: program exited with status $ac_status" >&5
4313 echo "$as_me: failed program was:" >&5
4314 cat conftest.$ac_ext >&5
4316 ac_cv_c_bigendian=yes
4318 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4321 rm -f conftest.$ac_objext conftest.$ac_ext
4323 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4324 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4325 case $ac_cv_c_bigendian in
4328 cat >>confdefs.h <<\_ACEOF
4329 #define WORDS_BIGENDIAN 1
4335 { { echo "$as_me:$LINENO: error: unknown endianess
4336 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4337 echo "$as_me: error: unknown endianess
4338 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4339 { (exit 1); exit 1; }; } ;;
4344 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4345 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4346 if test "${ac_cv_lib_socket_connect+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 ac_check_lib_save_LIBS=$LIBS
4350 LIBS="-lsocket $LIBS"
4351 cat >conftest.$ac_ext <<_ACEOF
4352 #line $LINENO "configure"
4353 #include "confdefs.h"
4355 /* Override any gcc2 internal prototype to avoid an error. */
4359 /* We use char because int might match the return type of a gcc2
4360 builtin and then its argument prototype would still apply. */
4362 #ifdef F77_DUMMY_MAIN
4366 int F77_DUMMY_MAIN() { return 1; }
4376 rm -f conftest.$ac_objext conftest$ac_exeext
4377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4378 (eval $ac_link) 2>&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } &&
4382 { ac_try='test -s conftest$ac_exeext'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; }; then
4388 ac_cv_lib_socket_connect=yes
4390 echo "$as_me: failed program was:" >&5
4391 cat conftest.$ac_ext >&5
4392 ac_cv_lib_socket_connect=no
4394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4395 LIBS=$ac_check_lib_save_LIBS
4397 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4398 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4399 if test $ac_cv_lib_socket_connect = yes; then
4400 cat >>confdefs.h <<_ACEOF
4401 #define HAVE_LIBSOCKET 1
4404 LIBS="-lsocket $LIBS"
4409 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4410 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4411 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 ac_check_lib_save_LIBS=$LIBS
4416 cat >conftest.$ac_ext <<_ACEOF
4417 #line $LINENO "configure"
4418 #include "confdefs.h"
4420 /* Override any gcc2 internal prototype to avoid an error. */
4424 /* We use char because int might match the return type of a gcc2
4425 builtin and then its argument prototype would still apply. */
4426 char gethostbyname ();
4427 #ifdef F77_DUMMY_MAIN
4431 int F77_DUMMY_MAIN() { return 1; }
4441 rm -f conftest.$ac_objext conftest$ac_exeext
4442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4443 (eval $ac_link) 2>&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } &&
4447 { ac_try='test -s conftest$ac_exeext'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; }; then
4453 ac_cv_lib_nsl_gethostbyname=yes
4455 echo "$as_me: failed program was:" >&5
4456 cat conftest.$ac_ext >&5
4457 ac_cv_lib_nsl_gethostbyname=no
4459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4460 LIBS=$ac_check_lib_save_LIBS
4462 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4463 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4464 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4465 cat >>confdefs.h <<_ACEOF
4466 #define HAVE_LIBNSL 1
4474 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
4475 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
4476 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 ac_check_lib_save_LIBS=$LIBS
4480 LIBS="-lresolv $LIBS"
4481 cat >conftest.$ac_ext <<_ACEOF
4482 #line $LINENO "configure"
4483 #include "confdefs.h"
4485 /* Override any gcc2 internal prototype to avoid an error. */
4489 /* We use char because int might match the return type of a gcc2
4490 builtin and then its argument prototype would still apply. */
4491 char gethostbyname ();
4492 #ifdef F77_DUMMY_MAIN
4496 int F77_DUMMY_MAIN() { return 1; }
4506 rm -f conftest.$ac_objext conftest$ac_exeext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4508 (eval $ac_link) 2>&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } &&
4512 { ac_try='test -s conftest$ac_exeext'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
4518 ac_cv_lib_resolv_gethostbyname=yes
4520 echo "$as_me: failed program was:" >&5
4521 cat conftest.$ac_ext >&5
4522 ac_cv_lib_resolv_gethostbyname=no
4524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4525 LIBS=$ac_check_lib_save_LIBS
4527 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
4528 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
4529 if test $ac_cv_lib_resolv_gethostbyname = yes; then
4530 cat >>confdefs.h <<_ACEOF
4531 #define HAVE_LIBRESOLV 1
4534 LIBS="-lresolv $LIBS"
4542 for ac_header in sys/socket.h netinet/in.h netinet/tcp.h arpa/inet.h
4544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4546 echo "$as_me:$LINENO: checking for $ac_header" >&5
4547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4554 # Is the header compilable?
4555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4557 cat >conftest.$ac_ext <<_ACEOF
4558 #line $LINENO "configure"
4559 #include "confdefs.h"
4560 $ac_includes_default
4561 #include <$ac_header>
4563 rm -f conftest.$ac_objext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565 (eval $ac_compile) 2>&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } &&
4569 { ac_try='test -s conftest.$ac_objext'
4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; }; then
4575 ac_header_compiler=yes
4577 echo "$as_me: failed program was:" >&5
4578 cat conftest.$ac_ext >&5
4579 ac_header_compiler=no
4581 rm -f conftest.$ac_objext conftest.$ac_ext
4582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4583 echo "${ECHO_T}$ac_header_compiler" >&6
4585 # Is the header present?
4586 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4588 cat >conftest.$ac_ext <<_ACEOF
4589 #line $LINENO "configure"
4590 #include "confdefs.h"
4591 #include <$ac_header>
4593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4596 egrep -v '^ *\+' conftest.er1 >conftest.err
4598 cat conftest.err >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } >/dev/null; then
4601 if test -s conftest.err; then
4602 ac_cpp_err=$ac_c_preproc_warn_flag
4609 if test -z "$ac_cpp_err"; then
4610 ac_header_preproc=yes
4612 echo "$as_me: failed program was:" >&5
4613 cat conftest.$ac_ext >&5
4614 ac_header_preproc=no
4616 rm -f conftest.err conftest.$ac_ext
4617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4618 echo "${ECHO_T}$ac_header_preproc" >&6
4620 # So? What about this header?
4621 case $ac_header_compiler:$ac_header_preproc in
4623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4631 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4635 echo "$as_me:$LINENO: checking for $ac_header" >&5
4636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 eval "$as_ac_Header=$ac_header_preproc"
4642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4647 cat >>confdefs.h <<_ACEOF
4648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4656 # NOTE: Don't add -Wall or -Wunused, they both include
4657 # -Wunused-parameter which reports bogus warnings.
4658 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
4659 -Wformat -Wparentheses -Wpointer-arith"
4660 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
4661 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
4662 # -Wchar-subscripts -Wuninitialized -Wtraditional -Wshadow -Wcast-qual
4663 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
4664 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
4665 # -Woverloaded-virtual -Winline -Werror"
4666 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4667 if test "${enable_build_warnings+set}" = set; then
4668 enableval="$enable_build_warnings"
4669 case "${enableval}" in
4671 no) build_warnings="-w";;
4672 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4673 build_warnings="${build_warnings} ${t}";;
4674 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4675 build_warnings="${t} ${build_warnings}";;
4676 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4678 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4679 echo "Setting compiler warning flags = $build_warnings" 6>&1
4681 fi; # Check whether --enable-rda-build-warnings or --disable-rda-build-warnings was given.
4682 if test "${enable_rda_build_warnings+set}" = set; then
4683 enableval="$enable_rda_build_warnings"
4684 case "${enableval}" in
4686 no) build_warnings="-w";;
4687 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4688 build_warnings="${build_warnings} ${t}";;
4689 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4690 build_warnings="${t} ${build_warnings}";;
4691 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4693 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4694 echo "Setting LIBREMOTE specific compiler warning flags = $build_warnings" 6>&1
4698 if test "x${build_warnings}" != x -a "x$GCC" = xyes
4700 echo "$as_me:$LINENO: checking compiler warning flags" >&5
4701 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
4702 # Separate out the -Werror flag as some files just cannot be
4703 # compiled with it enabled.
4704 for w in ${build_warnings}; do
4706 -Werr*) WERROR_CFLAGS=-Werror ;;
4707 *) # Check that GCC accepts it
4708 if $CC $w 2>&1 | grep 'unrecognized option' > /dev/null; then
4711 WARN_CFLAGS="${WARN_CFLAGS} $w"
4715 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
4716 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
4721 # Add target dependent subdirectories here
4726 *linux*) targ_subdirs="$targ_subdirs unix" ;;
4735 subdirs="$subdirs $targ_subdirs"
4739 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4740 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4741 # Check whether --enable-nls or --disable-nls was given.
4742 if test "${enable_nls+set}" = set; then
4743 enableval="$enable_nls"
4748 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4749 echo "${ECHO_T}$USE_NLS" >&6
4752 USE_INCLUDED_LIBINTL=no
4754 if test "$USE_NLS" = "yes"; then
4756 cat >>confdefs.h <<\_ACEOF
4757 #define ENABLE_NLS 1
4760 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4761 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4763 # Check whether --with-included-gettext or --without-included-gettext was given.
4764 if test "${with_included_gettext+set}" = set; then
4765 withval="$with_included_gettext"
4766 nls_cv_force_use_gnu_gettext=$withval
4768 nls_cv_force_use_gnu_gettext=no
4770 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4771 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4773 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4774 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4776 nls_cv_header_libgt=
4779 if test "${ac_cv_header_libintl_h+set}" = set; then
4780 echo "$as_me:$LINENO: checking for libintl.h" >&5
4781 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4782 if test "${ac_cv_header_libintl_h+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4786 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4788 # Is the header compilable?
4789 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4790 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4791 cat >conftest.$ac_ext <<_ACEOF
4792 #line $LINENO "configure"
4793 #include "confdefs.h"
4794 $ac_includes_default
4795 #include <libintl.h>
4797 rm -f conftest.$ac_objext
4798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4799 (eval $ac_compile) 2>&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } &&
4803 { ac_try='test -s conftest.$ac_objext'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; }; then
4809 ac_header_compiler=yes
4811 echo "$as_me: failed program was:" >&5
4812 cat conftest.$ac_ext >&5
4813 ac_header_compiler=no
4815 rm -f conftest.$ac_objext conftest.$ac_ext
4816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4817 echo "${ECHO_T}$ac_header_compiler" >&6
4819 # Is the header present?
4820 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4821 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4822 cat >conftest.$ac_ext <<_ACEOF
4823 #line $LINENO "configure"
4824 #include "confdefs.h"
4825 #include <libintl.h>
4827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4830 egrep -v '^ *\+' conftest.er1 >conftest.err
4832 cat conftest.err >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } >/dev/null; then
4835 if test -s conftest.err; then
4836 ac_cpp_err=$ac_c_preproc_warn_flag
4843 if test -z "$ac_cpp_err"; then
4844 ac_header_preproc=yes
4846 echo "$as_me: failed program was:" >&5
4847 cat conftest.$ac_ext >&5
4848 ac_header_preproc=no
4850 rm -f conftest.err conftest.$ac_ext
4851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4852 echo "${ECHO_T}$ac_header_preproc" >&6
4854 # So? What about this header?
4855 case $ac_header_compiler:$ac_header_preproc in
4857 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4858 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4859 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4860 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
4862 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4863 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4864 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4865 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4866 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4867 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
4869 echo "$as_me:$LINENO: checking for libintl.h" >&5
4870 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4871 if test "${ac_cv_header_libintl_h+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 ac_cv_header_libintl_h=$ac_header_preproc
4876 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4877 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4880 if test $ac_cv_header_libintl_h = yes; then
4881 echo "$as_me:$LINENO: checking for gettext in libc" >&5
4882 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
4883 if test "${gt_cv_func_gettext_libc+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 cat >conftest.$ac_ext <<_ACEOF
4887 #line $LINENO "configure"
4888 #include "confdefs.h"
4889 #include <libintl.h>
4890 #ifdef F77_DUMMY_MAIN
4894 int F77_DUMMY_MAIN() { return 1; }
4899 return (int) gettext ("")
4904 rm -f conftest.$ac_objext conftest$ac_exeext
4905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4906 (eval $ac_link) 2>&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } &&
4910 { ac_try='test -s conftest$ac_exeext'
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; }; then
4916 gt_cv_func_gettext_libc=yes
4918 echo "$as_me: failed program was:" >&5
4919 cat conftest.$ac_ext >&5
4920 gt_cv_func_gettext_libc=no
4922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4924 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
4925 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
4927 if test "$gt_cv_func_gettext_libc" != "yes"; then
4928 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
4929 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
4930 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 ac_check_lib_save_LIBS=$LIBS
4935 cat >conftest.$ac_ext <<_ACEOF
4936 #line $LINENO "configure"
4937 #include "confdefs.h"
4939 /* Override any gcc2 internal prototype to avoid an error. */
4943 /* We use char because int might match the return type of a gcc2
4944 builtin and then its argument prototype would still apply. */
4945 char bindtextdomain ();
4946 #ifdef F77_DUMMY_MAIN
4950 int F77_DUMMY_MAIN() { return 1; }
4960 rm -f conftest.$ac_objext conftest$ac_exeext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4962 (eval $ac_link) 2>&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } &&
4966 { ac_try='test -s conftest$ac_exeext'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; }; then
4972 ac_cv_lib_intl_bindtextdomain=yes
4974 echo "$as_me: failed program was:" >&5
4975 cat conftest.$ac_ext >&5
4976 ac_cv_lib_intl_bindtextdomain=no
4978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4979 LIBS=$ac_check_lib_save_LIBS
4981 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
4982 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
4983 if test $ac_cv_lib_intl_bindtextdomain = yes; then
4984 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
4985 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
4986 if test "${gt_cv_func_gettext_libintl+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 cat >conftest.$ac_ext <<_ACEOF
4990 #line $LINENO "configure"
4991 #include "confdefs.h"
4993 #ifdef F77_DUMMY_MAIN
4997 int F77_DUMMY_MAIN() { return 1; }
5002 return (int) gettext ("")
5007 rm -f conftest.$ac_objext conftest$ac_exeext
5008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5009 (eval $ac_link) 2>&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } &&
5013 { ac_try='test -s conftest$ac_exeext'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; }; then
5019 gt_cv_func_gettext_libintl=yes
5021 echo "$as_me: failed program was:" >&5
5022 cat conftest.$ac_ext >&5
5023 gt_cv_func_gettext_libintl=no
5025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5027 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5028 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5033 if test "$gt_cv_func_gettext_libc" = "yes" \
5034 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5036 cat >>confdefs.h <<\_ACEOF
5037 #define HAVE_GETTEXT 1
5040 # Extract the first word of "msgfmt", so it can be a program name with args.
5041 set dummy msgfmt; ac_word=$2
5042 echo "$as_me:$LINENO: checking for $ac_word" >&5
5043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5044 if test "${ac_cv_path_MSGFMT+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5049 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5052 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5053 for ac_dir in $PATH; do
5054 test -z "$ac_dir" && ac_dir=.
5055 if test -f $ac_dir/$ac_word; then
5056 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5057 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5063 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5067 MSGFMT="$ac_cv_path_MSGFMT"
5068 if test -n "$MSGFMT"; then
5069 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5070 echo "${ECHO_T}$MSGFMT" >&6
5072 echo "$as_me:$LINENO: result: no" >&5
5073 echo "${ECHO_T}no" >&6
5075 if test "$MSGFMT" != "no"; then
5077 for ac_func in dcgettext
5079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5080 echo "$as_me:$LINENO: checking for $ac_func" >&5
5081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5082 if eval "test \"\${$as_ac_var+set}\" = set"; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 cat >conftest.$ac_ext <<_ACEOF
5086 #line $LINENO "configure"
5087 #include "confdefs.h"
5088 /* System header to define __stub macros and hopefully few prototypes,
5089 which can conflict with char $ac_func (); below. */
5091 /* Override any gcc2 internal prototype to avoid an error. */
5095 /* We use char because int might match the return type of a gcc2
5096 builtin and then its argument prototype would still apply. */
5100 #ifdef F77_DUMMY_MAIN
5104 int F77_DUMMY_MAIN() { return 1; }
5109 /* The GNU C library defines this for functions which it implements
5110 to always fail with ENOSYS. Some functions are actually named
5111 something starting with __ and the normal name is an alias. */
5112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5122 rm -f conftest.$ac_objext conftest$ac_exeext
5123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5124 (eval $ac_link) 2>&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try='test -s conftest$ac_exeext'
5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; }; then
5134 eval "$as_ac_var=yes"
5136 echo "$as_me: failed program was:" >&5
5137 cat conftest.$ac_ext >&5
5138 eval "$as_ac_var=no"
5140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5143 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5144 if test `eval echo '${'$as_ac_var'}'` = yes; then
5145 cat >>confdefs.h <<_ACEOF
5146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5152 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5153 set dummy gmsgfmt; ac_word=$2
5154 echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5182 GMSGFMT=$ac_cv_path_GMSGFMT
5184 if test -n "$GMSGFMT"; then
5185 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5186 echo "${ECHO_T}$GMSGFMT" >&6
5188 echo "$as_me:$LINENO: result: no" >&5
5189 echo "${ECHO_T}no" >&6
5192 # Extract the first word of "xgettext", so it can be a program name with args.
5193 set dummy xgettext; ac_word=$2
5194 echo "$as_me:$LINENO: checking for $ac_word" >&5
5195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5196 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5205 for ac_dir in $PATH; do
5206 test -z "$ac_dir" && ac_dir=.
5207 if test -f $ac_dir/$ac_word; then
5208 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5209 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5215 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5219 XGETTEXT="$ac_cv_path_XGETTEXT"
5220 if test -n "$XGETTEXT"; then
5221 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5222 echo "${ECHO_T}$XGETTEXT" >&6
5224 echo "$as_me:$LINENO: result: no" >&5
5225 echo "${ECHO_T}no" >&6
5228 cat >conftest.$ac_ext <<_ACEOF
5229 #line $LINENO "configure"
5230 #include "confdefs.h"
5232 #ifdef F77_DUMMY_MAIN
5236 int F77_DUMMY_MAIN() { return 1; }
5241 extern int _nl_msg_cat_cntr;
5242 return _nl_msg_cat_cntr
5247 rm -f conftest.$ac_objext conftest$ac_exeext
5248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5249 (eval $ac_link) 2>&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } &&
5253 { ac_try='test -s conftest$ac_exeext'
5254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; }; then
5262 echo "$as_me: failed program was:" >&5
5263 cat conftest.$ac_ext >&5
5267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5277 if test "$CATOBJEXT" = "NONE"; then
5278 nls_cv_use_gnu_gettext=yes
5282 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5283 INTLOBJS="\$(GETTOBJS)"
5284 # Extract the first word of "msgfmt", so it can be a program name with args.
5285 set dummy msgfmt; ac_word=$2
5286 echo "$as_me:$LINENO: checking for $ac_word" >&5
5287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5288 if test "${ac_cv_path_MSGFMT+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5296 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5297 for ac_dir in $PATH; do
5298 test -z "$ac_dir" && ac_dir=.
5299 if test -f $ac_dir/$ac_word; then
5300 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5301 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5307 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5311 MSGFMT="$ac_cv_path_MSGFMT"
5312 if test -n "$MSGFMT"; then
5313 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5314 echo "${ECHO_T}$MSGFMT" >&6
5316 echo "$as_me:$LINENO: result: no" >&5
5317 echo "${ECHO_T}no" >&6
5320 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5321 set dummy gmsgfmt; ac_word=$2
5322 echo "$as_me:$LINENO: checking for $ac_word" >&5
5323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5324 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 test -z "$as_dir" && as_dir=.
5337 for ac_exec_ext in '' $ac_executable_extensions; do
5338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5339 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5350 GMSGFMT=$ac_cv_path_GMSGFMT
5352 if test -n "$GMSGFMT"; then
5353 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5354 echo "${ECHO_T}$GMSGFMT" >&6
5356 echo "$as_me:$LINENO: result: no" >&5
5357 echo "${ECHO_T}no" >&6
5360 # Extract the first word of "xgettext", so it can be a program name with args.
5361 set dummy xgettext; ac_word=$2
5362 echo "$as_me:$LINENO: checking for $ac_word" >&5
5363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5364 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5373 for ac_dir in $PATH; do
5374 test -z "$ac_dir" && ac_dir=.
5375 if test -f $ac_dir/$ac_word; then
5376 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5377 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5383 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5387 XGETTEXT="$ac_cv_path_XGETTEXT"
5388 if test -n "$XGETTEXT"; then
5389 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5390 echo "${ECHO_T}$XGETTEXT" >&6
5392 echo "$as_me:$LINENO: result: no" >&5
5393 echo "${ECHO_T}no" >&6
5397 USE_INCLUDED_LIBINTL=yes
5401 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5403 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5404 nls_cv_header_intl=libintl.h
5405 nls_cv_header_libgt=libgettext.h
5408 if test "$XGETTEXT" != ":"; then
5409 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5412 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5413 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5418 # We need to process the po/ directory.
5422 nls_cv_header_intl=libintl.h
5423 nls_cv_header_libgt=libgettext.h
5426 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5427 # because some of the sources are only built for this goal.
5428 if test "$PACKAGE" = gettext; then
5430 USE_INCLUDED_LIBINTL=yes
5433 for lang in $ALL_LINGUAS; do
5434 GMOFILES="$GMOFILES $lang.gmo"
5435 POFILES="$POFILES $lang.po"
5451 ac_config_files="$ac_config_files Makefile lib/Makefile samples/Makefile qe/Makefile"
5452 cat >confcache <<\_ACEOF
5453 # This file is a shell script that caches the results of configure
5454 # tests run on this system so they can be shared between configure
5455 # scripts and configure runs, see configure's option --config-cache.
5456 # It is not useful on other systems. If it contains results you don't
5457 # want to keep, you may remove or edit it.
5459 # config.status only pays attention to the cache file if you give it
5460 # the --recheck option to rerun configure.
5462 # `ac_cv_env_foo' variables (set or unset) will be overriden when
5463 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5468 # The following way of writing the cache mishandles newlines in values,
5469 # but we know of no workaround that is simple, portable, and efficient.
5470 # So, don't put newlines in cache variables' values.
5471 # Ultrix sh set writes to stderr and can't be redirected directly,
5472 # and sets the high bit in the cache file unless we assign to the vars.
5475 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5477 # `set' does not quote correctly, so add quotes (double-quote
5478 # substitution turns \\\\ into \\, and sed turns \\ into \).
5481 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5484 # `set' quotes correctly as required by POSIX, so do not add quotes.
5486 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5493 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5495 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5497 if cmp -s $cache_file confcache; then :; else
5498 if test -w $cache_file; then
5499 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5500 cat confcache >$cache_file
5502 echo "not updating unwritable cache $cache_file"
5507 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5508 # Let make expand exec_prefix.
5509 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5511 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5512 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5513 # trailing colons and then remove the whole line if VPATH becomes empty
5514 # (actually we leave an empty line to preserve line numbers).
5515 if test "x$srcdir" = x.; then
5516 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5517 s/:*\$(srcdir):*/:/;
5518 s/:*\${srcdir}:*/:/;
5520 s/^\([^=]*=[ ]*\):*/\1/;
5526 DEFS=-DHAVE_CONFIG_H
5528 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5529 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5530 Usually this means the macro was only invoked conditionally." >&5
5531 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5532 Usually this means the macro was only invoked conditionally." >&2;}
5533 { (exit 1); exit 1; }; }
5535 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5536 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5537 Usually this means the macro was only invoked conditionally." >&5
5538 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5539 Usually this means the macro was only invoked conditionally." >&2;}
5540 { (exit 1); exit 1; }; }
5543 : ${CONFIG_STATUS=./config.status}
5544 ac_clean_files_save=$ac_clean_files
5545 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5546 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5547 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5548 cat >$CONFIG_STATUS <<_ACEOF
5550 # Generated by $as_me.
5551 # Run this file to recreate the current configuration.
5552 # Compiler output produced by configure, useful for debugging
5553 # configure, is in config.log if it exists.
5556 SHELL=\${CONFIG_SHELL-$SHELL}
5559 cat >>$CONFIG_STATUS <<\_ACEOF
5561 ## --------------------- ##
5562 ## M4sh Initialization. ##
5563 ## --------------------- ##
5565 # Be Bourne compatible
5566 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5569 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5574 # Support unset when possible.
5575 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5581 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
5582 { $as_unset LANG || test "${LANG+set}" != set; } ||
5583 { LANG=C; export LANG; }
5584 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
5585 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
5586 { LC_ALL=C; export LC_ALL; }
5587 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
5588 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
5589 { LC_TIME=C; export LC_TIME; }
5590 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
5591 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
5592 { LC_CTYPE=C; export LC_CTYPE; }
5593 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
5594 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
5595 { LANGUAGE=C; export LANGUAGE; }
5596 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
5597 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
5598 { LC_COLLATE=C; export LC_COLLATE; }
5599 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
5600 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
5601 { LC_NUMERIC=C; export LC_NUMERIC; }
5602 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
5603 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
5604 { LC_MESSAGES=C; export LC_MESSAGES; }
5607 # Name of the executable.
5608 as_me=`(basename "$0") 2>/dev/null ||
5609 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5610 X"$0" : 'X\(//\)$' \| \
5611 X"$0" : 'X\(/\)$' \| \
5612 . : '\(.\)' 2>/dev/null ||
5614 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5615 /^X\/\(\/\/\)$/{ s//\1/; q; }
5616 /^X\/\(\/\).*/{ s//\1/; q; }
5619 # PATH needs CR, and LINENO needs CR and PATH.
5620 # Avoid depending upon Character Ranges.
5621 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5622 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5623 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5624 as_cr_digits='0123456789'
5625 as_cr_alnum=$as_cr_Letters$as_cr_digits
5627 # The user is always right.
5628 if test "${PATH_SEPARATOR+set}" != set; then
5629 echo "#! /bin/sh" >conftest.sh
5630 echo "exit 0" >>conftest.sh
5631 chmod +x conftest.sh
5632 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
5643 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5644 test "x$as_lineno_1" != "x$as_lineno_2" &&
5645 test "x$as_lineno_3" = "x$as_lineno_2" || {
5646 # Find who we are. Look in the path if we contain no path at all
5649 *[\\/]* ) as_myself=$0 ;;
5650 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 test -z "$as_dir" && as_dir=.
5655 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5660 # We did not find ourselves, most probably we were run as `sh COMMAND'
5661 # in which case we are not to be found in the path.
5662 if test "x$as_myself" = x; then
5665 if test ! -f "$as_myself"; then
5666 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5667 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5668 { (exit 1); exit 1; }; }
5670 case $CONFIG_SHELL in
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5676 test -z "$as_dir" && as_dir=.
5677 for as_base in sh bash ksh sh5; do
5680 if ("$as_dir/$as_base" -c '
5683 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5684 test "x$as_lineno_1" != "x$as_lineno_2" &&
5685 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5686 CONFIG_SHELL=$as_dir/$as_base
5688 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5696 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5697 # uniformly replaced by the line number. The first 'sed' inserts a
5698 # line-number line before each line; the second 'sed' does the real
5699 # work. The second script uses 'N' to pair each line-number line
5700 # with the numbered line, and appends trailing '-' during
5701 # substitution so that $LINENO is not a special case at line end.
5702 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5703 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5704 sed '=' <$as_myself |
5709 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5712 s,^['$as_cr_digits']*\n,,
5714 chmod +x $as_me.lineno ||
5715 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5716 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5717 { (exit 1); exit 1; }; }
5719 # Don't try to exec as it changes $[0], causing all sort of problems
5720 # (the dirname of $[0] is not the place where we might find the
5721 # original and so on. Autoconf is especially sensible to this).
5723 # Exit status is that of the last command.
5728 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5729 *c*,-n*) ECHO_N= ECHO_C='
5731 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5732 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5735 if expr a : '\(a\)' >/dev/null 2>&1; then
5741 rm -f conf$$ conf$$.exe conf$$.file
5743 if ln -s conf$$.file conf$$ 2>/dev/null; then
5744 # We could just check for DJGPP; but this test a) works b) is more generic
5745 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5746 if test -f conf$$.exe; then
5747 # Don't use ln at all; we don't have any links
5752 elif ln conf$$.file conf$$ 2>/dev/null; then
5757 rm -f conf$$ conf$$.exe conf$$.file
5759 as_executable_p="test -f"
5761 # Sed expression to map a string onto a valid CPP name.
5762 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5764 # Sed expression to map a string onto a valid variable name.
5765 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5769 # We need space, tab and new line, in precisely that order.
5775 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
5779 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5780 # report actual input values of CONFIG_FILES etc. instead of their
5781 # values after options handling. Logging --version etc. is OK.
5785 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5786 ## Running $as_me. ##
5791 This file was extended by $as_me, which was
5792 generated by GNU Autoconf 2.53. Invocation command line was
5794 CONFIG_FILES = $CONFIG_FILES
5795 CONFIG_HEADERS = $CONFIG_HEADERS
5796 CONFIG_LINKS = $CONFIG_LINKS
5797 CONFIG_COMMANDS = $CONFIG_COMMANDS
5801 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5805 # Files that config.status was made for.
5806 if test -n "$ac_config_files"; then
5807 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5810 if test -n "$ac_config_headers"; then
5811 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5814 if test -n "$ac_config_links"; then
5815 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5818 if test -n "$ac_config_commands"; then
5819 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5822 cat >>$CONFIG_STATUS <<\_ACEOF
5825 \`$as_me' instantiates files from templates according to the
5826 current configuration.
5828 Usage: $0 [OPTIONS] [FILE]...
5830 -h, --help print this help, then exit
5831 -V, --version print version number, then exit
5832 -d, --debug don't remove temporary files
5833 --recheck update $as_me by reconfiguring in the same conditions
5834 --file=FILE[:TEMPLATE]
5835 instantiate the configuration file FILE
5836 --header=FILE[:TEMPLATE]
5837 instantiate the configuration header FILE
5839 Configuration files:
5842 Configuration headers:
5845 Configuration commands:
5848 Report bugs to <bug-autoconf@gnu.org>."
5851 cat >>$CONFIG_STATUS <<_ACEOF
5854 configured by $0, generated by GNU Autoconf 2.53,
5855 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5857 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5858 Free Software Foundation, Inc.
5859 This config.status script is free software; the Free Software Foundation
5860 gives unlimited permission to copy, distribute and modify it."
5865 cat >>$CONFIG_STATUS <<\_ACEOF
5866 # If no file are specified by the user, then we need to provide default
5867 # value. By we need to know if files were specified by the user.
5873 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5874 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5876 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5880 *) # This is not an option, so the user has probably given explicit
5882 ac_need_defaults=false;;
5886 # Handling of the options.
5888 cat >>$CONFIG_STATUS <<_ACEOF
5889 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5890 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5891 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5893 cat >>$CONFIG_STATUS <<\_ACEOF
5894 --version | --vers* | -V )
5895 echo "$ac_cs_version"; exit 0 ;;
5897 # Conflict between --help and --header
5898 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5899 Try \`$0 --help' for more information." >&5
5900 echo "$as_me: error: ambiguous option: $1
5901 Try \`$0 --help' for more information." >&2;}
5902 { (exit 1); exit 1; }; };;
5903 --help | --hel | -h )
5904 echo "$ac_cs_usage"; exit 0 ;;
5905 --debug | --d* | -d )
5907 --file | --fil | --fi | --f )
5909 CONFIG_FILES="$CONFIG_FILES $1"
5910 ac_need_defaults=false;;
5911 --header | --heade | --head | --hea )
5913 CONFIG_HEADERS="$CONFIG_HEADERS $1"
5914 ac_need_defaults=false;;
5917 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5918 Try \`$0 --help' for more information." >&5
5919 echo "$as_me: error: unrecognized option: $1
5920 Try \`$0 --help' for more information." >&2;}
5921 { (exit 1); exit 1; }; } ;;
5923 *) ac_config_targets="$ac_config_targets $1" ;;
5931 cat >>$CONFIG_STATUS <<_ACEOF
5933 # INIT-COMMANDS section.
5936 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5942 cat >>$CONFIG_STATUS <<\_ACEOF
5943 for ac_config_target in $ac_config_targets
5945 case "$ac_config_target" in
5946 # Handling of arguments.
5947 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5948 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
5949 "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
5950 "qe/Makefile" ) CONFIG_FILES="$CONFIG_FILES qe/Makefile" ;;
5951 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5952 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
5953 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5954 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5955 { (exit 1); exit 1; }; };;
5959 # If the user did not use the arguments to specify the items to instantiate,
5960 # then the envvar interface is used. Set only those that are not.
5961 # We use the long form for the default assignment because of an extremely
5962 # bizarre bug on SunOS 4.1.3.
5963 if $ac_need_defaults; then
5964 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5965 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5966 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5969 # Create a temporary directory, and hook for its removal unless debugging.
5972 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5973 trap '{ (exit 1); exit 1; }' 1 2 13 15
5976 # Create a (secure) tmp directory for tmp files.
5979 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5980 test -n "$tmp" && test -d "$tmp"
5983 tmp=$TMPDIR/cs$$-$RANDOM
5984 (umask 077 && mkdir $tmp)
5987 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5988 { (exit 1); exit 1; }
5993 cat >>$CONFIG_STATUS <<_ACEOF
5996 # CONFIG_FILES section.
5999 # No need to generate the scripts if there are no CONFIG_FILES.
6000 # This happens for instance when ./config.status config.h
6001 if test -n "\$CONFIG_FILES"; then
6002 # Protect against being on the right side of a sed subst in config.status.
6003 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6004 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6005 s,@SHELL@,$SHELL,;t t
6006 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6007 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6008 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6009 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6010 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6011 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6012 s,@exec_prefix@,$exec_prefix,;t t
6013 s,@prefix@,$prefix,;t t
6014 s,@program_transform_name@,$program_transform_name,;t t
6015 s,@bindir@,$bindir,;t t
6016 s,@sbindir@,$sbindir,;t t
6017 s,@libexecdir@,$libexecdir,;t t
6018 s,@datadir@,$datadir,;t t
6019 s,@sysconfdir@,$sysconfdir,;t t
6020 s,@sharedstatedir@,$sharedstatedir,;t t
6021 s,@localstatedir@,$localstatedir,;t t
6022 s,@libdir@,$libdir,;t t
6023 s,@includedir@,$includedir,;t t
6024 s,@oldincludedir@,$oldincludedir,;t t
6025 s,@infodir@,$infodir,;t t
6026 s,@mandir@,$mandir,;t t
6027 s,@build_alias@,$build_alias,;t t
6028 s,@host_alias@,$host_alias,;t t
6029 s,@target_alias@,$target_alias,;t t
6031 s,@ECHO_C@,$ECHO_C,;t t
6032 s,@ECHO_N@,$ECHO_N,;t t
6033 s,@ECHO_T@,$ECHO_T,;t t
6035 s,@build@,$build,;t t
6036 s,@build_cpu@,$build_cpu,;t t
6037 s,@build_vendor@,$build_vendor,;t t
6038 s,@build_os@,$build_os,;t t
6040 s,@host_cpu@,$host_cpu,;t t
6041 s,@host_vendor@,$host_vendor,;t t
6042 s,@host_os@,$host_os,;t t
6043 s,@target@,$target,;t t
6044 s,@target_cpu@,$target_cpu,;t t
6045 s,@target_vendor@,$target_vendor,;t t
6046 s,@target_os@,$target_os,;t t
6047 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6048 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6049 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6050 s,@PACKAGE@,$PACKAGE,;t t
6051 s,@VERSION@,$VERSION,;t t
6052 s,@ACLOCAL@,$ACLOCAL,;t t
6053 s,@AUTOCONF@,$AUTOCONF,;t t
6054 s,@AUTOMAKE@,$AUTOMAKE,;t t
6055 s,@AUTOHEADER@,$AUTOHEADER,;t t
6056 s,@MAKEINFO@,$MAKEINFO,;t t
6057 s,@AMTAR@,$AMTAR,;t t
6058 s,@install_sh@,$install_sh,;t t
6059 s,@STRIP@,$STRIP,;t t
6060 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6061 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6063 s,@SET_MAKE@,$SET_MAKE,;t t
6064 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6065 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6066 s,@MAINT@,$MAINT,;t t
6068 s,@CFLAGS@,$CFLAGS,;t t
6069 s,@LDFLAGS@,$LDFLAGS,;t t
6070 s,@CPPFLAGS@,$CPPFLAGS,;t t
6071 s,@ac_ct_CC@,$ac_ct_CC,;t t
6072 s,@EXEEXT@,$EXEEXT,;t t
6073 s,@OBJEXT@,$OBJEXT,;t t
6074 s,@DEPDIR@,$DEPDIR,;t t
6075 s,@am__include@,$am__include,;t t
6076 s,@am__quote@,$am__quote,;t t
6077 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6078 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6079 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6080 s,@CCDEPMODE@,$CCDEPMODE,;t t
6082 s,@RANLIB@,$RANLIB,;t t
6083 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6084 s,@LIBTOOL@,$LIBTOOL,;t t
6086 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6087 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
6088 s,@subdirs@,$subdirs,;t t
6089 s,@targ_subdirs@,$targ_subdirs,;t t
6090 s,@USE_NLS@,$USE_NLS,;t t
6091 s,@MSGFMT@,$MSGFMT,;t t
6092 s,@GMSGFMT@,$GMSGFMT,;t t
6093 s,@XGETTEXT@,$XGETTEXT,;t t
6094 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
6095 s,@CATALOGS@,$CATALOGS,;t t
6096 s,@CATOBJEXT@,$CATOBJEXT,;t t
6097 s,@DATADIRNAME@,$DATADIRNAME,;t t
6098 s,@GMOFILES@,$GMOFILES,;t t
6099 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
6100 s,@INTLDEPS@,$INTLDEPS,;t t
6101 s,@INTLLIBS@,$INTLLIBS,;t t
6102 s,@INTLOBJS@,$INTLOBJS,;t t
6103 s,@POFILES@,$POFILES,;t t
6104 s,@POSUB@,$POSUB,;t t
6109 cat >>$CONFIG_STATUS <<\_ACEOF
6110 # Split the substitutions into bite-sized pieces for seds with
6111 # small command number limits, like on Digital OSF/1 and HP-UX.
6113 ac_sed_frag=1 # Number of current file.
6114 ac_beg=1 # First line for current file.
6115 ac_end=$ac_max_sed_lines # Line after last line for current file.
6118 while $ac_more_lines; do
6119 if test $ac_beg -gt 1; then
6120 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6122 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6124 if test ! -s $tmp/subs.frag; then
6127 # The purpose of the label and of the branching condition is to
6128 # speed up the sed processing (if there are no `@' at all, there
6129 # is no need to browse any of the substitutions).
6130 # These are the two extra sed commands mentioned above.
6132 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6133 if test -z "$ac_sed_cmds"; then
6134 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6136 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6138 ac_sed_frag=`expr $ac_sed_frag + 1`
6140 ac_end=`expr $ac_end + $ac_max_sed_lines`
6143 if test -z "$ac_sed_cmds"; then
6146 fi # test -n "$CONFIG_FILES"
6149 cat >>$CONFIG_STATUS <<\_ACEOF
6150 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6151 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6153 - | *:- | *:-:* ) # input from stdin
6155 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6156 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6157 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6158 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6159 * ) ac_file_in=$ac_file.in ;;
6162 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6163 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6164 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6165 X"$ac_file" : 'X\(//\)[^/]' \| \
6166 X"$ac_file" : 'X\(//\)$' \| \
6167 X"$ac_file" : 'X\(/\)' \| \
6168 . : '\(.\)' 2>/dev/null ||
6170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6171 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6172 /^X\(\/\/\)$/{ s//\1/; q; }
6173 /^X\(\/\).*/{ s//\1/; q; }
6176 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6180 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6181 case $as_mkdir_dir in
6182 # Skip DOS drivespec
6183 ?:) as_incr_dir=$as_mkdir_dir ;;
6185 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6186 test -d "$as_incr_dir" ||
6187 mkdir "$as_incr_dir" ||
6188 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6189 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6190 { (exit 1); exit 1; }; }
6197 if test "$ac_dir" != .; then
6198 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6199 # A "../" for each directory in $ac_dir_suffix.
6200 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6202 ac_dir_suffix= ac_top_builddir=
6206 .) # No --srcdir option. We are building in place.
6208 if test -z "$ac_top_builddir"; then
6211 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6213 [\\/]* | ?:[\\/]* ) # Absolute path.
6214 ac_srcdir=$srcdir$ac_dir_suffix;
6215 ac_top_srcdir=$srcdir ;;
6217 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6218 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6220 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6222 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6223 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
6224 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6225 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6229 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6230 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6233 if test x"$ac_file" != x-; then
6234 { echo "$as_me:$LINENO: creating $ac_file" >&5
6235 echo "$as_me: creating $ac_file" >&6;}
6238 # Let's still pretend it is `configure' which instantiates (i.e., don't
6239 # use $as_me), people would be surprised to read:
6240 # /* config.h. Generated by config.status. */
6241 if test x"$ac_file" = x-; then
6244 configure_input="$ac_file. "
6246 configure_input=$configure_input"Generated from `echo $ac_file_in |
6247 sed 's,.*/,,'` by configure."
6249 # First look for the input files in the build tree, otherwise in the
6251 ac_file_inputs=`IFS=:
6252 for f in $ac_file_in; do
6254 -) echo $tmp/stdin ;;
6256 # Absolute (can't be DOS-style, as IFS=:)
6257 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6258 echo "$as_me: error: cannot find input file: $f" >&2;}
6259 { (exit 1); exit 1; }; }
6262 if test -f "$f"; then
6265 elif test -f "$srcdir/$f"; then
6270 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6271 echo "$as_me: error: cannot find input file: $f" >&2;}
6272 { (exit 1); exit 1; }; }
6275 done` || { (exit 1); exit 1; }
6277 cat >>$CONFIG_STATUS <<_ACEOF
6281 cat >>$CONFIG_STATUS <<\_ACEOF
6283 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6284 s,@configure_input@,$configure_input,;t t
6285 s,@srcdir@,$ac_srcdir,;t t
6286 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6287 s,@top_srcdir@,$ac_top_srcdir,;t t
6288 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6289 s,@builddir@,$ac_builddir,;t t
6290 s,@abs_builddir@,$ac_abs_builddir,;t t
6291 s,@top_builddir@,$ac_top_builddir,;t t
6292 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6293 s,@INSTALL@,$ac_INSTALL,;t t
6294 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6296 if test x"$ac_file" != x-; then
6297 mv $tmp/out $ac_file
6305 cat >>$CONFIG_STATUS <<\_ACEOF
6308 # CONFIG_HEADER section.
6311 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6312 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6314 # ac_d sets the value in "#define NAME VALUE" lines.
6315 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6316 ac_dB='[ ].*$,\1#\2'
6319 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6320 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6321 ac_uB='$,\1#\2define\3'
6325 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6326 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6328 - | *:- | *:-:* ) # input from stdin
6330 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6331 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6332 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6333 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6334 * ) ac_file_in=$ac_file.in ;;
6337 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6338 echo "$as_me: creating $ac_file" >&6;}
6340 # First look for the input files in the build tree, otherwise in the
6342 ac_file_inputs=`IFS=:
6343 for f in $ac_file_in; do
6345 -) echo $tmp/stdin ;;
6347 # Absolute (can't be DOS-style, as IFS=:)
6348 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6349 echo "$as_me: error: cannot find input file: $f" >&2;}
6350 { (exit 1); exit 1; }; }
6353 if test -f "$f"; then
6356 elif test -f "$srcdir/$f"; then
6361 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6362 echo "$as_me: error: cannot find input file: $f" >&2;}
6363 { (exit 1); exit 1; }; }
6366 done` || { (exit 1); exit 1; }
6367 # Remove the trailing spaces.
6368 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6372 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6373 # `conftest.undefs', that substitutes the proper values into
6374 # config.h.in to produce config.h. The first handles `#define'
6375 # templates, and the second `#undef' templates.
6376 # And first: Protect against being on the right side of a sed subst in
6377 # config.status. Protect against being in an unquoted here document
6379 rm -f conftest.defines conftest.undefs
6380 # Using a here document instead of a string reduces the quoting nightmare.
6381 # Putting comments in sed scripts is not portable.
6383 # `end' is used to avoid that the second main sed command (meant for
6384 # 0-ary CPP macros) applies to n-ary macro definitions.
6385 # See the Autoconf documentation for `clear'.
6386 cat >confdef2sed.sed <<\_ACEOF
6391 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6393 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6396 # If some macros were called several times there might be several times
6397 # the same #defines, which is useless. Nevertheless, we may not want to
6398 # sort them, since we want the *last* AC-DEFINE to be honored.
6399 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6400 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6401 rm -f confdef2sed.sed
6403 # This sed command replaces #undef with comments. This is necessary, for
6404 # example, in the case of _POSIX_SOURCE, which is predefined and required
6405 # on some systems where configure will not decide to define it.
6406 cat >>conftest.undefs <<\_ACEOF
6407 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6410 # Break up conftest.defines because some shells have a limit on the size
6411 # of here documents, and old seds have small limits too (100 cmds).
6412 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6413 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6414 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6415 echo ' :' >>$CONFIG_STATUS
6417 while grep . conftest.defines >/dev/null
6419 # Write a limited-size here document to $tmp/defines.sed.
6420 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6421 # Speed up: don't consider the non `#define' lines.
6422 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6423 # Work around the forget-to-reset-the-flag bug.
6424 echo 't clr' >>$CONFIG_STATUS
6425 echo ': clr' >>$CONFIG_STATUS
6426 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6428 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6432 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6433 rm -f conftest.defines
6434 mv conftest.tail conftest.defines
6436 rm -f conftest.defines
6437 echo ' fi # egrep' >>$CONFIG_STATUS
6438 echo >>$CONFIG_STATUS
6440 # Break up conftest.undefs because some shells have a limit on the size
6441 # of here documents, and old seds have small limits too (100 cmds).
6442 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6444 while grep . conftest.undefs >/dev/null
6446 # Write a limited-size here document to $tmp/undefs.sed.
6447 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6448 # Speed up: don't consider the non `#undef'
6449 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6450 # Work around the forget-to-reset-the-flag bug.
6451 echo 't clr' >>$CONFIG_STATUS
6452 echo ': clr' >>$CONFIG_STATUS
6453 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6455 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6459 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6460 rm -f conftest.undefs
6461 mv conftest.tail conftest.undefs
6463 rm -f conftest.undefs
6465 cat >>$CONFIG_STATUS <<\_ACEOF
6466 # Let's still pretend it is `configure' which instantiates (i.e., don't
6467 # use $as_me), people would be surprised to read:
6468 # /* config.h. Generated by config.status. */
6469 if test x"$ac_file" = x-; then
6470 echo "/* Generated by configure. */" >$tmp/config.h
6472 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6474 cat $tmp/in >>$tmp/config.h
6476 if test x"$ac_file" != x-; then
6477 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
6478 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6479 echo "$as_me: $ac_file is unchanged" >&6;}
6481 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6482 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6483 X"$ac_file" : 'X\(//\)[^/]' \| \
6484 X"$ac_file" : 'X\(//\)$' \| \
6485 X"$ac_file" : 'X\(/\)' \| \
6486 . : '\(.\)' 2>/dev/null ||
6488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6489 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6490 /^X\(\/\/\)$/{ s//\1/; q; }
6491 /^X\(\/\).*/{ s//\1/; q; }
6494 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6498 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6499 case $as_mkdir_dir in
6500 # Skip DOS drivespec
6501 ?:) as_incr_dir=$as_mkdir_dir ;;
6503 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6504 test -d "$as_incr_dir" ||
6505 mkdir "$as_incr_dir" ||
6506 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6507 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6508 { (exit 1); exit 1; }; }
6514 mv $tmp/config.h $ac_file
6520 # Run the commands associated with the file.
6522 config.h ) # update the timestamp
6523 echo 'timestamp for config.h:config.in' >"./stamp-h1"
6528 cat >>$CONFIG_STATUS <<\_ACEOF
6531 # CONFIG_COMMANDS section.
6533 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6534 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6535 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6536 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6537 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6538 X"$ac_dest" : 'X\(//\)[^/]' \| \
6539 X"$ac_dest" : 'X\(//\)$' \| \
6540 X"$ac_dest" : 'X\(/\)' \| \
6541 . : '\(.\)' 2>/dev/null ||
6543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6544 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6545 /^X\(\/\/\)$/{ s//\1/; q; }
6546 /^X\(\/\).*/{ s//\1/; q; }
6550 if test "$ac_dir" != .; then
6551 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6552 # A "../" for each directory in $ac_dir_suffix.
6553 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6555 ac_dir_suffix= ac_top_builddir=
6559 .) # No --srcdir option. We are building in place.
6561 if test -z "$ac_top_builddir"; then
6564 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6566 [\\/]* | ?:[\\/]* ) # Absolute path.
6567 ac_srcdir=$srcdir$ac_dir_suffix;
6568 ac_top_srcdir=$srcdir ;;
6570 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6571 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6573 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6575 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6576 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
6577 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6578 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6581 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6582 echo "$as_me: executing $ac_dest commands" >&6;}
6584 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6585 # Strip MF so we end up with the name of the file.
6586 mf=`echo "$mf" | sed -e 's/:.*$//'`
6587 # Check whether this is an Automake generated Makefile or not.
6588 # We used to match only the files named `Makefile.in', but
6589 # some people rename them; so instead we look at the file content.
6590 # Grep'ing the first line is not enough: some people post-process
6591 # each Makefile.in and add a new line on top of each file to say so.
6592 # So let's grep whole file.
6593 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6594 dirpart=`(dirname "$mf") 2>/dev/null ||
6595 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6596 X"$mf" : 'X\(//\)[^/]' \| \
6597 X"$mf" : 'X\(//\)$' \| \
6598 X"$mf" : 'X\(/\)' \| \
6599 . : '\(.\)' 2>/dev/null ||
6601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6602 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6603 /^X\(\/\/\)$/{ s//\1/; q; }
6604 /^X\(\/\).*/{ s//\1/; q; }
6609 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
6610 # Extract the definition of DEP_FILES from the Makefile without
6612 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
6613 test -z "$DEPDIR" && continue
6614 # When using ansi2knr, U may be empty or an underscore; expand it
6615 U=`sed -n -e '/^U = / s///p' < "$mf"`
6616 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6617 # We invoke sed twice because it is the simplest approach to
6618 # changing $(DEPDIR) to its actual value in the expansion.
6619 for file in `sed -n -e '
6620 /^DEP_FILES = .*\\\\$/ {
6629 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6630 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6631 # Make sure the directory exists.
6632 test -f "$dirpart/$file" && continue
6633 fdir=`(dirname "$file") 2>/dev/null ||
6634 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6635 X"$file" : 'X\(//\)[^/]' \| \
6636 X"$file" : 'X\(//\)$' \| \
6637 X"$file" : 'X\(/\)' \| \
6638 . : '\(.\)' 2>/dev/null ||
6640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6641 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6642 /^X\(\/\/\)$/{ s//\1/; q; }
6643 /^X\(\/\).*/{ s//\1/; q; }
6645 { case $dirpart/$fdir in
6646 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6649 as_dummy=$dirpart/$fdir
6650 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6651 case $as_mkdir_dir in
6652 # Skip DOS drivespec
6653 ?:) as_incr_dir=$as_mkdir_dir ;;
6655 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6656 test -d "$as_incr_dir" ||
6657 mkdir "$as_incr_dir" ||
6658 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
6659 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
6660 { (exit 1); exit 1; }; }
6665 # echo "creating $dirpart/$file"
6666 echo '# dummy' > "$dirpart/$file"
6674 cat >>$CONFIG_STATUS <<\_ACEOF
6676 { (exit 0); exit 0; }
6678 chmod +x $CONFIG_STATUS
6679 ac_clean_files=$ac_clean_files_save
6682 # configure is writing to config.log, and then calls config.status.
6683 # config.status does its own redirection, appending to config.log.
6684 # Unfortunately, on DOS this fails, as config.log is still kept open
6685 # by configure, so config.status won't be able to write to it; its
6686 # output is simply discarded. So we exec the FD to /dev/null,
6687 # effectively closing config.log, so it can be properly (re)opened and
6688 # appended to by config.status. When coming back to configure, we
6689 # need to make the FD available again.
6690 if test "$no_create" != yes; then
6693 $SHELL $CONFIG_STATUS || ac_cs_success=false
6695 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6696 # would make configure fail if this is the last instruction.
6697 $ac_cs_success || { (exit 1); exit 1; }
6701 # CONFIG_SUBDIRS section.
6703 if test "$no_recursion" != yes; then
6705 # Remove --cache-file and --srcdir arguments so they do not pile up.
6706 ac_sub_configure_args=
6708 for ac_arg in $ac_configure_args; do
6709 if test -n "$ac_prev"; then
6714 -cache-file | --cache-file | --cache-fil | --cache-fi \
6715 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6716 ac_prev=cache_file ;;
6717 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6718 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
6721 --config-cache | -C)
6723 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6725 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6727 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
6729 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6731 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6735 # Always prepend --prefix to ensure using the same prefix
6736 # in subdir configurations.
6737 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
6740 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
6742 # Do not complain, so a configure script can configure whichever
6743 # parts of a large source tree are present.
6744 test -d $srcdir/$ac_dir || continue
6746 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
6747 echo "$as_me: configuring in $ac_dir" >&6;}
6749 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6753 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6754 case $as_mkdir_dir in
6755 # Skip DOS drivespec
6756 ?:) as_incr_dir=$as_mkdir_dir ;;
6758 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6759 test -d "$as_incr_dir" ||
6760 mkdir "$as_incr_dir" ||
6761 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6762 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6763 { (exit 1); exit 1; }; }
6770 if test "$ac_dir" != .; then
6771 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6772 # A "../" for each directory in $ac_dir_suffix.
6773 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6775 ac_dir_suffix= ac_top_builddir=
6779 .) # No --srcdir option. We are building in place.
6781 if test -z "$ac_top_builddir"; then
6784 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6786 [\\/]* | ?:[\\/]* ) # Absolute path.
6787 ac_srcdir=$srcdir$ac_dir_suffix;
6788 ac_top_srcdir=$srcdir ;;
6790 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6791 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6793 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6795 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6796 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
6797 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6798 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6803 # Check for guested configure; otherwise get Cygnus style configure.
6804 if test -f $ac_srcdir/configure.gnu; then
6805 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
6806 elif test -f $ac_srcdir/configure; then
6807 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
6808 elif test -f $ac_srcdir/configure.in; then
6809 ac_sub_configure=$ac_configure
6811 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
6812 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
6816 # The recursion is here.
6817 if test -n "$ac_sub_configure"; then
6818 # Make the cache file name correct relative to the subdirectory.
6820 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
6822 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
6825 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
6826 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6827 # The eval makes quoting arguments work.
6828 eval $ac_sub_configure $ac_sub_configure_args \
6829 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
6830 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
6831 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
6832 { (exit 1); exit 1; }; }