Bug fixed in DnD.
[gliv.git] / configure
blob97d8164176f946a07cb8929b198d5d8e97327641
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for gliv 1.8.1.
5 # Report bugs to <guichaz@yahoo.fr>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='gliv'
271 PACKAGE_TARNAME='gliv'
272 PACKAGE_VERSION='1.8.1'
273 PACKAGE_STRING='gliv 1.8.1'
274 PACKAGE_BUGREPORT='guichaz@yahoo.fr'
276 ac_unique_file="src/main.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB GETDELIM_TRUE GETDELIM_FALSE GETOPT_LONG_TRUE GETOPT_LONG_FALSE NEED_REPLACEMENTS_TRUE NEED_REPLACEMENTS_FALSE CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PKG_CONFIG GTK_CFLAGS GTK_LIBS GTKGLEXT_CFLAGS GTKGLEXT_LIBS MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783 \`configure' configures gliv 1.8.1 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
792 Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 _ACEOF
805 cat <<_ACEOF
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832 _ACEOF
834 cat <<\_ACEOF
836 Program names:
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
841 X features:
842 --x-includes=DIR X include files are in DIR
843 --x-libraries=DIR X library files are in DIR
845 System types:
846 --build=BUILD configure for building on BUILD [guessed]
847 --host=HOST cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
851 if test -n "$ac_init_help"; then
852 case $ac_init_help in
853 short | recursive ) echo "Configuration of gliv 1.8.1:";;
854 esac
855 cat <<\_ACEOF
857 Optional Features:
858 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
859 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
860 --disable-dependency-tracking Speeds up one-time builds
861 --enable-dependency-tracking Do not reject slow dependency extractors
862 --disable-largefile omit support for large files
863 --disable-gtktest do not try to compile and run a test GTK+ program
864 --disable-nls do not use Native Language Support
865 --disable-rpath do not hardcode runtime library paths
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-x use the X Window System
871 --with-gnu-ld assume the C compiler uses GNU ld default=no
872 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
873 --without-libiconv-prefix don't search for libiconv in includedir and libdir
874 --with-included-gettext use the GNU gettext library included here
875 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
876 --without-libintl-prefix don't search for libintl in includedir and libdir
878 Some influential environment variables:
879 CC C compiler command
880 CFLAGS C compiler flags
881 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
882 nonstandard directory <lib dir>
883 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
884 headers in a nonstandard directory <include dir>
885 CPP C preprocessor
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
890 Report bugs to <guichaz@yahoo.fr>.
891 _ACEOF
894 if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
896 ac_popdir=`pwd`
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
899 ac_builddir=.
901 if test "$ac_dir" != .; then
902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 else
906 ac_dir_suffix= ac_top_builddir=
909 case $srcdir in
910 .) # No --srcdir option. We are building in place.
911 ac_srcdir=.
912 if test -z "$ac_top_builddir"; then
913 ac_top_srcdir=.
914 else
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916 fi ;;
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
920 *) # Relative path.
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 esac
925 # Do not use `cd foo && pwd` to compute absolute paths, because
926 # the directories may not exist.
927 case `pwd` in
928 .) ac_abs_builddir="$ac_dir";;
930 case "$ac_dir" in
931 .) ac_abs_builddir=`pwd`;;
932 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
933 *) ac_abs_builddir=`pwd`/"$ac_dir";;
934 esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_builddir=${ac_top_builddir}.;;
939 case ${ac_top_builddir}. in
940 .) ac_abs_top_builddir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
942 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
943 esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_srcdir=$ac_srcdir;;
948 case $ac_srcdir in
949 .) ac_abs_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
951 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
952 esac;;
953 esac
954 case $ac_abs_builddir in
955 .) ac_abs_top_srcdir=$ac_top_srcdir;;
957 case $ac_top_srcdir in
958 .) ac_abs_top_srcdir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
960 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961 esac;;
962 esac
964 cd $ac_dir
965 # Check for guested configure; otherwise get Cygnus style configure.
966 if test -f $ac_srcdir/configure.gnu; then
967 echo
968 $SHELL $ac_srcdir/configure.gnu --help=recursive
969 elif test -f $ac_srcdir/configure; then
970 echo
971 $SHELL $ac_srcdir/configure --help=recursive
972 elif test -f $ac_srcdir/configure.ac ||
973 test -f $ac_srcdir/configure.in; then
974 echo
975 $ac_configure --help
976 else
977 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979 cd $ac_popdir
980 done
983 test -n "$ac_init_help" && exit 0
984 if $ac_init_version; then
985 cat <<\_ACEOF
986 gliv configure 1.8.1
987 generated by GNU Autoconf 2.59
989 Copyright (C) 2003 Free Software Foundation, Inc.
990 This configure script is free software; the Free Software Foundation
991 gives unlimited permission to copy, distribute and modify it.
992 _ACEOF
993 exit 0
995 exec 5>config.log
996 cat >&5 <<_ACEOF
997 This file contains any messages produced by compilers while
998 running configure, to aid debugging if configure makes a mistake.
1000 It was created by gliv $as_me 1.8.1, which was
1001 generated by GNU Autoconf 2.59. Invocation command line was
1003 $ $0 $@
1005 _ACEOF
1007 cat <<_ASUNAME
1008 ## --------- ##
1009 ## Platform. ##
1010 ## --------- ##
1012 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1013 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1014 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1015 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1016 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1018 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1019 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1021 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1022 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1023 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1024 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1025 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1026 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1027 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1029 _ASUNAME
1031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1032 for as_dir in $PATH
1034 IFS=$as_save_IFS
1035 test -z "$as_dir" && as_dir=.
1036 echo "PATH: $as_dir"
1037 done
1039 } >&5
1041 cat >&5 <<_ACEOF
1044 ## ----------- ##
1045 ## Core tests. ##
1046 ## ----------- ##
1048 _ACEOF
1051 # Keep a trace of the command line.
1052 # Strip out --no-create and --no-recursion so they do not pile up.
1053 # Strip out --silent because we don't want to record it for future runs.
1054 # Also quote any args containing shell meta-characters.
1055 # Make two passes to allow for proper duplicate-argument suppression.
1056 ac_configure_args=
1057 ac_configure_args0=
1058 ac_configure_args1=
1059 ac_sep=
1060 ac_must_keep_next=false
1061 for ac_pass in 1 2
1063 for ac_arg
1065 case $ac_arg in
1066 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1069 continue ;;
1070 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1071 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1072 esac
1073 case $ac_pass in
1074 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1076 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1077 if test $ac_must_keep_next = true; then
1078 ac_must_keep_next=false # Got value, back to normal.
1079 else
1080 case $ac_arg in
1081 *=* | --config-cache | -C | -disable-* | --disable-* \
1082 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1083 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1084 | -with-* | --with-* | -without-* | --without-* | --x)
1085 case "$ac_configure_args0 " in
1086 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1087 esac
1089 -* ) ac_must_keep_next=true ;;
1090 esac
1092 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1093 # Get rid of the leading space.
1094 ac_sep=" "
1096 esac
1097 done
1098 done
1099 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1100 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1102 # When interrupted or exit'd, cleanup temporary files, and complete
1103 # config.log. We remove comments because anyway the quotes in there
1104 # would cause problems or look ugly.
1105 # WARNING: Be sure not to use single quotes in there, as some shells,
1106 # such as our DU 5.0 friend, will then `close' the trap.
1107 trap 'exit_status=$?
1108 # Save into config.log some information that might help in debugging.
1110 echo
1112 cat <<\_ASBOX
1113 ## ---------------- ##
1114 ## Cache variables. ##
1115 ## ---------------- ##
1116 _ASBOX
1117 echo
1118 # The following way of writing the cache mishandles newlines in values,
1120 (set) 2>&1 |
1121 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1122 *ac_space=\ *)
1123 sed -n \
1124 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1128 sed -n \
1129 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1131 esac;
1133 echo
1135 cat <<\_ASBOX
1136 ## ----------------- ##
1137 ## Output variables. ##
1138 ## ----------------- ##
1139 _ASBOX
1140 echo
1141 for ac_var in $ac_subst_vars
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1145 done | sort
1146 echo
1148 if test -n "$ac_subst_files"; then
1149 cat <<\_ASBOX
1150 ## ------------- ##
1151 ## Output files. ##
1152 ## ------------- ##
1153 _ASBOX
1154 echo
1155 for ac_var in $ac_subst_files
1157 eval ac_val=$`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1159 done | sort
1160 echo
1163 if test -s confdefs.h; then
1164 cat <<\_ASBOX
1165 ## ----------- ##
1166 ## confdefs.h. ##
1167 ## ----------- ##
1168 _ASBOX
1169 echo
1170 sed "/^$/d" confdefs.h | sort
1171 echo
1173 test "$ac_signal" != 0 &&
1174 echo "$as_me: caught signal $ac_signal"
1175 echo "$as_me: exit $exit_status"
1176 } >&5
1177 rm -f core *.core &&
1178 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1179 exit $exit_status
1181 for ac_signal in 1 2 13 15; do
1182 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1183 done
1184 ac_signal=0
1186 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1187 rm -rf conftest* confdefs.h
1188 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1189 echo >confdefs.h
1191 # Predefined preprocessor variables.
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_NAME "$PACKAGE_NAME"
1195 _ACEOF
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1200 _ACEOF
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1205 _ACEOF
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_STRING "$PACKAGE_STRING"
1210 _ACEOF
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1215 _ACEOF
1218 # Let the site file select an alternate cache file if it wants to.
1219 # Prefer explicitly selected file to automatically selected ones.
1220 if test -z "$CONFIG_SITE"; then
1221 if test "x$prefix" != xNONE; then
1222 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1223 else
1224 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1227 for ac_site_file in $CONFIG_SITE; do
1228 if test -r "$ac_site_file"; then
1229 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1230 echo "$as_me: loading site script $ac_site_file" >&6;}
1231 sed 's/^/| /' "$ac_site_file" >&5
1232 . "$ac_site_file"
1234 done
1236 if test -r "$cache_file"; then
1237 # Some versions of bash will fail to source /dev/null (special
1238 # files actually), so we avoid doing that.
1239 if test -f "$cache_file"; then
1240 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1241 echo "$as_me: loading cache $cache_file" >&6;}
1242 case $cache_file in
1243 [\\/]* | ?:[\\/]* ) . $cache_file;;
1244 *) . ./$cache_file;;
1245 esac
1247 else
1248 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1249 echo "$as_me: creating cache $cache_file" >&6;}
1250 >$cache_file
1253 # Check that the precious variables saved in the cache have kept the same
1254 # value.
1255 ac_cache_corrupted=false
1256 for ac_var in `(set) 2>&1 |
1257 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1258 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1259 eval ac_new_set=\$ac_env_${ac_var}_set
1260 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1261 eval ac_new_val="\$ac_env_${ac_var}_value"
1262 case $ac_old_set,$ac_new_set in
1263 set,)
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,set)
1268 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1270 ac_cache_corrupted=: ;;
1271 ,);;
1273 if test "x$ac_old_val" != "x$ac_new_val"; then
1274 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1275 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1276 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1277 echo "$as_me: former value: $ac_old_val" >&2;}
1278 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1279 echo "$as_me: current value: $ac_new_val" >&2;}
1280 ac_cache_corrupted=:
1281 fi;;
1282 esac
1283 # Pass precious variables to config.status.
1284 if test "$ac_new_set" = set; then
1285 case $ac_new_val in
1286 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1287 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1288 *) ac_arg=$ac_var=$ac_new_val ;;
1289 esac
1290 case " $ac_configure_args " in
1291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1292 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1293 esac
1295 done
1296 if $ac_cache_corrupted; then
1297 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1298 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1299 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1300 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1301 { (exit 1); exit 1; }; }
1304 ac_ext=c
1305 ac_cpp='$CPP $CPPFLAGS'
1306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1337 am__api_version="1.8"
1338 ac_aux_dir=
1339 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1340 if test -f $ac_dir/install-sh; then
1341 ac_aux_dir=$ac_dir
1342 ac_install_sh="$ac_aux_dir/install-sh -c"
1343 break
1344 elif test -f $ac_dir/install.sh; then
1345 ac_aux_dir=$ac_dir
1346 ac_install_sh="$ac_aux_dir/install.sh -c"
1347 break
1348 elif test -f $ac_dir/shtool; then
1349 ac_aux_dir=$ac_dir
1350 ac_install_sh="$ac_aux_dir/shtool install -c"
1351 break
1353 done
1354 if test -z "$ac_aux_dir"; then
1355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1356 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1357 { (exit 1); exit 1; }; }
1359 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1363 # Find a good install program. We prefer a C program (faster),
1364 # so one script is as good as another. But avoid the broken or
1365 # incompatible versions:
1366 # SysV /etc/install, /usr/sbin/install
1367 # SunOS /usr/etc/install
1368 # IRIX /sbin/install
1369 # AIX /bin/install
1370 # AmigaOS /C/install, which installs bootblocks on floppy discs
1371 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1372 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1373 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1374 # OS/2's system install, which has a completely different semantic
1375 # ./install, which can be erroneously created by make from ./install.sh.
1376 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1377 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1378 if test -z "$INSTALL"; then
1379 if test "${ac_cv_path_install+set}" = set; then
1380 echo $ECHO_N "(cached) $ECHO_C" >&6
1381 else
1382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383 for as_dir in $PATH
1385 IFS=$as_save_IFS
1386 test -z "$as_dir" && as_dir=.
1387 # Account for people who put trailing slashes in PATH elements.
1388 case $as_dir/ in
1389 ./ | .// | /cC/* | \
1390 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1391 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1392 /usr/ucb/* ) ;;
1394 # OSF1 and SCO ODT 3.0 have their own names for install.
1395 # Don't use installbsd from OSF since it installs stuff as root
1396 # by default.
1397 for ac_prog in ginstall scoinst install; do
1398 for ac_exec_ext in '' $ac_executable_extensions; do
1399 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1400 if test $ac_prog = install &&
1401 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1402 # AIX install. It has an incompatible calling convention.
1404 elif test $ac_prog = install &&
1405 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1406 # program-specific install script used by HP pwplus--don't use.
1408 else
1409 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1410 break 3
1413 done
1414 done
1416 esac
1417 done
1421 if test "${ac_cv_path_install+set}" = set; then
1422 INSTALL=$ac_cv_path_install
1423 else
1424 # As a last resort, use the slow shell script. We don't cache a
1425 # path for INSTALL within a source directory, because that will
1426 # break other packages using the cache if that directory is
1427 # removed, or if the path is relative.
1428 INSTALL=$ac_install_sh
1431 echo "$as_me:$LINENO: result: $INSTALL" >&5
1432 echo "${ECHO_T}$INSTALL" >&6
1434 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1435 # It thinks the first close brace ends the variable substitution.
1436 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1438 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1440 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1442 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1443 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1444 # Just in case
1445 sleep 1
1446 echo timestamp > conftest.file
1447 # Do `set' in a subshell so we don't clobber the current shell's
1448 # arguments. Must try -L first in case configure is actually a
1449 # symlink; some systems play weird games with the mod time of symlinks
1450 # (eg FreeBSD returns the mod time of the symlink's containing
1451 # directory).
1452 if (
1453 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1454 if test "$*" = "X"; then
1455 # -L didn't work.
1456 set X `ls -t $srcdir/configure conftest.file`
1458 rm -f conftest.file
1459 if test "$*" != "X $srcdir/configure conftest.file" \
1460 && test "$*" != "X conftest.file $srcdir/configure"; then
1462 # If neither matched, then we have a broken ls. This can happen
1463 # if, for instance, CONFIG_SHELL is bash and it inherits a
1464 # broken ls alias from the environment. This has actually
1465 # happened. Such a system could not be considered "sane".
1466 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1467 alias in your environment" >&5
1468 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1469 alias in your environment" >&2;}
1470 { (exit 1); exit 1; }; }
1473 test "$2" = conftest.file
1475 then
1476 # Ok.
1478 else
1479 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1480 Check your system clock" >&5
1481 echo "$as_me: error: newly created file is older than distributed files!
1482 Check your system clock" >&2;}
1483 { (exit 1); exit 1; }; }
1485 echo "$as_me:$LINENO: result: yes" >&5
1486 echo "${ECHO_T}yes" >&6
1487 test "$program_prefix" != NONE &&
1488 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1489 # Use a double $ so make ignores it.
1490 test "$program_suffix" != NONE &&
1491 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1492 # Double any \ or $. echo might interpret backslashes.
1493 # By default was `s,x,x', remove it if useless.
1494 cat <<\_ACEOF >conftest.sed
1495 s/[\\$]/&&/g;s/;s,x,x,$//
1496 _ACEOF
1497 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1498 rm conftest.sed
1500 # expand $ac_aux_dir to an absolute path
1501 am_aux_dir=`cd $ac_aux_dir && pwd`
1503 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1504 # Use eval to expand $SHELL
1505 if eval "$MISSING --run true"; then
1506 am_missing_run="$MISSING --run "
1507 else
1508 am_missing_run=
1509 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1510 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1513 if mkdir -m 0755 -p -- . 2>/dev/null; then
1514 mkdir_p='mkdir -m 0755 -p --'
1515 else
1516 # On NextStep and OpenStep, the `mkdir' command does not
1517 # recognize any option. It will interpret all options as
1518 # directories to create, and then abort because `.' already
1519 # exists.
1520 for d in ./-m ./0755 ./-p ./--;
1522 test -d $d && rmdir $d
1523 done
1524 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1525 if test -f "$ac_aux_dir/mkinstalldirs"; then
1526 mkdir_p='$(mkinstalldirs) -m 0755'
1527 else
1528 mkdir_p='$(install_sh) -m 0755 -d'
1532 for ac_prog in gawk mawk nawk awk
1534 # Extract the first word of "$ac_prog", so it can be a program name with args.
1535 set dummy $ac_prog; ac_word=$2
1536 echo "$as_me:$LINENO: checking for $ac_word" >&5
1537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1538 if test "${ac_cv_prog_AWK+set}" = set; then
1539 echo $ECHO_N "(cached) $ECHO_C" >&6
1540 else
1541 if test -n "$AWK"; then
1542 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1543 else
1544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1545 for as_dir in $PATH
1547 IFS=$as_save_IFS
1548 test -z "$as_dir" && as_dir=.
1549 for ac_exec_ext in '' $ac_executable_extensions; do
1550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1551 ac_cv_prog_AWK="$ac_prog"
1552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1553 break 2
1555 done
1556 done
1560 AWK=$ac_cv_prog_AWK
1561 if test -n "$AWK"; then
1562 echo "$as_me:$LINENO: result: $AWK" >&5
1563 echo "${ECHO_T}$AWK" >&6
1564 else
1565 echo "$as_me:$LINENO: result: no" >&5
1566 echo "${ECHO_T}no" >&6
1569 test -n "$AWK" && break
1570 done
1572 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1573 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1574 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1575 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 else
1578 cat >conftest.make <<\_ACEOF
1579 all:
1580 @echo 'ac_maketemp="$(MAKE)"'
1581 _ACEOF
1582 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1583 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1584 if test -n "$ac_maketemp"; then
1585 eval ac_cv_prog_make_${ac_make}_set=yes
1586 else
1587 eval ac_cv_prog_make_${ac_make}_set=no
1589 rm -f conftest.make
1591 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1592 echo "$as_me:$LINENO: result: yes" >&5
1593 echo "${ECHO_T}yes" >&6
1594 SET_MAKE=
1595 else
1596 echo "$as_me:$LINENO: result: no" >&5
1597 echo "${ECHO_T}no" >&6
1598 SET_MAKE="MAKE=${MAKE-make}"
1601 rm -rf .tst 2>/dev/null
1602 mkdir .tst 2>/dev/null
1603 if test -d .tst; then
1604 am__leading_dot=.
1605 else
1606 am__leading_dot=_
1608 rmdir .tst 2>/dev/null
1610 # test to see if srcdir already configured
1611 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1612 test -f $srcdir/config.status; then
1613 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1614 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1615 { (exit 1); exit 1; }; }
1618 # test whether we have cygpath
1619 if test -z "$CYGPATH_W"; then
1620 if (cygpath --version) >/dev/null 2>/dev/null; then
1621 CYGPATH_W='cygpath -w'
1622 else
1623 CYGPATH_W=echo
1628 # Define the identity of the package.
1629 PACKAGE='gliv'
1630 VERSION='1.8.1'
1633 cat >>confdefs.h <<_ACEOF
1634 #define PACKAGE "$PACKAGE"
1635 _ACEOF
1638 cat >>confdefs.h <<_ACEOF
1639 #define VERSION "$VERSION"
1640 _ACEOF
1642 # Some tools Automake needs.
1644 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1647 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1650 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1653 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1656 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1659 AMTAR=${AMTAR-"${am_missing_run}tar"}
1661 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1663 # Installed binaries are usually stripped using `strip' when the user
1664 # run `make install-strip'. However `strip' might not be the right
1665 # tool to use in cross-compilation environments, therefore Automake
1666 # will honor the `STRIP' environment variable to overrule this program.
1667 if test "$cross_compiling" != no; then
1668 if test -n "$ac_tool_prefix"; then
1669 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1670 set dummy ${ac_tool_prefix}strip; ac_word=$2
1671 echo "$as_me:$LINENO: checking for $ac_word" >&5
1672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1673 if test "${ac_cv_prog_STRIP+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 else
1676 if test -n "$STRIP"; then
1677 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1678 else
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680 for as_dir in $PATH
1682 IFS=$as_save_IFS
1683 test -z "$as_dir" && as_dir=.
1684 for ac_exec_ext in '' $ac_executable_extensions; do
1685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1686 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1688 break 2
1690 done
1691 done
1695 STRIP=$ac_cv_prog_STRIP
1696 if test -n "$STRIP"; then
1697 echo "$as_me:$LINENO: result: $STRIP" >&5
1698 echo "${ECHO_T}$STRIP" >&6
1699 else
1700 echo "$as_me:$LINENO: result: no" >&5
1701 echo "${ECHO_T}no" >&6
1705 if test -z "$ac_cv_prog_STRIP"; then
1706 ac_ct_STRIP=$STRIP
1707 # Extract the first word of "strip", so it can be a program name with args.
1708 set dummy strip; ac_word=$2
1709 echo "$as_me:$LINENO: checking for $ac_word" >&5
1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714 if test -n "$ac_ct_STRIP"; then
1715 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1716 else
1717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 for as_dir in $PATH
1720 IFS=$as_save_IFS
1721 test -z "$as_dir" && as_dir=.
1722 for ac_exec_ext in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724 ac_cv_prog_ac_ct_STRIP="strip"
1725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726 break 2
1728 done
1729 done
1731 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1734 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1735 if test -n "$ac_ct_STRIP"; then
1736 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1737 echo "${ECHO_T}$ac_ct_STRIP" >&6
1738 else
1739 echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1743 STRIP=$ac_ct_STRIP
1744 else
1745 STRIP="$ac_cv_prog_STRIP"
1749 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1751 # We need awk for the "check" target. The system "awk" is bad on
1752 # some platforms.
1756 ac_config_headers="$ac_config_headers config.h"
1758 ac_ext=c
1759 ac_cpp='$CPP $CPPFLAGS'
1760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1766 # We check this before AC_PROG_CC fills blank CFLAGS with "-g -O2".
1767 if test "x$CFLAGS" = "x"; then
1768 DEFAULT_CFLAGS=yes
1769 else
1770 DEFAULT_CFLAGS=no
1773 # Checks for programs.
1774 ac_ext=c
1775 ac_cpp='$CPP $CPPFLAGS'
1776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1779 if test -n "$ac_tool_prefix"; then
1780 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1781 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1782 echo "$as_me:$LINENO: checking for $ac_word" >&5
1783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1784 if test "${ac_cv_prog_CC+set}" = set; then
1785 echo $ECHO_N "(cached) $ECHO_C" >&6
1786 else
1787 if test -n "$CC"; then
1788 ac_cv_prog_CC="$CC" # Let the user override the test.
1789 else
1790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1791 for as_dir in $PATH
1793 IFS=$as_save_IFS
1794 test -z "$as_dir" && as_dir=.
1795 for ac_exec_ext in '' $ac_executable_extensions; do
1796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1797 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799 break 2
1801 done
1802 done
1806 CC=$ac_cv_prog_CC
1807 if test -n "$CC"; then
1808 echo "$as_me:$LINENO: result: $CC" >&5
1809 echo "${ECHO_T}$CC" >&6
1810 else
1811 echo "$as_me:$LINENO: result: no" >&5
1812 echo "${ECHO_T}no" >&6
1816 if test -z "$ac_cv_prog_CC"; then
1817 ac_ct_CC=$CC
1818 # Extract the first word of "gcc", so it can be a program name with args.
1819 set dummy gcc; ac_word=$2
1820 echo "$as_me:$LINENO: checking for $ac_word" >&5
1821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1822 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1824 else
1825 if test -n "$ac_ct_CC"; then
1826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1827 else
1828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829 for as_dir in $PATH
1831 IFS=$as_save_IFS
1832 test -z "$as_dir" && as_dir=.
1833 for ac_exec_ext in '' $ac_executable_extensions; do
1834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1835 ac_cv_prog_ac_ct_CC="gcc"
1836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1837 break 2
1839 done
1840 done
1844 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1845 if test -n "$ac_ct_CC"; then
1846 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1847 echo "${ECHO_T}$ac_ct_CC" >&6
1848 else
1849 echo "$as_me:$LINENO: result: no" >&5
1850 echo "${ECHO_T}no" >&6
1853 CC=$ac_ct_CC
1854 else
1855 CC="$ac_cv_prog_CC"
1858 if test -z "$CC"; then
1859 if test -n "$ac_tool_prefix"; then
1860 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1861 set dummy ${ac_tool_prefix}cc; ac_word=$2
1862 echo "$as_me:$LINENO: checking for $ac_word" >&5
1863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1864 if test "${ac_cv_prog_CC+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 else
1867 if test -n "$CC"; then
1868 ac_cv_prog_CC="$CC" # Let the user override the test.
1869 else
1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 for as_dir in $PATH
1873 IFS=$as_save_IFS
1874 test -z "$as_dir" && as_dir=.
1875 for ac_exec_ext in '' $ac_executable_extensions; do
1876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1877 ac_cv_prog_CC="${ac_tool_prefix}cc"
1878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 break 2
1881 done
1882 done
1886 CC=$ac_cv_prog_CC
1887 if test -n "$CC"; then
1888 echo "$as_me:$LINENO: result: $CC" >&5
1889 echo "${ECHO_T}$CC" >&6
1890 else
1891 echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6
1896 if test -z "$ac_cv_prog_CC"; then
1897 ac_ct_CC=$CC
1898 # Extract the first word of "cc", so it can be a program name with args.
1899 set dummy cc; ac_word=$2
1900 echo "$as_me:$LINENO: checking for $ac_word" >&5
1901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 else
1905 if test -n "$ac_ct_CC"; then
1906 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1907 else
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 for as_dir in $PATH
1911 IFS=$as_save_IFS
1912 test -z "$as_dir" && as_dir=.
1913 for ac_exec_ext in '' $ac_executable_extensions; do
1914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915 ac_cv_prog_ac_ct_CC="cc"
1916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917 break 2
1919 done
1920 done
1924 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1925 if test -n "$ac_ct_CC"; then
1926 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1927 echo "${ECHO_T}$ac_ct_CC" >&6
1928 else
1929 echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6
1933 CC=$ac_ct_CC
1934 else
1935 CC="$ac_cv_prog_CC"
1939 if test -z "$CC"; then
1940 # Extract the first word of "cc", so it can be a program name with args.
1941 set dummy cc; ac_word=$2
1942 echo "$as_me:$LINENO: checking for $ac_word" >&5
1943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944 if test "${ac_cv_prog_CC+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1946 else
1947 if test -n "$CC"; then
1948 ac_cv_prog_CC="$CC" # Let the user override the test.
1949 else
1950 ac_prog_rejected=no
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 for as_dir in $PATH
1954 IFS=$as_save_IFS
1955 test -z "$as_dir" && as_dir=.
1956 for ac_exec_ext in '' $ac_executable_extensions; do
1957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1958 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1959 ac_prog_rejected=yes
1960 continue
1962 ac_cv_prog_CC="cc"
1963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964 break 2
1966 done
1967 done
1969 if test $ac_prog_rejected = yes; then
1970 # We found a bogon in the path, so make sure we never use it.
1971 set dummy $ac_cv_prog_CC
1972 shift
1973 if test $# != 0; then
1974 # We chose a different compiler from the bogus one.
1975 # However, it has the same basename, so the bogon will be chosen
1976 # first if we set CC to just the basename; use the full file name.
1977 shift
1978 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1983 CC=$ac_cv_prog_CC
1984 if test -n "$CC"; then
1985 echo "$as_me:$LINENO: result: $CC" >&5
1986 echo "${ECHO_T}$CC" >&6
1987 else
1988 echo "$as_me:$LINENO: result: no" >&5
1989 echo "${ECHO_T}no" >&6
1993 if test -z "$CC"; then
1994 if test -n "$ac_tool_prefix"; then
1995 for ac_prog in cl
1997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1998 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1999 echo "$as_me:$LINENO: checking for $ac_word" >&5
2000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2001 if test "${ac_cv_prog_CC+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 else
2004 if test -n "$CC"; then
2005 ac_cv_prog_CC="$CC" # Let the user override the test.
2006 else
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 for as_dir in $PATH
2010 IFS=$as_save_IFS
2011 test -z "$as_dir" && as_dir=.
2012 for ac_exec_ext in '' $ac_executable_extensions; do
2013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2014 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016 break 2
2018 done
2019 done
2023 CC=$ac_cv_prog_CC
2024 if test -n "$CC"; then
2025 echo "$as_me:$LINENO: result: $CC" >&5
2026 echo "${ECHO_T}$CC" >&6
2027 else
2028 echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6
2032 test -n "$CC" && break
2033 done
2035 if test -z "$CC"; then
2036 ac_ct_CC=$CC
2037 for ac_prog in cl
2039 # Extract the first word of "$ac_prog", so it can be a program name with args.
2040 set dummy $ac_prog; ac_word=$2
2041 echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046 if test -n "$ac_ct_CC"; then
2047 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2048 else
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2052 IFS=$as_save_IFS
2053 test -z "$as_dir" && as_dir=.
2054 for ac_exec_ext in '' $ac_executable_extensions; do
2055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056 ac_cv_prog_ac_ct_CC="$ac_prog"
2057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058 break 2
2060 done
2061 done
2065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2066 if test -n "$ac_ct_CC"; then
2067 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2068 echo "${ECHO_T}$ac_ct_CC" >&6
2069 else
2070 echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2074 test -n "$ac_ct_CC" && break
2075 done
2077 CC=$ac_ct_CC
2083 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2084 See \`config.log' for more details." >&5
2085 echo "$as_me: error: no acceptable C compiler found in \$PATH
2086 See \`config.log' for more details." >&2;}
2087 { (exit 1); exit 1; }; }
2089 # Provide some information about the compiler.
2090 echo "$as_me:$LINENO:" \
2091 "checking for C compiler version" >&5
2092 ac_compiler=`set X $ac_compile; echo $2`
2093 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2094 (eval $ac_compiler --version </dev/null >&5) 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }
2098 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2099 (eval $ac_compiler -v </dev/null >&5) 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2103 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2104 (eval $ac_compiler -V </dev/null >&5) 2>&5
2105 ac_status=$?
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
2109 cat >conftest.$ac_ext <<_ACEOF
2110 /* confdefs.h. */
2111 _ACEOF
2112 cat confdefs.h >>conftest.$ac_ext
2113 cat >>conftest.$ac_ext <<_ACEOF
2114 /* end confdefs.h. */
2117 main ()
2121 return 0;
2123 _ACEOF
2124 ac_clean_files_save=$ac_clean_files
2125 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2126 # Try to create an executable without -o first, disregard a.out.
2127 # It will help us diagnose broken compilers, and finding out an intuition
2128 # of exeext.
2129 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2130 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2131 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2132 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2133 (eval $ac_link_default) 2>&5
2134 ac_status=$?
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); }; then
2137 # Find the output, starting from the most likely. This scheme is
2138 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2139 # resort.
2141 # Be careful to initialize this variable, since it used to be cached.
2142 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2143 ac_cv_exeext=
2144 # b.out is created by i960 compilers.
2145 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2147 test -f "$ac_file" || continue
2148 case $ac_file in
2149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2151 conftest.$ac_ext )
2152 # This is the source file.
2154 [ab].out )
2155 # We found the default executable, but exeext='' is most
2156 # certainly right.
2157 break;;
2158 *.* )
2159 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2160 # FIXME: I believe we export ac_cv_exeext for Libtool,
2161 # but it would be cool to find out if it's true. Does anybody
2162 # maintain Libtool? --akim.
2163 export ac_cv_exeext
2164 break;;
2166 break;;
2167 esac
2168 done
2169 else
2170 echo "$as_me: failed program was:" >&5
2171 sed 's/^/| /' conftest.$ac_ext >&5
2173 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2174 See \`config.log' for more details." >&5
2175 echo "$as_me: error: C compiler cannot create executables
2176 See \`config.log' for more details." >&2;}
2177 { (exit 77); exit 77; }; }
2180 ac_exeext=$ac_cv_exeext
2181 echo "$as_me:$LINENO: result: $ac_file" >&5
2182 echo "${ECHO_T}$ac_file" >&6
2184 # Check the compiler produces executables we can run. If not, either
2185 # the compiler is broken, or we cross compile.
2186 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2187 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2188 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2189 # If not cross compiling, check that we can run a simple program.
2190 if test "$cross_compiling" != yes; then
2191 if { ac_try='./$ac_file'
2192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2193 (eval $ac_try) 2>&5
2194 ac_status=$?
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; }; then
2197 cross_compiling=no
2198 else
2199 if test "$cross_compiling" = maybe; then
2200 cross_compiling=yes
2201 else
2202 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2203 If you meant to cross compile, use \`--host'.
2204 See \`config.log' for more details." >&5
2205 echo "$as_me: error: cannot run C compiled programs.
2206 If you meant to cross compile, use \`--host'.
2207 See \`config.log' for more details." >&2;}
2208 { (exit 1); exit 1; }; }
2212 echo "$as_me:$LINENO: result: yes" >&5
2213 echo "${ECHO_T}yes" >&6
2215 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2216 ac_clean_files=$ac_clean_files_save
2217 # Check the compiler produces executables we can run. If not, either
2218 # the compiler is broken, or we cross compile.
2219 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2220 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2221 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2222 echo "${ECHO_T}$cross_compiling" >&6
2224 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2225 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2227 (eval $ac_link) 2>&5
2228 ac_status=$?
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; then
2231 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2232 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2233 # work properly (i.e., refer to `conftest.exe'), while it won't with
2234 # `rm'.
2235 for ac_file in conftest.exe conftest conftest.*; do
2236 test -f "$ac_file" || continue
2237 case $ac_file in
2238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2239 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2240 export ac_cv_exeext
2241 break;;
2242 * ) break;;
2243 esac
2244 done
2245 else
2246 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2247 See \`config.log' for more details." >&5
2248 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2249 See \`config.log' for more details." >&2;}
2250 { (exit 1); exit 1; }; }
2253 rm -f conftest$ac_cv_exeext
2254 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2255 echo "${ECHO_T}$ac_cv_exeext" >&6
2257 rm -f conftest.$ac_ext
2258 EXEEXT=$ac_cv_exeext
2259 ac_exeext=$EXEEXT
2260 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2261 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2262 if test "${ac_cv_objext+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265 cat >conftest.$ac_ext <<_ACEOF
2266 /* confdefs.h. */
2267 _ACEOF
2268 cat confdefs.h >>conftest.$ac_ext
2269 cat >>conftest.$ac_ext <<_ACEOF
2270 /* end confdefs.h. */
2273 main ()
2277 return 0;
2279 _ACEOF
2280 rm -f conftest.o conftest.obj
2281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2282 (eval $ac_compile) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; then
2286 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2287 case $ac_file in
2288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2289 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2290 break;;
2291 esac
2292 done
2293 else
2294 echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2297 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2298 See \`config.log' for more details." >&5
2299 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2300 See \`config.log' for more details." >&2;}
2301 { (exit 1); exit 1; }; }
2304 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2306 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2307 echo "${ECHO_T}$ac_cv_objext" >&6
2308 OBJEXT=$ac_cv_objext
2309 ac_objext=$OBJEXT
2310 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2311 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2312 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 else
2315 cat >conftest.$ac_ext <<_ACEOF
2316 /* confdefs.h. */
2317 _ACEOF
2318 cat confdefs.h >>conftest.$ac_ext
2319 cat >>conftest.$ac_ext <<_ACEOF
2320 /* end confdefs.h. */
2323 main ()
2325 #ifndef __GNUC__
2326 choke me
2327 #endif
2330 return 0;
2332 _ACEOF
2333 rm -f conftest.$ac_objext
2334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2335 (eval $ac_compile) 2>conftest.er1
2336 ac_status=$?
2337 grep -v '^ *+' conftest.er1 >conftest.err
2338 rm -f conftest.er1
2339 cat conftest.err >&5
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); } &&
2342 { ac_try='test -z "$ac_c_werror_flag"
2343 || test ! -s conftest.err'
2344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 (eval $ac_try) 2>&5
2346 ac_status=$?
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }; } &&
2349 { ac_try='test -s conftest.$ac_objext'
2350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 (eval $ac_try) 2>&5
2352 ac_status=$?
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; }; then
2355 ac_compiler_gnu=yes
2356 else
2357 echo "$as_me: failed program was:" >&5
2358 sed 's/^/| /' conftest.$ac_ext >&5
2360 ac_compiler_gnu=no
2362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2363 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2366 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2367 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2368 GCC=`test $ac_compiler_gnu = yes && echo yes`
2369 ac_test_CFLAGS=${CFLAGS+set}
2370 ac_save_CFLAGS=$CFLAGS
2371 CFLAGS="-g"
2372 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2373 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2374 if test "${ac_cv_prog_cc_g+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2376 else
2377 cat >conftest.$ac_ext <<_ACEOF
2378 /* confdefs.h. */
2379 _ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h. */
2385 main ()
2389 return 0;
2391 _ACEOF
2392 rm -f conftest.$ac_objext
2393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2394 (eval $ac_compile) 2>conftest.er1
2395 ac_status=$?
2396 grep -v '^ *+' conftest.er1 >conftest.err
2397 rm -f conftest.er1
2398 cat conftest.err >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); } &&
2401 { ac_try='test -z "$ac_c_werror_flag"
2402 || test ! -s conftest.err'
2403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404 (eval $ac_try) 2>&5
2405 ac_status=$?
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; } &&
2408 { ac_try='test -s conftest.$ac_objext'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; }; then
2414 ac_cv_prog_cc_g=yes
2415 else
2416 echo "$as_me: failed program was:" >&5
2417 sed 's/^/| /' conftest.$ac_ext >&5
2419 ac_cv_prog_cc_g=no
2421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2423 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2424 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2425 if test "$ac_test_CFLAGS" = set; then
2426 CFLAGS=$ac_save_CFLAGS
2427 elif test $ac_cv_prog_cc_g = yes; then
2428 if test "$GCC" = yes; then
2429 CFLAGS="-g -O2"
2430 else
2431 CFLAGS="-g"
2433 else
2434 if test "$GCC" = yes; then
2435 CFLAGS="-O2"
2436 else
2437 CFLAGS=
2440 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2441 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2442 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445 ac_cv_prog_cc_stdc=no
2446 ac_save_CC=$CC
2447 cat >conftest.$ac_ext <<_ACEOF
2448 /* confdefs.h. */
2449 _ACEOF
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h. */
2453 #include <stdarg.h>
2454 #include <stdio.h>
2455 #include <sys/types.h>
2456 #include <sys/stat.h>
2457 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2458 struct buf { int x; };
2459 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2460 static char *e (p, i)
2461 char **p;
2462 int i;
2464 return p[i];
2466 static char *f (char * (*g) (char **, int), char **p, ...)
2468 char *s;
2469 va_list v;
2470 va_start (v,p);
2471 s = g (p, va_arg (v,int));
2472 va_end (v);
2473 return s;
2476 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2477 function prototypes and stuff, but not '\xHH' hex character constants.
2478 These don't provoke an error unfortunately, instead are silently treated
2479 as 'x'. The following induces an error, until -std1 is added to get
2480 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2481 array size at least. It's necessary to write '\x00'==0 to get something
2482 that's true only with -std1. */
2483 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2485 int test (int i, double x);
2486 struct s1 {int (*f) (int a);};
2487 struct s2 {int (*f) (double a);};
2488 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2489 int argc;
2490 char **argv;
2492 main ()
2494 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2496 return 0;
2498 _ACEOF
2499 # Don't try gcc -ansi; that turns off useful extensions and
2500 # breaks some systems' header files.
2501 # AIX -qlanglvl=ansi
2502 # Ultrix and OSF/1 -std1
2503 # HP-UX 10.20 and later -Ae
2504 # HP-UX older versions -Aa -D_HPUX_SOURCE
2505 # SVR4 -Xc -D__EXTENSIONS__
2506 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2508 CC="$ac_save_CC $ac_arg"
2509 rm -f conftest.$ac_objext
2510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511 (eval $ac_compile) 2>conftest.er1
2512 ac_status=$?
2513 grep -v '^ *+' conftest.er1 >conftest.err
2514 rm -f conftest.er1
2515 cat conftest.err >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); } &&
2518 { ac_try='test -z "$ac_c_werror_flag"
2519 || test ! -s conftest.err'
2520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 (eval $ac_try) 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; } &&
2525 { ac_try='test -s conftest.$ac_objext'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 (eval $ac_try) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; }; then
2531 ac_cv_prog_cc_stdc=$ac_arg
2532 break
2533 else
2534 echo "$as_me: failed program was:" >&5
2535 sed 's/^/| /' conftest.$ac_ext >&5
2538 rm -f conftest.err conftest.$ac_objext
2539 done
2540 rm -f conftest.$ac_ext conftest.$ac_objext
2541 CC=$ac_save_CC
2545 case "x$ac_cv_prog_cc_stdc" in
2546 x|xno)
2547 echo "$as_me:$LINENO: result: none needed" >&5
2548 echo "${ECHO_T}none needed" >&6 ;;
2550 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2551 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2552 CC="$CC $ac_cv_prog_cc_stdc" ;;
2553 esac
2555 # Some people use a C++ compiler to compile C. Since we use `exit',
2556 # in C++ we need to declare it. In case someone uses the same compiler
2557 # for both compiling C and C++ we need to have the C++ compiler decide
2558 # the declaration of exit, since it's the most demanding environment.
2559 cat >conftest.$ac_ext <<_ACEOF
2560 #ifndef __cplusplus
2561 choke me
2562 #endif
2563 _ACEOF
2564 rm -f conftest.$ac_objext
2565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566 (eval $ac_compile) 2>conftest.er1
2567 ac_status=$?
2568 grep -v '^ *+' conftest.er1 >conftest.err
2569 rm -f conftest.er1
2570 cat conftest.err >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
2573 { ac_try='test -z "$ac_c_werror_flag"
2574 || test ! -s conftest.err'
2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 (eval $ac_try) 2>&5
2577 ac_status=$?
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; } &&
2580 { ac_try='test -s conftest.$ac_objext'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 (eval $ac_try) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2586 for ac_declaration in \
2587 '' \
2588 'extern "C" void std::exit (int) throw (); using std::exit;' \
2589 'extern "C" void std::exit (int); using std::exit;' \
2590 'extern "C" void exit (int) throw ();' \
2591 'extern "C" void exit (int);' \
2592 'void exit (int);'
2594 cat >conftest.$ac_ext <<_ACEOF
2595 /* confdefs.h. */
2596 _ACEOF
2597 cat confdefs.h >>conftest.$ac_ext
2598 cat >>conftest.$ac_ext <<_ACEOF
2599 /* end confdefs.h. */
2600 $ac_declaration
2601 #include <stdlib.h>
2603 main ()
2605 exit (42);
2607 return 0;
2609 _ACEOF
2610 rm -f conftest.$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612 (eval $ac_compile) 2>conftest.er1
2613 ac_status=$?
2614 grep -v '^ *+' conftest.er1 >conftest.err
2615 rm -f conftest.er1
2616 cat conftest.err >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try='test -z "$ac_c_werror_flag"
2620 || test ! -s conftest.err'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 (eval $ac_try) 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; } &&
2626 { ac_try='test -s conftest.$ac_objext'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 (eval $ac_try) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2633 else
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2637 continue
2639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2640 cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h. */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2646 $ac_declaration
2648 main ()
2650 exit (42);
2652 return 0;
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657 (eval $ac_compile) 2>conftest.er1
2658 ac_status=$?
2659 grep -v '^ *+' conftest.er1 >conftest.err
2660 rm -f conftest.er1
2661 cat conftest.err >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } &&
2664 { ac_try='test -z "$ac_c_werror_flag"
2665 || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 (eval $ac_try) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } &&
2671 { ac_try='test -s conftest.$ac_objext'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 (eval $ac_try) 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2677 break
2678 else
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2684 done
2685 rm -f conftest*
2686 if test -n "$ac_declaration"; then
2687 echo '#ifdef __cplusplus' >>confdefs.h
2688 echo $ac_declaration >>confdefs.h
2689 echo '#endif' >>confdefs.h
2692 else
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2698 ac_ext=c
2699 ac_cpp='$CPP $CPPFLAGS'
2700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2703 DEPDIR="${am__leading_dot}deps"
2705 ac_config_commands="$ac_config_commands depfiles"
2708 am_make=${MAKE-make}
2709 cat > confinc << 'END'
2710 am__doit:
2711 @echo done
2712 .PHONY: am__doit
2714 # If we don't find an include directive, just comment out the code.
2715 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2716 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2717 am__include="#"
2718 am__quote=
2719 _am_result=none
2720 # First try GNU make style include.
2721 echo "include confinc" > confmf
2722 # We grep out `Entering directory' and `Leaving directory'
2723 # messages which can occur if `w' ends up in MAKEFLAGS.
2724 # In particular we don't look at `^make:' because GNU make might
2725 # be invoked under some other name (usually "gmake"), in which
2726 # case it prints its new name instead of `make'.
2727 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2728 am__include=include
2729 am__quote=
2730 _am_result=GNU
2732 # Now try BSD make style include.
2733 if test "$am__include" = "#"; then
2734 echo '.include "confinc"' > confmf
2735 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2736 am__include=.include
2737 am__quote="\""
2738 _am_result=BSD
2743 echo "$as_me:$LINENO: result: $_am_result" >&5
2744 echo "${ECHO_T}$_am_result" >&6
2745 rm -f confinc confmf
2747 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2748 if test "${enable_dependency_tracking+set}" = set; then
2749 enableval="$enable_dependency_tracking"
2752 if test "x$enable_dependency_tracking" != xno; then
2753 am_depcomp="$ac_aux_dir/depcomp"
2754 AMDEPBACKSLASH='\'
2758 if test "x$enable_dependency_tracking" != xno; then
2759 AMDEP_TRUE=
2760 AMDEP_FALSE='#'
2761 else
2762 AMDEP_TRUE='#'
2763 AMDEP_FALSE=
2769 depcc="$CC" am_compiler_list=
2771 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2772 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2773 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2775 else
2776 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2777 # We make a subdir and do the tests there. Otherwise we can end up
2778 # making bogus files that we don't know about and never remove. For
2779 # instance it was reported that on HP-UX the gcc test will end up
2780 # making a dummy file named `D' -- because `-MD' means `put the output
2781 # in D'.
2782 mkdir conftest.dir
2783 # Copy depcomp to subdir because otherwise we won't find it if we're
2784 # using a relative directory.
2785 cp "$am_depcomp" conftest.dir
2786 cd conftest.dir
2787 # We will build objects and dependencies in a subdirectory because
2788 # it helps to detect inapplicable dependency modes. For instance
2789 # both Tru64's cc and ICC support -MD to output dependencies as a
2790 # side effect of compilation, but ICC will put the dependencies in
2791 # the current directory while Tru64 will put them in the object
2792 # directory.
2793 mkdir sub
2795 am_cv_CC_dependencies_compiler_type=none
2796 if test "$am_compiler_list" = ""; then
2797 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2799 for depmode in $am_compiler_list; do
2800 # Setup a source with many dependencies, because some compilers
2801 # like to wrap large dependency lists on column 80 (with \), and
2802 # we should not choose a depcomp mode which is confused by this.
2804 # We need to recreate these files for each test, as the compiler may
2805 # overwrite some of them when testing with obscure command lines.
2806 # This happens at least with the AIX C compiler.
2807 : > sub/conftest.c
2808 for i in 1 2 3 4 5 6; do
2809 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2810 : > sub/conftst$i.h
2811 done
2812 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2814 case $depmode in
2815 nosideeffect)
2816 # after this tag, mechanisms are not by side-effect, so they'll
2817 # only be used when explicitly requested
2818 if test "x$enable_dependency_tracking" = xyes; then
2819 continue
2820 else
2821 break
2824 none) break ;;
2825 esac
2826 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2827 # mode. It turns out that the SunPro C++ compiler does not properly
2828 # handle `-M -o', and we need to detect this.
2829 if depmode=$depmode \
2830 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2831 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2832 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2833 >/dev/null 2>conftest.err &&
2834 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2835 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2836 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2837 # icc doesn't choke on unknown options, it will just issue warnings
2838 # (even with -Werror). So we grep stderr for any message
2839 # that says an option was ignored.
2840 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2841 am_cv_CC_dependencies_compiler_type=$depmode
2842 break
2845 done
2847 cd ..
2848 rm -rf conftest.dir
2849 else
2850 am_cv_CC_dependencies_compiler_type=none
2854 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2855 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2856 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2861 test "x$enable_dependency_tracking" != xno \
2862 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2863 am__fastdepCC_TRUE=
2864 am__fastdepCC_FALSE='#'
2865 else
2866 am__fastdepCC_TRUE='#'
2867 am__fastdepCC_FALSE=
2871 if test -n "$ac_tool_prefix"; then
2872 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2873 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2874 echo "$as_me:$LINENO: checking for $ac_word" >&5
2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2876 if test "${ac_cv_prog_RANLIB+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879 if test -n "$RANLIB"; then
2880 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2893 done
2894 done
2898 RANLIB=$ac_cv_prog_RANLIB
2899 if test -n "$RANLIB"; then
2900 echo "$as_me:$LINENO: result: $RANLIB" >&5
2901 echo "${ECHO_T}$RANLIB" >&6
2902 else
2903 echo "$as_me:$LINENO: result: no" >&5
2904 echo "${ECHO_T}no" >&6
2908 if test -z "$ac_cv_prog_RANLIB"; then
2909 ac_ct_RANLIB=$RANLIB
2910 # Extract the first word of "ranlib", so it can be a program name with args.
2911 set dummy ranlib; ac_word=$2
2912 echo "$as_me:$LINENO: checking for $ac_word" >&5
2913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2914 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917 if test -n "$ac_ct_RANLIB"; then
2918 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_ac_ct_RANLIB="ranlib"
2928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2931 done
2932 done
2934 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2937 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2938 if test -n "$ac_ct_RANLIB"; then
2939 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2940 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2941 else
2942 echo "$as_me:$LINENO: result: no" >&5
2943 echo "${ECHO_T}no" >&6
2946 RANLIB=$ac_ct_RANLIB
2947 else
2948 RANLIB="$ac_cv_prog_RANLIB"
2953 # Default CFLAGS.
2954 if test "x$GCC" = "xyes" && test "$DEFAULT_CFLAGS" = "yes"; then
2955 CFLAGS="-Wall -O2 -fomit-frame-pointer -ffast-math"
2959 # Checks for LFS flags, we may not handle big files, but it doesn't hurt.
2961 # Check whether --enable-largefile or --disable-largefile was given.
2962 if test "${enable_largefile+set}" = set; then
2963 enableval="$enable_largefile"
2966 if test "$enable_largefile" != no; then
2968 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2969 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2970 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2972 else
2973 ac_cv_sys_largefile_CC=no
2974 if test "$GCC" != yes; then
2975 ac_save_CC=$CC
2976 while :; do
2977 # IRIX 6.2 and later do not support large files by default,
2978 # so use the C compiler's -n32 option if that helps.
2979 cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h. */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2985 #include <sys/types.h>
2986 /* Check that off_t can represent 2**63 - 1 correctly.
2987 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2988 since some C++ compilers masquerading as C compilers
2989 incorrectly reject 9223372036854775807. */
2990 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2991 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2992 && LARGE_OFF_T % 2147483647 == 1)
2993 ? 1 : -1];
2995 main ()
2999 return 0;
3001 _ACEOF
3002 rm -f conftest.$ac_objext
3003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3004 (eval $ac_compile) 2>conftest.er1
3005 ac_status=$?
3006 grep -v '^ *+' conftest.er1 >conftest.err
3007 rm -f conftest.er1
3008 cat conftest.err >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } &&
3011 { ac_try='test -z "$ac_c_werror_flag"
3012 || test ! -s conftest.err'
3013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3014 (eval $ac_try) 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; } &&
3018 { ac_try='test -s conftest.$ac_objext'
3019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3020 (eval $ac_try) 2>&5
3021 ac_status=$?
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; }; then
3024 break
3025 else
3026 echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.$ac_ext >&5
3030 rm -f conftest.err conftest.$ac_objext
3031 CC="$CC -n32"
3032 rm -f conftest.$ac_objext
3033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3034 (eval $ac_compile) 2>conftest.er1
3035 ac_status=$?
3036 grep -v '^ *+' conftest.er1 >conftest.err
3037 rm -f conftest.er1
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } &&
3041 { ac_try='test -z "$ac_c_werror_flag"
3042 || test ! -s conftest.err'
3043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044 (eval $ac_try) 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; } &&
3048 { ac_try='test -s conftest.$ac_objext'
3049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050 (eval $ac_try) 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; }; then
3054 ac_cv_sys_largefile_CC=' -n32'; break
3055 else
3056 echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3060 rm -f conftest.err conftest.$ac_objext
3061 break
3062 done
3063 CC=$ac_save_CC
3064 rm -f conftest.$ac_ext
3067 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3068 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3069 if test "$ac_cv_sys_largefile_CC" != no; then
3070 CC=$CC$ac_cv_sys_largefile_CC
3073 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3074 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3075 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078 while :; do
3079 ac_cv_sys_file_offset_bits=no
3080 cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h. */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3086 #include <sys/types.h>
3087 /* Check that off_t can represent 2**63 - 1 correctly.
3088 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3089 since some C++ compilers masquerading as C compilers
3090 incorrectly reject 9223372036854775807. */
3091 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3092 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3093 && LARGE_OFF_T % 2147483647 == 1)
3094 ? 1 : -1];
3096 main ()
3100 return 0;
3102 _ACEOF
3103 rm -f conftest.$ac_objext
3104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3105 (eval $ac_compile) 2>conftest.er1
3106 ac_status=$?
3107 grep -v '^ *+' conftest.er1 >conftest.err
3108 rm -f conftest.er1
3109 cat conftest.err >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } &&
3112 { ac_try='test -z "$ac_c_werror_flag"
3113 || test ! -s conftest.err'
3114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115 (eval $ac_try) 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; } &&
3119 { ac_try='test -s conftest.$ac_objext'
3120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121 (eval $ac_try) 2>&5
3122 ac_status=$?
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; }; then
3125 break
3126 else
3127 echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3132 cat >conftest.$ac_ext <<_ACEOF
3133 /* confdefs.h. */
3134 _ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3138 #define _FILE_OFFSET_BITS 64
3139 #include <sys/types.h>
3140 /* Check that off_t can represent 2**63 - 1 correctly.
3141 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3142 since some C++ compilers masquerading as C compilers
3143 incorrectly reject 9223372036854775807. */
3144 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3145 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3146 && LARGE_OFF_T % 2147483647 == 1)
3147 ? 1 : -1];
3149 main ()
3153 return 0;
3155 _ACEOF
3156 rm -f conftest.$ac_objext
3157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3158 (eval $ac_compile) 2>conftest.er1
3159 ac_status=$?
3160 grep -v '^ *+' conftest.er1 >conftest.err
3161 rm -f conftest.er1
3162 cat conftest.err >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); } &&
3165 { ac_try='test -z "$ac_c_werror_flag"
3166 || test ! -s conftest.err'
3167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168 (eval $ac_try) 2>&5
3169 ac_status=$?
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; } &&
3172 { ac_try='test -s conftest.$ac_objext'
3173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174 (eval $ac_try) 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; }; then
3178 ac_cv_sys_file_offset_bits=64; break
3179 else
3180 echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3185 break
3186 done
3188 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3189 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3190 if test "$ac_cv_sys_file_offset_bits" != no; then
3192 cat >>confdefs.h <<_ACEOF
3193 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3194 _ACEOF
3197 rm -f conftest*
3198 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3199 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3200 if test "${ac_cv_sys_large_files+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203 while :; do
3204 ac_cv_sys_large_files=no
3205 cat >conftest.$ac_ext <<_ACEOF
3206 /* confdefs.h. */
3207 _ACEOF
3208 cat confdefs.h >>conftest.$ac_ext
3209 cat >>conftest.$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3211 #include <sys/types.h>
3212 /* Check that off_t can represent 2**63 - 1 correctly.
3213 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3214 since some C++ compilers masquerading as C compilers
3215 incorrectly reject 9223372036854775807. */
3216 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3217 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3218 && LARGE_OFF_T % 2147483647 == 1)
3219 ? 1 : -1];
3221 main ()
3225 return 0;
3227 _ACEOF
3228 rm -f conftest.$ac_objext
3229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3230 (eval $ac_compile) 2>conftest.er1
3231 ac_status=$?
3232 grep -v '^ *+' conftest.er1 >conftest.err
3233 rm -f conftest.er1
3234 cat conftest.err >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } &&
3237 { ac_try='test -z "$ac_c_werror_flag"
3238 || test ! -s conftest.err'
3239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 (eval $ac_try) 2>&5
3241 ac_status=$?
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; } &&
3244 { ac_try='test -s conftest.$ac_objext'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 (eval $ac_try) 2>&5
3247 ac_status=$?
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; }; then
3250 break
3251 else
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3257 cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h. */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3263 #define _LARGE_FILES 1
3264 #include <sys/types.h>
3265 /* Check that off_t can represent 2**63 - 1 correctly.
3266 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3267 since some C++ compilers masquerading as C compilers
3268 incorrectly reject 9223372036854775807. */
3269 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3270 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3271 && LARGE_OFF_T % 2147483647 == 1)
3272 ? 1 : -1];
3274 main ()
3278 return 0;
3280 _ACEOF
3281 rm -f conftest.$ac_objext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283 (eval $ac_compile) 2>conftest.er1
3284 ac_status=$?
3285 grep -v '^ *+' conftest.er1 >conftest.err
3286 rm -f conftest.er1
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } &&
3290 { ac_try='test -z "$ac_c_werror_flag"
3291 || test ! -s conftest.err'
3292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293 (eval $ac_try) 2>&5
3294 ac_status=$?
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; } &&
3297 { ac_try='test -s conftest.$ac_objext'
3298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299 (eval $ac_try) 2>&5
3300 ac_status=$?
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; }; then
3303 ac_cv_sys_large_files=1; break
3304 else
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3310 break
3311 done
3313 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3314 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3315 if test "$ac_cv_sys_large_files" != no; then
3317 cat >>confdefs.h <<_ACEOF
3318 #define _LARGE_FILES $ac_cv_sys_large_files
3319 _ACEOF
3322 rm -f conftest*
3326 # Checks for libm.
3327 echo "$as_me:$LINENO: checking for atan2 in -lm" >&5
3328 echo $ECHO_N "checking for atan2 in -lm... $ECHO_C" >&6
3329 if test "${ac_cv_lib_m_atan2+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332 ac_check_lib_save_LIBS=$LIBS
3333 LIBS="-lm $LIBS"
3334 cat >conftest.$ac_ext <<_ACEOF
3335 /* confdefs.h. */
3336 _ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h. */
3341 /* Override any gcc2 internal prototype to avoid an error. */
3342 #ifdef __cplusplus
3343 extern "C"
3344 #endif
3345 /* We use char because int might match the return type of a gcc2
3346 builtin and then its argument prototype would still apply. */
3347 char atan2 ();
3349 main ()
3351 atan2 ();
3353 return 0;
3355 _ACEOF
3356 rm -f conftest.$ac_objext conftest$ac_exeext
3357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3358 (eval $ac_link) 2>conftest.er1
3359 ac_status=$?
3360 grep -v '^ *+' conftest.er1 >conftest.err
3361 rm -f conftest.er1
3362 cat conftest.err >&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); } &&
3365 { ac_try='test -z "$ac_c_werror_flag"
3366 || test ! -s conftest.err'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368 (eval $ac_try) 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; } &&
3372 { ac_try='test -s conftest$ac_exeext'
3373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3374 (eval $ac_try) 2>&5
3375 ac_status=$?
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }; }; then
3378 ac_cv_lib_m_atan2=yes
3379 else
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3383 ac_cv_lib_m_atan2=no
3385 rm -f conftest.err conftest.$ac_objext \
3386 conftest$ac_exeext conftest.$ac_ext
3387 LIBS=$ac_check_lib_save_LIBS
3389 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2" >&5
3390 echo "${ECHO_T}$ac_cv_lib_m_atan2" >&6
3391 if test $ac_cv_lib_m_atan2 = yes; then
3393 LDFLAGS="-lm $LDFLAGS"
3395 else
3397 { { echo "$as_me:$LINENO: error: Cannot use -lm" >&5
3398 echo "$as_me: error: Cannot use -lm" >&2;}
3399 { (exit 1); exit 1; }; }
3405 # Checks for hypot (SVID 3, BSD 4.3).
3406 # The replacement is #defined in the source.
3408 for ac_func in hypot
3410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3411 echo "$as_me:$LINENO: checking for $ac_func" >&5
3412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3413 if eval "test \"\${$as_ac_var+set}\" = set"; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416 cat >conftest.$ac_ext <<_ACEOF
3417 /* confdefs.h. */
3418 _ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3424 #define $ac_func innocuous_$ac_func
3426 /* System header to define __stub macros and hopefully few prototypes,
3427 which can conflict with char $ac_func (); below.
3428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3429 <limits.h> exists even on freestanding compilers. */
3431 #ifdef __STDC__
3432 # include <limits.h>
3433 #else
3434 # include <assert.h>
3435 #endif
3437 #undef $ac_func
3439 /* Override any gcc2 internal prototype to avoid an error. */
3440 #ifdef __cplusplus
3441 extern "C"
3443 #endif
3444 /* We use char because int might match the return type of a gcc2
3445 builtin and then its argument prototype would still apply. */
3446 char $ac_func ();
3447 /* The GNU C library defines this for functions which it implements
3448 to always fail with ENOSYS. Some functions are actually named
3449 something starting with __ and the normal name is an alias. */
3450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3451 choke me
3452 #else
3453 char (*f) () = $ac_func;
3454 #endif
3455 #ifdef __cplusplus
3457 #endif
3460 main ()
3462 return f != $ac_func;
3464 return 0;
3466 _ACEOF
3467 rm -f conftest.$ac_objext conftest$ac_exeext
3468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3469 (eval $ac_link) 2>conftest.er1
3470 ac_status=$?
3471 grep -v '^ *+' conftest.er1 >conftest.err
3472 rm -f conftest.er1
3473 cat conftest.err >&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); } &&
3476 { ac_try='test -z "$ac_c_werror_flag"
3477 || test ! -s conftest.err'
3478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479 (eval $ac_try) 2>&5
3480 ac_status=$?
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; } &&
3483 { ac_try='test -s conftest$ac_exeext'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 (eval $ac_try) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 eval "$as_ac_var=yes"
3490 else
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3494 eval "$as_ac_var=no"
3496 rm -f conftest.err conftest.$ac_objext \
3497 conftest$ac_exeext conftest.$ac_ext
3499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3501 if test `eval echo '${'$as_ac_var'}'` = yes; then
3502 cat >>confdefs.h <<_ACEOF
3503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3504 _ACEOF
3507 done
3511 # Checks for math functions using floats.
3512 # Using floats instead of doubles makes gcc use SSE with -msse
3513 # The replacement are #defined in math_floats.h.
3515 for ac_func in sqrtf
3517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3518 echo "$as_me:$LINENO: checking for $ac_func" >&5
3519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3520 if eval "test \"\${$as_ac_var+set}\" = set"; then
3521 echo $ECHO_N "(cached) $ECHO_C" >&6
3522 else
3523 cat >conftest.$ac_ext <<_ACEOF
3524 /* confdefs.h. */
3525 _ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h. */
3529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3531 #define $ac_func innocuous_$ac_func
3533 /* System header to define __stub macros and hopefully few prototypes,
3534 which can conflict with char $ac_func (); below.
3535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536 <limits.h> exists even on freestanding compilers. */
3538 #ifdef __STDC__
3539 # include <limits.h>
3540 #else
3541 # include <assert.h>
3542 #endif
3544 #undef $ac_func
3546 /* Override any gcc2 internal prototype to avoid an error. */
3547 #ifdef __cplusplus
3548 extern "C"
3550 #endif
3551 /* We use char because int might match the return type of a gcc2
3552 builtin and then its argument prototype would still apply. */
3553 char $ac_func ();
3554 /* The GNU C library defines this for functions which it implements
3555 to always fail with ENOSYS. Some functions are actually named
3556 something starting with __ and the normal name is an alias. */
3557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3558 choke me
3559 #else
3560 char (*f) () = $ac_func;
3561 #endif
3562 #ifdef __cplusplus
3564 #endif
3567 main ()
3569 return f != $ac_func;
3571 return 0;
3573 _ACEOF
3574 rm -f conftest.$ac_objext conftest$ac_exeext
3575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3576 (eval $ac_link) 2>conftest.er1
3577 ac_status=$?
3578 grep -v '^ *+' conftest.er1 >conftest.err
3579 rm -f conftest.er1
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } &&
3583 { ac_try='test -z "$ac_c_werror_flag"
3584 || test ! -s conftest.err'
3585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 (eval $ac_try) 2>&5
3587 ac_status=$?
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }; } &&
3590 { ac_try='test -s conftest$ac_exeext'
3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 (eval $ac_try) 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; }; then
3596 eval "$as_ac_var=yes"
3597 else
3598 echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3601 eval "$as_ac_var=no"
3603 rm -f conftest.err conftest.$ac_objext \
3604 conftest$ac_exeext conftest.$ac_ext
3606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3608 if test `eval echo '${'$as_ac_var'}'` = yes; then
3609 cat >>confdefs.h <<_ACEOF
3610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3611 _ACEOF
3614 done
3617 for ac_func in hypotf
3619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3620 echo "$as_me:$LINENO: checking for $ac_func" >&5
3621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3622 if eval "test \"\${$as_ac_var+set}\" = set"; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625 cat >conftest.$ac_ext <<_ACEOF
3626 /* confdefs.h. */
3627 _ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3633 #define $ac_func innocuous_$ac_func
3635 /* System header to define __stub macros and hopefully few prototypes,
3636 which can conflict with char $ac_func (); below.
3637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3638 <limits.h> exists even on freestanding compilers. */
3640 #ifdef __STDC__
3641 # include <limits.h>
3642 #else
3643 # include <assert.h>
3644 #endif
3646 #undef $ac_func
3648 /* Override any gcc2 internal prototype to avoid an error. */
3649 #ifdef __cplusplus
3650 extern "C"
3652 #endif
3653 /* We use char because int might match the return type of a gcc2
3654 builtin and then its argument prototype would still apply. */
3655 char $ac_func ();
3656 /* The GNU C library defines this for functions which it implements
3657 to always fail with ENOSYS. Some functions are actually named
3658 something starting with __ and the normal name is an alias. */
3659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3660 choke me
3661 #else
3662 char (*f) () = $ac_func;
3663 #endif
3664 #ifdef __cplusplus
3666 #endif
3669 main ()
3671 return f != $ac_func;
3673 return 0;
3675 _ACEOF
3676 rm -f conftest.$ac_objext conftest$ac_exeext
3677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3678 (eval $ac_link) 2>conftest.er1
3679 ac_status=$?
3680 grep -v '^ *+' conftest.er1 >conftest.err
3681 rm -f conftest.er1
3682 cat conftest.err >&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); } &&
3685 { ac_try='test -z "$ac_c_werror_flag"
3686 || test ! -s conftest.err'
3687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688 (eval $ac_try) 2>&5
3689 ac_status=$?
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; } &&
3692 { ac_try='test -s conftest$ac_exeext'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; }; then
3698 eval "$as_ac_var=yes"
3699 else
3700 echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3703 eval "$as_ac_var=no"
3705 rm -f conftest.err conftest.$ac_objext \
3706 conftest$ac_exeext conftest.$ac_ext
3708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3710 if test `eval echo '${'$as_ac_var'}'` = yes; then
3711 cat >>confdefs.h <<_ACEOF
3712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3713 _ACEOF
3716 done
3719 for ac_func in atan2f
3721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3722 echo "$as_me:$LINENO: checking for $ac_func" >&5
3723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3724 if eval "test \"\${$as_ac_var+set}\" = set"; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 else
3727 cat >conftest.$ac_ext <<_ACEOF
3728 /* confdefs.h. */
3729 _ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3735 #define $ac_func innocuous_$ac_func
3737 /* System header to define __stub macros and hopefully few prototypes,
3738 which can conflict with char $ac_func (); below.
3739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3740 <limits.h> exists even on freestanding compilers. */
3742 #ifdef __STDC__
3743 # include <limits.h>
3744 #else
3745 # include <assert.h>
3746 #endif
3748 #undef $ac_func
3750 /* Override any gcc2 internal prototype to avoid an error. */
3751 #ifdef __cplusplus
3752 extern "C"
3754 #endif
3755 /* We use char because int might match the return type of a gcc2
3756 builtin and then its argument prototype would still apply. */
3757 char $ac_func ();
3758 /* The GNU C library defines this for functions which it implements
3759 to always fail with ENOSYS. Some functions are actually named
3760 something starting with __ and the normal name is an alias. */
3761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3762 choke me
3763 #else
3764 char (*f) () = $ac_func;
3765 #endif
3766 #ifdef __cplusplus
3768 #endif
3771 main ()
3773 return f != $ac_func;
3775 return 0;
3777 _ACEOF
3778 rm -f conftest.$ac_objext conftest$ac_exeext
3779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3780 (eval $ac_link) 2>conftest.er1
3781 ac_status=$?
3782 grep -v '^ *+' conftest.er1 >conftest.err
3783 rm -f conftest.er1
3784 cat conftest.err >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); } &&
3787 { ac_try='test -z "$ac_c_werror_flag"
3788 || test ! -s conftest.err'
3789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 (eval $ac_try) 2>&5
3791 ac_status=$?
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; } &&
3794 { ac_try='test -s conftest$ac_exeext'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 (eval $ac_try) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3800 eval "$as_ac_var=yes"
3801 else
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3805 eval "$as_ac_var=no"
3807 rm -f conftest.err conftest.$ac_objext \
3808 conftest$ac_exeext conftest.$ac_ext
3810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3812 if test `eval echo '${'$as_ac_var'}'` = yes; then
3813 cat >>confdefs.h <<_ACEOF
3814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3815 _ACEOF
3818 done
3821 for ac_func in powf
3823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3824 echo "$as_me:$LINENO: checking for $ac_func" >&5
3825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3826 if eval "test \"\${$as_ac_var+set}\" = set"; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829 cat >conftest.$ac_ext <<_ACEOF
3830 /* confdefs.h. */
3831 _ACEOF
3832 cat confdefs.h >>conftest.$ac_ext
3833 cat >>conftest.$ac_ext <<_ACEOF
3834 /* end confdefs.h. */
3835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3837 #define $ac_func innocuous_$ac_func
3839 /* System header to define __stub macros and hopefully few prototypes,
3840 which can conflict with char $ac_func (); below.
3841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3842 <limits.h> exists even on freestanding compilers. */
3844 #ifdef __STDC__
3845 # include <limits.h>
3846 #else
3847 # include <assert.h>
3848 #endif
3850 #undef $ac_func
3852 /* Override any gcc2 internal prototype to avoid an error. */
3853 #ifdef __cplusplus
3854 extern "C"
3856 #endif
3857 /* We use char because int might match the return type of a gcc2
3858 builtin and then its argument prototype would still apply. */
3859 char $ac_func ();
3860 /* The GNU C library defines this for functions which it implements
3861 to always fail with ENOSYS. Some functions are actually named
3862 something starting with __ and the normal name is an alias. */
3863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3864 choke me
3865 #else
3866 char (*f) () = $ac_func;
3867 #endif
3868 #ifdef __cplusplus
3870 #endif
3873 main ()
3875 return f != $ac_func;
3877 return 0;
3879 _ACEOF
3880 rm -f conftest.$ac_objext conftest$ac_exeext
3881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3882 (eval $ac_link) 2>conftest.er1
3883 ac_status=$?
3884 grep -v '^ *+' conftest.er1 >conftest.err
3885 rm -f conftest.er1
3886 cat conftest.err >&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } &&
3889 { ac_try='test -z "$ac_c_werror_flag"
3890 || test ! -s conftest.err'
3891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892 (eval $ac_try) 2>&5
3893 ac_status=$?
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; } &&
3896 { ac_try='test -s conftest$ac_exeext'
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 (eval $ac_try) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; }; then
3902 eval "$as_ac_var=yes"
3903 else
3904 echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3907 eval "$as_ac_var=no"
3909 rm -f conftest.err conftest.$ac_objext \
3910 conftest$ac_exeext conftest.$ac_ext
3912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3914 if test `eval echo '${'$as_ac_var'}'` = yes; then
3915 cat >>confdefs.h <<_ACEOF
3916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3917 _ACEOF
3920 done
3923 for ac_func in ceilf
3925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3926 echo "$as_me:$LINENO: checking for $ac_func" >&5
3927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3928 if eval "test \"\${$as_ac_var+set}\" = set"; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 else
3931 cat >conftest.$ac_ext <<_ACEOF
3932 /* confdefs.h. */
3933 _ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h. */
3937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3939 #define $ac_func innocuous_$ac_func
3941 /* System header to define __stub macros and hopefully few prototypes,
3942 which can conflict with char $ac_func (); below.
3943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3944 <limits.h> exists even on freestanding compilers. */
3946 #ifdef __STDC__
3947 # include <limits.h>
3948 #else
3949 # include <assert.h>
3950 #endif
3952 #undef $ac_func
3954 /* Override any gcc2 internal prototype to avoid an error. */
3955 #ifdef __cplusplus
3956 extern "C"
3958 #endif
3959 /* We use char because int might match the return type of a gcc2
3960 builtin and then its argument prototype would still apply. */
3961 char $ac_func ();
3962 /* The GNU C library defines this for functions which it implements
3963 to always fail with ENOSYS. Some functions are actually named
3964 something starting with __ and the normal name is an alias. */
3965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3966 choke me
3967 #else
3968 char (*f) () = $ac_func;
3969 #endif
3970 #ifdef __cplusplus
3972 #endif
3975 main ()
3977 return f != $ac_func;
3979 return 0;
3981 _ACEOF
3982 rm -f conftest.$ac_objext conftest$ac_exeext
3983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3984 (eval $ac_link) 2>conftest.er1
3985 ac_status=$?
3986 grep -v '^ *+' conftest.er1 >conftest.err
3987 rm -f conftest.er1
3988 cat conftest.err >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } &&
3991 { ac_try='test -z "$ac_c_werror_flag"
3992 || test ! -s conftest.err'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 (eval $ac_try) 2>&5
3995 ac_status=$?
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; } &&
3998 { ac_try='test -s conftest$ac_exeext'
3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 (eval $ac_try) 2>&5
4001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; }; then
4004 eval "$as_ac_var=yes"
4005 else
4006 echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4009 eval "$as_ac_var=no"
4011 rm -f conftest.err conftest.$ac_objext \
4012 conftest$ac_exeext conftest.$ac_ext
4014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4015 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4016 if test `eval echo '${'$as_ac_var'}'` = yes; then
4017 cat >>confdefs.h <<_ACEOF
4018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4019 _ACEOF
4022 done
4025 for ac_func in cosf
4027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4028 echo "$as_me:$LINENO: checking for $ac_func" >&5
4029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4030 if eval "test \"\${$as_ac_var+set}\" = set"; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
4032 else
4033 cat >conftest.$ac_ext <<_ACEOF
4034 /* confdefs.h. */
4035 _ACEOF
4036 cat confdefs.h >>conftest.$ac_ext
4037 cat >>conftest.$ac_ext <<_ACEOF
4038 /* end confdefs.h. */
4039 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4041 #define $ac_func innocuous_$ac_func
4043 /* System header to define __stub macros and hopefully few prototypes,
4044 which can conflict with char $ac_func (); below.
4045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4046 <limits.h> exists even on freestanding compilers. */
4048 #ifdef __STDC__
4049 # include <limits.h>
4050 #else
4051 # include <assert.h>
4052 #endif
4054 #undef $ac_func
4056 /* Override any gcc2 internal prototype to avoid an error. */
4057 #ifdef __cplusplus
4058 extern "C"
4060 #endif
4061 /* We use char because int might match the return type of a gcc2
4062 builtin and then its argument prototype would still apply. */
4063 char $ac_func ();
4064 /* The GNU C library defines this for functions which it implements
4065 to always fail with ENOSYS. Some functions are actually named
4066 something starting with __ and the normal name is an alias. */
4067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4068 choke me
4069 #else
4070 char (*f) () = $ac_func;
4071 #endif
4072 #ifdef __cplusplus
4074 #endif
4077 main ()
4079 return f != $ac_func;
4081 return 0;
4083 _ACEOF
4084 rm -f conftest.$ac_objext conftest$ac_exeext
4085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4086 (eval $ac_link) 2>conftest.er1
4087 ac_status=$?
4088 grep -v '^ *+' conftest.er1 >conftest.err
4089 rm -f conftest.er1
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } &&
4093 { ac_try='test -z "$ac_c_werror_flag"
4094 || test ! -s conftest.err'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096 (eval $ac_try) 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; } &&
4100 { ac_try='test -s conftest$ac_exeext'
4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 (eval $ac_try) 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4106 eval "$as_ac_var=yes"
4107 else
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4111 eval "$as_ac_var=no"
4113 rm -f conftest.err conftest.$ac_objext \
4114 conftest$ac_exeext conftest.$ac_ext
4116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4117 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4118 if test `eval echo '${'$as_ac_var'}'` = yes; then
4119 cat >>confdefs.h <<_ACEOF
4120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4121 _ACEOF
4124 done
4127 for ac_func in sinf
4129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4130 echo "$as_me:$LINENO: checking for $ac_func" >&5
4131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4132 if eval "test \"\${$as_ac_var+set}\" = set"; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135 cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h. */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4143 #define $ac_func innocuous_$ac_func
4145 /* System header to define __stub macros and hopefully few prototypes,
4146 which can conflict with char $ac_func (); below.
4147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4148 <limits.h> exists even on freestanding compilers. */
4150 #ifdef __STDC__
4151 # include <limits.h>
4152 #else
4153 # include <assert.h>
4154 #endif
4156 #undef $ac_func
4158 /* Override any gcc2 internal prototype to avoid an error. */
4159 #ifdef __cplusplus
4160 extern "C"
4162 #endif
4163 /* We use char because int might match the return type of a gcc2
4164 builtin and then its argument prototype would still apply. */
4165 char $ac_func ();
4166 /* The GNU C library defines this for functions which it implements
4167 to always fail with ENOSYS. Some functions are actually named
4168 something starting with __ and the normal name is an alias. */
4169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4170 choke me
4171 #else
4172 char (*f) () = $ac_func;
4173 #endif
4174 #ifdef __cplusplus
4176 #endif
4179 main ()
4181 return f != $ac_func;
4183 return 0;
4185 _ACEOF
4186 rm -f conftest.$ac_objext conftest$ac_exeext
4187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4188 (eval $ac_link) 2>conftest.er1
4189 ac_status=$?
4190 grep -v '^ *+' conftest.er1 >conftest.err
4191 rm -f conftest.er1
4192 cat conftest.err >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } &&
4195 { ac_try='test -z "$ac_c_werror_flag"
4196 || test ! -s conftest.err'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 (eval $ac_try) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; } &&
4202 { ac_try='test -s conftest$ac_exeext'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 (eval $ac_try) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; }; then
4208 eval "$as_ac_var=yes"
4209 else
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4213 eval "$as_ac_var=no"
4215 rm -f conftest.err conftest.$ac_objext \
4216 conftest$ac_exeext conftest.$ac_ext
4218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4220 if test `eval echo '${'$as_ac_var'}'` = yes; then
4221 cat >>confdefs.h <<_ACEOF
4222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4223 _ACEOF
4226 done
4229 for ac_func in acosf
4231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4232 echo "$as_me:$LINENO: checking for $ac_func" >&5
4233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4234 if eval "test \"\${$as_ac_var+set}\" = set"; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4236 else
4237 cat >conftest.$ac_ext <<_ACEOF
4238 /* confdefs.h. */
4239 _ACEOF
4240 cat confdefs.h >>conftest.$ac_ext
4241 cat >>conftest.$ac_ext <<_ACEOF
4242 /* end confdefs.h. */
4243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4245 #define $ac_func innocuous_$ac_func
4247 /* System header to define __stub macros and hopefully few prototypes,
4248 which can conflict with char $ac_func (); below.
4249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4250 <limits.h> exists even on freestanding compilers. */
4252 #ifdef __STDC__
4253 # include <limits.h>
4254 #else
4255 # include <assert.h>
4256 #endif
4258 #undef $ac_func
4260 /* Override any gcc2 internal prototype to avoid an error. */
4261 #ifdef __cplusplus
4262 extern "C"
4264 #endif
4265 /* We use char because int might match the return type of a gcc2
4266 builtin and then its argument prototype would still apply. */
4267 char $ac_func ();
4268 /* The GNU C library defines this for functions which it implements
4269 to always fail with ENOSYS. Some functions are actually named
4270 something starting with __ and the normal name is an alias. */
4271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4272 choke me
4273 #else
4274 char (*f) () = $ac_func;
4275 #endif
4276 #ifdef __cplusplus
4278 #endif
4281 main ()
4283 return f != $ac_func;
4285 return 0;
4287 _ACEOF
4288 rm -f conftest.$ac_objext conftest$ac_exeext
4289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4290 (eval $ac_link) 2>conftest.er1
4291 ac_status=$?
4292 grep -v '^ *+' conftest.er1 >conftest.err
4293 rm -f conftest.er1
4294 cat conftest.err >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } &&
4297 { ac_try='test -z "$ac_c_werror_flag"
4298 || test ! -s conftest.err'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 (eval $ac_try) 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; } &&
4304 { ac_try='test -s conftest$ac_exeext'
4305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306 (eval $ac_try) 2>&5
4307 ac_status=$?
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; }; then
4310 eval "$as_ac_var=yes"
4311 else
4312 echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4315 eval "$as_ac_var=no"
4317 rm -f conftest.err conftest.$ac_objext \
4318 conftest$ac_exeext conftest.$ac_ext
4320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4322 if test `eval echo '${'$as_ac_var'}'` = yes; then
4323 cat >>confdefs.h <<_ACEOF
4324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4325 _ACEOF
4328 done
4331 for ac_func in fmodf
4333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4334 echo "$as_me:$LINENO: checking for $ac_func" >&5
4335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4336 if eval "test \"\${$as_ac_var+set}\" = set"; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4338 else
4339 cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h. */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4347 #define $ac_func innocuous_$ac_func
4349 /* System header to define __stub macros and hopefully few prototypes,
4350 which can conflict with char $ac_func (); below.
4351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4352 <limits.h> exists even on freestanding compilers. */
4354 #ifdef __STDC__
4355 # include <limits.h>
4356 #else
4357 # include <assert.h>
4358 #endif
4360 #undef $ac_func
4362 /* Override any gcc2 internal prototype to avoid an error. */
4363 #ifdef __cplusplus
4364 extern "C"
4366 #endif
4367 /* We use char because int might match the return type of a gcc2
4368 builtin and then its argument prototype would still apply. */
4369 char $ac_func ();
4370 /* The GNU C library defines this for functions which it implements
4371 to always fail with ENOSYS. Some functions are actually named
4372 something starting with __ and the normal name is an alias. */
4373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4374 choke me
4375 #else
4376 char (*f) () = $ac_func;
4377 #endif
4378 #ifdef __cplusplus
4380 #endif
4383 main ()
4385 return f != $ac_func;
4387 return 0;
4389 _ACEOF
4390 rm -f conftest.$ac_objext conftest$ac_exeext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4392 (eval $ac_link) 2>conftest.er1
4393 ac_status=$?
4394 grep -v '^ *+' conftest.er1 >conftest.err
4395 rm -f conftest.er1
4396 cat conftest.err >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); } &&
4399 { ac_try='test -z "$ac_c_werror_flag"
4400 || test ! -s conftest.err'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 (eval $ac_try) 2>&5
4403 ac_status=$?
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; } &&
4406 { ac_try='test -s conftest$ac_exeext'
4407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 (eval $ac_try) 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; }; then
4412 eval "$as_ac_var=yes"
4413 else
4414 echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4417 eval "$as_ac_var=no"
4419 rm -f conftest.err conftest.$ac_objext \
4420 conftest$ac_exeext conftest.$ac_ext
4422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4423 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4424 if test `eval echo '${'$as_ac_var'}'` = yes; then
4425 cat >>confdefs.h <<_ACEOF
4426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4427 _ACEOF
4430 done
4433 for ac_func in fabsf
4435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4436 echo "$as_me:$LINENO: checking for $ac_func" >&5
4437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4438 if eval "test \"\${$as_ac_var+set}\" = set"; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441 cat >conftest.$ac_ext <<_ACEOF
4442 /* confdefs.h. */
4443 _ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h. */
4447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4449 #define $ac_func innocuous_$ac_func
4451 /* System header to define __stub macros and hopefully few prototypes,
4452 which can conflict with char $ac_func (); below.
4453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4454 <limits.h> exists even on freestanding compilers. */
4456 #ifdef __STDC__
4457 # include <limits.h>
4458 #else
4459 # include <assert.h>
4460 #endif
4462 #undef $ac_func
4464 /* Override any gcc2 internal prototype to avoid an error. */
4465 #ifdef __cplusplus
4466 extern "C"
4468 #endif
4469 /* We use char because int might match the return type of a gcc2
4470 builtin and then its argument prototype would still apply. */
4471 char $ac_func ();
4472 /* The GNU C library defines this for functions which it implements
4473 to always fail with ENOSYS. Some functions are actually named
4474 something starting with __ and the normal name is an alias. */
4475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4476 choke me
4477 #else
4478 char (*f) () = $ac_func;
4479 #endif
4480 #ifdef __cplusplus
4482 #endif
4485 main ()
4487 return f != $ac_func;
4489 return 0;
4491 _ACEOF
4492 rm -f conftest.$ac_objext conftest$ac_exeext
4493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4494 (eval $ac_link) 2>conftest.er1
4495 ac_status=$?
4496 grep -v '^ *+' conftest.er1 >conftest.err
4497 rm -f conftest.er1
4498 cat conftest.err >&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); } &&
4501 { ac_try='test -z "$ac_c_werror_flag"
4502 || test ! -s conftest.err'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504 (eval $ac_try) 2>&5
4505 ac_status=$?
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; } &&
4508 { ac_try='test -s conftest$ac_exeext'
4509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 (eval $ac_try) 2>&5
4511 ac_status=$?
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }; }; then
4514 eval "$as_ac_var=yes"
4515 else
4516 echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4519 eval "$as_ac_var=no"
4521 rm -f conftest.err conftest.$ac_objext \
4522 conftest$ac_exeext conftest.$ac_ext
4524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4525 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4526 if test `eval echo '${'$as_ac_var'}'` = yes; then
4527 cat >>confdefs.h <<_ACEOF
4528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4529 _ACEOF
4532 done
4535 for ac_func in powf
4537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4538 echo "$as_me:$LINENO: checking for $ac_func" >&5
4539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4540 if eval "test \"\${$as_ac_var+set}\" = set"; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 else
4543 cat >conftest.$ac_ext <<_ACEOF
4544 /* confdefs.h. */
4545 _ACEOF
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h. */
4549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4551 #define $ac_func innocuous_$ac_func
4553 /* System header to define __stub macros and hopefully few prototypes,
4554 which can conflict with char $ac_func (); below.
4555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4556 <limits.h> exists even on freestanding compilers. */
4558 #ifdef __STDC__
4559 # include <limits.h>
4560 #else
4561 # include <assert.h>
4562 #endif
4564 #undef $ac_func
4566 /* Override any gcc2 internal prototype to avoid an error. */
4567 #ifdef __cplusplus
4568 extern "C"
4570 #endif
4571 /* We use char because int might match the return type of a gcc2
4572 builtin and then its argument prototype would still apply. */
4573 char $ac_func ();
4574 /* The GNU C library defines this for functions which it implements
4575 to always fail with ENOSYS. Some functions are actually named
4576 something starting with __ and the normal name is an alias. */
4577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4578 choke me
4579 #else
4580 char (*f) () = $ac_func;
4581 #endif
4582 #ifdef __cplusplus
4584 #endif
4587 main ()
4589 return f != $ac_func;
4591 return 0;
4593 _ACEOF
4594 rm -f conftest.$ac_objext conftest$ac_exeext
4595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4596 (eval $ac_link) 2>conftest.er1
4597 ac_status=$?
4598 grep -v '^ *+' conftest.er1 >conftest.err
4599 rm -f conftest.er1
4600 cat conftest.err >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } &&
4603 { ac_try='test -z "$ac_c_werror_flag"
4604 || test ! -s conftest.err'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 (eval $ac_try) 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; } &&
4610 { ac_try='test -s conftest$ac_exeext'
4611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 (eval $ac_try) 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
4616 eval "$as_ac_var=yes"
4617 else
4618 echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.$ac_ext >&5
4621 eval "$as_ac_var=no"
4623 rm -f conftest.err conftest.$ac_objext \
4624 conftest$ac_exeext conftest.$ac_ext
4626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4628 if test `eval echo '${'$as_ac_var'}'` = yes; then
4629 cat >>confdefs.h <<_ACEOF
4630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4631 _ACEOF
4634 done
4637 # If we don't have ftello, we'll use ftell.
4639 for ac_func in ftello
4641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4642 echo "$as_me:$LINENO: checking for $ac_func" >&5
4643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4644 if eval "test \"\${$as_ac_var+set}\" = set"; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647 cat >conftest.$ac_ext <<_ACEOF
4648 /* confdefs.h. */
4649 _ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4655 #define $ac_func innocuous_$ac_func
4657 /* System header to define __stub macros and hopefully few prototypes,
4658 which can conflict with char $ac_func (); below.
4659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4660 <limits.h> exists even on freestanding compilers. */
4662 #ifdef __STDC__
4663 # include <limits.h>
4664 #else
4665 # include <assert.h>
4666 #endif
4668 #undef $ac_func
4670 /* Override any gcc2 internal prototype to avoid an error. */
4671 #ifdef __cplusplus
4672 extern "C"
4674 #endif
4675 /* We use char because int might match the return type of a gcc2
4676 builtin and then its argument prototype would still apply. */
4677 char $ac_func ();
4678 /* The GNU C library defines this for functions which it implements
4679 to always fail with ENOSYS. Some functions are actually named
4680 something starting with __ and the normal name is an alias. */
4681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4682 choke me
4683 #else
4684 char (*f) () = $ac_func;
4685 #endif
4686 #ifdef __cplusplus
4688 #endif
4691 main ()
4693 return f != $ac_func;
4695 return 0;
4697 _ACEOF
4698 rm -f conftest.$ac_objext conftest$ac_exeext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4700 (eval $ac_link) 2>conftest.er1
4701 ac_status=$?
4702 grep -v '^ *+' conftest.er1 >conftest.err
4703 rm -f conftest.er1
4704 cat conftest.err >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } &&
4707 { ac_try='test -z "$ac_c_werror_flag"
4708 || test ! -s conftest.err'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 (eval $ac_try) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; } &&
4714 { ac_try='test -s conftest$ac_exeext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716 (eval $ac_try) 2>&5
4717 ac_status=$?
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4720 eval "$as_ac_var=yes"
4721 else
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4725 eval "$as_ac_var=no"
4727 rm -f conftest.err conftest.$ac_objext \
4728 conftest$ac_exeext conftest.$ac_ext
4730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4731 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4732 if test `eval echo '${'$as_ac_var'}'` = yes; then
4733 cat >>confdefs.h <<_ACEOF
4734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4735 _ACEOF
4738 done
4742 # Checks for getdelim, this is a GNU extension.
4743 CFLAGS="$CFLAGS -D_GNU_SOURCE"
4745 for ac_func in getdelim
4747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4748 echo "$as_me:$LINENO: checking for $ac_func" >&5
4749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4750 if eval "test \"\${$as_ac_var+set}\" = set"; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 else
4753 cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h. */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4761 #define $ac_func innocuous_$ac_func
4763 /* System header to define __stub macros and hopefully few prototypes,
4764 which can conflict with char $ac_func (); below.
4765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4766 <limits.h> exists even on freestanding compilers. */
4768 #ifdef __STDC__
4769 # include <limits.h>
4770 #else
4771 # include <assert.h>
4772 #endif
4774 #undef $ac_func
4776 /* Override any gcc2 internal prototype to avoid an error. */
4777 #ifdef __cplusplus
4778 extern "C"
4780 #endif
4781 /* We use char because int might match the return type of a gcc2
4782 builtin and then its argument prototype would still apply. */
4783 char $ac_func ();
4784 /* The GNU C library defines this for functions which it implements
4785 to always fail with ENOSYS. Some functions are actually named
4786 something starting with __ and the normal name is an alias. */
4787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4788 choke me
4789 #else
4790 char (*f) () = $ac_func;
4791 #endif
4792 #ifdef __cplusplus
4794 #endif
4797 main ()
4799 return f != $ac_func;
4801 return 0;
4803 _ACEOF
4804 rm -f conftest.$ac_objext conftest$ac_exeext
4805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4806 (eval $ac_link) 2>conftest.er1
4807 ac_status=$?
4808 grep -v '^ *+' conftest.er1 >conftest.err
4809 rm -f conftest.er1
4810 cat conftest.err >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } &&
4813 { ac_try='test -z "$ac_c_werror_flag"
4814 || test ! -s conftest.err'
4815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 (eval $ac_try) 2>&5
4817 ac_status=$?
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; } &&
4820 { ac_try='test -s conftest$ac_exeext'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 (eval $ac_try) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; }; then
4826 eval "$as_ac_var=yes"
4827 else
4828 echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.$ac_ext >&5
4831 eval "$as_ac_var=no"
4833 rm -f conftest.err conftest.$ac_objext \
4834 conftest$ac_exeext conftest.$ac_ext
4836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4838 if test `eval echo '${'$as_ac_var'}'` = yes; then
4839 cat >>confdefs.h <<_ACEOF
4840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4841 _ACEOF
4843 have_getdelim="yes"
4845 else
4847 have_getdelim="no"
4850 done
4855 if test "$have_getdelim" = "yes"; then
4856 GETDELIM_TRUE=
4857 GETDELIM_FALSE='#'
4858 else
4859 GETDELIM_TRUE='#'
4860 GETDELIM_FALSE=
4865 # Checks for getopt_long, another GNU extension.
4867 for ac_func in getopt_long
4869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4870 echo "$as_me:$LINENO: checking for $ac_func" >&5
4871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4872 if eval "test \"\${$as_ac_var+set}\" = set"; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875 cat >conftest.$ac_ext <<_ACEOF
4876 /* confdefs.h. */
4877 _ACEOF
4878 cat confdefs.h >>conftest.$ac_ext
4879 cat >>conftest.$ac_ext <<_ACEOF
4880 /* end confdefs.h. */
4881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4883 #define $ac_func innocuous_$ac_func
4885 /* System header to define __stub macros and hopefully few prototypes,
4886 which can conflict with char $ac_func (); below.
4887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4888 <limits.h> exists even on freestanding compilers. */
4890 #ifdef __STDC__
4891 # include <limits.h>
4892 #else
4893 # include <assert.h>
4894 #endif
4896 #undef $ac_func
4898 /* Override any gcc2 internal prototype to avoid an error. */
4899 #ifdef __cplusplus
4900 extern "C"
4902 #endif
4903 /* We use char because int might match the return type of a gcc2
4904 builtin and then its argument prototype would still apply. */
4905 char $ac_func ();
4906 /* The GNU C library defines this for functions which it implements
4907 to always fail with ENOSYS. Some functions are actually named
4908 something starting with __ and the normal name is an alias. */
4909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4910 choke me
4911 #else
4912 char (*f) () = $ac_func;
4913 #endif
4914 #ifdef __cplusplus
4916 #endif
4919 main ()
4921 return f != $ac_func;
4923 return 0;
4925 _ACEOF
4926 rm -f conftest.$ac_objext conftest$ac_exeext
4927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4928 (eval $ac_link) 2>conftest.er1
4929 ac_status=$?
4930 grep -v '^ *+' conftest.er1 >conftest.err
4931 rm -f conftest.er1
4932 cat conftest.err >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } &&
4935 { ac_try='test -z "$ac_c_werror_flag"
4936 || test ! -s conftest.err'
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 (eval $ac_try) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; } &&
4942 { ac_try='test -s conftest$ac_exeext'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 (eval $ac_try) 2>&5
4945 ac_status=$?
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; }; then
4948 eval "$as_ac_var=yes"
4949 else
4950 echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4953 eval "$as_ac_var=no"
4955 rm -f conftest.err conftest.$ac_objext \
4956 conftest$ac_exeext conftest.$ac_ext
4958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4959 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4960 if test `eval echo '${'$as_ac_var'}'` = yes; then
4961 cat >>confdefs.h <<_ACEOF
4962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4963 _ACEOF
4965 have_getopt_long="yes"
4967 else
4969 have_getopt_long="no"
4972 done
4977 if test "$have_getopt_long" = "yes"; then
4978 GETOPT_LONG_TRUE=
4979 GETOPT_LONG_FALSE='#'
4980 else
4981 GETOPT_LONG_TRUE='#'
4982 GETOPT_LONG_FALSE=
4987 if test "$have_getdelim" = "no" ||
4988 test "$have_getopt_long" = "no"; then
4991 if true; then
4992 NEED_REPLACEMENTS_TRUE=
4993 NEED_REPLACEMENTS_FALSE='#'
4994 else
4995 NEED_REPLACEMENTS_TRUE='#'
4996 NEED_REPLACEMENTS_FALSE=
4999 CFLAGS="$CFLAGS -I${srcdir}/../lib"
5000 else
5003 if false; then
5004 NEED_REPLACEMENTS_TRUE=
5005 NEED_REPLACEMENTS_FALSE='#'
5006 else
5007 NEED_REPLACEMENTS_TRUE='#'
5008 NEED_REPLACEMENTS_FALSE=
5014 # Checks for flavours of varargs macros (borrowed from glib-2)
5015 # ISO C99
5016 echo "$as_me:$LINENO: checking for ISO C99 varargs macros" >&5
5017 echo $ECHO_N "checking for ISO C99 varargs macros... $ECHO_C" >&6
5019 cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h. */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5027 main ()
5030 int a(int p1, int p2, int p3);
5031 #define call_a(...) a(1,__VA_ARGS__)
5032 call_a(2,3);
5035 return 0;
5037 _ACEOF
5038 rm -f conftest.$ac_objext
5039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040 (eval $ac_compile) 2>conftest.er1
5041 ac_status=$?
5042 grep -v '^ *+' conftest.er1 >conftest.err
5043 rm -f conftest.er1
5044 cat conftest.err >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } &&
5047 { ac_try='test -z "$ac_c_werror_flag"
5048 || test ! -s conftest.err'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 (eval $ac_try) 2>&5
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; } &&
5054 { ac_try='test -s conftest.$ac_objext'
5055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056 (eval $ac_try) 2>&5
5057 ac_status=$?
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; }; then
5060 have_iso_c_varargs=yes
5061 else
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5065 have_iso_c_varargs=no
5067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5069 echo "$as_me:$LINENO: result: $have_iso_c_varargs" >&5
5070 echo "${ECHO_T}$have_iso_c_varargs" >&6
5072 if test $have_iso_c_varargs = yes; then
5073 iso_c_varargs=1
5074 else
5075 iso_c_varargs=0
5079 cat >>confdefs.h <<_ACEOF
5080 #define HAVE_ISO_C_VARARGS $iso_c_varargs
5081 _ACEOF
5084 # GNU C
5085 echo "$as_me:$LINENO: checking for GNU C varargs macros" >&5
5086 echo $ECHO_N "checking for GNU C varargs macros... $ECHO_C" >&6
5088 cat >conftest.$ac_ext <<_ACEOF
5089 /* confdefs.h. */
5090 _ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h. */
5096 main ()
5099 int a(int p1, int p2, int p3);
5100 #define call_a(params...) a(1,params)
5101 call_a(2,3);
5104 return 0;
5106 _ACEOF
5107 rm -f conftest.$ac_objext
5108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5109 (eval $ac_compile) 2>conftest.er1
5110 ac_status=$?
5111 grep -v '^ *+' conftest.er1 >conftest.err
5112 rm -f conftest.er1
5113 cat conftest.err >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); } &&
5116 { ac_try='test -z "$ac_c_werror_flag"
5117 || test ! -s conftest.err'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119 (eval $ac_try) 2>&5
5120 ac_status=$?
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; } &&
5123 { ac_try='test -s conftest.$ac_objext'
5124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125 (eval $ac_try) 2>&5
5126 ac_status=$?
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }; }; then
5129 have_gnu_c_varargs=yes
5130 else
5131 echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5134 have_gnu_c_varargs=no
5136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5138 echo "$as_me:$LINENO: result: $have_gnu_c_varargs" >&5
5139 echo "${ECHO_T}$have_gnu_c_varargs" >&6
5141 if test $have_gnu_c_varargs = yes; then
5142 gnu_c_varargs=1
5143 else
5144 gnu_c_varargs=0
5148 cat >>confdefs.h <<_ACEOF
5149 #define HAVE_GNU_C_VARARGS $gnu_c_varargs
5150 _ACEOF
5153 if test $have_gnu_c_varargs = no && $have_iso_c_varargs = no; then
5154 { { echo "$as_me:$LINENO: error: no variadic macros, use gcc >= 2.95 or an ISO C99 compiler" >&5
5155 echo "$as_me: error: no variadic macros, use gcc >= 2.95 or an ISO C99 compiler" >&2;}
5156 { (exit 1); exit 1; }; }
5159 # Checks for X.
5160 ac_ext=c
5161 ac_cpp='$CPP $CPPFLAGS'
5162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5165 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5166 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5167 # On Suns, sometimes $CPP names a directory.
5168 if test -n "$CPP" && test -d "$CPP"; then
5169 CPP=
5171 if test -z "$CPP"; then
5172 if test "${ac_cv_prog_CPP+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 else
5175 # Double quotes because CPP needs to be expanded
5176 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5178 ac_preproc_ok=false
5179 for ac_c_preproc_warn_flag in '' yes
5181 # Use a header file that comes with gcc, so configuring glibc
5182 # with a fresh cross-compiler works.
5183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5184 # <limits.h> exists even on freestanding compilers.
5185 # On the NeXT, cc -E runs the code through the compiler's parser,
5186 # not just through cpp. "Syntax error" is here to catch this case.
5187 cat >conftest.$ac_ext <<_ACEOF
5188 /* confdefs.h. */
5189 _ACEOF
5190 cat confdefs.h >>conftest.$ac_ext
5191 cat >>conftest.$ac_ext <<_ACEOF
5192 /* end confdefs.h. */
5193 #ifdef __STDC__
5194 # include <limits.h>
5195 #else
5196 # include <assert.h>
5197 #endif
5198 Syntax error
5199 _ACEOF
5200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5202 ac_status=$?
5203 grep -v '^ *+' conftest.er1 >conftest.err
5204 rm -f conftest.er1
5205 cat conftest.err >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); } >/dev/null; then
5208 if test -s conftest.err; then
5209 ac_cpp_err=$ac_c_preproc_warn_flag
5210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5211 else
5212 ac_cpp_err=
5214 else
5215 ac_cpp_err=yes
5217 if test -z "$ac_cpp_err"; then
5219 else
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5223 # Broken: fails on valid input.
5224 continue
5226 rm -f conftest.err conftest.$ac_ext
5228 # OK, works on sane cases. Now check whether non-existent headers
5229 # can be detected and how.
5230 cat >conftest.$ac_ext <<_ACEOF
5231 /* confdefs.h. */
5232 _ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5236 #include <ac_nonexistent.h>
5237 _ACEOF
5238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5240 ac_status=$?
5241 grep -v '^ *+' conftest.er1 >conftest.err
5242 rm -f conftest.er1
5243 cat conftest.err >&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } >/dev/null; then
5246 if test -s conftest.err; then
5247 ac_cpp_err=$ac_c_preproc_warn_flag
5248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5249 else
5250 ac_cpp_err=
5252 else
5253 ac_cpp_err=yes
5255 if test -z "$ac_cpp_err"; then
5256 # Broken: success on invalid input.
5257 continue
5258 else
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5262 # Passes both tests.
5263 ac_preproc_ok=:
5264 break
5266 rm -f conftest.err conftest.$ac_ext
5268 done
5269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5270 rm -f conftest.err conftest.$ac_ext
5271 if $ac_preproc_ok; then
5272 break
5275 done
5276 ac_cv_prog_CPP=$CPP
5279 CPP=$ac_cv_prog_CPP
5280 else
5281 ac_cv_prog_CPP=$CPP
5283 echo "$as_me:$LINENO: result: $CPP" >&5
5284 echo "${ECHO_T}$CPP" >&6
5285 ac_preproc_ok=false
5286 for ac_c_preproc_warn_flag in '' yes
5288 # Use a header file that comes with gcc, so configuring glibc
5289 # with a fresh cross-compiler works.
5290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5291 # <limits.h> exists even on freestanding compilers.
5292 # On the NeXT, cc -E runs the code through the compiler's parser,
5293 # not just through cpp. "Syntax error" is here to catch this case.
5294 cat >conftest.$ac_ext <<_ACEOF
5295 /* confdefs.h. */
5296 _ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 #ifdef __STDC__
5301 # include <limits.h>
5302 #else
5303 # include <assert.h>
5304 #endif
5305 Syntax error
5306 _ACEOF
5307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5309 ac_status=$?
5310 grep -v '^ *+' conftest.er1 >conftest.err
5311 rm -f conftest.er1
5312 cat conftest.err >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); } >/dev/null; then
5315 if test -s conftest.err; then
5316 ac_cpp_err=$ac_c_preproc_warn_flag
5317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5318 else
5319 ac_cpp_err=
5321 else
5322 ac_cpp_err=yes
5324 if test -z "$ac_cpp_err"; then
5326 else
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5330 # Broken: fails on valid input.
5331 continue
5333 rm -f conftest.err conftest.$ac_ext
5335 # OK, works on sane cases. Now check whether non-existent headers
5336 # can be detected and how.
5337 cat >conftest.$ac_ext <<_ACEOF
5338 /* confdefs.h. */
5339 _ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5343 #include <ac_nonexistent.h>
5344 _ACEOF
5345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5347 ac_status=$?
5348 grep -v '^ *+' conftest.er1 >conftest.err
5349 rm -f conftest.er1
5350 cat conftest.err >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } >/dev/null; then
5353 if test -s conftest.err; then
5354 ac_cpp_err=$ac_c_preproc_warn_flag
5355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5356 else
5357 ac_cpp_err=
5359 else
5360 ac_cpp_err=yes
5362 if test -z "$ac_cpp_err"; then
5363 # Broken: success on invalid input.
5364 continue
5365 else
5366 echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.$ac_ext >&5
5369 # Passes both tests.
5370 ac_preproc_ok=:
5371 break
5373 rm -f conftest.err conftest.$ac_ext
5375 done
5376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5377 rm -f conftest.err conftest.$ac_ext
5378 if $ac_preproc_ok; then
5380 else
5381 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5382 See \`config.log' for more details." >&5
5383 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5384 See \`config.log' for more details." >&2;}
5385 { (exit 1); exit 1; }; }
5388 ac_ext=c
5389 ac_cpp='$CPP $CPPFLAGS'
5390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5395 echo "$as_me:$LINENO: checking for X" >&5
5396 echo $ECHO_N "checking for X... $ECHO_C" >&6
5399 # Check whether --with-x or --without-x was given.
5400 if test "${with_x+set}" = set; then
5401 withval="$with_x"
5404 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5405 if test "x$with_x" = xno; then
5406 # The user explicitly disabled X.
5407 have_x=disabled
5408 else
5409 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5410 # Both variables are already set.
5411 have_x=yes
5412 else
5413 if test "${ac_cv_have_x+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 else
5416 # One or both of the vars are not set, and there is no cached value.
5417 ac_x_includes=no ac_x_libraries=no
5418 rm -fr conftest.dir
5419 if mkdir conftest.dir; then
5420 cd conftest.dir
5421 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5422 cat >Imakefile <<'_ACEOF'
5423 acfindx:
5424 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5425 _ACEOF
5426 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5427 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5428 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5429 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5430 for ac_extension in a so sl; do
5431 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5432 test -f $ac_im_libdir/libX11.$ac_extension; then
5433 ac_im_usrlibdir=$ac_im_libdir; break
5435 done
5436 # Screen out bogus values from the imake configuration. They are
5437 # bogus both because they are the default anyway, and because
5438 # using them would break gcc on systems where it needs fixed includes.
5439 case $ac_im_incroot in
5440 /usr/include) ;;
5441 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5442 esac
5443 case $ac_im_usrlibdir in
5444 /usr/lib | /lib) ;;
5445 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5446 esac
5448 cd ..
5449 rm -fr conftest.dir
5452 # Standard set of common directories for X headers.
5453 # Check X11 before X11Rn because it is often a symlink to the current release.
5454 ac_x_header_dirs='
5455 /usr/X11/include
5456 /usr/X11R6/include
5457 /usr/X11R5/include
5458 /usr/X11R4/include
5460 /usr/include/X11
5461 /usr/include/X11R6
5462 /usr/include/X11R5
5463 /usr/include/X11R4
5465 /usr/local/X11/include
5466 /usr/local/X11R6/include
5467 /usr/local/X11R5/include
5468 /usr/local/X11R4/include
5470 /usr/local/include/X11
5471 /usr/local/include/X11R6
5472 /usr/local/include/X11R5
5473 /usr/local/include/X11R4
5475 /usr/X386/include
5476 /usr/x386/include
5477 /usr/XFree86/include/X11
5479 /usr/include
5480 /usr/local/include
5481 /usr/unsupported/include
5482 /usr/athena/include
5483 /usr/local/x11r5/include
5484 /usr/lpp/Xamples/include
5486 /usr/openwin/include
5487 /usr/openwin/share/include'
5489 if test "$ac_x_includes" = no; then
5490 # Guess where to find include files, by looking for Intrinsic.h.
5491 # First, try using that file with no special directory specified.
5492 cat >conftest.$ac_ext <<_ACEOF
5493 /* confdefs.h. */
5494 _ACEOF
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h. */
5498 #include <X11/Intrinsic.h>
5499 _ACEOF
5500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5502 ac_status=$?
5503 grep -v '^ *+' conftest.er1 >conftest.err
5504 rm -f conftest.er1
5505 cat conftest.err >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } >/dev/null; then
5508 if test -s conftest.err; then
5509 ac_cpp_err=$ac_c_preproc_warn_flag
5510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5511 else
5512 ac_cpp_err=
5514 else
5515 ac_cpp_err=yes
5517 if test -z "$ac_cpp_err"; then
5518 # We can compile using X headers with no special include directory.
5519 ac_x_includes=
5520 else
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5524 for ac_dir in $ac_x_header_dirs; do
5525 if test -r "$ac_dir/X11/Intrinsic.h"; then
5526 ac_x_includes=$ac_dir
5527 break
5529 done
5531 rm -f conftest.err conftest.$ac_ext
5532 fi # $ac_x_includes = no
5534 if test "$ac_x_libraries" = no; then
5535 # Check for the libraries.
5536 # See if we find them without any special options.
5537 # Don't add to $LIBS permanently.
5538 ac_save_LIBS=$LIBS
5539 LIBS="-lXt $LIBS"
5540 cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h. */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5546 #include <X11/Intrinsic.h>
5548 main ()
5550 XtMalloc (0)
5552 return 0;
5554 _ACEOF
5555 rm -f conftest.$ac_objext conftest$ac_exeext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5557 (eval $ac_link) 2>conftest.er1
5558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } &&
5564 { ac_try='test -z "$ac_c_werror_flag"
5565 || test ! -s conftest.err'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567 (eval $ac_try) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; } &&
5571 { ac_try='test -s conftest$ac_exeext'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 (eval $ac_try) 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
5577 LIBS=$ac_save_LIBS
5578 # We can link X programs with no special library path.
5579 ac_x_libraries=
5580 else
5581 echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.$ac_ext >&5
5584 LIBS=$ac_save_LIBS
5585 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5587 # Don't even attempt the hair of trying to link an X program!
5588 for ac_extension in a so sl; do
5589 if test -r $ac_dir/libXt.$ac_extension; then
5590 ac_x_libraries=$ac_dir
5591 break 2
5593 done
5594 done
5596 rm -f conftest.err conftest.$ac_objext \
5597 conftest$ac_exeext conftest.$ac_ext
5598 fi # $ac_x_libraries = no
5600 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5601 # Didn't find X anywhere. Cache the known absence of X.
5602 ac_cv_have_x="have_x=no"
5603 else
5604 # Record where we found X for the cache.
5605 ac_cv_have_x="have_x=yes \
5606 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5611 eval "$ac_cv_have_x"
5612 fi # $with_x != no
5614 if test "$have_x" != yes; then
5615 echo "$as_me:$LINENO: result: $have_x" >&5
5616 echo "${ECHO_T}$have_x" >&6
5617 no_x=yes
5618 else
5619 # If each of the values was on the command line, it overrides each guess.
5620 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5621 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5622 # Update the cache value to reflect the command line values.
5623 ac_cv_have_x="have_x=yes \
5624 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5625 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5626 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5629 if test "$no_x" = yes; then
5630 # Not all programs may use this symbol, but it does not hurt to define it.
5632 cat >>confdefs.h <<\_ACEOF
5633 #define X_DISPLAY_MISSING 1
5634 _ACEOF
5636 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5637 else
5638 if test -n "$x_includes"; then
5639 X_CFLAGS="$X_CFLAGS -I$x_includes"
5642 # It would also be nice to do this for all -L options, not just this one.
5643 if test -n "$x_libraries"; then
5644 X_LIBS="$X_LIBS -L$x_libraries"
5645 # For Solaris; some versions of Sun CC require a space after -R and
5646 # others require no space. Words are not sufficient . . . .
5647 case `(uname -sr) 2>/dev/null` in
5648 "SunOS 5"*)
5649 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5650 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5651 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5652 cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h. */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5660 main ()
5664 return 0;
5666 _ACEOF
5667 rm -f conftest.$ac_objext conftest$ac_exeext
5668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5669 (eval $ac_link) 2>conftest.er1
5670 ac_status=$?
5671 grep -v '^ *+' conftest.er1 >conftest.err
5672 rm -f conftest.er1
5673 cat conftest.err >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } &&
5676 { ac_try='test -z "$ac_c_werror_flag"
5677 || test ! -s conftest.err'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 (eval $ac_try) 2>&5
5680 ac_status=$?
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; } &&
5683 { ac_try='test -s conftest$ac_exeext'
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685 (eval $ac_try) 2>&5
5686 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; }; then
5689 ac_R_nospace=yes
5690 else
5691 echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.$ac_ext >&5
5694 ac_R_nospace=no
5696 rm -f conftest.err conftest.$ac_objext \
5697 conftest$ac_exeext conftest.$ac_ext
5698 if test $ac_R_nospace = yes; then
5699 echo "$as_me:$LINENO: result: no" >&5
5700 echo "${ECHO_T}no" >&6
5701 X_LIBS="$X_LIBS -R$x_libraries"
5702 else
5703 LIBS="$ac_xsave_LIBS -R $x_libraries"
5704 cat >conftest.$ac_ext <<_ACEOF
5705 /* confdefs.h. */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5712 main ()
5716 return 0;
5718 _ACEOF
5719 rm -f conftest.$ac_objext conftest$ac_exeext
5720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5721 (eval $ac_link) 2>conftest.er1
5722 ac_status=$?
5723 grep -v '^ *+' conftest.er1 >conftest.err
5724 rm -f conftest.er1
5725 cat conftest.err >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); } &&
5728 { ac_try='test -z "$ac_c_werror_flag"
5729 || test ! -s conftest.err'
5730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731 (eval $ac_try) 2>&5
5732 ac_status=$?
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); }; } &&
5735 { ac_try='test -s conftest$ac_exeext'
5736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 (eval $ac_try) 2>&5
5738 ac_status=$?
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; }; then
5741 ac_R_space=yes
5742 else
5743 echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.$ac_ext >&5
5746 ac_R_space=no
5748 rm -f conftest.err conftest.$ac_objext \
5749 conftest$ac_exeext conftest.$ac_ext
5750 if test $ac_R_space = yes; then
5751 echo "$as_me:$LINENO: result: yes" >&5
5752 echo "${ECHO_T}yes" >&6
5753 X_LIBS="$X_LIBS -R $x_libraries"
5754 else
5755 echo "$as_me:$LINENO: result: neither works" >&5
5756 echo "${ECHO_T}neither works" >&6
5759 LIBS=$ac_xsave_LIBS
5760 esac
5763 # Check for system-dependent libraries X programs must link with.
5764 # Do this before checking for the system-independent R6 libraries
5765 # (-lICE), since we may need -lsocket or whatever for X linking.
5767 if test "$ISC" = yes; then
5768 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5769 else
5770 # Martyn Johnson says this is needed for Ultrix, if the X
5771 # libraries were built with DECnet support. And Karl Berry says
5772 # the Alpha needs dnet_stub (dnet does not exist).
5773 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5774 cat >conftest.$ac_ext <<_ACEOF
5775 /* confdefs.h. */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5781 /* Override any gcc2 internal prototype to avoid an error. */
5782 #ifdef __cplusplus
5783 extern "C"
5784 #endif
5785 /* We use char because int might match the return type of a gcc2
5786 builtin and then its argument prototype would still apply. */
5787 char XOpenDisplay ();
5789 main ()
5791 XOpenDisplay ();
5793 return 0;
5795 _ACEOF
5796 rm -f conftest.$ac_objext conftest$ac_exeext
5797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5798 (eval $ac_link) 2>conftest.er1
5799 ac_status=$?
5800 grep -v '^ *+' conftest.er1 >conftest.err
5801 rm -f conftest.er1
5802 cat conftest.err >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } &&
5805 { ac_try='test -z "$ac_c_werror_flag"
5806 || test ! -s conftest.err'
5807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808 (eval $ac_try) 2>&5
5809 ac_status=$?
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; } &&
5812 { ac_try='test -s conftest$ac_exeext'
5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814 (eval $ac_try) 2>&5
5815 ac_status=$?
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; }; then
5819 else
5820 echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5823 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5824 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5825 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
5828 ac_check_lib_save_LIBS=$LIBS
5829 LIBS="-ldnet $LIBS"
5830 cat >conftest.$ac_ext <<_ACEOF
5831 /* confdefs.h. */
5832 _ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h. */
5837 /* Override any gcc2 internal prototype to avoid an error. */
5838 #ifdef __cplusplus
5839 extern "C"
5840 #endif
5841 /* We use char because int might match the return type of a gcc2
5842 builtin and then its argument prototype would still apply. */
5843 char dnet_ntoa ();
5845 main ()
5847 dnet_ntoa ();
5849 return 0;
5851 _ACEOF
5852 rm -f conftest.$ac_objext conftest$ac_exeext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5854 (eval $ac_link) 2>conftest.er1
5855 ac_status=$?
5856 grep -v '^ *+' conftest.er1 >conftest.err
5857 rm -f conftest.er1
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } &&
5861 { ac_try='test -z "$ac_c_werror_flag"
5862 || test ! -s conftest.err'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; } &&
5868 { ac_try='test -s conftest$ac_exeext'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5874 ac_cv_lib_dnet_dnet_ntoa=yes
5875 else
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5879 ac_cv_lib_dnet_dnet_ntoa=no
5881 rm -f conftest.err conftest.$ac_objext \
5882 conftest$ac_exeext conftest.$ac_ext
5883 LIBS=$ac_check_lib_save_LIBS
5885 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5886 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5887 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5888 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5891 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5892 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5893 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5894 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897 ac_check_lib_save_LIBS=$LIBS
5898 LIBS="-ldnet_stub $LIBS"
5899 cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h. */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5906 /* Override any gcc2 internal prototype to avoid an error. */
5907 #ifdef __cplusplus
5908 extern "C"
5909 #endif
5910 /* We use char because int might match the return type of a gcc2
5911 builtin and then its argument prototype would still apply. */
5912 char dnet_ntoa ();
5914 main ()
5916 dnet_ntoa ();
5918 return 0;
5920 _ACEOF
5921 rm -f conftest.$ac_objext conftest$ac_exeext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5923 (eval $ac_link) 2>conftest.er1
5924 ac_status=$?
5925 grep -v '^ *+' conftest.er1 >conftest.err
5926 rm -f conftest.er1
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } &&
5930 { ac_try='test -z "$ac_c_werror_flag"
5931 || test ! -s conftest.err'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 (eval $ac_try) 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try='test -s conftest$ac_exeext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 (eval $ac_try) 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5944 else
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5948 ac_cv_lib_dnet_stub_dnet_ntoa=no
5950 rm -f conftest.err conftest.$ac_objext \
5951 conftest$ac_exeext conftest.$ac_ext
5952 LIBS=$ac_check_lib_save_LIBS
5954 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5955 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5956 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5957 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5962 rm -f conftest.err conftest.$ac_objext \
5963 conftest$ac_exeext conftest.$ac_ext
5964 LIBS="$ac_xsave_LIBS"
5966 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5967 # to get the SysV transport functions.
5968 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5969 # needs -lnsl.
5970 # The nsl library prevents programs from opening the X display
5971 # on Irix 5.2, according to T.E. Dickey.
5972 # The functions gethostbyname, getservbyname, and inet_addr are
5973 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5974 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5975 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5976 if test "${ac_cv_func_gethostbyname+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979 cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h. */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5985 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5987 #define gethostbyname innocuous_gethostbyname
5989 /* System header to define __stub macros and hopefully few prototypes,
5990 which can conflict with char gethostbyname (); below.
5991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5992 <limits.h> exists even on freestanding compilers. */
5994 #ifdef __STDC__
5995 # include <limits.h>
5996 #else
5997 # include <assert.h>
5998 #endif
6000 #undef gethostbyname
6002 /* Override any gcc2 internal prototype to avoid an error. */
6003 #ifdef __cplusplus
6004 extern "C"
6006 #endif
6007 /* We use char because int might match the return type of a gcc2
6008 builtin and then its argument prototype would still apply. */
6009 char gethostbyname ();
6010 /* The GNU C library defines this for functions which it implements
6011 to always fail with ENOSYS. Some functions are actually named
6012 something starting with __ and the normal name is an alias. */
6013 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6014 choke me
6015 #else
6016 char (*f) () = gethostbyname;
6017 #endif
6018 #ifdef __cplusplus
6020 #endif
6023 main ()
6025 return f != gethostbyname;
6027 return 0;
6029 _ACEOF
6030 rm -f conftest.$ac_objext conftest$ac_exeext
6031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6032 (eval $ac_link) 2>conftest.er1
6033 ac_status=$?
6034 grep -v '^ *+' conftest.er1 >conftest.err
6035 rm -f conftest.er1
6036 cat conftest.err >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } &&
6039 { ac_try='test -z "$ac_c_werror_flag"
6040 || test ! -s conftest.err'
6041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 (eval $ac_try) 2>&5
6043 ac_status=$?
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }; } &&
6046 { ac_try='test -s conftest$ac_exeext'
6047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 (eval $ac_try) 2>&5
6049 ac_status=$?
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }; }; then
6052 ac_cv_func_gethostbyname=yes
6053 else
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6057 ac_cv_func_gethostbyname=no
6059 rm -f conftest.err conftest.$ac_objext \
6060 conftest$ac_exeext conftest.$ac_ext
6062 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6063 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6065 if test $ac_cv_func_gethostbyname = no; then
6066 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6067 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6068 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071 ac_check_lib_save_LIBS=$LIBS
6072 LIBS="-lnsl $LIBS"
6073 cat >conftest.$ac_ext <<_ACEOF
6074 /* confdefs.h. */
6075 _ACEOF
6076 cat confdefs.h >>conftest.$ac_ext
6077 cat >>conftest.$ac_ext <<_ACEOF
6078 /* end confdefs.h. */
6080 /* Override any gcc2 internal prototype to avoid an error. */
6081 #ifdef __cplusplus
6082 extern "C"
6083 #endif
6084 /* We use char because int might match the return type of a gcc2
6085 builtin and then its argument prototype would still apply. */
6086 char gethostbyname ();
6088 main ()
6090 gethostbyname ();
6092 return 0;
6094 _ACEOF
6095 rm -f conftest.$ac_objext conftest$ac_exeext
6096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6097 (eval $ac_link) 2>conftest.er1
6098 ac_status=$?
6099 grep -v '^ *+' conftest.er1 >conftest.err
6100 rm -f conftest.er1
6101 cat conftest.err >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } &&
6104 { ac_try='test -z "$ac_c_werror_flag"
6105 || test ! -s conftest.err'
6106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107 (eval $ac_try) 2>&5
6108 ac_status=$?
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }; } &&
6111 { ac_try='test -s conftest$ac_exeext'
6112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113 (eval $ac_try) 2>&5
6114 ac_status=$?
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); }; }; then
6117 ac_cv_lib_nsl_gethostbyname=yes
6118 else
6119 echo "$as_me: failed program was:" >&5
6120 sed 's/^/| /' conftest.$ac_ext >&5
6122 ac_cv_lib_nsl_gethostbyname=no
6124 rm -f conftest.err conftest.$ac_objext \
6125 conftest$ac_exeext conftest.$ac_ext
6126 LIBS=$ac_check_lib_save_LIBS
6128 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6129 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6130 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6131 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6134 if test $ac_cv_lib_nsl_gethostbyname = no; then
6135 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6136 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
6137 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 else
6140 ac_check_lib_save_LIBS=$LIBS
6141 LIBS="-lbsd $LIBS"
6142 cat >conftest.$ac_ext <<_ACEOF
6143 /* confdefs.h. */
6144 _ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h. */
6149 /* Override any gcc2 internal prototype to avoid an error. */
6150 #ifdef __cplusplus
6151 extern "C"
6152 #endif
6153 /* We use char because int might match the return type of a gcc2
6154 builtin and then its argument prototype would still apply. */
6155 char gethostbyname ();
6157 main ()
6159 gethostbyname ();
6161 return 0;
6163 _ACEOF
6164 rm -f conftest.$ac_objext conftest$ac_exeext
6165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6166 (eval $ac_link) 2>conftest.er1
6167 ac_status=$?
6168 grep -v '^ *+' conftest.er1 >conftest.err
6169 rm -f conftest.er1
6170 cat conftest.err >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } &&
6173 { ac_try='test -z "$ac_c_werror_flag"
6174 || test ! -s conftest.err'
6175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176 (eval $ac_try) 2>&5
6177 ac_status=$?
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; } &&
6180 { ac_try='test -s conftest$ac_exeext'
6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 (eval $ac_try) 2>&5
6183 ac_status=$?
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; }; then
6186 ac_cv_lib_bsd_gethostbyname=yes
6187 else
6188 echo "$as_me: failed program was:" >&5
6189 sed 's/^/| /' conftest.$ac_ext >&5
6191 ac_cv_lib_bsd_gethostbyname=no
6193 rm -f conftest.err conftest.$ac_objext \
6194 conftest$ac_exeext conftest.$ac_ext
6195 LIBS=$ac_check_lib_save_LIBS
6197 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6198 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6199 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6200 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6206 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6207 # socket/setsockopt and other routines are undefined under SCO ODT
6208 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6209 # on later versions), says Simon Leinen: it contains gethostby*
6210 # variants that don't use the name server (or something). -lsocket
6211 # must be given before -lnsl if both are needed. We assume that
6212 # if connect needs -lnsl, so does gethostbyname.
6213 echo "$as_me:$LINENO: checking for connect" >&5
6214 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6215 if test "${ac_cv_func_connect+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218 cat >conftest.$ac_ext <<_ACEOF
6219 /* confdefs.h. */
6220 _ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6224 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6226 #define connect innocuous_connect
6228 /* System header to define __stub macros and hopefully few prototypes,
6229 which can conflict with char connect (); below.
6230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6231 <limits.h> exists even on freestanding compilers. */
6233 #ifdef __STDC__
6234 # include <limits.h>
6235 #else
6236 # include <assert.h>
6237 #endif
6239 #undef connect
6241 /* Override any gcc2 internal prototype to avoid an error. */
6242 #ifdef __cplusplus
6243 extern "C"
6245 #endif
6246 /* We use char because int might match the return type of a gcc2
6247 builtin and then its argument prototype would still apply. */
6248 char connect ();
6249 /* The GNU C library defines this for functions which it implements
6250 to always fail with ENOSYS. Some functions are actually named
6251 something starting with __ and the normal name is an alias. */
6252 #if defined (__stub_connect) || defined (__stub___connect)
6253 choke me
6254 #else
6255 char (*f) () = connect;
6256 #endif
6257 #ifdef __cplusplus
6259 #endif
6262 main ()
6264 return f != connect;
6266 return 0;
6268 _ACEOF
6269 rm -f conftest.$ac_objext conftest$ac_exeext
6270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6271 (eval $ac_link) 2>conftest.er1
6272 ac_status=$?
6273 grep -v '^ *+' conftest.er1 >conftest.err
6274 rm -f conftest.er1
6275 cat conftest.err >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } &&
6278 { ac_try='test -z "$ac_c_werror_flag"
6279 || test ! -s conftest.err'
6280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 (eval $ac_try) 2>&5
6282 ac_status=$?
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; } &&
6285 { ac_try='test -s conftest$ac_exeext'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 (eval $ac_try) 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; }; then
6291 ac_cv_func_connect=yes
6292 else
6293 echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.$ac_ext >&5
6296 ac_cv_func_connect=no
6298 rm -f conftest.err conftest.$ac_objext \
6299 conftest$ac_exeext conftest.$ac_ext
6301 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6302 echo "${ECHO_T}$ac_cv_func_connect" >&6
6304 if test $ac_cv_func_connect = no; then
6305 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6306 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6307 if test "${ac_cv_lib_socket_connect+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6309 else
6310 ac_check_lib_save_LIBS=$LIBS
6311 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6312 cat >conftest.$ac_ext <<_ACEOF
6313 /* confdefs.h. */
6314 _ACEOF
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h. */
6319 /* Override any gcc2 internal prototype to avoid an error. */
6320 #ifdef __cplusplus
6321 extern "C"
6322 #endif
6323 /* We use char because int might match the return type of a gcc2
6324 builtin and then its argument prototype would still apply. */
6325 char connect ();
6327 main ()
6329 connect ();
6331 return 0;
6333 _ACEOF
6334 rm -f conftest.$ac_objext conftest$ac_exeext
6335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6336 (eval $ac_link) 2>conftest.er1
6337 ac_status=$?
6338 grep -v '^ *+' conftest.er1 >conftest.err
6339 rm -f conftest.er1
6340 cat conftest.err >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } &&
6343 { ac_try='test -z "$ac_c_werror_flag"
6344 || test ! -s conftest.err'
6345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 (eval $ac_try) 2>&5
6347 ac_status=$?
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; } &&
6350 { ac_try='test -s conftest$ac_exeext'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 (eval $ac_try) 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 ac_cv_lib_socket_connect=yes
6357 else
6358 echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6361 ac_cv_lib_socket_connect=no
6363 rm -f conftest.err conftest.$ac_objext \
6364 conftest$ac_exeext conftest.$ac_ext
6365 LIBS=$ac_check_lib_save_LIBS
6367 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6368 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6369 if test $ac_cv_lib_socket_connect = yes; then
6370 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6375 # Guillermo Gomez says -lposix is necessary on A/UX.
6376 echo "$as_me:$LINENO: checking for remove" >&5
6377 echo $ECHO_N "checking for remove... $ECHO_C" >&6
6378 if test "${ac_cv_func_remove+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381 cat >conftest.$ac_ext <<_ACEOF
6382 /* confdefs.h. */
6383 _ACEOF
6384 cat confdefs.h >>conftest.$ac_ext
6385 cat >>conftest.$ac_ext <<_ACEOF
6386 /* end confdefs.h. */
6387 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6389 #define remove innocuous_remove
6391 /* System header to define __stub macros and hopefully few prototypes,
6392 which can conflict with char remove (); below.
6393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6394 <limits.h> exists even on freestanding compilers. */
6396 #ifdef __STDC__
6397 # include <limits.h>
6398 #else
6399 # include <assert.h>
6400 #endif
6402 #undef remove
6404 /* Override any gcc2 internal prototype to avoid an error. */
6405 #ifdef __cplusplus
6406 extern "C"
6408 #endif
6409 /* We use char because int might match the return type of a gcc2
6410 builtin and then its argument prototype would still apply. */
6411 char remove ();
6412 /* The GNU C library defines this for functions which it implements
6413 to always fail with ENOSYS. Some functions are actually named
6414 something starting with __ and the normal name is an alias. */
6415 #if defined (__stub_remove) || defined (__stub___remove)
6416 choke me
6417 #else
6418 char (*f) () = remove;
6419 #endif
6420 #ifdef __cplusplus
6422 #endif
6425 main ()
6427 return f != remove;
6429 return 0;
6431 _ACEOF
6432 rm -f conftest.$ac_objext conftest$ac_exeext
6433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6434 (eval $ac_link) 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -z "$ac_c_werror_flag"
6442 || test ! -s conftest.err'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 (eval $ac_try) 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; } &&
6448 { ac_try='test -s conftest$ac_exeext'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 (eval $ac_try) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }; then
6454 ac_cv_func_remove=yes
6455 else
6456 echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6459 ac_cv_func_remove=no
6461 rm -f conftest.err conftest.$ac_objext \
6462 conftest$ac_exeext conftest.$ac_ext
6464 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6465 echo "${ECHO_T}$ac_cv_func_remove" >&6
6467 if test $ac_cv_func_remove = no; then
6468 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6469 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6470 if test "${ac_cv_lib_posix_remove+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473 ac_check_lib_save_LIBS=$LIBS
6474 LIBS="-lposix $LIBS"
6475 cat >conftest.$ac_ext <<_ACEOF
6476 /* confdefs.h. */
6477 _ACEOF
6478 cat confdefs.h >>conftest.$ac_ext
6479 cat >>conftest.$ac_ext <<_ACEOF
6480 /* end confdefs.h. */
6482 /* Override any gcc2 internal prototype to avoid an error. */
6483 #ifdef __cplusplus
6484 extern "C"
6485 #endif
6486 /* We use char because int might match the return type of a gcc2
6487 builtin and then its argument prototype would still apply. */
6488 char remove ();
6490 main ()
6492 remove ();
6494 return 0;
6496 _ACEOF
6497 rm -f conftest.$ac_objext conftest$ac_exeext
6498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6499 (eval $ac_link) 2>conftest.er1
6500 ac_status=$?
6501 grep -v '^ *+' conftest.er1 >conftest.err
6502 rm -f conftest.er1
6503 cat conftest.err >&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } &&
6506 { ac_try='test -z "$ac_c_werror_flag"
6507 || test ! -s conftest.err'
6508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6509 (eval $ac_try) 2>&5
6510 ac_status=$?
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); }; } &&
6513 { ac_try='test -s conftest$ac_exeext'
6514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515 (eval $ac_try) 2>&5
6516 ac_status=$?
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; }; then
6519 ac_cv_lib_posix_remove=yes
6520 else
6521 echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6524 ac_cv_lib_posix_remove=no
6526 rm -f conftest.err conftest.$ac_objext \
6527 conftest$ac_exeext conftest.$ac_ext
6528 LIBS=$ac_check_lib_save_LIBS
6530 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6531 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6532 if test $ac_cv_lib_posix_remove = yes; then
6533 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6538 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6539 echo "$as_me:$LINENO: checking for shmat" >&5
6540 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6541 if test "${ac_cv_func_shmat+set}" = set; then
6542 echo $ECHO_N "(cached) $ECHO_C" >&6
6543 else
6544 cat >conftest.$ac_ext <<_ACEOF
6545 /* confdefs.h. */
6546 _ACEOF
6547 cat confdefs.h >>conftest.$ac_ext
6548 cat >>conftest.$ac_ext <<_ACEOF
6549 /* end confdefs.h. */
6550 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6552 #define shmat innocuous_shmat
6554 /* System header to define __stub macros and hopefully few prototypes,
6555 which can conflict with char shmat (); below.
6556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6557 <limits.h> exists even on freestanding compilers. */
6559 #ifdef __STDC__
6560 # include <limits.h>
6561 #else
6562 # include <assert.h>
6563 #endif
6565 #undef shmat
6567 /* Override any gcc2 internal prototype to avoid an error. */
6568 #ifdef __cplusplus
6569 extern "C"
6571 #endif
6572 /* We use char because int might match the return type of a gcc2
6573 builtin and then its argument prototype would still apply. */
6574 char shmat ();
6575 /* The GNU C library defines this for functions which it implements
6576 to always fail with ENOSYS. Some functions are actually named
6577 something starting with __ and the normal name is an alias. */
6578 #if defined (__stub_shmat) || defined (__stub___shmat)
6579 choke me
6580 #else
6581 char (*f) () = shmat;
6582 #endif
6583 #ifdef __cplusplus
6585 #endif
6588 main ()
6590 return f != shmat;
6592 return 0;
6594 _ACEOF
6595 rm -f conftest.$ac_objext conftest$ac_exeext
6596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6597 (eval $ac_link) 2>conftest.er1
6598 ac_status=$?
6599 grep -v '^ *+' conftest.er1 >conftest.err
6600 rm -f conftest.er1
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -z "$ac_c_werror_flag"
6605 || test ! -s conftest.err'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 (eval $ac_try) 2>&5
6608 ac_status=$?
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; } &&
6611 { ac_try='test -s conftest$ac_exeext'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 (eval $ac_try) 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; }; then
6617 ac_cv_func_shmat=yes
6618 else
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6622 ac_cv_func_shmat=no
6624 rm -f conftest.err conftest.$ac_objext \
6625 conftest$ac_exeext conftest.$ac_ext
6627 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6628 echo "${ECHO_T}$ac_cv_func_shmat" >&6
6630 if test $ac_cv_func_shmat = no; then
6631 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6632 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6633 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636 ac_check_lib_save_LIBS=$LIBS
6637 LIBS="-lipc $LIBS"
6638 cat >conftest.$ac_ext <<_ACEOF
6639 /* confdefs.h. */
6640 _ACEOF
6641 cat confdefs.h >>conftest.$ac_ext
6642 cat >>conftest.$ac_ext <<_ACEOF
6643 /* end confdefs.h. */
6645 /* Override any gcc2 internal prototype to avoid an error. */
6646 #ifdef __cplusplus
6647 extern "C"
6648 #endif
6649 /* We use char because int might match the return type of a gcc2
6650 builtin and then its argument prototype would still apply. */
6651 char shmat ();
6653 main ()
6655 shmat ();
6657 return 0;
6659 _ACEOF
6660 rm -f conftest.$ac_objext conftest$ac_exeext
6661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6662 (eval $ac_link) 2>conftest.er1
6663 ac_status=$?
6664 grep -v '^ *+' conftest.er1 >conftest.err
6665 rm -f conftest.er1
6666 cat conftest.err >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); } &&
6669 { ac_try='test -z "$ac_c_werror_flag"
6670 || test ! -s conftest.err'
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); }; } &&
6676 { ac_try='test -s conftest$ac_exeext'
6677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 (eval $ac_try) 2>&5
6679 ac_status=$?
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; }; then
6682 ac_cv_lib_ipc_shmat=yes
6683 else
6684 echo "$as_me: failed program was:" >&5
6685 sed 's/^/| /' conftest.$ac_ext >&5
6687 ac_cv_lib_ipc_shmat=no
6689 rm -f conftest.err conftest.$ac_objext \
6690 conftest$ac_exeext conftest.$ac_ext
6691 LIBS=$ac_check_lib_save_LIBS
6693 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6694 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6695 if test $ac_cv_lib_ipc_shmat = yes; then
6696 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6702 # Check for libraries that X11R6 Xt/Xaw programs need.
6703 ac_save_LDFLAGS=$LDFLAGS
6704 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6705 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6706 # check for ICE first), but we must link in the order -lSM -lICE or
6707 # we get undefined symbols. So assume we have SM if we have ICE.
6708 # These have to be linked with before -lX11, unlike the other
6709 # libraries we check for below, so use a different variable.
6710 # John Interrante, Karl Berry
6711 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6712 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6713 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 else
6716 ac_check_lib_save_LIBS=$LIBS
6717 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6718 cat >conftest.$ac_ext <<_ACEOF
6719 /* confdefs.h. */
6720 _ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6725 /* Override any gcc2 internal prototype to avoid an error. */
6726 #ifdef __cplusplus
6727 extern "C"
6728 #endif
6729 /* We use char because int might match the return type of a gcc2
6730 builtin and then its argument prototype would still apply. */
6731 char IceConnectionNumber ();
6733 main ()
6735 IceConnectionNumber ();
6737 return 0;
6739 _ACEOF
6740 rm -f conftest.$ac_objext conftest$ac_exeext
6741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6742 (eval $ac_link) 2>conftest.er1
6743 ac_status=$?
6744 grep -v '^ *+' conftest.er1 >conftest.err
6745 rm -f conftest.er1
6746 cat conftest.err >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } &&
6749 { ac_try='test -z "$ac_c_werror_flag"
6750 || test ! -s conftest.err'
6751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752 (eval $ac_try) 2>&5
6753 ac_status=$?
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); }; } &&
6756 { ac_try='test -s conftest$ac_exeext'
6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758 (eval $ac_try) 2>&5
6759 ac_status=$?
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); }; }; then
6762 ac_cv_lib_ICE_IceConnectionNumber=yes
6763 else
6764 echo "$as_me: failed program was:" >&5
6765 sed 's/^/| /' conftest.$ac_ext >&5
6767 ac_cv_lib_ICE_IceConnectionNumber=no
6769 rm -f conftest.err conftest.$ac_objext \
6770 conftest$ac_exeext conftest.$ac_ext
6771 LIBS=$ac_check_lib_save_LIBS
6773 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6774 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6775 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6776 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6779 LDFLAGS=$ac_save_LDFLAGS
6783 CFLAGS="$X_CFLAGS $CFLAGS"
6784 LDFLAGS="$X_PRE_LIBS -lX11 $X_LIBS $X_EXTRA_LIBS $LDFLAGS"
6787 # Checks for OpenGL.
6788 echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
6789 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6
6790 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793 ac_check_lib_save_LIBS=$LIBS
6794 LIBS="-lGL $LIBS"
6795 cat >conftest.$ac_ext <<_ACEOF
6796 /* confdefs.h. */
6797 _ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6802 /* Override any gcc2 internal prototype to avoid an error. */
6803 #ifdef __cplusplus
6804 extern "C"
6805 #endif
6806 /* We use char because int might match the return type of a gcc2
6807 builtin and then its argument prototype would still apply. */
6808 char glBegin ();
6810 main ()
6812 glBegin ();
6814 return 0;
6816 _ACEOF
6817 rm -f conftest.$ac_objext conftest$ac_exeext
6818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6819 (eval $ac_link) 2>conftest.er1
6820 ac_status=$?
6821 grep -v '^ *+' conftest.er1 >conftest.err
6822 rm -f conftest.er1
6823 cat conftest.err >&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); } &&
6826 { ac_try='test -z "$ac_c_werror_flag"
6827 || test ! -s conftest.err'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 (eval $ac_try) 2>&5
6830 ac_status=$?
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; } &&
6833 { ac_try='test -s conftest$ac_exeext'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 (eval $ac_try) 2>&5
6836 ac_status=$?
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; }; then
6839 ac_cv_lib_GL_glBegin=yes
6840 else
6841 echo "$as_me: failed program was:" >&5
6842 sed 's/^/| /' conftest.$ac_ext >&5
6844 ac_cv_lib_GL_glBegin=no
6846 rm -f conftest.err conftest.$ac_objext \
6847 conftest$ac_exeext conftest.$ac_ext
6848 LIBS=$ac_check_lib_save_LIBS
6850 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
6851 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6
6852 if test $ac_cv_lib_GL_glBegin = yes; then
6853 LDFLAGS="-lGL $LDFLAGS"
6854 else
6855 ogl="no"
6858 if test "x$ogl" = "xno"; then
6859 { echo "$as_me:$LINENO: Maybe libGL requires libpthread..." >&5
6860 echo "$as_me: Maybe libGL requires libpthread..." >&6;}
6861 unset ac_cv_lib_GL_glBegin
6862 echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
6863 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6
6864 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867 ac_check_lib_save_LIBS=$LIBS
6868 LIBS="-lGL -lpthread $LIBS"
6869 cat >conftest.$ac_ext <<_ACEOF
6870 /* confdefs.h. */
6871 _ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6876 /* Override any gcc2 internal prototype to avoid an error. */
6877 #ifdef __cplusplus
6878 extern "C"
6879 #endif
6880 /* We use char because int might match the return type of a gcc2
6881 builtin and then its argument prototype would still apply. */
6882 char glBegin ();
6884 main ()
6886 glBegin ();
6888 return 0;
6890 _ACEOF
6891 rm -f conftest.$ac_objext conftest$ac_exeext
6892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6893 (eval $ac_link) 2>conftest.er1
6894 ac_status=$?
6895 grep -v '^ *+' conftest.er1 >conftest.err
6896 rm -f conftest.er1
6897 cat conftest.err >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } &&
6900 { ac_try='test -z "$ac_c_werror_flag"
6901 || test ! -s conftest.err'
6902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903 (eval $ac_try) 2>&5
6904 ac_status=$?
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; } &&
6907 { ac_try='test -s conftest$ac_exeext'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 (eval $ac_try) 2>&5
6910 ac_status=$?
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; }; then
6913 ac_cv_lib_GL_glBegin=yes
6914 else
6915 echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6918 ac_cv_lib_GL_glBegin=no
6920 rm -f conftest.err conftest.$ac_objext \
6921 conftest$ac_exeext conftest.$ac_ext
6922 LIBS=$ac_check_lib_save_LIBS
6924 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
6925 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6
6926 if test $ac_cv_lib_GL_glBegin = yes; then
6927 LDFLAGS="-lpthread -lGL $LDFLAGS"
6928 else
6929 { { echo "$as_me:$LINENO: error: Cannot use -lGL" >&5
6930 echo "$as_me: error: Cannot use -lGL" >&2;}
6931 { (exit 1); exit 1; }; }
6937 # Checks for gtk.
6938 # Check whether --enable-gtktest or --disable-gtktest was given.
6939 if test "${enable_gtktest+set}" = set; then
6940 enableval="$enable_gtktest"
6942 else
6943 enable_gtktest=yes
6946 pkg_config_args=gtk+-2.0
6947 for module in . gthread
6949 case "$module" in
6950 gthread)
6951 pkg_config_args="$pkg_config_args gthread-2.0"
6953 esac
6954 done
6956 no_gtk=""
6958 # Extract the first word of "pkg-config", so it can be a program name with args.
6959 set dummy pkg-config; ac_word=$2
6960 echo "$as_me:$LINENO: checking for $ac_word" >&5
6961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6962 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6964 else
6965 case $PKG_CONFIG in
6966 [\\/]* | ?:[\\/]*)
6967 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6973 IFS=$as_save_IFS
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6977 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 break 2
6981 done
6982 done
6984 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6986 esac
6988 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6990 if test -n "$PKG_CONFIG"; then
6991 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6992 echo "${ECHO_T}$PKG_CONFIG" >&6
6993 else
6994 echo "$as_me:$LINENO: result: no" >&5
6995 echo "${ECHO_T}no" >&6
6999 if test x$PKG_CONFIG != xno ; then
7000 if pkg-config --atleast-pkgconfig-version 0.7 ; then
7002 else
7003 echo *** pkg-config too old; version 0.7 or better required.
7004 no_gtk=yes
7005 PKG_CONFIG=no
7007 else
7008 no_gtk=yes
7011 min_gtk_version=2.2.0
7012 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
7013 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
7015 if test x$PKG_CONFIG != xno ; then
7016 ## don't try to run the test against uninstalled libtool libs
7017 if $PKG_CONFIG --uninstalled $pkg_config_args; then
7018 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
7019 enable_gtktest=no
7022 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
7024 else
7025 no_gtk=yes
7029 if test x"$no_gtk" = x ; then
7030 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
7031 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
7032 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7033 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7034 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7035 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7036 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7037 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7038 if test "x$enable_gtktest" = "xyes" ; then
7039 ac_save_CFLAGS="$CFLAGS"
7040 ac_save_LIBS="$LIBS"
7041 CFLAGS="$CFLAGS $GTK_CFLAGS"
7042 LIBS="$GTK_LIBS $LIBS"
7043 rm -f conf.gtktest
7044 if test "$cross_compiling" = yes; then
7045 echo $ac_n "cross compiling; assumed OK... $ac_c"
7046 else
7047 cat >conftest.$ac_ext <<_ACEOF
7048 /* confdefs.h. */
7049 _ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7054 #include <gtk/gtk.h>
7055 #include <stdio.h>
7056 #include <stdlib.h>
7059 main ()
7061 int major, minor, micro;
7062 char *tmp_version;
7064 system ("touch conf.gtktest");
7066 /* HP/UX 9 (%@#!) writes to sscanf strings */
7067 tmp_version = g_strdup("$min_gtk_version");
7068 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7069 printf("%s, bad version string\n", "$min_gtk_version");
7070 exit(1);
7073 if ((gtk_major_version != $gtk_config_major_version) ||
7074 (gtk_minor_version != $gtk_config_minor_version) ||
7075 (gtk_micro_version != $gtk_config_micro_version))
7077 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7078 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7079 gtk_major_version, gtk_minor_version, gtk_micro_version);
7080 printf ("*** was found! If pkg-config was correct, then it is best\n");
7081 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7082 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7083 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7084 printf("*** required on your system.\n");
7085 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7086 printf("*** to point to the correct configuration files\n");
7088 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7089 (gtk_minor_version != GTK_MINOR_VERSION) ||
7090 (gtk_micro_version != GTK_MICRO_VERSION))
7092 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7093 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7094 printf("*** library (version %d.%d.%d)\n",
7095 gtk_major_version, gtk_minor_version, gtk_micro_version);
7097 else
7099 if ((gtk_major_version > major) ||
7100 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7101 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7103 return 0;
7105 else
7107 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7108 gtk_major_version, gtk_minor_version, gtk_micro_version);
7109 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7110 major, minor, micro);
7111 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7112 printf("***\n");
7113 printf("*** If you have already installed a sufficiently new version, this error\n");
7114 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7115 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7116 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
7117 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7118 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7119 printf("*** so that the correct libraries are found at run-time))\n");
7122 return 1;
7125 _ACEOF
7126 rm -f conftest$ac_exeext
7127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7128 (eval $ac_link) 2>&5
7129 ac_status=$?
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133 (eval $ac_try) 2>&5
7134 ac_status=$?
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; }; then
7138 else
7139 echo "$as_me: program exited with status $ac_status" >&5
7140 echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7143 ( exit $ac_status )
7144 no_gtk=yes
7146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7148 CFLAGS="$ac_save_CFLAGS"
7149 LIBS="$ac_save_LIBS"
7152 if test "x$no_gtk" = x ; then
7153 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
7154 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
7156 CFLAGS="$GTK_CFLAGS $CFLAGS"
7157 LDFLAGS="$GTK_LIBS $LDFLAGS"
7158 GTK_VERSION="$($PKG_CONFIG --modversion gtk+-2.0)"
7160 else
7161 echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6
7163 if test "$PKG_CONFIG" = "no" ; then
7164 echo "*** A new enough version of pkg-config was not found."
7165 echo "*** See http://pkgconfig.sourceforge.net"
7166 else
7167 if test -f conf.gtktest ; then
7169 else
7170 echo "*** Could not run GTK+ test program, checking why..."
7171 ac_save_CFLAGS="$CFLAGS"
7172 ac_save_LIBS="$LIBS"
7173 CFLAGS="$CFLAGS $GTK_CFLAGS"
7174 LIBS="$LIBS $GTK_LIBS"
7175 cat >conftest.$ac_ext <<_ACEOF
7176 /* confdefs.h. */
7177 _ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7182 #include <gtk/gtk.h>
7183 #include <stdio.h>
7186 main ()
7188 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7190 return 0;
7192 _ACEOF
7193 rm -f conftest.$ac_objext conftest$ac_exeext
7194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7195 (eval $ac_link) 2>conftest.er1
7196 ac_status=$?
7197 grep -v '^ *+' conftest.er1 >conftest.err
7198 rm -f conftest.er1
7199 cat conftest.err >&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } &&
7202 { ac_try='test -z "$ac_c_werror_flag"
7203 || test ! -s conftest.err'
7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 (eval $ac_try) 2>&5
7206 ac_status=$?
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; } &&
7209 { ac_try='test -s conftest$ac_exeext'
7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211 (eval $ac_try) 2>&5
7212 ac_status=$?
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; }; then
7215 echo "*** The test program compiled, but did not run. This usually means"
7216 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
7217 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
7218 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7219 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7220 echo "*** is required on your system"
7221 echo "***"
7222 echo "*** If you have an old version installed, it is best to remove it, although"
7223 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7224 else
7225 echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7228 echo "*** The test program failed to compile or link. See the file config.log for the"
7229 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
7231 rm -f conftest.err conftest.$ac_objext \
7232 conftest$ac_exeext conftest.$ac_ext
7233 CFLAGS="$ac_save_CFLAGS"
7234 LIBS="$ac_save_LIBS"
7237 GTK_CFLAGS=""
7238 GTK_LIBS=""
7239 exit 1
7243 rm -f conf.gtktest
7246 # Checks for GtkGLExt.
7248 succeeded=no
7250 if test -z "$PKG_CONFIG"; then
7251 # Extract the first word of "pkg-config", so it can be a program name with args.
7252 set dummy pkg-config; ac_word=$2
7253 echo "$as_me:$LINENO: checking for $ac_word" >&5
7254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7255 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258 case $PKG_CONFIG in
7259 [\\/]* | ?:[\\/]*)
7260 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 for as_dir in $PATH
7266 IFS=$as_save_IFS
7267 test -z "$as_dir" && as_dir=.
7268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7270 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7272 break 2
7274 done
7275 done
7277 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7279 esac
7281 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7283 if test -n "$PKG_CONFIG"; then
7284 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7285 echo "${ECHO_T}$PKG_CONFIG" >&6
7286 else
7287 echo "$as_me:$LINENO: result: no" >&5
7288 echo "${ECHO_T}no" >&6
7293 if test "$PKG_CONFIG" = "no" ; then
7294 echo "*** The pkg-config script could not be found. Make sure it is"
7295 echo "*** in your path, or set the PKG_CONFIG environment variable"
7296 echo "*** to the full path to pkg-config."
7297 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7298 else
7299 PKG_CONFIG_MIN_VERSION=0.9.0
7300 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7301 echo "$as_me:$LINENO: checking for gtkglext-1.0 >= 0.7.0" >&5
7302 echo $ECHO_N "checking for gtkglext-1.0 >= 0.7.0... $ECHO_C" >&6
7304 if $PKG_CONFIG --exists "gtkglext-1.0 >= 0.7.0" ; then
7305 echo "$as_me:$LINENO: result: yes" >&5
7306 echo "${ECHO_T}yes" >&6
7307 succeeded=yes
7309 echo "$as_me:$LINENO: checking GTKGLEXT_CFLAGS" >&5
7310 echo $ECHO_N "checking GTKGLEXT_CFLAGS... $ECHO_C" >&6
7311 GTKGLEXT_CFLAGS=`$PKG_CONFIG --cflags "gtkglext-1.0 >= 0.7.0"`
7312 echo "$as_me:$LINENO: result: $GTKGLEXT_CFLAGS" >&5
7313 echo "${ECHO_T}$GTKGLEXT_CFLAGS" >&6
7315 echo "$as_me:$LINENO: checking GTKGLEXT_LIBS" >&5
7316 echo $ECHO_N "checking GTKGLEXT_LIBS... $ECHO_C" >&6
7317 GTKGLEXT_LIBS=`$PKG_CONFIG --libs "gtkglext-1.0 >= 0.7.0"`
7318 echo "$as_me:$LINENO: result: $GTKGLEXT_LIBS" >&5
7319 echo "${ECHO_T}$GTKGLEXT_LIBS" >&6
7320 else
7321 GTKGLEXT_CFLAGS=""
7322 GTKGLEXT_LIBS=""
7323 ## If we have a custom action on failure, don't print errors, but
7324 ## do set a variable so people can do so.
7325 GTKGLEXT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkglext-1.0 >= 0.7.0"`
7326 echo $GTKGLEXT_PKG_ERRORS
7331 else
7332 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7333 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7337 if test $succeeded = yes; then
7339 else
7340 { { echo "$as_me:$LINENO: error: Library requirements (gtkglext-1.0 >= 0.7.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
7341 echo "$as_me: error: Library requirements (gtkglext-1.0 >= 0.7.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
7342 { (exit 1); exit 1; }; }
7345 CFLAGS="$GTKGLEXT_CFLAGS $CFLAGS"
7346 LDFLAGS="$GTKGLEXT_LIBS $LDFLAGS"
7347 GTKGL_VERSION="$($PKG_CONFIG --modversion gtkglext-1.0)"
7349 # I18n.
7350 ALL_LINGUAS=$(echo po/*.po | sed 's|\.po||g' | sed 's|po/||g')
7353 MKINSTALLDIRS=
7354 if test -n "$ac_aux_dir"; then
7355 case "$ac_aux_dir" in
7356 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7357 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7358 esac
7360 if test -z "$MKINSTALLDIRS"; then
7361 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7366 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7367 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7368 # Check whether --enable-nls or --disable-nls was given.
7369 if test "${enable_nls+set}" = set; then
7370 enableval="$enable_nls"
7371 USE_NLS=$enableval
7372 else
7373 USE_NLS=yes
7375 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7376 echo "${ECHO_T}$USE_NLS" >&6
7383 # Prepare PATH_SEPARATOR.
7384 # The user is always right.
7385 if test "${PATH_SEPARATOR+set}" != set; then
7386 echo "#! /bin/sh" >conf$$.sh
7387 echo "exit 0" >>conf$$.sh
7388 chmod +x conf$$.sh
7389 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7390 PATH_SEPARATOR=';'
7391 else
7392 PATH_SEPARATOR=:
7394 rm -f conf$$.sh
7397 # Find out how to test for executable files. Don't use a zero-byte file,
7398 # as systems may use methods other than mode bits to determine executability.
7399 cat >conf$$.file <<_ASEOF
7400 #! /bin/sh
7401 exit 0
7402 _ASEOF
7403 chmod +x conf$$.file
7404 if test -x conf$$.file >/dev/null 2>&1; then
7405 ac_executable_p="test -x"
7406 else
7407 ac_executable_p="test -f"
7409 rm -f conf$$.file
7411 # Extract the first word of "msgfmt", so it can be a program name with args.
7412 set dummy msgfmt; ac_word=$2
7413 echo "$as_me:$LINENO: checking for $ac_word" >&5
7414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7415 if test "${ac_cv_path_MSGFMT+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418 case "$MSGFMT" in
7419 [\\/]* | ?:[\\/]*)
7420 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7423 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7424 for ac_dir in $PATH; do
7425 IFS="$ac_save_IFS"
7426 test -z "$ac_dir" && ac_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7429 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7430 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7431 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7432 break 2
7435 done
7436 done
7437 IFS="$ac_save_IFS"
7438 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7440 esac
7442 MSGFMT="$ac_cv_path_MSGFMT"
7443 if test "$MSGFMT" != ":"; then
7444 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7445 echo "${ECHO_T}$MSGFMT" >&6
7446 else
7447 echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6
7451 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7452 set dummy gmsgfmt; ac_word=$2
7453 echo "$as_me:$LINENO: checking for $ac_word" >&5
7454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7455 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 else
7458 case $GMSGFMT in
7459 [\\/]* | ?:[\\/]*)
7460 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7466 IFS=$as_save_IFS
7467 test -z "$as_dir" && as_dir=.
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7470 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7472 break 2
7474 done
7475 done
7477 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7479 esac
7481 GMSGFMT=$ac_cv_path_GMSGFMT
7483 if test -n "$GMSGFMT"; then
7484 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7485 echo "${ECHO_T}$GMSGFMT" >&6
7486 else
7487 echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6
7493 # Prepare PATH_SEPARATOR.
7494 # The user is always right.
7495 if test "${PATH_SEPARATOR+set}" != set; then
7496 echo "#! /bin/sh" >conf$$.sh
7497 echo "exit 0" >>conf$$.sh
7498 chmod +x conf$$.sh
7499 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7500 PATH_SEPARATOR=';'
7501 else
7502 PATH_SEPARATOR=:
7504 rm -f conf$$.sh
7507 # Find out how to test for executable files. Don't use a zero-byte file,
7508 # as systems may use methods other than mode bits to determine executability.
7509 cat >conf$$.file <<_ASEOF
7510 #! /bin/sh
7511 exit 0
7512 _ASEOF
7513 chmod +x conf$$.file
7514 if test -x conf$$.file >/dev/null 2>&1; then
7515 ac_executable_p="test -x"
7516 else
7517 ac_executable_p="test -f"
7519 rm -f conf$$.file
7521 # Extract the first word of "xgettext", so it can be a program name with args.
7522 set dummy xgettext; ac_word=$2
7523 echo "$as_me:$LINENO: checking for $ac_word" >&5
7524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7525 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 else
7528 case "$XGETTEXT" in
7529 [\\/]* | ?:[\\/]*)
7530 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7533 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7534 for ac_dir in $PATH; do
7535 IFS="$ac_save_IFS"
7536 test -z "$ac_dir" && ac_dir=.
7537 for ac_exec_ext in '' $ac_executable_extensions; do
7538 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7539 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7540 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7541 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7542 break 2
7545 done
7546 done
7547 IFS="$ac_save_IFS"
7548 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7550 esac
7552 XGETTEXT="$ac_cv_path_XGETTEXT"
7553 if test "$XGETTEXT" != ":"; then
7554 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7555 echo "${ECHO_T}$XGETTEXT" >&6
7556 else
7557 echo "$as_me:$LINENO: result: no" >&5
7558 echo "${ECHO_T}no" >&6
7561 rm -f messages.po
7564 # Prepare PATH_SEPARATOR.
7565 # The user is always right.
7566 if test "${PATH_SEPARATOR+set}" != set; then
7567 echo "#! /bin/sh" >conf$$.sh
7568 echo "exit 0" >>conf$$.sh
7569 chmod +x conf$$.sh
7570 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7571 PATH_SEPARATOR=';'
7572 else
7573 PATH_SEPARATOR=:
7575 rm -f conf$$.sh
7578 # Find out how to test for executable files. Don't use a zero-byte file,
7579 # as systems may use methods other than mode bits to determine executability.
7580 cat >conf$$.file <<_ASEOF
7581 #! /bin/sh
7582 exit 0
7583 _ASEOF
7584 chmod +x conf$$.file
7585 if test -x conf$$.file >/dev/null 2>&1; then
7586 ac_executable_p="test -x"
7587 else
7588 ac_executable_p="test -f"
7590 rm -f conf$$.file
7592 # Extract the first word of "msgmerge", so it can be a program name with args.
7593 set dummy msgmerge; ac_word=$2
7594 echo "$as_me:$LINENO: checking for $ac_word" >&5
7595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7596 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7598 else
7599 case "$MSGMERGE" in
7600 [\\/]* | ?:[\\/]*)
7601 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7604 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7605 for ac_dir in $PATH; do
7606 IFS="$ac_save_IFS"
7607 test -z "$ac_dir" && ac_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7610 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7611 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7612 break 2
7615 done
7616 done
7617 IFS="$ac_save_IFS"
7618 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7620 esac
7622 MSGMERGE="$ac_cv_path_MSGMERGE"
7623 if test "$MSGMERGE" != ":"; then
7624 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7625 echo "${ECHO_T}$MSGMERGE" >&6
7626 else
7627 echo "$as_me:$LINENO: result: no" >&5
7628 echo "${ECHO_T}no" >&6
7632 if test "$GMSGFMT" != ":"; then
7633 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7634 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7636 else
7637 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7638 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7639 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
7640 GMSGFMT=":"
7644 if test "$XGETTEXT" != ":"; then
7645 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7646 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7648 else
7649 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7650 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
7651 XGETTEXT=":"
7653 rm -f messages.po
7656 ac_config_commands="$ac_config_commands default-1"
7659 # Make sure we can run config.sub.
7660 $ac_config_sub sun4 >/dev/null 2>&1 ||
7661 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
7662 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
7663 { (exit 1); exit 1; }; }
7665 echo "$as_me:$LINENO: checking build system type" >&5
7666 echo $ECHO_N "checking build system type... $ECHO_C" >&6
7667 if test "${ac_cv_build+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670 ac_cv_build_alias=$build_alias
7671 test -z "$ac_cv_build_alias" &&
7672 ac_cv_build_alias=`$ac_config_guess`
7673 test -z "$ac_cv_build_alias" &&
7674 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7675 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7676 { (exit 1); exit 1; }; }
7677 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
7678 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
7679 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
7680 { (exit 1); exit 1; }; }
7683 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7684 echo "${ECHO_T}$ac_cv_build" >&6
7685 build=$ac_cv_build
7686 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7687 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7688 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7691 echo "$as_me:$LINENO: checking host system type" >&5
7692 echo $ECHO_N "checking host system type... $ECHO_C" >&6
7693 if test "${ac_cv_host+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7695 else
7696 ac_cv_host_alias=$host_alias
7697 test -z "$ac_cv_host_alias" &&
7698 ac_cv_host_alias=$ac_cv_build_alias
7699 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
7700 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7701 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7702 { (exit 1); exit 1; }; }
7705 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7706 echo "${ECHO_T}$ac_cv_host" >&6
7707 host=$ac_cv_host
7708 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7709 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7710 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7713 echo "$as_me:$LINENO: checking for library containing strerror" >&5
7714 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
7715 if test "${ac_cv_search_strerror+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718 ac_func_search_save_LIBS=$LIBS
7719 ac_cv_search_strerror=no
7720 cat >conftest.$ac_ext <<_ACEOF
7721 /* confdefs.h. */
7722 _ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7727 /* Override any gcc2 internal prototype to avoid an error. */
7728 #ifdef __cplusplus
7729 extern "C"
7730 #endif
7731 /* We use char because int might match the return type of a gcc2
7732 builtin and then its argument prototype would still apply. */
7733 char strerror ();
7735 main ()
7737 strerror ();
7739 return 0;
7741 _ACEOF
7742 rm -f conftest.$ac_objext conftest$ac_exeext
7743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7744 (eval $ac_link) 2>conftest.er1
7745 ac_status=$?
7746 grep -v '^ *+' conftest.er1 >conftest.err
7747 rm -f conftest.er1
7748 cat conftest.err >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); } &&
7751 { ac_try='test -z "$ac_c_werror_flag"
7752 || test ! -s conftest.err'
7753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 (eval $ac_try) 2>&5
7755 ac_status=$?
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); }; } &&
7758 { ac_try='test -s conftest$ac_exeext'
7759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 (eval $ac_try) 2>&5
7761 ac_status=$?
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; }; then
7764 ac_cv_search_strerror="none required"
7765 else
7766 echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7770 rm -f conftest.err conftest.$ac_objext \
7771 conftest$ac_exeext conftest.$ac_ext
7772 if test "$ac_cv_search_strerror" = no; then
7773 for ac_lib in cposix; do
7774 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7775 cat >conftest.$ac_ext <<_ACEOF
7776 /* confdefs.h. */
7777 _ACEOF
7778 cat confdefs.h >>conftest.$ac_ext
7779 cat >>conftest.$ac_ext <<_ACEOF
7780 /* end confdefs.h. */
7782 /* Override any gcc2 internal prototype to avoid an error. */
7783 #ifdef __cplusplus
7784 extern "C"
7785 #endif
7786 /* We use char because int might match the return type of a gcc2
7787 builtin and then its argument prototype would still apply. */
7788 char strerror ();
7790 main ()
7792 strerror ();
7794 return 0;
7796 _ACEOF
7797 rm -f conftest.$ac_objext conftest$ac_exeext
7798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7799 (eval $ac_link) 2>conftest.er1
7800 ac_status=$?
7801 grep -v '^ *+' conftest.er1 >conftest.err
7802 rm -f conftest.er1
7803 cat conftest.err >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } &&
7806 { ac_try='test -z "$ac_c_werror_flag"
7807 || test ! -s conftest.err'
7808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7809 (eval $ac_try) 2>&5
7810 ac_status=$?
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); }; } &&
7813 { ac_try='test -s conftest$ac_exeext'
7814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815 (eval $ac_try) 2>&5
7816 ac_status=$?
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); }; }; then
7819 ac_cv_search_strerror="-l$ac_lib"
7820 break
7821 else
7822 echo "$as_me: failed program was:" >&5
7823 sed 's/^/| /' conftest.$ac_ext >&5
7826 rm -f conftest.err conftest.$ac_objext \
7827 conftest$ac_exeext conftest.$ac_ext
7828 done
7830 LIBS=$ac_func_search_save_LIBS
7832 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
7833 echo "${ECHO_T}$ac_cv_search_strerror" >&6
7834 if test "$ac_cv_search_strerror" != no; then
7835 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
7839 echo "$as_me:$LINENO: checking for egrep" >&5
7840 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7841 if test "${ac_cv_prog_egrep+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 else
7844 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7845 then ac_cv_prog_egrep='grep -E'
7846 else ac_cv_prog_egrep='egrep'
7849 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7850 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7851 EGREP=$ac_cv_prog_egrep
7854 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7855 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7856 if test "${ac_cv_header_stdc+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7858 else
7859 cat >conftest.$ac_ext <<_ACEOF
7860 /* confdefs.h. */
7861 _ACEOF
7862 cat confdefs.h >>conftest.$ac_ext
7863 cat >>conftest.$ac_ext <<_ACEOF
7864 /* end confdefs.h. */
7865 #include <stdlib.h>
7866 #include <stdarg.h>
7867 #include <string.h>
7868 #include <float.h>
7871 main ()
7875 return 0;
7877 _ACEOF
7878 rm -f conftest.$ac_objext
7879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7880 (eval $ac_compile) 2>conftest.er1
7881 ac_status=$?
7882 grep -v '^ *+' conftest.er1 >conftest.err
7883 rm -f conftest.er1
7884 cat conftest.err >&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } &&
7887 { ac_try='test -z "$ac_c_werror_flag"
7888 || test ! -s conftest.err'
7889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890 (eval $ac_try) 2>&5
7891 ac_status=$?
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); }; } &&
7894 { ac_try='test -s conftest.$ac_objext'
7895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7896 (eval $ac_try) 2>&5
7897 ac_status=$?
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); }; }; then
7900 ac_cv_header_stdc=yes
7901 else
7902 echo "$as_me: failed program was:" >&5
7903 sed 's/^/| /' conftest.$ac_ext >&5
7905 ac_cv_header_stdc=no
7907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7909 if test $ac_cv_header_stdc = yes; then
7910 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7911 cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h. */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7917 #include <string.h>
7919 _ACEOF
7920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7921 $EGREP "memchr" >/dev/null 2>&1; then
7923 else
7924 ac_cv_header_stdc=no
7926 rm -f conftest*
7930 if test $ac_cv_header_stdc = yes; then
7931 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7932 cat >conftest.$ac_ext <<_ACEOF
7933 /* confdefs.h. */
7934 _ACEOF
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7938 #include <stdlib.h>
7940 _ACEOF
7941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7942 $EGREP "free" >/dev/null 2>&1; then
7944 else
7945 ac_cv_header_stdc=no
7947 rm -f conftest*
7951 if test $ac_cv_header_stdc = yes; then
7952 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7953 if test "$cross_compiling" = yes; then
7955 else
7956 cat >conftest.$ac_ext <<_ACEOF
7957 /* confdefs.h. */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7962 #include <ctype.h>
7963 #if ((' ' & 0x0FF) == 0x020)
7964 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7965 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7966 #else
7967 # define ISLOWER(c) \
7968 (('a' <= (c) && (c) <= 'i') \
7969 || ('j' <= (c) && (c) <= 'r') \
7970 || ('s' <= (c) && (c) <= 'z'))
7971 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7972 #endif
7974 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7976 main ()
7978 int i;
7979 for (i = 0; i < 256; i++)
7980 if (XOR (islower (i), ISLOWER (i))
7981 || toupper (i) != TOUPPER (i))
7982 exit(2);
7983 exit (0);
7985 _ACEOF
7986 rm -f conftest$ac_exeext
7987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7988 (eval $ac_link) 2>&5
7989 ac_status=$?
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 (eval $ac_try) 2>&5
7994 ac_status=$?
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; }; then
7998 else
7999 echo "$as_me: program exited with status $ac_status" >&5
8000 echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.$ac_ext >&5
8003 ( exit $ac_status )
8004 ac_cv_header_stdc=no
8006 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8010 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8011 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8012 if test $ac_cv_header_stdc = yes; then
8014 cat >>confdefs.h <<\_ACEOF
8015 #define STDC_HEADERS 1
8016 _ACEOF
8020 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8021 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8022 if test "${ac_cv_c_const+set}" = set; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
8024 else
8025 cat >conftest.$ac_ext <<_ACEOF
8026 /* confdefs.h. */
8027 _ACEOF
8028 cat confdefs.h >>conftest.$ac_ext
8029 cat >>conftest.$ac_ext <<_ACEOF
8030 /* end confdefs.h. */
8033 main ()
8035 /* FIXME: Include the comments suggested by Paul. */
8036 #ifndef __cplusplus
8037 /* Ultrix mips cc rejects this. */
8038 typedef int charset[2];
8039 const charset x;
8040 /* SunOS 4.1.1 cc rejects this. */
8041 char const *const *ccp;
8042 char **p;
8043 /* NEC SVR4.0.2 mips cc rejects this. */
8044 struct point {int x, y;};
8045 static struct point const zero = {0,0};
8046 /* AIX XL C 1.02.0.0 rejects this.
8047 It does not let you subtract one const X* pointer from another in
8048 an arm of an if-expression whose if-part is not a constant
8049 expression */
8050 const char *g = "string";
8051 ccp = &g + (g ? g-g : 0);
8052 /* HPUX 7.0 cc rejects these. */
8053 ++ccp;
8054 p = (char**) ccp;
8055 ccp = (char const *const *) p;
8056 { /* SCO 3.2v4 cc rejects this. */
8057 char *t;
8058 char const *s = 0 ? (char *) 0 : (char const *) 0;
8060 *t++ = 0;
8062 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8063 int x[] = {25, 17};
8064 const int *foo = &x[0];
8065 ++foo;
8067 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8068 typedef const int *iptr;
8069 iptr p = 0;
8070 ++p;
8072 { /* AIX XL C 1.02.0.0 rejects this saying
8073 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8074 struct s { int j; const int *ap[3]; };
8075 struct s *b; b->j = 5;
8077 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8078 const int foo = 10;
8080 #endif
8083 return 0;
8085 _ACEOF
8086 rm -f conftest.$ac_objext
8087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8088 (eval $ac_compile) 2>conftest.er1
8089 ac_status=$?
8090 grep -v '^ *+' conftest.er1 >conftest.err
8091 rm -f conftest.er1
8092 cat conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } &&
8095 { ac_try='test -z "$ac_c_werror_flag"
8096 || test ! -s conftest.err'
8097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098 (eval $ac_try) 2>&5
8099 ac_status=$?
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); }; } &&
8102 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8108 ac_cv_c_const=yes
8109 else
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8113 ac_cv_c_const=no
8115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8117 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8118 echo "${ECHO_T}$ac_cv_c_const" >&6
8119 if test $ac_cv_c_const = no; then
8121 cat >>confdefs.h <<\_ACEOF
8122 #define const
8123 _ACEOF
8127 echo "$as_me:$LINENO: checking for inline" >&5
8128 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8129 if test "${ac_cv_c_inline+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8131 else
8132 ac_cv_c_inline=no
8133 for ac_kw in inline __inline__ __inline; do
8134 cat >conftest.$ac_ext <<_ACEOF
8135 /* confdefs.h. */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8140 #ifndef __cplusplus
8141 typedef int foo_t;
8142 static $ac_kw foo_t static_foo () {return 0; }
8143 $ac_kw foo_t foo () {return 0; }
8144 #endif
8146 _ACEOF
8147 rm -f conftest.$ac_objext
8148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8149 (eval $ac_compile) 2>conftest.er1
8150 ac_status=$?
8151 grep -v '^ *+' conftest.er1 >conftest.err
8152 rm -f conftest.er1
8153 cat conftest.err >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); } &&
8156 { ac_try='test -z "$ac_c_werror_flag"
8157 || test ! -s conftest.err'
8158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8159 (eval $ac_try) 2>&5
8160 ac_status=$?
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); }; } &&
8163 { ac_try='test -s conftest.$ac_objext'
8164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165 (eval $ac_try) 2>&5
8166 ac_status=$?
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); }; }; then
8169 ac_cv_c_inline=$ac_kw; break
8170 else
8171 echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8176 done
8179 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8180 echo "${ECHO_T}$ac_cv_c_inline" >&6
8183 case $ac_cv_c_inline in
8184 inline | yes) ;;
8186 case $ac_cv_c_inline in
8187 no) ac_val=;;
8188 *) ac_val=$ac_cv_c_inline;;
8189 esac
8190 cat >>confdefs.h <<_ACEOF
8191 #ifndef __cplusplus
8192 #define inline $ac_val
8193 #endif
8194 _ACEOF
8196 esac
8198 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8208 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8209 inttypes.h stdint.h unistd.h
8211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8212 echo "$as_me:$LINENO: checking for $ac_header" >&5
8213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8216 else
8217 cat >conftest.$ac_ext <<_ACEOF
8218 /* confdefs.h. */
8219 _ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h. */
8223 $ac_includes_default
8225 #include <$ac_header>
8226 _ACEOF
8227 rm -f conftest.$ac_objext
8228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8229 (eval $ac_compile) 2>conftest.er1
8230 ac_status=$?
8231 grep -v '^ *+' conftest.er1 >conftest.err
8232 rm -f conftest.er1
8233 cat conftest.err >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } &&
8236 { ac_try='test -z "$ac_c_werror_flag"
8237 || test ! -s conftest.err'
8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239 (eval $ac_try) 2>&5
8240 ac_status=$?
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; } &&
8243 { ac_try='test -s conftest.$ac_objext'
8244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245 (eval $ac_try) 2>&5
8246 ac_status=$?
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); }; }; then
8249 eval "$as_ac_Header=yes"
8250 else
8251 echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8254 eval "$as_ac_Header=no"
8256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8261 cat >>confdefs.h <<_ACEOF
8262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8263 _ACEOF
8267 done
8270 echo "$as_me:$LINENO: checking for off_t" >&5
8271 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8272 if test "${ac_cv_type_off_t+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 else
8275 cat >conftest.$ac_ext <<_ACEOF
8276 /* confdefs.h. */
8277 _ACEOF
8278 cat confdefs.h >>conftest.$ac_ext
8279 cat >>conftest.$ac_ext <<_ACEOF
8280 /* end confdefs.h. */
8281 $ac_includes_default
8283 main ()
8285 if ((off_t *) 0)
8286 return 0;
8287 if (sizeof (off_t))
8288 return 0;
8290 return 0;
8292 _ACEOF
8293 rm -f conftest.$ac_objext
8294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8295 (eval $ac_compile) 2>conftest.er1
8296 ac_status=$?
8297 grep -v '^ *+' conftest.er1 >conftest.err
8298 rm -f conftest.er1
8299 cat conftest.err >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } &&
8302 { ac_try='test -z "$ac_c_werror_flag"
8303 || test ! -s conftest.err'
8304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305 (eval $ac_try) 2>&5
8306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; } &&
8309 { ac_try='test -s conftest.$ac_objext'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311 (eval $ac_try) 2>&5
8312 ac_status=$?
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 ac_cv_type_off_t=yes
8316 else
8317 echo "$as_me: failed program was:" >&5
8318 sed 's/^/| /' conftest.$ac_ext >&5
8320 ac_cv_type_off_t=no
8322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8324 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8325 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8326 if test $ac_cv_type_off_t = yes; then
8328 else
8330 cat >>confdefs.h <<_ACEOF
8331 #define off_t long
8332 _ACEOF
8336 echo "$as_me:$LINENO: checking for size_t" >&5
8337 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8338 if test "${ac_cv_type_size_t+set}" = set; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
8340 else
8341 cat >conftest.$ac_ext <<_ACEOF
8342 /* confdefs.h. */
8343 _ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h. */
8347 $ac_includes_default
8349 main ()
8351 if ((size_t *) 0)
8352 return 0;
8353 if (sizeof (size_t))
8354 return 0;
8356 return 0;
8358 _ACEOF
8359 rm -f conftest.$ac_objext
8360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8361 (eval $ac_compile) 2>conftest.er1
8362 ac_status=$?
8363 grep -v '^ *+' conftest.er1 >conftest.err
8364 rm -f conftest.er1
8365 cat conftest.err >&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } &&
8368 { ac_try='test -z "$ac_c_werror_flag"
8369 || test ! -s conftest.err'
8370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8371 (eval $ac_try) 2>&5
8372 ac_status=$?
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; } &&
8375 { ac_try='test -s conftest.$ac_objext'
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 (eval $ac_try) 2>&5
8378 ac_status=$?
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; }; then
8381 ac_cv_type_size_t=yes
8382 else
8383 echo "$as_me: failed program was:" >&5
8384 sed 's/^/| /' conftest.$ac_ext >&5
8386 ac_cv_type_size_t=no
8388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8390 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8391 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8392 if test $ac_cv_type_size_t = yes; then
8394 else
8396 cat >>confdefs.h <<_ACEOF
8397 #define size_t unsigned
8398 _ACEOF
8402 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8403 # for constant arguments. Useless!
8404 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8405 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8406 if test "${ac_cv_working_alloca_h+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 else
8409 cat >conftest.$ac_ext <<_ACEOF
8410 /* confdefs.h. */
8411 _ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8415 #include <alloca.h>
8417 main ()
8419 char *p = (char *) alloca (2 * sizeof (int));
8421 return 0;
8423 _ACEOF
8424 rm -f conftest.$ac_objext conftest$ac_exeext
8425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8426 (eval $ac_link) 2>conftest.er1
8427 ac_status=$?
8428 grep -v '^ *+' conftest.er1 >conftest.err
8429 rm -f conftest.er1
8430 cat conftest.err >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); } &&
8433 { ac_try='test -z "$ac_c_werror_flag"
8434 || test ! -s conftest.err'
8435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436 (eval $ac_try) 2>&5
8437 ac_status=$?
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); }; } &&
8440 { ac_try='test -s conftest$ac_exeext'
8441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442 (eval $ac_try) 2>&5
8443 ac_status=$?
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); }; }; then
8446 ac_cv_working_alloca_h=yes
8447 else
8448 echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8451 ac_cv_working_alloca_h=no
8453 rm -f conftest.err conftest.$ac_objext \
8454 conftest$ac_exeext conftest.$ac_ext
8456 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8457 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8458 if test $ac_cv_working_alloca_h = yes; then
8460 cat >>confdefs.h <<\_ACEOF
8461 #define HAVE_ALLOCA_H 1
8462 _ACEOF
8466 echo "$as_me:$LINENO: checking for alloca" >&5
8467 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8468 if test "${ac_cv_func_alloca_works+set}" = set; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8470 else
8471 cat >conftest.$ac_ext <<_ACEOF
8472 /* confdefs.h. */
8473 _ACEOF
8474 cat confdefs.h >>conftest.$ac_ext
8475 cat >>conftest.$ac_ext <<_ACEOF
8476 /* end confdefs.h. */
8477 #ifdef __GNUC__
8478 # define alloca __builtin_alloca
8479 #else
8480 # ifdef _MSC_VER
8481 # include <malloc.h>
8482 # define alloca _alloca
8483 # else
8484 # if HAVE_ALLOCA_H
8485 # include <alloca.h>
8486 # else
8487 # ifdef _AIX
8488 #pragma alloca
8489 # else
8490 # ifndef alloca /* predefined by HP cc +Olibcalls */
8491 char *alloca ();
8492 # endif
8493 # endif
8494 # endif
8495 # endif
8496 #endif
8499 main ()
8501 char *p = (char *) alloca (1);
8503 return 0;
8505 _ACEOF
8506 rm -f conftest.$ac_objext conftest$ac_exeext
8507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8508 (eval $ac_link) 2>conftest.er1
8509 ac_status=$?
8510 grep -v '^ *+' conftest.er1 >conftest.err
8511 rm -f conftest.er1
8512 cat conftest.err >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); } &&
8515 { ac_try='test -z "$ac_c_werror_flag"
8516 || test ! -s conftest.err'
8517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518 (eval $ac_try) 2>&5
8519 ac_status=$?
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; } &&
8522 { ac_try='test -s conftest$ac_exeext'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 (eval $ac_try) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; }; then
8528 ac_cv_func_alloca_works=yes
8529 else
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8533 ac_cv_func_alloca_works=no
8535 rm -f conftest.err conftest.$ac_objext \
8536 conftest$ac_exeext conftest.$ac_ext
8538 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8539 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8541 if test $ac_cv_func_alloca_works = yes; then
8543 cat >>confdefs.h <<\_ACEOF
8544 #define HAVE_ALLOCA 1
8545 _ACEOF
8547 else
8548 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8549 # that cause trouble. Some versions do not even contain alloca or
8550 # contain a buggy version. If you still want to use their alloca,
8551 # use ar to extract alloca.o from them instead of compiling alloca.c.
8553 ALLOCA=alloca.$ac_objext
8555 cat >>confdefs.h <<\_ACEOF
8556 #define C_ALLOCA 1
8557 _ACEOF
8560 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8561 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8562 if test "${ac_cv_os_cray+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 else
8565 cat >conftest.$ac_ext <<_ACEOF
8566 /* confdefs.h. */
8567 _ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h. */
8571 #if defined(CRAY) && ! defined(CRAY2)
8572 webecray
8573 #else
8574 wenotbecray
8575 #endif
8577 _ACEOF
8578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8579 $EGREP "webecray" >/dev/null 2>&1; then
8580 ac_cv_os_cray=yes
8581 else
8582 ac_cv_os_cray=no
8584 rm -f conftest*
8587 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8588 echo "${ECHO_T}$ac_cv_os_cray" >&6
8589 if test $ac_cv_os_cray = yes; then
8590 for ac_func in _getb67 GETB67 getb67; do
8591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8592 echo "$as_me:$LINENO: checking for $ac_func" >&5
8593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8594 if eval "test \"\${$as_ac_var+set}\" = set"; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8596 else
8597 cat >conftest.$ac_ext <<_ACEOF
8598 /* confdefs.h. */
8599 _ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8605 #define $ac_func innocuous_$ac_func
8607 /* System header to define __stub macros and hopefully few prototypes,
8608 which can conflict with char $ac_func (); below.
8609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8610 <limits.h> exists even on freestanding compilers. */
8612 #ifdef __STDC__
8613 # include <limits.h>
8614 #else
8615 # include <assert.h>
8616 #endif
8618 #undef $ac_func
8620 /* Override any gcc2 internal prototype to avoid an error. */
8621 #ifdef __cplusplus
8622 extern "C"
8624 #endif
8625 /* We use char because int might match the return type of a gcc2
8626 builtin and then its argument prototype would still apply. */
8627 char $ac_func ();
8628 /* The GNU C library defines this for functions which it implements
8629 to always fail with ENOSYS. Some functions are actually named
8630 something starting with __ and the normal name is an alias. */
8631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8632 choke me
8633 #else
8634 char (*f) () = $ac_func;
8635 #endif
8636 #ifdef __cplusplus
8638 #endif
8641 main ()
8643 return f != $ac_func;
8645 return 0;
8647 _ACEOF
8648 rm -f conftest.$ac_objext conftest$ac_exeext
8649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8650 (eval $ac_link) 2>conftest.er1
8651 ac_status=$?
8652 grep -v '^ *+' conftest.er1 >conftest.err
8653 rm -f conftest.er1
8654 cat conftest.err >&5
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); } &&
8657 { ac_try='test -z "$ac_c_werror_flag"
8658 || test ! -s conftest.err'
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 (eval $ac_try) 2>&5
8661 ac_status=$?
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; } &&
8664 { ac_try='test -s conftest$ac_exeext'
8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 (eval $ac_try) 2>&5
8667 ac_status=$?
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); }; }; then
8670 eval "$as_ac_var=yes"
8671 else
8672 echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8675 eval "$as_ac_var=no"
8677 rm -f conftest.err conftest.$ac_objext \
8678 conftest$ac_exeext conftest.$ac_ext
8680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8682 if test `eval echo '${'$as_ac_var'}'` = yes; then
8684 cat >>confdefs.h <<_ACEOF
8685 #define CRAY_STACKSEG_END $ac_func
8686 _ACEOF
8688 break
8691 done
8694 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8695 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8696 if test "${ac_cv_c_stack_direction+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8698 else
8699 if test "$cross_compiling" = yes; then
8700 ac_cv_c_stack_direction=0
8701 else
8702 cat >conftest.$ac_ext <<_ACEOF
8703 /* confdefs.h. */
8704 _ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h. */
8709 find_stack_direction ()
8711 static char *addr = 0;
8712 auto char dummy;
8713 if (addr == 0)
8715 addr = &dummy;
8716 return find_stack_direction ();
8718 else
8719 return (&dummy > addr) ? 1 : -1;
8723 main ()
8725 exit (find_stack_direction () < 0);
8727 _ACEOF
8728 rm -f conftest$ac_exeext
8729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8730 (eval $ac_link) 2>&5
8731 ac_status=$?
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735 (eval $ac_try) 2>&5
8736 ac_status=$?
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; }; then
8739 ac_cv_c_stack_direction=1
8740 else
8741 echo "$as_me: program exited with status $ac_status" >&5
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8745 ( exit $ac_status )
8746 ac_cv_c_stack_direction=-1
8748 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8751 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8752 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8754 cat >>confdefs.h <<_ACEOF
8755 #define STACK_DIRECTION $ac_cv_c_stack_direction
8756 _ACEOF
8763 for ac_header in stdlib.h unistd.h
8765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8767 echo "$as_me:$LINENO: checking for $ac_header" >&5
8768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8770 echo $ECHO_N "(cached) $ECHO_C" >&6
8772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8774 else
8775 # Is the header compilable?
8776 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8778 cat >conftest.$ac_ext <<_ACEOF
8779 /* confdefs.h. */
8780 _ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h. */
8784 $ac_includes_default
8785 #include <$ac_header>
8786 _ACEOF
8787 rm -f conftest.$ac_objext
8788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8789 (eval $ac_compile) 2>conftest.er1
8790 ac_status=$?
8791 grep -v '^ *+' conftest.er1 >conftest.err
8792 rm -f conftest.er1
8793 cat conftest.err >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); } &&
8796 { ac_try='test -z "$ac_c_werror_flag"
8797 || test ! -s conftest.err'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799 (eval $ac_try) 2>&5
8800 ac_status=$?
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; } &&
8803 { ac_try='test -s conftest.$ac_objext'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805 (eval $ac_try) 2>&5
8806 ac_status=$?
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; }; then
8809 ac_header_compiler=yes
8810 else
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8814 ac_header_compiler=no
8816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8818 echo "${ECHO_T}$ac_header_compiler" >&6
8820 # Is the header present?
8821 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8823 cat >conftest.$ac_ext <<_ACEOF
8824 /* confdefs.h. */
8825 _ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8829 #include <$ac_header>
8830 _ACEOF
8831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8833 ac_status=$?
8834 grep -v '^ *+' conftest.er1 >conftest.err
8835 rm -f conftest.er1
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } >/dev/null; then
8839 if test -s conftest.err; then
8840 ac_cpp_err=$ac_c_preproc_warn_flag
8841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8842 else
8843 ac_cpp_err=
8845 else
8846 ac_cpp_err=yes
8848 if test -z "$ac_cpp_err"; then
8849 ac_header_preproc=yes
8850 else
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8854 ac_header_preproc=no
8856 rm -f conftest.err conftest.$ac_ext
8857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8858 echo "${ECHO_T}$ac_header_preproc" >&6
8860 # So? What about this header?
8861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8862 yes:no: )
8863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8867 ac_header_preproc=yes
8869 no:yes:* )
8870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8873 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8877 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8883 cat <<\_ASBOX
8884 ## ------------------------------- ##
8885 ## Report this to guichaz@yahoo.fr ##
8886 ## ------------------------------- ##
8887 _ASBOX
8889 sed "s/^/$as_me: WARNING: /" >&2
8891 esac
8892 echo "$as_me:$LINENO: checking for $ac_header" >&5
8893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8895 echo $ECHO_N "(cached) $ECHO_C" >&6
8896 else
8897 eval "$as_ac_Header=\$ac_header_preproc"
8899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8904 cat >>confdefs.h <<_ACEOF
8905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8906 _ACEOF
8910 done
8913 for ac_func in getpagesize
8915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8916 echo "$as_me:$LINENO: checking for $ac_func" >&5
8917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8918 if eval "test \"\${$as_ac_var+set}\" = set"; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8920 else
8921 cat >conftest.$ac_ext <<_ACEOF
8922 /* confdefs.h. */
8923 _ACEOF
8924 cat confdefs.h >>conftest.$ac_ext
8925 cat >>conftest.$ac_ext <<_ACEOF
8926 /* end confdefs.h. */
8927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8929 #define $ac_func innocuous_$ac_func
8931 /* System header to define __stub macros and hopefully few prototypes,
8932 which can conflict with char $ac_func (); below.
8933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8934 <limits.h> exists even on freestanding compilers. */
8936 #ifdef __STDC__
8937 # include <limits.h>
8938 #else
8939 # include <assert.h>
8940 #endif
8942 #undef $ac_func
8944 /* Override any gcc2 internal prototype to avoid an error. */
8945 #ifdef __cplusplus
8946 extern "C"
8948 #endif
8949 /* We use char because int might match the return type of a gcc2
8950 builtin and then its argument prototype would still apply. */
8951 char $ac_func ();
8952 /* The GNU C library defines this for functions which it implements
8953 to always fail with ENOSYS. Some functions are actually named
8954 something starting with __ and the normal name is an alias. */
8955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8956 choke me
8957 #else
8958 char (*f) () = $ac_func;
8959 #endif
8960 #ifdef __cplusplus
8962 #endif
8965 main ()
8967 return f != $ac_func;
8969 return 0;
8971 _ACEOF
8972 rm -f conftest.$ac_objext conftest$ac_exeext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8974 (eval $ac_link) 2>conftest.er1
8975 ac_status=$?
8976 grep -v '^ *+' conftest.er1 >conftest.err
8977 rm -f conftest.er1
8978 cat conftest.err >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } &&
8981 { ac_try='test -z "$ac_c_werror_flag"
8982 || test ! -s conftest.err'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 (eval $ac_try) 2>&5
8985 ac_status=$?
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; } &&
8988 { ac_try='test -s conftest$ac_exeext'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 (eval $ac_try) 2>&5
8991 ac_status=$?
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
8994 eval "$as_ac_var=yes"
8995 else
8996 echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8999 eval "$as_ac_var=no"
9001 rm -f conftest.err conftest.$ac_objext \
9002 conftest$ac_exeext conftest.$ac_ext
9004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9006 if test `eval echo '${'$as_ac_var'}'` = yes; then
9007 cat >>confdefs.h <<_ACEOF
9008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9009 _ACEOF
9012 done
9014 echo "$as_me:$LINENO: checking for working mmap" >&5
9015 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9016 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9018 else
9019 if test "$cross_compiling" = yes; then
9020 ac_cv_func_mmap_fixed_mapped=no
9021 else
9022 cat >conftest.$ac_ext <<_ACEOF
9023 /* confdefs.h. */
9024 _ACEOF
9025 cat confdefs.h >>conftest.$ac_ext
9026 cat >>conftest.$ac_ext <<_ACEOF
9027 /* end confdefs.h. */
9028 $ac_includes_default
9029 /* malloc might have been renamed as rpl_malloc. */
9030 #undef malloc
9032 /* Thanks to Mike Haertel and Jim Avera for this test.
9033 Here is a matrix of mmap possibilities:
9034 mmap private not fixed
9035 mmap private fixed at somewhere currently unmapped
9036 mmap private fixed at somewhere already mapped
9037 mmap shared not fixed
9038 mmap shared fixed at somewhere currently unmapped
9039 mmap shared fixed at somewhere already mapped
9040 For private mappings, we should verify that changes cannot be read()
9041 back from the file, nor mmap's back from the file at a different
9042 address. (There have been systems where private was not correctly
9043 implemented like the infamous i386 svr4.0, and systems where the
9044 VM page cache was not coherent with the file system buffer cache
9045 like early versions of FreeBSD and possibly contemporary NetBSD.)
9046 For shared mappings, we should conversely verify that changes get
9047 propagated back to all the places they're supposed to be.
9049 Grep wants private fixed already mapped.
9050 The main things grep needs to know about mmap are:
9051 * does it exist and is it safe to write into the mmap'd area
9052 * how to use it (BSD variants) */
9054 #include <fcntl.h>
9055 #include <sys/mman.h>
9057 #if !STDC_HEADERS && !HAVE_STDLIB_H
9058 char *malloc ();
9059 #endif
9061 /* This mess was copied from the GNU getpagesize.h. */
9062 #if !HAVE_GETPAGESIZE
9063 /* Assume that all systems that can run configure have sys/param.h. */
9064 # if !HAVE_SYS_PARAM_H
9065 # define HAVE_SYS_PARAM_H 1
9066 # endif
9068 # ifdef _SC_PAGESIZE
9069 # define getpagesize() sysconf(_SC_PAGESIZE)
9070 # else /* no _SC_PAGESIZE */
9071 # if HAVE_SYS_PARAM_H
9072 # include <sys/param.h>
9073 # ifdef EXEC_PAGESIZE
9074 # define getpagesize() EXEC_PAGESIZE
9075 # else /* no EXEC_PAGESIZE */
9076 # ifdef NBPG
9077 # define getpagesize() NBPG * CLSIZE
9078 # ifndef CLSIZE
9079 # define CLSIZE 1
9080 # endif /* no CLSIZE */
9081 # else /* no NBPG */
9082 # ifdef NBPC
9083 # define getpagesize() NBPC
9084 # else /* no NBPC */
9085 # ifdef PAGESIZE
9086 # define getpagesize() PAGESIZE
9087 # endif /* PAGESIZE */
9088 # endif /* no NBPC */
9089 # endif /* no NBPG */
9090 # endif /* no EXEC_PAGESIZE */
9091 # else /* no HAVE_SYS_PARAM_H */
9092 # define getpagesize() 8192 /* punt totally */
9093 # endif /* no HAVE_SYS_PARAM_H */
9094 # endif /* no _SC_PAGESIZE */
9096 #endif /* no HAVE_GETPAGESIZE */
9099 main ()
9101 char *data, *data2, *data3;
9102 int i, pagesize;
9103 int fd;
9105 pagesize = getpagesize ();
9107 /* First, make a file with some known garbage in it. */
9108 data = (char *) malloc (pagesize);
9109 if (!data)
9110 exit (1);
9111 for (i = 0; i < pagesize; ++i)
9112 *(data + i) = rand ();
9113 umask (0);
9114 fd = creat ("conftest.mmap", 0600);
9115 if (fd < 0)
9116 exit (1);
9117 if (write (fd, data, pagesize) != pagesize)
9118 exit (1);
9119 close (fd);
9121 /* Next, try to mmap the file at a fixed address which already has
9122 something else allocated at it. If we can, also make sure that
9123 we see the same garbage. */
9124 fd = open ("conftest.mmap", O_RDWR);
9125 if (fd < 0)
9126 exit (1);
9127 data2 = (char *) malloc (2 * pagesize);
9128 if (!data2)
9129 exit (1);
9130 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9131 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9132 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9133 exit (1);
9134 for (i = 0; i < pagesize; ++i)
9135 if (*(data + i) != *(data2 + i))
9136 exit (1);
9138 /* Finally, make sure that changes to the mapped area do not
9139 percolate back to the file as seen by read(). (This is a bug on
9140 some variants of i386 svr4.0.) */
9141 for (i = 0; i < pagesize; ++i)
9142 *(data2 + i) = *(data2 + i) + 1;
9143 data3 = (char *) malloc (pagesize);
9144 if (!data3)
9145 exit (1);
9146 if (read (fd, data3, pagesize) != pagesize)
9147 exit (1);
9148 for (i = 0; i < pagesize; ++i)
9149 if (*(data + i) != *(data3 + i))
9150 exit (1);
9151 close (fd);
9152 exit (0);
9154 _ACEOF
9155 rm -f conftest$ac_exeext
9156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9157 (eval $ac_link) 2>&5
9158 ac_status=$?
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162 (eval $ac_try) 2>&5
9163 ac_status=$?
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; }; then
9166 ac_cv_func_mmap_fixed_mapped=yes
9167 else
9168 echo "$as_me: program exited with status $ac_status" >&5
9169 echo "$as_me: failed program was:" >&5
9170 sed 's/^/| /' conftest.$ac_ext >&5
9172 ( exit $ac_status )
9173 ac_cv_func_mmap_fixed_mapped=no
9175 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9178 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9179 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9180 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9182 cat >>confdefs.h <<\_ACEOF
9183 #define HAVE_MMAP 1
9184 _ACEOF
9187 rm -f conftest.mmap
9190 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9191 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
9192 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9194 else
9195 cat >conftest.$ac_ext <<_ACEOF
9196 /* confdefs.h. */
9197 _ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h. */
9202 #include <features.h>
9203 #ifdef __GNU_LIBRARY__
9204 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9205 Lucky GNU user
9206 #endif
9207 #endif
9209 _ACEOF
9210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9211 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9212 ac_cv_gnu_library_2_1=yes
9213 else
9214 ac_cv_gnu_library_2_1=no
9216 rm -f conftest*
9221 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9222 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
9224 GLIBC21="$ac_cv_gnu_library_2_1"
9229 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9230 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
9231 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9233 else
9235 if test "$cross_compiling" = yes; then
9237 # Guess based on the CPU.
9238 case "$host_cpu" in
9239 alpha* | i3456786 | m68k | s390*)
9240 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9242 gt_cv_int_divbyzero_sigfpe="guessing no";;
9243 esac
9245 else
9246 cat >conftest.$ac_ext <<_ACEOF
9247 /* confdefs.h. */
9248 _ACEOF
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h. */
9253 #include <stdlib.h>
9254 #include <signal.h>
9256 static void
9257 #ifdef __cplusplus
9258 sigfpe_handler (int sig)
9259 #else
9260 sigfpe_handler (sig) int sig;
9261 #endif
9263 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9264 exit (sig != SIGFPE);
9267 int x = 1;
9268 int y = 0;
9269 int z;
9270 int nan;
9272 int main ()
9274 signal (SIGFPE, sigfpe_handler);
9275 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9276 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9277 signal (SIGTRAP, sigfpe_handler);
9278 #endif
9279 /* Linux/SPARC yields signal SIGILL. */
9280 #if defined (__sparc__) && defined (__linux__)
9281 signal (SIGILL, sigfpe_handler);
9282 #endif
9284 z = x / y;
9285 nan = y / y;
9286 exit (1);
9289 _ACEOF
9290 rm -f conftest$ac_exeext
9291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9292 (eval $ac_link) 2>&5
9293 ac_status=$?
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297 (eval $ac_try) 2>&5
9298 ac_status=$?
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; }; then
9301 gt_cv_int_divbyzero_sigfpe=yes
9302 else
9303 echo "$as_me: program exited with status $ac_status" >&5
9304 echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9307 ( exit $ac_status )
9308 gt_cv_int_divbyzero_sigfpe=no
9310 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9314 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9315 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9316 case "$gt_cv_int_divbyzero_sigfpe" in
9317 *yes) value=1;;
9318 *) value=0;;
9319 esac
9321 cat >>confdefs.h <<_ACEOF
9322 #define INTDIV0_RAISES_SIGFPE $value
9323 _ACEOF
9327 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9328 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9329 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
9330 echo $ECHO_N "(cached) $ECHO_C" >&6
9331 else
9332 cat >conftest.$ac_ext <<_ACEOF
9333 /* confdefs.h. */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9338 #include <sys/types.h>
9339 #include <inttypes.h>
9341 main ()
9343 uintmax_t i = (uintmax_t) -1;
9345 return 0;
9347 _ACEOF
9348 rm -f conftest.$ac_objext
9349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9350 (eval $ac_compile) 2>conftest.er1
9351 ac_status=$?
9352 grep -v '^ *+' conftest.er1 >conftest.err
9353 rm -f conftest.er1
9354 cat conftest.err >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } &&
9357 { ac_try='test -z "$ac_c_werror_flag"
9358 || test ! -s conftest.err'
9359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360 (eval $ac_try) 2>&5
9361 ac_status=$?
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); }; } &&
9364 { ac_try='test -s conftest.$ac_objext'
9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366 (eval $ac_try) 2>&5
9367 ac_status=$?
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }; }; then
9370 jm_ac_cv_header_inttypes_h=yes
9371 else
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9375 jm_ac_cv_header_inttypes_h=no
9377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9379 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
9380 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
9381 if test $jm_ac_cv_header_inttypes_h = yes; then
9383 cat >>confdefs.h <<_ACEOF
9384 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
9385 _ACEOF
9390 echo "$as_me:$LINENO: checking for stdint.h" >&5
9391 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
9392 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9394 else
9395 cat >conftest.$ac_ext <<_ACEOF
9396 /* confdefs.h. */
9397 _ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9401 #include <sys/types.h>
9402 #include <stdint.h>
9404 main ()
9406 uintmax_t i = (uintmax_t) -1;
9408 return 0;
9410 _ACEOF
9411 rm -f conftest.$ac_objext
9412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9413 (eval $ac_compile) 2>conftest.er1
9414 ac_status=$?
9415 grep -v '^ *+' conftest.er1 >conftest.err
9416 rm -f conftest.er1
9417 cat conftest.err >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } &&
9420 { ac_try='test -z "$ac_c_werror_flag"
9421 || test ! -s conftest.err'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 (eval $ac_try) 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; } &&
9427 { ac_try='test -s conftest.$ac_objext'
9428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429 (eval $ac_try) 2>&5
9430 ac_status=$?
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); }; }; then
9433 jm_ac_cv_header_stdint_h=yes
9434 else
9435 echo "$as_me: failed program was:" >&5
9436 sed 's/^/| /' conftest.$ac_ext >&5
9438 jm_ac_cv_header_stdint_h=no
9440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9442 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
9443 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
9444 if test $jm_ac_cv_header_stdint_h = yes; then
9446 cat >>confdefs.h <<_ACEOF
9447 #define HAVE_STDINT_H_WITH_UINTMAX 1
9448 _ACEOF
9453 echo "$as_me:$LINENO: checking for unsigned long long" >&5
9454 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9455 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9457 else
9458 cat >conftest.$ac_ext <<_ACEOF
9459 /* confdefs.h. */
9460 _ACEOF
9461 cat confdefs.h >>conftest.$ac_ext
9462 cat >>conftest.$ac_ext <<_ACEOF
9463 /* end confdefs.h. */
9464 unsigned long long ull = 1; int i = 63;
9466 main ()
9468 unsigned long long ullmax = (unsigned long long) -1;
9469 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9471 return 0;
9473 _ACEOF
9474 rm -f conftest.$ac_objext conftest$ac_exeext
9475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9476 (eval $ac_link) 2>conftest.er1
9477 ac_status=$?
9478 grep -v '^ *+' conftest.er1 >conftest.err
9479 rm -f conftest.er1
9480 cat conftest.err >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } &&
9483 { ac_try='test -z "$ac_c_werror_flag"
9484 || test ! -s conftest.err'
9485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486 (eval $ac_try) 2>&5
9487 ac_status=$?
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); }; } &&
9490 { ac_try='test -s conftest$ac_exeext'
9491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492 (eval $ac_try) 2>&5
9493 ac_status=$?
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); }; }; then
9496 ac_cv_type_unsigned_long_long=yes
9497 else
9498 echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9501 ac_cv_type_unsigned_long_long=no
9503 rm -f conftest.err conftest.$ac_objext \
9504 conftest$ac_exeext conftest.$ac_ext
9506 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9507 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9508 if test $ac_cv_type_unsigned_long_long = yes; then
9510 cat >>confdefs.h <<\_ACEOF
9511 #define HAVE_UNSIGNED_LONG_LONG 1
9512 _ACEOF
9519 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
9521 test $ac_cv_type_unsigned_long_long = yes \
9522 && ac_type='unsigned long long' \
9523 || ac_type='unsigned long'
9525 cat >>confdefs.h <<_ACEOF
9526 #define uintmax_t $ac_type
9527 _ACEOF
9529 else
9531 cat >>confdefs.h <<\_ACEOF
9532 #define HAVE_UINTMAX_T 1
9533 _ACEOF
9538 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9539 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9540 if test "${gt_cv_header_inttypes_h+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9544 cat >conftest.$ac_ext <<_ACEOF
9545 /* confdefs.h. */
9546 _ACEOF
9547 cat confdefs.h >>conftest.$ac_ext
9548 cat >>conftest.$ac_ext <<_ACEOF
9549 /* end confdefs.h. */
9550 #include <sys/types.h>
9551 #include <inttypes.h>
9553 main ()
9557 return 0;
9559 _ACEOF
9560 rm -f conftest.$ac_objext
9561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9562 (eval $ac_compile) 2>conftest.er1
9563 ac_status=$?
9564 grep -v '^ *+' conftest.er1 >conftest.err
9565 rm -f conftest.er1
9566 cat conftest.err >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } &&
9569 { ac_try='test -z "$ac_c_werror_flag"
9570 || test ! -s conftest.err'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572 (eval $ac_try) 2>&5
9573 ac_status=$?
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; } &&
9576 { ac_try='test -s conftest.$ac_objext'
9577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578 (eval $ac_try) 2>&5
9579 ac_status=$?
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; }; then
9582 gt_cv_header_inttypes_h=yes
9583 else
9584 echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9587 gt_cv_header_inttypes_h=no
9589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9592 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9593 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9594 if test $gt_cv_header_inttypes_h = yes; then
9596 cat >>confdefs.h <<_ACEOF
9597 #define HAVE_INTTYPES_H 1
9598 _ACEOF
9604 if test $gt_cv_header_inttypes_h = yes; then
9605 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9606 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9607 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 else
9611 cat >conftest.$ac_ext <<_ACEOF
9612 /* confdefs.h. */
9613 _ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h. */
9617 #include <inttypes.h>
9618 #ifdef PRId32
9619 char *p = PRId32;
9620 #endif
9623 main ()
9627 return 0;
9629 _ACEOF
9630 rm -f conftest.$ac_objext
9631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9632 (eval $ac_compile) 2>conftest.er1
9633 ac_status=$?
9634 grep -v '^ *+' conftest.er1 >conftest.err
9635 rm -f conftest.er1
9636 cat conftest.err >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } &&
9639 { ac_try='test -z "$ac_c_werror_flag"
9640 || test ! -s conftest.err'
9641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642 (eval $ac_try) 2>&5
9643 ac_status=$?
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; } &&
9646 { ac_try='test -s conftest.$ac_objext'
9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648 (eval $ac_try) 2>&5
9649 ac_status=$?
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; }; then
9652 gt_cv_inttypes_pri_broken=no
9653 else
9654 echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.$ac_ext >&5
9657 gt_cv_inttypes_pri_broken=yes
9659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9662 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9663 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9665 if test "$gt_cv_inttypes_pri_broken" = yes; then
9667 cat >>confdefs.h <<_ACEOF
9668 #define PRI_MACROS_BROKEN 1
9669 _ACEOF
9674 if test "X$prefix" = "XNONE"; then
9675 acl_final_prefix="$ac_default_prefix"
9676 else
9677 acl_final_prefix="$prefix"
9679 if test "X$exec_prefix" = "XNONE"; then
9680 acl_final_exec_prefix='${prefix}'
9681 else
9682 acl_final_exec_prefix="$exec_prefix"
9684 acl_save_prefix="$prefix"
9685 prefix="$acl_final_prefix"
9686 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9687 prefix="$acl_save_prefix"
9690 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9691 if test "${with_gnu_ld+set}" = set; then
9692 withval="$with_gnu_ld"
9693 test "$withval" = no || with_gnu_ld=yes
9694 else
9695 with_gnu_ld=no
9697 # Prepare PATH_SEPARATOR.
9698 # The user is always right.
9699 if test "${PATH_SEPARATOR+set}" != set; then
9700 echo "#! /bin/sh" >conf$$.sh
9701 echo "exit 0" >>conf$$.sh
9702 chmod +x conf$$.sh
9703 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9704 PATH_SEPARATOR=';'
9705 else
9706 PATH_SEPARATOR=:
9708 rm -f conf$$.sh
9710 ac_prog=ld
9711 if test "$GCC" = yes; then
9712 # Check if gcc -print-prog-name=ld gives a path.
9713 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9714 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9715 case $host in
9716 *-*-mingw*)
9717 # gcc leaves a trailing carriage return which upsets mingw
9718 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9720 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9721 esac
9722 case $ac_prog in
9723 # Accept absolute paths.
9724 [\\/]* | [A-Za-z]:[\\/]*)
9725 re_direlt='/[^/][^/]*/\.\./'
9726 # Canonicalize the path of ld
9727 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9728 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9729 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9730 done
9731 test -z "$LD" && LD="$ac_prog"
9734 # If it fails, then pretend we aren't using GCC.
9735 ac_prog=ld
9738 # If it is relative, then search for the first ld in PATH.
9739 with_gnu_ld=unknown
9741 esac
9742 elif test "$with_gnu_ld" = yes; then
9743 echo "$as_me:$LINENO: checking for GNU ld" >&5
9744 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9745 else
9746 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9747 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9749 if test "${acl_cv_path_LD+set}" = set; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 else
9752 if test -z "$LD"; then
9753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9754 for ac_dir in $PATH; do
9755 test -z "$ac_dir" && ac_dir=.
9756 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9757 acl_cv_path_LD="$ac_dir/$ac_prog"
9758 # Check to see if the program is GNU ld. I'd rather use --version,
9759 # but apparently some GNU ld's only accept -v.
9760 # Break only if it was the GNU/non-GNU ld that we prefer.
9761 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9762 test "$with_gnu_ld" != no && break
9763 else
9764 test "$with_gnu_ld" != yes && break
9767 done
9768 IFS="$ac_save_ifs"
9769 else
9770 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9774 LD="$acl_cv_path_LD"
9775 if test -n "$LD"; then
9776 echo "$as_me:$LINENO: result: $LD" >&5
9777 echo "${ECHO_T}$LD" >&6
9778 else
9779 echo "$as_me:$LINENO: result: no" >&5
9780 echo "${ECHO_T}no" >&6
9782 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9783 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9784 { (exit 1); exit 1; }; }
9785 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9786 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9787 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
9789 else
9790 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9791 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9792 acl_cv_prog_gnu_ld=yes
9793 else
9794 acl_cv_prog_gnu_ld=no
9797 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9798 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9799 with_gnu_ld=$acl_cv_prog_gnu_ld
9803 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9804 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9805 if test "${acl_cv_rpath+set}" = set; then
9806 echo $ECHO_N "(cached) $ECHO_C" >&6
9807 else
9809 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9810 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9811 . ./conftest.sh
9812 rm -f ./conftest.sh
9813 acl_cv_rpath=done
9816 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9817 echo "${ECHO_T}$acl_cv_rpath" >&6
9818 wl="$acl_cv_wl"
9819 libext="$acl_cv_libext"
9820 shlibext="$acl_cv_shlibext"
9821 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9822 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9823 hardcode_direct="$acl_cv_hardcode_direct"
9824 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9825 # Check whether --enable-rpath or --disable-rpath was given.
9826 if test "${enable_rpath+set}" = set; then
9827 enableval="$enable_rpath"
9829 else
9830 enable_rpath=yes
9839 use_additional=yes
9841 acl_save_prefix="$prefix"
9842 prefix="$acl_final_prefix"
9843 acl_save_exec_prefix="$exec_prefix"
9844 exec_prefix="$acl_final_exec_prefix"
9846 eval additional_includedir=\"$includedir\"
9847 eval additional_libdir=\"$libdir\"
9849 exec_prefix="$acl_save_exec_prefix"
9850 prefix="$acl_save_prefix"
9853 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9854 if test "${with_libiconv_prefix+set}" = set; then
9855 withval="$with_libiconv_prefix"
9857 if test "X$withval" = "Xno"; then
9858 use_additional=no
9859 else
9860 if test "X$withval" = "X"; then
9862 acl_save_prefix="$prefix"
9863 prefix="$acl_final_prefix"
9864 acl_save_exec_prefix="$exec_prefix"
9865 exec_prefix="$acl_final_exec_prefix"
9867 eval additional_includedir=\"$includedir\"
9868 eval additional_libdir=\"$libdir\"
9870 exec_prefix="$acl_save_exec_prefix"
9871 prefix="$acl_save_prefix"
9873 else
9874 additional_includedir="$withval/include"
9875 additional_libdir="$withval/lib"
9880 LIBICONV=
9881 LTLIBICONV=
9882 INCICONV=
9883 rpathdirs=
9884 ltrpathdirs=
9885 names_already_handled=
9886 names_next_round='iconv '
9887 while test -n "$names_next_round"; do
9888 names_this_round="$names_next_round"
9889 names_next_round=
9890 for name in $names_this_round; do
9891 already_handled=
9892 for n in $names_already_handled; do
9893 if test "$n" = "$name"; then
9894 already_handled=yes
9895 break
9897 done
9898 if test -z "$already_handled"; then
9899 names_already_handled="$names_already_handled $name"
9900 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9901 eval value=\"\$HAVE_LIB$uppername\"
9902 if test -n "$value"; then
9903 if test "$value" = yes; then
9904 eval value=\"\$LIB$uppername\"
9905 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9906 eval value=\"\$LTLIB$uppername\"
9907 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9908 else
9911 else
9912 found_dir=
9913 found_la=
9914 found_so=
9915 found_a=
9916 if test $use_additional = yes; then
9917 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9918 found_dir="$additional_libdir"
9919 found_so="$additional_libdir/lib$name.$shlibext"
9920 if test -f "$additional_libdir/lib$name.la"; then
9921 found_la="$additional_libdir/lib$name.la"
9923 else
9924 if test -f "$additional_libdir/lib$name.$libext"; then
9925 found_dir="$additional_libdir"
9926 found_a="$additional_libdir/lib$name.$libext"
9927 if test -f "$additional_libdir/lib$name.la"; then
9928 found_la="$additional_libdir/lib$name.la"
9933 if test "X$found_dir" = "X"; then
9934 for x in $LDFLAGS $LTLIBICONV; do
9936 acl_save_prefix="$prefix"
9937 prefix="$acl_final_prefix"
9938 acl_save_exec_prefix="$exec_prefix"
9939 exec_prefix="$acl_final_exec_prefix"
9940 eval x=\"$x\"
9941 exec_prefix="$acl_save_exec_prefix"
9942 prefix="$acl_save_prefix"
9944 case "$x" in
9945 -L*)
9946 dir=`echo "X$x" | sed -e 's/^X-L//'`
9947 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9948 found_dir="$dir"
9949 found_so="$dir/lib$name.$shlibext"
9950 if test -f "$dir/lib$name.la"; then
9951 found_la="$dir/lib$name.la"
9953 else
9954 if test -f "$dir/lib$name.$libext"; then
9955 found_dir="$dir"
9956 found_a="$dir/lib$name.$libext"
9957 if test -f "$dir/lib$name.la"; then
9958 found_la="$dir/lib$name.la"
9963 esac
9964 if test "X$found_dir" != "X"; then
9965 break
9967 done
9969 if test "X$found_dir" != "X"; then
9970 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9971 if test "X$found_so" != "X"; then
9972 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9973 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9974 else
9975 haveit=
9976 for x in $ltrpathdirs; do
9977 if test "X$x" = "X$found_dir"; then
9978 haveit=yes
9979 break
9981 done
9982 if test -z "$haveit"; then
9983 ltrpathdirs="$ltrpathdirs $found_dir"
9985 if test "$hardcode_direct" = yes; then
9986 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9987 else
9988 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9989 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9990 haveit=
9991 for x in $rpathdirs; do
9992 if test "X$x" = "X$found_dir"; then
9993 haveit=yes
9994 break
9996 done
9997 if test -z "$haveit"; then
9998 rpathdirs="$rpathdirs $found_dir"
10000 else
10001 haveit=
10002 for x in $LDFLAGS $LIBICONV; do
10004 acl_save_prefix="$prefix"
10005 prefix="$acl_final_prefix"
10006 acl_save_exec_prefix="$exec_prefix"
10007 exec_prefix="$acl_final_exec_prefix"
10008 eval x=\"$x\"
10009 exec_prefix="$acl_save_exec_prefix"
10010 prefix="$acl_save_prefix"
10012 if test "X$x" = "X-L$found_dir"; then
10013 haveit=yes
10014 break
10016 done
10017 if test -z "$haveit"; then
10018 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10020 if test "$hardcode_minus_L" != no; then
10021 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10022 else
10023 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10028 else
10029 if test "X$found_a" != "X"; then
10030 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10031 else
10032 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10035 additional_includedir=
10036 case "$found_dir" in
10037 */lib | */lib/)
10038 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10039 additional_includedir="$basedir/include"
10041 esac
10042 if test "X$additional_includedir" != "X"; then
10043 if test "X$additional_includedir" != "X/usr/include"; then
10044 haveit=
10045 if test "X$additional_includedir" = "X/usr/local/include"; then
10046 if test -n "$GCC"; then
10047 case $host_os in
10048 linux*) haveit=yes;;
10049 esac
10052 if test -z "$haveit"; then
10053 for x in $CPPFLAGS $INCICONV; do
10055 acl_save_prefix="$prefix"
10056 prefix="$acl_final_prefix"
10057 acl_save_exec_prefix="$exec_prefix"
10058 exec_prefix="$acl_final_exec_prefix"
10059 eval x=\"$x\"
10060 exec_prefix="$acl_save_exec_prefix"
10061 prefix="$acl_save_prefix"
10063 if test "X$x" = "X-I$additional_includedir"; then
10064 haveit=yes
10065 break
10067 done
10068 if test -z "$haveit"; then
10069 if test -d "$additional_includedir"; then
10070 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10076 if test -n "$found_la"; then
10077 save_libdir="$libdir"
10078 case "$found_la" in
10079 */* | *\\*) . "$found_la" ;;
10080 *) . "./$found_la" ;;
10081 esac
10082 libdir="$save_libdir"
10083 for dep in $dependency_libs; do
10084 case "$dep" in
10085 -L*)
10086 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10087 if test "X$additional_libdir" != "X/usr/lib"; then
10088 haveit=
10089 if test "X$additional_libdir" = "X/usr/local/lib"; then
10090 if test -n "$GCC"; then
10091 case $host_os in
10092 linux*) haveit=yes;;
10093 esac
10096 if test -z "$haveit"; then
10097 haveit=
10098 for x in $LDFLAGS $LIBICONV; do
10100 acl_save_prefix="$prefix"
10101 prefix="$acl_final_prefix"
10102 acl_save_exec_prefix="$exec_prefix"
10103 exec_prefix="$acl_final_exec_prefix"
10104 eval x=\"$x\"
10105 exec_prefix="$acl_save_exec_prefix"
10106 prefix="$acl_save_prefix"
10108 if test "X$x" = "X-L$additional_libdir"; then
10109 haveit=yes
10110 break
10112 done
10113 if test -z "$haveit"; then
10114 if test -d "$additional_libdir"; then
10115 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10118 haveit=
10119 for x in $LDFLAGS $LTLIBICONV; do
10121 acl_save_prefix="$prefix"
10122 prefix="$acl_final_prefix"
10123 acl_save_exec_prefix="$exec_prefix"
10124 exec_prefix="$acl_final_exec_prefix"
10125 eval x=\"$x\"
10126 exec_prefix="$acl_save_exec_prefix"
10127 prefix="$acl_save_prefix"
10129 if test "X$x" = "X-L$additional_libdir"; then
10130 haveit=yes
10131 break
10133 done
10134 if test -z "$haveit"; then
10135 if test -d "$additional_libdir"; then
10136 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10142 -R*)
10143 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10144 if test "$enable_rpath" != no; then
10145 haveit=
10146 for x in $rpathdirs; do
10147 if test "X$x" = "X$dir"; then
10148 haveit=yes
10149 break
10151 done
10152 if test -z "$haveit"; then
10153 rpathdirs="$rpathdirs $dir"
10155 haveit=
10156 for x in $ltrpathdirs; do
10157 if test "X$x" = "X$dir"; then
10158 haveit=yes
10159 break
10161 done
10162 if test -z "$haveit"; then
10163 ltrpathdirs="$ltrpathdirs $dir"
10167 -l*)
10168 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10170 *.la)
10171 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10174 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10175 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10177 esac
10178 done
10180 else
10181 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10182 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10186 done
10187 done
10188 if test "X$rpathdirs" != "X"; then
10189 if test -n "$hardcode_libdir_separator"; then
10190 alldirs=
10191 for found_dir in $rpathdirs; do
10192 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10193 done
10194 acl_save_libdir="$libdir"
10195 libdir="$alldirs"
10196 eval flag=\"$hardcode_libdir_flag_spec\"
10197 libdir="$acl_save_libdir"
10198 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10199 else
10200 for found_dir in $rpathdirs; do
10201 acl_save_libdir="$libdir"
10202 libdir="$found_dir"
10203 eval flag=\"$hardcode_libdir_flag_spec\"
10204 libdir="$acl_save_libdir"
10205 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10206 done
10209 if test "X$ltrpathdirs" != "X"; then
10210 for found_dir in $ltrpathdirs; do
10211 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10212 done
10228 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10229 stdlib.h string.h unistd.h sys/param.h
10231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10233 echo "$as_me:$LINENO: checking for $ac_header" >&5
10234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10240 else
10241 # Is the header compilable?
10242 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10244 cat >conftest.$ac_ext <<_ACEOF
10245 /* confdefs.h. */
10246 _ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10250 $ac_includes_default
10251 #include <$ac_header>
10252 _ACEOF
10253 rm -f conftest.$ac_objext
10254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10255 (eval $ac_compile) 2>conftest.er1
10256 ac_status=$?
10257 grep -v '^ *+' conftest.er1 >conftest.err
10258 rm -f conftest.er1
10259 cat conftest.err >&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } &&
10262 { ac_try='test -z "$ac_c_werror_flag"
10263 || test ! -s conftest.err'
10264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265 (eval $ac_try) 2>&5
10266 ac_status=$?
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; } &&
10269 { ac_try='test -s conftest.$ac_objext'
10270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10271 (eval $ac_try) 2>&5
10272 ac_status=$?
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); }; }; then
10275 ac_header_compiler=yes
10276 else
10277 echo "$as_me: failed program was:" >&5
10278 sed 's/^/| /' conftest.$ac_ext >&5
10280 ac_header_compiler=no
10282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10284 echo "${ECHO_T}$ac_header_compiler" >&6
10286 # Is the header present?
10287 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10289 cat >conftest.$ac_ext <<_ACEOF
10290 /* confdefs.h. */
10291 _ACEOF
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h. */
10295 #include <$ac_header>
10296 _ACEOF
10297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10299 ac_status=$?
10300 grep -v '^ *+' conftest.er1 >conftest.err
10301 rm -f conftest.er1
10302 cat conftest.err >&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } >/dev/null; then
10305 if test -s conftest.err; then
10306 ac_cpp_err=$ac_c_preproc_warn_flag
10307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10308 else
10309 ac_cpp_err=
10311 else
10312 ac_cpp_err=yes
10314 if test -z "$ac_cpp_err"; then
10315 ac_header_preproc=yes
10316 else
10317 echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10320 ac_header_preproc=no
10322 rm -f conftest.err conftest.$ac_ext
10323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10324 echo "${ECHO_T}$ac_header_preproc" >&6
10326 # So? What about this header?
10327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10328 yes:no: )
10329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10333 ac_header_preproc=yes
10335 no:yes:* )
10336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10343 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10349 cat <<\_ASBOX
10350 ## ------------------------------- ##
10351 ## Report this to guichaz@yahoo.fr ##
10352 ## ------------------------------- ##
10353 _ASBOX
10355 sed "s/^/$as_me: WARNING: /" >&2
10357 esac
10358 echo "$as_me:$LINENO: checking for $ac_header" >&5
10359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 else
10363 eval "$as_ac_Header=\$ac_header_preproc"
10365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10370 cat >>confdefs.h <<_ACEOF
10371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10372 _ACEOF
10376 done
10400 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
10401 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
10402 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
10403 __fsetlocking
10405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10406 echo "$as_me:$LINENO: checking for $ac_func" >&5
10407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10408 if eval "test \"\${$as_ac_var+set}\" = set"; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10410 else
10411 cat >conftest.$ac_ext <<_ACEOF
10412 /* confdefs.h. */
10413 _ACEOF
10414 cat confdefs.h >>conftest.$ac_ext
10415 cat >>conftest.$ac_ext <<_ACEOF
10416 /* end confdefs.h. */
10417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10419 #define $ac_func innocuous_$ac_func
10421 /* System header to define __stub macros and hopefully few prototypes,
10422 which can conflict with char $ac_func (); below.
10423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10424 <limits.h> exists even on freestanding compilers. */
10426 #ifdef __STDC__
10427 # include <limits.h>
10428 #else
10429 # include <assert.h>
10430 #endif
10432 #undef $ac_func
10434 /* Override any gcc2 internal prototype to avoid an error. */
10435 #ifdef __cplusplus
10436 extern "C"
10438 #endif
10439 /* We use char because int might match the return type of a gcc2
10440 builtin and then its argument prototype would still apply. */
10441 char $ac_func ();
10442 /* The GNU C library defines this for functions which it implements
10443 to always fail with ENOSYS. Some functions are actually named
10444 something starting with __ and the normal name is an alias. */
10445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10446 choke me
10447 #else
10448 char (*f) () = $ac_func;
10449 #endif
10450 #ifdef __cplusplus
10452 #endif
10455 main ()
10457 return f != $ac_func;
10459 return 0;
10461 _ACEOF
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10464 (eval $ac_link) 2>conftest.er1
10465 ac_status=$?
10466 grep -v '^ *+' conftest.er1 >conftest.err
10467 rm -f conftest.er1
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } &&
10471 { ac_try='test -z "$ac_c_werror_flag"
10472 || test ! -s conftest.err'
10473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474 (eval $ac_try) 2>&5
10475 ac_status=$?
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); }; } &&
10478 { ac_try='test -s conftest$ac_exeext'
10479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480 (eval $ac_try) 2>&5
10481 ac_status=$?
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; }; then
10484 eval "$as_ac_var=yes"
10485 else
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10489 eval "$as_ac_var=no"
10491 rm -f conftest.err conftest.$ac_objext \
10492 conftest$ac_exeext conftest.$ac_ext
10494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10496 if test `eval echo '${'$as_ac_var'}'` = yes; then
10497 cat >>confdefs.h <<_ACEOF
10498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10499 _ACEOF
10502 done
10510 am_save_CPPFLAGS="$CPPFLAGS"
10512 for element in $INCICONV; do
10513 haveit=
10514 for x in $CPPFLAGS; do
10516 acl_save_prefix="$prefix"
10517 prefix="$acl_final_prefix"
10518 acl_save_exec_prefix="$exec_prefix"
10519 exec_prefix="$acl_final_exec_prefix"
10520 eval x=\"$x\"
10521 exec_prefix="$acl_save_exec_prefix"
10522 prefix="$acl_save_prefix"
10524 if test "X$x" = "X$element"; then
10525 haveit=yes
10526 break
10528 done
10529 if test -z "$haveit"; then
10530 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10532 done
10535 echo "$as_me:$LINENO: checking for iconv" >&5
10536 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10537 if test "${am_cv_func_iconv+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10539 else
10541 am_cv_func_iconv="no, consider installing GNU libiconv"
10542 am_cv_lib_iconv=no
10543 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. */
10549 #include <stdlib.h>
10550 #include <iconv.h>
10552 main ()
10554 iconv_t cd = iconv_open("","");
10555 iconv(cd,NULL,NULL,NULL,NULL);
10556 iconv_close(cd);
10558 return 0;
10560 _ACEOF
10561 rm -f conftest.$ac_objext conftest$ac_exeext
10562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10563 (eval $ac_link) 2>conftest.er1
10564 ac_status=$?
10565 grep -v '^ *+' conftest.er1 >conftest.err
10566 rm -f conftest.er1
10567 cat conftest.err >&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); } &&
10570 { ac_try='test -z "$ac_c_werror_flag"
10571 || test ! -s conftest.err'
10572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573 (eval $ac_try) 2>&5
10574 ac_status=$?
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; } &&
10577 { ac_try='test -s conftest$ac_exeext'
10578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10579 (eval $ac_try) 2>&5
10580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; }; then
10583 am_cv_func_iconv=yes
10584 else
10585 echo "$as_me: failed program was:" >&5
10586 sed 's/^/| /' conftest.$ac_ext >&5
10589 rm -f conftest.err conftest.$ac_objext \
10590 conftest$ac_exeext conftest.$ac_ext
10591 if test "$am_cv_func_iconv" != yes; then
10592 am_save_LIBS="$LIBS"
10593 LIBS="$LIBS $LIBICONV"
10594 cat >conftest.$ac_ext <<_ACEOF
10595 /* confdefs.h. */
10596 _ACEOF
10597 cat confdefs.h >>conftest.$ac_ext
10598 cat >>conftest.$ac_ext <<_ACEOF
10599 /* end confdefs.h. */
10600 #include <stdlib.h>
10601 #include <iconv.h>
10603 main ()
10605 iconv_t cd = iconv_open("","");
10606 iconv(cd,NULL,NULL,NULL,NULL);
10607 iconv_close(cd);
10609 return 0;
10611 _ACEOF
10612 rm -f conftest.$ac_objext conftest$ac_exeext
10613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10614 (eval $ac_link) 2>conftest.er1
10615 ac_status=$?
10616 grep -v '^ *+' conftest.er1 >conftest.err
10617 rm -f conftest.er1
10618 cat conftest.err >&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } &&
10621 { ac_try='test -z "$ac_c_werror_flag"
10622 || test ! -s conftest.err'
10623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10624 (eval $ac_try) 2>&5
10625 ac_status=$?
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); }; } &&
10628 { ac_try='test -s conftest$ac_exeext'
10629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630 (eval $ac_try) 2>&5
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; }; then
10634 am_cv_lib_iconv=yes
10635 am_cv_func_iconv=yes
10636 else
10637 echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10641 rm -f conftest.err conftest.$ac_objext \
10642 conftest$ac_exeext conftest.$ac_ext
10643 LIBS="$am_save_LIBS"
10647 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10648 echo "${ECHO_T}$am_cv_func_iconv" >&6
10649 if test "$am_cv_func_iconv" = yes; then
10651 cat >>confdefs.h <<\_ACEOF
10652 #define HAVE_ICONV 1
10653 _ACEOF
10656 if test "$am_cv_lib_iconv" = yes; then
10657 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10658 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10659 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10660 echo "${ECHO_T}$LIBICONV" >&6
10661 else
10662 CPPFLAGS="$am_save_CPPFLAGS"
10663 LIBICONV=
10664 LTLIBICONV=
10669 if test "$am_cv_func_iconv" = yes; then
10670 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10671 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10672 if test "${am_cv_proto_iconv+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10674 else
10676 cat >conftest.$ac_ext <<_ACEOF
10677 /* confdefs.h. */
10678 _ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10683 #include <stdlib.h>
10684 #include <iconv.h>
10685 extern
10686 #ifdef __cplusplus
10688 #endif
10689 #if defined(__STDC__) || defined(__cplusplus)
10690 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10691 #else
10692 size_t iconv();
10693 #endif
10696 main ()
10700 return 0;
10702 _ACEOF
10703 rm -f conftest.$ac_objext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10705 (eval $ac_compile) 2>conftest.er1
10706 ac_status=$?
10707 grep -v '^ *+' conftest.er1 >conftest.err
10708 rm -f conftest.er1
10709 cat conftest.err >&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } &&
10712 { ac_try='test -z "$ac_c_werror_flag"
10713 || test ! -s conftest.err'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10716 ac_status=$?
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; } &&
10719 { ac_try='test -s conftest.$ac_objext'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10722 ac_status=$?
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10725 am_cv_proto_iconv_arg1=""
10726 else
10727 echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10730 am_cv_proto_iconv_arg1="const"
10732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10733 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);"
10736 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10737 echo "$as_me:$LINENO: result: ${ac_t:-
10738 }$am_cv_proto_iconv" >&5
10739 echo "${ECHO_T}${ac_t:-
10740 }$am_cv_proto_iconv" >&6
10742 cat >>confdefs.h <<_ACEOF
10743 #define ICONV_CONST $am_cv_proto_iconv_arg1
10744 _ACEOF
10749 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10750 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
10751 if test "${am_cv_langinfo_codeset+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 else
10754 cat >conftest.$ac_ext <<_ACEOF
10755 /* confdefs.h. */
10756 _ACEOF
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h. */
10760 #include <langinfo.h>
10762 main ()
10764 char* cs = nl_langinfo(CODESET);
10766 return 0;
10768 _ACEOF
10769 rm -f conftest.$ac_objext conftest$ac_exeext
10770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10771 (eval $ac_link) 2>conftest.er1
10772 ac_status=$?
10773 grep -v '^ *+' conftest.er1 >conftest.err
10774 rm -f conftest.er1
10775 cat conftest.err >&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } &&
10778 { ac_try='test -z "$ac_c_werror_flag"
10779 || test ! -s conftest.err'
10780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781 (eval $ac_try) 2>&5
10782 ac_status=$?
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); }; } &&
10785 { ac_try='test -s conftest$ac_exeext'
10786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787 (eval $ac_try) 2>&5
10788 ac_status=$?
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; }; then
10791 am_cv_langinfo_codeset=yes
10792 else
10793 echo "$as_me: failed program was:" >&5
10794 sed 's/^/| /' conftest.$ac_ext >&5
10796 am_cv_langinfo_codeset=no
10798 rm -f conftest.err conftest.$ac_objext \
10799 conftest$ac_exeext conftest.$ac_ext
10802 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10803 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
10804 if test $am_cv_langinfo_codeset = yes; then
10806 cat >>confdefs.h <<\_ACEOF
10807 #define HAVE_LANGINFO_CODESET 1
10808 _ACEOF
10812 if test $ac_cv_header_locale_h = yes; then
10814 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10815 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10816 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10818 else
10819 cat >conftest.$ac_ext <<_ACEOF
10820 /* confdefs.h. */
10821 _ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h. */
10825 #include <locale.h>
10827 main ()
10829 return LC_MESSAGES
10831 return 0;
10833 _ACEOF
10834 rm -f conftest.$ac_objext conftest$ac_exeext
10835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10836 (eval $ac_link) 2>conftest.er1
10837 ac_status=$?
10838 grep -v '^ *+' conftest.er1 >conftest.err
10839 rm -f conftest.er1
10840 cat conftest.err >&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } &&
10843 { ac_try='test -z "$ac_c_werror_flag"
10844 || test ! -s conftest.err'
10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; } &&
10850 { ac_try='test -s conftest$ac_exeext'
10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852 (eval $ac_try) 2>&5
10853 ac_status=$?
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; }; then
10856 am_cv_val_LC_MESSAGES=yes
10857 else
10858 echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.$ac_ext >&5
10861 am_cv_val_LC_MESSAGES=no
10863 rm -f conftest.err conftest.$ac_objext \
10864 conftest$ac_exeext conftest.$ac_ext
10866 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10867 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10868 if test $am_cv_val_LC_MESSAGES = yes; then
10870 cat >>confdefs.h <<\_ACEOF
10871 #define HAVE_LC_MESSAGES 1
10872 _ACEOF
10878 for ac_prog in bison
10880 # Extract the first word of "$ac_prog", so it can be a program name with args.
10881 set dummy $ac_prog; ac_word=$2
10882 echo "$as_me:$LINENO: checking for $ac_word" >&5
10883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10884 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10885 echo $ECHO_N "(cached) $ECHO_C" >&6
10886 else
10887 if test -n "$INTLBISON"; then
10888 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10889 else
10890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10891 for as_dir in $PATH
10893 IFS=$as_save_IFS
10894 test -z "$as_dir" && as_dir=.
10895 for ac_exec_ext in '' $ac_executable_extensions; do
10896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10897 ac_cv_prog_INTLBISON="$ac_prog"
10898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10899 break 2
10901 done
10902 done
10906 INTLBISON=$ac_cv_prog_INTLBISON
10907 if test -n "$INTLBISON"; then
10908 echo "$as_me:$LINENO: result: $INTLBISON" >&5
10909 echo "${ECHO_T}$INTLBISON" >&6
10910 else
10911 echo "$as_me:$LINENO: result: no" >&5
10912 echo "${ECHO_T}no" >&6
10915 test -n "$INTLBISON" && break
10916 done
10918 if test -z "$INTLBISON"; then
10919 ac_verc_fail=yes
10920 else
10921 echo "$as_me:$LINENO: checking version of bison" >&5
10922 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
10923 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10924 case $ac_prog_version in
10925 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10926 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10927 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10928 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10929 esac
10930 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10931 echo "${ECHO_T}$ac_prog_version" >&6
10933 if test $ac_verc_fail = yes; then
10934 INTLBISON=:
10952 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10953 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10954 # Check whether --enable-nls or --disable-nls was given.
10955 if test "${enable_nls+set}" = set; then
10956 enableval="$enable_nls"
10957 USE_NLS=$enableval
10958 else
10959 USE_NLS=yes
10961 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10962 echo "${ECHO_T}$USE_NLS" >&6
10967 BUILD_INCLUDED_LIBINTL=no
10968 USE_INCLUDED_LIBINTL=no
10970 LIBINTL=
10971 LTLIBINTL=
10972 POSUB=
10974 if test "$USE_NLS" = "yes"; then
10975 gt_use_preinstalled_gnugettext=no
10977 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10978 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
10980 # Check whether --with-included-gettext or --without-included-gettext was given.
10981 if test "${with_included_gettext+set}" = set; then
10982 withval="$with_included_gettext"
10983 nls_cv_force_use_gnu_gettext=$withval
10984 else
10985 nls_cv_force_use_gnu_gettext=no
10987 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10988 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
10990 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10991 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10998 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10999 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
11000 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
11001 echo $ECHO_N "(cached) $ECHO_C" >&6
11002 else
11003 cat >conftest.$ac_ext <<_ACEOF
11004 /* confdefs.h. */
11005 _ACEOF
11006 cat confdefs.h >>conftest.$ac_ext
11007 cat >>conftest.$ac_ext <<_ACEOF
11008 /* end confdefs.h. */
11009 #include <libintl.h>
11010 extern int _nl_msg_cat_cntr;
11011 extern int *_nl_domain_bindings;
11013 main ()
11015 bindtextdomain ("", "");
11016 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
11018 return 0;
11020 _ACEOF
11021 rm -f conftest.$ac_objext conftest$ac_exeext
11022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11023 (eval $ac_link) 2>conftest.er1
11024 ac_status=$?
11025 grep -v '^ *+' conftest.er1 >conftest.err
11026 rm -f conftest.er1
11027 cat conftest.err >&5
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); } &&
11030 { ac_try='test -z "$ac_c_werror_flag"
11031 || test ! -s conftest.err'
11032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11033 (eval $ac_try) 2>&5
11034 ac_status=$?
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); }; } &&
11037 { ac_try='test -s conftest$ac_exeext'
11038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039 (eval $ac_try) 2>&5
11040 ac_status=$?
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; }; then
11043 gt_cv_func_gnugettext1_libc=yes
11044 else
11045 echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11048 gt_cv_func_gnugettext1_libc=no
11050 rm -f conftest.err conftest.$ac_objext \
11051 conftest$ac_exeext conftest.$ac_ext
11053 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
11054 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
11056 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
11060 use_additional=yes
11062 acl_save_prefix="$prefix"
11063 prefix="$acl_final_prefix"
11064 acl_save_exec_prefix="$exec_prefix"
11065 exec_prefix="$acl_final_exec_prefix"
11067 eval additional_includedir=\"$includedir\"
11068 eval additional_libdir=\"$libdir\"
11070 exec_prefix="$acl_save_exec_prefix"
11071 prefix="$acl_save_prefix"
11074 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
11075 if test "${with_libintl_prefix+set}" = set; then
11076 withval="$with_libintl_prefix"
11078 if test "X$withval" = "Xno"; then
11079 use_additional=no
11080 else
11081 if test "X$withval" = "X"; then
11083 acl_save_prefix="$prefix"
11084 prefix="$acl_final_prefix"
11085 acl_save_exec_prefix="$exec_prefix"
11086 exec_prefix="$acl_final_exec_prefix"
11088 eval additional_includedir=\"$includedir\"
11089 eval additional_libdir=\"$libdir\"
11091 exec_prefix="$acl_save_exec_prefix"
11092 prefix="$acl_save_prefix"
11094 else
11095 additional_includedir="$withval/include"
11096 additional_libdir="$withval/lib"
11101 LIBINTL=
11102 LTLIBINTL=
11103 INCINTL=
11104 rpathdirs=
11105 ltrpathdirs=
11106 names_already_handled=
11107 names_next_round='intl '
11108 while test -n "$names_next_round"; do
11109 names_this_round="$names_next_round"
11110 names_next_round=
11111 for name in $names_this_round; do
11112 already_handled=
11113 for n in $names_already_handled; do
11114 if test "$n" = "$name"; then
11115 already_handled=yes
11116 break
11118 done
11119 if test -z "$already_handled"; then
11120 names_already_handled="$names_already_handled $name"
11121 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11122 eval value=\"\$HAVE_LIB$uppername\"
11123 if test -n "$value"; then
11124 if test "$value" = yes; then
11125 eval value=\"\$LIB$uppername\"
11126 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11127 eval value=\"\$LTLIB$uppername\"
11128 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11129 else
11132 else
11133 found_dir=
11134 found_la=
11135 found_so=
11136 found_a=
11137 if test $use_additional = yes; then
11138 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11139 found_dir="$additional_libdir"
11140 found_so="$additional_libdir/lib$name.$shlibext"
11141 if test -f "$additional_libdir/lib$name.la"; then
11142 found_la="$additional_libdir/lib$name.la"
11144 else
11145 if test -f "$additional_libdir/lib$name.$libext"; then
11146 found_dir="$additional_libdir"
11147 found_a="$additional_libdir/lib$name.$libext"
11148 if test -f "$additional_libdir/lib$name.la"; then
11149 found_la="$additional_libdir/lib$name.la"
11154 if test "X$found_dir" = "X"; then
11155 for x in $LDFLAGS $LTLIBINTL; do
11157 acl_save_prefix="$prefix"
11158 prefix="$acl_final_prefix"
11159 acl_save_exec_prefix="$exec_prefix"
11160 exec_prefix="$acl_final_exec_prefix"
11161 eval x=\"$x\"
11162 exec_prefix="$acl_save_exec_prefix"
11163 prefix="$acl_save_prefix"
11165 case "$x" in
11166 -L*)
11167 dir=`echo "X$x" | sed -e 's/^X-L//'`
11168 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11169 found_dir="$dir"
11170 found_so="$dir/lib$name.$shlibext"
11171 if test -f "$dir/lib$name.la"; then
11172 found_la="$dir/lib$name.la"
11174 else
11175 if test -f "$dir/lib$name.$libext"; then
11176 found_dir="$dir"
11177 found_a="$dir/lib$name.$libext"
11178 if test -f "$dir/lib$name.la"; then
11179 found_la="$dir/lib$name.la"
11184 esac
11185 if test "X$found_dir" != "X"; then
11186 break
11188 done
11190 if test "X$found_dir" != "X"; then
11191 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11192 if test "X$found_so" != "X"; then
11193 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11194 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11195 else
11196 haveit=
11197 for x in $ltrpathdirs; do
11198 if test "X$x" = "X$found_dir"; then
11199 haveit=yes
11200 break
11202 done
11203 if test -z "$haveit"; then
11204 ltrpathdirs="$ltrpathdirs $found_dir"
11206 if test "$hardcode_direct" = yes; then
11207 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11208 else
11209 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11210 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11211 haveit=
11212 for x in $rpathdirs; do
11213 if test "X$x" = "X$found_dir"; then
11214 haveit=yes
11215 break
11217 done
11218 if test -z "$haveit"; then
11219 rpathdirs="$rpathdirs $found_dir"
11221 else
11222 haveit=
11223 for x in $LDFLAGS $LIBINTL; do
11225 acl_save_prefix="$prefix"
11226 prefix="$acl_final_prefix"
11227 acl_save_exec_prefix="$exec_prefix"
11228 exec_prefix="$acl_final_exec_prefix"
11229 eval x=\"$x\"
11230 exec_prefix="$acl_save_exec_prefix"
11231 prefix="$acl_save_prefix"
11233 if test "X$x" = "X-L$found_dir"; then
11234 haveit=yes
11235 break
11237 done
11238 if test -z "$haveit"; then
11239 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11241 if test "$hardcode_minus_L" != no; then
11242 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11243 else
11244 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11249 else
11250 if test "X$found_a" != "X"; then
11251 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11252 else
11253 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11256 additional_includedir=
11257 case "$found_dir" in
11258 */lib | */lib/)
11259 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11260 additional_includedir="$basedir/include"
11262 esac
11263 if test "X$additional_includedir" != "X"; then
11264 if test "X$additional_includedir" != "X/usr/include"; then
11265 haveit=
11266 if test "X$additional_includedir" = "X/usr/local/include"; then
11267 if test -n "$GCC"; then
11268 case $host_os in
11269 linux*) haveit=yes;;
11270 esac
11273 if test -z "$haveit"; then
11274 for x in $CPPFLAGS $INCINTL; do
11276 acl_save_prefix="$prefix"
11277 prefix="$acl_final_prefix"
11278 acl_save_exec_prefix="$exec_prefix"
11279 exec_prefix="$acl_final_exec_prefix"
11280 eval x=\"$x\"
11281 exec_prefix="$acl_save_exec_prefix"
11282 prefix="$acl_save_prefix"
11284 if test "X$x" = "X-I$additional_includedir"; then
11285 haveit=yes
11286 break
11288 done
11289 if test -z "$haveit"; then
11290 if test -d "$additional_includedir"; then
11291 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11297 if test -n "$found_la"; then
11298 save_libdir="$libdir"
11299 case "$found_la" in
11300 */* | *\\*) . "$found_la" ;;
11301 *) . "./$found_la" ;;
11302 esac
11303 libdir="$save_libdir"
11304 for dep in $dependency_libs; do
11305 case "$dep" in
11306 -L*)
11307 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11308 if test "X$additional_libdir" != "X/usr/lib"; then
11309 haveit=
11310 if test "X$additional_libdir" = "X/usr/local/lib"; then
11311 if test -n "$GCC"; then
11312 case $host_os in
11313 linux*) haveit=yes;;
11314 esac
11317 if test -z "$haveit"; then
11318 haveit=
11319 for x in $LDFLAGS $LIBINTL; do
11321 acl_save_prefix="$prefix"
11322 prefix="$acl_final_prefix"
11323 acl_save_exec_prefix="$exec_prefix"
11324 exec_prefix="$acl_final_exec_prefix"
11325 eval x=\"$x\"
11326 exec_prefix="$acl_save_exec_prefix"
11327 prefix="$acl_save_prefix"
11329 if test "X$x" = "X-L$additional_libdir"; then
11330 haveit=yes
11331 break
11333 done
11334 if test -z "$haveit"; then
11335 if test -d "$additional_libdir"; then
11336 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11339 haveit=
11340 for x in $LDFLAGS $LTLIBINTL; do
11342 acl_save_prefix="$prefix"
11343 prefix="$acl_final_prefix"
11344 acl_save_exec_prefix="$exec_prefix"
11345 exec_prefix="$acl_final_exec_prefix"
11346 eval x=\"$x\"
11347 exec_prefix="$acl_save_exec_prefix"
11348 prefix="$acl_save_prefix"
11350 if test "X$x" = "X-L$additional_libdir"; then
11351 haveit=yes
11352 break
11354 done
11355 if test -z "$haveit"; then
11356 if test -d "$additional_libdir"; then
11357 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11363 -R*)
11364 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11365 if test "$enable_rpath" != no; then
11366 haveit=
11367 for x in $rpathdirs; do
11368 if test "X$x" = "X$dir"; then
11369 haveit=yes
11370 break
11372 done
11373 if test -z "$haveit"; then
11374 rpathdirs="$rpathdirs $dir"
11376 haveit=
11377 for x in $ltrpathdirs; do
11378 if test "X$x" = "X$dir"; then
11379 haveit=yes
11380 break
11382 done
11383 if test -z "$haveit"; then
11384 ltrpathdirs="$ltrpathdirs $dir"
11388 -l*)
11389 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11391 *.la)
11392 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11395 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11396 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11398 esac
11399 done
11401 else
11402 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11403 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11407 done
11408 done
11409 if test "X$rpathdirs" != "X"; then
11410 if test -n "$hardcode_libdir_separator"; then
11411 alldirs=
11412 for found_dir in $rpathdirs; do
11413 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11414 done
11415 acl_save_libdir="$libdir"
11416 libdir="$alldirs"
11417 eval flag=\"$hardcode_libdir_flag_spec\"
11418 libdir="$acl_save_libdir"
11419 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11420 else
11421 for found_dir in $rpathdirs; do
11422 acl_save_libdir="$libdir"
11423 libdir="$found_dir"
11424 eval flag=\"$hardcode_libdir_flag_spec\"
11425 libdir="$acl_save_libdir"
11426 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11427 done
11430 if test "X$ltrpathdirs" != "X"; then
11431 for found_dir in $ltrpathdirs; do
11432 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11433 done
11436 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11437 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
11438 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11440 else
11441 gt_save_CPPFLAGS="$CPPFLAGS"
11442 CPPFLAGS="$CPPFLAGS $INCINTL"
11443 gt_save_LIBS="$LIBS"
11444 LIBS="$LIBS $LIBINTL"
11445 cat >conftest.$ac_ext <<_ACEOF
11446 /* confdefs.h. */
11447 _ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h. */
11451 #include <libintl.h>
11452 extern int _nl_msg_cat_cntr;
11453 extern
11454 #ifdef __cplusplus
11456 #endif
11457 const char *_nl_expand_alias ();
11459 main ()
11461 bindtextdomain ("", "");
11462 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11464 return 0;
11466 _ACEOF
11467 rm -f conftest.$ac_objext conftest$ac_exeext
11468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11469 (eval $ac_link) 2>conftest.er1
11470 ac_status=$?
11471 grep -v '^ *+' conftest.er1 >conftest.err
11472 rm -f conftest.er1
11473 cat conftest.err >&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } &&
11476 { ac_try='test -z "$ac_c_werror_flag"
11477 || test ! -s conftest.err'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11480 ac_status=$?
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; } &&
11483 { ac_try='test -s conftest$ac_exeext'
11484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11485 (eval $ac_try) 2>&5
11486 ac_status=$?
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); }; }; then
11489 gt_cv_func_gnugettext1_libintl=yes
11490 else
11491 echo "$as_me: failed program was:" >&5
11492 sed 's/^/| /' conftest.$ac_ext >&5
11494 gt_cv_func_gnugettext1_libintl=no
11496 rm -f conftest.err conftest.$ac_objext \
11497 conftest$ac_exeext conftest.$ac_ext
11498 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11499 LIBS="$LIBS $LIBICONV"
11500 cat >conftest.$ac_ext <<_ACEOF
11501 /* confdefs.h. */
11502 _ACEOF
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h. */
11506 #include <libintl.h>
11507 extern int _nl_msg_cat_cntr;
11508 extern
11509 #ifdef __cplusplus
11511 #endif
11512 const char *_nl_expand_alias ();
11514 main ()
11516 bindtextdomain ("", "");
11517 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11519 return 0;
11521 _ACEOF
11522 rm -f conftest.$ac_objext conftest$ac_exeext
11523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11524 (eval $ac_link) 2>conftest.er1
11525 ac_status=$?
11526 grep -v '^ *+' conftest.er1 >conftest.err
11527 rm -f conftest.er1
11528 cat conftest.err >&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } &&
11531 { ac_try='test -z "$ac_c_werror_flag"
11532 || test ! -s conftest.err'
11533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11534 (eval $ac_try) 2>&5
11535 ac_status=$?
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); }; } &&
11538 { ac_try='test -s conftest$ac_exeext'
11539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540 (eval $ac_try) 2>&5
11541 ac_status=$?
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; }; then
11544 LIBINTL="$LIBINTL $LIBICONV"
11545 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11546 gt_cv_func_gnugettext1_libintl=yes
11548 else
11549 echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.$ac_ext >&5
11553 rm -f conftest.err conftest.$ac_objext \
11554 conftest$ac_exeext conftest.$ac_ext
11556 CPPFLAGS="$gt_save_CPPFLAGS"
11557 LIBS="$gt_save_LIBS"
11559 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11560 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
11563 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11564 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11565 && test "$PACKAGE" != gettext-runtime \
11566 && test "$PACKAGE" != gettext-tools; }; then
11567 gt_use_preinstalled_gnugettext=yes
11568 else
11569 LIBINTL=
11570 LTLIBINTL=
11571 INCINTL=
11575 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11576 nls_cv_use_gnu_gettext=yes
11580 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11581 BUILD_INCLUDED_LIBINTL=yes
11582 USE_INCLUDED_LIBINTL=yes
11583 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11584 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11585 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11588 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11589 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11590 CATOBJEXT=.gmo
11594 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11595 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11597 cat >>confdefs.h <<\_ACEOF
11598 #define ENABLE_NLS 1
11599 _ACEOF
11601 else
11602 USE_NLS=no
11606 echo "$as_me:$LINENO: checking whether to use NLS" >&5
11607 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
11608 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11609 echo "${ECHO_T}$USE_NLS" >&6
11610 if test "$USE_NLS" = "yes"; then
11611 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11612 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
11613 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11614 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11615 gt_source="external libintl"
11616 else
11617 gt_source="libc"
11619 else
11620 gt_source="included intl directory"
11622 echo "$as_me:$LINENO: result: $gt_source" >&5
11623 echo "${ECHO_T}$gt_source" >&6
11626 if test "$USE_NLS" = "yes"; then
11628 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11629 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11630 echo "$as_me:$LINENO: checking how to link with libintl" >&5
11631 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
11632 echo "$as_me:$LINENO: result: $LIBINTL" >&5
11633 echo "${ECHO_T}$LIBINTL" >&6
11635 for element in $INCINTL; do
11636 haveit=
11637 for x in $CPPFLAGS; do
11639 acl_save_prefix="$prefix"
11640 prefix="$acl_final_prefix"
11641 acl_save_exec_prefix="$exec_prefix"
11642 exec_prefix="$acl_final_exec_prefix"
11643 eval x=\"$x\"
11644 exec_prefix="$acl_save_exec_prefix"
11645 prefix="$acl_save_prefix"
11647 if test "X$x" = "X$element"; then
11648 haveit=yes
11649 break
11651 done
11652 if test -z "$haveit"; then
11653 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11655 done
11660 cat >>confdefs.h <<\_ACEOF
11661 #define HAVE_GETTEXT 1
11662 _ACEOF
11665 cat >>confdefs.h <<\_ACEOF
11666 #define HAVE_DCGETTEXT 1
11667 _ACEOF
11671 POSUB=po
11675 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11676 BUILD_INCLUDED_LIBINTL=yes
11683 nls_cv_header_intl=
11684 nls_cv_header_libgt=
11686 DATADIRNAME=share
11689 INSTOBJEXT=.mo
11692 GENCAT=gencat
11695 if test "$USE_INCLUDED_LIBINTL" = yes; then
11696 INTLOBJS="\$(GETTOBJS)"
11700 INTL_LIBTOOL_SUFFIX_PREFIX=
11704 INTLLIBS="$LIBINTL"
11711 CFLAGS="$CFLAGS -I../${srcdir}/intl"
11712 LIBS="$LIBS $LIBINTL"
11715 ac_config_files="$ac_config_files Makefile lib/Makefile intl/Makefile po/Makefile.in tools/Makefile src/Makefile gliv.spec"
11718 cat >confcache <<\_ACEOF
11719 # This file is a shell script that caches the results of configure
11720 # tests run on this system so they can be shared between configure
11721 # scripts and configure runs, see configure's option --config-cache.
11722 # It is not useful on other systems. If it contains results you don't
11723 # want to keep, you may remove or edit it.
11725 # config.status only pays attention to the cache file if you give it
11726 # the --recheck option to rerun configure.
11728 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11729 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11730 # following values.
11732 _ACEOF
11734 # The following way of writing the cache mishandles newlines in values,
11735 # but we know of no workaround that is simple, portable, and efficient.
11736 # So, don't put newlines in cache variables' values.
11737 # Ultrix sh set writes to stderr and can't be redirected directly,
11738 # and sets the high bit in the cache file unless we assign to the vars.
11740 (set) 2>&1 |
11741 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11742 *ac_space=\ *)
11743 # `set' does not quote correctly, so add quotes (double-quote
11744 # substitution turns \\\\ into \\, and sed turns \\ into \).
11745 sed -n \
11746 "s/'/'\\\\''/g;
11747 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11750 # `set' quotes correctly as required by POSIX, so do not add quotes.
11751 sed -n \
11752 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11754 esac;
11756 sed '
11757 t clear
11758 : clear
11759 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11760 t end
11761 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11762 : end' >>confcache
11763 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11764 if test -w $cache_file; then
11765 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11766 cat confcache >$cache_file
11767 else
11768 echo "not updating unwritable cache $cache_file"
11771 rm -f confcache
11773 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11774 # Let make expand exec_prefix.
11775 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11777 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11778 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11779 # trailing colons and then remove the whole line if VPATH becomes empty
11780 # (actually we leave an empty line to preserve line numbers).
11781 if test "x$srcdir" = x.; then
11782 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11783 s/:*\$(srcdir):*/:/;
11784 s/:*\${srcdir}:*/:/;
11785 s/:*@srcdir@:*/:/;
11786 s/^\([^=]*=[ ]*\):*/\1/;
11787 s/:*$//;
11788 s/^[^=]*=[ ]*$//;
11792 DEFS=-DHAVE_CONFIG_H
11794 ac_libobjs=
11795 ac_ltlibobjs=
11796 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11797 # 1. Remove the extension, and $U if already installed.
11798 ac_i=`echo "$ac_i" |
11799 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11800 # 2. Add them.
11801 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11802 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11803 done
11804 LIBOBJS=$ac_libobjs
11806 LTLIBOBJS=$ac_ltlibobjs
11809 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11810 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11811 Usually this means the macro was only invoked conditionally." >&5
11812 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11813 Usually this means the macro was only invoked conditionally." >&2;}
11814 { (exit 1); exit 1; }; }
11816 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11817 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11818 Usually this means the macro was only invoked conditionally." >&5
11819 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11820 Usually this means the macro was only invoked conditionally." >&2;}
11821 { (exit 1); exit 1; }; }
11823 if test -z "${GETDELIM_TRUE}" && test -z "${GETDELIM_FALSE}"; then
11824 { { echo "$as_me:$LINENO: error: conditional \"GETDELIM\" was never defined.
11825 Usually this means the macro was only invoked conditionally." >&5
11826 echo "$as_me: error: conditional \"GETDELIM\" was never defined.
11827 Usually this means the macro was only invoked conditionally." >&2;}
11828 { (exit 1); exit 1; }; }
11830 if test -z "${GETOPT_LONG_TRUE}" && test -z "${GETOPT_LONG_FALSE}"; then
11831 { { echo "$as_me:$LINENO: error: conditional \"GETOPT_LONG\" was never defined.
11832 Usually this means the macro was only invoked conditionally." >&5
11833 echo "$as_me: error: conditional \"GETOPT_LONG\" was never defined.
11834 Usually this means the macro was only invoked conditionally." >&2;}
11835 { (exit 1); exit 1; }; }
11837 if test -z "${NEED_REPLACEMENTS_TRUE}" && test -z "${NEED_REPLACEMENTS_FALSE}"; then
11838 { { echo "$as_me:$LINENO: error: conditional \"NEED_REPLACEMENTS\" was never defined.
11839 Usually this means the macro was only invoked conditionally." >&5
11840 echo "$as_me: error: conditional \"NEED_REPLACEMENTS\" was never defined.
11841 Usually this means the macro was only invoked conditionally." >&2;}
11842 { (exit 1); exit 1; }; }
11844 if test -z "${NEED_REPLACEMENTS_TRUE}" && test -z "${NEED_REPLACEMENTS_FALSE}"; then
11845 { { echo "$as_me:$LINENO: error: conditional \"NEED_REPLACEMENTS\" was never defined.
11846 Usually this means the macro was only invoked conditionally." >&5
11847 echo "$as_me: error: conditional \"NEED_REPLACEMENTS\" was never defined.
11848 Usually this means the macro was only invoked conditionally." >&2;}
11849 { (exit 1); exit 1; }; }
11852 : ${CONFIG_STATUS=./config.status}
11853 ac_clean_files_save=$ac_clean_files
11854 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11855 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11856 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11857 cat >$CONFIG_STATUS <<_ACEOF
11858 #! $SHELL
11859 # Generated by $as_me.
11860 # Run this file to recreate the current configuration.
11861 # Compiler output produced by configure, useful for debugging
11862 # configure, is in config.log if it exists.
11864 debug=false
11865 ac_cs_recheck=false
11866 ac_cs_silent=false
11867 SHELL=\${CONFIG_SHELL-$SHELL}
11868 _ACEOF
11870 cat >>$CONFIG_STATUS <<\_ACEOF
11871 ## --------------------- ##
11872 ## M4sh Initialization. ##
11873 ## --------------------- ##
11875 # Be Bourne compatible
11876 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11877 emulate sh
11878 NULLCMD=:
11879 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11880 # is contrary to our usage. Disable this feature.
11881 alias -g '${1+"$@"}'='"$@"'
11882 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11883 set -o posix
11885 DUALCASE=1; export DUALCASE # for MKS sh
11887 # Support unset when possible.
11888 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11889 as_unset=unset
11890 else
11891 as_unset=false
11895 # Work around bugs in pre-3.0 UWIN ksh.
11896 $as_unset ENV MAIL MAILPATH
11897 PS1='$ '
11898 PS2='> '
11899 PS4='+ '
11901 # NLS nuisances.
11902 for as_var in \
11903 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11904 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11905 LC_TELEPHONE LC_TIME
11907 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11908 eval $as_var=C; export $as_var
11909 else
11910 $as_unset $as_var
11912 done
11914 # Required to use basename.
11915 if expr a : '\(a\)' >/dev/null 2>&1; then
11916 as_expr=expr
11917 else
11918 as_expr=false
11921 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11922 as_basename=basename
11923 else
11924 as_basename=false
11928 # Name of the executable.
11929 as_me=`$as_basename "$0" ||
11930 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11931 X"$0" : 'X\(//\)$' \| \
11932 X"$0" : 'X\(/\)$' \| \
11933 . : '\(.\)' 2>/dev/null ||
11934 echo X/"$0" |
11935 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11936 /^X\/\(\/\/\)$/{ s//\1/; q; }
11937 /^X\/\(\/\).*/{ s//\1/; q; }
11938 s/.*/./; q'`
11941 # PATH needs CR, and LINENO needs CR and PATH.
11942 # Avoid depending upon Character Ranges.
11943 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11944 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11945 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11946 as_cr_digits='0123456789'
11947 as_cr_alnum=$as_cr_Letters$as_cr_digits
11949 # The user is always right.
11950 if test "${PATH_SEPARATOR+set}" != set; then
11951 echo "#! /bin/sh" >conf$$.sh
11952 echo "exit 0" >>conf$$.sh
11953 chmod +x conf$$.sh
11954 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11955 PATH_SEPARATOR=';'
11956 else
11957 PATH_SEPARATOR=:
11959 rm -f conf$$.sh
11963 as_lineno_1=$LINENO
11964 as_lineno_2=$LINENO
11965 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11966 test "x$as_lineno_1" != "x$as_lineno_2" &&
11967 test "x$as_lineno_3" = "x$as_lineno_2" || {
11968 # Find who we are. Look in the path if we contain no path at all
11969 # relative or not.
11970 case $0 in
11971 *[\\/]* ) as_myself=$0 ;;
11972 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11973 for as_dir in $PATH
11975 IFS=$as_save_IFS
11976 test -z "$as_dir" && as_dir=.
11977 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11978 done
11981 esac
11982 # We did not find ourselves, most probably we were run as `sh COMMAND'
11983 # in which case we are not to be found in the path.
11984 if test "x$as_myself" = x; then
11985 as_myself=$0
11987 if test ! -f "$as_myself"; then
11988 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11989 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11990 { (exit 1); exit 1; }; }
11992 case $CONFIG_SHELL in
11994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11997 IFS=$as_save_IFS
11998 test -z "$as_dir" && as_dir=.
11999 for as_base in sh bash ksh sh5; do
12000 case $as_dir in
12002 if ("$as_dir/$as_base" -c '
12003 as_lineno_1=$LINENO
12004 as_lineno_2=$LINENO
12005 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12006 test "x$as_lineno_1" != "x$as_lineno_2" &&
12007 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12008 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12009 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12010 CONFIG_SHELL=$as_dir/$as_base
12011 export CONFIG_SHELL
12012 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12013 fi;;
12014 esac
12015 done
12016 done
12018 esac
12020 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12021 # uniformly replaced by the line number. The first 'sed' inserts a
12022 # line-number line before each line; the second 'sed' does the real
12023 # work. The second script uses 'N' to pair each line-number line
12024 # with the numbered line, and appends trailing '-' during
12025 # substitution so that $LINENO is not a special case at line end.
12026 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12027 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12028 sed '=' <$as_myself |
12029 sed '
12031 s,$,-,
12032 : loop
12033 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12034 t loop
12035 s,-$,,
12036 s,^['$as_cr_digits']*\n,,
12037 ' >$as_me.lineno &&
12038 chmod +x $as_me.lineno ||
12039 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12040 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12041 { (exit 1); exit 1; }; }
12043 # Don't try to exec as it changes $[0], causing all sort of problems
12044 # (the dirname of $[0] is not the place where we might find the
12045 # original and so on. Autoconf is especially sensible to this).
12046 . ./$as_me.lineno
12047 # Exit status is that of the last command.
12048 exit
12052 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12053 *c*,-n*) ECHO_N= ECHO_C='
12054 ' ECHO_T=' ' ;;
12055 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12056 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12057 esac
12059 if expr a : '\(a\)' >/dev/null 2>&1; then
12060 as_expr=expr
12061 else
12062 as_expr=false
12065 rm -f conf$$ conf$$.exe conf$$.file
12066 echo >conf$$.file
12067 if ln -s conf$$.file conf$$ 2>/dev/null; then
12068 # We could just check for DJGPP; but this test a) works b) is more generic
12069 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12070 if test -f conf$$.exe; then
12071 # Don't use ln at all; we don't have any links
12072 as_ln_s='cp -p'
12073 else
12074 as_ln_s='ln -s'
12076 elif ln conf$$.file conf$$ 2>/dev/null; then
12077 as_ln_s=ln
12078 else
12079 as_ln_s='cp -p'
12081 rm -f conf$$ conf$$.exe conf$$.file
12083 if mkdir -p . 2>/dev/null; then
12084 as_mkdir_p=:
12085 else
12086 test -d ./-p && rmdir ./-p
12087 as_mkdir_p=false
12090 as_executable_p="test -f"
12092 # Sed expression to map a string onto a valid CPP name.
12093 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12095 # Sed expression to map a string onto a valid variable name.
12096 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12099 # IFS
12100 # We need space, tab and new line, in precisely that order.
12101 as_nl='
12103 IFS=" $as_nl"
12105 # CDPATH.
12106 $as_unset CDPATH
12108 exec 6>&1
12110 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12111 # report actual input values of CONFIG_FILES etc. instead of their
12112 # values after options handling. Logging --version etc. is OK.
12113 exec 5>>config.log
12115 echo
12116 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12117 ## Running $as_me. ##
12118 _ASBOX
12119 } >&5
12120 cat >&5 <<_CSEOF
12122 This file was extended by gliv $as_me 1.8.1, which was
12123 generated by GNU Autoconf 2.59. Invocation command line was
12125 CONFIG_FILES = $CONFIG_FILES
12126 CONFIG_HEADERS = $CONFIG_HEADERS
12127 CONFIG_LINKS = $CONFIG_LINKS
12128 CONFIG_COMMANDS = $CONFIG_COMMANDS
12129 $ $0 $@
12131 _CSEOF
12132 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12133 echo >&5
12134 _ACEOF
12136 # Files that config.status was made for.
12137 if test -n "$ac_config_files"; then
12138 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12141 if test -n "$ac_config_headers"; then
12142 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12145 if test -n "$ac_config_links"; then
12146 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12149 if test -n "$ac_config_commands"; then
12150 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12153 cat >>$CONFIG_STATUS <<\_ACEOF
12155 ac_cs_usage="\
12156 \`$as_me' instantiates files from templates according to the
12157 current configuration.
12159 Usage: $0 [OPTIONS] [FILE]...
12161 -h, --help print this help, then exit
12162 -V, --version print version number, then exit
12163 -q, --quiet do not print progress messages
12164 -d, --debug don't remove temporary files
12165 --recheck update $as_me by reconfiguring in the same conditions
12166 --file=FILE[:TEMPLATE]
12167 instantiate the configuration file FILE
12168 --header=FILE[:TEMPLATE]
12169 instantiate the configuration header FILE
12171 Configuration files:
12172 $config_files
12174 Configuration headers:
12175 $config_headers
12177 Configuration commands:
12178 $config_commands
12180 Report bugs to <bug-autoconf@gnu.org>."
12181 _ACEOF
12183 cat >>$CONFIG_STATUS <<_ACEOF
12184 ac_cs_version="\\
12185 gliv config.status 1.8.1
12186 configured by $0, generated by GNU Autoconf 2.59,
12187 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12189 Copyright (C) 2003 Free Software Foundation, Inc.
12190 This config.status script is free software; the Free Software Foundation
12191 gives unlimited permission to copy, distribute and modify it."
12192 srcdir=$srcdir
12193 INSTALL="$INSTALL"
12194 _ACEOF
12196 cat >>$CONFIG_STATUS <<\_ACEOF
12197 # If no file are specified by the user, then we need to provide default
12198 # value. By we need to know if files were specified by the user.
12199 ac_need_defaults=:
12200 while test $# != 0
12202 case $1 in
12203 --*=*)
12204 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12205 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12206 ac_shift=:
12209 ac_option=$1
12210 ac_optarg=$2
12211 ac_shift=shift
12213 *) # This is not an option, so the user has probably given explicit
12214 # arguments.
12215 ac_option=$1
12216 ac_need_defaults=false;;
12217 esac
12219 case $ac_option in
12220 # Handling of the options.
12221 _ACEOF
12222 cat >>$CONFIG_STATUS <<\_ACEOF
12223 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12224 ac_cs_recheck=: ;;
12225 --version | --vers* | -V )
12226 echo "$ac_cs_version"; exit 0 ;;
12227 --he | --h)
12228 # Conflict between --help and --header
12229 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12230 Try \`$0 --help' for more information." >&5
12231 echo "$as_me: error: ambiguous option: $1
12232 Try \`$0 --help' for more information." >&2;}
12233 { (exit 1); exit 1; }; };;
12234 --help | --hel | -h )
12235 echo "$ac_cs_usage"; exit 0 ;;
12236 --debug | --d* | -d )
12237 debug=: ;;
12238 --file | --fil | --fi | --f )
12239 $ac_shift
12240 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12241 ac_need_defaults=false;;
12242 --header | --heade | --head | --hea )
12243 $ac_shift
12244 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12245 ac_need_defaults=false;;
12246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12247 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12248 ac_cs_silent=: ;;
12250 # This is an error.
12251 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12252 Try \`$0 --help' for more information." >&5
12253 echo "$as_me: error: unrecognized option: $1
12254 Try \`$0 --help' for more information." >&2;}
12255 { (exit 1); exit 1; }; } ;;
12257 *) ac_config_targets="$ac_config_targets $1" ;;
12259 esac
12260 shift
12261 done
12263 ac_configure_extra_args=
12265 if $ac_cs_silent; then
12266 exec 6>/dev/null
12267 ac_configure_extra_args="$ac_configure_extra_args --silent"
12270 _ACEOF
12271 cat >>$CONFIG_STATUS <<_ACEOF
12272 if \$ac_cs_recheck; then
12273 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12274 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12277 _ACEOF
12279 cat >>$CONFIG_STATUS <<_ACEOF
12281 # INIT-COMMANDS section.
12284 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12285 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12286 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12287 # from automake.
12288 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12289 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12290 LINGUAS="${LINGUAS-%UNSET%}"
12293 _ACEOF
12297 cat >>$CONFIG_STATUS <<\_ACEOF
12298 for ac_config_target in $ac_config_targets
12300 case "$ac_config_target" in
12301 # Handling of arguments.
12302 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12303 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12304 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
12305 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12306 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12307 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12308 "gliv.spec" ) CONFIG_FILES="$CONFIG_FILES gliv.spec" ;;
12309 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12310 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12311 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12312 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12313 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12314 { (exit 1); exit 1; }; };;
12315 esac
12316 done
12318 # If the user did not use the arguments to specify the items to instantiate,
12319 # then the envvar interface is used. Set only those that are not.
12320 # We use the long form for the default assignment because of an extremely
12321 # bizarre bug on SunOS 4.1.3.
12322 if $ac_need_defaults; then
12323 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12324 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12325 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12328 # Have a temporary directory for convenience. Make it in the build tree
12329 # simply because there is no reason to put it here, and in addition,
12330 # creating and moving files from /tmp can sometimes cause problems.
12331 # Create a temporary directory, and hook for its removal unless debugging.
12332 $debug ||
12334 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12335 trap '{ (exit 1); exit 1; }' 1 2 13 15
12338 # Create a (secure) tmp directory for tmp files.
12341 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12342 test -n "$tmp" && test -d "$tmp"
12343 } ||
12345 tmp=./confstat$$-$RANDOM
12346 (umask 077 && mkdir $tmp)
12347 } ||
12349 echo "$me: cannot create a temporary directory in ." >&2
12350 { (exit 1); exit 1; }
12353 _ACEOF
12355 cat >>$CONFIG_STATUS <<_ACEOF
12358 # CONFIG_FILES section.
12361 # No need to generate the scripts if there are no CONFIG_FILES.
12362 # This happens for instance when ./config.status config.h
12363 if test -n "\$CONFIG_FILES"; then
12364 # Protect against being on the right side of a sed subst in config.status.
12365 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12366 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12367 s,@SHELL@,$SHELL,;t t
12368 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12369 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12370 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12371 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12372 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12373 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12374 s,@exec_prefix@,$exec_prefix,;t t
12375 s,@prefix@,$prefix,;t t
12376 s,@program_transform_name@,$program_transform_name,;t t
12377 s,@bindir@,$bindir,;t t
12378 s,@sbindir@,$sbindir,;t t
12379 s,@libexecdir@,$libexecdir,;t t
12380 s,@datadir@,$datadir,;t t
12381 s,@sysconfdir@,$sysconfdir,;t t
12382 s,@sharedstatedir@,$sharedstatedir,;t t
12383 s,@localstatedir@,$localstatedir,;t t
12384 s,@libdir@,$libdir,;t t
12385 s,@includedir@,$includedir,;t t
12386 s,@oldincludedir@,$oldincludedir,;t t
12387 s,@infodir@,$infodir,;t t
12388 s,@mandir@,$mandir,;t t
12389 s,@build_alias@,$build_alias,;t t
12390 s,@host_alias@,$host_alias,;t t
12391 s,@target_alias@,$target_alias,;t t
12392 s,@DEFS@,$DEFS,;t t
12393 s,@ECHO_C@,$ECHO_C,;t t
12394 s,@ECHO_N@,$ECHO_N,;t t
12395 s,@ECHO_T@,$ECHO_T,;t t
12396 s,@LIBS@,$LIBS,;t t
12397 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12398 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12399 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12400 s,@CYGPATH_W@,$CYGPATH_W,;t t
12401 s,@PACKAGE@,$PACKAGE,;t t
12402 s,@VERSION@,$VERSION,;t t
12403 s,@ACLOCAL@,$ACLOCAL,;t t
12404 s,@AUTOCONF@,$AUTOCONF,;t t
12405 s,@AUTOMAKE@,$AUTOMAKE,;t t
12406 s,@AUTOHEADER@,$AUTOHEADER,;t t
12407 s,@MAKEINFO@,$MAKEINFO,;t t
12408 s,@AMTAR@,$AMTAR,;t t
12409 s,@install_sh@,$install_sh,;t t
12410 s,@STRIP@,$STRIP,;t t
12411 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12412 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12413 s,@mkdir_p@,$mkdir_p,;t t
12414 s,@AWK@,$AWK,;t t
12415 s,@SET_MAKE@,$SET_MAKE,;t t
12416 s,@am__leading_dot@,$am__leading_dot,;t t
12417 s,@CC@,$CC,;t t
12418 s,@CFLAGS@,$CFLAGS,;t t
12419 s,@LDFLAGS@,$LDFLAGS,;t t
12420 s,@CPPFLAGS@,$CPPFLAGS,;t t
12421 s,@ac_ct_CC@,$ac_ct_CC,;t t
12422 s,@EXEEXT@,$EXEEXT,;t t
12423 s,@OBJEXT@,$OBJEXT,;t t
12424 s,@DEPDIR@,$DEPDIR,;t t
12425 s,@am__include@,$am__include,;t t
12426 s,@am__quote@,$am__quote,;t t
12427 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12428 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12429 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12430 s,@CCDEPMODE@,$CCDEPMODE,;t t
12431 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12432 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12433 s,@RANLIB@,$RANLIB,;t t
12434 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12435 s,@GETDELIM_TRUE@,$GETDELIM_TRUE,;t t
12436 s,@GETDELIM_FALSE@,$GETDELIM_FALSE,;t t
12437 s,@GETOPT_LONG_TRUE@,$GETOPT_LONG_TRUE,;t t
12438 s,@GETOPT_LONG_FALSE@,$GETOPT_LONG_FALSE,;t t
12439 s,@NEED_REPLACEMENTS_TRUE@,$NEED_REPLACEMENTS_TRUE,;t t
12440 s,@NEED_REPLACEMENTS_FALSE@,$NEED_REPLACEMENTS_FALSE,;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,@PKG_CONFIG@,$PKG_CONFIG,;t t
12447 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
12448 s,@GTK_LIBS@,$GTK_LIBS,;t t
12449 s,@GTKGLEXT_CFLAGS@,$GTKGLEXT_CFLAGS,;t t
12450 s,@GTKGLEXT_LIBS@,$GTKGLEXT_LIBS,;t t
12451 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12452 s,@USE_NLS@,$USE_NLS,;t t
12453 s,@MSGFMT@,$MSGFMT,;t t
12454 s,@GMSGFMT@,$GMSGFMT,;t t
12455 s,@XGETTEXT@,$XGETTEXT,;t t
12456 s,@MSGMERGE@,$MSGMERGE,;t t
12457 s,@build@,$build,;t t
12458 s,@build_cpu@,$build_cpu,;t t
12459 s,@build_vendor@,$build_vendor,;t t
12460 s,@build_os@,$build_os,;t t
12461 s,@host@,$host,;t t
12462 s,@host_cpu@,$host_cpu,;t t
12463 s,@host_vendor@,$host_vendor,;t t
12464 s,@host_os@,$host_os,;t t
12465 s,@EGREP@,$EGREP,;t t
12466 s,@ALLOCA@,$ALLOCA,;t t
12467 s,@GLIBC21@,$GLIBC21,;t t
12468 s,@LIBICONV@,$LIBICONV,;t t
12469 s,@LTLIBICONV@,$LTLIBICONV,;t t
12470 s,@INTLBISON@,$INTLBISON,;t t
12471 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
12472 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
12473 s,@CATOBJEXT@,$CATOBJEXT,;t t
12474 s,@DATADIRNAME@,$DATADIRNAME,;t t
12475 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12476 s,@GENCAT@,$GENCAT,;t t
12477 s,@INTLOBJS@,$INTLOBJS,;t t
12478 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
12479 s,@INTLLIBS@,$INTLLIBS,;t t
12480 s,@LIBINTL@,$LIBINTL,;t t
12481 s,@LTLIBINTL@,$LTLIBINTL,;t t
12482 s,@POSUB@,$POSUB,;t t
12483 s,@LIBOBJS@,$LIBOBJS,;t t
12484 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12485 CEOF
12487 _ACEOF
12489 cat >>$CONFIG_STATUS <<\_ACEOF
12490 # Split the substitutions into bite-sized pieces for seds with
12491 # small command number limits, like on Digital OSF/1 and HP-UX.
12492 ac_max_sed_lines=48
12493 ac_sed_frag=1 # Number of current file.
12494 ac_beg=1 # First line for current file.
12495 ac_end=$ac_max_sed_lines # Line after last line for current file.
12496 ac_more_lines=:
12497 ac_sed_cmds=
12498 while $ac_more_lines; do
12499 if test $ac_beg -gt 1; then
12500 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12501 else
12502 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12504 if test ! -s $tmp/subs.frag; then
12505 ac_more_lines=false
12506 else
12507 # The purpose of the label and of the branching condition is to
12508 # speed up the sed processing (if there are no `@' at all, there
12509 # is no need to browse any of the substitutions).
12510 # These are the two extra sed commands mentioned above.
12511 (echo ':t
12512 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12513 if test -z "$ac_sed_cmds"; then
12514 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12515 else
12516 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12518 ac_sed_frag=`expr $ac_sed_frag + 1`
12519 ac_beg=$ac_end
12520 ac_end=`expr $ac_end + $ac_max_sed_lines`
12522 done
12523 if test -z "$ac_sed_cmds"; then
12524 ac_sed_cmds=cat
12526 fi # test -n "$CONFIG_FILES"
12528 _ACEOF
12529 cat >>$CONFIG_STATUS <<\_ACEOF
12530 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12531 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12532 case $ac_file in
12533 - | *:- | *:-:* ) # input from stdin
12534 cat >$tmp/stdin
12535 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12536 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12537 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12538 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12539 * ) ac_file_in=$ac_file.in ;;
12540 esac
12542 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12543 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12544 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12545 X"$ac_file" : 'X\(//\)[^/]' \| \
12546 X"$ac_file" : 'X\(//\)$' \| \
12547 X"$ac_file" : 'X\(/\)' \| \
12548 . : '\(.\)' 2>/dev/null ||
12549 echo X"$ac_file" |
12550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12552 /^X\(\/\/\)$/{ s//\1/; q; }
12553 /^X\(\/\).*/{ s//\1/; q; }
12554 s/.*/./; q'`
12555 { if $as_mkdir_p; then
12556 mkdir -p "$ac_dir"
12557 else
12558 as_dir="$ac_dir"
12559 as_dirs=
12560 while test ! -d "$as_dir"; do
12561 as_dirs="$as_dir $as_dirs"
12562 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12563 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12564 X"$as_dir" : 'X\(//\)[^/]' \| \
12565 X"$as_dir" : 'X\(//\)$' \| \
12566 X"$as_dir" : 'X\(/\)' \| \
12567 . : '\(.\)' 2>/dev/null ||
12568 echo X"$as_dir" |
12569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12571 /^X\(\/\/\)$/{ s//\1/; q; }
12572 /^X\(\/\).*/{ s//\1/; q; }
12573 s/.*/./; q'`
12574 done
12575 test ! -n "$as_dirs" || mkdir $as_dirs
12576 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12577 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12578 { (exit 1); exit 1; }; }; }
12580 ac_builddir=.
12582 if test "$ac_dir" != .; then
12583 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12584 # A "../" for each directory in $ac_dir_suffix.
12585 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12586 else
12587 ac_dir_suffix= ac_top_builddir=
12590 case $srcdir in
12591 .) # No --srcdir option. We are building in place.
12592 ac_srcdir=.
12593 if test -z "$ac_top_builddir"; then
12594 ac_top_srcdir=.
12595 else
12596 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12597 fi ;;
12598 [\\/]* | ?:[\\/]* ) # Absolute path.
12599 ac_srcdir=$srcdir$ac_dir_suffix;
12600 ac_top_srcdir=$srcdir ;;
12601 *) # Relative path.
12602 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12603 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12604 esac
12606 # Do not use `cd foo && pwd` to compute absolute paths, because
12607 # the directories may not exist.
12608 case `pwd` in
12609 .) ac_abs_builddir="$ac_dir";;
12611 case "$ac_dir" in
12612 .) ac_abs_builddir=`pwd`;;
12613 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12614 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12615 esac;;
12616 esac
12617 case $ac_abs_builddir in
12618 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12620 case ${ac_top_builddir}. in
12621 .) ac_abs_top_builddir=$ac_abs_builddir;;
12622 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12623 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12624 esac;;
12625 esac
12626 case $ac_abs_builddir in
12627 .) ac_abs_srcdir=$ac_srcdir;;
12629 case $ac_srcdir in
12630 .) ac_abs_srcdir=$ac_abs_builddir;;
12631 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12632 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12633 esac;;
12634 esac
12635 case $ac_abs_builddir in
12636 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12638 case $ac_top_srcdir in
12639 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12640 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12641 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12642 esac;;
12643 esac
12646 case $INSTALL in
12647 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12648 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12649 esac
12651 if test x"$ac_file" != x-; then
12652 { echo "$as_me:$LINENO: creating $ac_file" >&5
12653 echo "$as_me: creating $ac_file" >&6;}
12654 rm -f "$ac_file"
12656 # Let's still pretend it is `configure' which instantiates (i.e., don't
12657 # use $as_me), people would be surprised to read:
12658 # /* config.h. Generated by config.status. */
12659 if test x"$ac_file" = x-; then
12660 configure_input=
12661 else
12662 configure_input="$ac_file. "
12664 configure_input=$configure_input"Generated from `echo $ac_file_in |
12665 sed 's,.*/,,'` by configure."
12667 # First look for the input files in the build tree, otherwise in the
12668 # src tree.
12669 ac_file_inputs=`IFS=:
12670 for f in $ac_file_in; do
12671 case $f in
12672 -) echo $tmp/stdin ;;
12673 [\\/$]*)
12674 # Absolute (can't be DOS-style, as IFS=:)
12675 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12676 echo "$as_me: error: cannot find input file: $f" >&2;}
12677 { (exit 1); exit 1; }; }
12678 echo "$f";;
12679 *) # Relative
12680 if test -f "$f"; then
12681 # Build tree
12682 echo "$f"
12683 elif test -f "$srcdir/$f"; then
12684 # Source tree
12685 echo "$srcdir/$f"
12686 else
12687 # /dev/null tree
12688 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12689 echo "$as_me: error: cannot find input file: $f" >&2;}
12690 { (exit 1); exit 1; }; }
12691 fi;;
12692 esac
12693 done` || { (exit 1); exit 1; }
12694 _ACEOF
12695 cat >>$CONFIG_STATUS <<_ACEOF
12696 sed "$ac_vpsub
12697 $extrasub
12698 _ACEOF
12699 cat >>$CONFIG_STATUS <<\_ACEOF
12701 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12702 s,@configure_input@,$configure_input,;t t
12703 s,@srcdir@,$ac_srcdir,;t t
12704 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12705 s,@top_srcdir@,$ac_top_srcdir,;t t
12706 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12707 s,@builddir@,$ac_builddir,;t t
12708 s,@abs_builddir@,$ac_abs_builddir,;t t
12709 s,@top_builddir@,$ac_top_builddir,;t t
12710 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12711 s,@INSTALL@,$ac_INSTALL,;t t
12712 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12713 rm -f $tmp/stdin
12714 if test x"$ac_file" != x-; then
12715 mv $tmp/out $ac_file
12716 else
12717 cat $tmp/out
12718 rm -f $tmp/out
12721 done
12722 _ACEOF
12723 cat >>$CONFIG_STATUS <<\_ACEOF
12726 # CONFIG_HEADER section.
12729 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12730 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12732 # ac_d sets the value in "#define NAME VALUE" lines.
12733 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12734 ac_dB='[ ].*$,\1#\2'
12735 ac_dC=' '
12736 ac_dD=',;t'
12737 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12738 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12739 ac_uB='$,\1#\2define\3'
12740 ac_uC=' '
12741 ac_uD=',;t'
12743 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12744 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12745 case $ac_file in
12746 - | *:- | *:-:* ) # input from stdin
12747 cat >$tmp/stdin
12748 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12749 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12750 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12751 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12752 * ) ac_file_in=$ac_file.in ;;
12753 esac
12755 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12756 echo "$as_me: creating $ac_file" >&6;}
12758 # First look for the input files in the build tree, otherwise in the
12759 # src tree.
12760 ac_file_inputs=`IFS=:
12761 for f in $ac_file_in; do
12762 case $f in
12763 -) echo $tmp/stdin ;;
12764 [\\/$]*)
12765 # Absolute (can't be DOS-style, as IFS=:)
12766 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12767 echo "$as_me: error: cannot find input file: $f" >&2;}
12768 { (exit 1); exit 1; }; }
12769 # Do quote $f, to prevent DOS paths from being IFS'd.
12770 echo "$f";;
12771 *) # Relative
12772 if test -f "$f"; then
12773 # Build tree
12774 echo "$f"
12775 elif test -f "$srcdir/$f"; then
12776 # Source tree
12777 echo "$srcdir/$f"
12778 else
12779 # /dev/null tree
12780 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12781 echo "$as_me: error: cannot find input file: $f" >&2;}
12782 { (exit 1); exit 1; }; }
12783 fi;;
12784 esac
12785 done` || { (exit 1); exit 1; }
12786 # Remove the trailing spaces.
12787 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12789 _ACEOF
12791 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12792 # `conftest.undefs', that substitutes the proper values into
12793 # config.h.in to produce config.h. The first handles `#define'
12794 # templates, and the second `#undef' templates.
12795 # And first: Protect against being on the right side of a sed subst in
12796 # config.status. Protect against being in an unquoted here document
12797 # in config.status.
12798 rm -f conftest.defines conftest.undefs
12799 # Using a here document instead of a string reduces the quoting nightmare.
12800 # Putting comments in sed scripts is not portable.
12802 # `end' is used to avoid that the second main sed command (meant for
12803 # 0-ary CPP macros) applies to n-ary macro definitions.
12804 # See the Autoconf documentation for `clear'.
12805 cat >confdef2sed.sed <<\_ACEOF
12806 s/[\\&,]/\\&/g
12807 s,[\\$`],\\&,g
12808 t clear
12809 : clear
12810 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12811 t end
12812 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12813 : end
12814 _ACEOF
12815 # If some macros were called several times there might be several times
12816 # the same #defines, which is useless. Nevertheless, we may not want to
12817 # sort them, since we want the *last* AC-DEFINE to be honored.
12818 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12819 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12820 rm -f confdef2sed.sed
12822 # This sed command replaces #undef with comments. This is necessary, for
12823 # example, in the case of _POSIX_SOURCE, which is predefined and required
12824 # on some systems where configure will not decide to define it.
12825 cat >>conftest.undefs <<\_ACEOF
12826 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12827 _ACEOF
12829 # Break up conftest.defines because some shells have a limit on the size
12830 # of here documents, and old seds have small limits too (100 cmds).
12831 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12832 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12833 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12834 echo ' :' >>$CONFIG_STATUS
12835 rm -f conftest.tail
12836 while grep . conftest.defines >/dev/null
12838 # Write a limited-size here document to $tmp/defines.sed.
12839 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12840 # Speed up: don't consider the non `#define' lines.
12841 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12842 # Work around the forget-to-reset-the-flag bug.
12843 echo 't clr' >>$CONFIG_STATUS
12844 echo ': clr' >>$CONFIG_STATUS
12845 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12846 echo 'CEOF
12847 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12848 rm -f $tmp/in
12849 mv $tmp/out $tmp/in
12850 ' >>$CONFIG_STATUS
12851 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12852 rm -f conftest.defines
12853 mv conftest.tail conftest.defines
12854 done
12855 rm -f conftest.defines
12856 echo ' fi # grep' >>$CONFIG_STATUS
12857 echo >>$CONFIG_STATUS
12859 # Break up conftest.undefs because some shells have a limit on the size
12860 # of here documents, and old seds have small limits too (100 cmds).
12861 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12862 rm -f conftest.tail
12863 while grep . conftest.undefs >/dev/null
12865 # Write a limited-size here document to $tmp/undefs.sed.
12866 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12867 # Speed up: don't consider the non `#undef'
12868 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12869 # Work around the forget-to-reset-the-flag bug.
12870 echo 't clr' >>$CONFIG_STATUS
12871 echo ': clr' >>$CONFIG_STATUS
12872 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12873 echo 'CEOF
12874 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12875 rm -f $tmp/in
12876 mv $tmp/out $tmp/in
12877 ' >>$CONFIG_STATUS
12878 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12879 rm -f conftest.undefs
12880 mv conftest.tail conftest.undefs
12881 done
12882 rm -f conftest.undefs
12884 cat >>$CONFIG_STATUS <<\_ACEOF
12885 # Let's still pretend it is `configure' which instantiates (i.e., don't
12886 # use $as_me), people would be surprised to read:
12887 # /* config.h. Generated by config.status. */
12888 if test x"$ac_file" = x-; then
12889 echo "/* Generated by configure. */" >$tmp/config.h
12890 else
12891 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12893 cat $tmp/in >>$tmp/config.h
12894 rm -f $tmp/in
12895 if test x"$ac_file" != x-; then
12896 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12897 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12898 echo "$as_me: $ac_file is unchanged" >&6;}
12899 else
12900 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12901 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12902 X"$ac_file" : 'X\(//\)[^/]' \| \
12903 X"$ac_file" : 'X\(//\)$' \| \
12904 X"$ac_file" : 'X\(/\)' \| \
12905 . : '\(.\)' 2>/dev/null ||
12906 echo X"$ac_file" |
12907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12908 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12909 /^X\(\/\/\)$/{ s//\1/; q; }
12910 /^X\(\/\).*/{ s//\1/; q; }
12911 s/.*/./; q'`
12912 { if $as_mkdir_p; then
12913 mkdir -p "$ac_dir"
12914 else
12915 as_dir="$ac_dir"
12916 as_dirs=
12917 while test ! -d "$as_dir"; do
12918 as_dirs="$as_dir $as_dirs"
12919 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12920 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12921 X"$as_dir" : 'X\(//\)[^/]' \| \
12922 X"$as_dir" : 'X\(//\)$' \| \
12923 X"$as_dir" : 'X\(/\)' \| \
12924 . : '\(.\)' 2>/dev/null ||
12925 echo X"$as_dir" |
12926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12927 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12928 /^X\(\/\/\)$/{ s//\1/; q; }
12929 /^X\(\/\).*/{ s//\1/; q; }
12930 s/.*/./; q'`
12931 done
12932 test ! -n "$as_dirs" || mkdir $as_dirs
12933 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12934 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12935 { (exit 1); exit 1; }; }; }
12937 rm -f $ac_file
12938 mv $tmp/config.h $ac_file
12940 else
12941 cat $tmp/config.h
12942 rm -f $tmp/config.h
12944 # Compute $ac_file's index in $config_headers.
12945 _am_stamp_count=1
12946 for _am_header in $config_headers :; do
12947 case $_am_header in
12948 $ac_file | $ac_file:* )
12949 break ;;
12951 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12952 esac
12953 done
12954 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12955 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12956 X$ac_file : 'X\(//\)[^/]' \| \
12957 X$ac_file : 'X\(//\)$' \| \
12958 X$ac_file : 'X\(/\)' \| \
12959 . : '\(.\)' 2>/dev/null ||
12960 echo X$ac_file |
12961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12962 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12963 /^X\(\/\/\)$/{ s//\1/; q; }
12964 /^X\(\/\).*/{ s//\1/; q; }
12965 s/.*/./; q'`/stamp-h$_am_stamp_count
12966 done
12967 _ACEOF
12968 cat >>$CONFIG_STATUS <<\_ACEOF
12971 # CONFIG_COMMANDS section.
12973 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12974 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12975 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12976 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12977 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12978 X"$ac_dest" : 'X\(//\)[^/]' \| \
12979 X"$ac_dest" : 'X\(//\)$' \| \
12980 X"$ac_dest" : 'X\(/\)' \| \
12981 . : '\(.\)' 2>/dev/null ||
12982 echo X"$ac_dest" |
12983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12984 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12985 /^X\(\/\/\)$/{ s//\1/; q; }
12986 /^X\(\/\).*/{ s//\1/; q; }
12987 s/.*/./; q'`
12988 { if $as_mkdir_p; then
12989 mkdir -p "$ac_dir"
12990 else
12991 as_dir="$ac_dir"
12992 as_dirs=
12993 while test ! -d "$as_dir"; do
12994 as_dirs="$as_dir $as_dirs"
12995 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12996 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12997 X"$as_dir" : 'X\(//\)[^/]' \| \
12998 X"$as_dir" : 'X\(//\)$' \| \
12999 X"$as_dir" : 'X\(/\)' \| \
13000 . : '\(.\)' 2>/dev/null ||
13001 echo X"$as_dir" |
13002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13004 /^X\(\/\/\)$/{ s//\1/; q; }
13005 /^X\(\/\).*/{ s//\1/; q; }
13006 s/.*/./; q'`
13007 done
13008 test ! -n "$as_dirs" || mkdir $as_dirs
13009 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13010 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13011 { (exit 1); exit 1; }; }; }
13013 ac_builddir=.
13015 if test "$ac_dir" != .; then
13016 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13017 # A "../" for each directory in $ac_dir_suffix.
13018 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13019 else
13020 ac_dir_suffix= ac_top_builddir=
13023 case $srcdir in
13024 .) # No --srcdir option. We are building in place.
13025 ac_srcdir=.
13026 if test -z "$ac_top_builddir"; then
13027 ac_top_srcdir=.
13028 else
13029 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13030 fi ;;
13031 [\\/]* | ?:[\\/]* ) # Absolute path.
13032 ac_srcdir=$srcdir$ac_dir_suffix;
13033 ac_top_srcdir=$srcdir ;;
13034 *) # Relative path.
13035 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13036 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13037 esac
13039 # Do not use `cd foo && pwd` to compute absolute paths, because
13040 # the directories may not exist.
13041 case `pwd` in
13042 .) ac_abs_builddir="$ac_dir";;
13044 case "$ac_dir" in
13045 .) ac_abs_builddir=`pwd`;;
13046 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13047 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13048 esac;;
13049 esac
13050 case $ac_abs_builddir in
13051 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13053 case ${ac_top_builddir}. in
13054 .) ac_abs_top_builddir=$ac_abs_builddir;;
13055 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13056 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13057 esac;;
13058 esac
13059 case $ac_abs_builddir in
13060 .) ac_abs_srcdir=$ac_srcdir;;
13062 case $ac_srcdir in
13063 .) ac_abs_srcdir=$ac_abs_builddir;;
13064 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13065 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13066 esac;;
13067 esac
13068 case $ac_abs_builddir in
13069 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13071 case $ac_top_srcdir in
13072 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13073 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13074 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13075 esac;;
13076 esac
13079 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13080 echo "$as_me: executing $ac_dest commands" >&6;}
13081 case $ac_dest in
13082 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13083 # Strip MF so we end up with the name of the file.
13084 mf=`echo "$mf" | sed -e 's/:.*$//'`
13085 # Check whether this is an Automake generated Makefile or not.
13086 # We used to match only the files named `Makefile.in', but
13087 # some people rename them; so instead we look at the file content.
13088 # Grep'ing the first line is not enough: some people post-process
13089 # each Makefile.in and add a new line on top of each file to say so.
13090 # So let's grep whole file.
13091 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13092 dirpart=`(dirname "$mf") 2>/dev/null ||
13093 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13094 X"$mf" : 'X\(//\)[^/]' \| \
13095 X"$mf" : 'X\(//\)$' \| \
13096 X"$mf" : 'X\(/\)' \| \
13097 . : '\(.\)' 2>/dev/null ||
13098 echo X"$mf" |
13099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13100 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13101 /^X\(\/\/\)$/{ s//\1/; q; }
13102 /^X\(\/\).*/{ s//\1/; q; }
13103 s/.*/./; q'`
13104 else
13105 continue
13107 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
13108 # Extract the definition of DEP_FILES from the Makefile without
13109 # running `make'.
13110 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
13111 test -z "$DEPDIR" && continue
13112 # When using ansi2knr, U may be empty or an underscore; expand it
13113 U=`sed -n -e '/^U = / s///p' < "$mf"`
13114 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
13115 # We invoke sed twice because it is the simplest approach to
13116 # changing $(DEPDIR) to its actual value in the expansion.
13117 for file in `sed -n -e '
13118 /^DEP_FILES = .*\\\\$/ {
13119 s/^DEP_FILES = //
13120 :loop
13121 s/\\\\$//
13124 /\\\\$/ b loop
13127 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
13128 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13129 # Make sure the directory exists.
13130 test -f "$dirpart/$file" && continue
13131 fdir=`(dirname "$file") 2>/dev/null ||
13132 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13133 X"$file" : 'X\(//\)[^/]' \| \
13134 X"$file" : 'X\(//\)$' \| \
13135 X"$file" : 'X\(/\)' \| \
13136 . : '\(.\)' 2>/dev/null ||
13137 echo X"$file" |
13138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13139 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13140 /^X\(\/\/\)$/{ s//\1/; q; }
13141 /^X\(\/\).*/{ s//\1/; q; }
13142 s/.*/./; q'`
13143 { if $as_mkdir_p; then
13144 mkdir -p $dirpart/$fdir
13145 else
13146 as_dir=$dirpart/$fdir
13147 as_dirs=
13148 while test ! -d "$as_dir"; do
13149 as_dirs="$as_dir $as_dirs"
13150 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13152 X"$as_dir" : 'X\(//\)[^/]' \| \
13153 X"$as_dir" : 'X\(//\)$' \| \
13154 X"$as_dir" : 'X\(/\)' \| \
13155 . : '\(.\)' 2>/dev/null ||
13156 echo X"$as_dir" |
13157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13159 /^X\(\/\/\)$/{ s//\1/; q; }
13160 /^X\(\/\).*/{ s//\1/; q; }
13161 s/.*/./; q'`
13162 done
13163 test ! -n "$as_dirs" || mkdir $as_dirs
13164 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13165 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13166 { (exit 1); exit 1; }; }; }
13168 # echo "creating $dirpart/$file"
13169 echo '# dummy' > "$dirpart/$file"
13170 done
13171 done
13173 default-1 )
13174 for ac_file in $CONFIG_FILES; do
13175 # Support "outfile[:infile[:infile...]]"
13176 case "$ac_file" in
13177 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13178 esac
13179 # PO directories have a Makefile.in generated from Makefile.in.in.
13180 case "$ac_file" in */Makefile.in)
13181 # Adjust a relative srcdir.
13182 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13183 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13184 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13185 # In autoconf-2.13 it is called $ac_given_srcdir.
13186 # In autoconf-2.50 it is called $srcdir.
13187 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13188 case "$ac_given_srcdir" in
13189 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13190 /*) top_srcdir="$ac_given_srcdir" ;;
13191 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13192 esac
13193 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13194 rm -f "$ac_dir/POTFILES"
13195 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13196 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13197 POMAKEFILEDEPS="POTFILES.in"
13198 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13199 # on $ac_dir but don't depend on user-specified configuration
13200 # parameters.
13201 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13202 # The LINGUAS file contains the set of available languages.
13203 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13204 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13206 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13207 # Hide the ALL_LINGUAS assigment from automake.
13208 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13209 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13210 else
13211 # The set of available languages was given in configure.in.
13212 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13214 case "$ac_given_srcdir" in
13215 .) srcdirpre= ;;
13216 *) srcdirpre='$(srcdir)/' ;;
13217 esac
13218 POFILES=
13219 GMOFILES=
13220 UPDATEPOFILES=
13221 DUMMYPOFILES=
13222 for lang in $ALL_LINGUAS; do
13223 POFILES="$POFILES $srcdirpre$lang.po"
13224 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13225 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13226 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13227 done
13228 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13229 # environment variable.
13230 INST_LINGUAS=
13231 if test -n "$ALL_LINGUAS"; then
13232 for presentlang in $ALL_LINGUAS; do
13233 useit=no
13234 if test "%UNSET%" != "$LINGUAS"; then
13235 desiredlanguages="$LINGUAS"
13236 else
13237 desiredlanguages="$ALL_LINGUAS"
13239 for desiredlang in $desiredlanguages; do
13240 # Use the presentlang catalog if desiredlang is
13241 # a. equal to presentlang, or
13242 # b. a variant of presentlang (because in this case,
13243 # presentlang can be used as a fallback for messages
13244 # which are not translated in the desiredlang catalog).
13245 case "$desiredlang" in
13246 "$presentlang"*) useit=yes;;
13247 esac
13248 done
13249 if test $useit = yes; then
13250 INST_LINGUAS="$INST_LINGUAS $presentlang"
13252 done
13254 CATALOGS=
13255 if test -n "$INST_LINGUAS"; then
13256 for lang in $INST_LINGUAS; do
13257 CATALOGS="$CATALOGS $lang.gmo"
13258 done
13260 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13261 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
13262 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13263 if test -f "$f"; then
13264 case "$f" in
13265 *.orig | *.bak | *~) ;;
13266 *) cat "$f" >> "$ac_dir/Makefile" ;;
13267 esac
13269 done
13272 esac
13273 done ;;
13274 esac
13275 done
13276 _ACEOF
13278 cat >>$CONFIG_STATUS <<\_ACEOF
13280 { (exit 0); exit 0; }
13281 _ACEOF
13282 chmod +x $CONFIG_STATUS
13283 ac_clean_files=$ac_clean_files_save
13286 # configure is writing to config.log, and then calls config.status.
13287 # config.status does its own redirection, appending to config.log.
13288 # Unfortunately, on DOS this fails, as config.log is still kept open
13289 # by configure, so config.status won't be able to write to it; its
13290 # output is simply discarded. So we exec the FD to /dev/null,
13291 # effectively closing config.log, so it can be properly (re)opened and
13292 # appended to by config.status. When coming back to configure, we
13293 # need to make the FD available again.
13294 if test "$no_create" != yes; then
13295 ac_cs_success=:
13296 ac_config_status_args=
13297 test "$silent" = yes &&
13298 ac_config_status_args="$ac_config_status_args --quiet"
13299 exec 5>/dev/null
13300 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13301 exec 5>>config.log
13302 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13303 # would make configure fail if this is the last instruction.
13304 $ac_cs_success || { (exit 1); exit 1; }
13308 echo
13309 echo "Using GTK+ $GTK_VERSION with GtkGLExt $GTKGL_VERSION"
13310 echo