s/2006/2007/.
[s-roff.git] / configure
blob723eae44298bf0c842d6b02886ec87d2a75ab024
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59b.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
6 # 2003, 2004 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.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 setopt NO_GLOB_SUBST
21 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
40 chmod +x conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42 PATH_SEPARATOR=';'
43 else
44 PATH_SEPARATOR=:
46 rm -f conf$$.sh
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51 as_unset=unset
52 else
53 as_unset=false
57 # Find who we are. Look in the path if we contain no path at all
58 # relative or not.
59 case $0 in
60 *[\\/]* ) as_myself=$0 ;;
61 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
62 for as_dir in $PATH
64 IFS=$as_save_IFS
65 test -z "$as_dir" && as_dir=.
66 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
67 done
70 esac
71 # We did not find ourselves, most probably we were run as `sh COMMAND'
72 # in which case we are not to be found in the path.
73 if test "x$as_myself" = x; then
74 as_myself=$0
76 if test ! -f "$as_myself"; then
77 { echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2
78 { (exit 1); exit 1; }; }
81 # Work around bugs in pre-3.0 UWIN ksh.
82 for as_var in ENV MAIL MAILPATH
83 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
84 done
85 PS1='$ '
86 PS2='> '
87 PS4='+ '
89 # NLS nuisances.
90 for as_var in \
91 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
92 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
93 LC_TELEPHONE LC_TIME
95 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
96 eval $as_var=C; export $as_var
97 else
98 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
102 # Required to use basename.
103 if expr a : '\(a\)' >/dev/null 2>&1; then
104 as_expr=expr
105 else
106 as_expr=false
109 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
110 as_basename=basename
111 else
112 as_basename=false
116 # Name of the executable.
117 as_me=`$as_basename "$0" ||
118 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
119 X"$0" : 'X\(//\)$' \| \
120 X"$0" : 'X\(/\)$' \| \
121 . : '\(.\)' 2>/dev/null ||
122 echo X/"$0" |
123 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
124 /^X\/\(\/\/\)$/{ s//\1/; q; }
125 /^X\/\(\/\).*/{ s//\1/; q; }
126 s/.*/./; q'`
130 if test "x$CONFIG_SHELL" = x; then
131 if (eval ":") 2>/dev/null; then
132 as_have_required=yes
133 else
134 as_have_required=no
137 if test $as_have_required = yes && (eval ":
138 (func_return () {
139 (exit \$1)
141 func_success () {
142 func_return 0
144 func_failure () {
145 func_return 1
147 func_ret_success () {
148 return 0
150 func_ret_failure () {
151 return 1
154 exitcode=0
155 if func_success; then
157 else
158 exitcode=1
159 echo func_failure succeeded.
162 if func_failure; then
163 exitcode=1
164 echo func_success failed.
167 if func_ret_success; then
169 else
170 exitcode=1
171 echo func_ret_success failed.
174 if func_ret_failure; then
175 exitcode=1
176 echo func_ret_failure succeeded.
179 test \$exitcode = 0) || { (exit 1); exit 1; }
182 as_lineno_1=\$LINENO
183 as_lineno_2=\$LINENO
184 as_lineno_3=\`(expr \$as_lineno_1 + 1) 2>/dev/null\`
185 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
186 test \"x\$as_lineno_3\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
187 ") 2> /dev/null; then
189 else
190 as_candidate_shells=
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 IFS=$as_save_IFS
195 test -z "$as_dir" && as_dir=.
196 case $as_dir in
198 for as_base in sh bash ksh sh5; do
199 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
200 done
201 esac
202 done
205 for as_shell in $as_candidate_shells $SHELL; do
206 if { $as_shell 2> /dev/null <<\_ASEOF
207 # Be Bourne compatible
208 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
209 emulate sh
210 NULLCMD=:
211 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
212 # is contrary to our usage. Disable this feature.
213 alias -g '${1+"$@"}'='"$@"'
214 setopt NO_GLOB_SUBST
215 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
216 set -o posix
218 BIN_SH=xpg4; export BIN_SH # for Tru64
219 DUALCASE=1; export DUALCASE # for MKS sh
222 _ASEOF
223 }; then
224 CONFIG_SHELL=$as_shell
225 as_have_required=yes
226 if { $as_shell 2> /dev/null <<\_ASEOF
227 # Be Bourne compatible
228 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
229 emulate sh
230 NULLCMD=:
231 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
232 # is contrary to our usage. Disable this feature.
233 alias -g '${1+"$@"}'='"$@"'
234 setopt NO_GLOB_SUBST
235 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
236 set -o posix
238 BIN_SH=xpg4; export BIN_SH # for Tru64
239 DUALCASE=1; export DUALCASE # for MKS sh
242 (func_return () {
243 (exit $1)
245 func_success () {
246 func_return 0
248 func_failure () {
249 func_return 1
251 func_ret_success () {
252 return 0
254 func_ret_failure () {
255 return 1
258 exitcode=0
259 if func_success; then
261 else
262 exitcode=1
263 echo func_failure succeeded.
266 if func_failure; then
267 exitcode=1
268 echo func_success failed.
271 if func_ret_success; then
273 else
274 exitcode=1
275 echo func_ret_success failed.
278 if func_ret_failure; then
279 exitcode=1
280 echo func_ret_failure succeeded.
283 test $exitcode = 0) || { (exit 1); exit 1; }
286 as_lineno_1=$LINENO
287 as_lineno_2=$LINENO
288 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
289 test "x$as_lineno_1" != "x$as_lineno_2" &&
290 test "x$as_lineno_3" = "x$as_lineno_2") || { (exit 1); exit 1; }
292 _ASEOF
293 }; then
294 break
299 done
301 if test "x$CONFIG_SHELL" != x; then
302 for as_var in BASH_ENV ENV
303 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
304 done
305 export CONFIG_SHELL
306 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
310 if test $as_have_required = no; then
311 echo This script requires a shell more modern than all the
312 echo shells that I found on your system. Please install a
313 echo modern shell, or manually run the script under such a
314 echo shell if you do have one.
315 { (exit 1); exit 1; }
325 (eval "func_return () {
326 (exit \$1)
328 func_success () {
329 func_return 0
331 func_failure () {
332 func_return 1
334 func_ret_success () {
335 return 0
337 func_ret_failure () {
338 return 1
341 exitcode=0
342 if func_success; then
344 else
345 exitcode=1
346 echo func_failure succeeded.
349 if func_failure; then
350 exitcode=1
351 echo func_success failed.
354 if func_ret_success; then
356 else
357 exitcode=1
358 echo func_ret_success failed.
361 if func_ret_failure; then
362 exitcode=1
363 echo func_ret_failure succeeded.
366 test \$exitcode = 0") || {
367 echo No shell found that supports shell functions.
368 echo Please tell autoconf@gnu.org about your system,
369 echo including any error possibly output before this
370 echo message
375 as_lineno_1=$LINENO
376 as_lineno_2=$LINENO
377 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
378 test "x$as_lineno_1" != "x$as_lineno_2" &&
379 test "x$as_lineno_3" = "x$as_lineno_2" || {
381 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
382 # uniformly replaced by the line number. The first 'sed' inserts a
383 # line-number line after each line using $LINENO; the second 'sed'
384 # does the real work. The second script uses 'N' to pair each
385 # line-number line with the line containing $LINENO, and appends
386 # trailing '-' during substitution so that $LINENO is not a special
387 # case at line end.
388 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
389 # scripts with optimization help from Paolo Bonzini. Blame Lee
390 # E. McMahon (1931-1989) for sed's syntax. :-)
391 sed -n '
393 /[$]LINENO/=
394 ' <$as_myself |
395 sed '
396 s,[$]LINENO.*,&-,
397 t lineno
399 : lineno
401 : loop
402 s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
403 t loop
404 s,-\n.*,,
405 ' >$as_me.lineno &&
406 chmod +x $as_me.lineno ||
407 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
408 { (exit 1); exit 1; }; }
410 # Don't try to exec as it changes $[0], causing all sort of problems
411 # (the dirname of $[0] is not the place where we might find the
412 # original and so on. Autoconf is especially sensible to this).
413 . ./$as_me.lineno
414 # Exit status is that of the last command.
415 exit
419 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
420 *c*,-n*) ECHO_N= ECHO_C='
421 ' ECHO_T=' ' ;;
422 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
423 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
424 esac
426 if expr a : '\(a\)' >/dev/null 2>&1; then
427 as_expr=expr
428 else
429 as_expr=false
432 rm -f conf$$ conf$$.exe conf$$.file
433 echo >conf$$.file
434 if ln -s conf$$.file conf$$ 2>/dev/null; then
435 # We could just check for DJGPP; but this test a) works b) is more generic
436 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
437 if test -f conf$$.exe; then
438 # Don't use ln at all; we don't have any links
439 as_ln_s='cp -p'
440 else
441 as_ln_s='ln -s'
443 elif ln conf$$.file conf$$ 2>/dev/null; then
444 as_ln_s=ln
445 else
446 as_ln_s='cp -p'
448 rm -f conf$$ conf$$.exe conf$$.file
450 if mkdir -p . 2>/dev/null; then
451 as_mkdir_p=:
452 else
453 test -d ./-p && rmdir ./-p
454 as_mkdir_p=false
457 as_executable_p="test -f"
459 # Sed expression to map a string onto a valid CPP name.
460 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
462 # Sed expression to map a string onto a valid variable name.
463 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
466 # IFS
467 # We need space, tab and new line, in precisely that order.
468 as_nl='
470 IFS=" $as_nl"
472 # CDPATH.
473 $as_unset CDPATH
476 # Name of the host.
477 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
478 # so uname gets run too.
479 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
481 exec 6>&1
484 # Initializations.
486 ac_default_prefix=/usr/local
487 ac_config_libobj_dir=.
488 cross_compiling=no
489 subdirs=
490 MFLAGS=
491 MAKEFLAGS=
492 SHELL=${CONFIG_SHELL-/bin/sh}
494 # Maximum number of lines to put in a shell here document.
495 # This variable seems obsolete. It should probably be removed, and
496 # only ac_max_sed_lines should be used.
497 : ${ac_max_here_lines=38}
499 # Identity of this package.
500 PACKAGE_NAME=
501 PACKAGE_TARNAME=
502 PACKAGE_VERSION=
503 PACKAGE_STRING=
504 PACKAGE_BUGREPORT=
506 ac_unique_file="src/roff/groff/groff.cpp"
507 # Factoring default headers for most tests.
508 ac_includes_default="\
509 #include <stdio.h>
510 #if HAVE_SYS_TYPES_H
511 # include <sys/types.h>
512 #endif
513 #if HAVE_SYS_STAT_H
514 # include <sys/stat.h>
515 #endif
516 #if STDC_HEADERS
517 # include <stdlib.h>
518 # include <stddef.h>
519 #else
520 # if HAVE_STDLIB_H
521 # include <stdlib.h>
522 # endif
523 #endif
524 #if HAVE_STRING_H
525 # if !STDC_HEADERS && HAVE_MEMORY_H
526 # include <memory.h>
527 # endif
528 # include <string.h>
529 #endif
530 #if HAVE_STRINGS_H
531 # include <strings.h>
532 #endif
533 #if HAVE_INTTYPES_H
534 # include <inttypes.h>
535 #endif
536 #if HAVE_STDINT_H
537 # include <stdint.h>
538 #endif
539 #if HAVE_UNISTD_H
540 # include <unistd.h>
541 #endif"
543 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX TTYDEVDIRS OTHERDEVDIRS CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XDEVDIRS XPROGDIRS XLIBDIRS appresdir LPR LP LPQ PSPRINT DVIPRINT GREP EGREP PERLPATH YACC MAKEINFO RANLIB ac_ct_RANLIB INSTALL_INFO INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SH_SCRIPT_SED_CMD LIBC LIBM build build_cpu build_vendor build_os host host_cpu host_vendor host_os LIBICONV LTLIBICONV LIBOBJS BROKEN_SPOOLER_FLAGS PAGE g sys_tmac_prefix tmac_wrap GROFF_PATH_SEPARATOR ALT_GHOSTSCRIPT_PROGS GHOSTSCRIPT ac_ct_GHOSTSCRIPT pnmcut pnmcrop pnmtopng psselect pnmtops make_html make_install_html ALT_AWK_PROGS AWK ac_ct_AWK make_pdfdoc make_install_pdfdoc pnmtops_nosetpage GLIBC21 LTLIBOBJS'
544 ac_subst_files=''
546 # Initialize some variables set by options.
547 ac_init_help=
548 ac_init_version=false
549 # The variables have the same names as the options, with
550 # dashes changed to underlines.
551 cache_file=/dev/null
552 exec_prefix=NONE
553 no_create=
554 no_recursion=
555 prefix=NONE
556 program_prefix=NONE
557 program_suffix=NONE
558 program_transform_name=s,x,x,
559 silent=
560 site=
561 srcdir=
562 verbose=
563 x_includes=NONE
564 x_libraries=NONE
566 # Installation directory options.
567 # These are left unexpanded so users can "make install exec_prefix=/foo"
568 # and all the variables that are supposed to be based on exec_prefix
569 # by default will actually change.
570 # Use braces instead of parens because sh, perl, etc. also accept them.
571 bindir='${exec_prefix}/bin'
572 sbindir='${exec_prefix}/sbin'
573 libexecdir='${exec_prefix}/libexec'
574 datadir='${prefix}/share'
575 sysconfdir='${prefix}/etc'
576 sharedstatedir='${prefix}/com'
577 localstatedir='${prefix}/var'
578 libdir='${exec_prefix}/lib'
579 includedir='${prefix}/include'
580 oldincludedir='/usr/include'
581 infodir='${prefix}/info'
582 mandir='${prefix}/man'
584 ac_prev=
585 ac_dashdash=
586 for ac_option
588 # If the previous option needs an argument, assign it.
589 if test -n "$ac_prev"; then
590 eval "$ac_prev=\$ac_option"
591 ac_prev=
592 continue
595 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
597 # Accept the important Cygnus configure options, so we can diagnose typos.
599 case $ac_dashdash$ac_option in
601 ac_dashdash=yes ;;
603 -bindir | --bindir | --bindi | --bind | --bin | --bi)
604 ac_prev=bindir ;;
605 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
606 bindir=$ac_optarg ;;
608 -build | --build | --buil | --bui | --bu)
609 ac_prev=build_alias ;;
610 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
611 build_alias=$ac_optarg ;;
613 -cache-file | --cache-file | --cache-fil | --cache-fi \
614 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
615 ac_prev=cache_file ;;
616 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
617 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
618 cache_file=$ac_optarg ;;
620 --config-cache | -C)
621 cache_file=config.cache ;;
623 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
624 ac_prev=datadir ;;
625 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
626 | --da=*)
627 datadir=$ac_optarg ;;
629 -disable-* | --disable-*)
630 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
631 # Reject names that are not valid shell variable names.
632 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
633 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
634 { (exit 1); exit 1; }; }
635 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
636 eval "enable_$ac_feature=no" ;;
638 -enable-* | --enable-*)
639 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
640 # Reject names that are not valid shell variable names.
641 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
642 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
643 { (exit 1); exit 1; }; }
644 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
645 case $ac_option in
646 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
647 *) ac_optarg=yes ;;
648 esac
649 eval "enable_$ac_feature='$ac_optarg'" ;;
651 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
652 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
653 | --exec | --exe | --ex)
654 ac_prev=exec_prefix ;;
655 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
656 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
657 | --exec=* | --exe=* | --ex=*)
658 exec_prefix=$ac_optarg ;;
660 -gas | --gas | --ga | --g)
661 # Obsolete; use --with-gas.
662 with_gas=yes ;;
664 -help | --help | --hel | --he | -h)
665 ac_init_help=long ;;
666 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
667 ac_init_help=recursive ;;
668 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
669 ac_init_help=short ;;
671 -host | --host | --hos | --ho)
672 ac_prev=host_alias ;;
673 -host=* | --host=* | --hos=* | --ho=*)
674 host_alias=$ac_optarg ;;
676 -includedir | --includedir | --includedi | --included | --include \
677 | --includ | --inclu | --incl | --inc)
678 ac_prev=includedir ;;
679 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
680 | --includ=* | --inclu=* | --incl=* | --inc=*)
681 includedir=$ac_optarg ;;
683 -infodir | --infodir | --infodi | --infod | --info | --inf)
684 ac_prev=infodir ;;
685 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
686 infodir=$ac_optarg ;;
688 -libdir | --libdir | --libdi | --libd)
689 ac_prev=libdir ;;
690 -libdir=* | --libdir=* | --libdi=* | --libd=*)
691 libdir=$ac_optarg ;;
693 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
694 | --libexe | --libex | --libe)
695 ac_prev=libexecdir ;;
696 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
697 | --libexe=* | --libex=* | --libe=*)
698 libexecdir=$ac_optarg ;;
700 -localstatedir | --localstatedir | --localstatedi | --localstated \
701 | --localstate | --localstat | --localsta | --localst \
702 | --locals | --local | --loca | --loc | --lo)
703 ac_prev=localstatedir ;;
704 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
705 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
706 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
707 localstatedir=$ac_optarg ;;
709 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
710 ac_prev=mandir ;;
711 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
712 mandir=$ac_optarg ;;
714 -nfp | --nfp | --nf)
715 # Obsolete; use --without-fp.
716 with_fp=no ;;
718 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
719 | --no-cr | --no-c | -n)
720 no_create=yes ;;
722 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
723 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
724 no_recursion=yes ;;
726 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
727 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
728 | --oldin | --oldi | --old | --ol | --o)
729 ac_prev=oldincludedir ;;
730 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
731 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
732 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
733 oldincludedir=$ac_optarg ;;
735 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
736 ac_prev=prefix ;;
737 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
738 prefix=$ac_optarg ;;
740 -program-prefix | --program-prefix | --program-prefi | --program-pref \
741 | --program-pre | --program-pr | --program-p)
742 ac_prev=program_prefix ;;
743 -program-prefix=* | --program-prefix=* | --program-prefi=* \
744 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
745 program_prefix=$ac_optarg ;;
747 -program-suffix | --program-suffix | --program-suffi | --program-suff \
748 | --program-suf | --program-su | --program-s)
749 ac_prev=program_suffix ;;
750 -program-suffix=* | --program-suffix=* | --program-suffi=* \
751 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
752 program_suffix=$ac_optarg ;;
754 -program-transform-name | --program-transform-name \
755 | --program-transform-nam | --program-transform-na \
756 | --program-transform-n | --program-transform- \
757 | --program-transform | --program-transfor \
758 | --program-transfo | --program-transf \
759 | --program-trans | --program-tran \
760 | --progr-tra | --program-tr | --program-t)
761 ac_prev=program_transform_name ;;
762 -program-transform-name=* | --program-transform-name=* \
763 | --program-transform-nam=* | --program-transform-na=* \
764 | --program-transform-n=* | --program-transform-=* \
765 | --program-transform=* | --program-transfor=* \
766 | --program-transfo=* | --program-transf=* \
767 | --program-trans=* | --program-tran=* \
768 | --progr-tra=* | --program-tr=* | --program-t=*)
769 program_transform_name=$ac_optarg ;;
771 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
772 | -silent | --silent | --silen | --sile | --sil)
773 silent=yes ;;
775 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
776 ac_prev=sbindir ;;
777 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
778 | --sbi=* | --sb=*)
779 sbindir=$ac_optarg ;;
781 -sharedstatedir | --sharedstatedir | --sharedstatedi \
782 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
783 | --sharedst | --shareds | --shared | --share | --shar \
784 | --sha | --sh)
785 ac_prev=sharedstatedir ;;
786 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
787 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
788 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
789 | --sha=* | --sh=*)
790 sharedstatedir=$ac_optarg ;;
792 -site | --site | --sit)
793 ac_prev=site ;;
794 -site=* | --site=* | --sit=*)
795 site=$ac_optarg ;;
797 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
798 ac_prev=srcdir ;;
799 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
800 srcdir=$ac_optarg ;;
802 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
803 | --syscon | --sysco | --sysc | --sys | --sy)
804 ac_prev=sysconfdir ;;
805 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
806 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
807 sysconfdir=$ac_optarg ;;
809 -target | --target | --targe | --targ | --tar | --ta | --t)
810 ac_prev=target_alias ;;
811 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
812 target_alias=$ac_optarg ;;
814 -v | -verbose | --verbose | --verbos | --verbo | --verb)
815 verbose=yes ;;
817 -version | --version | --versio | --versi | --vers | -V)
818 ac_init_version=: ;;
820 -with-* | --with-*)
821 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
824 { echo "$as_me: error: invalid package name: $ac_package" >&2
825 { (exit 1); exit 1; }; }
826 ac_package=`echo $ac_package| sed 's/-/_/g'`
827 case $ac_option in
828 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
829 *) ac_optarg=yes ;;
830 esac
831 eval "with_$ac_package='$ac_optarg'" ;;
833 -without-* | --without-*)
834 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
835 # Reject names that are not valid shell variable names.
836 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
837 { echo "$as_me: error: invalid package name: $ac_package" >&2
838 { (exit 1); exit 1; }; }
839 ac_package=`echo $ac_package | sed 's/-/_/g'`
840 eval "with_$ac_package=no" ;;
842 --x)
843 # Obsolete; use --with-x.
844 with_x=yes ;;
846 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
847 | --x-incl | --x-inc | --x-in | --x-i)
848 ac_prev=x_includes ;;
849 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
850 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
851 x_includes=$ac_optarg ;;
853 -x-libraries | --x-libraries | --x-librarie | --x-librari \
854 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
855 ac_prev=x_libraries ;;
856 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
857 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
858 x_libraries=$ac_optarg ;;
860 -*) { echo "$as_me: error: unrecognized option: $ac_option
861 Try \`$0 --help' for more information." >&2
862 { (exit 1); exit 1; }; }
865 *=*)
866 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
869 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
870 { (exit 1); exit 1; }; }
871 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
872 eval "$ac_envvar='$ac_optarg'"
873 export $ac_envvar ;;
876 # FIXME: should be removed in autoconf 3.0.
877 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
878 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
879 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
880 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
883 esac
884 done
886 if test -n "$ac_prev"; then
887 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
888 { echo "$as_me: error: missing argument to $ac_option" >&2
889 { (exit 1); exit 1; }; }
892 # Be sure to have absolute directory names.
893 for ac_var in exec_prefix prefix
895 eval ac_val=$`echo $ac_var`
896 case $ac_val in
897 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
898 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
899 { (exit 1); exit 1; }; };;
900 esac
901 done
903 # Be sure to have absolute directory names.
904 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
905 localstatedir libdir includedir oldincludedir infodir mandir
907 eval ac_val=$`echo $ac_var`
908 case $ac_val in
909 [\\/$]* | ?:[\\/]* ) ;;
910 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
911 { (exit 1); exit 1; }; };;
912 esac
913 done
915 # There might be people who depend on the old broken behavior: `$host'
916 # used to hold the argument of --host etc.
917 # FIXME: To remove some day.
918 build=$build_alias
919 host=$host_alias
920 target=$target_alias
922 # FIXME: To remove some day.
923 if test "x$host_alias" != x; then
924 if test "x$build_alias" = x; then
925 cross_compiling=maybe
926 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
927 If a cross compiler is detected then cross compile mode will be used." >&2
928 elif test "x$build_alias" != "x$host_alias"; then
929 cross_compiling=yes
933 ac_tool_prefix=
934 test -n "$host_alias" && ac_tool_prefix=$host_alias-
936 test "$silent" = yes && exec 6>/dev/null
939 # Find the source files, if location was not specified.
940 if test -z "$srcdir"; then
941 ac_srcdir_defaulted=yes
942 # Try the directory containing this script, then its parent.
943 ac_confdir=`(dirname "$0") 2>/dev/null ||
944 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
945 X"$0" : 'X\(//\)[^/]' \| \
946 X"$0" : 'X\(//\)$' \| \
947 X"$0" : 'X\(/\)' \| \
948 . : '\(.\)' 2>/dev/null ||
949 echo X"$0" |
950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
951 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
952 /^X\(\/\/\)$/{ s//\1/; q; }
953 /^X\(\/\).*/{ s//\1/; q; }
954 s/.*/./; q'`
955 srcdir=$ac_confdir
956 if test ! -r $srcdir/$ac_unique_file; then
957 srcdir=..
959 else
960 ac_srcdir_defaulted=no
962 if test ! -r $srcdir/$ac_unique_file; then
963 if test "$ac_srcdir_defaulted" = yes; then
964 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
965 { (exit 1); exit 1; }; }
966 else
967 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
968 { (exit 1); exit 1; }; }
971 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
972 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
973 { (exit 1); exit 1; }; }
974 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
975 ac_env_build_alias_set=${build_alias+set}
976 ac_env_build_alias_value=$build_alias
977 ac_cv_env_build_alias_set=${build_alias+set}
978 ac_cv_env_build_alias_value=$build_alias
979 ac_env_host_alias_set=${host_alias+set}
980 ac_env_host_alias_value=$host_alias
981 ac_cv_env_host_alias_set=${host_alias+set}
982 ac_cv_env_host_alias_value=$host_alias
983 ac_env_target_alias_set=${target_alias+set}
984 ac_env_target_alias_value=$target_alias
985 ac_cv_env_target_alias_set=${target_alias+set}
986 ac_cv_env_target_alias_value=$target_alias
987 ac_env_CC_set=${CC+set}
988 ac_env_CC_value=$CC
989 ac_cv_env_CC_set=${CC+set}
990 ac_cv_env_CC_value=$CC
991 ac_env_CFLAGS_set=${CFLAGS+set}
992 ac_env_CFLAGS_value=$CFLAGS
993 ac_cv_env_CFLAGS_set=${CFLAGS+set}
994 ac_cv_env_CFLAGS_value=$CFLAGS
995 ac_env_LDFLAGS_set=${LDFLAGS+set}
996 ac_env_LDFLAGS_value=$LDFLAGS
997 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
998 ac_cv_env_LDFLAGS_value=$LDFLAGS
999 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
1000 ac_env_CPPFLAGS_value=$CPPFLAGS
1001 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
1002 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
1003 ac_env_CXX_set=${CXX+set}
1004 ac_env_CXX_value=$CXX
1005 ac_cv_env_CXX_set=${CXX+set}
1006 ac_cv_env_CXX_value=$CXX
1007 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
1008 ac_env_CXXFLAGS_value=$CXXFLAGS
1009 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
1010 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
1011 ac_env_CPP_set=${CPP+set}
1012 ac_env_CPP_value=$CPP
1013 ac_cv_env_CPP_set=${CPP+set}
1014 ac_cv_env_CPP_value=$CPP
1017 # Report the --help message.
1019 if test "$ac_init_help" = "long"; then
1020 # Omit some internal or obsolete options to make the list less imposing.
1021 # This message is too long to be a string in the A/UX 3.1 sh.
1022 cat <<_ACEOF
1023 \`configure' configures this package to adapt to many kinds of systems.
1025 Usage: $0 [OPTION]... [VAR=VALUE]...
1027 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1028 VAR=VALUE. See below for descriptions of some of the useful variables.
1030 Defaults for the options are specified in brackets.
1032 Configuration:
1033 -h, --help display this help and exit
1034 --help=short display options specific to this package
1035 --help=recursive display the short help of all the included packages
1036 -V, --version display version information and exit
1037 -q, --quiet, --silent do not print \`checking...' messages
1038 --cache-file=FILE cache test results in FILE [disabled]
1039 -C, --config-cache alias for \`--cache-file=config.cache'
1040 -n, --no-create do not create output files
1041 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1043 _ACEOF
1045 cat <<_ACEOF
1046 Installation directories:
1047 --prefix=PREFIX install architecture-independent files in PREFIX
1048 [$ac_default_prefix]
1049 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1050 [PREFIX]
1052 By default, \`make install' will install all the files in
1053 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1054 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1055 for instance \`--prefix=\$HOME'.
1057 For better control, use the options below.
1059 Fine tuning of the installation directories:
1060 --bindir=DIR user executables [EPREFIX/bin]
1061 --sbindir=DIR system admin executables [EPREFIX/sbin]
1062 --libexecdir=DIR program executables [EPREFIX/libexec]
1063 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1064 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1065 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1066 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1067 --libdir=DIR object code libraries [EPREFIX/lib]
1068 --includedir=DIR C header files [PREFIX/include]
1069 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1070 --infodir=DIR info documentation [PREFIX/info]
1071 --mandir=DIR man documentation [PREFIX/man]
1072 _ACEOF
1074 cat <<\_ACEOF
1076 X features:
1077 --x-includes=DIR X include files are in DIR
1078 --x-libraries=DIR X library files are in DIR
1080 System types:
1081 --build=BUILD configure for building on BUILD [guessed]
1082 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1083 _ACEOF
1086 if test -n "$ac_init_help"; then
1088 cat <<\_ACEOF
1090 Optional Features:
1091 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1092 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1093 --disable-rpath do not hardcode runtime library paths
1095 Optional Packages:
1096 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1097 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1098 --with-x use the X Window System
1099 --with-appresdir=DIR X11 application resource files
1100 --with-gnu-ld assume the C compiler uses GNU ld default=no
1101 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1102 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1103 --with-alt-gs=LIST alternative names for ghostscript executable
1104 --with-gs=PROG actual [/path/]name of ghostscript executable
1105 --with-alt-awk=LIST alternative names for awk executable
1106 --with-awk=PROG actual [/path/]name of awk executable
1108 Some influential environment variables:
1109 CC C compiler command
1110 CFLAGS C compiler flags
1111 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1112 nonstandard directory <lib dir>
1113 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1114 headers in a nonstandard directory <include dir>
1115 CXX C++ compiler command
1116 CXXFLAGS C++ compiler flags
1117 CPP C preprocessor
1119 Use these variables to override the choices made by `configure' or to help
1120 it to find libraries and programs with nonstandard names/locations.
1122 _ACEOF
1125 if test "$ac_init_help" = "recursive"; then
1126 # If there are subdirs, report their specific --help.
1127 ac_popdir=`pwd`
1128 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1129 test -d $ac_dir || continue
1130 ac_builddir=.
1132 if test "$ac_dir" != .; then
1133 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1134 # A "../" for each directory in $ac_dir_suffix.
1135 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1136 else
1137 ac_dir_suffix= ac_top_builddir=
1140 case $srcdir in
1141 .) # No --srcdir option. We are building in place.
1142 ac_srcdir=.
1143 if test -z "$ac_top_builddir"; then
1144 ac_top_srcdir=.
1145 else
1146 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1147 fi ;;
1148 [\\/]* | ?:[\\/]* ) # Absolute name.
1149 ac_srcdir=$srcdir$ac_dir_suffix;
1150 ac_top_srcdir=$srcdir ;;
1151 *) # Relative name.
1152 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1153 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1154 esac
1156 # Do not use `cd foo && pwd` to compute absolute names, because
1157 # the directories may not exist.
1158 case `pwd` in
1159 .) ac_abs_builddir="$ac_dir";;
1161 case "$ac_dir" in
1162 .) ac_abs_builddir=`pwd`;;
1163 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1164 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1165 esac;;
1166 esac
1167 case $ac_abs_builddir in
1168 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1170 case ${ac_top_builddir}. in
1171 .) ac_abs_top_builddir=$ac_abs_builddir;;
1172 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1173 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1174 esac;;
1175 esac
1176 case $ac_abs_builddir in
1177 .) ac_abs_srcdir=$ac_srcdir;;
1179 case $ac_srcdir in
1180 .) ac_abs_srcdir=$ac_abs_builddir;;
1181 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1182 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1183 esac;;
1184 esac
1185 case $ac_abs_builddir in
1186 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1188 case $ac_top_srcdir in
1189 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1190 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1191 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1192 esac;;
1193 esac
1195 cd $ac_dir
1196 # Check for guested configure; otherwise get Cygnus style configure.
1197 if test -f $ac_srcdir/configure.gnu; then
1198 echo
1199 $SHELL $ac_srcdir/configure.gnu --help=recursive
1200 elif test -f $ac_srcdir/configure; then
1201 echo
1202 $SHELL $ac_srcdir/configure --help=recursive
1203 elif test -f $ac_srcdir/configure.ac ||
1204 test -f $ac_srcdir/configure.in; then
1205 echo
1206 $ac_configure --help
1207 else
1208 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1210 cd "$ac_popdir"
1211 done
1214 test -n "$ac_init_help" && exit 0
1215 if $ac_init_version; then
1216 cat <<\_ACEOF
1218 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
1219 2003, 2004 Free Software Foundation, Inc.
1220 This configure script is free software; the Free Software Foundation
1221 gives unlimited permission to copy, distribute and modify it.
1222 _ACEOF
1223 exit 0
1225 exec 5>config.log
1226 cat >&5 <<_ACEOF
1227 This file contains any messages produced by compilers while
1228 running configure, to aid debugging if configure makes a mistake.
1230 It was created by $as_me, which was
1231 generated by GNU Autoconf 2.59b. Invocation command line was
1233 $ $0 $@
1235 _ACEOF
1237 cat <<_ASUNAME
1238 ## --------- ##
1239 ## Platform. ##
1240 ## --------- ##
1242 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1243 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1244 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1245 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1246 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1248 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1249 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1251 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1252 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1253 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1254 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1255 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1256 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1257 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1259 _ASUNAME
1261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1262 for as_dir in $PATH
1264 IFS=$as_save_IFS
1265 test -z "$as_dir" && as_dir=.
1266 echo "PATH: $as_dir"
1267 done
1269 } >&5
1271 cat >&5 <<_ACEOF
1274 ## ----------- ##
1275 ## Core tests. ##
1276 ## ----------- ##
1278 _ACEOF
1281 # Keep a trace of the command line.
1282 # Strip out --no-create and --no-recursion so they do not pile up.
1283 # Strip out --silent because we don't want to record it for future runs.
1284 # Also quote any args containing shell meta-characters.
1285 # Make two passes to allow for proper duplicate-argument suppression.
1286 ac_configure_args=
1287 ac_configure_args0=
1288 ac_configure_args1=
1289 ac_sep=
1290 ac_must_keep_next=false
1291 for ac_pass in 1 2
1293 for ac_arg
1295 case $ac_arg in
1296 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1298 | -silent | --silent | --silen | --sile | --sil)
1299 continue ;;
1300 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1302 esac
1303 case $ac_pass in
1304 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1306 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1307 if test $ac_must_keep_next = true; then
1308 ac_must_keep_next=false # Got value, back to normal.
1309 else
1310 case $ac_arg in
1311 *=* | --config-cache | -C | -disable-* | --disable-* \
1312 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1313 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1314 | -with-* | --with-* | -without-* | --without-* | --x)
1315 case "$ac_configure_args0 " in
1316 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1317 esac
1319 -* ) ac_must_keep_next=true ;;
1320 esac
1322 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1323 # Get rid of the leading space.
1324 ac_sep=" "
1326 esac
1327 done
1328 done
1329 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1330 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1332 # When interrupted or exit'd, cleanup temporary files, and complete
1333 # config.log. We remove comments because anyway the quotes in there
1334 # would cause problems or look ugly.
1335 # WARNING: Be sure not to use single quotes in there, as some shells,
1336 # such as our DU 5.0 friend, will then `close' the trap.
1337 trap 'exit_status=$?
1338 # Save into config.log some information that might help in debugging.
1340 echo
1342 cat <<\_ASBOX
1343 ## ---------------- ##
1344 ## Cache variables. ##
1345 ## ---------------- ##
1346 _ASBOX
1347 echo
1348 # The following way of writing the cache mishandles newlines in values,
1350 (set) 2>&1 |
1351 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1352 *ac_space=\ *)
1353 sed -n \
1354 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1355 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1358 sed -n \
1359 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1361 esac;
1363 echo
1365 cat <<\_ASBOX
1366 ## ----------------- ##
1367 ## Output variables. ##
1368 ## ----------------- ##
1369 _ASBOX
1370 echo
1371 for ac_var in $ac_subst_vars
1373 eval ac_val=$`echo $ac_var`
1374 echo "$ac_var='"'"'$ac_val'"'"'"
1375 done | sort
1376 echo
1378 if test -n "$ac_subst_files"; then
1379 cat <<\_ASBOX
1380 ## ------------- ##
1381 ## Output files. ##
1382 ## ------------- ##
1383 _ASBOX
1384 echo
1385 for ac_var in $ac_subst_files
1387 eval ac_val=$`echo $ac_var`
1388 echo "$ac_var='"'"'$ac_val'"'"'"
1389 done | sort
1390 echo
1393 if test -s confdefs.h; then
1394 cat <<\_ASBOX
1395 ## ----------- ##
1396 ## confdefs.h. ##
1397 ## ----------- ##
1398 _ASBOX
1399 echo
1400 sed "/^$/d" confdefs.h | sort
1401 echo
1403 test "$ac_signal" != 0 &&
1404 echo "$as_me: caught signal $ac_signal"
1405 echo "$as_me: exit $exit_status"
1406 } >&5
1407 rm -f core *.core &&
1408 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1409 exit $exit_status
1411 for ac_signal in 1 2 13 15; do
1412 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1413 done
1414 ac_signal=0
1416 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1417 rm -f -r conftest* confdefs.h
1418 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1419 # NextStep 3.3 (patch 3) loses unless the first echo outputs at least 14 bytes.
1420 ac_space=' '
1421 echo "$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space" >confdefs.h
1423 # Predefined preprocessor variables.
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_NAME "$PACKAGE_NAME"
1427 _ACEOF
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1432 _ACEOF
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1437 _ACEOF
1440 cat >>confdefs.h <<_ACEOF
1441 #define PACKAGE_STRING "$PACKAGE_STRING"
1442 _ACEOF
1445 cat >>confdefs.h <<_ACEOF
1446 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1447 _ACEOF
1450 # Let the site file select an alternate cache file if it wants to.
1451 # Prefer explicitly selected file to automatically selected ones.
1452 if test -z "$CONFIG_SITE"; then
1453 if test "x$prefix" != xNONE; then
1454 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1455 else
1456 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1459 for ac_site_file in $CONFIG_SITE; do
1460 if test -r "$ac_site_file"; then
1461 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1462 echo "$as_me: loading site script $ac_site_file" >&6;}
1463 sed 's/^/| /' "$ac_site_file" >&5
1464 . "$ac_site_file"
1466 done
1468 if test -r "$cache_file"; then
1469 # Some versions of bash will fail to source /dev/null (special
1470 # files actually), so we avoid doing that.
1471 if test -f "$cache_file"; then
1472 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1473 echo "$as_me: loading cache $cache_file" >&6;}
1474 case $cache_file in
1475 [\\/]* | ?:[\\/]* ) . $cache_file;;
1476 *) . ./$cache_file;;
1477 esac
1479 else
1480 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1481 echo "$as_me: creating cache $cache_file" >&6;}
1482 >$cache_file
1485 # Check that the precious variables saved in the cache have kept the same
1486 # value.
1487 ac_cache_corrupted=false
1488 for ac_var in `(set) 2>&1 |
1489 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1490 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1491 eval ac_new_set=\$ac_env_${ac_var}_set
1492 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1493 eval ac_new_val="\$ac_env_${ac_var}_value"
1494 case $ac_old_set,$ac_new_set in
1495 set,)
1496 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1497 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1498 ac_cache_corrupted=: ;;
1499 ,set)
1500 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1501 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1502 ac_cache_corrupted=: ;;
1503 ,);;
1505 if test "x$ac_old_val" != "x$ac_new_val"; then
1506 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1507 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1508 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1509 echo "$as_me: former value: $ac_old_val" >&2;}
1510 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1511 echo "$as_me: current value: $ac_new_val" >&2;}
1512 ac_cache_corrupted=:
1513 fi;;
1514 esac
1515 # Pass precious variables to config.status.
1516 if test "$ac_new_set" = set; then
1517 case $ac_new_val in
1518 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1519 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1520 *) ac_arg=$ac_var=$ac_new_val ;;
1521 esac
1522 case " $ac_configure_args " in
1523 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1524 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1525 esac
1527 done
1528 if $ac_cache_corrupted; then
1529 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1530 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1531 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1532 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1533 { (exit 1); exit 1; }; }
1536 ac_ext=c
1537 ac_cpp='$CPP $CPPFLAGS'
1538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1562 ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin"
1566 # checks for programs
1567 ac_ext=c
1568 ac_cpp='$CPP $CPPFLAGS'
1569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1572 if test -n "$ac_tool_prefix"; then
1573 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1574 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1575 echo "$as_me:$LINENO: checking for $ac_word" >&5
1576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1577 if test "${ac_cv_prog_CC+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 else
1580 if test -n "$CC"; then
1581 ac_cv_prog_CC="$CC" # Let the user override the test.
1582 else
1583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584 for as_dir in $PATH
1586 IFS=$as_save_IFS
1587 test -z "$as_dir" && as_dir=.
1588 for ac_exec_ext in '' $ac_executable_extensions; do
1589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1590 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1592 break 2
1594 done
1595 done
1599 CC=$ac_cv_prog_CC
1600 if test -n "$CC"; then
1601 echo "$as_me:$LINENO: result: $CC" >&5
1602 echo "${ECHO_T}$CC" >&6
1603 else
1604 echo "$as_me:$LINENO: result: no" >&5
1605 echo "${ECHO_T}no" >&6
1609 if test -z "$ac_cv_prog_CC"; then
1610 ac_ct_CC=$CC
1611 # Extract the first word of "gcc", so it can be a program name with args.
1612 set dummy gcc; ac_word=$2
1613 echo "$as_me:$LINENO: checking for $ac_word" >&5
1614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1615 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1616 echo $ECHO_N "(cached) $ECHO_C" >&6
1617 else
1618 if test -n "$ac_ct_CC"; then
1619 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1620 else
1621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622 for as_dir in $PATH
1624 IFS=$as_save_IFS
1625 test -z "$as_dir" && as_dir=.
1626 for ac_exec_ext in '' $ac_executable_extensions; do
1627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1628 ac_cv_prog_ac_ct_CC="gcc"
1629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1630 break 2
1632 done
1633 done
1637 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1638 if test -n "$ac_ct_CC"; then
1639 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1640 echo "${ECHO_T}$ac_ct_CC" >&6
1641 else
1642 echo "$as_me:$LINENO: result: no" >&5
1643 echo "${ECHO_T}no" >&6
1646 if test "x$ac_ct_CC" = x; then
1647 CC=""
1648 else
1649 if test "$build" != "$host"; then
1650 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1651 whose name does not start with the host triplet. If you think this
1652 configuration is useful to you, please write to autoconf@gnu.org." >&5
1653 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1654 whose name does not start with the host triplet. If you think this
1655 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1657 CC=$ac_ct_CC
1659 else
1660 CC="$ac_cv_prog_CC"
1663 if test -z "$CC"; then
1664 if test -n "$ac_tool_prefix"; then
1665 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1666 set dummy ${ac_tool_prefix}cc; ac_word=$2
1667 echo "$as_me:$LINENO: checking for $ac_word" >&5
1668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669 if test "${ac_cv_prog_CC+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 else
1672 if test -n "$CC"; then
1673 ac_cv_prog_CC="$CC" # Let the user override the test.
1674 else
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 for as_dir in $PATH
1678 IFS=$as_save_IFS
1679 test -z "$as_dir" && as_dir=.
1680 for ac_exec_ext in '' $ac_executable_extensions; do
1681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682 ac_cv_prog_CC="${ac_tool_prefix}cc"
1683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684 break 2
1686 done
1687 done
1691 CC=$ac_cv_prog_CC
1692 if test -n "$CC"; then
1693 echo "$as_me:$LINENO: result: $CC" >&5
1694 echo "${ECHO_T}$CC" >&6
1695 else
1696 echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1701 if test -z "$ac_cv_prog_CC"; then
1702 ac_ct_CC=$CC
1703 # Extract the first word of "cc", so it can be a program name with args.
1704 set dummy cc; ac_word=$2
1705 echo "$as_me:$LINENO: checking for $ac_word" >&5
1706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1708 echo $ECHO_N "(cached) $ECHO_C" >&6
1709 else
1710 if test -n "$ac_ct_CC"; then
1711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1712 else
1713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714 for as_dir in $PATH
1716 IFS=$as_save_IFS
1717 test -z "$as_dir" && as_dir=.
1718 for ac_exec_ext in '' $ac_executable_extensions; do
1719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1720 ac_cv_prog_ac_ct_CC="cc"
1721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722 break 2
1724 done
1725 done
1729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1730 if test -n "$ac_ct_CC"; then
1731 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1732 echo "${ECHO_T}$ac_ct_CC" >&6
1733 else
1734 echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1738 if test "x$ac_ct_CC" = x; then
1739 CC=""
1740 else
1741 if test "$build" != "$host"; then
1742 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1743 whose name does not start with the host triplet. If you think this
1744 configuration is useful to you, please write to autoconf@gnu.org." >&5
1745 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1746 whose name does not start with the host triplet. If you think this
1747 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1749 CC=$ac_ct_CC
1751 else
1752 CC="$ac_cv_prog_CC"
1756 if test -z "$CC"; then
1757 # Extract the first word of "cc", so it can be a program name with args.
1758 set dummy cc; ac_word=$2
1759 echo "$as_me:$LINENO: checking for $ac_word" >&5
1760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1761 if test "${ac_cv_prog_CC+set}" = set; then
1762 echo $ECHO_N "(cached) $ECHO_C" >&6
1763 else
1764 if test -n "$CC"; then
1765 ac_cv_prog_CC="$CC" # Let the user override the test.
1766 else
1767 ac_prog_rejected=no
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 for as_dir in $PATH
1771 IFS=$as_save_IFS
1772 test -z "$as_dir" && as_dir=.
1773 for ac_exec_ext in '' $ac_executable_extensions; do
1774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1776 ac_prog_rejected=yes
1777 continue
1779 ac_cv_prog_CC="cc"
1780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1781 break 2
1783 done
1784 done
1786 if test $ac_prog_rejected = yes; then
1787 # We found a bogon in the path, so make sure we never use it.
1788 set dummy $ac_cv_prog_CC
1789 shift
1790 if test $# != 0; then
1791 # We chose a different compiler from the bogus one.
1792 # However, it has the same basename, so the bogon will be chosen
1793 # first if we set CC to just the basename; use the full file name.
1794 shift
1795 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1800 CC=$ac_cv_prog_CC
1801 if test -n "$CC"; then
1802 echo "$as_me:$LINENO: result: $CC" >&5
1803 echo "${ECHO_T}$CC" >&6
1804 else
1805 echo "$as_me:$LINENO: result: no" >&5
1806 echo "${ECHO_T}no" >&6
1810 if test -z "$CC"; then
1811 if test -n "$ac_tool_prefix"; then
1812 for ac_prog in cl
1814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1816 echo "$as_me:$LINENO: checking for $ac_word" >&5
1817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1818 if test "${ac_cv_prog_CC+set}" = set; then
1819 echo $ECHO_N "(cached) $ECHO_C" >&6
1820 else
1821 if test -n "$CC"; then
1822 ac_cv_prog_CC="$CC" # Let the user override the test.
1823 else
1824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825 for as_dir in $PATH
1827 IFS=$as_save_IFS
1828 test -z "$as_dir" && as_dir=.
1829 for ac_exec_ext in '' $ac_executable_extensions; do
1830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1831 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833 break 2
1835 done
1836 done
1840 CC=$ac_cv_prog_CC
1841 if test -n "$CC"; then
1842 echo "$as_me:$LINENO: result: $CC" >&5
1843 echo "${ECHO_T}$CC" >&6
1844 else
1845 echo "$as_me:$LINENO: result: no" >&5
1846 echo "${ECHO_T}no" >&6
1849 test -n "$CC" && break
1850 done
1852 if test -z "$CC"; then
1853 ac_ct_CC=$CC
1854 for ac_prog in cl
1856 # Extract the first word of "$ac_prog", so it can be a program name with args.
1857 set dummy $ac_prog; ac_word=$2
1858 echo "$as_me:$LINENO: checking for $ac_word" >&5
1859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1861 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 else
1863 if test -n "$ac_ct_CC"; then
1864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1865 else
1866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867 for as_dir in $PATH
1869 IFS=$as_save_IFS
1870 test -z "$as_dir" && as_dir=.
1871 for ac_exec_ext in '' $ac_executable_extensions; do
1872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873 ac_cv_prog_ac_ct_CC="$ac_prog"
1874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875 break 2
1877 done
1878 done
1882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1883 if test -n "$ac_ct_CC"; then
1884 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1885 echo "${ECHO_T}$ac_ct_CC" >&6
1886 else
1887 echo "$as_me:$LINENO: result: no" >&5
1888 echo "${ECHO_T}no" >&6
1891 test -n "$ac_ct_CC" && break
1892 done
1894 if test "x$ac_ct_CC" = x; then
1895 CC=""
1896 else
1897 if test "$build" != "$host"; then
1898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1899 whose name does not start with the host triplet. If you think this
1900 configuration is useful to you, please write to autoconf@gnu.org." >&5
1901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1902 whose name does not start with the host triplet. If you think this
1903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1905 CC=$ac_ct_CC
1912 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1913 See \`config.log' for more details." >&5
1914 echo "$as_me: error: no acceptable C compiler found in \$PATH
1915 See \`config.log' for more details." >&2;}
1916 { (exit 1); exit 1; }; }
1918 # Provide some information about the compiler.
1919 echo "$as_me:$LINENO:" \
1920 "checking for C compiler version" >&5
1921 ac_compiler=`set X $ac_compile; echo $2`
1922 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1923 (eval $ac_compiler --version </dev/null >&5) 2>&5
1924 ac_status=$?
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }
1927 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1928 (eval $ac_compiler -v </dev/null >&5) 2>&5
1929 ac_status=$?
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931 (exit $ac_status); }
1932 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1933 (eval $ac_compiler -V </dev/null >&5) 2>&5
1934 ac_status=$?
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }
1938 cat >conftest.$ac_ext <<_ACEOF
1939 /* confdefs.h. */
1940 _ACEOF
1941 cat confdefs.h >>conftest.$ac_ext
1942 cat >>conftest.$ac_ext <<_ACEOF
1943 /* end confdefs.h. */
1946 main ()
1950 return 0;
1952 _ACEOF
1953 ac_clean_files_save=$ac_clean_files
1954 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1955 # Try to create an executable without -o first, disregard a.out.
1956 # It will help us diagnose broken compilers, and finding out an intuition
1957 # of exeext.
1958 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1959 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1960 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1962 # List of possible output files, starting from the most likely.
1963 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
1964 # only as a last resort. b.out is created by i960 compilers.
1965 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
1967 # The IRIX 6 linker writes into existing files which may not be
1968 # executable, retaining their permissions. Remove them first so a
1969 # subsequent execution test works.
1970 ac_rmfiles=
1971 for ac_file in $ac_files
1973 case $ac_file in
1974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1975 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
1976 esac
1977 done
1978 rm -f $ac_rmfiles
1980 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1981 (eval $ac_link_default) 2>&5
1982 ac_status=$?
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; then
1985 # Be careful to initialize this variable, since it used to be cached.
1986 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1987 ac_cv_exeext=
1988 for ac_file in $ac_files
1990 test -f "$ac_file" || continue
1991 case $ac_file in
1992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1994 [ab].out )
1995 # We found the default executable, but exeext='' is most
1996 # certainly right.
1997 break;;
1998 *.* )
1999 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2000 # FIXME: I believe we export ac_cv_exeext for Libtool,
2001 # but it would be cool to find out if it's true. Does anybody
2002 # maintain Libtool? --akim.
2003 export ac_cv_exeext
2004 break;;
2006 break;;
2007 esac
2008 done
2009 else
2010 echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.$ac_ext >&5
2013 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2014 See \`config.log' for more details." >&5
2015 echo "$as_me: error: C compiler cannot create executables
2016 See \`config.log' for more details." >&2;}
2017 { (exit 77); exit 77; }; }
2020 ac_exeext=$ac_cv_exeext
2021 echo "$as_me:$LINENO: result: $ac_file" >&5
2022 echo "${ECHO_T}$ac_file" >&6
2024 # Check the compiler produces executables we can run. If not, either
2025 # the compiler is broken, or we cross compile.
2026 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2027 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2028 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2029 # If not cross compiling, check that we can run a simple program.
2030 if test "$cross_compiling" != yes; then
2031 if { ac_try='./$ac_file'
2032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2033 (eval $ac_try) 2>&5
2034 ac_status=$?
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }; }; then
2037 cross_compiling=no
2038 else
2039 if test "$cross_compiling" = maybe; then
2040 cross_compiling=yes
2041 else
2042 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2043 If you meant to cross compile, use \`--host'.
2044 See \`config.log' for more details." >&5
2045 echo "$as_me: error: cannot run C compiled programs.
2046 If you meant to cross compile, use \`--host'.
2047 See \`config.log' for more details." >&2;}
2048 { (exit 1); exit 1; }; }
2052 echo "$as_me:$LINENO: result: yes" >&5
2053 echo "${ECHO_T}yes" >&6
2055 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2056 ac_clean_files=$ac_clean_files_save
2057 # Check the compiler produces executables we can run. If not, either
2058 # the compiler is broken, or we cross compile.
2059 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2060 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2061 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2062 echo "${ECHO_T}$cross_compiling" >&6
2064 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2065 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2067 (eval $ac_link) 2>&5
2068 ac_status=$?
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }; then
2071 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2072 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2073 # work properly (i.e., refer to `conftest.exe'), while it won't with
2074 # `rm'.
2075 for ac_file in conftest.exe conftest conftest.*; do
2076 test -f "$ac_file" || continue
2077 case $ac_file in
2078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2079 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2080 export ac_cv_exeext
2081 break;;
2082 * ) break;;
2083 esac
2084 done
2085 else
2086 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2087 See \`config.log' for more details." >&5
2088 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2089 See \`config.log' for more details." >&2;}
2090 { (exit 1); exit 1; }; }
2093 rm -f conftest$ac_cv_exeext
2094 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2095 echo "${ECHO_T}$ac_cv_exeext" >&6
2097 rm -f conftest.$ac_ext
2098 EXEEXT=$ac_cv_exeext
2099 ac_exeext=$EXEEXT
2100 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2101 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2102 if test "${ac_cv_objext+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105 cat >conftest.$ac_ext <<_ACEOF
2106 /* confdefs.h. */
2107 _ACEOF
2108 cat confdefs.h >>conftest.$ac_ext
2109 cat >>conftest.$ac_ext <<_ACEOF
2110 /* end confdefs.h. */
2113 main ()
2117 return 0;
2119 _ACEOF
2120 rm -f conftest.o conftest.obj
2121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2122 (eval $ac_compile) 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; then
2126 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2127 case $ac_file in
2128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2129 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2130 break;;
2131 esac
2132 done
2133 else
2134 echo "$as_me: failed program was:" >&5
2135 sed 's/^/| /' conftest.$ac_ext >&5
2137 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2138 See \`config.log' for more details." >&5
2139 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2140 See \`config.log' for more details." >&2;}
2141 { (exit 1); exit 1; }; }
2144 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2146 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2147 echo "${ECHO_T}$ac_cv_objext" >&6
2148 OBJEXT=$ac_cv_objext
2149 ac_objext=$OBJEXT
2150 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2151 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2152 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155 cat >conftest.$ac_ext <<_ACEOF
2156 /* confdefs.h. */
2157 _ACEOF
2158 cat confdefs.h >>conftest.$ac_ext
2159 cat >>conftest.$ac_ext <<_ACEOF
2160 /* end confdefs.h. */
2163 main ()
2165 #ifndef __GNUC__
2166 choke me
2167 #endif
2170 return 0;
2172 _ACEOF
2173 rm -f conftest.$ac_objext
2174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175 (eval $ac_compile) 2>conftest.er1
2176 ac_status=$?
2177 grep -v '^ *+' conftest.er1 >conftest.err
2178 rm -f conftest.er1
2179 cat conftest.err >&5
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); } &&
2182 { ac_try='test -z "$ac_c_werror_flag"
2183 || test ! -s conftest.err'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 (eval $ac_try) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; } &&
2189 { ac_try='test -s conftest.$ac_objext'
2190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2191 (eval $ac_try) 2>&5
2192 ac_status=$?
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; }; then
2195 ac_compiler_gnu=yes
2196 else
2197 echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2200 ac_compiler_gnu=no
2202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2203 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2206 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2207 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2208 GCC=`test $ac_compiler_gnu = yes && echo yes`
2209 ac_test_CFLAGS=${CFLAGS+set}
2210 ac_save_CFLAGS=$CFLAGS
2211 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2212 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2213 if test "${ac_cv_prog_cc_g+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 else
2216 ac_save_c_werror_flag=$ac_c_werror_flag
2217 ac_c_werror_flag=yes
2218 ac_cv_prog_cc_g=no
2219 CFLAGS="-g"
2220 cat >conftest.$ac_ext <<_ACEOF
2221 /* confdefs.h. */
2222 _ACEOF
2223 cat confdefs.h >>conftest.$ac_ext
2224 cat >>conftest.$ac_ext <<_ACEOF
2225 /* end confdefs.h. */
2228 main ()
2232 return 0;
2234 _ACEOF
2235 rm -f conftest.$ac_objext
2236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237 (eval $ac_compile) 2>conftest.er1
2238 ac_status=$?
2239 grep -v '^ *+' conftest.er1 >conftest.err
2240 rm -f conftest.er1
2241 cat conftest.err >&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); } &&
2244 { ac_try='test -z "$ac_c_werror_flag"
2245 || test ! -s conftest.err'
2246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247 (eval $ac_try) 2>&5
2248 ac_status=$?
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; } &&
2251 { ac_try='test -s conftest.$ac_objext'
2252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253 (eval $ac_try) 2>&5
2254 ac_status=$?
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; }; then
2257 ac_cv_prog_cc_g=yes
2258 else
2259 echo "$as_me: failed program was:" >&5
2260 sed 's/^/| /' conftest.$ac_ext >&5
2262 CFLAGS=""
2263 cat >conftest.$ac_ext <<_ACEOF
2264 /* confdefs.h. */
2265 _ACEOF
2266 cat confdefs.h >>conftest.$ac_ext
2267 cat >>conftest.$ac_ext <<_ACEOF
2268 /* end confdefs.h. */
2271 main ()
2275 return 0;
2277 _ACEOF
2278 rm -f conftest.$ac_objext
2279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2280 (eval $ac_compile) 2>conftest.er1
2281 ac_status=$?
2282 grep -v '^ *+' conftest.er1 >conftest.err
2283 rm -f conftest.er1
2284 cat conftest.err >&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); } &&
2287 { ac_try='test -z "$ac_c_werror_flag"
2288 || test ! -s conftest.err'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290 (eval $ac_try) 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; } &&
2294 { ac_try='test -s conftest.$ac_objext'
2295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 (eval $ac_try) 2>&5
2297 ac_status=$?
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; }; then
2301 else
2302 echo "$as_me: failed program was:" >&5
2303 sed 's/^/| /' conftest.$ac_ext >&5
2305 ac_c_werror_flag=$ac_save_c_werror_flag
2306 CFLAGS="-g"
2307 cat >conftest.$ac_ext <<_ACEOF
2308 /* confdefs.h. */
2309 _ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2315 main ()
2319 return 0;
2321 _ACEOF
2322 rm -f conftest.$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324 (eval $ac_compile) 2>conftest.er1
2325 ac_status=$?
2326 grep -v '^ *+' conftest.er1 >conftest.err
2327 rm -f conftest.er1
2328 cat conftest.err >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
2331 { ac_try='test -z "$ac_c_werror_flag"
2332 || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 (eval $ac_try) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try='test -s conftest.$ac_objext'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 (eval $ac_try) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; }; then
2344 ac_cv_prog_cc_g=yes
2345 else
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2355 ac_c_werror_flag=$ac_save_c_werror_flag
2357 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2358 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2359 if test "$ac_test_CFLAGS" = set; then
2360 CFLAGS=$ac_save_CFLAGS
2361 elif test $ac_cv_prog_cc_g = yes; then
2362 if test "$GCC" = yes; then
2363 CFLAGS="-g -O2"
2364 else
2365 CFLAGS="-g"
2367 else
2368 if test "$GCC" = yes; then
2369 CFLAGS="-O2"
2370 else
2371 CFLAGS=
2374 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2375 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2376 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379 ac_cv_prog_cc_stdc=no
2380 ac_save_CC=$CC
2381 cat >conftest.$ac_ext <<_ACEOF
2382 /* confdefs.h. */
2383 _ACEOF
2384 cat confdefs.h >>conftest.$ac_ext
2385 cat >>conftest.$ac_ext <<_ACEOF
2386 /* end confdefs.h. */
2387 #include <stdarg.h>
2388 #include <stdio.h>
2389 #include <sys/types.h>
2390 #include <sys/stat.h>
2391 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2392 struct buf { int x; };
2393 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2394 static char *e (p, i)
2395 char **p;
2396 int i;
2398 return p[i];
2400 static char *f (char * (*g) (char **, int), char **p, ...)
2402 char *s;
2403 va_list v;
2404 va_start (v,p);
2405 s = g (p, va_arg (v,int));
2406 va_end (v);
2407 return s;
2410 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2411 function prototypes and stuff, but not '\xHH' hex character constants.
2412 These don't provoke an error unfortunately, instead are silently treated
2413 as 'x'. The following induces an error, until -std is added to get
2414 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2415 array size at least. It's necessary to write '\x00'==0 to get something
2416 that's true only with -std. */
2417 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2419 int test (int i, double x);
2420 struct s1 {int (*f) (int a);};
2421 struct s2 {int (*f) (double a);};
2422 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2423 int argc;
2424 char **argv;
2426 main ()
2428 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2430 return 0;
2432 _ACEOF
2433 # Don't try gcc -ansi; that turns off useful extensions and
2434 # breaks some systems' header files.
2435 # AIX -qlanglvl=ansi
2436 # Ultrix, OSF/1, Tru64 -std
2437 # HP-UX 10.20 and later -Ae
2438 # HP-UX older versions -Aa -D_HPUX_SOURCE
2439 # SVR4 -Xc -D__EXTENSIONS__
2440 for ac_arg in "" -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2442 CC="$ac_save_CC $ac_arg"
2443 rm -f conftest.$ac_objext
2444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445 (eval $ac_compile) 2>conftest.er1
2446 ac_status=$?
2447 grep -v '^ *+' conftest.er1 >conftest.err
2448 rm -f conftest.er1
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try='test -z "$ac_c_werror_flag"
2453 || test ! -s conftest.err'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 (eval $ac_try) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; } &&
2459 { ac_try='test -s conftest.$ac_objext'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2465 ac_cv_prog_cc_stdc=$ac_arg
2466 break
2467 else
2468 echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2472 rm -f conftest.err conftest.$ac_objext
2473 done
2474 rm -f conftest.$ac_ext conftest.$ac_objext
2475 CC=$ac_save_CC
2479 case "x$ac_cv_prog_cc_stdc" in
2480 x|xno)
2481 echo "$as_me:$LINENO: result: none needed" >&5
2482 echo "${ECHO_T}none needed" >&6 ;;
2484 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2485 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2486 CC="$CC $ac_cv_prog_cc_stdc" ;;
2487 esac
2489 # Some people use a C++ compiler to compile C. Since we use `exit',
2490 # in C++ we need to declare it. In case someone uses the same compiler
2491 # for both compiling C and C++ we need to have the C++ compiler decide
2492 # the declaration of exit, since it's the most demanding environment.
2493 cat >conftest.$ac_ext <<_ACEOF
2494 #ifndef __cplusplus
2495 choke me
2496 #endif
2497 _ACEOF
2498 rm -f conftest.$ac_objext
2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>conftest.er1
2501 ac_status=$?
2502 grep -v '^ *+' conftest.er1 >conftest.err
2503 rm -f conftest.er1
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag"
2508 || test ! -s conftest.err'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 (eval $ac_try) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try='test -s conftest.$ac_objext'
2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516 (eval $ac_try) 2>&5
2517 ac_status=$?
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; }; then
2520 for ac_declaration in \
2521 '' \
2522 'extern "C" void std::exit (int) throw (); using std::exit;' \
2523 'extern "C" void std::exit (int); using std::exit;' \
2524 'extern "C" void exit (int) throw ();' \
2525 'extern "C" void exit (int);' \
2526 'void exit (int);'
2528 cat >conftest.$ac_ext <<_ACEOF
2529 /* confdefs.h. */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2534 $ac_declaration
2535 #include <stdlib.h>
2537 main ()
2539 exit (42);
2541 return 0;
2543 _ACEOF
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546 (eval $ac_compile) 2>conftest.er1
2547 ac_status=$?
2548 grep -v '^ *+' conftest.er1 >conftest.err
2549 rm -f conftest.er1
2550 cat conftest.err >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -z "$ac_c_werror_flag"
2554 || test ! -s conftest.err'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 (eval $ac_try) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 (eval $ac_try) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2567 else
2568 echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2571 continue
2573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2574 cat >conftest.$ac_ext <<_ACEOF
2575 /* confdefs.h. */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h. */
2580 $ac_declaration
2582 main ()
2584 exit (42);
2586 return 0;
2588 _ACEOF
2589 rm -f conftest.$ac_objext
2590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591 (eval $ac_compile) 2>conftest.er1
2592 ac_status=$?
2593 grep -v '^ *+' conftest.er1 >conftest.err
2594 rm -f conftest.er1
2595 cat conftest.err >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } &&
2598 { ac_try='test -z "$ac_c_werror_flag"
2599 || test ! -s conftest.err'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 (eval $ac_try) 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; } &&
2605 { ac_try='test -s conftest.$ac_objext'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 (eval $ac_try) 2>&5
2608 ac_status=$?
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2611 break
2612 else
2613 echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2618 done
2619 rm -f conftest*
2620 if test -n "$ac_declaration"; then
2621 echo '#ifdef __cplusplus' >>confdefs.h
2622 echo $ac_declaration >>confdefs.h
2623 echo '#endif' >>confdefs.h
2626 else
2627 echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2632 ac_ext=c
2633 ac_cpp='$CPP $CPPFLAGS'
2634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2638 ac_ext=cc
2639 ac_cpp='$CXXCPP $CPPFLAGS'
2640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2643 if test -n "$ac_tool_prefix"; then
2644 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2648 echo "$as_me:$LINENO: checking for $ac_word" >&5
2649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2650 if test "${ac_cv_prog_CXX+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2652 else
2653 if test -n "$CXX"; then
2654 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 break 2
2667 done
2668 done
2672 CXX=$ac_cv_prog_CXX
2673 if test -n "$CXX"; then
2674 echo "$as_me:$LINENO: result: $CXX" >&5
2675 echo "${ECHO_T}$CXX" >&6
2676 else
2677 echo "$as_me:$LINENO: result: no" >&5
2678 echo "${ECHO_T}no" >&6
2681 test -n "$CXX" && break
2682 done
2684 if test -z "$CXX"; then
2685 ac_ct_CXX=$CXX
2686 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2688 # Extract the first word of "$ac_prog", so it can be a program name with args.
2689 set dummy $ac_prog; ac_word=$2
2690 echo "$as_me:$LINENO: checking for $ac_word" >&5
2691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2692 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2693 echo $ECHO_N "(cached) $ECHO_C" >&6
2694 else
2695 if test -n "$ac_ct_CXX"; then
2696 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2697 else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2705 ac_cv_prog_ac_ct_CXX="$ac_prog"
2706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 break 2
2709 done
2710 done
2714 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2715 if test -n "$ac_ct_CXX"; then
2716 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2717 echo "${ECHO_T}$ac_ct_CXX" >&6
2718 else
2719 echo "$as_me:$LINENO: result: no" >&5
2720 echo "${ECHO_T}no" >&6
2723 test -n "$ac_ct_CXX" && break
2724 done
2726 if test "x$ac_ct_CXX" = x; then
2727 CXX="g++"
2728 else
2729 if test "$build" != "$host"; then
2730 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2731 whose name does not start with the host triplet. If you think this
2732 configuration is useful to you, please write to autoconf@gnu.org." >&5
2733 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2734 whose name does not start with the host triplet. If you think this
2735 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2737 CXX=$ac_ct_CXX
2742 # Provide some information about the compiler.
2743 echo "$as_me:$LINENO:" \
2744 "checking for C++ compiler version" >&5
2745 ac_compiler=`set X $ac_compile; echo $2`
2746 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2747 (eval $ac_compiler --version </dev/null >&5) 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }
2751 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2752 (eval $ac_compiler -v </dev/null >&5) 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }
2756 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2757 (eval $ac_compiler -V </dev/null >&5) 2>&5
2758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }
2762 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2763 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2764 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767 cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h. */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2775 main ()
2777 #ifndef __GNUC__
2778 choke me
2779 #endif
2782 return 0;
2784 _ACEOF
2785 rm -f conftest.$ac_objext
2786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2787 (eval $ac_compile) 2>conftest.er1
2788 ac_status=$?
2789 grep -v '^ *+' conftest.er1 >conftest.err
2790 rm -f conftest.er1
2791 cat conftest.err >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); } &&
2794 { ac_try='test -z "$ac_cxx_werror_flag"
2795 || test ! -s conftest.err'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; } &&
2801 { ac_try='test -s conftest.$ac_objext'
2802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 (eval $ac_try) 2>&5
2804 ac_status=$?
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; }; then
2807 ac_compiler_gnu=yes
2808 else
2809 echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2812 ac_compiler_gnu=no
2814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2815 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2818 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2819 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2820 GXX=`test $ac_compiler_gnu = yes && echo yes`
2821 ac_test_CXXFLAGS=${CXXFLAGS+set}
2822 ac_save_CXXFLAGS=$CXXFLAGS
2823 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2824 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2825 if test "${ac_cv_prog_cxx_g+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 else
2828 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2829 ac_cxx_werror_flag=yes
2830 ac_cv_prog_cxx_g=no
2831 CXXFLAGS="-g"
2832 cat >conftest.$ac_ext <<_ACEOF
2833 /* confdefs.h. */
2834 _ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2840 main ()
2844 return 0;
2846 _ACEOF
2847 rm -f conftest.$ac_objext
2848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2849 (eval $ac_compile) 2>conftest.er1
2850 ac_status=$?
2851 grep -v '^ *+' conftest.er1 >conftest.err
2852 rm -f conftest.er1
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } &&
2856 { ac_try='test -z "$ac_cxx_werror_flag"
2857 || test ! -s conftest.err'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 (eval $ac_try) 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; } &&
2863 { ac_try='test -s conftest.$ac_objext'
2864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865 (eval $ac_try) 2>&5
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2869 ac_cv_prog_cxx_g=yes
2870 else
2871 echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2874 CXXFLAGS=""
2875 cat >conftest.$ac_ext <<_ACEOF
2876 /* confdefs.h. */
2877 _ACEOF
2878 cat confdefs.h >>conftest.$ac_ext
2879 cat >>conftest.$ac_ext <<_ACEOF
2880 /* end confdefs.h. */
2883 main ()
2887 return 0;
2889 _ACEOF
2890 rm -f conftest.$ac_objext
2891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2892 (eval $ac_compile) 2>conftest.er1
2893 ac_status=$?
2894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
2899 { ac_try='test -z "$ac_cxx_werror_flag"
2900 || test ! -s conftest.err'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; } &&
2906 { ac_try='test -s conftest.$ac_objext'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 (eval $ac_try) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2913 else
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2917 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2918 CXXFLAGS="-g"
2919 cat >conftest.$ac_ext <<_ACEOF
2920 /* confdefs.h. */
2921 _ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2927 main ()
2931 return 0;
2933 _ACEOF
2934 rm -f conftest.$ac_objext
2935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2936 (eval $ac_compile) 2>conftest.er1
2937 ac_status=$?
2938 grep -v '^ *+' conftest.er1 >conftest.err
2939 rm -f conftest.er1
2940 cat conftest.err >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } &&
2943 { ac_try='test -z "$ac_cxx_werror_flag"
2944 || test ! -s conftest.err'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 (eval $ac_try) 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; } &&
2950 { ac_try='test -s conftest.$ac_objext'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 (eval $ac_try) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2956 ac_cv_prog_cxx_g=yes
2957 else
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2967 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2969 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2970 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2971 if test "$ac_test_CXXFLAGS" = set; then
2972 CXXFLAGS=$ac_save_CXXFLAGS
2973 elif test $ac_cv_prog_cxx_g = yes; then
2974 if test "$GXX" = yes; then
2975 CXXFLAGS="-g -O2"
2976 else
2977 CXXFLAGS="-g"
2979 else
2980 if test "$GXX" = yes; then
2981 CXXFLAGS="-O2"
2982 else
2983 CXXFLAGS=
2986 for ac_declaration in \
2987 '' \
2988 'extern "C" void std::exit (int) throw (); using std::exit;' \
2989 'extern "C" void std::exit (int); using std::exit;' \
2990 'extern "C" void exit (int) throw ();' \
2991 'extern "C" void exit (int);' \
2992 'void exit (int);'
2994 cat >conftest.$ac_ext <<_ACEOF
2995 /* confdefs.h. */
2996 _ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h. */
3000 $ac_declaration
3001 #include <stdlib.h>
3003 main ()
3005 exit (42);
3007 return 0;
3009 _ACEOF
3010 rm -f conftest.$ac_objext
3011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3012 (eval $ac_compile) 2>conftest.er1
3013 ac_status=$?
3014 grep -v '^ *+' conftest.er1 >conftest.err
3015 rm -f conftest.er1
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } &&
3019 { ac_try='test -z "$ac_cxx_werror_flag"
3020 || test ! -s conftest.err'
3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022 (eval $ac_try) 2>&5
3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; } &&
3026 { ac_try='test -s conftest.$ac_objext'
3027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028 (eval $ac_try) 2>&5
3029 ac_status=$?
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; }; then
3033 else
3034 echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3037 continue
3039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3040 cat >conftest.$ac_ext <<_ACEOF
3041 /* confdefs.h. */
3042 _ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3046 $ac_declaration
3048 main ()
3050 exit (42);
3052 return 0;
3054 _ACEOF
3055 rm -f conftest.$ac_objext
3056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3057 (eval $ac_compile) 2>conftest.er1
3058 ac_status=$?
3059 grep -v '^ *+' conftest.er1 >conftest.err
3060 rm -f conftest.er1
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } &&
3064 { ac_try='test -z "$ac_cxx_werror_flag"
3065 || test ! -s conftest.err'
3066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067 (eval $ac_try) 2>&5
3068 ac_status=$?
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; } &&
3071 { ac_try='test -s conftest.$ac_objext'
3072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3073 (eval $ac_try) 2>&5
3074 ac_status=$?
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; }; then
3077 break
3078 else
3079 echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3084 done
3085 rm -f conftest*
3086 if test -n "$ac_declaration"; then
3087 echo '#ifdef __cplusplus' >>confdefs.h
3088 echo $ac_declaration >>confdefs.h
3089 echo '#endif' >>confdefs.h
3092 ac_ext=c
3093 ac_cpp='$CPP $CPPFLAGS'
3094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100 ac_ext=cc
3101 ac_cpp='$CXXCPP $CPPFLAGS'
3102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3106 if test "$cross_compiling" = no; then
3107 echo "$as_me:$LINENO: checking that C++ compiler can compile simple program" >&5
3108 echo $ECHO_N "checking that C++ compiler can compile simple program... $ECHO_C" >&6
3110 if test "$cross_compiling" = yes; then
3112 else
3113 cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h. */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3122 int main() {
3123 return 0;
3128 _ACEOF
3129 rm -f conftest$ac_exeext
3130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3131 (eval $ac_link) 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3136 (eval $ac_try) 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; }; then
3140 echo "$as_me:$LINENO: result: yes" >&5
3141 echo "${ECHO_T}yes" >&6
3142 else
3143 echo "$as_me: program exited with status $ac_status" >&5
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3147 ( exit $ac_status )
3148 echo "$as_me:$LINENO: result: no" >&5
3149 echo "${ECHO_T}no" >&6
3150 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
3151 echo "$as_me: error: a working C++ compiler is required" >&2;}
3152 { (exit 1); exit 1; }; }
3154 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3157 if test "$cross_compiling" = no; then
3158 echo "$as_me:$LINENO: checking that C++ static constructors and destructors are called" >&5
3159 echo $ECHO_N "checking that C++ static constructors and destructors are called... $ECHO_C" >&6
3161 if test "$cross_compiling" = yes; then
3163 else
3164 cat >conftest.$ac_ext <<_ACEOF
3166 /* confdefs.h. */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3173 extern "C" {
3174 void _exit(int);
3177 int i;
3178 struct A {
3179 char dummy;
3180 A() { i = 1; }
3181 ~A() { if (i == 1) _exit(0); }
3184 A a;
3186 int main()
3188 return 1;
3193 _ACEOF
3194 rm -f conftest$ac_exeext
3195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3196 (eval $ac_link) 2>&5
3197 ac_status=$?
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201 (eval $ac_try) 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; }; then
3205 echo "$as_me:$LINENO: result: yes" >&5
3206 echo "${ECHO_T}yes" >&6
3207 else
3208 echo "$as_me: program exited with status $ac_status" >&5
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3212 ( exit $ac_status )
3213 echo "$as_me:$LINENO: result: no" >&5
3214 echo "${ECHO_T}no" >&6
3215 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
3216 echo "$as_me: error: a working C++ compiler is required" >&2;}
3217 { (exit 1); exit 1; }; }
3219 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3222 echo "$as_me:$LINENO: checking that header files support C++" >&5
3223 echo $ECHO_N "checking that header files support C++... $ECHO_C" >&6
3224 cat >conftest.$ac_ext <<_ACEOF
3226 /* confdefs.h. */
3227 _ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h. */
3233 #include <stdio.h>
3237 main ()
3241 fopen(0, 0);
3245 return 0;
3248 _ACEOF
3249 rm -f conftest.$ac_objext conftest$ac_exeext
3250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3251 (eval $ac_link) 2>conftest.er1
3252 ac_status=$?
3253 grep -v '^ *+' conftest.er1 >conftest.err
3254 rm -f conftest.er1
3255 cat conftest.err >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } &&
3258 { ac_try='test -z "$ac_cxx_werror_flag"
3259 || test ! -s conftest.err'
3260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261 (eval $ac_try) 2>&5
3262 ac_status=$?
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }; } &&
3265 { ac_try='test -s conftest$ac_exeext'
3266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 (eval $ac_try) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; }; then
3271 echo "$as_me:$LINENO: result: yes" >&5
3272 echo "${ECHO_T}yes" >&6
3273 else
3274 echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3277 echo "$as_me:$LINENO: result: no" >&5
3278 echo "${ECHO_T}no" >&6
3279 { { echo "$as_me:$LINENO: error: header files do not support C++
3280 (if you are using a version of gcc/g++ earlier than 2.5,
3281 you should install libg++)" >&5
3282 echo "$as_me: error: header files do not support C++
3283 (if you are using a version of gcc/g++ earlier than 2.5,
3284 you should install libg++)" >&2;}
3285 { (exit 1); exit 1; }; }
3287 rm -f conftest.err conftest.$ac_objext \
3288 conftest$ac_exeext conftest.$ac_ext
3289 ac_ext=c
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3296 echo "$as_me:$LINENO: checking whether character set is EBCDIC" >&5
3297 echo $ECHO_N "checking whether character set is EBCDIC... $ECHO_C" >&6
3298 cat >conftest.$ac_ext <<_ACEOF
3300 /* confdefs.h. */
3301 _ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3307 /* Treat any failure as ASCII for compatibility with existing art.
3308 Use compile-time rather than run-time tests for cross-compiler
3309 tolerance. */
3310 #if '0' != 240
3311 make an error "Character set is not EBCDIC"
3312 #endif
3316 main ()
3320 return 0;
3323 _ACEOF
3324 rm -f conftest.$ac_objext
3325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3326 (eval $ac_compile) 2>conftest.er1
3327 ac_status=$?
3328 grep -v '^ *+' conftest.er1 >conftest.err
3329 rm -f conftest.er1
3330 cat conftest.err >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } &&
3333 { ac_try='test -z "$ac_c_werror_flag"
3334 || test ! -s conftest.err'
3335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336 (eval $ac_try) 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; } &&
3340 { ac_try='test -s conftest.$ac_objext'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 (eval $ac_try) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; }; then
3346 groff_cv_ebcdic="yes"
3347 TTYDEVDIRS="font/devcp1047"
3348 echo "$as_me:$LINENO: result: yes" >&5
3349 echo "${ECHO_T}yes" >&6
3351 cat >>confdefs.h <<\_ACEOF
3352 #define IS_EBCDIC_HOST 1
3353 _ACEOF
3355 else
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 groff_cv_ebcdic="no"
3360 TTYDEVDIRS="font/devascii font/devlatin1"
3361 OTHERDEVDIRS="font/devlj4 font/devlbp"
3362 echo "$as_me:$LINENO: result: no" >&5
3363 echo "${ECHO_T}no" >&6
3365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3368 if test "$groff_cv_ebcdic" = "yes"; then
3369 echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3370 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
3371 case `uname` in
3372 OS/390)
3373 CFLAGS="$CFLAGS -D_ALL_SOURCE"
3374 echo "$as_me:$LINENO: result: yes" >&5
3375 echo "${ECHO_T}yes" >&6 ;;
3377 echo "$as_me:$LINENO: result: no" >&5
3378 echo "${ECHO_T}no" >&6 ;;
3379 esac
3381 ac_ext=c
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3387 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3388 # On Suns, sometimes $CPP names a directory.
3389 if test -n "$CPP" && test -d "$CPP"; then
3390 CPP=
3392 if test -z "$CPP"; then
3393 if test "${ac_cv_prog_CPP+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396 # Double quotes because CPP needs to be expanded
3397 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3399 ac_preproc_ok=false
3400 for ac_c_preproc_warn_flag in '' yes
3402 # Use a header file that comes with gcc, so configuring glibc
3403 # with a fresh cross-compiler works.
3404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3405 # <limits.h> exists even on freestanding compilers.
3406 # On the NeXT, cc -E runs the code through the compiler's parser,
3407 # not just through cpp. "Syntax error" is here to catch this case.
3408 cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h. */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3414 #ifdef __STDC__
3415 # include <limits.h>
3416 #else
3417 # include <assert.h>
3418 #endif
3419 Syntax error
3420 _ACEOF
3421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3423 ac_status=$?
3424 grep -v '^ *+' conftest.er1 >conftest.err
3425 rm -f conftest.er1
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } >/dev/null; then
3429 if test -s conftest.err; then
3430 ac_cpp_err=$ac_c_preproc_warn_flag
3431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3432 else
3433 ac_cpp_err=
3435 else
3436 ac_cpp_err=yes
3438 if test -z "$ac_cpp_err"; then
3440 else
3441 echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3444 # Broken: fails on valid input.
3445 continue
3447 rm -f conftest.err conftest.$ac_ext
3449 # OK, works on sane cases. Now check whether non-existent headers
3450 # can be detected and how.
3451 cat >conftest.$ac_ext <<_ACEOF
3452 /* confdefs.h. */
3453 _ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3457 #include <ac_nonexistent.h>
3458 _ACEOF
3459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3461 ac_status=$?
3462 grep -v '^ *+' conftest.er1 >conftest.err
3463 rm -f conftest.er1
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } >/dev/null; then
3467 if test -s conftest.err; then
3468 ac_cpp_err=$ac_c_preproc_warn_flag
3469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3470 else
3471 ac_cpp_err=
3473 else
3474 ac_cpp_err=yes
3476 if test -z "$ac_cpp_err"; then
3477 # Broken: success on invalid input.
3478 continue
3479 else
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3483 # Passes both tests.
3484 ac_preproc_ok=:
3485 break
3487 rm -f conftest.err conftest.$ac_ext
3489 done
3490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3491 rm -f conftest.err conftest.$ac_ext
3492 if $ac_preproc_ok; then
3493 break
3496 done
3497 ac_cv_prog_CPP=$CPP
3500 CPP=$ac_cv_prog_CPP
3501 else
3502 ac_cv_prog_CPP=$CPP
3504 echo "$as_me:$LINENO: result: $CPP" >&5
3505 echo "${ECHO_T}$CPP" >&6
3506 ac_preproc_ok=false
3507 for ac_c_preproc_warn_flag in '' yes
3509 # Use a header file that comes with gcc, so configuring glibc
3510 # with a fresh cross-compiler works.
3511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3512 # <limits.h> exists even on freestanding compilers.
3513 # On the NeXT, cc -E runs the code through the compiler's parser,
3514 # not just through cpp. "Syntax error" is here to catch this case.
3515 cat >conftest.$ac_ext <<_ACEOF
3516 /* confdefs.h. */
3517 _ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h. */
3521 #ifdef __STDC__
3522 # include <limits.h>
3523 #else
3524 # include <assert.h>
3525 #endif
3526 Syntax error
3527 _ACEOF
3528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3530 ac_status=$?
3531 grep -v '^ *+' conftest.er1 >conftest.err
3532 rm -f conftest.er1
3533 cat conftest.err >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } >/dev/null; then
3536 if test -s conftest.err; then
3537 ac_cpp_err=$ac_c_preproc_warn_flag
3538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3539 else
3540 ac_cpp_err=
3542 else
3543 ac_cpp_err=yes
3545 if test -z "$ac_cpp_err"; then
3547 else
3548 echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3551 # Broken: fails on valid input.
3552 continue
3554 rm -f conftest.err conftest.$ac_ext
3556 # OK, works on sane cases. Now check whether non-existent headers
3557 # can be detected and how.
3558 cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h. */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3564 #include <ac_nonexistent.h>
3565 _ACEOF
3566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3568 ac_status=$?
3569 grep -v '^ *+' conftest.er1 >conftest.err
3570 rm -f conftest.er1
3571 cat conftest.err >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } >/dev/null; then
3574 if test -s conftest.err; then
3575 ac_cpp_err=$ac_c_preproc_warn_flag
3576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3577 else
3578 ac_cpp_err=
3580 else
3581 ac_cpp_err=yes
3583 if test -z "$ac_cpp_err"; then
3584 # Broken: success on invalid input.
3585 continue
3586 else
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3590 # Passes both tests.
3591 ac_preproc_ok=:
3592 break
3594 rm -f conftest.err conftest.$ac_ext
3596 done
3597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3598 rm -f conftest.err conftest.$ac_ext
3599 if $ac_preproc_ok; then
3601 else
3602 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3603 See \`config.log' for more details." >&5
3604 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3605 See \`config.log' for more details." >&2;}
3606 { (exit 1); exit 1; }; }
3609 ac_ext=c
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3616 echo "$as_me:$LINENO: checking for X" >&5
3617 echo $ECHO_N "checking for X... $ECHO_C" >&6
3620 # Check whether --with-x or --without-x was given.
3621 if test "${with_x+set}" = set; then
3622 withval="$with_x"
3625 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3626 if test "x$with_x" = xno; then
3627 # The user explicitly disabled X.
3628 have_x=disabled
3629 else
3630 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3631 # Both variables are already set.
3632 have_x=yes
3633 else
3634 if test "${ac_cv_have_x+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 else
3637 # One or both of the vars are not set, and there is no cached value.
3638 ac_x_includes=no ac_x_libraries=no
3639 rm -f -r conftest.dir
3640 if mkdir conftest.dir; then
3641 cd conftest.dir
3642 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3643 cat >Imakefile <<'_ACEOF'
3644 acfindx:
3645 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3646 _ACEOF
3647 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3648 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3649 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3650 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3651 for ac_extension in a so sl; do
3652 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3653 test -f $ac_im_libdir/libX11.$ac_extension; then
3654 ac_im_usrlibdir=$ac_im_libdir; break
3656 done
3657 # Screen out bogus values from the imake configuration. They are
3658 # bogus both because they are the default anyway, and because
3659 # using them would break gcc on systems where it needs fixed includes.
3660 case $ac_im_incroot in
3661 /usr/include) ;;
3662 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3663 esac
3664 case $ac_im_usrlibdir in
3665 /usr/lib | /lib) ;;
3666 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3667 esac
3669 cd ..
3670 rm -f -r conftest.dir
3673 # Standard set of common directories for X headers.
3674 # Check X11 before X11Rn because it is often a symlink to the current release.
3675 ac_x_header_dirs='
3676 /usr/X11/include
3677 /usr/X11R6/include
3678 /usr/X11R5/include
3679 /usr/X11R4/include
3681 /usr/include/X11
3682 /usr/include/X11R6
3683 /usr/include/X11R5
3684 /usr/include/X11R4
3686 /usr/local/X11/include
3687 /usr/local/X11R6/include
3688 /usr/local/X11R5/include
3689 /usr/local/X11R4/include
3691 /usr/local/include/X11
3692 /usr/local/include/X11R6
3693 /usr/local/include/X11R5
3694 /usr/local/include/X11R4
3696 /usr/X386/include
3697 /usr/x386/include
3698 /usr/XFree86/include/X11
3700 /usr/include
3701 /usr/local/include
3702 /usr/unsupported/include
3703 /usr/athena/include
3704 /usr/local/x11r5/include
3705 /usr/lpp/Xamples/include
3707 /usr/openwin/include
3708 /usr/openwin/share/include'
3710 if test "$ac_x_includes" = no; then
3711 # Guess where to find include files, by looking for Intrinsic.h.
3712 # First, try using that file with no special directory specified.
3713 cat >conftest.$ac_ext <<_ACEOF
3714 /* confdefs.h. */
3715 _ACEOF
3716 cat confdefs.h >>conftest.$ac_ext
3717 cat >>conftest.$ac_ext <<_ACEOF
3718 /* end confdefs.h. */
3719 #include <X11/Intrinsic.h>
3720 _ACEOF
3721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3723 ac_status=$?
3724 grep -v '^ *+' conftest.er1 >conftest.err
3725 rm -f conftest.er1
3726 cat conftest.err >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } >/dev/null; then
3729 if test -s conftest.err; then
3730 ac_cpp_err=$ac_c_preproc_warn_flag
3731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3732 else
3733 ac_cpp_err=
3735 else
3736 ac_cpp_err=yes
3738 if test -z "$ac_cpp_err"; then
3739 # We can compile using X headers with no special include directory.
3740 ac_x_includes=
3741 else
3742 echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3745 for ac_dir in $ac_x_header_dirs; do
3746 if test -r "$ac_dir/X11/Intrinsic.h"; then
3747 ac_x_includes=$ac_dir
3748 break
3750 done
3752 rm -f conftest.err conftest.$ac_ext
3753 fi # $ac_x_includes = no
3755 if test "$ac_x_libraries" = no; then
3756 # Check for the libraries.
3757 # See if we find them without any special options.
3758 # Don't add to $LIBS permanently.
3759 ac_save_LIBS=$LIBS
3760 LIBS="-lXt $LIBS"
3761 cat >conftest.$ac_ext <<_ACEOF
3762 /* confdefs.h. */
3763 _ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3767 #include <X11/Intrinsic.h>
3769 main ()
3771 XtMalloc (0)
3773 return 0;
3775 _ACEOF
3776 rm -f conftest.$ac_objext conftest$ac_exeext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3778 (eval $ac_link) 2>conftest.er1
3779 ac_status=$?
3780 grep -v '^ *+' conftest.er1 >conftest.err
3781 rm -f conftest.er1
3782 cat conftest.err >&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); } &&
3785 { ac_try='test -z "$ac_c_werror_flag"
3786 || test ! -s conftest.err'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788 (eval $ac_try) 2>&5
3789 ac_status=$?
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; } &&
3792 { ac_try='test -s conftest$ac_exeext'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794 (eval $ac_try) 2>&5
3795 ac_status=$?
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; }; then
3798 LIBS=$ac_save_LIBS
3799 # We can link X programs with no special library path.
3800 ac_x_libraries=
3801 else
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3805 LIBS=$ac_save_LIBS
3806 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3808 # Don't even attempt the hair of trying to link an X program!
3809 for ac_extension in a so sl; do
3810 if test -r $ac_dir/libXt.$ac_extension; then
3811 ac_x_libraries=$ac_dir
3812 break 2
3814 done
3815 done
3817 rm -f conftest.err conftest.$ac_objext \
3818 conftest$ac_exeext conftest.$ac_ext
3819 fi # $ac_x_libraries = no
3821 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3822 # Didn't find X anywhere. Cache the known absence of X.
3823 ac_cv_have_x="have_x=no"
3824 else
3825 # Record where we found X for the cache.
3826 ac_cv_have_x="have_x=yes \
3827 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3832 eval "$ac_cv_have_x"
3833 fi # $with_x != no
3835 if test "$have_x" != yes; then
3836 echo "$as_me:$LINENO: result: $have_x" >&5
3837 echo "${ECHO_T}$have_x" >&6
3838 no_x=yes
3839 else
3840 # If each of the values was on the command line, it overrides each guess.
3841 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3842 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3843 # Update the cache value to reflect the command line values.
3844 ac_cv_have_x="have_x=yes \
3845 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3846 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3847 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3850 if test "$no_x" = yes; then
3851 # Not all programs may use this symbol, but it does not hurt to define it.
3853 cat >>confdefs.h <<\_ACEOF
3854 #define X_DISPLAY_MISSING 1
3855 _ACEOF
3857 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3858 else
3859 if test -n "$x_includes"; then
3860 X_CFLAGS="$X_CFLAGS -I$x_includes"
3863 # It would also be nice to do this for all -L options, not just this one.
3864 if test -n "$x_libraries"; then
3865 X_LIBS="$X_LIBS -L$x_libraries"
3866 # For Solaris; some versions of Sun CC require a space after -R and
3867 # others require no space. Words are not sufficient . . . .
3868 case `(uname -sr) 2>/dev/null` in
3869 "SunOS 5"*)
3870 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3871 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3872 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3873 cat >conftest.$ac_ext <<_ACEOF
3874 /* confdefs.h. */
3875 _ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3881 main ()
3885 return 0;
3887 _ACEOF
3888 rm -f conftest.$ac_objext conftest$ac_exeext
3889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3890 (eval $ac_link) 2>conftest.er1
3891 ac_status=$?
3892 grep -v '^ *+' conftest.er1 >conftest.err
3893 rm -f conftest.er1
3894 cat conftest.err >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } &&
3897 { ac_try='test -z "$ac_c_werror_flag"
3898 || test ! -s conftest.err'
3899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3900 (eval $ac_try) 2>&5
3901 ac_status=$?
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }; } &&
3904 { ac_try='test -s conftest$ac_exeext'
3905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906 (eval $ac_try) 2>&5
3907 ac_status=$?
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; }; then
3910 ac_R_nospace=yes
3911 else
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3915 ac_R_nospace=no
3917 rm -f conftest.err conftest.$ac_objext \
3918 conftest$ac_exeext conftest.$ac_ext
3919 if test $ac_R_nospace = yes; then
3920 echo "$as_me:$LINENO: result: no" >&5
3921 echo "${ECHO_T}no" >&6
3922 X_LIBS="$X_LIBS -R$x_libraries"
3923 else
3924 LIBS="$ac_xsave_LIBS -R $x_libraries"
3925 cat >conftest.$ac_ext <<_ACEOF
3926 /* confdefs.h. */
3927 _ACEOF
3928 cat confdefs.h >>conftest.$ac_ext
3929 cat >>conftest.$ac_ext <<_ACEOF
3930 /* end confdefs.h. */
3933 main ()
3937 return 0;
3939 _ACEOF
3940 rm -f conftest.$ac_objext conftest$ac_exeext
3941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3942 (eval $ac_link) 2>conftest.er1
3943 ac_status=$?
3944 grep -v '^ *+' conftest.er1 >conftest.err
3945 rm -f conftest.er1
3946 cat conftest.err >&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } &&
3949 { ac_try='test -z "$ac_c_werror_flag"
3950 || test ! -s conftest.err'
3951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952 (eval $ac_try) 2>&5
3953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; } &&
3956 { ac_try='test -s conftest$ac_exeext'
3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958 (eval $ac_try) 2>&5
3959 ac_status=$?
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3962 ac_R_space=yes
3963 else
3964 echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3967 ac_R_space=no
3969 rm -f conftest.err conftest.$ac_objext \
3970 conftest$ac_exeext conftest.$ac_ext
3971 if test $ac_R_space = yes; then
3972 echo "$as_me:$LINENO: result: yes" >&5
3973 echo "${ECHO_T}yes" >&6
3974 X_LIBS="$X_LIBS -R $x_libraries"
3975 else
3976 echo "$as_me:$LINENO: result: neither works" >&5
3977 echo "${ECHO_T}neither works" >&6
3980 LIBS=$ac_xsave_LIBS
3981 esac
3984 # Check for system-dependent libraries X programs must link with.
3985 # Do this before checking for the system-independent R6 libraries
3986 # (-lICE), since we may need -lsocket or whatever for X linking.
3988 if test "$ISC" = yes; then
3989 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3990 else
3991 # Martyn Johnson says this is needed for Ultrix, if the X
3992 # libraries were built with DECnet support. And Karl Berry says
3993 # the Alpha needs dnet_stub (dnet does not exist).
3994 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3995 cat >conftest.$ac_ext <<_ACEOF
3996 /* confdefs.h. */
3997 _ACEOF
3998 cat confdefs.h >>conftest.$ac_ext
3999 cat >>conftest.$ac_ext <<_ACEOF
4000 /* end confdefs.h. */
4002 /* Override any gcc2 internal prototype to avoid an error. */
4003 #ifdef __cplusplus
4004 extern "C"
4005 #endif
4006 /* We use char because int might match the return type of a gcc2
4007 builtin and then its argument prototype would still apply. */
4008 char XOpenDisplay ();
4010 main ()
4012 XOpenDisplay ();
4014 return 0;
4016 _ACEOF
4017 rm -f conftest.$ac_objext conftest$ac_exeext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4019 (eval $ac_link) 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_c_werror_flag"
4027 || test ! -s conftest.err'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 (eval $ac_try) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; } &&
4033 { ac_try='test -s conftest$ac_exeext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 (eval $ac_try) 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4040 else
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4044 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4045 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4046 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049 ac_check_lib_save_LIBS=$LIBS
4050 LIBS="-ldnet $LIBS"
4051 cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h. */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4058 /* Override any gcc2 internal prototype to avoid an error. */
4059 #ifdef __cplusplus
4060 extern "C"
4061 #endif
4062 /* We use char because int might match the return type of a gcc2
4063 builtin and then its argument prototype would still apply. */
4064 char dnet_ntoa ();
4066 main ()
4068 dnet_ntoa ();
4070 return 0;
4072 _ACEOF
4073 rm -f conftest.$ac_objext conftest$ac_exeext
4074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4075 (eval $ac_link) 2>conftest.er1
4076 ac_status=$?
4077 grep -v '^ *+' conftest.er1 >conftest.err
4078 rm -f conftest.er1
4079 cat conftest.err >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } &&
4082 { ac_try='test -z "$ac_c_werror_flag"
4083 || test ! -s conftest.err'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 (eval $ac_try) 2>&5
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; } &&
4089 { ac_try='test -s conftest$ac_exeext'
4090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091 (eval $ac_try) 2>&5
4092 ac_status=$?
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; }; then
4095 ac_cv_lib_dnet_dnet_ntoa=yes
4096 else
4097 echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4100 ac_cv_lib_dnet_dnet_ntoa=no
4102 rm -f conftest.err conftest.$ac_objext \
4103 conftest$ac_exeext conftest.$ac_ext
4104 LIBS=$ac_check_lib_save_LIBS
4106 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4107 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4108 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4109 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4112 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4113 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4114 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4115 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118 ac_check_lib_save_LIBS=$LIBS
4119 LIBS="-ldnet_stub $LIBS"
4120 cat >conftest.$ac_ext <<_ACEOF
4121 /* confdefs.h. */
4122 _ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4127 /* Override any gcc2 internal prototype to avoid an error. */
4128 #ifdef __cplusplus
4129 extern "C"
4130 #endif
4131 /* We use char because int might match the return type of a gcc2
4132 builtin and then its argument prototype would still apply. */
4133 char dnet_ntoa ();
4135 main ()
4137 dnet_ntoa ();
4139 return 0;
4141 _ACEOF
4142 rm -f conftest.$ac_objext conftest$ac_exeext
4143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4144 (eval $ac_link) 2>conftest.er1
4145 ac_status=$?
4146 grep -v '^ *+' conftest.er1 >conftest.err
4147 rm -f conftest.er1
4148 cat conftest.err >&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } &&
4151 { ac_try='test -z "$ac_c_werror_flag"
4152 || test ! -s conftest.err'
4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 (eval $ac_try) 2>&5
4155 ac_status=$?
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; } &&
4158 { ac_try='test -s conftest$ac_exeext'
4159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4160 (eval $ac_try) 2>&5
4161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
4164 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4165 else
4166 echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4169 ac_cv_lib_dnet_stub_dnet_ntoa=no
4171 rm -f conftest.err conftest.$ac_objext \
4172 conftest$ac_exeext conftest.$ac_ext
4173 LIBS=$ac_check_lib_save_LIBS
4175 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4176 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4177 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4178 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4183 rm -f conftest.err conftest.$ac_objext \
4184 conftest$ac_exeext conftest.$ac_ext
4185 LIBS="$ac_xsave_LIBS"
4187 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4188 # to get the SysV transport functions.
4189 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4190 # needs -lnsl.
4191 # The nsl library prevents programs from opening the X display
4192 # on Irix 5.2, according to T.E. Dickey.
4193 # The functions gethostbyname, getservbyname, and inet_addr are
4194 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4195 echo "$as_me:$LINENO: checking for gethostbyname" >&5
4196 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4197 if test "${ac_cv_func_gethostbyname+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200 cat >conftest.$ac_ext <<_ACEOF
4201 /* confdefs.h. */
4202 _ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4206 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4208 #define gethostbyname innocuous_gethostbyname
4210 /* System header to define __stub macros and hopefully few prototypes,
4211 which can conflict with char gethostbyname (); below.
4212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4213 <limits.h> exists even on freestanding compilers. */
4215 #ifdef __STDC__
4216 # include <limits.h>
4217 #else
4218 # include <assert.h>
4219 #endif
4221 #undef gethostbyname
4223 /* Override any gcc2 internal prototype to avoid an error. */
4224 #ifdef __cplusplus
4225 extern "C"
4227 #endif
4228 /* We use char because int might match the return type of a gcc2
4229 builtin and then its argument prototype would still apply. */
4230 char gethostbyname ();
4231 /* The GNU C library defines this for functions which it implements
4232 to always fail with ENOSYS. Some functions are actually named
4233 something starting with __ and the normal name is an alias. */
4234 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4235 choke me
4236 #else
4237 char (*f) () = gethostbyname;
4238 #endif
4239 #ifdef __cplusplus
4241 #endif
4244 main ()
4246 return f != gethostbyname;
4248 return 0;
4250 _ACEOF
4251 rm -f conftest.$ac_objext conftest$ac_exeext
4252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4253 (eval $ac_link) 2>conftest.er1
4254 ac_status=$?
4255 grep -v '^ *+' conftest.er1 >conftest.err
4256 rm -f conftest.er1
4257 cat conftest.err >&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); } &&
4260 { ac_try='test -z "$ac_c_werror_flag"
4261 || test ! -s conftest.err'
4262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263 (eval $ac_try) 2>&5
4264 ac_status=$?
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); }; } &&
4267 { ac_try='test -s conftest$ac_exeext'
4268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269 (eval $ac_try) 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; }; then
4273 ac_cv_func_gethostbyname=yes
4274 else
4275 echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4278 ac_cv_func_gethostbyname=no
4280 rm -f conftest.err conftest.$ac_objext \
4281 conftest$ac_exeext conftest.$ac_ext
4283 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4284 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4286 if test $ac_cv_func_gethostbyname = no; then
4287 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4288 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4289 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292 ac_check_lib_save_LIBS=$LIBS
4293 LIBS="-lnsl $LIBS"
4294 cat >conftest.$ac_ext <<_ACEOF
4295 /* confdefs.h. */
4296 _ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4301 /* Override any gcc2 internal prototype to avoid an error. */
4302 #ifdef __cplusplus
4303 extern "C"
4304 #endif
4305 /* We use char because int might match the return type of a gcc2
4306 builtin and then its argument prototype would still apply. */
4307 char gethostbyname ();
4309 main ()
4311 gethostbyname ();
4313 return 0;
4315 _ACEOF
4316 rm -f conftest.$ac_objext conftest$ac_exeext
4317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4318 (eval $ac_link) 2>conftest.er1
4319 ac_status=$?
4320 grep -v '^ *+' conftest.er1 >conftest.err
4321 rm -f conftest.er1
4322 cat conftest.err >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } &&
4325 { ac_try='test -z "$ac_c_werror_flag"
4326 || test ! -s conftest.err'
4327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4328 (eval $ac_try) 2>&5
4329 ac_status=$?
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); }; } &&
4332 { ac_try='test -s conftest$ac_exeext'
4333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334 (eval $ac_try) 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
4338 ac_cv_lib_nsl_gethostbyname=yes
4339 else
4340 echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4343 ac_cv_lib_nsl_gethostbyname=no
4345 rm -f conftest.err conftest.$ac_objext \
4346 conftest$ac_exeext conftest.$ac_ext
4347 LIBS=$ac_check_lib_save_LIBS
4349 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4350 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4351 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4352 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4355 if test $ac_cv_lib_nsl_gethostbyname = no; then
4356 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4357 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4358 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361 ac_check_lib_save_LIBS=$LIBS
4362 LIBS="-lbsd $LIBS"
4363 cat >conftest.$ac_ext <<_ACEOF
4364 /* confdefs.h. */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4370 /* Override any gcc2 internal prototype to avoid an error. */
4371 #ifdef __cplusplus
4372 extern "C"
4373 #endif
4374 /* We use char because int might match the return type of a gcc2
4375 builtin and then its argument prototype would still apply. */
4376 char gethostbyname ();
4378 main ()
4380 gethostbyname ();
4382 return 0;
4384 _ACEOF
4385 rm -f conftest.$ac_objext conftest$ac_exeext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4387 (eval $ac_link) 2>conftest.er1
4388 ac_status=$?
4389 grep -v '^ *+' conftest.er1 >conftest.err
4390 rm -f conftest.er1
4391 cat conftest.err >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
4394 { ac_try='test -z "$ac_c_werror_flag"
4395 || test ! -s conftest.err'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 (eval $ac_try) 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; } &&
4401 { ac_try='test -s conftest$ac_exeext'
4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403 (eval $ac_try) 2>&5
4404 ac_status=$?
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
4407 ac_cv_lib_bsd_gethostbyname=yes
4408 else
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4412 ac_cv_lib_bsd_gethostbyname=no
4414 rm -f conftest.err conftest.$ac_objext \
4415 conftest$ac_exeext conftest.$ac_ext
4416 LIBS=$ac_check_lib_save_LIBS
4418 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4419 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4420 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4421 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4427 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4428 # socket/setsockopt and other routines are undefined under SCO ODT
4429 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4430 # on later versions), says Simon Leinen: it contains gethostby*
4431 # variants that don't use the name server (or something). -lsocket
4432 # must be given before -lnsl if both are needed. We assume that
4433 # if connect needs -lnsl, so does gethostbyname.
4434 echo "$as_me:$LINENO: checking for connect" >&5
4435 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4436 if test "${ac_cv_func_connect+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 cat >conftest.$ac_ext <<_ACEOF
4440 /* confdefs.h. */
4441 _ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4445 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4447 #define connect innocuous_connect
4449 /* System header to define __stub macros and hopefully few prototypes,
4450 which can conflict with char connect (); below.
4451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4452 <limits.h> exists even on freestanding compilers. */
4454 #ifdef __STDC__
4455 # include <limits.h>
4456 #else
4457 # include <assert.h>
4458 #endif
4460 #undef connect
4462 /* Override any gcc2 internal prototype to avoid an error. */
4463 #ifdef __cplusplus
4464 extern "C"
4466 #endif
4467 /* We use char because int might match the return type of a gcc2
4468 builtin and then its argument prototype would still apply. */
4469 char connect ();
4470 /* The GNU C library defines this for functions which it implements
4471 to always fail with ENOSYS. Some functions are actually named
4472 something starting with __ and the normal name is an alias. */
4473 #if defined (__stub_connect) || defined (__stub___connect)
4474 choke me
4475 #else
4476 char (*f) () = connect;
4477 #endif
4478 #ifdef __cplusplus
4480 #endif
4483 main ()
4485 return f != connect;
4487 return 0;
4489 _ACEOF
4490 rm -f conftest.$ac_objext conftest$ac_exeext
4491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4492 (eval $ac_link) 2>conftest.er1
4493 ac_status=$?
4494 grep -v '^ *+' conftest.er1 >conftest.err
4495 rm -f conftest.er1
4496 cat conftest.err >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } &&
4499 { ac_try='test -z "$ac_c_werror_flag"
4500 || test ! -s conftest.err'
4501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502 (eval $ac_try) 2>&5
4503 ac_status=$?
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; } &&
4506 { ac_try='test -s conftest$ac_exeext'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 (eval $ac_try) 2>&5
4509 ac_status=$?
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; }; then
4512 ac_cv_func_connect=yes
4513 else
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4517 ac_cv_func_connect=no
4519 rm -f conftest.err conftest.$ac_objext \
4520 conftest$ac_exeext conftest.$ac_ext
4522 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4523 echo "${ECHO_T}$ac_cv_func_connect" >&6
4525 if test $ac_cv_func_connect = no; then
4526 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4527 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4528 if test "${ac_cv_lib_socket_connect+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531 ac_check_lib_save_LIBS=$LIBS
4532 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4533 cat >conftest.$ac_ext <<_ACEOF
4534 /* confdefs.h. */
4535 _ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4540 /* Override any gcc2 internal prototype to avoid an error. */
4541 #ifdef __cplusplus
4542 extern "C"
4543 #endif
4544 /* We use char because int might match the return type of a gcc2
4545 builtin and then its argument prototype would still apply. */
4546 char connect ();
4548 main ()
4550 connect ();
4552 return 0;
4554 _ACEOF
4555 rm -f conftest.$ac_objext conftest$ac_exeext
4556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4557 (eval $ac_link) 2>conftest.er1
4558 ac_status=$?
4559 grep -v '^ *+' conftest.er1 >conftest.err
4560 rm -f conftest.er1
4561 cat conftest.err >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
4564 { ac_try='test -z "$ac_c_werror_flag"
4565 || test ! -s conftest.err'
4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 (eval $ac_try) 2>&5
4568 ac_status=$?
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; } &&
4571 { ac_try='test -s conftest$ac_exeext'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 (eval $ac_try) 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
4577 ac_cv_lib_socket_connect=yes
4578 else
4579 echo "$as_me: failed program was:" >&5
4580 sed 's/^/| /' conftest.$ac_ext >&5
4582 ac_cv_lib_socket_connect=no
4584 rm -f conftest.err conftest.$ac_objext \
4585 conftest$ac_exeext conftest.$ac_ext
4586 LIBS=$ac_check_lib_save_LIBS
4588 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4589 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4590 if test $ac_cv_lib_socket_connect = yes; then
4591 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4596 # Guillermo Gomez says -lposix is necessary on A/UX.
4597 echo "$as_me:$LINENO: checking for remove" >&5
4598 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4599 if test "${ac_cv_func_remove+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602 cat >conftest.$ac_ext <<_ACEOF
4603 /* confdefs.h. */
4604 _ACEOF
4605 cat confdefs.h >>conftest.$ac_ext
4606 cat >>conftest.$ac_ext <<_ACEOF
4607 /* end confdefs.h. */
4608 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4610 #define remove innocuous_remove
4612 /* System header to define __stub macros and hopefully few prototypes,
4613 which can conflict with char remove (); below.
4614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4615 <limits.h> exists even on freestanding compilers. */
4617 #ifdef __STDC__
4618 # include <limits.h>
4619 #else
4620 # include <assert.h>
4621 #endif
4623 #undef remove
4625 /* Override any gcc2 internal prototype to avoid an error. */
4626 #ifdef __cplusplus
4627 extern "C"
4629 #endif
4630 /* We use char because int might match the return type of a gcc2
4631 builtin and then its argument prototype would still apply. */
4632 char remove ();
4633 /* The GNU C library defines this for functions which it implements
4634 to always fail with ENOSYS. Some functions are actually named
4635 something starting with __ and the normal name is an alias. */
4636 #if defined (__stub_remove) || defined (__stub___remove)
4637 choke me
4638 #else
4639 char (*f) () = remove;
4640 #endif
4641 #ifdef __cplusplus
4643 #endif
4646 main ()
4648 return f != remove;
4650 return 0;
4652 _ACEOF
4653 rm -f conftest.$ac_objext conftest$ac_exeext
4654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4655 (eval $ac_link) 2>conftest.er1
4656 ac_status=$?
4657 grep -v '^ *+' conftest.er1 >conftest.err
4658 rm -f conftest.er1
4659 cat conftest.err >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } &&
4662 { ac_try='test -z "$ac_c_werror_flag"
4663 || test ! -s conftest.err'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 (eval $ac_try) 2>&5
4666 ac_status=$?
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try='test -s conftest$ac_exeext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 (eval $ac_try) 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 ac_cv_func_remove=yes
4676 else
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4680 ac_cv_func_remove=no
4682 rm -f conftest.err conftest.$ac_objext \
4683 conftest$ac_exeext conftest.$ac_ext
4685 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4686 echo "${ECHO_T}$ac_cv_func_remove" >&6
4688 if test $ac_cv_func_remove = no; then
4689 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4690 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4691 if test "${ac_cv_lib_posix_remove+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694 ac_check_lib_save_LIBS=$LIBS
4695 LIBS="-lposix $LIBS"
4696 cat >conftest.$ac_ext <<_ACEOF
4697 /* confdefs.h. */
4698 _ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h. */
4703 /* Override any gcc2 internal prototype to avoid an error. */
4704 #ifdef __cplusplus
4705 extern "C"
4706 #endif
4707 /* We use char because int might match the return type of a gcc2
4708 builtin and then its argument prototype would still apply. */
4709 char remove ();
4711 main ()
4713 remove ();
4715 return 0;
4717 _ACEOF
4718 rm -f conftest.$ac_objext conftest$ac_exeext
4719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4720 (eval $ac_link) 2>conftest.er1
4721 ac_status=$?
4722 grep -v '^ *+' conftest.er1 >conftest.err
4723 rm -f conftest.er1
4724 cat conftest.err >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } &&
4727 { ac_try='test -z "$ac_c_werror_flag"
4728 || test ! -s conftest.err'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 (eval $ac_try) 2>&5
4731 ac_status=$?
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; } &&
4734 { ac_try='test -s conftest$ac_exeext'
4735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736 (eval $ac_try) 2>&5
4737 ac_status=$?
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }; }; then
4740 ac_cv_lib_posix_remove=yes
4741 else
4742 echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4745 ac_cv_lib_posix_remove=no
4747 rm -f conftest.err conftest.$ac_objext \
4748 conftest$ac_exeext conftest.$ac_ext
4749 LIBS=$ac_check_lib_save_LIBS
4751 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4752 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4753 if test $ac_cv_lib_posix_remove = yes; then
4754 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4759 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4760 echo "$as_me:$LINENO: checking for shmat" >&5
4761 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4762 if test "${ac_cv_func_shmat+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765 cat >conftest.$ac_ext <<_ACEOF
4766 /* confdefs.h. */
4767 _ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h. */
4771 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4773 #define shmat innocuous_shmat
4775 /* System header to define __stub macros and hopefully few prototypes,
4776 which can conflict with char shmat (); below.
4777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4778 <limits.h> exists even on freestanding compilers. */
4780 #ifdef __STDC__
4781 # include <limits.h>
4782 #else
4783 # include <assert.h>
4784 #endif
4786 #undef shmat
4788 /* Override any gcc2 internal prototype to avoid an error. */
4789 #ifdef __cplusplus
4790 extern "C"
4792 #endif
4793 /* We use char because int might match the return type of a gcc2
4794 builtin and then its argument prototype would still apply. */
4795 char shmat ();
4796 /* The GNU C library defines this for functions which it implements
4797 to always fail with ENOSYS. Some functions are actually named
4798 something starting with __ and the normal name is an alias. */
4799 #if defined (__stub_shmat) || defined (__stub___shmat)
4800 choke me
4801 #else
4802 char (*f) () = shmat;
4803 #endif
4804 #ifdef __cplusplus
4806 #endif
4809 main ()
4811 return f != shmat;
4813 return 0;
4815 _ACEOF
4816 rm -f conftest.$ac_objext conftest$ac_exeext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4818 (eval $ac_link) 2>conftest.er1
4819 ac_status=$?
4820 grep -v '^ *+' conftest.er1 >conftest.err
4821 rm -f conftest.er1
4822 cat conftest.err >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } &&
4825 { ac_try='test -z "$ac_c_werror_flag"
4826 || test ! -s conftest.err'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 (eval $ac_try) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; } &&
4832 { ac_try='test -s conftest$ac_exeext'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 (eval $ac_try) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4838 ac_cv_func_shmat=yes
4839 else
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4843 ac_cv_func_shmat=no
4845 rm -f conftest.err conftest.$ac_objext \
4846 conftest$ac_exeext conftest.$ac_ext
4848 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4849 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4851 if test $ac_cv_func_shmat = no; then
4852 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4853 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4854 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 else
4857 ac_check_lib_save_LIBS=$LIBS
4858 LIBS="-lipc $LIBS"
4859 cat >conftest.$ac_ext <<_ACEOF
4860 /* confdefs.h. */
4861 _ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4866 /* Override any gcc2 internal prototype to avoid an error. */
4867 #ifdef __cplusplus
4868 extern "C"
4869 #endif
4870 /* We use char because int might match the return type of a gcc2
4871 builtin and then its argument prototype would still apply. */
4872 char shmat ();
4874 main ()
4876 shmat ();
4878 return 0;
4880 _ACEOF
4881 rm -f conftest.$ac_objext conftest$ac_exeext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4883 (eval $ac_link) 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -z "$ac_c_werror_flag"
4891 || test ! -s conftest.err'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; } &&
4897 { ac_try='test -s conftest$ac_exeext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 (eval $ac_try) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 ac_cv_lib_ipc_shmat=yes
4904 else
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4908 ac_cv_lib_ipc_shmat=no
4910 rm -f conftest.err conftest.$ac_objext \
4911 conftest$ac_exeext conftest.$ac_ext
4912 LIBS=$ac_check_lib_save_LIBS
4914 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4915 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4916 if test $ac_cv_lib_ipc_shmat = yes; then
4917 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4923 # Check for libraries that X11R6 Xt/Xaw programs need.
4924 ac_save_LDFLAGS=$LDFLAGS
4925 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4926 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4927 # check for ICE first), but we must link in the order -lSM -lICE or
4928 # we get undefined symbols. So assume we have SM if we have ICE.
4929 # These have to be linked with before -lX11, unlike the other
4930 # libraries we check for below, so use a different variable.
4931 # John Interrante, Karl Berry
4932 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4933 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4934 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937 ac_check_lib_save_LIBS=$LIBS
4938 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4939 cat >conftest.$ac_ext <<_ACEOF
4940 /* confdefs.h. */
4941 _ACEOF
4942 cat confdefs.h >>conftest.$ac_ext
4943 cat >>conftest.$ac_ext <<_ACEOF
4944 /* end confdefs.h. */
4946 /* Override any gcc2 internal prototype to avoid an error. */
4947 #ifdef __cplusplus
4948 extern "C"
4949 #endif
4950 /* We use char because int might match the return type of a gcc2
4951 builtin and then its argument prototype would still apply. */
4952 char IceConnectionNumber ();
4954 main ()
4956 IceConnectionNumber ();
4958 return 0;
4960 _ACEOF
4961 rm -f conftest.$ac_objext conftest$ac_exeext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4963 (eval $ac_link) 2>conftest.er1
4964 ac_status=$?
4965 grep -v '^ *+' conftest.er1 >conftest.err
4966 rm -f conftest.er1
4967 cat conftest.err >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } &&
4970 { ac_try='test -z "$ac_c_werror_flag"
4971 || test ! -s conftest.err'
4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 (eval $ac_try) 2>&5
4974 ac_status=$?
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; } &&
4977 { ac_try='test -s conftest$ac_exeext'
4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 (eval $ac_try) 2>&5
4980 ac_status=$?
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; }; then
4983 ac_cv_lib_ICE_IceConnectionNumber=yes
4984 else
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4988 ac_cv_lib_ICE_IceConnectionNumber=no
4990 rm -f conftest.err conftest.$ac_objext \
4991 conftest$ac_exeext conftest.$ac_ext
4992 LIBS=$ac_check_lib_save_LIBS
4994 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4995 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4996 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4997 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5000 LDFLAGS=$ac_save_LDFLAGS
5005 groff_no_x=$no_x
5006 if test -z "$groff_no_x"; then
5007 OLDCFLAGS=$CFLAGS
5008 OLDLDFLAGS=$LDFLAGS
5009 OLDLIBS=$LIBS
5010 CFLAGS="$CFLAGS $X_CFLAGS"
5011 LDFLAGS="$LDFLAGS $X_LIBS"
5012 LIBS="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
5014 LIBS="$LIBS -lXaw"
5015 echo "$as_me:$LINENO: checking for Xaw library and header files" >&5
5016 echo $ECHO_N "checking for Xaw library and header files... $ECHO_C" >&6
5017 cat >conftest.$ac_ext <<_ACEOF
5019 /* confdefs.h. */
5020 _ACEOF
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5026 #include <X11/Intrinsic.h>
5027 #include <X11/Xaw/Simple.h>
5031 main ()
5035 return 0;
5038 _ACEOF
5039 rm -f conftest.$ac_objext conftest$ac_exeext
5040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5041 (eval $ac_link) 2>conftest.er1
5042 ac_status=$?
5043 grep -v '^ *+' conftest.er1 >conftest.err
5044 rm -f conftest.er1
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } &&
5048 { ac_try='test -z "$ac_c_werror_flag"
5049 || test ! -s conftest.err'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051 (eval $ac_try) 2>&5
5052 ac_status=$?
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; } &&
5055 { ac_try='test -s conftest$ac_exeext'
5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057 (eval $ac_try) 2>&5
5058 ac_status=$?
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; }; then
5061 echo "$as_me:$LINENO: result: yes" >&5
5062 echo "${ECHO_T}yes" >&6
5063 else
5064 echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5067 echo "$as_me:$LINENO: result: no" >&5
5068 echo "${ECHO_T}no" >&6
5069 groff_no_x="yes"
5071 rm -f conftest.err conftest.$ac_objext \
5072 conftest$ac_exeext conftest.$ac_ext
5074 LIBS="$LIBS -lXmu"
5075 echo "$as_me:$LINENO: checking for Xmu library and header files" >&5
5076 echo $ECHO_N "checking for Xmu library and header files... $ECHO_C" >&6
5077 cat >conftest.$ac_ext <<_ACEOF
5079 /* confdefs.h. */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5086 #include <X11/Intrinsic.h>
5087 #include <X11/Xmu/Converters.h>
5091 main ()
5095 return 0;
5098 _ACEOF
5099 rm -f conftest.$ac_objext conftest$ac_exeext
5100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5101 (eval $ac_link) 2>conftest.er1
5102 ac_status=$?
5103 grep -v '^ *+' conftest.er1 >conftest.err
5104 rm -f conftest.er1
5105 cat conftest.err >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } &&
5108 { ac_try='test -z "$ac_c_werror_flag"
5109 || test ! -s conftest.err'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 (eval $ac_try) 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; } &&
5115 { ac_try='test -s conftest$ac_exeext'
5116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117 (eval $ac_try) 2>&5
5118 ac_status=$?
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); }; }; then
5121 echo "$as_me:$LINENO: result: yes" >&5
5122 echo "${ECHO_T}yes" >&6
5123 else
5124 echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5127 echo "$as_me:$LINENO: result: no" >&5
5128 echo "${ECHO_T}no" >&6
5129 groff_no_x="yes"
5131 rm -f conftest.err conftest.$ac_objext \
5132 conftest$ac_exeext conftest.$ac_ext
5134 CFLAGS=$OLDCFLAGS
5135 LDFLAGS=$OLDLDFLAGS
5136 LIBS=$OLDLIBS
5139 if test "x$groff_no_x" = "xyes"; then
5140 { echo "$as_me:$LINENO: gxditview and xtotroff won't be built" >&5
5141 echo "$as_me: gxditview and xtotroff won't be built" >&6;}
5142 else
5143 XDEVDIRS="font/devX75 font/devX75-12 font/devX100 font/devX100-12"
5144 XPROGDIRS="src/devices/xditview src/utils/xtotroff"
5145 XLIBDIRS="src/libs/libxutil"
5152 # Check whether --with-appresdir or --without-appresdir was given.
5153 if test "${with_appresdir+set}" = set; then
5154 withval="$with_appresdir"
5157 if test -z "$groff_no_x"; then
5158 # Create an Imakefile, run `xmkmf', then `make'.
5159 rm -f -r conftest.dir
5160 if mkdir conftest.dir; then
5161 cd conftest.dir
5162 # Make sure to not put `make' in the Imakefile rules,
5163 # since we grep it out.
5164 cat >Imakefile <<'EOF'
5166 xlibdirs:
5167 @echo 'groff_x_usrlibdir="${USRLIBDIR}"; groff_x_libdir="${LIBDIR}"'
5170 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5171 # GNU make sometimes prints "make[1]: Entering...",
5172 # which would confuse us.
5173 eval `${MAKE-make} xlibdirs 2>/dev/null | grep -v make`
5175 # Open Windows `xmkmf' reportedly sets LIBDIR instead of USRLIBDIR.
5176 for groff_extension in a so sl; do
5177 if test ! -f $groff_x_usrlibdir/libX11.$groff_extension &&
5178 test -f $groff_x_libdir/libX11.$groff_extension; then
5179 groff_x_usrlibdir=$groff_x_libdir
5180 break
5182 done
5185 cd ..
5186 rm -f -r conftest.dir
5189 # In case the test with `xmkmf' wasn't successful, try a suite of
5190 # standard directories. Check `X11' before `X11Rn' because it is often
5191 # a symlink to the current release.
5192 groff_x_libdirs='
5193 /usr/X11/lib
5194 /usr/X11R6/lib
5195 /usr/X11R5/lib
5196 /usr/X11R4/lib
5198 /usr/lib/X11
5199 /usr/lib/X11R6
5200 /usr/lib/X11R5
5201 /usr/lib/X11R4
5203 /usr/local/X11/lib
5204 /usr/local/X11R6/lib
5205 /usr/local/X11R5/lib
5206 /usr/local/X11R4/lib
5208 /usr/local/lib/X11
5209 /usr/local/lib/X11R6
5210 /usr/local/lib/X11R5
5211 /usr/local/lib/X11R4
5213 /usr/X386/lib
5214 /usr/x386/lib
5215 /usr/XFree86/lib/X11
5217 /usr/lib
5218 /usr/local/lib
5219 /usr/unsupported/lib
5220 /usr/athena/lib
5221 /usr/local/x11r5/lib
5222 /usr/lpp/Xamples/lib
5224 /usr/openwin/lib
5225 /usr/openwin/share/lib'
5227 if test -z "$groff_x_usrlibdir"; then
5228 # We only test whether libX11 exists.
5229 for groff_dir in $groff_x_libdirs; do
5230 for groff_extension in a so sl; do
5231 if test ! -r $groff_dir/libX11.$groff_extension; then
5232 groff_x_usrlibdir=$groff_dir
5233 break 2
5235 done
5236 done
5239 if test "x$with_appresdir" = "x"; then
5240 appresdir=$groff_x_usrlibdir/X11/app-defaults
5241 else
5242 appresdir=$with_appresdir
5246 if test -z "$PSPRINT"; then
5247 for ac_prog in lpr
5249 # Extract the first word of "$ac_prog", so it can be a program name with args.
5250 set dummy $ac_prog; ac_word=$2
5251 echo "$as_me:$LINENO: checking for $ac_word" >&5
5252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5253 if test "${ac_cv_prog_LPR+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256 if test -n "$LPR"; then
5257 ac_cv_prog_LPR="$LPR" # Let the user override the test.
5258 else
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266 ac_cv_prog_LPR="$ac_prog"
5267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 break 2
5270 done
5271 done
5275 LPR=$ac_cv_prog_LPR
5276 if test -n "$LPR"; then
5277 echo "$as_me:$LINENO: result: $LPR" >&5
5278 echo "${ECHO_T}$LPR" >&6
5279 else
5280 echo "$as_me:$LINENO: result: no" >&5
5281 echo "${ECHO_T}no" >&6
5284 test -n "$LPR" && break
5285 done
5287 for ac_prog in lp
5289 # Extract the first word of "$ac_prog", so it can be a program name with args.
5290 set dummy $ac_prog; ac_word=$2
5291 echo "$as_me:$LINENO: checking for $ac_word" >&5
5292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5293 if test "${ac_cv_prog_LP+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296 if test -n "$LP"; then
5297 ac_cv_prog_LP="$LP" # Let the user override the test.
5298 else
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 for as_dir in $PATH
5302 IFS=$as_save_IFS
5303 test -z "$as_dir" && as_dir=.
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5306 ac_cv_prog_LP="$ac_prog"
5307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 break 2
5310 done
5311 done
5315 LP=$ac_cv_prog_LP
5316 if test -n "$LP"; then
5317 echo "$as_me:$LINENO: result: $LP" >&5
5318 echo "${ECHO_T}$LP" >&6
5319 else
5320 echo "$as_me:$LINENO: result: no" >&5
5321 echo "${ECHO_T}no" >&6
5324 test -n "$LP" && break
5325 done
5327 if test -n "$LPR" && test -n "$LP"; then
5328 # HP-UX provides an lpr command that emulates lpr using lp,
5329 # but it doesn't have lpq; in this case we want to use lp
5330 # rather than lpr.
5331 for ac_prog in lpq
5333 # Extract the first word of "$ac_prog", so it can be a program name with args.
5334 set dummy $ac_prog; ac_word=$2
5335 echo "$as_me:$LINENO: checking for $ac_word" >&5
5336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5337 if test "${ac_cv_prog_LPQ+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 else
5340 if test -n "$LPQ"; then
5341 ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
5342 else
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350 ac_cv_prog_LPQ="$ac_prog"
5351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5354 done
5355 done
5359 LPQ=$ac_cv_prog_LPQ
5360 if test -n "$LPQ"; then
5361 echo "$as_me:$LINENO: result: $LPQ" >&5
5362 echo "${ECHO_T}$LPQ" >&6
5363 else
5364 echo "$as_me:$LINENO: result: no" >&5
5365 echo "${ECHO_T}no" >&6
5368 test -n "$LPQ" && break
5369 done
5371 test -n "$LPQ" || LPR=
5373 if test -n "$LPR"; then
5374 PSPRINT="$LPR"
5375 elif test -n "$LP"; then
5376 PSPRINT="$LP"
5380 echo "$as_me:$LINENO: checking for command to use for printing PostScript files" >&5
5381 echo $ECHO_N "checking for command to use for printing PostScript files... $ECHO_C" >&6
5382 echo "$as_me:$LINENO: result: $PSPRINT" >&5
5383 echo "${ECHO_T}$PSPRINT" >&6
5385 # Figure out DVIPRINT from PSPRINT.
5386 echo "$as_me:$LINENO: checking for command to use for printing dvi files" >&5
5387 echo $ECHO_N "checking for command to use for printing dvi files... $ECHO_C" >&6
5388 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
5389 if test "x$PSPRINT" = "xlpr"; then
5390 DVIPRINT="lpr -d"
5391 else
5392 DVIPRINT="$PSPRINT"
5396 echo "$as_me:$LINENO: result: $DVIPRINT" >&5
5397 echo "${ECHO_T}$DVIPRINT" >&6
5398 echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5399 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6
5400 if test "${ac_cv_path_GREP+set}" = set; then
5401 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 else
5403 # Extract the first word of "grep ggrep" to use in msg output
5404 if test -z "$GREP"; then
5405 set dummy grep ggrep; ac_prog_name=$2
5406 if test "${ac_cv_path_GREP+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409 # Create a temporary directory, and hook for its removal unless debugging.
5410 $debug ||
5412 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
5413 trap '{ (exit 1); exit 1; }' 1 2 13 15
5416 # Create a (secure) tmp directory for tmp files.
5417 : ${TMPDIR=/tmp}
5419 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/GREPXXXXXX") 2>/dev/null` &&
5420 test -n "$tmp" && test -d "$tmp"
5421 } ||
5423 tmp=$TMPDIR/GREP$$-$RANDOM
5424 (umask 077 && mkdir $tmp)
5425 } ||
5427 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5428 { (exit 1); exit 1; }
5430 ac_path_GREP_found=false
5431 # Loop through the user's path and test for each of PROGNAME-LIST
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 as_dummy="$PATH:/usr/xpg4/bin"
5434 for as_dir in $as_dummy
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5438 for ac_prog in grep ggrep; do
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5441 test -f "$ac_path_GREP" || continue
5442 $ac_path_GREP_found || if $as_executable_p "$ac_path_GREP"; then
5443 # Check for GNU ac_path_GREP and select it if it is found.
5444 # Check for GNU $ac_path_GREP
5445 if "$ac_path_GREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then
5446 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:
5447 else
5448 ac_count=0
5449 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
5450 while :
5452 cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
5453 mv "$tmp/conftest.tmp" "$tmp/conftest.in"
5454 cp "$tmp/conftest.in" "$tmp/conftest.nl"
5455 echo 'GREP' >> "$tmp/conftest.nl"
5456 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev/null || break
5457 diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
5458 ac_count=`expr $ac_count + 1`
5459 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5460 # Best one so far, save it but keep looking for a better one
5461 ac_cv_path_GREP="$ac_path_GREP"
5462 ac_path_GREP_max=$ac_count
5464 # 10*(2^10) chars as input seems more than enough
5465 test $ac_count -gt 10 && break
5466 done
5471 $ac_path_GREP_found && break 3
5472 done
5473 done
5475 done
5477 rm -rf "$tmp"
5481 GREP="$ac_cv_path_GREP"
5482 if test -z "$GREP"; then
5483 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
5484 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
5485 { (exit 1); exit 1; }; }
5492 echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5493 echo "${ECHO_T}$ac_cv_path_GREP" >&6
5494 GREP="$ac_cv_path_GREP"
5497 echo "$as_me:$LINENO: checking for egrep" >&5
5498 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5499 if test "${ac_cv_path_EGREP+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5502 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1
5503 then ac_cv_path_EGREP="$GREP -E"
5504 else
5505 # Extract the first word of "egrep" to use in msg output
5506 if test -z "$EGREP"; then
5507 set dummy egrep; ac_prog_name=$2
5508 if test "${ac_cv_path_EGREP+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511 # Create a temporary directory, and hook for its removal unless debugging.
5512 $debug ||
5514 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
5515 trap '{ (exit 1); exit 1; }' 1 2 13 15
5518 # Create a (secure) tmp directory for tmp files.
5519 : ${TMPDIR=/tmp}
5521 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/EGREPXXXXXX") 2>/dev/null` &&
5522 test -n "$tmp" && test -d "$tmp"
5523 } ||
5525 tmp=$TMPDIR/EGREP$$-$RANDOM
5526 (umask 077 && mkdir $tmp)
5527 } ||
5529 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5530 { (exit 1); exit 1; }
5532 ac_path_EGREP_found=false
5533 # Loop through the user's path and test for each of PROGNAME-LIST
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 as_dummy="$PATH:/usr/xpg4/bin"
5536 for as_dir in $as_dummy
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for ac_prog in egrep; do
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5543 test -f "$ac_path_EGREP" || continue
5544 $ac_path_EGREP_found || if $as_executable_p "$ac_path_EGREP"; then
5545 # Check for GNU ac_path_EGREP and select it if it is found.
5546 # Check for GNU $ac_path_EGREP
5547 if "$ac_path_EGREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then
5548 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:
5549 else
5550 ac_count=0
5551 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
5552 while :
5554 cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
5555 mv "$tmp/conftest.tmp" "$tmp/conftest.in"
5556 cp "$tmp/conftest.in" "$tmp/conftest.nl"
5557 echo 'EGREP' >> "$tmp/conftest.nl"
5558 "$ac_path_EGREP" 'EGREP$' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev/null || break
5559 diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
5560 ac_count=`expr $ac_count + 1`
5561 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5562 # Best one so far, save it but keep looking for a better one
5563 ac_cv_path_EGREP="$ac_path_EGREP"
5564 ac_path_EGREP_max=$ac_count
5566 # 10*(2^10) chars as input seems more than enough
5567 test $ac_count -gt 10 && break
5568 done
5573 $ac_path_EGREP_found && break 3
5574 done
5575 done
5577 done
5579 rm -rf "$tmp"
5583 EGREP="$ac_cv_path_EGREP"
5584 if test -z "$EGREP"; then
5585 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
5586 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
5587 { (exit 1); exit 1; }; }
5595 echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5596 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
5597 EGREP="$ac_cv_path_EGREP"
5600 # Extract the first word of "perl", so it can be a program name with args.
5601 set dummy perl; ac_word=$2
5602 echo "$as_me:$LINENO: checking for $ac_word" >&5
5603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5604 if test "${ac_cv_path_PERLPATH+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5606 else
5607 case $PERLPATH in
5608 [\\/]* | ?:[\\/]*)
5609 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH
5615 IFS=$as_save_IFS
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619 ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
5620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 break 2
5623 done
5624 done
5626 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
5628 esac
5630 PERLPATH=$ac_cv_path_PERLPATH
5632 if test -n "$PERLPATH"; then
5633 echo "$as_me:$LINENO: result: $PERLPATH" >&5
5634 echo "${ECHO_T}$PERLPATH" >&6
5635 else
5636 echo "$as_me:$LINENO: result: no" >&5
5637 echo "${ECHO_T}no" >&6
5640 for ac_prog in byacc 'bison -y'
5642 # Extract the first word of "$ac_prog", so it can be a program name with args.
5643 set dummy $ac_prog; ac_word=$2
5644 echo "$as_me:$LINENO: checking for $ac_word" >&5
5645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5646 if test "${ac_cv_prog_YACC+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 else
5649 if test -n "$YACC"; then
5650 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5651 else
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659 ac_cv_prog_YACC="$ac_prog"
5660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 break 2
5663 done
5664 done
5668 YACC=$ac_cv_prog_YACC
5669 if test -n "$YACC"; then
5670 echo "$as_me:$LINENO: result: $YACC" >&5
5671 echo "${ECHO_T}$YACC" >&6
5672 else
5673 echo "$as_me:$LINENO: result: no" >&5
5674 echo "${ECHO_T}no" >&6
5677 test -n "$YACC" && break
5678 done
5679 test -n "$YACC" || YACC="yacc"
5681 missing=
5682 # Extract the first word of "makeinfo", so it can be a program name with args.
5683 set dummy makeinfo; ac_word=$2
5684 echo "$as_me:$LINENO: checking for $ac_word" >&5
5685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5686 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689 if test -n "$MAKEINFO"; then
5690 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5691 else
5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 for as_dir in $PATH
5695 IFS=$as_save_IFS
5696 test -z "$as_dir" && as_dir=.
5697 for ac_exec_ext in '' $ac_executable_extensions; do
5698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5699 ac_cv_prog_MAKEINFO="makeinfo"
5700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5701 break 2
5703 done
5704 done
5708 MAKEINFO=$ac_cv_prog_MAKEINFO
5709 if test -n "$MAKEINFO"; then
5710 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5711 echo "${ECHO_T}$MAKEINFO" >&6
5712 else
5713 echo "$as_me:$LINENO: result: no" >&5
5714 echo "${ECHO_T}no" >&6
5717 if test -z "$MAKEINFO"; then
5718 missing="\`makeinfo' is missing."
5719 else
5720 echo "$as_me:$LINENO: checking for makeinfo version" >&5
5721 echo $ECHO_N "checking for makeinfo version... $ECHO_C" >&6
5722 # We need an additional level of quoting to make sed's regexps work.
5723 makeinfo_version=`$MAKEINFO --version 2>&1 \
5724 | sed -e 's/^.* \([^ ][^ ]*\)$/\1/' -e '1q'`
5725 echo "$as_me:$LINENO: result: $makeinfo_version" >&5
5726 echo "${ECHO_T}$makeinfo_version" >&6
5727 # Consider only the first two numbers in version number string.
5728 makeinfo_version_major=`IFS=.; set x $makeinfo_version; echo 0${2}`
5729 makeinfo_version_minor=`IFS=.; set x $makeinfo_version; echo 0${3}`
5730 makeinfo_version_numeric=`
5731 expr ${makeinfo_version_major}000 \+ ${makeinfo_version_minor}`
5732 if test $makeinfo_version_numeric -lt 4008; then
5733 missing="\`makeinfo' is too old."
5737 if test -n "$missing"; then
5738 infofile=doc/groff.info
5739 test -f ${infofile} || infofile=${srcdir}/${infofile}
5740 if test ! -f ${infofile} \
5741 || test ${srcdir}/doc/groff.texinfo -nt ${infofile}; then
5742 { { echo "$as_me:$LINENO: error: $missing
5743 Get the \`texinfo' package version 4.8 or newer." >&5
5744 echo "$as_me: error: $missing
5745 Get the \`texinfo' package version 4.8 or newer." >&2;}
5746 { (exit 1); exit 1; }; }
5747 else
5748 { echo "$as_me:$LINENO: WARNING: $missing
5749 Get the \`texinfo' package version 4.8 or newer if you want to convert
5750 \`groff.texinfo' into a PDF or HTML document." >&5
5751 echo "$as_me: WARNING: $missing
5752 Get the \`texinfo' package version 4.8 or newer if you want to convert
5753 \`groff.texinfo' into a PDF or HTML document." >&2;}
5757 if test -n "$ac_tool_prefix"; then
5758 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5759 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5760 echo "$as_me:$LINENO: checking for $ac_word" >&5
5761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5762 if test "${ac_cv_prog_RANLIB+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765 if test -n "$RANLIB"; then
5766 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5767 else
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH
5771 IFS=$as_save_IFS
5772 test -z "$as_dir" && as_dir=.
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5775 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5777 break 2
5779 done
5780 done
5784 RANLIB=$ac_cv_prog_RANLIB
5785 if test -n "$RANLIB"; then
5786 echo "$as_me:$LINENO: result: $RANLIB" >&5
5787 echo "${ECHO_T}$RANLIB" >&6
5788 else
5789 echo "$as_me:$LINENO: result: no" >&5
5790 echo "${ECHO_T}no" >&6
5794 if test -z "$ac_cv_prog_RANLIB"; then
5795 ac_ct_RANLIB=$RANLIB
5796 # Extract the first word of "ranlib", so it can be a program name with args.
5797 set dummy ranlib; ac_word=$2
5798 echo "$as_me:$LINENO: checking for $ac_word" >&5
5799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5800 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803 if test -n "$ac_ct_RANLIB"; then
5804 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5805 else
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5809 IFS=$as_save_IFS
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813 ac_cv_prog_ac_ct_RANLIB="ranlib"
5814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5815 break 2
5817 done
5818 done
5822 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5823 if test -n "$ac_ct_RANLIB"; then
5824 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5825 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5826 else
5827 echo "$as_me:$LINENO: result: no" >&5
5828 echo "${ECHO_T}no" >&6
5831 if test "x$ac_ct_RANLIB" = x; then
5832 RANLIB=":"
5833 else
5834 if test "$build" != "$host"; then
5835 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5836 whose name does not start with the host triplet. If you think this
5837 configuration is useful to you, please write to autoconf@gnu.org." >&5
5838 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5839 whose name does not start with the host triplet. If you think this
5840 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5842 RANLIB=$ac_ct_RANLIB
5844 else
5845 RANLIB="$ac_cv_prog_RANLIB"
5848 ac_aux_dir=
5849 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
5850 if test -f $ac_dir/install-sh; then
5851 ac_aux_dir=$ac_dir
5852 ac_install_sh="$ac_aux_dir/install-sh -c"
5853 break
5854 elif test -f $ac_dir/install.sh; then
5855 ac_aux_dir=$ac_dir
5856 ac_install_sh="$ac_aux_dir/install.sh -c"
5857 break
5858 elif test -f $ac_dir/shtool; then
5859 ac_aux_dir=$ac_dir
5860 ac_install_sh="$ac_aux_dir/shtool install -c"
5861 break
5863 done
5864 if test -z "$ac_aux_dir"; then
5865 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
5866 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
5867 { (exit 1); exit 1; }; }
5869 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
5870 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
5871 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
5874 ac_dir=`cd $ac_aux_dir; pwd`
5875 ac_install_sh="$ac_dir/install-sh -c"
5876 for ac_prog in install-info
5878 # Extract the first word of "$ac_prog", so it can be a program name with args.
5879 set dummy $ac_prog; ac_word=$2
5880 echo "$as_me:$LINENO: checking for $ac_word" >&5
5881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5882 if test "${ac_cv_prog_INSTALL_INFO+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885 if test -n "$INSTALL_INFO"; then
5886 ac_cv_prog_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test.
5887 else
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH
5891 IFS=$as_save_IFS
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895 ac_cv_prog_INSTALL_INFO="$ac_prog"
5896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5897 break 2
5899 done
5900 done
5904 INSTALL_INFO=$ac_cv_prog_INSTALL_INFO
5905 if test -n "$INSTALL_INFO"; then
5906 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5907 echo "${ECHO_T}$INSTALL_INFO" >&6
5908 else
5909 echo "$as_me:$LINENO: result: no" >&5
5910 echo "${ECHO_T}no" >&6
5913 test -n "$INSTALL_INFO" && break
5914 done
5915 test -n "$INSTALL_INFO" || INSTALL_INFO=":"
5917 # Find a good install program. We prefer a C program (faster),
5918 # so one script is as good as another. But avoid the broken or
5919 # incompatible versions:
5920 # SysV /etc/install, /usr/sbin/install
5921 # SunOS /usr/etc/install
5922 # IRIX /sbin/install
5923 # AIX /bin/install
5924 # AmigaOS /C/install, which installs bootblocks on floppy discs
5925 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5926 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5927 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5928 # OS/2's system install, which has a completely different semantic
5929 # ./install, which can be erroneously created by make from ./install.sh.
5930 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5931 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5932 if test -z "$INSTALL"; then
5933 if test "${ac_cv_path_install+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
5941 # Account for people who put trailing slashes in PATH elements.
5942 case $as_dir/ in
5943 ./ | .// | /cC/* | \
5944 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5945 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5946 /usr/ucb/* ) ;;
5948 # OSF1 and SCO ODT 3.0 have their own names for install.
5949 # Don't use installbsd from OSF since it installs stuff as root
5950 # by default.
5951 for ac_prog in ginstall scoinst install; do
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5954 if test $ac_prog = install &&
5955 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5956 # AIX install. It has an incompatible calling convention.
5958 elif test $ac_prog = install &&
5959 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5960 # program-specific install script used by HP pwplus--don't use.
5962 else
5963 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5964 break 3
5967 done
5968 done
5970 esac
5971 done
5975 if test "${ac_cv_path_install+set}" = set; then
5976 INSTALL=$ac_cv_path_install
5977 else
5978 # As a last resort, use the slow shell script. Don't cache a
5979 # value for INSTALL within a source directory, because that will
5980 # break other packages using the cache if that directory is
5981 # removed, or if the value is a relative name.
5982 INSTALL=$ac_install_sh
5985 echo "$as_me:$LINENO: result: $INSTALL" >&5
5986 echo "${ECHO_T}$INSTALL" >&6
5988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5989 # It thinks the first close brace ends the variable substitution.
5990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5994 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5996 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5997 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5998 LN_S=$as_ln_s
5999 if test "$LN_S" = "ln -s"; then
6000 echo "$as_me:$LINENO: result: yes" >&5
6001 echo "${ECHO_T}yes" >&6
6002 else
6003 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6004 echo "${ECHO_T}no, using $LN_S" >&6
6008 # use a dummy substitution if no csh hack is necessary to avoid errors
6009 # with non-GNU sed programs
6010 echo "$as_me:$LINENO: checking for csh hash hack" >&5
6011 echo $ECHO_N "checking for csh hash hack... $ECHO_C" >&6
6013 cat <<EOF >conftest.sh
6014 #! /bin/sh
6015 true || exit 0
6016 export PATH || exit 0
6017 exit 1
6020 chmod +x conftest.sh
6021 if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
6022 echo "$as_me:$LINENO: result: yes" >&5
6023 echo "${ECHO_T}yes" >&6
6024 SH_SCRIPT_SED_CMD='1s/.*/:/'
6025 else
6026 echo "$as_me:$LINENO: result: no" >&5
6027 echo "${ECHO_T}no" >&6
6028 SH_SCRIPT_SED_CMD='1s/a/a/'
6030 rm -f conftest.sh
6033 # checks for headers
6034 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6035 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6036 if test "${ac_cv_header_stdc+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 else
6039 cat >conftest.$ac_ext <<_ACEOF
6040 /* confdefs.h. */
6041 _ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6045 #include <stdlib.h>
6046 #include <stdarg.h>
6047 #include <string.h>
6048 #include <float.h>
6051 main ()
6055 return 0;
6057 _ACEOF
6058 rm -f conftest.$ac_objext
6059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6060 (eval $ac_compile) 2>conftest.er1
6061 ac_status=$?
6062 grep -v '^ *+' conftest.er1 >conftest.err
6063 rm -f conftest.er1
6064 cat conftest.err >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } &&
6067 { ac_try='test -z "$ac_c_werror_flag"
6068 || test ! -s conftest.err'
6069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070 (eval $ac_try) 2>&5
6071 ac_status=$?
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; } &&
6074 { ac_try='test -s conftest.$ac_objext'
6075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076 (eval $ac_try) 2>&5
6077 ac_status=$?
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); }; }; then
6080 ac_cv_header_stdc=yes
6081 else
6082 echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.$ac_ext >&5
6085 ac_cv_header_stdc=no
6087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6089 if test $ac_cv_header_stdc = yes; then
6090 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6091 cat >conftest.$ac_ext <<_ACEOF
6092 /* confdefs.h. */
6093 _ACEOF
6094 cat confdefs.h >>conftest.$ac_ext
6095 cat >>conftest.$ac_ext <<_ACEOF
6096 /* end confdefs.h. */
6097 #include <string.h>
6099 _ACEOF
6100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6101 $EGREP "memchr" >/dev/null 2>&1; then
6103 else
6104 ac_cv_header_stdc=no
6106 rm -f conftest*
6110 if test $ac_cv_header_stdc = yes; then
6111 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6112 cat >conftest.$ac_ext <<_ACEOF
6113 /* confdefs.h. */
6114 _ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6118 #include <stdlib.h>
6120 _ACEOF
6121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6122 $EGREP "free" >/dev/null 2>&1; then
6124 else
6125 ac_cv_header_stdc=no
6127 rm -f conftest*
6131 if test $ac_cv_header_stdc = yes; then
6132 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6133 if test "$cross_compiling" = yes; then
6135 else
6136 cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h. */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 #include <ctype.h>
6143 #include <stdlib.h>
6144 #if ((' ' & 0x0FF) == 0x020)
6145 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6146 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6147 #else
6148 # define ISLOWER(c) \
6149 (('a' <= (c) && (c) <= 'i') \
6150 || ('j' <= (c) && (c) <= 'r') \
6151 || ('s' <= (c) && (c) <= 'z'))
6152 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6153 #endif
6155 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6157 main ()
6159 int i;
6160 for (i = 0; i < 256; i++)
6161 if (XOR (islower (i), ISLOWER (i))
6162 || toupper (i) != TOUPPER (i))
6163 exit (2);
6164 exit (0);
6166 _ACEOF
6167 rm -f conftest$ac_exeext
6168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6169 (eval $ac_link) 2>&5
6170 ac_status=$?
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 (eval $ac_try) 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; }; then
6179 else
6180 echo "$as_me: program exited with status $ac_status" >&5
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6184 ( exit $ac_status )
6185 ac_cv_header_stdc=no
6187 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6191 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6192 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6193 if test $ac_cv_header_stdc = yes; then
6195 cat >>confdefs.h <<\_ACEOF
6196 #define STDC_HEADERS 1
6197 _ACEOF
6201 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6211 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6212 inttypes.h stdint.h unistd.h
6214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6215 echo "$as_me:$LINENO: checking for $ac_header" >&5
6216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220 cat >conftest.$ac_ext <<_ACEOF
6221 /* confdefs.h. */
6222 _ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h. */
6226 $ac_includes_default
6228 #include <$ac_header>
6229 _ACEOF
6230 rm -f conftest.$ac_objext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232 (eval $ac_compile) 2>conftest.er1
6233 ac_status=$?
6234 grep -v '^ *+' conftest.er1 >conftest.err
6235 rm -f conftest.er1
6236 cat conftest.err >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } &&
6239 { ac_try='test -z "$ac_c_werror_flag"
6240 || test ! -s conftest.err'
6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242 (eval $ac_try) 2>&5
6243 ac_status=$?
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; } &&
6246 { ac_try='test -s conftest.$ac_objext'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 (eval $ac_try) 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
6252 eval "$as_ac_Header=yes"
6253 else
6254 echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6257 eval "$as_ac_Header=no"
6259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6264 cat >>confdefs.h <<_ACEOF
6265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6266 _ACEOF
6270 done
6285 for ac_header in stddef.h stdlib.h unistd.h dirent.h limits.h sys/dir.h \
6286 string.h strings.h math.h sys/time.h direct.h process.h
6288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6290 echo "$as_me:$LINENO: checking for $ac_header" >&5
6291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6297 else
6298 # Is the header compilable?
6299 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6301 cat >conftest.$ac_ext <<_ACEOF
6302 /* confdefs.h. */
6303 _ACEOF
6304 cat confdefs.h >>conftest.$ac_ext
6305 cat >>conftest.$ac_ext <<_ACEOF
6306 /* end confdefs.h. */
6307 $ac_includes_default
6308 #include <$ac_header>
6309 _ACEOF
6310 rm -f conftest.$ac_objext
6311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6312 (eval $ac_compile) 2>conftest.er1
6313 ac_status=$?
6314 grep -v '^ *+' conftest.er1 >conftest.err
6315 rm -f conftest.er1
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } &&
6319 { ac_try='test -z "$ac_c_werror_flag"
6320 || test ! -s conftest.err'
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 (eval $ac_try) 2>&5
6323 ac_status=$?
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; } &&
6326 { ac_try='test -s conftest.$ac_objext'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 (eval $ac_try) 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; }; then
6332 ac_header_compiler=yes
6333 else
6334 echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.$ac_ext >&5
6337 ac_header_compiler=no
6339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6341 echo "${ECHO_T}$ac_header_compiler" >&6
6343 # Is the header present?
6344 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6346 cat >conftest.$ac_ext <<_ACEOF
6347 /* confdefs.h. */
6348 _ACEOF
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h. */
6352 #include <$ac_header>
6353 _ACEOF
6354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6356 ac_status=$?
6357 grep -v '^ *+' conftest.er1 >conftest.err
6358 rm -f conftest.er1
6359 cat conftest.err >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } >/dev/null; then
6362 if test -s conftest.err; then
6363 ac_cpp_err=$ac_c_preproc_warn_flag
6364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6365 else
6366 ac_cpp_err=
6368 else
6369 ac_cpp_err=yes
6371 if test -z "$ac_cpp_err"; then
6372 ac_header_preproc=yes
6373 else
6374 echo "$as_me: failed program was:" >&5
6375 sed 's/^/| /' conftest.$ac_ext >&5
6377 ac_header_preproc=no
6379 rm -f conftest.err conftest.$ac_ext
6380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6381 echo "${ECHO_T}$ac_header_preproc" >&6
6383 # So? What about this header?
6384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6385 yes:no: )
6386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6390 ac_header_preproc=yes
6392 no:yes:* )
6393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6400 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6406 cat <<\_ASBOX
6407 ## ------------------------------------------ ##
6408 ## Report this to the AC_PACKAGE_NAME lists. ##
6409 ## ------------------------------------------ ##
6410 _ASBOX
6412 sed "s/^/$as_me: WARNING: /" >&2
6414 esac
6415 echo "$as_me:$LINENO: checking for $ac_header" >&5
6416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6419 else
6420 eval "$as_ac_Header=\$ac_header_preproc"
6422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6427 cat >>confdefs.h <<_ACEOF
6428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6429 _ACEOF
6433 done
6435 echo "$as_me:$LINENO: checking for ISC 3.x or 4.x" >&5
6436 echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
6437 if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
6438 then
6439 echo "$as_me:$LINENO: result: yes" >&5
6440 echo "${ECHO_T}yes" >&6
6442 cat >>confdefs.h <<\_ACEOF
6443 #define _SYSV3 1
6444 _ACEOF
6446 else
6447 echo "$as_me:$LINENO: result: no" >&5
6448 echo "${ECHO_T}no" >&6
6450 echo "$as_me:$LINENO: checking whether -D_POSIX_SOURCE is necessary" >&5
6451 echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
6452 ac_ext=cc
6453 ac_cpp='$CXXCPP $CPPFLAGS'
6454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6458 cat >conftest.$ac_ext <<_ACEOF
6460 /* confdefs.h. */
6461 _ACEOF
6462 cat confdefs.h >>conftest.$ac_ext
6463 cat >>conftest.$ac_ext <<_ACEOF
6464 /* end confdefs.h. */
6467 #include <stdio.h>
6468 extern "C" { void fileno(int); }
6472 main ()
6476 return 0;
6479 _ACEOF
6480 rm -f conftest.$ac_objext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482 (eval $ac_compile) 2>conftest.er1
6483 ac_status=$?
6484 grep -v '^ *+' conftest.er1 >conftest.err
6485 rm -f conftest.er1
6486 cat conftest.err >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } &&
6489 { ac_try='test -z "$ac_cxx_werror_flag"
6490 || test ! -s conftest.err'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 (eval $ac_try) 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; } &&
6496 { ac_try='test -s conftest.$ac_objext'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 (eval $ac_try) 2>&5
6499 ac_status=$?
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; }; then
6502 echo "$as_me:$LINENO: result: yes" >&5
6503 echo "${ECHO_T}yes" >&6
6505 cat >>confdefs.h <<\_ACEOF
6506 #define _POSIX_SOURCE 1
6507 _ACEOF
6509 else
6510 echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6513 echo "$as_me:$LINENO: result: no" >&5
6514 echo "${ECHO_T}no" >&6
6516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6517 ac_ext=c
6518 ac_cpp='$CPP $CPPFLAGS'
6519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6524 # checks for header stuff
6525 ac_ext=cc
6526 ac_cpp='$CXXCPP $CPPFLAGS'
6527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6531 echo "$as_me:$LINENO: checking for return type of srand" >&5
6532 echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6
6533 cat >conftest.$ac_ext <<_ACEOF
6535 /* confdefs.h. */
6536 _ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h. */
6542 #include <stdlib.h>
6543 extern "C" { void srand(unsigned int); }
6547 main ()
6551 return 0;
6554 _ACEOF
6555 rm -f conftest.$ac_objext
6556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6557 (eval $ac_compile) 2>conftest.er1
6558 ac_status=$?
6559 grep -v '^ *+' conftest.er1 >conftest.err
6560 rm -f conftest.er1
6561 cat conftest.err >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } &&
6564 { ac_try='test -z "$ac_cxx_werror_flag"
6565 || test ! -s conftest.err'
6566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567 (eval $ac_try) 2>&5
6568 ac_status=$?
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); }; } &&
6571 { ac_try='test -s conftest.$ac_objext'
6572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573 (eval $ac_try) 2>&5
6574 ac_status=$?
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }; }; then
6577 echo "$as_me:$LINENO: result: void" >&5
6578 echo "${ECHO_T}void" >&6
6580 cat >>confdefs.h <<\_ACEOF
6581 #define RET_TYPE_SRAND_IS_VOID 1
6582 _ACEOF
6584 else
6585 echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.$ac_ext >&5
6588 echo "$as_me:$LINENO: result: int" >&5
6589 echo "${ECHO_T}int" >&6
6591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6592 ac_ext=c
6593 ac_cpp='$CPP $CPPFLAGS'
6594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6598 echo "$as_me:$LINENO: checking whether gettimeofday must be declared" >&5
6599 echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6
6600 ac_ext=cc
6601 ac_cpp='$CXXCPP $CPPFLAGS'
6602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6606 if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 else
6609 cat >conftest.$ac_ext <<_ACEOF
6611 /* confdefs.h. */
6612 _ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6618 #include <stdio.h>
6619 #ifdef HAVE_STRING_H
6620 #include <string.h>
6621 #endif
6622 #ifdef HAVE_STRINGS_H
6623 #include <strings.h>
6624 #endif
6625 #ifdef HAVE_STDLIB_H
6626 #include <stdlib.h>
6627 #endif
6628 #ifdef HAVE_SYS_TIME_H
6629 #include <sys/time.h>
6630 #endif
6631 #ifdef HAVE_UNISTD_H
6632 #include <unistd.h>
6633 #endif
6634 #ifdef HAVE_MATH_H
6635 #include <math.h>
6636 #endif
6640 main ()
6644 #ifndef gettimeofday
6645 char *p = (char *) gettimeofday;
6646 #endif
6650 return 0;
6653 _ACEOF
6654 rm -f conftest.$ac_objext
6655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6656 (eval $ac_compile) 2>conftest.er1
6657 ac_status=$?
6658 grep -v '^ *+' conftest.er1 >conftest.err
6659 rm -f conftest.er1
6660 cat conftest.err >&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); } &&
6663 { ac_try='test -z "$ac_cxx_werror_flag"
6664 || test ! -s conftest.err'
6665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6666 (eval $ac_try) 2>&5
6667 ac_status=$?
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); }; } &&
6670 { ac_try='test -s conftest.$ac_objext'
6671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672 (eval $ac_try) 2>&5
6673 ac_status=$?
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; }; then
6676 groff_cv_decl_needed_gettimeofday=no
6677 else
6678 echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.$ac_ext >&5
6681 groff_cv_decl_needed_gettimeofday=yes
6683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6686 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_gettimeofday" >&5
6687 echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6
6688 if test $groff_cv_decl_needed_gettimeofday = yes; then
6690 cat >>confdefs.h <<\_ACEOF
6691 #define NEED_DECLARATION_GETTIMEOFDAY 1
6692 _ACEOF
6695 ac_ext=c
6696 ac_cpp='$CPP $CPPFLAGS'
6697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6701 echo "$as_me:$LINENO: checking whether hypot must be declared" >&5
6702 echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
6703 ac_ext=cc
6704 ac_cpp='$CXXCPP $CPPFLAGS'
6705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6709 if test "${groff_cv_decl_needed_hypot+set}" = set; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
6711 else
6712 cat >conftest.$ac_ext <<_ACEOF
6714 /* confdefs.h. */
6715 _ACEOF
6716 cat confdefs.h >>conftest.$ac_ext
6717 cat >>conftest.$ac_ext <<_ACEOF
6718 /* end confdefs.h. */
6721 #include <stdio.h>
6722 #ifdef HAVE_STRING_H
6723 #include <string.h>
6724 #endif
6725 #ifdef HAVE_STRINGS_H
6726 #include <strings.h>
6727 #endif
6728 #ifdef HAVE_STDLIB_H
6729 #include <stdlib.h>
6730 #endif
6731 #ifdef HAVE_SYS_TIME_H
6732 #include <sys/time.h>
6733 #endif
6734 #ifdef HAVE_UNISTD_H
6735 #include <unistd.h>
6736 #endif
6737 #ifdef HAVE_MATH_H
6738 #include <math.h>
6739 #endif
6743 main ()
6747 #ifndef hypot
6748 char *p = (char *) hypot;
6749 #endif
6753 return 0;
6756 _ACEOF
6757 rm -f conftest.$ac_objext
6758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6759 (eval $ac_compile) 2>conftest.er1
6760 ac_status=$?
6761 grep -v '^ *+' conftest.er1 >conftest.err
6762 rm -f conftest.er1
6763 cat conftest.err >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } &&
6766 { ac_try='test -z "$ac_cxx_werror_flag"
6767 || test ! -s conftest.err'
6768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 (eval $ac_try) 2>&5
6770 ac_status=$?
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); }; } &&
6773 { ac_try='test -s conftest.$ac_objext'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 (eval $ac_try) 2>&5
6776 ac_status=$?
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; }; then
6779 groff_cv_decl_needed_hypot=no
6780 else
6781 echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6784 groff_cv_decl_needed_hypot=yes
6786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6789 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_hypot" >&5
6790 echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
6791 if test $groff_cv_decl_needed_hypot = yes; then
6793 cat >>confdefs.h <<\_ACEOF
6794 #define NEED_DECLARATION_HYPOT 1
6795 _ACEOF
6798 ac_ext=c
6799 ac_cpp='$CPP $CPPFLAGS'
6800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6804 echo "$as_me:$LINENO: checking whether popen must be declared" >&5
6805 echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
6806 ac_ext=cc
6807 ac_cpp='$CXXCPP $CPPFLAGS'
6808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6812 if test "${groff_cv_decl_needed_popen+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 else
6815 cat >conftest.$ac_ext <<_ACEOF
6817 /* confdefs.h. */
6818 _ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6824 #include <stdio.h>
6825 #ifdef HAVE_STRING_H
6826 #include <string.h>
6827 #endif
6828 #ifdef HAVE_STRINGS_H
6829 #include <strings.h>
6830 #endif
6831 #ifdef HAVE_STDLIB_H
6832 #include <stdlib.h>
6833 #endif
6834 #ifdef HAVE_SYS_TIME_H
6835 #include <sys/time.h>
6836 #endif
6837 #ifdef HAVE_UNISTD_H
6838 #include <unistd.h>
6839 #endif
6840 #ifdef HAVE_MATH_H
6841 #include <math.h>
6842 #endif
6846 main ()
6850 #ifndef popen
6851 char *p = (char *) popen;
6852 #endif
6856 return 0;
6859 _ACEOF
6860 rm -f conftest.$ac_objext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6862 (eval $ac_compile) 2>conftest.er1
6863 ac_status=$?
6864 grep -v '^ *+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
6869 { ac_try='test -z "$ac_cxx_werror_flag"
6870 || test ! -s conftest.err'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 (eval $ac_try) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; } &&
6876 { ac_try='test -s conftest.$ac_objext'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 (eval $ac_try) 2>&5
6879 ac_status=$?
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6882 groff_cv_decl_needed_popen=no
6883 else
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6887 groff_cv_decl_needed_popen=yes
6889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6892 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_popen" >&5
6893 echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6
6894 if test $groff_cv_decl_needed_popen = yes; then
6896 cat >>confdefs.h <<\_ACEOF
6897 #define NEED_DECLARATION_POPEN 1
6898 _ACEOF
6901 ac_ext=c
6902 ac_cpp='$CPP $CPPFLAGS'
6903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6907 echo "$as_me:$LINENO: checking whether pclose must be declared" >&5
6908 echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
6909 ac_ext=cc
6910 ac_cpp='$CXXCPP $CPPFLAGS'
6911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6915 if test "${groff_cv_decl_needed_pclose+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 else
6918 cat >conftest.$ac_ext <<_ACEOF
6920 /* confdefs.h. */
6921 _ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6927 #include <stdio.h>
6928 #ifdef HAVE_STRING_H
6929 #include <string.h>
6930 #endif
6931 #ifdef HAVE_STRINGS_H
6932 #include <strings.h>
6933 #endif
6934 #ifdef HAVE_STDLIB_H
6935 #include <stdlib.h>
6936 #endif
6937 #ifdef HAVE_SYS_TIME_H
6938 #include <sys/time.h>
6939 #endif
6940 #ifdef HAVE_UNISTD_H
6941 #include <unistd.h>
6942 #endif
6943 #ifdef HAVE_MATH_H
6944 #include <math.h>
6945 #endif
6949 main ()
6953 #ifndef pclose
6954 char *p = (char *) pclose;
6955 #endif
6959 return 0;
6962 _ACEOF
6963 rm -f conftest.$ac_objext
6964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6965 (eval $ac_compile) 2>conftest.er1
6966 ac_status=$?
6967 grep -v '^ *+' conftest.er1 >conftest.err
6968 rm -f conftest.er1
6969 cat conftest.err >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } &&
6972 { ac_try='test -z "$ac_cxx_werror_flag"
6973 || test ! -s conftest.err'
6974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6975 (eval $ac_try) 2>&5
6976 ac_status=$?
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); }; } &&
6979 { ac_try='test -s conftest.$ac_objext'
6980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981 (eval $ac_try) 2>&5
6982 ac_status=$?
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; }; then
6985 groff_cv_decl_needed_pclose=no
6986 else
6987 echo "$as_me: failed program was:" >&5
6988 sed 's/^/| /' conftest.$ac_ext >&5
6990 groff_cv_decl_needed_pclose=yes
6992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6995 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_pclose" >&5
6996 echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
6997 if test $groff_cv_decl_needed_pclose = yes; then
6999 cat >>confdefs.h <<\_ACEOF
7000 #define NEED_DECLARATION_PCLOSE 1
7001 _ACEOF
7004 ac_ext=c
7005 ac_cpp='$CPP $CPPFLAGS'
7006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7010 echo "$as_me:$LINENO: checking whether putenv must be declared" >&5
7011 echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
7012 ac_ext=cc
7013 ac_cpp='$CXXCPP $CPPFLAGS'
7014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7018 if test "${groff_cv_decl_needed_putenv+set}" = set; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 else
7021 cat >conftest.$ac_ext <<_ACEOF
7023 /* confdefs.h. */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7030 #include <stdio.h>
7031 #ifdef HAVE_STRING_H
7032 #include <string.h>
7033 #endif
7034 #ifdef HAVE_STRINGS_H
7035 #include <strings.h>
7036 #endif
7037 #ifdef HAVE_STDLIB_H
7038 #include <stdlib.h>
7039 #endif
7040 #ifdef HAVE_SYS_TIME_H
7041 #include <sys/time.h>
7042 #endif
7043 #ifdef HAVE_UNISTD_H
7044 #include <unistd.h>
7045 #endif
7046 #ifdef HAVE_MATH_H
7047 #include <math.h>
7048 #endif
7052 main ()
7056 #ifndef putenv
7057 char *p = (char *) putenv;
7058 #endif
7062 return 0;
7065 _ACEOF
7066 rm -f conftest.$ac_objext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7068 (eval $ac_compile) 2>conftest.er1
7069 ac_status=$?
7070 grep -v '^ *+' conftest.er1 >conftest.err
7071 rm -f conftest.er1
7072 cat conftest.err >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } &&
7075 { ac_try='test -z "$ac_cxx_werror_flag"
7076 || test ! -s conftest.err'
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078 (eval $ac_try) 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; } &&
7082 { ac_try='test -s conftest.$ac_objext'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 (eval $ac_try) 2>&5
7085 ac_status=$?
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; }; then
7088 groff_cv_decl_needed_putenv=no
7089 else
7090 echo "$as_me: failed program was:" >&5
7091 sed 's/^/| /' conftest.$ac_ext >&5
7093 groff_cv_decl_needed_putenv=yes
7095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7098 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_putenv" >&5
7099 echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
7100 if test $groff_cv_decl_needed_putenv = yes; then
7102 cat >>confdefs.h <<\_ACEOF
7103 #define NEED_DECLARATION_PUTENV 1
7104 _ACEOF
7107 ac_ext=c
7108 ac_cpp='$CPP $CPPFLAGS'
7109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7113 echo "$as_me:$LINENO: checking whether rand must be declared" >&5
7114 echo $ECHO_N "checking whether rand must be declared... $ECHO_C" >&6
7115 ac_ext=cc
7116 ac_cpp='$CXXCPP $CPPFLAGS'
7117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7121 if test "${groff_cv_decl_needed_rand+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124 cat >conftest.$ac_ext <<_ACEOF
7126 /* confdefs.h. */
7127 _ACEOF
7128 cat confdefs.h >>conftest.$ac_ext
7129 cat >>conftest.$ac_ext <<_ACEOF
7130 /* end confdefs.h. */
7133 #include <stdio.h>
7134 #ifdef HAVE_STRING_H
7135 #include <string.h>
7136 #endif
7137 #ifdef HAVE_STRINGS_H
7138 #include <strings.h>
7139 #endif
7140 #ifdef HAVE_STDLIB_H
7141 #include <stdlib.h>
7142 #endif
7143 #ifdef HAVE_SYS_TIME_H
7144 #include <sys/time.h>
7145 #endif
7146 #ifdef HAVE_UNISTD_H
7147 #include <unistd.h>
7148 #endif
7149 #ifdef HAVE_MATH_H
7150 #include <math.h>
7151 #endif
7155 main ()
7159 #ifndef rand
7160 char *p = (char *) rand;
7161 #endif
7165 return 0;
7168 _ACEOF
7169 rm -f conftest.$ac_objext
7170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7171 (eval $ac_compile) 2>conftest.er1
7172 ac_status=$?
7173 grep -v '^ *+' conftest.er1 >conftest.err
7174 rm -f conftest.er1
7175 cat conftest.err >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } &&
7178 { ac_try='test -z "$ac_cxx_werror_flag"
7179 || test ! -s conftest.err'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181 (eval $ac_try) 2>&5
7182 ac_status=$?
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; } &&
7185 { ac_try='test -s conftest.$ac_objext'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187 (eval $ac_try) 2>&5
7188 ac_status=$?
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; }; then
7191 groff_cv_decl_needed_rand=no
7192 else
7193 echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.$ac_ext >&5
7196 groff_cv_decl_needed_rand=yes
7198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7201 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_rand" >&5
7202 echo "${ECHO_T}$groff_cv_decl_needed_rand" >&6
7203 if test $groff_cv_decl_needed_rand = yes; then
7205 cat >>confdefs.h <<\_ACEOF
7206 #define NEED_DECLARATION_RAND 1
7207 _ACEOF
7210 ac_ext=c
7211 ac_cpp='$CPP $CPPFLAGS'
7212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7216 echo "$as_me:$LINENO: checking whether snprintf must be declared" >&5
7217 echo $ECHO_N "checking whether snprintf must be declared... $ECHO_C" >&6
7218 ac_ext=cc
7219 ac_cpp='$CXXCPP $CPPFLAGS'
7220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7224 if test "${groff_cv_decl_needed_snprintf+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 else
7227 cat >conftest.$ac_ext <<_ACEOF
7229 /* confdefs.h. */
7230 _ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7236 #include <stdio.h>
7237 #ifdef HAVE_STRING_H
7238 #include <string.h>
7239 #endif
7240 #ifdef HAVE_STRINGS_H
7241 #include <strings.h>
7242 #endif
7243 #ifdef HAVE_STDLIB_H
7244 #include <stdlib.h>
7245 #endif
7246 #ifdef HAVE_SYS_TIME_H
7247 #include <sys/time.h>
7248 #endif
7249 #ifdef HAVE_UNISTD_H
7250 #include <unistd.h>
7251 #endif
7252 #ifdef HAVE_MATH_H
7253 #include <math.h>
7254 #endif
7258 main ()
7262 #ifndef snprintf
7263 char *p = (char *) snprintf;
7264 #endif
7268 return 0;
7271 _ACEOF
7272 rm -f conftest.$ac_objext
7273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7274 (eval $ac_compile) 2>conftest.er1
7275 ac_status=$?
7276 grep -v '^ *+' conftest.er1 >conftest.err
7277 rm -f conftest.er1
7278 cat conftest.err >&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); } &&
7281 { ac_try='test -z "$ac_cxx_werror_flag"
7282 || test ! -s conftest.err'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284 (eval $ac_try) 2>&5
7285 ac_status=$?
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; } &&
7288 { ac_try='test -s conftest.$ac_objext'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290 (eval $ac_try) 2>&5
7291 ac_status=$?
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; }; then
7294 groff_cv_decl_needed_snprintf=no
7295 else
7296 echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7299 groff_cv_decl_needed_snprintf=yes
7301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7304 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_snprintf" >&5
7305 echo "${ECHO_T}$groff_cv_decl_needed_snprintf" >&6
7306 if test $groff_cv_decl_needed_snprintf = yes; then
7308 cat >>confdefs.h <<\_ACEOF
7309 #define NEED_DECLARATION_SNPRINTF 1
7310 _ACEOF
7313 ac_ext=c
7314 ac_cpp='$CPP $CPPFLAGS'
7315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7319 echo "$as_me:$LINENO: checking whether srand must be declared" >&5
7320 echo $ECHO_N "checking whether srand must be declared... $ECHO_C" >&6
7321 ac_ext=cc
7322 ac_cpp='$CXXCPP $CPPFLAGS'
7323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7327 if test "${groff_cv_decl_needed_srand+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 else
7330 cat >conftest.$ac_ext <<_ACEOF
7332 /* confdefs.h. */
7333 _ACEOF
7334 cat confdefs.h >>conftest.$ac_ext
7335 cat >>conftest.$ac_ext <<_ACEOF
7336 /* end confdefs.h. */
7339 #include <stdio.h>
7340 #ifdef HAVE_STRING_H
7341 #include <string.h>
7342 #endif
7343 #ifdef HAVE_STRINGS_H
7344 #include <strings.h>
7345 #endif
7346 #ifdef HAVE_STDLIB_H
7347 #include <stdlib.h>
7348 #endif
7349 #ifdef HAVE_SYS_TIME_H
7350 #include <sys/time.h>
7351 #endif
7352 #ifdef HAVE_UNISTD_H
7353 #include <unistd.h>
7354 #endif
7355 #ifdef HAVE_MATH_H
7356 #include <math.h>
7357 #endif
7361 main ()
7365 #ifndef srand
7366 char *p = (char *) srand;
7367 #endif
7371 return 0;
7374 _ACEOF
7375 rm -f conftest.$ac_objext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7377 (eval $ac_compile) 2>conftest.er1
7378 ac_status=$?
7379 grep -v '^ *+' conftest.er1 >conftest.err
7380 rm -f conftest.er1
7381 cat conftest.err >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } &&
7384 { ac_try='test -z "$ac_cxx_werror_flag"
7385 || test ! -s conftest.err'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 (eval $ac_try) 2>&5
7388 ac_status=$?
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; } &&
7391 { ac_try='test -s conftest.$ac_objext'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 (eval $ac_try) 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7397 groff_cv_decl_needed_srand=no
7398 else
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7402 groff_cv_decl_needed_srand=yes
7404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7407 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_srand" >&5
7408 echo "${ECHO_T}$groff_cv_decl_needed_srand" >&6
7409 if test $groff_cv_decl_needed_srand = yes; then
7411 cat >>confdefs.h <<\_ACEOF
7412 #define NEED_DECLARATION_SRAND 1
7413 _ACEOF
7416 ac_ext=c
7417 ac_cpp='$CPP $CPPFLAGS'
7418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7422 echo "$as_me:$LINENO: checking whether strcasecmp must be declared" >&5
7423 echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
7424 ac_ext=cc
7425 ac_cpp='$CXXCPP $CPPFLAGS'
7426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7430 if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433 cat >conftest.$ac_ext <<_ACEOF
7435 /* confdefs.h. */
7436 _ACEOF
7437 cat confdefs.h >>conftest.$ac_ext
7438 cat >>conftest.$ac_ext <<_ACEOF
7439 /* end confdefs.h. */
7442 #include <stdio.h>
7443 #ifdef HAVE_STRING_H
7444 #include <string.h>
7445 #endif
7446 #ifdef HAVE_STRINGS_H
7447 #include <strings.h>
7448 #endif
7449 #ifdef HAVE_STDLIB_H
7450 #include <stdlib.h>
7451 #endif
7452 #ifdef HAVE_SYS_TIME_H
7453 #include <sys/time.h>
7454 #endif
7455 #ifdef HAVE_UNISTD_H
7456 #include <unistd.h>
7457 #endif
7458 #ifdef HAVE_MATH_H
7459 #include <math.h>
7460 #endif
7464 main ()
7468 #ifndef strcasecmp
7469 char *p = (char *) strcasecmp;
7470 #endif
7474 return 0;
7477 _ACEOF
7478 rm -f conftest.$ac_objext
7479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7480 (eval $ac_compile) 2>conftest.er1
7481 ac_status=$?
7482 grep -v '^ *+' conftest.er1 >conftest.err
7483 rm -f conftest.er1
7484 cat conftest.err >&5
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); } &&
7487 { ac_try='test -z "$ac_cxx_werror_flag"
7488 || test ! -s conftest.err'
7489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7490 (eval $ac_try) 2>&5
7491 ac_status=$?
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); }; } &&
7494 { ac_try='test -s conftest.$ac_objext'
7495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7496 (eval $ac_try) 2>&5
7497 ac_status=$?
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); }; }; then
7500 groff_cv_decl_needed_strcasecmp=no
7501 else
7502 echo "$as_me: failed program was:" >&5
7503 sed 's/^/| /' conftest.$ac_ext >&5
7505 groff_cv_decl_needed_strcasecmp=yes
7507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7510 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strcasecmp" >&5
7511 echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
7512 if test $groff_cv_decl_needed_strcasecmp = yes; then
7514 cat >>confdefs.h <<\_ACEOF
7515 #define NEED_DECLARATION_STRCASECMP 1
7516 _ACEOF
7519 ac_ext=c
7520 ac_cpp='$CPP $CPPFLAGS'
7521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7525 echo "$as_me:$LINENO: checking whether strncasecmp must be declared" >&5
7526 echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
7527 ac_ext=cc
7528 ac_cpp='$CXXCPP $CPPFLAGS'
7529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7533 if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536 cat >conftest.$ac_ext <<_ACEOF
7538 /* confdefs.h. */
7539 _ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7545 #include <stdio.h>
7546 #ifdef HAVE_STRING_H
7547 #include <string.h>
7548 #endif
7549 #ifdef HAVE_STRINGS_H
7550 #include <strings.h>
7551 #endif
7552 #ifdef HAVE_STDLIB_H
7553 #include <stdlib.h>
7554 #endif
7555 #ifdef HAVE_SYS_TIME_H
7556 #include <sys/time.h>
7557 #endif
7558 #ifdef HAVE_UNISTD_H
7559 #include <unistd.h>
7560 #endif
7561 #ifdef HAVE_MATH_H
7562 #include <math.h>
7563 #endif
7567 main ()
7571 #ifndef strncasecmp
7572 char *p = (char *) strncasecmp;
7573 #endif
7577 return 0;
7580 _ACEOF
7581 rm -f conftest.$ac_objext
7582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7583 (eval $ac_compile) 2>conftest.er1
7584 ac_status=$?
7585 grep -v '^ *+' conftest.er1 >conftest.err
7586 rm -f conftest.er1
7587 cat conftest.err >&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } &&
7590 { ac_try='test -z "$ac_cxx_werror_flag"
7591 || test ! -s conftest.err'
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593 (eval $ac_try) 2>&5
7594 ac_status=$?
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; } &&
7597 { ac_try='test -s conftest.$ac_objext'
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599 (eval $ac_try) 2>&5
7600 ac_status=$?
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; }; then
7603 groff_cv_decl_needed_strncasecmp=no
7604 else
7605 echo "$as_me: failed program was:" >&5
7606 sed 's/^/| /' conftest.$ac_ext >&5
7608 groff_cv_decl_needed_strncasecmp=yes
7610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7613 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strncasecmp" >&5
7614 echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
7615 if test $groff_cv_decl_needed_strncasecmp = yes; then
7617 cat >>confdefs.h <<\_ACEOF
7618 #define NEED_DECLARATION_STRNCASECMP 1
7619 _ACEOF
7622 ac_ext=c
7623 ac_cpp='$CPP $CPPFLAGS'
7624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7628 echo "$as_me:$LINENO: checking whether vfprintf must be declared" >&5
7629 echo $ECHO_N "checking whether vfprintf must be declared... $ECHO_C" >&6
7630 ac_ext=cc
7631 ac_cpp='$CXXCPP $CPPFLAGS'
7632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7636 if test "${groff_cv_decl_needed_vfprintf+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 else
7639 cat >conftest.$ac_ext <<_ACEOF
7641 /* confdefs.h. */
7642 _ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h. */
7648 #include <stdio.h>
7649 #ifdef HAVE_STRING_H
7650 #include <string.h>
7651 #endif
7652 #ifdef HAVE_STRINGS_H
7653 #include <strings.h>
7654 #endif
7655 #ifdef HAVE_STDLIB_H
7656 #include <stdlib.h>
7657 #endif
7658 #ifdef HAVE_SYS_TIME_H
7659 #include <sys/time.h>
7660 #endif
7661 #ifdef HAVE_UNISTD_H
7662 #include <unistd.h>
7663 #endif
7664 #ifdef HAVE_MATH_H
7665 #include <math.h>
7666 #endif
7670 main ()
7674 #ifndef vfprintf
7675 char *p = (char *) vfprintf;
7676 #endif
7680 return 0;
7683 _ACEOF
7684 rm -f conftest.$ac_objext
7685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7686 (eval $ac_compile) 2>conftest.er1
7687 ac_status=$?
7688 grep -v '^ *+' conftest.er1 >conftest.err
7689 rm -f conftest.er1
7690 cat conftest.err >&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } &&
7693 { ac_try='test -z "$ac_cxx_werror_flag"
7694 || test ! -s conftest.err'
7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696 (eval $ac_try) 2>&5
7697 ac_status=$?
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; } &&
7700 { ac_try='test -s conftest.$ac_objext'
7701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702 (eval $ac_try) 2>&5
7703 ac_status=$?
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); }; }; then
7706 groff_cv_decl_needed_vfprintf=no
7707 else
7708 echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7711 groff_cv_decl_needed_vfprintf=yes
7713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7716 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vfprintf" >&5
7717 echo "${ECHO_T}$groff_cv_decl_needed_vfprintf" >&6
7718 if test $groff_cv_decl_needed_vfprintf = yes; then
7720 cat >>confdefs.h <<\_ACEOF
7721 #define NEED_DECLARATION_VFPRINTF 1
7722 _ACEOF
7725 ac_ext=c
7726 ac_cpp='$CPP $CPPFLAGS'
7727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7731 echo "$as_me:$LINENO: checking whether vsnprintf must be declared" >&5
7732 echo $ECHO_N "checking whether vsnprintf must be declared... $ECHO_C" >&6
7733 ac_ext=cc
7734 ac_cpp='$CXXCPP $CPPFLAGS'
7735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7739 if test "${groff_cv_decl_needed_vsnprintf+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742 cat >conftest.$ac_ext <<_ACEOF
7744 /* confdefs.h. */
7745 _ACEOF
7746 cat confdefs.h >>conftest.$ac_ext
7747 cat >>conftest.$ac_ext <<_ACEOF
7748 /* end confdefs.h. */
7751 #include <stdio.h>
7752 #ifdef HAVE_STRING_H
7753 #include <string.h>
7754 #endif
7755 #ifdef HAVE_STRINGS_H
7756 #include <strings.h>
7757 #endif
7758 #ifdef HAVE_STDLIB_H
7759 #include <stdlib.h>
7760 #endif
7761 #ifdef HAVE_SYS_TIME_H
7762 #include <sys/time.h>
7763 #endif
7764 #ifdef HAVE_UNISTD_H
7765 #include <unistd.h>
7766 #endif
7767 #ifdef HAVE_MATH_H
7768 #include <math.h>
7769 #endif
7773 main ()
7777 #ifndef vsnprintf
7778 char *p = (char *) vsnprintf;
7779 #endif
7783 return 0;
7786 _ACEOF
7787 rm -f conftest.$ac_objext
7788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7789 (eval $ac_compile) 2>conftest.er1
7790 ac_status=$?
7791 grep -v '^ *+' conftest.er1 >conftest.err
7792 rm -f conftest.er1
7793 cat conftest.err >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } &&
7796 { ac_try='test -z "$ac_cxx_werror_flag"
7797 || test ! -s conftest.err'
7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799 (eval $ac_try) 2>&5
7800 ac_status=$?
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; } &&
7803 { ac_try='test -s conftest.$ac_objext'
7804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805 (eval $ac_try) 2>&5
7806 ac_status=$?
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }; }; then
7809 groff_cv_decl_needed_vsnprintf=no
7810 else
7811 echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.$ac_ext >&5
7814 groff_cv_decl_needed_vsnprintf=yes
7816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7819 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vsnprintf" >&5
7820 echo "${ECHO_T}$groff_cv_decl_needed_vsnprintf" >&6
7821 if test $groff_cv_decl_needed_vsnprintf = yes; then
7823 cat >>confdefs.h <<\_ACEOF
7824 #define NEED_DECLARATION_VSNPRINTF 1
7825 _ACEOF
7828 ac_ext=c
7829 ac_cpp='$CPP $CPPFLAGS'
7830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7834 ac_ext=cc
7835 ac_cpp='$CXXCPP $CPPFLAGS'
7836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7840 echo "$as_me:$LINENO: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7841 echo $ECHO_N "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
7842 cat >conftest.$ac_ext <<_ACEOF
7844 /* confdefs.h. */
7845 _ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7851 #include <errno.h>
7852 #include <stdio.h>
7853 #include <stdlib.h>
7857 main ()
7861 int k;
7862 k = sys_nerr;
7866 return 0;
7869 _ACEOF
7870 rm -f conftest.$ac_objext
7871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7872 (eval $ac_compile) 2>conftest.er1
7873 ac_status=$?
7874 grep -v '^ *+' conftest.er1 >conftest.err
7875 rm -f conftest.er1
7876 cat conftest.err >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } &&
7879 { ac_try='test -z "$ac_cxx_werror_flag"
7880 || test ! -s conftest.err'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882 (eval $ac_try) 2>&5
7883 ac_status=$?
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; } &&
7886 { ac_try='test -s conftest.$ac_objext'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 (eval $ac_try) 2>&5
7889 ac_status=$?
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 echo "$as_me:$LINENO: result: yes" >&5
7893 echo "${ECHO_T}yes" >&6
7895 cat >>confdefs.h <<\_ACEOF
7896 #define HAVE_SYS_NERR 1
7897 _ACEOF
7899 else
7900 echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7903 echo "$as_me:$LINENO: result: no" >&5
7904 echo "${ECHO_T}no" >&6
7906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7907 ac_ext=c
7908 ac_cpp='$CPP $CPPFLAGS'
7909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7913 echo "$as_me:$LINENO: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7914 echo $ECHO_N "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
7915 cat >conftest.$ac_ext <<_ACEOF
7917 /* confdefs.h. */
7918 _ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7924 #include <errno.h>
7925 #include <stdio.h>
7926 #include <stdlib.h>
7930 main ()
7934 int k;
7935 k = (int)sys_errlist[0];
7939 return 0;
7942 _ACEOF
7943 rm -f conftest.$ac_objext
7944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7945 (eval $ac_compile) 2>conftest.er1
7946 ac_status=$?
7947 grep -v '^ *+' conftest.er1 >conftest.err
7948 rm -f conftest.er1
7949 cat conftest.err >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } &&
7952 { ac_try='test -z "$ac_c_werror_flag"
7953 || test ! -s conftest.err'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955 (eval $ac_try) 2>&5
7956 ac_status=$?
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; } &&
7959 { ac_try='test -s conftest.$ac_objext'
7960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961 (eval $ac_try) 2>&5
7962 ac_status=$?
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); }; }; then
7965 echo "$as_me:$LINENO: result: yes" >&5
7966 echo "${ECHO_T}yes" >&6
7968 cat >>confdefs.h <<\_ACEOF
7969 #define HAVE_SYS_ERRLIST 1
7970 _ACEOF
7972 else
7973 echo "$as_me: failed program was:" >&5
7974 sed 's/^/| /' conftest.$ac_ext >&5
7976 echo "$as_me:$LINENO: result: no" >&5
7977 echo "${ECHO_T}no" >&6
7979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7980 ac_ext=cc
7981 ac_cpp='$CXXCPP $CPPFLAGS'
7982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7986 echo "$as_me:$LINENO: checking C++ <osfcn.h>" >&5
7987 echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
7988 cat >conftest.$ac_ext <<_ACEOF
7990 /* confdefs.h. */
7991 _ACEOF
7992 cat confdefs.h >>conftest.$ac_ext
7993 cat >>conftest.$ac_ext <<_ACEOF
7994 /* end confdefs.h. */
7997 #include <osfcn.h>
8001 main ()
8005 read(0, 0, 0);
8006 open(0, 0);
8010 return 0;
8013 _ACEOF
8014 rm -f conftest.$ac_objext
8015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8016 (eval $ac_compile) 2>conftest.er1
8017 ac_status=$?
8018 grep -v '^ *+' conftest.er1 >conftest.err
8019 rm -f conftest.er1
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } &&
8023 { ac_try='test -z "$ac_cxx_werror_flag"
8024 || test ! -s conftest.err'
8025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 (eval $ac_try) 2>&5
8027 ac_status=$?
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); }; } &&
8030 { ac_try='test -s conftest.$ac_objext'
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 (eval $ac_try) 2>&5
8033 ac_status=$?
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; }; then
8036 echo "$as_me:$LINENO: result: yes" >&5
8037 echo "${ECHO_T}yes" >&6
8039 cat >>confdefs.h <<\_ACEOF
8040 #define HAVE_CC_OSFCN_H 1
8041 _ACEOF
8043 else
8044 echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8047 echo "$as_me:$LINENO: result: no" >&5
8048 echo "${ECHO_T}no" >&6
8050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8051 ac_ext=c
8052 ac_cpp='$CPP $CPPFLAGS'
8053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8057 ac_ext=cc
8058 ac_cpp='$CXXCPP $CPPFLAGS'
8059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8063 echo "$as_me:$LINENO: checking C++ <limits.h>" >&5
8064 echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
8065 cat >conftest.$ac_ext <<_ACEOF
8067 /* confdefs.h. */
8068 _ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8074 #include <limits.h>
8078 main ()
8082 int x = INT_MIN;
8083 int y = INT_MAX;
8084 int z = UCHAR_MAX;
8088 return 0;
8091 _ACEOF
8092 rm -f conftest.$ac_objext
8093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8094 (eval $ac_compile) 2>conftest.er1
8095 ac_status=$?
8096 grep -v '^ *+' conftest.er1 >conftest.err
8097 rm -f conftest.er1
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } &&
8101 { ac_try='test -z "$ac_cxx_werror_flag"
8102 || test ! -s conftest.err'
8103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104 (eval $ac_try) 2>&5
8105 ac_status=$?
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; } &&
8108 { ac_try='test -s conftest.$ac_objext'
8109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110 (eval $ac_try) 2>&5
8111 ac_status=$?
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); }; }; then
8114 echo "$as_me:$LINENO: result: yes" >&5
8115 echo "${ECHO_T}yes" >&6
8117 cat >>confdefs.h <<\_ACEOF
8118 #define HAVE_CC_LIMITS_H 1
8119 _ACEOF
8121 else
8122 echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8125 echo "$as_me:$LINENO: result: no" >&5
8126 echo "${ECHO_T}no" >&6
8128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8129 ac_ext=c
8130 ac_cpp='$CPP $CPPFLAGS'
8131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8135 ac_ext=cc
8136 ac_cpp='$CXXCPP $CPPFLAGS'
8137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8141 echo "$as_me:$LINENO: checking C++ <inttypes.h>" >&5
8142 echo $ECHO_N "checking C++ <inttypes.h>... $ECHO_C" >&6
8143 cat >conftest.$ac_ext <<_ACEOF
8145 /* confdefs.h. */
8146 _ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8152 #include <sys/types.h>
8153 #include <inttypes.h>
8157 main ()
8161 uintmax_t i = (uintmax_t)-1;
8165 return 0;
8168 _ACEOF
8169 rm -f conftest.$ac_objext
8170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8171 (eval $ac_compile) 2>conftest.er1
8172 ac_status=$?
8173 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } &&
8178 { ac_try='test -z "$ac_cxx_werror_flag"
8179 || test ! -s conftest.err'
8180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 (eval $ac_try) 2>&5
8182 ac_status=$?
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); }; } &&
8185 { ac_try='test -s conftest.$ac_objext'
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 (eval $ac_try) 2>&5
8188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; }; then
8191 groff_cv_header_inttypes_h=yes
8193 cat >>confdefs.h <<\_ACEOF
8194 #define HAVE_CC_INTTYPES_H 1
8195 _ACEOF
8197 else
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8201 groff_cv_header_inttypes_h=no
8203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8204 echo "$as_me:$LINENO: result: $groff_cv_header_inttypes_h" >&5
8205 echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
8206 ac_ext=c
8207 ac_cpp='$CPP $CPPFLAGS'
8208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8213 # checks for typedefs
8214 ac_ext=cc
8215 ac_cpp='$CXXCPP $CPPFLAGS'
8216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8220 echo "$as_me:$LINENO: checking for unsigned long long" >&5
8221 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
8222 cat >conftest.$ac_ext <<_ACEOF
8224 /* confdefs.h. */
8225 _ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8231 unsigned long long ull = 1;
8232 int i = 63;
8233 unsigned long long ullmax = (unsigned long long)-1;
8237 main ()
8241 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8245 return 0;
8248 _ACEOF
8249 rm -f conftest.$ac_objext conftest$ac_exeext
8250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8251 (eval $ac_link) 2>conftest.er1
8252 ac_status=$?
8253 grep -v '^ *+' conftest.er1 >conftest.err
8254 rm -f conftest.er1
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } &&
8258 { ac_try='test -z "$ac_cxx_werror_flag"
8259 || test ! -s conftest.err'
8260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 (eval $ac_try) 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; } &&
8265 { ac_try='test -s conftest$ac_exeext'
8266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267 (eval $ac_try) 2>&5
8268 ac_status=$?
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); }; }; then
8271 groff_cv_type_unsigned_long_long=yes
8272 else
8273 echo "$as_me: failed program was:" >&5
8274 sed 's/^/| /' conftest.$ac_ext >&5
8276 groff_cv_type_unsigned_long_long=no
8278 rm -f conftest.err conftest.$ac_objext \
8279 conftest$ac_exeext conftest.$ac_ext
8280 echo "$as_me:$LINENO: result: $groff_cv_type_unsigned_long_long" >&5
8281 echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
8282 ac_ext=c
8283 ac_cpp='$CPP $CPPFLAGS'
8284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8289 if test $groff_cv_header_inttypes_h = no; then
8291 test $groff_cv_type_unsigned_long_long = yes \
8292 && ac_type='unsigned long long' \
8293 || ac_type='unsigned long'
8295 cat >>confdefs.h <<_ACEOF
8296 #define uintmax_t $ac_type
8297 _ACEOF
8300 ac_ext=cc
8301 ac_cpp='$CXXCPP $CPPFLAGS'
8302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8306 echo "$as_me:$LINENO: checking for declaration of time_t" >&5
8307 echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
8308 cat >conftest.$ac_ext <<_ACEOF
8310 /* confdefs.h. */
8311 _ACEOF
8312 cat confdefs.h >>conftest.$ac_ext
8313 cat >>conftest.$ac_ext <<_ACEOF
8314 /* end confdefs.h. */
8317 #include <time.h>
8321 main ()
8325 time_t t = time(0);
8326 struct tm *p = localtime(&t);
8330 return 0;
8333 _ACEOF
8334 rm -f conftest.$ac_objext
8335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8336 (eval $ac_compile) 2>conftest.er1
8337 ac_status=$?
8338 grep -v '^ *+' conftest.er1 >conftest.err
8339 rm -f conftest.er1
8340 cat conftest.err >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } &&
8343 { ac_try='test -z "$ac_cxx_werror_flag"
8344 || test ! -s conftest.err'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; } &&
8350 { ac_try='test -s conftest.$ac_objext'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352 (eval $ac_try) 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 echo "$as_me:$LINENO: result: yes" >&5
8357 echo "${ECHO_T}yes" >&6
8358 else
8359 echo "$as_me: failed program was:" >&5
8360 sed 's/^/| /' conftest.$ac_ext >&5
8362 echo "$as_me:$LINENO: result: no" >&5
8363 echo "${ECHO_T}no" >&6
8365 cat >>confdefs.h <<\_ACEOF
8366 #define LONG_FOR_TIME_T 1
8367 _ACEOF
8370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8371 ac_ext=c
8372 ac_cpp='$CPP $CPPFLAGS'
8373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8377 echo "$as_me:$LINENO: checking for return type of signal handlers" >&5
8378 echo $ECHO_N "checking for return type of signal handlers... $ECHO_C" >&6
8379 for groff_declaration in \
8380 'extern "C" void (*signal (int, void (*)(int)))(int);' \
8381 'extern "C" void (*signal (int, void (*)(int)) throw ())(int);' \
8382 'void (*signal ()) ();'
8384 cat >conftest.$ac_ext <<_ACEOF
8386 /* confdefs.h. */
8387 _ACEOF
8388 cat confdefs.h >>conftest.$ac_ext
8389 cat >>conftest.$ac_ext <<_ACEOF
8390 /* end confdefs.h. */
8393 #include <sys/types.h>
8394 #include <signal.h>
8395 #ifdef signal
8396 # undef signal
8397 #endif
8398 $groff_declaration
8402 main ()
8406 int i;
8410 return 0;
8413 _ACEOF
8414 rm -f conftest.$ac_objext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8416 (eval $ac_compile) 2>conftest.er1
8417 ac_status=$?
8418 grep -v '^ *+' conftest.er1 >conftest.err
8419 rm -f conftest.er1
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try='test -z "$ac_c_werror_flag"
8424 || test ! -s conftest.err'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 (eval $ac_try) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; } &&
8430 { ac_try='test -s conftest.$ac_objext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 (eval $ac_try) 2>&5
8433 ac_status=$?
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436 break
8437 else
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8441 continue
8443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8444 done
8446 if test -n "$groff_declaration"; then
8447 echo "$as_me:$LINENO: result: void" >&5
8448 echo "${ECHO_T}void" >&6
8450 cat >>confdefs.h <<\_ACEOF
8451 #define RETSIGTYPE void
8452 _ACEOF
8454 else
8455 echo "$as_me:$LINENO: result: int" >&5
8456 echo "${ECHO_T}int" >&6
8458 cat >>confdefs.h <<\_ACEOF
8459 #define RETSIGTYPE int
8460 _ACEOF
8463 echo "$as_me:$LINENO: checking struct exception" >&5
8464 echo $ECHO_N "checking struct exception... $ECHO_C" >&6
8465 cat >conftest.$ac_ext <<_ACEOF
8467 /* confdefs.h. */
8468 _ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8474 #include <math.h>
8478 main ()
8482 struct exception e;
8486 return 0;
8489 _ACEOF
8490 rm -f conftest.$ac_objext
8491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8492 (eval $ac_compile) 2>conftest.er1
8493 ac_status=$?
8494 grep -v '^ *+' conftest.er1 >conftest.err
8495 rm -f conftest.er1
8496 cat conftest.err >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
8499 { ac_try='test -z "$ac_c_werror_flag"
8500 || test ! -s conftest.err'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 (eval $ac_try) 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; } &&
8506 { ac_try='test -s conftest.$ac_objext'
8507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508 (eval $ac_try) 2>&5
8509 ac_status=$?
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 echo "$as_me:$LINENO: result: yes" >&5
8513 echo "${ECHO_T}yes" >&6
8515 cat >>confdefs.h <<\_ACEOF
8516 #define HAVE_STRUCT_EXCEPTION 1
8517 _ACEOF
8519 else
8520 echo "$as_me: failed program was:" >&5
8521 sed 's/^/| /' conftest.$ac_ext >&5
8523 echo "$as_me:$LINENO: result: no" >&5
8524 echo "${ECHO_T}no" >&6
8526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8528 # check endianness
8529 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8530 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8531 if test "${ac_cv_c_bigendian+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 else
8534 # See if sys/param.h defines the BYTE_ORDER macro.
8535 cat >conftest.$ac_ext <<_ACEOF
8536 /* confdefs.h. */
8537 _ACEOF
8538 cat confdefs.h >>conftest.$ac_ext
8539 cat >>conftest.$ac_ext <<_ACEOF
8540 /* end confdefs.h. */
8541 #include <sys/types.h>
8542 #include <sys/param.h>
8545 main ()
8547 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8548 bogus endian macros
8549 #endif
8552 return 0;
8554 _ACEOF
8555 rm -f conftest.$ac_objext
8556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8557 (eval $ac_compile) 2>conftest.er1
8558 ac_status=$?
8559 grep -v '^ *+' conftest.er1 >conftest.err
8560 rm -f conftest.er1
8561 cat conftest.err >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); } &&
8564 { ac_try='test -z "$ac_c_werror_flag"
8565 || test ! -s conftest.err'
8566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567 (eval $ac_try) 2>&5
8568 ac_status=$?
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); }; } &&
8571 { ac_try='test -s conftest.$ac_objext'
8572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573 (eval $ac_try) 2>&5
8574 ac_status=$?
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; }; then
8577 # It does; now see whether it defined to BIG_ENDIAN or not.
8578 cat >conftest.$ac_ext <<_ACEOF
8579 /* confdefs.h. */
8580 _ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h. */
8584 #include <sys/types.h>
8585 #include <sys/param.h>
8588 main ()
8590 #if BYTE_ORDER != BIG_ENDIAN
8591 not big endian
8592 #endif
8595 return 0;
8597 _ACEOF
8598 rm -f conftest.$ac_objext
8599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8600 (eval $ac_compile) 2>conftest.er1
8601 ac_status=$?
8602 grep -v '^ *+' conftest.er1 >conftest.err
8603 rm -f conftest.er1
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } &&
8607 { ac_try='test -z "$ac_c_werror_flag"
8608 || test ! -s conftest.err'
8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610 (eval $ac_try) 2>&5
8611 ac_status=$?
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; } &&
8614 { ac_try='test -s conftest.$ac_objext'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 (eval $ac_try) 2>&5
8617 ac_status=$?
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; }; then
8620 ac_cv_c_bigendian=yes
8621 else
8622 echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.$ac_ext >&5
8625 ac_cv_c_bigendian=no
8627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8628 else
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8632 # It does not; compile a test program.
8633 if test "$cross_compiling" = yes; then
8634 # try to guess the endianness by grepping values into an object file
8635 ac_cv_c_bigendian=unknown
8636 cat >conftest.$ac_ext <<_ACEOF
8637 /* confdefs.h. */
8638 _ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8642 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8643 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8644 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8645 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8646 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8647 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8649 main ()
8651 _ascii (); _ebcdic ();
8653 return 0;
8655 _ACEOF
8656 rm -f conftest.$ac_objext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8658 (eval $ac_compile) 2>conftest.er1
8659 ac_status=$?
8660 grep -v '^ *+' conftest.er1 >conftest.err
8661 rm -f conftest.er1
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } &&
8665 { ac_try='test -z "$ac_c_werror_flag"
8666 || test ! -s conftest.err'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668 (eval $ac_try) 2>&5
8669 ac_status=$?
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; } &&
8672 { ac_try='test -s conftest.$ac_objext'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674 (eval $ac_try) 2>&5
8675 ac_status=$?
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8678 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8679 ac_cv_c_bigendian=yes
8681 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8682 if test "$ac_cv_c_bigendian" = unknown; then
8683 ac_cv_c_bigendian=no
8684 else
8685 # finding both strings is unlikely to happen, but who knows?
8686 ac_cv_c_bigendian=unknown
8689 else
8690 echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.$ac_ext >&5
8694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8695 else
8696 cat >conftest.$ac_ext <<_ACEOF
8697 /* confdefs.h. */
8698 _ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8702 $ac_includes_default
8704 main ()
8707 /* Are we little or big endian? From Harbison&Steele. */
8708 union
8710 long int l;
8711 char c[sizeof (long int)];
8712 } u;
8713 u.l = 1;
8714 exit (u.c[sizeof (long int) - 1] == 1);
8717 return 0;
8719 _ACEOF
8720 rm -f conftest$ac_exeext
8721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8722 (eval $ac_link) 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 (eval $ac_try) 2>&5
8728 ac_status=$?
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; }; then
8731 ac_cv_c_bigendian=no
8732 else
8733 echo "$as_me: program exited with status $ac_status" >&5
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8737 ( exit $ac_status )
8738 ac_cv_c_bigendian=yes
8740 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8745 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8746 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8747 case $ac_cv_c_bigendian in
8748 yes)
8750 cat >>confdefs.h <<\_ACEOF
8751 #define WORDS_BIGENDIAN 1
8752 _ACEOF
8757 { { echo "$as_me:$LINENO: error: unknown endianness
8758 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8759 echo "$as_me: error: unknown endianness
8760 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8761 { (exit 1); exit 1; }; } ;;
8762 esac
8765 # checks for libraries
8766 echo "$as_me:$LINENO: checking for main in -lc" >&5
8767 echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
8768 if test "${ac_cv_lib_c_main+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 else
8771 ac_check_lib_save_LIBS=$LIBS
8772 LIBS="-lc $LIBS"
8773 cat >conftest.$ac_ext <<_ACEOF
8774 /* confdefs.h. */
8775 _ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h. */
8782 main ()
8784 main ();
8786 return 0;
8788 _ACEOF
8789 rm -f conftest.$ac_objext conftest$ac_exeext
8790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8791 (eval $ac_link) 2>conftest.er1
8792 ac_status=$?
8793 grep -v '^ *+' conftest.er1 >conftest.err
8794 rm -f conftest.er1
8795 cat conftest.err >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); } &&
8798 { ac_try='test -z "$ac_c_werror_flag"
8799 || test ! -s conftest.err'
8800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 (eval $ac_try) 2>&5
8802 ac_status=$?
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; } &&
8805 { ac_try='test -s conftest$ac_exeext'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 (eval $ac_try) 2>&5
8808 ac_status=$?
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; }; then
8811 ac_cv_lib_c_main=yes
8812 else
8813 echo "$as_me: failed program was:" >&5
8814 sed 's/^/| /' conftest.$ac_ext >&5
8816 ac_cv_lib_c_main=no
8818 rm -f conftest.err conftest.$ac_objext \
8819 conftest$ac_exeext conftest.$ac_ext
8820 LIBS=$ac_check_lib_save_LIBS
8822 echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
8823 echo "${ECHO_T}$ac_cv_lib_c_main" >&6
8824 if test $ac_cv_lib_c_main = yes; then
8825 LIBC=-lc
8829 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8830 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8831 if test "${ac_cv_lib_m_sin+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8833 else
8834 ac_check_lib_save_LIBS=$LIBS
8835 LIBS="-lm $LIBS"
8836 cat >conftest.$ac_ext <<_ACEOF
8837 /* confdefs.h. */
8838 _ACEOF
8839 cat confdefs.h >>conftest.$ac_ext
8840 cat >>conftest.$ac_ext <<_ACEOF
8841 /* end confdefs.h. */
8843 /* Override any gcc2 internal prototype to avoid an error. */
8844 #ifdef __cplusplus
8845 extern "C"
8846 #endif
8847 /* We use char because int might match the return type of a gcc2
8848 builtin and then its argument prototype would still apply. */
8849 char sin ();
8851 main ()
8853 sin ();
8855 return 0;
8857 _ACEOF
8858 rm -f conftest.$ac_objext conftest$ac_exeext
8859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8860 (eval $ac_link) 2>conftest.er1
8861 ac_status=$?
8862 grep -v '^ *+' conftest.er1 >conftest.err
8863 rm -f conftest.er1
8864 cat conftest.err >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); } &&
8867 { ac_try='test -z "$ac_c_werror_flag"
8868 || test ! -s conftest.err'
8869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870 (eval $ac_try) 2>&5
8871 ac_status=$?
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); }; } &&
8874 { ac_try='test -s conftest$ac_exeext'
8875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8876 (eval $ac_try) 2>&5
8877 ac_status=$?
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); }; }; then
8880 ac_cv_lib_m_sin=yes
8881 else
8882 echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8885 ac_cv_lib_m_sin=no
8887 rm -f conftest.err conftest.$ac_objext \
8888 conftest$ac_exeext conftest.$ac_ext
8889 LIBS=$ac_check_lib_save_LIBS
8891 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8892 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8893 if test $ac_cv_lib_m_sin = yes; then
8894 LIBM=-lm
8899 if test "X$prefix" = "XNONE"; then
8900 acl_final_prefix="$ac_default_prefix"
8901 else
8902 acl_final_prefix="$prefix"
8904 if test "X$exec_prefix" = "XNONE"; then
8905 acl_final_exec_prefix='${prefix}'
8906 else
8907 acl_final_exec_prefix="$exec_prefix"
8909 acl_save_prefix="$prefix"
8910 prefix="$acl_final_prefix"
8911 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8912 prefix="$acl_save_prefix"
8914 # Make sure we can run config.sub.
8915 $ac_config_sub sun4 >/dev/null 2>&1 ||
8916 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
8917 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
8918 { (exit 1); exit 1; }; }
8920 echo "$as_me:$LINENO: checking build system type" >&5
8921 echo $ECHO_N "checking build system type... $ECHO_C" >&6
8922 if test "${ac_cv_build+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8924 else
8925 ac_cv_build_alias=$build_alias
8926 test -z "$ac_cv_build_alias" &&
8927 ac_cv_build_alias=`$ac_config_guess`
8928 test -z "$ac_cv_build_alias" &&
8929 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
8930 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
8931 { (exit 1); exit 1; }; }
8932 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
8933 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
8934 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
8935 { (exit 1); exit 1; }; }
8938 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
8939 echo "${ECHO_T}$ac_cv_build" >&6
8940 build=$ac_cv_build
8941 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8942 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8943 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8946 echo "$as_me:$LINENO: checking host system type" >&5
8947 echo $ECHO_N "checking host system type... $ECHO_C" >&6
8948 if test "${ac_cv_host+set}" = set; then
8949 echo $ECHO_N "(cached) $ECHO_C" >&6
8950 else
8951 ac_cv_host_alias=$host_alias
8952 test -z "$ac_cv_host_alias" &&
8953 ac_cv_host_alias=$ac_cv_build_alias
8954 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
8955 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
8956 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
8957 { (exit 1); exit 1; }; }
8960 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
8961 echo "${ECHO_T}$ac_cv_host" >&6
8962 host=$ac_cv_host
8963 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8964 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8965 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8969 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8970 if test "${with_gnu_ld+set}" = set; then
8971 withval="$with_gnu_ld"
8972 test "$withval" = no || with_gnu_ld=yes
8973 else
8974 with_gnu_ld=no
8976 # Prepare PATH_SEPARATOR.
8977 # The user is always right.
8978 if test "${PATH_SEPARATOR+set}" != set; then
8979 echo "#! /bin/sh" >conf$$.sh
8980 echo "exit 0" >>conf$$.sh
8981 chmod +x conf$$.sh
8982 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8983 PATH_SEPARATOR=';'
8984 else
8985 PATH_SEPARATOR=:
8987 rm -f conf$$.sh
8989 ac_prog=ld
8990 if test "$GCC" = yes; then
8991 # Check if gcc -print-prog-name=ld gives a path.
8992 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8993 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
8994 case $host in
8995 *-*-mingw*)
8996 # gcc leaves a trailing carriage return which upsets mingw
8997 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8999 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9000 esac
9001 case $ac_prog in
9002 # Accept absolute paths.
9003 [\\/]* | [A-Za-z]:[\\/]*)
9004 re_direlt='/[^/][^/]*/\.\./'
9005 # Canonicalize the path of ld
9006 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9007 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9008 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9009 done
9010 test -z "$LD" && LD="$ac_prog"
9013 # If it fails, then pretend we aren't using GCC.
9014 ac_prog=ld
9017 # If it is relative, then search for the first ld in PATH.
9018 with_gnu_ld=unknown
9020 esac
9021 elif test "$with_gnu_ld" = yes; then
9022 echo "$as_me:$LINENO: checking for GNU ld" >&5
9023 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9024 else
9025 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9026 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9028 if test "${acl_cv_path_LD+set}" = set; then
9029 echo $ECHO_N "(cached) $ECHO_C" >&6
9030 else
9031 if test -z "$LD"; then
9032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9033 for ac_dir in $PATH; do
9034 test -z "$ac_dir" && ac_dir=.
9035 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9036 acl_cv_path_LD="$ac_dir/$ac_prog"
9037 # Check to see if the program is GNU ld. I'd rather use --version,
9038 # but apparently some GNU ld's only accept -v.
9039 # Break only if it was the GNU/non-GNU ld that we prefer.
9040 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9041 *GNU* | *'with BFD'*)
9042 test "$with_gnu_ld" != no && break ;;
9044 test "$with_gnu_ld" != yes && break ;;
9045 esac
9047 done
9048 IFS="$ac_save_ifs"
9049 else
9050 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9054 LD="$acl_cv_path_LD"
9055 if test -n "$LD"; then
9056 echo "$as_me:$LINENO: result: $LD" >&5
9057 echo "${ECHO_T}$LD" >&6
9058 else
9059 echo "$as_me:$LINENO: result: no" >&5
9060 echo "${ECHO_T}no" >&6
9062 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9063 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9064 { (exit 1); exit 1; }; }
9065 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9066 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9067 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9068 echo $ECHO_N "(cached) $ECHO_C" >&6
9069 else
9070 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9071 case `$LD -v 2>&1 </dev/null` in
9072 *GNU* | *'with BFD'*)
9073 acl_cv_prog_gnu_ld=yes ;;
9075 acl_cv_prog_gnu_ld=no ;;
9076 esac
9078 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9079 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9080 with_gnu_ld=$acl_cv_prog_gnu_ld
9085 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9086 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9087 if test "${acl_cv_rpath+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9089 else
9091 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9092 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9093 . ./conftest.sh
9094 rm -f ./conftest.sh
9095 acl_cv_rpath=done
9098 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9099 echo "${ECHO_T}$acl_cv_rpath" >&6
9100 wl="$acl_cv_wl"
9101 libext="$acl_cv_libext"
9102 shlibext="$acl_cv_shlibext"
9103 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9104 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9105 hardcode_direct="$acl_cv_hardcode_direct"
9106 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9107 # Check whether --enable-rpath or --disable-rpath was given.
9108 if test "${enable_rpath+set}" = set; then
9109 enableval="$enable_rpath"
9111 else
9112 enable_rpath=yes
9116 acl_libdirstem=lib
9117 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9118 if test -n "$searchpath"; then
9119 acl_save_IFS="${IFS= }"; IFS=":"
9120 for searchdir in $searchpath; do
9121 if test -d "$searchdir"; then
9122 case "$searchdir" in
9123 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
9124 *) searchdir=`cd "$searchdir" && pwd`
9125 case "$searchdir" in
9126 */lib64 ) acl_libdirstem=lib64 ;;
9127 esac ;;
9128 esac
9130 done
9131 IFS="$acl_save_IFS"
9141 use_additional=yes
9143 acl_save_prefix="$prefix"
9144 prefix="$acl_final_prefix"
9145 acl_save_exec_prefix="$exec_prefix"
9146 exec_prefix="$acl_final_exec_prefix"
9148 eval additional_includedir=\"$includedir\"
9149 eval additional_libdir=\"$libdir\"
9151 exec_prefix="$acl_save_exec_prefix"
9152 prefix="$acl_save_prefix"
9155 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9156 if test "${with_libiconv_prefix+set}" = set; then
9157 withval="$with_libiconv_prefix"
9159 if test "X$withval" = "Xno"; then
9160 use_additional=no
9161 else
9162 if test "X$withval" = "X"; then
9164 acl_save_prefix="$prefix"
9165 prefix="$acl_final_prefix"
9166 acl_save_exec_prefix="$exec_prefix"
9167 exec_prefix="$acl_final_exec_prefix"
9169 eval additional_includedir=\"$includedir\"
9170 eval additional_libdir=\"$libdir\"
9172 exec_prefix="$acl_save_exec_prefix"
9173 prefix="$acl_save_prefix"
9175 else
9176 additional_includedir="$withval/include"
9177 additional_libdir="$withval/$acl_libdirstem"
9182 LIBICONV=
9183 LTLIBICONV=
9184 INCICONV=
9185 rpathdirs=
9186 ltrpathdirs=
9187 names_already_handled=
9188 names_next_round='iconv '
9189 while test -n "$names_next_round"; do
9190 names_this_round="$names_next_round"
9191 names_next_round=
9192 for name in $names_this_round; do
9193 already_handled=
9194 for n in $names_already_handled; do
9195 if test "$n" = "$name"; then
9196 already_handled=yes
9197 break
9199 done
9200 if test -z "$already_handled"; then
9201 names_already_handled="$names_already_handled $name"
9202 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9203 eval value=\"\$HAVE_LIB$uppername\"
9204 if test -n "$value"; then
9205 if test "$value" = yes; then
9206 eval value=\"\$LIB$uppername\"
9207 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9208 eval value=\"\$LTLIB$uppername\"
9209 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9210 else
9213 else
9214 found_dir=
9215 found_la=
9216 found_so=
9217 found_a=
9218 if test $use_additional = yes; then
9219 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9220 found_dir="$additional_libdir"
9221 found_so="$additional_libdir/lib$name.$shlibext"
9222 if test -f "$additional_libdir/lib$name.la"; then
9223 found_la="$additional_libdir/lib$name.la"
9225 else
9226 if test -f "$additional_libdir/lib$name.$libext"; then
9227 found_dir="$additional_libdir"
9228 found_a="$additional_libdir/lib$name.$libext"
9229 if test -f "$additional_libdir/lib$name.la"; then
9230 found_la="$additional_libdir/lib$name.la"
9235 if test "X$found_dir" = "X"; then
9236 for x in $LDFLAGS $LTLIBICONV; do
9238 acl_save_prefix="$prefix"
9239 prefix="$acl_final_prefix"
9240 acl_save_exec_prefix="$exec_prefix"
9241 exec_prefix="$acl_final_exec_prefix"
9242 eval x=\"$x\"
9243 exec_prefix="$acl_save_exec_prefix"
9244 prefix="$acl_save_prefix"
9246 case "$x" in
9247 -L*)
9248 dir=`echo "X$x" | sed -e 's/^X-L//'`
9249 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9250 found_dir="$dir"
9251 found_so="$dir/lib$name.$shlibext"
9252 if test -f "$dir/lib$name.la"; then
9253 found_la="$dir/lib$name.la"
9255 else
9256 if test -f "$dir/lib$name.$libext"; then
9257 found_dir="$dir"
9258 found_a="$dir/lib$name.$libext"
9259 if test -f "$dir/lib$name.la"; then
9260 found_la="$dir/lib$name.la"
9265 esac
9266 if test "X$found_dir" != "X"; then
9267 break
9269 done
9271 if test "X$found_dir" != "X"; then
9272 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9273 if test "X$found_so" != "X"; then
9274 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
9275 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9276 else
9277 haveit=
9278 for x in $ltrpathdirs; do
9279 if test "X$x" = "X$found_dir"; then
9280 haveit=yes
9281 break
9283 done
9284 if test -z "$haveit"; then
9285 ltrpathdirs="$ltrpathdirs $found_dir"
9287 if test "$hardcode_direct" = yes; then
9288 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9289 else
9290 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9291 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9292 haveit=
9293 for x in $rpathdirs; do
9294 if test "X$x" = "X$found_dir"; then
9295 haveit=yes
9296 break
9298 done
9299 if test -z "$haveit"; then
9300 rpathdirs="$rpathdirs $found_dir"
9302 else
9303 haveit=
9304 for x in $LDFLAGS $LIBICONV; do
9306 acl_save_prefix="$prefix"
9307 prefix="$acl_final_prefix"
9308 acl_save_exec_prefix="$exec_prefix"
9309 exec_prefix="$acl_final_exec_prefix"
9310 eval x=\"$x\"
9311 exec_prefix="$acl_save_exec_prefix"
9312 prefix="$acl_save_prefix"
9314 if test "X$x" = "X-L$found_dir"; then
9315 haveit=yes
9316 break
9318 done
9319 if test -z "$haveit"; then
9320 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9322 if test "$hardcode_minus_L" != no; then
9323 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9324 else
9325 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9330 else
9331 if test "X$found_a" != "X"; then
9332 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9333 else
9334 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9337 additional_includedir=
9338 case "$found_dir" in
9339 */$acl_libdirstem | */$acl_libdirstem/)
9340 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9341 additional_includedir="$basedir/include"
9343 esac
9344 if test "X$additional_includedir" != "X"; then
9345 if test "X$additional_includedir" != "X/usr/include"; then
9346 haveit=
9347 if test "X$additional_includedir" = "X/usr/local/include"; then
9348 if test -n "$GCC"; then
9349 case $host_os in
9350 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9351 esac
9354 if test -z "$haveit"; then
9355 for x in $CPPFLAGS $INCICONV; do
9357 acl_save_prefix="$prefix"
9358 prefix="$acl_final_prefix"
9359 acl_save_exec_prefix="$exec_prefix"
9360 exec_prefix="$acl_final_exec_prefix"
9361 eval x=\"$x\"
9362 exec_prefix="$acl_save_exec_prefix"
9363 prefix="$acl_save_prefix"
9365 if test "X$x" = "X-I$additional_includedir"; then
9366 haveit=yes
9367 break
9369 done
9370 if test -z "$haveit"; then
9371 if test -d "$additional_includedir"; then
9372 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9378 if test -n "$found_la"; then
9379 save_libdir="$libdir"
9380 case "$found_la" in
9381 */* | *\\*) . "$found_la" ;;
9382 *) . "./$found_la" ;;
9383 esac
9384 libdir="$save_libdir"
9385 for dep in $dependency_libs; do
9386 case "$dep" in
9387 -L*)
9388 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9389 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
9390 haveit=
9391 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
9392 if test -n "$GCC"; then
9393 case $host_os in
9394 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9395 esac
9398 if test -z "$haveit"; then
9399 haveit=
9400 for x in $LDFLAGS $LIBICONV; do
9402 acl_save_prefix="$prefix"
9403 prefix="$acl_final_prefix"
9404 acl_save_exec_prefix="$exec_prefix"
9405 exec_prefix="$acl_final_exec_prefix"
9406 eval x=\"$x\"
9407 exec_prefix="$acl_save_exec_prefix"
9408 prefix="$acl_save_prefix"
9410 if test "X$x" = "X-L$additional_libdir"; then
9411 haveit=yes
9412 break
9414 done
9415 if test -z "$haveit"; then
9416 if test -d "$additional_libdir"; then
9417 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9420 haveit=
9421 for x in $LDFLAGS $LTLIBICONV; do
9423 acl_save_prefix="$prefix"
9424 prefix="$acl_final_prefix"
9425 acl_save_exec_prefix="$exec_prefix"
9426 exec_prefix="$acl_final_exec_prefix"
9427 eval x=\"$x\"
9428 exec_prefix="$acl_save_exec_prefix"
9429 prefix="$acl_save_prefix"
9431 if test "X$x" = "X-L$additional_libdir"; then
9432 haveit=yes
9433 break
9435 done
9436 if test -z "$haveit"; then
9437 if test -d "$additional_libdir"; then
9438 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9444 -R*)
9445 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9446 if test "$enable_rpath" != no; then
9447 haveit=
9448 for x in $rpathdirs; do
9449 if test "X$x" = "X$dir"; then
9450 haveit=yes
9451 break
9453 done
9454 if test -z "$haveit"; then
9455 rpathdirs="$rpathdirs $dir"
9457 haveit=
9458 for x in $ltrpathdirs; do
9459 if test "X$x" = "X$dir"; then
9460 haveit=yes
9461 break
9463 done
9464 if test -z "$haveit"; then
9465 ltrpathdirs="$ltrpathdirs $dir"
9469 -l*)
9470 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9472 *.la)
9473 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9476 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9477 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9479 esac
9480 done
9482 else
9483 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9484 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9488 done
9489 done
9490 if test "X$rpathdirs" != "X"; then
9491 if test -n "$hardcode_libdir_separator"; then
9492 alldirs=
9493 for found_dir in $rpathdirs; do
9494 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9495 done
9496 acl_save_libdir="$libdir"
9497 libdir="$alldirs"
9498 eval flag=\"$hardcode_libdir_flag_spec\"
9499 libdir="$acl_save_libdir"
9500 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9501 else
9502 for found_dir in $rpathdirs; do
9503 acl_save_libdir="$libdir"
9504 libdir="$found_dir"
9505 eval flag=\"$hardcode_libdir_flag_spec\"
9506 libdir="$acl_save_libdir"
9507 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9508 done
9511 if test "X$ltrpathdirs" != "X"; then
9512 for found_dir in $ltrpathdirs; do
9513 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9514 done
9523 am_save_CPPFLAGS="$CPPFLAGS"
9525 for element in $INCICONV; do
9526 haveit=
9527 for x in $CPPFLAGS; do
9529 acl_save_prefix="$prefix"
9530 prefix="$acl_final_prefix"
9531 acl_save_exec_prefix="$exec_prefix"
9532 exec_prefix="$acl_final_exec_prefix"
9533 eval x=\"$x\"
9534 exec_prefix="$acl_save_exec_prefix"
9535 prefix="$acl_save_prefix"
9537 if test "X$x" = "X$element"; then
9538 haveit=yes
9539 break
9541 done
9542 if test -z "$haveit"; then
9543 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9545 done
9548 echo "$as_me:$LINENO: checking for iconv" >&5
9549 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9550 if test "${am_cv_func_iconv+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9554 am_cv_func_iconv="no, consider installing GNU libiconv"
9555 am_cv_lib_iconv=no
9556 cat >conftest.$ac_ext <<_ACEOF
9557 /* confdefs.h. */
9558 _ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9562 #include <stdlib.h>
9563 #include <iconv.h>
9565 main ()
9567 iconv_t cd = iconv_open("","");
9568 iconv(cd,NULL,NULL,NULL,NULL);
9569 iconv_close(cd);
9571 return 0;
9573 _ACEOF
9574 rm -f conftest.$ac_objext conftest$ac_exeext
9575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9576 (eval $ac_link) 2>conftest.er1
9577 ac_status=$?
9578 grep -v '^ *+' conftest.er1 >conftest.err
9579 rm -f conftest.er1
9580 cat conftest.err >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } &&
9583 { ac_try='test -z "$ac_c_werror_flag"
9584 || test ! -s conftest.err'
9585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9586 (eval $ac_try) 2>&5
9587 ac_status=$?
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); }; } &&
9590 { ac_try='test -s conftest$ac_exeext'
9591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9592 (eval $ac_try) 2>&5
9593 ac_status=$?
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); }; }; then
9596 am_cv_func_iconv=yes
9597 else
9598 echo "$as_me: failed program was:" >&5
9599 sed 's/^/| /' conftest.$ac_ext >&5
9602 rm -f conftest.err conftest.$ac_objext \
9603 conftest$ac_exeext conftest.$ac_ext
9604 if test "$am_cv_func_iconv" != yes; then
9605 am_save_LIBS="$LIBS"
9606 LIBS="$LIBS $LIBICONV"
9607 cat >conftest.$ac_ext <<_ACEOF
9608 /* confdefs.h. */
9609 _ACEOF
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h. */
9613 #include <stdlib.h>
9614 #include <iconv.h>
9616 main ()
9618 iconv_t cd = iconv_open("","");
9619 iconv(cd,NULL,NULL,NULL,NULL);
9620 iconv_close(cd);
9622 return 0;
9624 _ACEOF
9625 rm -f conftest.$ac_objext conftest$ac_exeext
9626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9627 (eval $ac_link) 2>conftest.er1
9628 ac_status=$?
9629 grep -v '^ *+' conftest.er1 >conftest.err
9630 rm -f conftest.er1
9631 cat conftest.err >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } &&
9634 { ac_try='test -z "$ac_c_werror_flag"
9635 || test ! -s conftest.err'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 (eval $ac_try) 2>&5
9638 ac_status=$?
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; } &&
9641 { ac_try='test -s conftest$ac_exeext'
9642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643 (eval $ac_try) 2>&5
9644 ac_status=$?
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; }; then
9647 am_cv_lib_iconv=yes
9648 am_cv_func_iconv=yes
9649 else
9650 echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9654 rm -f conftest.err conftest.$ac_objext \
9655 conftest$ac_exeext conftest.$ac_ext
9656 LIBS="$am_save_LIBS"
9660 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9661 echo "${ECHO_T}$am_cv_func_iconv" >&6
9662 if test "$am_cv_func_iconv" = yes; then
9664 cat >>confdefs.h <<\_ACEOF
9665 #define HAVE_ICONV 1
9666 _ACEOF
9669 if test "$am_cv_lib_iconv" = yes; then
9670 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9671 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
9672 echo "$as_me:$LINENO: result: $LIBICONV" >&5
9673 echo "${ECHO_T}$LIBICONV" >&6
9674 else
9675 CPPFLAGS="$am_save_CPPFLAGS"
9676 LIBICONV=
9677 LTLIBICONV=
9682 if test "$am_cv_func_iconv" = yes; then
9683 echo "$as_me:$LINENO: checking for iconv declaration" >&5
9684 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
9685 if test "${am_cv_proto_iconv+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9689 cat >conftest.$ac_ext <<_ACEOF
9690 /* confdefs.h. */
9691 _ACEOF
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h. */
9696 #include <stdlib.h>
9697 #include <iconv.h>
9698 extern
9699 #ifdef __cplusplus
9701 #endif
9702 #if defined(__STDC__) || defined(__cplusplus)
9703 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9704 #else
9705 size_t iconv();
9706 #endif
9709 main ()
9713 return 0;
9715 _ACEOF
9716 rm -f conftest.$ac_objext
9717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9718 (eval $ac_compile) 2>conftest.er1
9719 ac_status=$?
9720 grep -v '^ *+' conftest.er1 >conftest.err
9721 rm -f conftest.er1
9722 cat conftest.err >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } &&
9725 { ac_try='test -z "$ac_c_werror_flag"
9726 || test ! -s conftest.err'
9727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 (eval $ac_try) 2>&5
9729 ac_status=$?
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; } &&
9732 { ac_try='test -s conftest.$ac_objext'
9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734 (eval $ac_try) 2>&5
9735 ac_status=$?
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; }; then
9738 am_cv_proto_iconv_arg1=""
9739 else
9740 echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9743 am_cv_proto_iconv_arg1="const"
9745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9746 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
9749 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9750 echo "$as_me:$LINENO: result: ${ac_t:-
9751 }$am_cv_proto_iconv" >&5
9752 echo "${ECHO_T}${ac_t:-
9753 }$am_cv_proto_iconv" >&6
9755 cat >>confdefs.h <<_ACEOF
9756 #define ICONV_CONST $am_cv_proto_iconv_arg1
9757 _ACEOF
9762 # checks for functions
9765 for ac_header in stdlib.h unistd.h
9767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9769 echo "$as_me:$LINENO: checking for $ac_header" >&5
9770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9776 else
9777 # Is the header compilable?
9778 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9780 cat >conftest.$ac_ext <<_ACEOF
9781 /* confdefs.h. */
9782 _ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9786 $ac_includes_default
9787 #include <$ac_header>
9788 _ACEOF
9789 rm -f conftest.$ac_objext
9790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9791 (eval $ac_compile) 2>conftest.er1
9792 ac_status=$?
9793 grep -v '^ *+' conftest.er1 >conftest.err
9794 rm -f conftest.er1
9795 cat conftest.err >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); } &&
9798 { ac_try='test -z "$ac_c_werror_flag"
9799 || test ! -s conftest.err'
9800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801 (eval $ac_try) 2>&5
9802 ac_status=$?
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; } &&
9805 { ac_try='test -s conftest.$ac_objext'
9806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 (eval $ac_try) 2>&5
9808 ac_status=$?
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; }; then
9811 ac_header_compiler=yes
9812 else
9813 echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9816 ac_header_compiler=no
9818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9819 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9820 echo "${ECHO_T}$ac_header_compiler" >&6
9822 # Is the header present?
9823 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9825 cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h. */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 #include <$ac_header>
9832 _ACEOF
9833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9835 ac_status=$?
9836 grep -v '^ *+' conftest.er1 >conftest.err
9837 rm -f conftest.er1
9838 cat conftest.err >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } >/dev/null; then
9841 if test -s conftest.err; then
9842 ac_cpp_err=$ac_c_preproc_warn_flag
9843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9844 else
9845 ac_cpp_err=
9847 else
9848 ac_cpp_err=yes
9850 if test -z "$ac_cpp_err"; then
9851 ac_header_preproc=yes
9852 else
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9856 ac_header_preproc=no
9858 rm -f conftest.err conftest.$ac_ext
9859 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9860 echo "${ECHO_T}$ac_header_preproc" >&6
9862 # So? What about this header?
9863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9864 yes:no: )
9865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9869 ac_header_preproc=yes
9871 no:yes:* )
9872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9885 cat <<\_ASBOX
9886 ## ------------------------------------------ ##
9887 ## Report this to the AC_PACKAGE_NAME lists. ##
9888 ## ------------------------------------------ ##
9889 _ASBOX
9891 sed "s/^/$as_me: WARNING: /" >&2
9893 esac
9894 echo "$as_me:$LINENO: checking for $ac_header" >&5
9895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9898 else
9899 eval "$as_ac_Header=\$ac_header_preproc"
9901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9906 cat >>confdefs.h <<_ACEOF
9907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9908 _ACEOF
9912 done
9915 for ac_func in getpagesize
9917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9918 echo "$as_me:$LINENO: checking for $ac_func" >&5
9919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9920 if eval "test \"\${$as_ac_var+set}\" = set"; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923 cat >conftest.$ac_ext <<_ACEOF
9924 /* confdefs.h. */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9931 #define $ac_func innocuous_$ac_func
9933 /* System header to define __stub macros and hopefully few prototypes,
9934 which can conflict with char $ac_func (); below.
9935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9936 <limits.h> exists even on freestanding compilers. */
9938 #ifdef __STDC__
9939 # include <limits.h>
9940 #else
9941 # include <assert.h>
9942 #endif
9944 #undef $ac_func
9946 /* Override any gcc2 internal prototype to avoid an error. */
9947 #ifdef __cplusplus
9948 extern "C"
9950 #endif
9951 /* We use char because int might match the return type of a gcc2
9952 builtin and then its argument prototype would still apply. */
9953 char $ac_func ();
9954 /* The GNU C library defines this for functions which it implements
9955 to always fail with ENOSYS. Some functions are actually named
9956 something starting with __ and the normal name is an alias. */
9957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9958 choke me
9959 #else
9960 char (*f) () = $ac_func;
9961 #endif
9962 #ifdef __cplusplus
9964 #endif
9967 main ()
9969 return f != $ac_func;
9971 return 0;
9973 _ACEOF
9974 rm -f conftest.$ac_objext conftest$ac_exeext
9975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9976 (eval $ac_link) 2>conftest.er1
9977 ac_status=$?
9978 grep -v '^ *+' conftest.er1 >conftest.err
9979 rm -f conftest.er1
9980 cat conftest.err >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } &&
9983 { ac_try='test -z "$ac_c_werror_flag"
9984 || test ! -s conftest.err'
9985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9986 (eval $ac_try) 2>&5
9987 ac_status=$?
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); }; } &&
9990 { ac_try='test -s conftest$ac_exeext'
9991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992 (eval $ac_try) 2>&5
9993 ac_status=$?
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; }; then
9996 eval "$as_ac_var=yes"
9997 else
9998 echo "$as_me: failed program was:" >&5
9999 sed 's/^/| /' conftest.$ac_ext >&5
10001 eval "$as_ac_var=no"
10003 rm -f conftest.err conftest.$ac_objext \
10004 conftest$ac_exeext conftest.$ac_ext
10006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10007 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10008 if test `eval echo '${'$as_ac_var'}'` = yes; then
10009 cat >>confdefs.h <<_ACEOF
10010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10011 _ACEOF
10014 done
10016 echo "$as_me:$LINENO: checking for working mmap" >&5
10017 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10018 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 else
10021 if test "$cross_compiling" = yes; then
10022 ac_cv_func_mmap_fixed_mapped=no
10023 else
10024 cat >conftest.$ac_ext <<_ACEOF
10025 /* confdefs.h. */
10026 _ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10030 $ac_includes_default
10031 /* malloc might have been renamed as rpl_malloc. */
10032 #undef malloc
10034 /* Thanks to Mike Haertel and Jim Avera for this test.
10035 Here is a matrix of mmap possibilities:
10036 mmap private not fixed
10037 mmap private fixed at somewhere currently unmapped
10038 mmap private fixed at somewhere already mapped
10039 mmap shared not fixed
10040 mmap shared fixed at somewhere currently unmapped
10041 mmap shared fixed at somewhere already mapped
10042 For private mappings, we should verify that changes cannot be read()
10043 back from the file, nor mmap's back from the file at a different
10044 address. (There have been systems where private was not correctly
10045 implemented like the infamous i386 svr4.0, and systems where the
10046 VM page cache was not coherent with the file system buffer cache
10047 like early versions of FreeBSD and possibly contemporary NetBSD.)
10048 For shared mappings, we should conversely verify that changes get
10049 propagated back to all the places they're supposed to be.
10051 Grep wants private fixed already mapped.
10052 The main things grep needs to know about mmap are:
10053 * does it exist and is it safe to write into the mmap'd area
10054 * how to use it (BSD variants) */
10056 #include <fcntl.h>
10057 #include <sys/mman.h>
10059 #if !STDC_HEADERS && !HAVE_STDLIB_H
10060 char *malloc ();
10061 #endif
10063 /* This mess was copied from the GNU getpagesize.h. */
10064 #if !HAVE_GETPAGESIZE
10065 /* Assume that all systems that can run configure have sys/param.h. */
10066 # if !HAVE_SYS_PARAM_H
10067 # define HAVE_SYS_PARAM_H 1
10068 # endif
10070 # ifdef _SC_PAGESIZE
10071 # define getpagesize() sysconf(_SC_PAGESIZE)
10072 # else /* no _SC_PAGESIZE */
10073 # if HAVE_SYS_PARAM_H
10074 # include <sys/param.h>
10075 # ifdef EXEC_PAGESIZE
10076 # define getpagesize() EXEC_PAGESIZE
10077 # else /* no EXEC_PAGESIZE */
10078 # ifdef NBPG
10079 # define getpagesize() NBPG * CLSIZE
10080 # ifndef CLSIZE
10081 # define CLSIZE 1
10082 # endif /* no CLSIZE */
10083 # else /* no NBPG */
10084 # ifdef NBPC
10085 # define getpagesize() NBPC
10086 # else /* no NBPC */
10087 # ifdef PAGESIZE
10088 # define getpagesize() PAGESIZE
10089 # endif /* PAGESIZE */
10090 # endif /* no NBPC */
10091 # endif /* no NBPG */
10092 # endif /* no EXEC_PAGESIZE */
10093 # else /* no HAVE_SYS_PARAM_H */
10094 # define getpagesize() 8192 /* punt totally */
10095 # endif /* no HAVE_SYS_PARAM_H */
10096 # endif /* no _SC_PAGESIZE */
10098 #endif /* no HAVE_GETPAGESIZE */
10101 main ()
10103 char *data, *data2, *data3;
10104 int i, pagesize;
10105 int fd;
10107 pagesize = getpagesize ();
10109 /* First, make a file with some known garbage in it. */
10110 data = (char *) malloc (pagesize);
10111 if (!data)
10112 exit (1);
10113 for (i = 0; i < pagesize; ++i)
10114 *(data + i) = rand ();
10115 umask (0);
10116 fd = creat ("conftest.mmap", 0600);
10117 if (fd < 0)
10118 exit (1);
10119 if (write (fd, data, pagesize) != pagesize)
10120 exit (1);
10121 close (fd);
10123 /* Next, try to mmap the file at a fixed address which already has
10124 something else allocated at it. If we can, also make sure that
10125 we see the same garbage. */
10126 fd = open ("conftest.mmap", O_RDWR);
10127 if (fd < 0)
10128 exit (1);
10129 data2 = (char *) malloc (2 * pagesize);
10130 if (!data2)
10131 exit (1);
10132 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10133 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10134 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10135 exit (1);
10136 for (i = 0; i < pagesize; ++i)
10137 if (*(data + i) != *(data2 + i))
10138 exit (1);
10140 /* Finally, make sure that changes to the mapped area do not
10141 percolate back to the file as seen by read(). (This is a bug on
10142 some variants of i386 svr4.0.) */
10143 for (i = 0; i < pagesize; ++i)
10144 *(data2 + i) = *(data2 + i) + 1;
10145 data3 = (char *) malloc (pagesize);
10146 if (!data3)
10147 exit (1);
10148 if (read (fd, data3, pagesize) != pagesize)
10149 exit (1);
10150 for (i = 0; i < pagesize; ++i)
10151 if (*(data + i) != *(data3 + i))
10152 exit (1);
10153 close (fd);
10154 exit (0);
10156 _ACEOF
10157 rm -f conftest$ac_exeext
10158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10159 (eval $ac_link) 2>&5
10160 ac_status=$?
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164 (eval $ac_try) 2>&5
10165 ac_status=$?
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); }; }; then
10168 ac_cv_func_mmap_fixed_mapped=yes
10169 else
10170 echo "$as_me: program exited with status $ac_status" >&5
10171 echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10174 ( exit $ac_status )
10175 ac_cv_func_mmap_fixed_mapped=no
10177 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10180 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10181 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10182 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10184 cat >>confdefs.h <<\_ACEOF
10185 #define HAVE_MMAP 1
10186 _ACEOF
10189 rm -f conftest.mmap
10191 saved_libs="$LIBS"
10192 LIBS="$LIBS $LIBC $LIBM"
10201 for ac_func in fmod getcwd putenv snprintf strcasecmp \
10202 strerror strncasecmp strtol
10204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10205 echo "$as_me:$LINENO: checking for $ac_func" >&5
10206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10207 if eval "test \"\${$as_ac_var+set}\" = set"; then
10208 echo $ECHO_N "(cached) $ECHO_C" >&6
10209 else
10210 cat >conftest.$ac_ext <<_ACEOF
10211 /* confdefs.h. */
10212 _ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h. */
10216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10218 #define $ac_func innocuous_$ac_func
10220 /* System header to define __stub macros and hopefully few prototypes,
10221 which can conflict with char $ac_func (); below.
10222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10223 <limits.h> exists even on freestanding compilers. */
10225 #ifdef __STDC__
10226 # include <limits.h>
10227 #else
10228 # include <assert.h>
10229 #endif
10231 #undef $ac_func
10233 /* Override any gcc2 internal prototype to avoid an error. */
10234 #ifdef __cplusplus
10235 extern "C"
10237 #endif
10238 /* We use char because int might match the return type of a gcc2
10239 builtin and then its argument prototype would still apply. */
10240 char $ac_func ();
10241 /* The GNU C library defines this for functions which it implements
10242 to always fail with ENOSYS. Some functions are actually named
10243 something starting with __ and the normal name is an alias. */
10244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10245 choke me
10246 #else
10247 char (*f) () = $ac_func;
10248 #endif
10249 #ifdef __cplusplus
10251 #endif
10254 main ()
10256 return f != $ac_func;
10258 return 0;
10260 _ACEOF
10261 rm -f conftest.$ac_objext conftest$ac_exeext
10262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10263 (eval $ac_link) 2>conftest.er1
10264 ac_status=$?
10265 grep -v '^ *+' conftest.er1 >conftest.err
10266 rm -f conftest.er1
10267 cat conftest.err >&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } &&
10270 { ac_try='test -z "$ac_c_werror_flag"
10271 || test ! -s conftest.err'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; } &&
10277 { ac_try='test -s conftest$ac_exeext'
10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10280 ac_status=$?
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; }; then
10283 eval "$as_ac_var=yes"
10284 else
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.$ac_ext >&5
10288 eval "$as_ac_var=no"
10290 rm -f conftest.err conftest.$ac_objext \
10291 conftest$ac_exeext conftest.$ac_ext
10293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10295 if test `eval echo '${'$as_ac_var'}'` = yes; then
10296 cat >>confdefs.h <<_ACEOF
10297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10298 _ACEOF
10300 else
10301 case $LIBOBJS in
10302 "$ac_func.$ac_objext" | \
10303 *" $ac_func.$ac_objext" | \
10304 "$ac_func.$ac_objext "* | \
10305 *" $ac_func.$ac_objext "* ) ;;
10306 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
10307 esac
10310 done
10313 # vsnprintf is in the same source file as snprintf
10315 for ac_func in vsnprintf
10317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10318 echo "$as_me:$LINENO: checking for $ac_func" >&5
10319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10320 if eval "test \"\${$as_ac_var+set}\" = set"; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10322 else
10323 cat >conftest.$ac_ext <<_ACEOF
10324 /* confdefs.h. */
10325 _ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10331 #define $ac_func innocuous_$ac_func
10333 /* System header to define __stub macros and hopefully few prototypes,
10334 which can conflict with char $ac_func (); below.
10335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10336 <limits.h> exists even on freestanding compilers. */
10338 #ifdef __STDC__
10339 # include <limits.h>
10340 #else
10341 # include <assert.h>
10342 #endif
10344 #undef $ac_func
10346 /* Override any gcc2 internal prototype to avoid an error. */
10347 #ifdef __cplusplus
10348 extern "C"
10350 #endif
10351 /* We use char because int might match the return type of a gcc2
10352 builtin and then its argument prototype would still apply. */
10353 char $ac_func ();
10354 /* The GNU C library defines this for functions which it implements
10355 to always fail with ENOSYS. Some functions are actually named
10356 something starting with __ and the normal name is an alias. */
10357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10358 choke me
10359 #else
10360 char (*f) () = $ac_func;
10361 #endif
10362 #ifdef __cplusplus
10364 #endif
10367 main ()
10369 return f != $ac_func;
10371 return 0;
10373 _ACEOF
10374 rm -f conftest.$ac_objext conftest$ac_exeext
10375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10376 (eval $ac_link) 2>conftest.er1
10377 ac_status=$?
10378 grep -v '^ *+' conftest.er1 >conftest.err
10379 rm -f conftest.er1
10380 cat conftest.err >&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } &&
10383 { ac_try='test -z "$ac_c_werror_flag"
10384 || test ! -s conftest.err'
10385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386 (eval $ac_try) 2>&5
10387 ac_status=$?
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); }; } &&
10390 { ac_try='test -s conftest$ac_exeext'
10391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392 (eval $ac_try) 2>&5
10393 ac_status=$?
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; }; then
10396 eval "$as_ac_var=yes"
10397 else
10398 echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.$ac_ext >&5
10401 eval "$as_ac_var=no"
10403 rm -f conftest.err conftest.$ac_objext \
10404 conftest$ac_exeext conftest.$ac_ext
10406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10408 if test `eval echo '${'$as_ac_var'}'` = yes; then
10409 cat >>confdefs.h <<_ACEOF
10410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10411 _ACEOF
10413 else
10414 case $LIBOBJS in
10415 "snprintf.$ac_objext" | \
10416 *" snprintf.$ac_objext" | \
10417 "snprintf.$ac_objext "* | \
10418 *" snprintf.$ac_objext "* ) ;;
10419 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
10420 esac
10423 done
10425 LIBS="$saved_libs"
10432 for ac_func in gettimeofday isatty kill rename setlocale strsep
10434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10435 echo "$as_me:$LINENO: checking for $ac_func" >&5
10436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10437 if eval "test \"\${$as_ac_var+set}\" = set"; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
10439 else
10440 cat >conftest.$ac_ext <<_ACEOF
10441 /* confdefs.h. */
10442 _ACEOF
10443 cat confdefs.h >>conftest.$ac_ext
10444 cat >>conftest.$ac_ext <<_ACEOF
10445 /* end confdefs.h. */
10446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10448 #define $ac_func innocuous_$ac_func
10450 /* System header to define __stub macros and hopefully few prototypes,
10451 which can conflict with char $ac_func (); below.
10452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10453 <limits.h> exists even on freestanding compilers. */
10455 #ifdef __STDC__
10456 # include <limits.h>
10457 #else
10458 # include <assert.h>
10459 #endif
10461 #undef $ac_func
10463 /* Override any gcc2 internal prototype to avoid an error. */
10464 #ifdef __cplusplus
10465 extern "C"
10467 #endif
10468 /* We use char because int might match the return type of a gcc2
10469 builtin and then its argument prototype would still apply. */
10470 char $ac_func ();
10471 /* The GNU C library defines this for functions which it implements
10472 to always fail with ENOSYS. Some functions are actually named
10473 something starting with __ and the normal name is an alias. */
10474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10475 choke me
10476 #else
10477 char (*f) () = $ac_func;
10478 #endif
10479 #ifdef __cplusplus
10481 #endif
10484 main ()
10486 return f != $ac_func;
10488 return 0;
10490 _ACEOF
10491 rm -f conftest.$ac_objext conftest$ac_exeext
10492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10493 (eval $ac_link) 2>conftest.er1
10494 ac_status=$?
10495 grep -v '^ *+' conftest.er1 >conftest.err
10496 rm -f conftest.er1
10497 cat conftest.err >&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } &&
10500 { ac_try='test -z "$ac_c_werror_flag"
10501 || test ! -s conftest.err'
10502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10504 ac_status=$?
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; } &&
10507 { ac_try='test -s conftest$ac_exeext'
10508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10510 ac_status=$?
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }; }; then
10513 eval "$as_ac_var=yes"
10514 else
10515 echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10518 eval "$as_ac_var=no"
10520 rm -f conftest.err conftest.$ac_objext \
10521 conftest$ac_exeext conftest.$ac_ext
10523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10525 if test `eval echo '${'$as_ac_var'}'` = yes; then
10526 cat >>confdefs.h <<_ACEOF
10527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10528 _ACEOF
10531 done
10533 echo "$as_me:$LINENO: checking for mkstemp" >&5
10534 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
10535 ac_ext=cc
10536 ac_cpp='$CXXCPP $CPPFLAGS'
10537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10542 cat >conftest.$ac_ext <<_ACEOF
10544 /* confdefs.h. */
10545 _ACEOF
10546 cat confdefs.h >>conftest.$ac_ext
10547 cat >>conftest.$ac_ext <<_ACEOF
10548 /* end confdefs.h. */
10551 #include <stdlib.h>
10552 #include <unistd.h>
10553 int (*f) (char *);
10557 main ()
10561 f = mkstemp;
10565 return 0;
10568 _ACEOF
10569 rm -f conftest.$ac_objext conftest$ac_exeext
10570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10571 (eval $ac_link) 2>conftest.er1
10572 ac_status=$?
10573 grep -v '^ *+' conftest.er1 >conftest.err
10574 rm -f conftest.er1
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } &&
10578 { ac_try='test -z "$ac_cxx_werror_flag"
10579 || test ! -s conftest.err'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; } &&
10585 { ac_try='test -s conftest$ac_exeext'
10586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587 (eval $ac_try) 2>&5
10588 ac_status=$?
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; }; then
10591 echo "$as_me:$LINENO: result: yes" >&5
10592 echo "${ECHO_T}yes" >&6
10594 cat >>confdefs.h <<\_ACEOF
10595 #define HAVE_MKSTEMP 1
10596 _ACEOF
10598 else
10599 echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10602 echo "$as_me:$LINENO: result: no" >&5
10603 echo "${ECHO_T}no" >&6
10604 case $LIBOBJS in
10605 "mkstemp.$ac_objext" | \
10606 *" mkstemp.$ac_objext" | \
10607 "mkstemp.$ac_objext "* | \
10608 *" mkstemp.$ac_objext "* ) ;;
10609 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
10610 esac
10613 rm -f conftest.err conftest.$ac_objext \
10614 conftest$ac_exeext conftest.$ac_ext
10615 ac_ext=c
10616 ac_cpp='$CPP $CPPFLAGS'
10617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10621 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
10622 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
10623 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10625 else
10626 cat >conftest.$ac_ext <<_ACEOF
10627 /* confdefs.h. */
10628 _ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h. */
10632 $ac_includes_default
10634 main ()
10636 #ifndef sys_siglist
10637 char *p = (char *) sys_siglist;
10638 #endif
10641 return 0;
10643 _ACEOF
10644 rm -f conftest.$ac_objext
10645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10646 (eval $ac_compile) 2>conftest.er1
10647 ac_status=$?
10648 grep -v '^ *+' conftest.er1 >conftest.err
10649 rm -f conftest.er1
10650 cat conftest.err >&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } &&
10653 { ac_try='test -z "$ac_c_werror_flag"
10654 || test ! -s conftest.err'
10655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656 (eval $ac_try) 2>&5
10657 ac_status=$?
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; } &&
10660 { ac_try='test -s conftest.$ac_objext'
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10663 ac_status=$?
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; }; then
10666 ac_cv_have_decl_sys_siglist=yes
10667 else
10668 echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10671 ac_cv_have_decl_sys_siglist=no
10673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10675 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
10676 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
10677 if test $ac_cv_have_decl_sys_siglist = yes; then
10679 cat >>confdefs.h <<_ACEOF
10680 #define HAVE_DECL_SYS_SIGLIST 1
10681 _ACEOF
10684 else
10685 cat >>confdefs.h <<_ACEOF
10686 #define HAVE_DECL_SYS_SIGLIST 0
10687 _ACEOF
10691 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10692 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
10693 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10695 else
10696 cat >conftest.$ac_ext <<_ACEOF
10697 /* confdefs.h. */
10698 _ACEOF
10699 cat confdefs.h >>conftest.$ac_ext
10700 cat >>conftest.$ac_ext <<_ACEOF
10701 /* end confdefs.h. */
10702 $ac_includes_default
10704 main ()
10706 #ifndef getc_unlocked
10707 char *p = (char *) getc_unlocked;
10708 #endif
10711 return 0;
10713 _ACEOF
10714 rm -f conftest.$ac_objext
10715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10716 (eval $ac_compile) 2>conftest.er1
10717 ac_status=$?
10718 grep -v '^ *+' conftest.er1 >conftest.err
10719 rm -f conftest.er1
10720 cat conftest.err >&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } &&
10723 { ac_try='test -z "$ac_c_werror_flag"
10724 || test ! -s conftest.err'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10727 ac_status=$?
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; } &&
10730 { ac_try='test -s conftest.$ac_objext'
10731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732 (eval $ac_try) 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; }; then
10736 ac_cv_have_decl_getc_unlocked=yes
10737 else
10738 echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10741 ac_cv_have_decl_getc_unlocked=no
10743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10745 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10746 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
10747 if test $ac_cv_have_decl_getc_unlocked = yes; then
10749 cat >>confdefs.h <<_ACEOF
10750 #define HAVE_DECL_GETC_UNLOCKED 1
10751 _ACEOF
10754 else
10755 cat >>confdefs.h <<_ACEOF
10756 #define HAVE_DECL_GETC_UNLOCKED 0
10757 _ACEOF
10764 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10765 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
10766 if test "${am_cv_langinfo_codeset+set}" = set; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 else
10769 cat >conftest.$ac_ext <<_ACEOF
10770 /* confdefs.h. */
10771 _ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10775 #include <langinfo.h>
10777 main ()
10779 char* cs = nl_langinfo(CODESET);
10781 return 0;
10783 _ACEOF
10784 rm -f conftest.$ac_objext conftest$ac_exeext
10785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10786 (eval $ac_link) 2>conftest.er1
10787 ac_status=$?
10788 grep -v '^ *+' conftest.er1 >conftest.err
10789 rm -f conftest.er1
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } &&
10793 { ac_try='test -z "$ac_c_werror_flag"
10794 || test ! -s conftest.err'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; } &&
10800 { ac_try='test -s conftest$ac_exeext'
10801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10802 (eval $ac_try) 2>&5
10803 ac_status=$?
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; }; then
10806 am_cv_langinfo_codeset=yes
10807 else
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10811 am_cv_langinfo_codeset=no
10813 rm -f conftest.err conftest.$ac_objext \
10814 conftest$ac_exeext conftest.$ac_ext
10817 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10818 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
10819 if test $am_cv_langinfo_codeset = yes; then
10821 cat >>confdefs.h <<\_ACEOF
10822 #define HAVE_LANGINFO_CODESET 1
10823 _ACEOF
10828 # checks for compiler characteristics
10829 ac_ext=cc
10830 ac_cpp='$CXXCPP $CPPFLAGS'
10831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10835 echo "$as_me:$LINENO: checking whether ANSI array delete syntax is supported" >&5
10836 echo $ECHO_N "checking whether ANSI array delete syntax is supported... $ECHO_C" >&6
10837 cat >conftest.$ac_ext <<_ACEOF
10839 /* confdefs.h. */
10840 _ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h. */
10846 main ()
10850 char *p = new char[5];
10851 delete [] p;
10855 return 0;
10858 _ACEOF
10859 rm -f conftest.$ac_objext
10860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10861 (eval $ac_compile) 2>conftest.er1
10862 ac_status=$?
10863 grep -v '^ *+' conftest.er1 >conftest.err
10864 rm -f conftest.er1
10865 cat conftest.err >&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } &&
10868 { ac_try='test -z "$ac_cxx_werror_flag"
10869 || test ! -s conftest.err'
10870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10871 (eval $ac_try) 2>&5
10872 ac_status=$?
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; } &&
10875 { ac_try='test -s conftest.$ac_objext'
10876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877 (eval $ac_try) 2>&5
10878 ac_status=$?
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; }; then
10881 echo "$as_me:$LINENO: result: yes" >&5
10882 echo "${ECHO_T}yes" >&6
10883 else
10884 echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.$ac_ext >&5
10887 echo "$as_me:$LINENO: result: no" >&5
10888 echo "${ECHO_T}no" >&6
10890 cat >>confdefs.h <<\_ACEOF
10891 #define ARRAY_DELETE_NEEDS_SIZE 1
10892 _ACEOF
10895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10896 ac_ext=c
10897 ac_cpp='$CPP $CPPFLAGS'
10898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10902 ac_ext=cc
10903 ac_cpp='$CXXCPP $CPPFLAGS'
10904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10908 echo "$as_me:$LINENO: checking traditional preprocessor" >&5
10909 echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
10910 cat >conftest.$ac_ext <<_ACEOF
10912 /* confdefs.h. */
10913 _ACEOF
10914 cat confdefs.h >>conftest.$ac_ext
10915 cat >>conftest.$ac_ext <<_ACEOF
10916 /* end confdefs.h. */
10919 #define name2(a, b) a/**/b
10923 main ()
10927 int name2(foo, bar);
10931 return 0;
10934 _ACEOF
10935 rm -f conftest.$ac_objext
10936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10937 (eval $ac_compile) 2>conftest.er1
10938 ac_status=$?
10939 grep -v '^ *+' conftest.er1 >conftest.err
10940 rm -f conftest.er1
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try='test -z "$ac_cxx_werror_flag"
10945 || test ! -s conftest.err'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; } &&
10951 { ac_try='test -s conftest.$ac_objext'
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; }; then
10957 echo "$as_me:$LINENO: result: yes" >&5
10958 echo "${ECHO_T}yes" >&6
10960 cat >>confdefs.h <<\_ACEOF
10961 #define TRADITIONAL_CPP 1
10962 _ACEOF
10964 else
10965 echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.$ac_ext >&5
10968 echo "$as_me:$LINENO: result: no" >&5
10969 echo "${ECHO_T}no" >&6
10971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10972 ac_ext=c
10973 ac_cpp='$CPP $CPPFLAGS'
10974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10979 # checks for operating system services
10980 echo "$as_me:$LINENO: checking w_coredump" >&5
10981 echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
10982 if test "$cross_compiling" = yes; then
10983 echo "$as_me:$LINENO: result: no" >&5
10984 echo "${ECHO_T}no" >&6
10985 else
10986 cat >conftest.$ac_ext <<_ACEOF
10988 /* confdefs.h. */
10989 _ACEOF
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h. */
10995 #include <sys/types.h>
10996 #include <sys/wait.h>
11000 main ()
11004 main()
11006 #ifdef WCOREFLAG
11007 exit(1);
11008 #else
11009 int i = 0;
11010 ((union wait *)&i)->w_coredump = 1;
11011 exit(i != 0200);
11012 #endif
11017 return 0;
11020 _ACEOF
11021 rm -f conftest$ac_exeext
11022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11023 (eval $ac_link) 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11029 ac_status=$?
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; }; then
11032 echo "$as_me:$LINENO: result: yes" >&5
11033 echo "${ECHO_T}yes" >&6
11035 cat >>confdefs.h <<\_ACEOF
11036 #define WCOREFLAG 0200
11037 _ACEOF
11039 else
11040 echo "$as_me: program exited with status $ac_status" >&5
11041 echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11044 ( exit $ac_status )
11045 echo "$as_me:$LINENO: result: no" >&5
11046 echo "${ECHO_T}no" >&6
11048 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11051 # other random stuff
11052 echo "$as_me:$LINENO: checking default value for grops -b option" >&5
11053 echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
11054 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=0
11055 echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
11056 echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
11058 echo "$as_me:$LINENO: checking default paper size" >&5
11059 echo $ECHO_N "checking default paper size... $ECHO_C" >&6
11060 groff_prefix=$prefix
11061 test "x$prefix" = "xNONE" && groff_prefix=$ac_default_prefix
11062 if test -z "$PAGE"; then
11063 descfile=
11064 if test -r $groff_prefix/share/groff/font/devps/DESC; then
11065 descfile=$groff_prefix/share/groff/font/devps/DESC
11066 elif test -r $groff_prefix/lib/groff/font/devps/DESC; then
11067 descfile=$groff_prefix/lib/groff/font/devps/DESC
11068 else
11069 for f in $groff_prefix/share/groff/*/font/devps/DESC; do
11070 if test -r $f; then
11071 descfile=$f
11072 break
11074 done
11077 if test -n "$descfile"; then
11078 if grep '^paperlength[ ]\+841890' $descfile >/dev/null 2>&1; then
11079 PAGE=A4
11080 elif grep '^papersize[ ]\+[aA]4' $descfile >/dev/null 2>&1; then
11081 PAGE=A4
11086 if test -z "$PAGE"; then
11087 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
11088 /etc/resolv.conf 2>/dev/null`
11089 if test -z "$dom"; then
11090 dom=`(domainname) 2>/dev/null | tr -d '+'`
11091 if test -z "$dom" \
11092 || test "$dom" = '(none)'; then
11093 dom=`(hostname) 2>/dev/null | grep '\.'`
11096 # If the top-level domain is two letters and it's not `us' or `ca'
11097 # then they probably use A4 paper.
11098 case "$dom" in
11099 *.[Uu][Ss]|*.[Cc][Aa])
11101 *.[A-Za-z][A-Za-z])
11102 PAGE=A4 ;;
11103 esac
11106 test -n "$PAGE" || PAGE=letter
11107 if test "x$PAGE" = "xA4"; then
11109 cat >>confdefs.h <<\_ACEOF
11110 #define PAGEA4 1
11111 _ACEOF
11114 echo "$as_me:$LINENO: result: $PAGE" >&5
11115 echo "${ECHO_T}$PAGE" >&6
11117 echo "$as_me:$LINENO: checking for existing troff installation" >&5
11118 echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
11119 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
11120 echo "$as_me:$LINENO: result: yes" >&5
11121 echo "${ECHO_T}yes" >&6
11123 else
11124 echo "$as_me:$LINENO: result: no" >&5
11125 echo "${ECHO_T}no" >&6
11129 echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
11130 echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
11131 sys_tmac_prefix=
11132 sys_tmac_file_prefix=
11133 for d in /usr/share/lib/tmac /usr/lib/tmac; do
11134 for t in "" tmac.; do
11135 for m in an s m; do
11136 f=$d/$t$m
11137 if test -z "$sys_tmac_prefix" \
11138 && test -f $f \
11139 && grep '^\.if' $f >/dev/null 2>&1; then
11140 sys_tmac_prefix=$d/$t
11141 sys_tmac_file_prefix=$t
11143 done
11144 done
11145 done
11146 echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
11147 echo "${ECHO_T}$sys_tmac_prefix" >&6
11150 echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
11151 echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
11152 tmac_wrap=
11153 if test "x$sys_tmac_file_prefix" = "xtmac."; then
11154 for f in $sys_tmac_prefix*; do
11155 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
11156 case "$suff" in
11160 grep "Copyright.*Free Software Foundation" $f >/dev/null \
11161 || tmac_wrap="$tmac_wrap $suff" ;;
11162 esac
11163 done
11164 elif test -n "$sys_tmac_prefix"; then
11165 files=`echo $sys_tmac_prefix*`
11166 grep "\\.so" $files >conftest.sol
11167 for f in $files; do
11168 case "$f" in
11169 ${sys_tmac_prefix}e)
11171 *.me)
11173 */ms.*)
11176 b=`basename $f`
11177 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
11178 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
11180 else
11181 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
11182 case "$suff" in
11183 tmac.*)
11186 tmac_wrap="$tmac_wrap $suff" ;;
11187 esac
11189 esac
11190 done
11191 rm -f conftest.sol
11193 echo "$as_me:$LINENO: result: $tmac_wrap" >&5
11194 echo "${ECHO_T}$tmac_wrap" >&6
11196 echo "$as_me:$LINENO: checking separator character to use in groff search paths" >&5
11197 echo $ECHO_N "checking separator character to use in groff search paths... $ECHO_C" >&6
11198 cp ${srcdir}/src/include/nonposix.h conftest.h
11199 cat >conftest.$ac_ext <<_ACEOF
11201 /* confdefs.h. */
11202 _ACEOF
11203 cat confdefs.h >>conftest.$ac_ext
11204 cat >>conftest.$ac_ext <<_ACEOF
11205 /* end confdefs.h. */
11208 #include <ctype.h>
11209 #include "conftest.h"
11213 main ()
11217 #if PATH_SEP_CHAR == ';'
11218 make an error "Path separator is ';'"
11219 #endif
11223 return 0;
11226 _ACEOF
11227 rm -f conftest.$ac_objext
11228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11229 (eval $ac_compile) 2>conftest.er1
11230 ac_status=$?
11231 grep -v '^ *+' conftest.er1 >conftest.err
11232 rm -f conftest.er1
11233 cat conftest.err >&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } &&
11236 { ac_try='test -z "$ac_c_werror_flag"
11237 || test ! -s conftest.err'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11240 ac_status=$?
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; } &&
11243 { ac_try='test -s conftest.$ac_objext'
11244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245 (eval $ac_try) 2>&5
11246 ac_status=$?
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; }; then
11249 GROFF_PATH_SEPARATOR=":"
11250 else
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11254 GROFF_PATH_SEPARATOR=";"
11256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11257 echo "$as_me:$LINENO: result: $GROFF_PATH_SEPARATOR" >&5
11258 echo "${ECHO_T}$GROFF_PATH_SEPARATOR" >&6
11261 # Check whether --with-alt-gs or --without-alt-gs was given.
11262 if test "${with_alt_gs+set}" = set; then
11263 withval="$with_alt_gs"
11264 ALT_GHOSTSCRIPT_PROGS="$withval"
11265 else
11266 ALT_GHOSTSCRIPT_PROGS="gs gswin32c gsos2"
11271 # Check whether --with-gs or --without-gs was given.
11272 if test "${with_gs+set}" = set; then
11273 withval="$with_gs"
11274 GHOSTSCRIPT=$withval
11275 else
11276 if test -n "$ac_tool_prefix"; then
11277 for ac_prog in $ALT_GHOSTSCRIPT_PROGS
11279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11280 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11281 echo "$as_me:$LINENO: checking for $ac_word" >&5
11282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11283 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
11284 echo $ECHO_N "(cached) $ECHO_C" >&6
11285 else
11286 if test -n "$GHOSTSCRIPT"; then
11287 ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
11288 else
11289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290 for as_dir in $PATH
11292 IFS=$as_save_IFS
11293 test -z "$as_dir" && as_dir=.
11294 for ac_exec_ext in '' $ac_executable_extensions; do
11295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11296 ac_cv_prog_GHOSTSCRIPT="$ac_tool_prefix$ac_prog"
11297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11298 break 2
11300 done
11301 done
11305 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
11306 if test -n "$GHOSTSCRIPT"; then
11307 echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
11308 echo "${ECHO_T}$GHOSTSCRIPT" >&6
11309 else
11310 echo "$as_me:$LINENO: result: no" >&5
11311 echo "${ECHO_T}no" >&6
11314 test -n "$GHOSTSCRIPT" && break
11315 done
11317 if test -z "$GHOSTSCRIPT"; then
11318 ac_ct_GHOSTSCRIPT=$GHOSTSCRIPT
11319 for ac_prog in $ALT_GHOSTSCRIPT_PROGS
11321 # Extract the first word of "$ac_prog", so it can be a program name with args.
11322 set dummy $ac_prog; ac_word=$2
11323 echo "$as_me:$LINENO: checking for $ac_word" >&5
11324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11325 if test "${ac_cv_prog_ac_ct_GHOSTSCRIPT+set}" = set; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11327 else
11328 if test -n "$ac_ct_GHOSTSCRIPT"; then
11329 ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_ct_GHOSTSCRIPT" # Let the user override the test.
11330 else
11331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332 for as_dir in $PATH
11334 IFS=$as_save_IFS
11335 test -z "$as_dir" && as_dir=.
11336 for ac_exec_ext in '' $ac_executable_extensions; do
11337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11338 ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_prog"
11339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11340 break 2
11342 done
11343 done
11347 ac_ct_GHOSTSCRIPT=$ac_cv_prog_ac_ct_GHOSTSCRIPT
11348 if test -n "$ac_ct_GHOSTSCRIPT"; then
11349 echo "$as_me:$LINENO: result: $ac_ct_GHOSTSCRIPT" >&5
11350 echo "${ECHO_T}$ac_ct_GHOSTSCRIPT" >&6
11351 else
11352 echo "$as_me:$LINENO: result: no" >&5
11353 echo "${ECHO_T}no" >&6
11356 test -n "$ac_ct_GHOSTSCRIPT" && break
11357 done
11359 if test "x$ac_ct_GHOSTSCRIPT" = x; then
11360 GHOSTSCRIPT="missing"
11361 else
11362 if test "$build" != "$host"; then
11363 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11364 whose name does not start with the host triplet. If you think this
11365 configuration is useful to you, please write to autoconf@gnu.org." >&5
11366 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11367 whose name does not start with the host triplet. If you think this
11368 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11370 GHOSTSCRIPT=$ac_ct_GHOSTSCRIPT
11375 test "$GHOSTSCRIPT" = "no" && GHOSTSCRIPT=missing
11377 make_html=html
11378 make_install_html=install_html
11380 missing=
11381 # Extract the first word of "pnmcut", so it can be a program name with args.
11382 set dummy pnmcut; ac_word=$2
11383 echo "$as_me:$LINENO: checking for $ac_word" >&5
11384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11385 if test "${ac_cv_prog_pnmcut+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388 if test -n "$pnmcut"; then
11389 ac_cv_prog_pnmcut="$pnmcut" # Let the user override the test.
11390 else
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11394 IFS=$as_save_IFS
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11398 ac_cv_prog_pnmcut="found"
11399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11400 break 2
11402 done
11403 done
11405 test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut="missing"
11408 pnmcut=$ac_cv_prog_pnmcut
11409 if test -n "$pnmcut"; then
11410 echo "$as_me:$LINENO: result: $pnmcut" >&5
11411 echo "${ECHO_T}$pnmcut" >&6
11412 else
11413 echo "$as_me:$LINENO: result: no" >&5
11414 echo "${ECHO_T}no" >&6
11417 if test $pnmcut = missing; then
11418 missing="$missing \`pnmcut'"
11419 fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
11420 set dummy pnmcrop; ac_word=$2
11421 echo "$as_me:$LINENO: checking for $ac_word" >&5
11422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11423 if test "${ac_cv_prog_pnmcrop+set}" = set; then
11424 echo $ECHO_N "(cached) $ECHO_C" >&6
11425 else
11426 if test -n "$pnmcrop"; then
11427 ac_cv_prog_pnmcrop="$pnmcrop" # Let the user override the test.
11428 else
11429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11430 for as_dir in $PATH
11432 IFS=$as_save_IFS
11433 test -z "$as_dir" && as_dir=.
11434 for ac_exec_ext in '' $ac_executable_extensions; do
11435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11436 ac_cv_prog_pnmcrop="found"
11437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11438 break 2
11440 done
11441 done
11443 test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop="missing"
11446 pnmcrop=$ac_cv_prog_pnmcrop
11447 if test -n "$pnmcrop"; then
11448 echo "$as_me:$LINENO: result: $pnmcrop" >&5
11449 echo "${ECHO_T}$pnmcrop" >&6
11450 else
11451 echo "$as_me:$LINENO: result: no" >&5
11452 echo "${ECHO_T}no" >&6
11455 if test $pnmcrop = missing; then
11456 missing="$missing \`pnmcrop'"
11457 fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
11458 set dummy pnmtopng; ac_word=$2
11459 echo "$as_me:$LINENO: checking for $ac_word" >&5
11460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11461 if test "${ac_cv_prog_pnmtopng+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11463 else
11464 if test -n "$pnmtopng"; then
11465 ac_cv_prog_pnmtopng="$pnmtopng" # Let the user override the test.
11466 else
11467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11468 for as_dir in $PATH
11470 IFS=$as_save_IFS
11471 test -z "$as_dir" && as_dir=.
11472 for ac_exec_ext in '' $ac_executable_extensions; do
11473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11474 ac_cv_prog_pnmtopng="found"
11475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11476 break 2
11478 done
11479 done
11481 test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng="missing"
11484 pnmtopng=$ac_cv_prog_pnmtopng
11485 if test -n "$pnmtopng"; then
11486 echo "$as_me:$LINENO: result: $pnmtopng" >&5
11487 echo "${ECHO_T}$pnmtopng" >&6
11488 else
11489 echo "$as_me:$LINENO: result: no" >&5
11490 echo "${ECHO_T}no" >&6
11493 if test $pnmtopng = missing; then
11494 missing="$missing \`pnmtopng'"
11495 fi;# Extract the first word of "psselect", so it can be a program name with args.
11496 set dummy psselect; ac_word=$2
11497 echo "$as_me:$LINENO: checking for $ac_word" >&5
11498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11499 if test "${ac_cv_prog_psselect+set}" = set; then
11500 echo $ECHO_N "(cached) $ECHO_C" >&6
11501 else
11502 if test -n "$psselect"; then
11503 ac_cv_prog_psselect="$psselect" # Let the user override the test.
11504 else
11505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11506 for as_dir in $PATH
11508 IFS=$as_save_IFS
11509 test -z "$as_dir" && as_dir=.
11510 for ac_exec_ext in '' $ac_executable_extensions; do
11511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11512 ac_cv_prog_psselect="found"
11513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11514 break 2
11516 done
11517 done
11519 test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect="missing"
11522 psselect=$ac_cv_prog_psselect
11523 if test -n "$psselect"; then
11524 echo "$as_me:$LINENO: result: $psselect" >&5
11525 echo "${ECHO_T}$psselect" >&6
11526 else
11527 echo "$as_me:$LINENO: result: no" >&5
11528 echo "${ECHO_T}no" >&6
11531 if test $psselect = missing; then
11532 missing="$missing \`psselect'"
11533 fi;# Extract the first word of "pnmtops", so it can be a program name with args.
11534 set dummy pnmtops; ac_word=$2
11535 echo "$as_me:$LINENO: checking for $ac_word" >&5
11536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11537 if test "${ac_cv_prog_pnmtops+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11539 else
11540 if test -n "$pnmtops"; then
11541 ac_cv_prog_pnmtops="$pnmtops" # Let the user override the test.
11542 else
11543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544 for as_dir in $PATH
11546 IFS=$as_save_IFS
11547 test -z "$as_dir" && as_dir=.
11548 for ac_exec_ext in '' $ac_executable_extensions; do
11549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11550 ac_cv_prog_pnmtops="found"
11551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11552 break 2
11554 done
11555 done
11557 test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops="missing"
11560 pnmtops=$ac_cv_prog_pnmtops
11561 if test -n "$pnmtops"; then
11562 echo "$as_me:$LINENO: result: $pnmtops" >&5
11563 echo "${ECHO_T}$pnmtops" >&6
11564 else
11565 echo "$as_me:$LINENO: result: no" >&5
11566 echo "${ECHO_T}no" >&6
11569 if test $pnmtops = missing; then
11570 missing="$missing \`pnmtops'"
11573 test "$GHOSTSCRIPT" = "missing" && missing="$missing \`gs'"
11575 if test -n "$missing"; then
11576 plural=`set $missing; test $# -gt 1 && echo s`
11577 missing=`set $missing
11578 missing=""
11579 while test $# -gt 0
11581 case $# in
11582 1) missing="$missing$1" ;;
11583 2) missing="$missing$1 and " ;;
11584 *) missing="$missing$1, " ;;
11585 esac
11586 shift
11587 done
11588 echo $missing`
11590 make_html=
11591 make_install_html=
11593 { echo "$as_me:$LINENO: WARNING: missing program$plural:
11595 The program$plural
11596 $missing
11597 cannot be found in the PATH.
11598 Consequently, groff's HTML backend (grohtml) will not work properly;
11599 therefore, it will neither be possible to prepare, nor to install,
11600 documentation in HTML format.
11601 " >&5
11602 echo "$as_me: WARNING: missing program$plural:
11604 The program$plural
11605 $missing
11606 cannot be found in the PATH.
11607 Consequently, groff's HTML backend (grohtml) will not work properly;
11608 therefore, it will neither be possible to prepare, nor to install,
11609 documentation in HTML format.
11610 " >&2;}
11616 # Check whether --with-alt-awk or --without-alt-awk was given.
11617 if test "${with_alt_awk+set}" = set; then
11618 withval="$with_alt_awk"
11619 ALT_AWK_PROGS="$withval"
11620 else
11621 ALT_AWK_PROGS="gawk mawk nawk awk"
11626 # Check whether --with-awk or --without-awk was given.
11627 if test "${with_awk+set}" = set; then
11628 withval="$with_awk"
11629 AWK=$withval
11630 else
11631 if test -n "$ac_tool_prefix"; then
11632 for ac_prog in $ALT_AWK_PROGS
11634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11636 echo "$as_me:$LINENO: checking for $ac_word" >&5
11637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11638 if test "${ac_cv_prog_AWK+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11641 if test -n "$AWK"; then
11642 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11643 else
11644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645 for as_dir in $PATH
11647 IFS=$as_save_IFS
11648 test -z "$as_dir" && as_dir=.
11649 for ac_exec_ext in '' $ac_executable_extensions; do
11650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11651 ac_cv_prog_AWK="$ac_tool_prefix$ac_prog"
11652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11653 break 2
11655 done
11656 done
11660 AWK=$ac_cv_prog_AWK
11661 if test -n "$AWK"; then
11662 echo "$as_me:$LINENO: result: $AWK" >&5
11663 echo "${ECHO_T}$AWK" >&6
11664 else
11665 echo "$as_me:$LINENO: result: no" >&5
11666 echo "${ECHO_T}no" >&6
11669 test -n "$AWK" && break
11670 done
11672 if test -z "$AWK"; then
11673 ac_ct_AWK=$AWK
11674 for ac_prog in $ALT_AWK_PROGS
11676 # Extract the first word of "$ac_prog", so it can be a program name with args.
11677 set dummy $ac_prog; ac_word=$2
11678 echo "$as_me:$LINENO: checking for $ac_word" >&5
11679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11680 if test "${ac_cv_prog_ac_ct_AWK+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683 if test -n "$ac_ct_AWK"; then
11684 ac_cv_prog_ac_ct_AWK="$ac_ct_AWK" # Let the user override the test.
11685 else
11686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11687 for as_dir in $PATH
11689 IFS=$as_save_IFS
11690 test -z "$as_dir" && as_dir=.
11691 for ac_exec_ext in '' $ac_executable_extensions; do
11692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11693 ac_cv_prog_ac_ct_AWK="$ac_prog"
11694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11695 break 2
11697 done
11698 done
11702 ac_ct_AWK=$ac_cv_prog_ac_ct_AWK
11703 if test -n "$ac_ct_AWK"; then
11704 echo "$as_me:$LINENO: result: $ac_ct_AWK" >&5
11705 echo "${ECHO_T}$ac_ct_AWK" >&6
11706 else
11707 echo "$as_me:$LINENO: result: no" >&5
11708 echo "${ECHO_T}no" >&6
11711 test -n "$ac_ct_AWK" && break
11712 done
11714 if test "x$ac_ct_AWK" = x; then
11715 AWK="missing"
11716 else
11717 if test "$build" != "$host"; then
11718 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11719 whose name does not start with the host triplet. If you think this
11720 configuration is useful to you, please write to autoconf@gnu.org." >&5
11721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11722 whose name does not start with the host triplet. If you think this
11723 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11725 AWK=$ac_ct_AWK
11730 test "$AWK" = "no" && AWK=missing
11734 make_pdfdoc=pdfdoc
11735 make_install_pdfdoc=install_pdfdoc
11737 missing=""
11738 test "$AWK" = missing && missing="\`awk'"
11739 test "$GHOSTSCRIPT" = missing && missing="$missing \`gs'"
11740 if test -n "$missing"; then
11741 plural=`set $missing; test $# -eq 2 && echo s`
11742 test x$plural = xs \
11743 && missing=`set $missing; echo "$1 and $2"` \
11744 || missing=`echo $missing`
11746 make_pdfdoc=
11747 make_install_pdfdoc=
11749 { echo "$as_me:$LINENO: WARNING: missing program$plural:
11751 The program$plural $missing cannot be found in the PATH.
11752 Consequently, groff's PDF formatter (pdfroff) will not work properly;
11753 therefore, it will neither be possible to prepare, nor to install,
11754 documentation in PDF format.
11755 " >&5
11756 echo "$as_me: WARNING: missing program$plural:
11758 The program$plural $missing cannot be found in the PATH.
11759 Consequently, groff's PDF formatter (pdfroff) will not work properly;
11760 therefore, it will neither be possible to prepare, nor to install,
11761 documentation in PDF format.
11762 " >&2;}
11767 echo "$as_me:$LINENO: checking whether pnmtops can handle the -nosetpage option" >&5
11768 echo $ECHO_N "checking whether pnmtops can handle the -nosetpage option... $ECHO_C" >&6
11769 if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1 ; then
11770 echo "$as_me:$LINENO: result: yes" >&5
11771 echo "${ECHO_T}yes" >&6
11772 pnmtops_nosetpage="pnmtops -nosetpage"
11773 else
11774 echo "$as_me:$LINENO: result: no" >&5
11775 echo "${ECHO_T}no" >&6
11776 pnmtops_nosetpage="pnmtops"
11780 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
11781 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
11782 if test "${ac_cv_gnu_library_2_1+set}" = set; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11784 else
11785 cat >conftest.$ac_ext <<_ACEOF
11786 /* confdefs.h. */
11787 _ACEOF
11788 cat confdefs.h >>conftest.$ac_ext
11789 cat >>conftest.$ac_ext <<_ACEOF
11790 /* end confdefs.h. */
11792 #include <features.h>
11793 #ifdef __GNU_LIBRARY__
11794 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11795 Lucky GNU user
11796 #endif
11797 #endif
11799 _ACEOF
11800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11801 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
11802 ac_cv_gnu_library_2_1=yes
11803 else
11804 ac_cv_gnu_library_2_1=no
11806 rm -f conftest*
11811 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
11812 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
11814 GLIBC21="$ac_cv_gnu_library_2_1"
11818 ac_config_files="$ac_config_files stamp-h"
11820 ac_config_files="$ac_config_files Makefile doc/Makefile src/utils/xtotroff/Makefile"
11822 ac_config_files="$ac_config_files contrib/gdiffmk/tests/runtests"
11824 ac_config_files="$ac_config_files test-groff"
11826 cat >confcache <<\_ACEOF
11827 # This file is a shell script that caches the results of configure
11828 # tests run on this system so they can be shared between configure
11829 # scripts and configure runs, see configure's option --config-cache.
11830 # It is not useful on other systems. If it contains results you don't
11831 # want to keep, you may remove or edit it.
11833 # config.status only pays attention to the cache file if you give it
11834 # the --recheck option to rerun configure.
11836 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11837 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11838 # following values.
11840 _ACEOF
11842 # The following way of writing the cache mishandles newlines in values,
11843 # but we know of no workaround that is simple, portable, and efficient.
11844 # So, don't put newlines in cache variables' values.
11845 # Ultrix sh set writes to stderr and can't be redirected directly,
11846 # and sets the high bit in the cache file unless we assign to the vars.
11848 (set) 2>&1 |
11849 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11850 *ac_space=\ *)
11851 # `set' does not quote correctly, so add quotes (double-quote
11852 # substitution turns \\\\ into \\, and sed turns \\ into \).
11853 sed -n \
11854 "s/'/'\\\\''/g;
11855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11858 # `set' quotes correctly as required by POSIX, so do not add quotes.
11859 sed -n \
11860 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11862 esac;
11864 sed '
11865 t clear
11866 : clear
11867 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11868 t end
11869 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11870 : end' >>confcache
11871 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11872 if test -w $cache_file; then
11873 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11874 cat confcache >$cache_file
11875 else
11876 echo "not updating unwritable cache $cache_file"
11879 rm -f confcache
11881 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11882 # Let make expand exec_prefix.
11883 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11885 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11886 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11887 # trailing colons and then remove the whole line if VPATH becomes empty
11888 # (actually we leave an empty line to preserve line numbers).
11889 if test "x$srcdir" = x.; then
11890 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11891 s/:*\$(srcdir):*/:/;
11892 s/:*\${srcdir}:*/:/;
11893 s/:*@srcdir@:*/:/;
11894 s/^\([^=]*=[ ]*\):*/\1/;
11895 s/:*$//;
11896 s/^[^=]*=[ ]*$//;
11900 DEFS=-DHAVE_CONFIG_H
11902 ac_libobjs=
11903 ac_ltlibobjs=
11904 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11905 # 1. Remove the extension, and $U if already installed.
11906 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11907 ac_i=`echo "$ac_i" | sed "$ac_script"`
11908 # 2. Add them.
11909 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11910 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11911 done
11912 LIBOBJS=$ac_libobjs
11914 LTLIBOBJS=$ac_ltlibobjs
11918 : ${CONFIG_STATUS=./config.status}
11919 ac_clean_files_save=$ac_clean_files
11920 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11921 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11922 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11923 cat >$CONFIG_STATUS <<_ACEOF
11924 #! $SHELL
11925 # Generated by $as_me.
11926 # Run this file to recreate the current configuration.
11927 # Compiler output produced by configure, useful for debugging
11928 # configure, is in config.log if it exists.
11930 debug=false
11931 ac_cs_recheck=false
11932 ac_cs_silent=false
11933 SHELL=\${CONFIG_SHELL-$SHELL}
11934 _ACEOF
11936 cat >>$CONFIG_STATUS <<\_ACEOF
11937 ## --------------------- ##
11938 ## M4sh Initialization. ##
11939 ## --------------------- ##
11941 # Be Bourne compatible
11942 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11943 emulate sh
11944 NULLCMD=:
11945 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11946 # is contrary to our usage. Disable this feature.
11947 alias -g '${1+"$@"}'='"$@"'
11948 setopt NO_GLOB_SUBST
11949 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11950 set -o posix
11952 BIN_SH=xpg4; export BIN_SH # for Tru64
11953 DUALCASE=1; export DUALCASE # for MKS sh
11956 # PATH needs CR
11957 # Avoid depending upon Character Ranges.
11958 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11959 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11960 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11961 as_cr_digits='0123456789'
11962 as_cr_alnum=$as_cr_Letters$as_cr_digits
11964 # The user is always right.
11965 if test "${PATH_SEPARATOR+set}" != set; then
11966 echo "#! /bin/sh" >conf$$.sh
11967 echo "exit 0" >>conf$$.sh
11968 chmod +x conf$$.sh
11969 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11970 PATH_SEPARATOR=';'
11971 else
11972 PATH_SEPARATOR=:
11974 rm -f conf$$.sh
11977 # Support unset when possible.
11978 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11979 as_unset=unset
11980 else
11981 as_unset=false
11985 # Find who we are. Look in the path if we contain no path at all
11986 # relative or not.
11987 case $0 in
11988 *[\\/]* ) as_myself=$0 ;;
11989 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990 for as_dir in $PATH
11992 IFS=$as_save_IFS
11993 test -z "$as_dir" && as_dir=.
11994 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11995 done
11998 esac
11999 # We did not find ourselves, most probably we were run as `sh COMMAND'
12000 # in which case we are not to be found in the path.
12001 if test "x$as_myself" = x; then
12002 as_myself=$0
12004 if test ! -f "$as_myself"; then
12005 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute file name" >&5
12006 echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2;}
12007 { (exit 1); exit 1; }; }
12010 # Work around bugs in pre-3.0 UWIN ksh.
12011 for as_var in ENV MAIL MAILPATH
12012 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12013 done
12014 PS1='$ '
12015 PS2='> '
12016 PS4='+ '
12018 # NLS nuisances.
12019 for as_var in \
12020 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12021 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12022 LC_TELEPHONE LC_TIME
12024 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12025 eval $as_var=C; export $as_var
12026 else
12027 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12029 done
12031 # Required to use basename.
12032 if expr a : '\(a\)' >/dev/null 2>&1; then
12033 as_expr=expr
12034 else
12035 as_expr=false
12038 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12039 as_basename=basename
12040 else
12041 as_basename=false
12045 # Name of the executable.
12046 as_me=`$as_basename "$0" ||
12047 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12048 X"$0" : 'X\(//\)$' \| \
12049 X"$0" : 'X\(/\)$' \| \
12050 . : '\(.\)' 2>/dev/null ||
12051 echo X/"$0" |
12052 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12053 /^X\/\(\/\/\)$/{ s//\1/; q; }
12054 /^X\/\(\/\).*/{ s//\1/; q; }
12055 s/.*/./; q'`
12060 as_lineno_1=$LINENO
12061 as_lineno_2=$LINENO
12062 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12063 test "x$as_lineno_1" != "x$as_lineno_2" &&
12064 test "x$as_lineno_3" = "x$as_lineno_2" || {
12066 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12067 # uniformly replaced by the line number. The first 'sed' inserts a
12068 # line-number line after each line using $LINENO; the second 'sed'
12069 # does the real work. The second script uses 'N' to pair each
12070 # line-number line with the line containing $LINENO, and appends
12071 # trailing '-' during substitution so that $LINENO is not a special
12072 # case at line end.
12073 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12074 # scripts with optimization help from Paolo Bonzini. Blame Lee
12075 # E. McMahon (1931-1989) for sed's syntax. :-)
12076 sed -n '
12078 /[$]LINENO/=
12079 ' <$as_myself |
12080 sed '
12081 s,[$]LINENO.*,&-,
12082 t lineno
12084 : lineno
12086 : loop
12087 s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
12088 t loop
12089 s,-\n.*,,
12090 ' >$as_me.lineno &&
12091 chmod +x $as_me.lineno ||
12092 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12093 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12094 { (exit 1); exit 1; }; }
12096 # Don't try to exec as it changes $[0], causing all sort of problems
12097 # (the dirname of $[0] is not the place where we might find the
12098 # original and so on. Autoconf is especially sensible to this).
12099 . ./$as_me.lineno
12100 # Exit status is that of the last command.
12101 exit
12105 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12106 *c*,-n*) ECHO_N= ECHO_C='
12107 ' ECHO_T=' ' ;;
12108 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12109 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12110 esac
12112 if expr a : '\(a\)' >/dev/null 2>&1; then
12113 as_expr=expr
12114 else
12115 as_expr=false
12118 rm -f conf$$ conf$$.exe conf$$.file
12119 echo >conf$$.file
12120 if ln -s conf$$.file conf$$ 2>/dev/null; then
12121 # We could just check for DJGPP; but this test a) works b) is more generic
12122 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12123 if test -f conf$$.exe; then
12124 # Don't use ln at all; we don't have any links
12125 as_ln_s='cp -p'
12126 else
12127 as_ln_s='ln -s'
12129 elif ln conf$$.file conf$$ 2>/dev/null; then
12130 as_ln_s=ln
12131 else
12132 as_ln_s='cp -p'
12134 rm -f conf$$ conf$$.exe conf$$.file
12136 if mkdir -p . 2>/dev/null; then
12137 as_mkdir_p=:
12138 else
12139 test -d ./-p && rmdir ./-p
12140 as_mkdir_p=false
12143 as_executable_p="test -f"
12145 # Sed expression to map a string onto a valid CPP name.
12146 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12148 # Sed expression to map a string onto a valid variable name.
12149 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12152 # IFS
12153 # We need space, tab and new line, in precisely that order.
12154 as_nl='
12156 IFS=" $as_nl"
12158 # CDPATH.
12159 $as_unset CDPATH
12161 exec 6>&1
12163 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12164 # report actual input values of CONFIG_FILES etc. instead of their
12165 # values after options handling. Logging --version etc. is OK.
12166 exec 5>>config.log
12168 echo
12169 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12170 ## Running $as_me. ##
12171 _ASBOX
12172 } >&5
12173 cat >&5 <<_CSEOF
12175 This file was extended by $as_me, which was
12176 generated by GNU Autoconf 2.59b. Invocation command line was
12178 CONFIG_FILES = $CONFIG_FILES
12179 CONFIG_HEADERS = $CONFIG_HEADERS
12180 CONFIG_LINKS = $CONFIG_LINKS
12181 CONFIG_COMMANDS = $CONFIG_COMMANDS
12182 $ $0 $@
12184 _CSEOF
12185 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12186 echo >&5
12187 _ACEOF
12189 # Files that config.status was made for.
12190 if test -n "$ac_config_files"; then
12191 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12194 if test -n "$ac_config_headers"; then
12195 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12198 if test -n "$ac_config_links"; then
12199 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12202 if test -n "$ac_config_commands"; then
12203 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12206 cat >>$CONFIG_STATUS <<\_ACEOF
12208 ac_cs_usage="\
12209 \`$as_me' instantiates files from templates according to the
12210 current configuration.
12212 Usage: $0 [OPTIONS] [FILE]...
12214 -h, --help print this help, then exit
12215 -V, --version print version number, then exit
12216 -q, --quiet do not print progress messages
12217 -d, --debug don't remove temporary files
12218 --recheck update $as_me by reconfiguring in the same conditions
12219 --file=FILE[:TEMPLATE]
12220 instantiate the configuration file FILE
12221 --header=FILE[:TEMPLATE]
12222 instantiate the configuration header FILE
12224 Configuration files:
12225 $config_files
12227 Configuration headers:
12228 $config_headers
12230 Report bugs to <bug-autoconf@gnu.org>."
12231 _ACEOF
12233 cat >>$CONFIG_STATUS <<_ACEOF
12234 ac_cs_version="\\
12235 config.status
12236 configured by $0, generated by GNU Autoconf 2.59b,
12237 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12239 Copyright (C) 2004 Free Software Foundation, Inc.
12240 This config.status script is free software; the Free Software Foundation
12241 gives unlimited permission to copy, distribute and modify it."
12242 srcdir=$srcdir
12243 INSTALL="$INSTALL"
12244 _ACEOF
12246 cat >>$CONFIG_STATUS <<\_ACEOF
12247 # If no file are specified by the user, then we need to provide default
12248 # value. By we need to know if files were specified by the user.
12249 ac_need_defaults=:
12250 while test $# != 0
12252 case $1 in
12253 --*=*)
12254 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12255 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12256 ac_shift=:
12259 ac_option=$1
12260 ac_optarg=$2
12261 ac_shift=shift
12263 *) # This is not an option, so the user has probably given explicit
12264 # arguments.
12265 ac_option=$1
12266 ac_need_defaults=false;;
12267 esac
12269 case $ac_option in
12270 # Handling of the options.
12271 _ACEOF
12272 cat >>$CONFIG_STATUS <<\_ACEOF
12273 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12274 ac_cs_recheck=: ;;
12275 --version | --vers* | -V )
12276 echo "$ac_cs_version"; exit 0 ;;
12277 --he | --h)
12278 # Conflict between --help and --header
12279 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12280 Try \`$0 --help' for more information." >&5
12281 echo "$as_me: error: ambiguous option: $1
12282 Try \`$0 --help' for more information." >&2;}
12283 { (exit 1); exit 1; }; };;
12284 --help | --hel | -h )
12285 echo "$ac_cs_usage"; exit 0 ;;
12286 --debug | --d* | -d )
12287 debug=: ;;
12288 --file | --fil | --fi | --f )
12289 $ac_shift
12290 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12291 ac_need_defaults=false;;
12292 --header | --heade | --head | --hea )
12293 $ac_shift
12294 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12295 ac_need_defaults=false;;
12296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12297 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12298 ac_cs_silent=: ;;
12300 # This is an error.
12301 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12302 Try \`$0 --help' for more information." >&5
12303 echo "$as_me: error: unrecognized option: $1
12304 Try \`$0 --help' for more information." >&2;}
12305 { (exit 1); exit 1; }; } ;;
12307 *) ac_config_targets="$ac_config_targets $1" ;;
12309 esac
12310 shift
12311 done
12313 ac_configure_extra_args=
12315 if $ac_cs_silent; then
12316 exec 6>/dev/null
12317 ac_configure_extra_args="$ac_configure_extra_args --silent"
12320 _ACEOF
12321 cat >>$CONFIG_STATUS <<_ACEOF
12322 if \$ac_cs_recheck; then
12323 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12324 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12327 _ACEOF
12333 cat >>$CONFIG_STATUS <<\_ACEOF
12334 for ac_config_target in $ac_config_targets
12336 case "$ac_config_target" in
12337 # Handling of arguments.
12338 "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
12339 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12340 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12341 "src/utils/xtotroff/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xtotroff/Makefile" ;;
12342 "contrib/gdiffmk/tests/runtests" ) CONFIG_FILES="$CONFIG_FILES contrib/gdiffmk/tests/runtests" ;;
12343 "test-groff" ) CONFIG_FILES="$CONFIG_FILES test-groff" ;;
12344 "src/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
12345 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12346 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12347 { (exit 1); exit 1; }; };;
12348 esac
12349 done
12351 # If the user did not use the arguments to specify the items to instantiate,
12352 # then the envvar interface is used. Set only those that are not.
12353 # We use the long form for the default assignment because of an extremely
12354 # bizarre bug on SunOS 4.1.3.
12355 if $ac_need_defaults; then
12356 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12357 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12360 # Have a temporary directory for convenience. Make it in the build tree
12361 # simply because there is no reason to put it here, and in addition,
12362 # creating and moving files from /tmp can sometimes cause problems.
12363 # Create a temporary directory, and hook for its removal unless debugging.
12364 $debug ||
12366 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
12367 trap '{ (exit 1); exit 1; }' 1 2 13 15
12370 # Create a (secure) tmp directory for tmp files.
12373 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12374 test -n "$tmp" && test -d "$tmp"
12375 } ||
12377 tmp=./confstat$$-$RANDOM
12378 (umask 077 && mkdir $tmp)
12379 } ||
12381 echo "$me: cannot create a temporary directory in ." >&2
12382 { (exit 1); exit 1; }
12385 _ACEOF
12387 cat >>$CONFIG_STATUS <<_ACEOF
12390 # CONFIG_FILES section.
12393 # No need to generate the scripts if there are no CONFIG_FILES.
12394 # This happens for instance when ./config.status config.h
12395 if test -n "\$CONFIG_FILES"; then
12396 # Protect against being on the right side of a sed subst in config.status.
12397 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12398 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12399 s,@SHELL@,$SHELL,;t t
12400 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12401 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12402 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12403 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12404 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12405 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12406 s,@exec_prefix@,$exec_prefix,;t t
12407 s,@prefix@,$prefix,;t t
12408 s,@program_transform_name@,$program_transform_name,;t t
12409 s,@bindir@,$bindir,;t t
12410 s,@sbindir@,$sbindir,;t t
12411 s,@libexecdir@,$libexecdir,;t t
12412 s,@datadir@,$datadir,;t t
12413 s,@sysconfdir@,$sysconfdir,;t t
12414 s,@sharedstatedir@,$sharedstatedir,;t t
12415 s,@localstatedir@,$localstatedir,;t t
12416 s,@libdir@,$libdir,;t t
12417 s,@includedir@,$includedir,;t t
12418 s,@oldincludedir@,$oldincludedir,;t t
12419 s,@infodir@,$infodir,;t t
12420 s,@mandir@,$mandir,;t t
12421 s,@build_alias@,$build_alias,;t t
12422 s,@host_alias@,$host_alias,;t t
12423 s,@target_alias@,$target_alias,;t t
12424 s,@DEFS@,$DEFS,;t t
12425 s,@ECHO_C@,$ECHO_C,;t t
12426 s,@ECHO_N@,$ECHO_N,;t t
12427 s,@ECHO_T@,$ECHO_T,;t t
12428 s,@LIBS@,$LIBS,;t t
12429 s,@CC@,$CC,;t t
12430 s,@CFLAGS@,$CFLAGS,;t t
12431 s,@LDFLAGS@,$LDFLAGS,;t t
12432 s,@CPPFLAGS@,$CPPFLAGS,;t t
12433 s,@ac_ct_CC@,$ac_ct_CC,;t t
12434 s,@EXEEXT@,$EXEEXT,;t t
12435 s,@OBJEXT@,$OBJEXT,;t t
12436 s,@CXX@,$CXX,;t t
12437 s,@CXXFLAGS@,$CXXFLAGS,;t t
12438 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12439 s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
12440 s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
12441 s,@CPP@,$CPP,;t t
12442 s,@X_CFLAGS@,$X_CFLAGS,;t t
12443 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
12444 s,@X_LIBS@,$X_LIBS,;t t
12445 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
12446 s,@XDEVDIRS@,$XDEVDIRS,;t t
12447 s,@XPROGDIRS@,$XPROGDIRS,;t t
12448 s,@XLIBDIRS@,$XLIBDIRS,;t t
12449 s,@appresdir@,$appresdir,;t t
12450 s,@LPR@,$LPR,;t t
12451 s,@LP@,$LP,;t t
12452 s,@LPQ@,$LPQ,;t t
12453 s,@PSPRINT@,$PSPRINT,;t t
12454 s,@DVIPRINT@,$DVIPRINT,;t t
12455 s,@GREP@,$GREP,;t t
12456 s,@EGREP@,$EGREP,;t t
12457 s,@PERLPATH@,$PERLPATH,;t t
12458 s,@YACC@,$YACC,;t t
12459 s,@MAKEINFO@,$MAKEINFO,;t t
12460 s,@RANLIB@,$RANLIB,;t t
12461 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12462 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
12463 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12464 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12465 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12466 s,@LN_S@,$LN_S,;t t
12467 s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
12468 s,@LIBC@,$LIBC,;t t
12469 s,@LIBM@,$LIBM,;t t
12470 s,@build@,$build,;t t
12471 s,@build_cpu@,$build_cpu,;t t
12472 s,@build_vendor@,$build_vendor,;t t
12473 s,@build_os@,$build_os,;t t
12474 s,@host@,$host,;t t
12475 s,@host_cpu@,$host_cpu,;t t
12476 s,@host_vendor@,$host_vendor,;t t
12477 s,@host_os@,$host_os,;t t
12478 s,@LIBICONV@,$LIBICONV,;t t
12479 s,@LTLIBICONV@,$LTLIBICONV,;t t
12480 s,@LIBOBJS@,$LIBOBJS,;t t
12481 s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
12482 s,@PAGE@,$PAGE,;t t
12483 s,@g@,$g,;t t
12484 s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
12485 s,@tmac_wrap@,$tmac_wrap,;t t
12486 s,@GROFF_PATH_SEPARATOR@,$GROFF_PATH_SEPARATOR,;t t
12487 s,@ALT_GHOSTSCRIPT_PROGS@,$ALT_GHOSTSCRIPT_PROGS,;t t
12488 s,@GHOSTSCRIPT@,$GHOSTSCRIPT,;t t
12489 s,@ac_ct_GHOSTSCRIPT@,$ac_ct_GHOSTSCRIPT,;t t
12490 s,@pnmcut@,$pnmcut,;t t
12491 s,@pnmcrop@,$pnmcrop,;t t
12492 s,@pnmtopng@,$pnmtopng,;t t
12493 s,@psselect@,$psselect,;t t
12494 s,@pnmtops@,$pnmtops,;t t
12495 s,@make_html@,$make_html,;t t
12496 s,@make_install_html@,$make_install_html,;t t
12497 s,@ALT_AWK_PROGS@,$ALT_AWK_PROGS,;t t
12498 s,@AWK@,$AWK,;t t
12499 s,@ac_ct_AWK@,$ac_ct_AWK,;t t
12500 s,@make_pdfdoc@,$make_pdfdoc,;t t
12501 s,@make_install_pdfdoc@,$make_install_pdfdoc,;t t
12502 s,@pnmtops_nosetpage@,$pnmtops_nosetpage,;t t
12503 s,@GLIBC21@,$GLIBC21,;t t
12504 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12505 CEOF
12507 _ACEOF
12509 cat >>$CONFIG_STATUS <<\_ACEOF
12510 # Split the substitutions into bite-sized pieces for seds with
12511 # small command number limits, like on Digital OSF/1 and HP-UX.
12512 ac_max_sed_lines=48
12513 ac_sed_frag=1 # Number of current file.
12514 ac_beg=1 # First line for current file.
12515 ac_end=$ac_max_sed_lines # Line after last line for current file.
12516 ac_more_lines=:
12517 ac_sed_cmds=
12518 while $ac_more_lines; do
12519 if test $ac_beg -gt 1; then
12520 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12521 else
12522 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12524 if test ! -s $tmp/subs.frag; then
12525 ac_more_lines=false
12526 else
12527 # The purpose of the label and of the branching condition is to
12528 # speed up the sed processing (if there are no `@' at all, there
12529 # is no need to browse any of the substitutions).
12530 # These are the two extra sed commands mentioned above.
12531 (echo ':t
12532 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12533 if test -z "$ac_sed_cmds"; then
12534 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12535 else
12536 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12538 ac_sed_frag=`expr $ac_sed_frag + 1`
12539 ac_beg=$ac_end
12540 ac_end=`expr $ac_end + $ac_max_sed_lines`
12542 done
12543 if test -z "$ac_sed_cmds"; then
12544 ac_sed_cmds=cat
12546 fi # test -n "$CONFIG_FILES"
12548 _ACEOF
12549 cat >>$CONFIG_STATUS <<\_ACEOF
12550 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12551 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12552 case $ac_file in
12553 - | *:- | *:-:* ) # input from stdin
12554 cat >$tmp/stdin
12555 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12556 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12557 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12558 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12559 * ) ac_file_in=$ac_file.in ;;
12560 esac
12562 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12563 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12564 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12565 X"$ac_file" : 'X\(//\)[^/]' \| \
12566 X"$ac_file" : 'X\(//\)$' \| \
12567 X"$ac_file" : 'X\(/\)' \| \
12568 . : '\(.\)' 2>/dev/null ||
12569 echo X"$ac_file" |
12570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12571 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12572 /^X\(\/\/\)$/{ s//\1/; q; }
12573 /^X\(\/\).*/{ s//\1/; q; }
12574 s/.*/./; q'`
12575 { if $as_mkdir_p; then
12576 test -d "$ac_dir" || mkdir -p "$ac_dir"
12577 else
12578 as_dir="$ac_dir"
12579 as_dirs=
12580 while test ! -d "$as_dir"; do
12581 as_dirs="$as_dir $as_dirs"
12582 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12583 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12584 X"$as_dir" : 'X\(//\)[^/]' \| \
12585 X"$as_dir" : 'X\(//\)$' \| \
12586 X"$as_dir" : 'X\(/\)' \| \
12587 . : '\(.\)' 2>/dev/null ||
12588 echo X"$as_dir" |
12589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12590 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12591 /^X\(\/\/\)$/{ s//\1/; q; }
12592 /^X\(\/\).*/{ s//\1/; q; }
12593 s/.*/./; q'`
12594 done
12595 test ! -n "$as_dirs" || mkdir $as_dirs
12596 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12597 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12598 { (exit 1); exit 1; }; }; }
12600 ac_builddir=.
12602 if test "$ac_dir" != .; then
12603 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12604 # A "../" for each directory in $ac_dir_suffix.
12605 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12606 else
12607 ac_dir_suffix= ac_top_builddir=
12610 case $srcdir in
12611 .) # No --srcdir option. We are building in place.
12612 ac_srcdir=.
12613 if test -z "$ac_top_builddir"; then
12614 ac_top_srcdir=.
12615 else
12616 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12617 fi ;;
12618 [\\/]* | ?:[\\/]* ) # Absolute name.
12619 ac_srcdir=$srcdir$ac_dir_suffix;
12620 ac_top_srcdir=$srcdir ;;
12621 *) # Relative name.
12622 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12623 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12624 esac
12626 # Do not use `cd foo && pwd` to compute absolute names, because
12627 # the directories may not exist.
12628 case `pwd` in
12629 .) ac_abs_builddir="$ac_dir";;
12631 case "$ac_dir" in
12632 .) ac_abs_builddir=`pwd`;;
12633 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12634 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12635 esac;;
12636 esac
12637 case $ac_abs_builddir in
12638 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12640 case ${ac_top_builddir}. in
12641 .) ac_abs_top_builddir=$ac_abs_builddir;;
12642 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12643 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12644 esac;;
12645 esac
12646 case $ac_abs_builddir in
12647 .) ac_abs_srcdir=$ac_srcdir;;
12649 case $ac_srcdir in
12650 .) ac_abs_srcdir=$ac_abs_builddir;;
12651 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12652 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12653 esac;;
12654 esac
12655 case $ac_abs_builddir in
12656 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12658 case $ac_top_srcdir in
12659 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12660 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12661 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12662 esac;;
12663 esac
12666 case $INSTALL in
12667 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12668 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12669 esac
12671 if test x"$ac_file" != x-; then
12672 { echo "$as_me:$LINENO: creating $ac_file" >&5
12673 echo "$as_me: creating $ac_file" >&6;}
12674 rm -f "$ac_file"
12676 # Let's still pretend it is `configure' which instantiates (i.e., don't
12677 # use $as_me), people would be surprised to read:
12678 # /* config.h. Generated by config.status. */
12679 if test x"$ac_file" = x-; then
12680 configure_input=
12681 else
12682 configure_input="$ac_file. "
12684 configure_input=$configure_input"Generated from `echo $ac_file_in |
12685 sed 's,.*/,,'` by configure."
12687 # First look for the input files in the build tree, otherwise in the
12688 # src tree.
12689 ac_file_inputs=`IFS=:
12690 for f in $ac_file_in; do
12691 case $f in
12692 -) echo $tmp/stdin ;;
12693 [\\/$]*)
12694 # Absolute (can't be DOS-style, as IFS=:)
12695 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12696 echo "$as_me: error: cannot find input file: $f" >&2;}
12697 { (exit 1); exit 1; }; }
12698 echo "$f";;
12699 *) # Relative
12700 if test -f "$f"; then
12701 # Build tree
12702 echo "$f"
12703 elif test -f "$srcdir/$f"; then
12704 # Source tree
12705 echo "$srcdir/$f"
12706 else
12707 # /dev/null tree
12708 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12709 echo "$as_me: error: cannot find input file: $f" >&2;}
12710 { (exit 1); exit 1; }; }
12711 fi;;
12712 esac
12713 done` || { (exit 1); exit 1; }
12714 _ACEOF
12715 cat >>$CONFIG_STATUS <<_ACEOF
12716 sed "$ac_vpsub
12717 $extrasub
12718 _ACEOF
12719 cat >>$CONFIG_STATUS <<\_ACEOF
12721 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12722 s,@configure_input@,$configure_input,;t t
12723 s,@srcdir@,$ac_srcdir,;t t
12724 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12725 s,@top_srcdir@,$ac_top_srcdir,;t t
12726 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12727 s,@builddir@,$ac_builddir,;t t
12728 s,@abs_builddir@,$ac_abs_builddir,;t t
12729 s,@top_builddir@,$ac_top_builddir,;t t
12730 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12731 s,@INSTALL@,$ac_INSTALL,;t t
12732 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12733 rm -f $tmp/stdin
12734 if test x"$ac_file" != x-; then
12735 mv $tmp/out $ac_file
12736 else
12737 cat $tmp/out
12738 rm -f $tmp/out
12741 # Run the commands associated with the file.
12742 case $ac_file in
12743 stamp-h ) echo timestamp > stamp-h ;;
12744 contrib/gdiffmk/tests/runtests ) chmod +x contrib/gdiffmk/tests/runtests ;;
12745 test-groff ) chmod +x test-groff ;;
12746 esac
12747 done
12748 _ACEOF
12749 cat >>$CONFIG_STATUS <<\_ACEOF
12752 # CONFIG_HEADER section.
12755 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12756 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12758 # ac_d sets the value in "#define NAME VALUE" lines.
12759 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12760 ac_dB='[ ].*$,\1#\2'
12761 ac_dC=' '
12762 ac_dD=',;t'
12763 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12764 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12765 ac_uB='$,\1#\2define\3'
12766 ac_uC=' '
12767 ac_uD=',;t'
12769 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12770 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12771 case $ac_file in
12772 - | *:- | *:-:* ) # input from stdin
12773 cat >$tmp/stdin
12774 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12775 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12776 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12777 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12778 * ) ac_file_in=$ac_file.in ;;
12779 esac
12781 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12782 echo "$as_me: creating $ac_file" >&6;}
12784 # First look for the input files in the build tree, otherwise in the
12785 # src tree.
12786 ac_file_inputs=`IFS=:
12787 for f in $ac_file_in; do
12788 case $f in
12789 -) echo $tmp/stdin ;;
12790 [\\/$]*)
12791 # Absolute (can't be DOS-style, as IFS=:)
12792 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12793 echo "$as_me: error: cannot find input file: $f" >&2;}
12794 { (exit 1); exit 1; }; }
12795 # Quote $f, to prevent DOS file names from being IFS'd.
12796 echo "$f";;
12797 *) # Relative
12798 if test -f "$f"; then
12799 # Build tree
12800 echo "$f"
12801 elif test -f "$srcdir/$f"; then
12802 # Source tree
12803 echo "$srcdir/$f"
12804 else
12805 # /dev/null tree
12806 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12807 echo "$as_me: error: cannot find input file: $f" >&2;}
12808 { (exit 1); exit 1; }; }
12809 fi;;
12810 esac
12811 done` || { (exit 1); exit 1; }
12812 # Remove the trailing spaces.
12813 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12815 _ACEOF
12817 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12818 # `conftest.undefs', that substitutes the proper values into
12819 # config.h.in to produce config.h. The first handles `#define'
12820 # templates, and the second `#undef' templates.
12821 # And first: Protect against being on the right side of a sed subst in
12822 # config.status. Protect against being in an unquoted here document
12823 # in config.status.
12824 rm -f conftest.defines conftest.undefs
12825 # Using a here document instead of a string reduces the quoting nightmare.
12826 # Putting comments in sed scripts is not portable.
12828 # `end' is used to avoid that the second main sed command (meant for
12829 # 0-ary CPP macros) applies to n-ary macro definitions.
12830 # See the Autoconf documentation for `clear'.
12831 cat >confdef2sed.sed <<\_ACEOF
12832 s/[\\&,]/\\&/g
12833 s,[\\$`],\\&,g
12834 t clear
12835 : clear
12836 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12837 t end
12838 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12839 : end
12840 _ACEOF
12841 # If some macros were called several times there might be several times
12842 # the same #defines, which is useless. Nevertheless, we may not want to
12843 # sort them, since we want the *last* AC-DEFINE to be honored.
12844 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12845 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12846 rm -f confdef2sed.sed
12848 # This sed command replaces #undef with comments. This is necessary, for
12849 # example, in the case of _POSIX_SOURCE, which is predefined and required
12850 # on some systems where configure will not decide to define it.
12851 cat >>conftest.undefs <<\_ACEOF
12852 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12853 _ACEOF
12855 # Break up conftest.defines because some shells have a limit on the size
12856 # of here documents, and old seds have small limits too (100 cmds).
12857 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12858 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12859 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12860 echo ' :' >>$CONFIG_STATUS
12861 rm -f conftest.tail
12862 while grep . conftest.defines >/dev/null
12864 # Write a limited-size here document to $tmp/defines.sed.
12865 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12866 # Speed up: don't consider the non `#define' lines.
12867 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12868 # Work around the forget-to-reset-the-flag bug.
12869 echo 't clr' >>$CONFIG_STATUS
12870 echo ': clr' >>$CONFIG_STATUS
12871 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12872 echo 'CEOF
12873 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12874 rm -f $tmp/in
12875 mv $tmp/out $tmp/in
12876 ' >>$CONFIG_STATUS
12877 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12878 rm -f conftest.defines
12879 mv conftest.tail conftest.defines
12880 done
12881 rm -f conftest.defines
12882 echo ' fi # grep' >>$CONFIG_STATUS
12883 echo >>$CONFIG_STATUS
12885 # Break up conftest.undefs because some shells have a limit on the size
12886 # of here documents, and old seds have small limits too (100 cmds).
12887 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12888 rm -f conftest.tail
12889 while grep . conftest.undefs >/dev/null
12891 # Write a limited-size here document to $tmp/undefs.sed.
12892 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12893 # Speed up: don't consider the non `#undef'
12894 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12895 # Work around the forget-to-reset-the-flag bug.
12896 echo 't clr' >>$CONFIG_STATUS
12897 echo ': clr' >>$CONFIG_STATUS
12898 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12899 echo 'CEOF
12900 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12901 rm -f $tmp/in
12902 mv $tmp/out $tmp/in
12903 ' >>$CONFIG_STATUS
12904 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12905 rm -f conftest.undefs
12906 mv conftest.tail conftest.undefs
12907 done
12908 rm -f conftest.undefs
12910 cat >>$CONFIG_STATUS <<\_ACEOF
12911 # Let's still pretend it is `configure' which instantiates (i.e., don't
12912 # use $as_me), people would be surprised to read:
12913 # /* config.h. Generated by config.status. */
12914 if test x"$ac_file" = x-; then
12915 echo "/* Generated by configure. */" >$tmp/config.h
12916 else
12917 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12919 cat $tmp/in >>$tmp/config.h
12920 rm -f $tmp/in
12921 if test x"$ac_file" != x-; then
12922 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12923 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12924 echo "$as_me: $ac_file is unchanged" >&6;}
12925 else
12926 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12927 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12928 X"$ac_file" : 'X\(//\)[^/]' \| \
12929 X"$ac_file" : 'X\(//\)$' \| \
12930 X"$ac_file" : 'X\(/\)' \| \
12931 . : '\(.\)' 2>/dev/null ||
12932 echo X"$ac_file" |
12933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12934 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12935 /^X\(\/\/\)$/{ s//\1/; q; }
12936 /^X\(\/\).*/{ s//\1/; q; }
12937 s/.*/./; q'`
12938 { if $as_mkdir_p; then
12939 test -d "$ac_dir" || mkdir -p "$ac_dir"
12940 else
12941 as_dir="$ac_dir"
12942 as_dirs=
12943 while test ! -d "$as_dir"; do
12944 as_dirs="$as_dir $as_dirs"
12945 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12947 X"$as_dir" : 'X\(//\)[^/]' \| \
12948 X"$as_dir" : 'X\(//\)$' \| \
12949 X"$as_dir" : 'X\(/\)' \| \
12950 . : '\(.\)' 2>/dev/null ||
12951 echo X"$as_dir" |
12952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12953 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12954 /^X\(\/\/\)$/{ s//\1/; q; }
12955 /^X\(\/\).*/{ s//\1/; q; }
12956 s/.*/./; q'`
12957 done
12958 test ! -n "$as_dirs" || mkdir $as_dirs
12959 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12960 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12961 { (exit 1); exit 1; }; }; }
12963 rm -f $ac_file
12964 mv $tmp/config.h $ac_file
12966 else
12967 cat $tmp/config.h
12968 rm -f $tmp/config.h
12970 done
12971 _ACEOF
12973 cat >>$CONFIG_STATUS <<\_ACEOF
12975 { (exit 0); exit 0; }
12976 _ACEOF
12977 chmod +x $CONFIG_STATUS
12978 ac_clean_files=$ac_clean_files_save
12981 # configure is writing to config.log, and then calls config.status.
12982 # config.status does its own redirection, appending to config.log.
12983 # Unfortunately, on DOS this fails, as config.log is still kept open
12984 # by configure, so config.status won't be able to write to it; its
12985 # output is simply discarded. So we exec the FD to /dev/null,
12986 # effectively closing config.log, so it can be properly (re)opened and
12987 # appended to by config.status. When coming back to configure, we
12988 # need to make the FD available again.
12989 if test "$no_create" != yes; then
12990 ac_cs_success=:
12991 ac_config_status_args=
12992 test "$silent" = yes &&
12993 ac_config_status_args="$ac_config_status_args --quiet"
12994 exec 5>/dev/null
12995 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12996 exec 5>>config.log
12997 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12998 # would make configure fail if this is the last instruction.
12999 $ac_cs_success || { (exit 1); exit 1; }
13003 if test -z "$groff_no_x"; then
13004 if test "x$with_appresdir" = "x"; then
13005 { echo "$as_me:$LINENO:
13007 The application resource file for gxditview will be installed as
13009 $appresdir/GXditview
13011 (an existing file will be saved as \`GXditview.old').
13012 To install it into a different directory, say, \`/etc/gxditview',
13013 add \`--with-appresdir=/etc/gxditview' to the configure script
13014 command line options and rerun it. The environment variable
13015 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
13016 omitting the \`gxditview' part which is automatically appended by
13017 the X11 searching routines for resource files. More details can be
13018 found in the X(7) manual page.
13019 " >&5
13020 echo "$as_me:
13022 The application resource file for gxditview will be installed as
13024 $appresdir/GXditview
13026 (an existing file will be saved as \`GXditview.old').
13027 To install it into a different directory, say, \`/etc/gxditview',
13028 add \`--with-appresdir=/etc/gxditview' to the configure script
13029 command line options and rerun it. The environment variable
13030 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
13031 omitting the \`gxditview' part which is automatically appended by
13032 the X11 searching routines for resource files. More details can be
13033 found in the X(7) manual page.
13034 " >&6;}