Prepare for tools/glade/options.
[gliv.git] / configure
blob1ccc86a2ddbae7c855e37bc9254eb7021fafae9b
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 if test $have_iso_c_varargs = no; then
5085 { echo "$as_me:$LINENO: WARNING: No ISO C99 variadic macros" >&5
5086 echo "$as_me: WARNING: No ISO C99 variadic macros" >&2;}
5089 # Checks for X.
5090 ac_ext=c
5091 ac_cpp='$CPP $CPPFLAGS'
5092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5095 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5096 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5097 # On Suns, sometimes $CPP names a directory.
5098 if test -n "$CPP" && test -d "$CPP"; then
5099 CPP=
5101 if test -z "$CPP"; then
5102 if test "${ac_cv_prog_CPP+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105 # Double quotes because CPP needs to be expanded
5106 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5108 ac_preproc_ok=false
5109 for ac_c_preproc_warn_flag in '' yes
5111 # Use a header file that comes with gcc, so configuring glibc
5112 # with a fresh cross-compiler works.
5113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5114 # <limits.h> exists even on freestanding compilers.
5115 # On the NeXT, cc -E runs the code through the compiler's parser,
5116 # not just through cpp. "Syntax error" is here to catch this case.
5117 cat >conftest.$ac_ext <<_ACEOF
5118 /* confdefs.h. */
5119 _ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5123 #ifdef __STDC__
5124 # include <limits.h>
5125 #else
5126 # include <assert.h>
5127 #endif
5128 Syntax error
5129 _ACEOF
5130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5132 ac_status=$?
5133 grep -v '^ *+' conftest.er1 >conftest.err
5134 rm -f conftest.er1
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } >/dev/null; then
5138 if test -s conftest.err; then
5139 ac_cpp_err=$ac_c_preproc_warn_flag
5140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5141 else
5142 ac_cpp_err=
5144 else
5145 ac_cpp_err=yes
5147 if test -z "$ac_cpp_err"; then
5149 else
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5153 # Broken: fails on valid input.
5154 continue
5156 rm -f conftest.err conftest.$ac_ext
5158 # OK, works on sane cases. Now check whether non-existent headers
5159 # can be detected and how.
5160 cat >conftest.$ac_ext <<_ACEOF
5161 /* confdefs.h. */
5162 _ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h. */
5166 #include <ac_nonexistent.h>
5167 _ACEOF
5168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5170 ac_status=$?
5171 grep -v '^ *+' conftest.er1 >conftest.err
5172 rm -f conftest.er1
5173 cat conftest.err >&5
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); } >/dev/null; then
5176 if test -s conftest.err; then
5177 ac_cpp_err=$ac_c_preproc_warn_flag
5178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5179 else
5180 ac_cpp_err=
5182 else
5183 ac_cpp_err=yes
5185 if test -z "$ac_cpp_err"; then
5186 # Broken: success on invalid input.
5187 continue
5188 else
5189 echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5192 # Passes both tests.
5193 ac_preproc_ok=:
5194 break
5196 rm -f conftest.err conftest.$ac_ext
5198 done
5199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5200 rm -f conftest.err conftest.$ac_ext
5201 if $ac_preproc_ok; then
5202 break
5205 done
5206 ac_cv_prog_CPP=$CPP
5209 CPP=$ac_cv_prog_CPP
5210 else
5211 ac_cv_prog_CPP=$CPP
5213 echo "$as_me:$LINENO: result: $CPP" >&5
5214 echo "${ECHO_T}$CPP" >&6
5215 ac_preproc_ok=false
5216 for ac_c_preproc_warn_flag in '' yes
5218 # Use a header file that comes with gcc, so configuring glibc
5219 # with a fresh cross-compiler works.
5220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5221 # <limits.h> exists even on freestanding compilers.
5222 # On the NeXT, cc -E runs the code through the compiler's parser,
5223 # not just through cpp. "Syntax error" is here to catch this case.
5224 cat >conftest.$ac_ext <<_ACEOF
5225 /* confdefs.h. */
5226 _ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5230 #ifdef __STDC__
5231 # include <limits.h>
5232 #else
5233 # include <assert.h>
5234 #endif
5235 Syntax error
5236 _ACEOF
5237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5239 ac_status=$?
5240 grep -v '^ *+' conftest.er1 >conftest.err
5241 rm -f conftest.er1
5242 cat conftest.err >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } >/dev/null; then
5245 if test -s conftest.err; then
5246 ac_cpp_err=$ac_c_preproc_warn_flag
5247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5248 else
5249 ac_cpp_err=
5251 else
5252 ac_cpp_err=yes
5254 if test -z "$ac_cpp_err"; then
5256 else
5257 echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5260 # Broken: fails on valid input.
5261 continue
5263 rm -f conftest.err conftest.$ac_ext
5265 # OK, works on sane cases. Now check whether non-existent headers
5266 # can be detected and how.
5267 cat >conftest.$ac_ext <<_ACEOF
5268 /* confdefs.h. */
5269 _ACEOF
5270 cat confdefs.h >>conftest.$ac_ext
5271 cat >>conftest.$ac_ext <<_ACEOF
5272 /* end confdefs.h. */
5273 #include <ac_nonexistent.h>
5274 _ACEOF
5275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5277 ac_status=$?
5278 grep -v '^ *+' conftest.er1 >conftest.err
5279 rm -f conftest.er1
5280 cat conftest.err >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); } >/dev/null; then
5283 if test -s conftest.err; then
5284 ac_cpp_err=$ac_c_preproc_warn_flag
5285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5286 else
5287 ac_cpp_err=
5289 else
5290 ac_cpp_err=yes
5292 if test -z "$ac_cpp_err"; then
5293 # Broken: success on invalid input.
5294 continue
5295 else
5296 echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5299 # Passes both tests.
5300 ac_preproc_ok=:
5301 break
5303 rm -f conftest.err conftest.$ac_ext
5305 done
5306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5307 rm -f conftest.err conftest.$ac_ext
5308 if $ac_preproc_ok; then
5310 else
5311 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5312 See \`config.log' for more details." >&5
5313 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5314 See \`config.log' for more details." >&2;}
5315 { (exit 1); exit 1; }; }
5318 ac_ext=c
5319 ac_cpp='$CPP $CPPFLAGS'
5320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5325 echo "$as_me:$LINENO: checking for X" >&5
5326 echo $ECHO_N "checking for X... $ECHO_C" >&6
5329 # Check whether --with-x or --without-x was given.
5330 if test "${with_x+set}" = set; then
5331 withval="$with_x"
5334 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5335 if test "x$with_x" = xno; then
5336 # The user explicitly disabled X.
5337 have_x=disabled
5338 else
5339 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5340 # Both variables are already set.
5341 have_x=yes
5342 else
5343 if test "${ac_cv_have_x+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346 # One or both of the vars are not set, and there is no cached value.
5347 ac_x_includes=no ac_x_libraries=no
5348 rm -fr conftest.dir
5349 if mkdir conftest.dir; then
5350 cd conftest.dir
5351 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5352 cat >Imakefile <<'_ACEOF'
5353 acfindx:
5354 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5355 _ACEOF
5356 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5357 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5358 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5359 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5360 for ac_extension in a so sl; do
5361 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5362 test -f $ac_im_libdir/libX11.$ac_extension; then
5363 ac_im_usrlibdir=$ac_im_libdir; break
5365 done
5366 # Screen out bogus values from the imake configuration. They are
5367 # bogus both because they are the default anyway, and because
5368 # using them would break gcc on systems where it needs fixed includes.
5369 case $ac_im_incroot in
5370 /usr/include) ;;
5371 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5372 esac
5373 case $ac_im_usrlibdir in
5374 /usr/lib | /lib) ;;
5375 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5376 esac
5378 cd ..
5379 rm -fr conftest.dir
5382 # Standard set of common directories for X headers.
5383 # Check X11 before X11Rn because it is often a symlink to the current release.
5384 ac_x_header_dirs='
5385 /usr/X11/include
5386 /usr/X11R6/include
5387 /usr/X11R5/include
5388 /usr/X11R4/include
5390 /usr/include/X11
5391 /usr/include/X11R6
5392 /usr/include/X11R5
5393 /usr/include/X11R4
5395 /usr/local/X11/include
5396 /usr/local/X11R6/include
5397 /usr/local/X11R5/include
5398 /usr/local/X11R4/include
5400 /usr/local/include/X11
5401 /usr/local/include/X11R6
5402 /usr/local/include/X11R5
5403 /usr/local/include/X11R4
5405 /usr/X386/include
5406 /usr/x386/include
5407 /usr/XFree86/include/X11
5409 /usr/include
5410 /usr/local/include
5411 /usr/unsupported/include
5412 /usr/athena/include
5413 /usr/local/x11r5/include
5414 /usr/lpp/Xamples/include
5416 /usr/openwin/include
5417 /usr/openwin/share/include'
5419 if test "$ac_x_includes" = no; then
5420 # Guess where to find include files, by looking for Intrinsic.h.
5421 # First, try using that file with no special directory specified.
5422 cat >conftest.$ac_ext <<_ACEOF
5423 /* confdefs.h. */
5424 _ACEOF
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5428 #include <X11/Intrinsic.h>
5429 _ACEOF
5430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5432 ac_status=$?
5433 grep -v '^ *+' conftest.er1 >conftest.err
5434 rm -f conftest.er1
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } >/dev/null; then
5438 if test -s conftest.err; then
5439 ac_cpp_err=$ac_c_preproc_warn_flag
5440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5441 else
5442 ac_cpp_err=
5444 else
5445 ac_cpp_err=yes
5447 if test -z "$ac_cpp_err"; then
5448 # We can compile using X headers with no special include directory.
5449 ac_x_includes=
5450 else
5451 echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5454 for ac_dir in $ac_x_header_dirs; do
5455 if test -r "$ac_dir/X11/Intrinsic.h"; then
5456 ac_x_includes=$ac_dir
5457 break
5459 done
5461 rm -f conftest.err conftest.$ac_ext
5462 fi # $ac_x_includes = no
5464 if test "$ac_x_libraries" = no; then
5465 # Check for the libraries.
5466 # See if we find them without any special options.
5467 # Don't add to $LIBS permanently.
5468 ac_save_LIBS=$LIBS
5469 LIBS="-lXt $LIBS"
5470 cat >conftest.$ac_ext <<_ACEOF
5471 /* confdefs.h. */
5472 _ACEOF
5473 cat confdefs.h >>conftest.$ac_ext
5474 cat >>conftest.$ac_ext <<_ACEOF
5475 /* end confdefs.h. */
5476 #include <X11/Intrinsic.h>
5478 main ()
5480 XtMalloc (0)
5482 return 0;
5484 _ACEOF
5485 rm -f conftest.$ac_objext conftest$ac_exeext
5486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5487 (eval $ac_link) 2>conftest.er1
5488 ac_status=$?
5489 grep -v '^ *+' conftest.er1 >conftest.err
5490 rm -f conftest.er1
5491 cat conftest.err >&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } &&
5494 { ac_try='test -z "$ac_c_werror_flag"
5495 || test ! -s conftest.err'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497 (eval $ac_try) 2>&5
5498 ac_status=$?
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; } &&
5501 { ac_try='test -s conftest$ac_exeext'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503 (eval $ac_try) 2>&5
5504 ac_status=$?
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; }; then
5507 LIBS=$ac_save_LIBS
5508 # We can link X programs with no special library path.
5509 ac_x_libraries=
5510 else
5511 echo "$as_me: failed program was:" >&5
5512 sed 's/^/| /' conftest.$ac_ext >&5
5514 LIBS=$ac_save_LIBS
5515 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5517 # Don't even attempt the hair of trying to link an X program!
5518 for ac_extension in a so sl; do
5519 if test -r $ac_dir/libXt.$ac_extension; then
5520 ac_x_libraries=$ac_dir
5521 break 2
5523 done
5524 done
5526 rm -f conftest.err conftest.$ac_objext \
5527 conftest$ac_exeext conftest.$ac_ext
5528 fi # $ac_x_libraries = no
5530 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5531 # Didn't find X anywhere. Cache the known absence of X.
5532 ac_cv_have_x="have_x=no"
5533 else
5534 # Record where we found X for the cache.
5535 ac_cv_have_x="have_x=yes \
5536 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5541 eval "$ac_cv_have_x"
5542 fi # $with_x != no
5544 if test "$have_x" != yes; then
5545 echo "$as_me:$LINENO: result: $have_x" >&5
5546 echo "${ECHO_T}$have_x" >&6
5547 no_x=yes
5548 else
5549 # If each of the values was on the command line, it overrides each guess.
5550 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5551 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5552 # Update the cache value to reflect the command line values.
5553 ac_cv_have_x="have_x=yes \
5554 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5555 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5556 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5559 if test "$no_x" = yes; then
5560 # Not all programs may use this symbol, but it does not hurt to define it.
5562 cat >>confdefs.h <<\_ACEOF
5563 #define X_DISPLAY_MISSING 1
5564 _ACEOF
5566 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5567 else
5568 if test -n "$x_includes"; then
5569 X_CFLAGS="$X_CFLAGS -I$x_includes"
5572 # It would also be nice to do this for all -L options, not just this one.
5573 if test -n "$x_libraries"; then
5574 X_LIBS="$X_LIBS -L$x_libraries"
5575 # For Solaris; some versions of Sun CC require a space after -R and
5576 # others require no space. Words are not sufficient . . . .
5577 case `(uname -sr) 2>/dev/null` in
5578 "SunOS 5"*)
5579 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5580 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5581 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5582 cat >conftest.$ac_ext <<_ACEOF
5583 /* confdefs.h. */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5590 main ()
5594 return 0;
5596 _ACEOF
5597 rm -f conftest.$ac_objext conftest$ac_exeext
5598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5599 (eval $ac_link) 2>conftest.er1
5600 ac_status=$?
5601 grep -v '^ *+' conftest.er1 >conftest.err
5602 rm -f conftest.er1
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } &&
5606 { ac_try='test -z "$ac_c_werror_flag"
5607 || test ! -s conftest.err'
5608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609 (eval $ac_try) 2>&5
5610 ac_status=$?
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; } &&
5613 { ac_try='test -s conftest$ac_exeext'
5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615 (eval $ac_try) 2>&5
5616 ac_status=$?
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; }; then
5619 ac_R_nospace=yes
5620 else
5621 echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5624 ac_R_nospace=no
5626 rm -f conftest.err conftest.$ac_objext \
5627 conftest$ac_exeext conftest.$ac_ext
5628 if test $ac_R_nospace = yes; then
5629 echo "$as_me:$LINENO: result: no" >&5
5630 echo "${ECHO_T}no" >&6
5631 X_LIBS="$X_LIBS -R$x_libraries"
5632 else
5633 LIBS="$ac_xsave_LIBS -R $x_libraries"
5634 cat >conftest.$ac_ext <<_ACEOF
5635 /* confdefs.h. */
5636 _ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5642 main ()
5646 return 0;
5648 _ACEOF
5649 rm -f conftest.$ac_objext conftest$ac_exeext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5651 (eval $ac_link) 2>conftest.er1
5652 ac_status=$?
5653 grep -v '^ *+' conftest.er1 >conftest.err
5654 rm -f conftest.er1
5655 cat conftest.err >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } &&
5658 { ac_try='test -z "$ac_c_werror_flag"
5659 || test ! -s conftest.err'
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 (eval $ac_try) 2>&5
5662 ac_status=$?
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; } &&
5665 { ac_try='test -s conftest$ac_exeext'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667 (eval $ac_try) 2>&5
5668 ac_status=$?
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; }; then
5671 ac_R_space=yes
5672 else
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5676 ac_R_space=no
5678 rm -f conftest.err conftest.$ac_objext \
5679 conftest$ac_exeext conftest.$ac_ext
5680 if test $ac_R_space = yes; then
5681 echo "$as_me:$LINENO: result: yes" >&5
5682 echo "${ECHO_T}yes" >&6
5683 X_LIBS="$X_LIBS -R $x_libraries"
5684 else
5685 echo "$as_me:$LINENO: result: neither works" >&5
5686 echo "${ECHO_T}neither works" >&6
5689 LIBS=$ac_xsave_LIBS
5690 esac
5693 # Check for system-dependent libraries X programs must link with.
5694 # Do this before checking for the system-independent R6 libraries
5695 # (-lICE), since we may need -lsocket or whatever for X linking.
5697 if test "$ISC" = yes; then
5698 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5699 else
5700 # Martyn Johnson says this is needed for Ultrix, if the X
5701 # libraries were built with DECnet support. And Karl Berry says
5702 # the Alpha needs dnet_stub (dnet does not exist).
5703 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
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. */
5711 /* Override any gcc2 internal prototype to avoid an error. */
5712 #ifdef __cplusplus
5713 extern "C"
5714 #endif
5715 /* We use char because int might match the return type of a gcc2
5716 builtin and then its argument prototype would still apply. */
5717 char XOpenDisplay ();
5719 main ()
5721 XOpenDisplay ();
5723 return 0;
5725 _ACEOF
5726 rm -f conftest.$ac_objext conftest$ac_exeext
5727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5728 (eval $ac_link) 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } &&
5735 { ac_try='test -z "$ac_c_werror_flag"
5736 || test ! -s conftest.err'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 (eval $ac_try) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; } &&
5742 { ac_try='test -s conftest$ac_exeext'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 (eval $ac_try) 2>&5
5745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5749 else
5750 echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5753 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5754 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5755 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758 ac_check_lib_save_LIBS=$LIBS
5759 LIBS="-ldnet $LIBS"
5760 cat >conftest.$ac_ext <<_ACEOF
5761 /* confdefs.h. */
5762 _ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5767 /* Override any gcc2 internal prototype to avoid an error. */
5768 #ifdef __cplusplus
5769 extern "C"
5770 #endif
5771 /* We use char because int might match the return type of a gcc2
5772 builtin and then its argument prototype would still apply. */
5773 char dnet_ntoa ();
5775 main ()
5777 dnet_ntoa ();
5779 return 0;
5781 _ACEOF
5782 rm -f conftest.$ac_objext conftest$ac_exeext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784 (eval $ac_link) 2>conftest.er1
5785 ac_status=$?
5786 grep -v '^ *+' conftest.er1 >conftest.err
5787 rm -f conftest.er1
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } &&
5791 { ac_try='test -z "$ac_c_werror_flag"
5792 || test ! -s conftest.err'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; } &&
5798 { ac_try='test -s conftest$ac_exeext'
5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 (eval $ac_try) 2>&5
5801 ac_status=$?
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; }; then
5804 ac_cv_lib_dnet_dnet_ntoa=yes
5805 else
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5809 ac_cv_lib_dnet_dnet_ntoa=no
5811 rm -f conftest.err conftest.$ac_objext \
5812 conftest$ac_exeext conftest.$ac_ext
5813 LIBS=$ac_check_lib_save_LIBS
5815 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5816 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5817 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5818 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5821 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5822 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5823 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5824 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827 ac_check_lib_save_LIBS=$LIBS
5828 LIBS="-ldnet_stub $LIBS"
5829 cat >conftest.$ac_ext <<_ACEOF
5830 /* confdefs.h. */
5831 _ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h. */
5836 /* Override any gcc2 internal prototype to avoid an error. */
5837 #ifdef __cplusplus
5838 extern "C"
5839 #endif
5840 /* We use char because int might match the return type of a gcc2
5841 builtin and then its argument prototype would still apply. */
5842 char dnet_ntoa ();
5844 main ()
5846 dnet_ntoa ();
5848 return 0;
5850 _ACEOF
5851 rm -f conftest.$ac_objext conftest$ac_exeext
5852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5853 (eval $ac_link) 2>conftest.er1
5854 ac_status=$?
5855 grep -v '^ *+' conftest.er1 >conftest.err
5856 rm -f conftest.er1
5857 cat conftest.err >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } &&
5860 { ac_try='test -z "$ac_c_werror_flag"
5861 || test ! -s conftest.err'
5862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863 (eval $ac_try) 2>&5
5864 ac_status=$?
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); }; } &&
5867 { ac_try='test -s conftest$ac_exeext'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 (eval $ac_try) 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; }; then
5873 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5874 else
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5878 ac_cv_lib_dnet_stub_dnet_ntoa=no
5880 rm -f conftest.err conftest.$ac_objext \
5881 conftest$ac_exeext conftest.$ac_ext
5882 LIBS=$ac_check_lib_save_LIBS
5884 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5885 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5886 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5887 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5892 rm -f conftest.err conftest.$ac_objext \
5893 conftest$ac_exeext conftest.$ac_ext
5894 LIBS="$ac_xsave_LIBS"
5896 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5897 # to get the SysV transport functions.
5898 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5899 # needs -lnsl.
5900 # The nsl library prevents programs from opening the X display
5901 # on Irix 5.2, according to T.E. Dickey.
5902 # The functions gethostbyname, getservbyname, and inet_addr are
5903 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5904 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5905 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5906 if test "${ac_cv_func_gethostbyname+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909 cat >conftest.$ac_ext <<_ACEOF
5910 /* confdefs.h. */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5915 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5917 #define gethostbyname innocuous_gethostbyname
5919 /* System header to define __stub macros and hopefully few prototypes,
5920 which can conflict with char gethostbyname (); below.
5921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5922 <limits.h> exists even on freestanding compilers. */
5924 #ifdef __STDC__
5925 # include <limits.h>
5926 #else
5927 # include <assert.h>
5928 #endif
5930 #undef gethostbyname
5932 /* Override any gcc2 internal prototype to avoid an error. */
5933 #ifdef __cplusplus
5934 extern "C"
5936 #endif
5937 /* We use char because int might match the return type of a gcc2
5938 builtin and then its argument prototype would still apply. */
5939 char gethostbyname ();
5940 /* The GNU C library defines this for functions which it implements
5941 to always fail with ENOSYS. Some functions are actually named
5942 something starting with __ and the normal name is an alias. */
5943 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5944 choke me
5945 #else
5946 char (*f) () = gethostbyname;
5947 #endif
5948 #ifdef __cplusplus
5950 #endif
5953 main ()
5955 return f != gethostbyname;
5957 return 0;
5959 _ACEOF
5960 rm -f conftest.$ac_objext conftest$ac_exeext
5961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5962 (eval $ac_link) 2>conftest.er1
5963 ac_status=$?
5964 grep -v '^ *+' conftest.er1 >conftest.err
5965 rm -f conftest.er1
5966 cat conftest.err >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); } &&
5969 { ac_try='test -z "$ac_c_werror_flag"
5970 || test ! -s conftest.err'
5971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972 (eval $ac_try) 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; } &&
5976 { ac_try='test -s conftest$ac_exeext'
5977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978 (eval $ac_try) 2>&5
5979 ac_status=$?
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }; }; then
5982 ac_cv_func_gethostbyname=yes
5983 else
5984 echo "$as_me: failed program was:" >&5
5985 sed 's/^/| /' conftest.$ac_ext >&5
5987 ac_cv_func_gethostbyname=no
5989 rm -f conftest.err conftest.$ac_objext \
5990 conftest$ac_exeext conftest.$ac_ext
5992 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5993 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5995 if test $ac_cv_func_gethostbyname = no; then
5996 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5997 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5998 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 else
6001 ac_check_lib_save_LIBS=$LIBS
6002 LIBS="-lnsl $LIBS"
6003 cat >conftest.$ac_ext <<_ACEOF
6004 /* confdefs.h. */
6005 _ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6010 /* Override any gcc2 internal prototype to avoid an error. */
6011 #ifdef __cplusplus
6012 extern "C"
6013 #endif
6014 /* We use char because int might match the return type of a gcc2
6015 builtin and then its argument prototype would still apply. */
6016 char gethostbyname ();
6018 main ()
6020 gethostbyname ();
6022 return 0;
6024 _ACEOF
6025 rm -f conftest.$ac_objext conftest$ac_exeext
6026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6027 (eval $ac_link) 2>conftest.er1
6028 ac_status=$?
6029 grep -v '^ *+' conftest.er1 >conftest.err
6030 rm -f conftest.er1
6031 cat conftest.err >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } &&
6034 { ac_try='test -z "$ac_c_werror_flag"
6035 || test ! -s conftest.err'
6036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037 (eval $ac_try) 2>&5
6038 ac_status=$?
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; } &&
6041 { ac_try='test -s conftest$ac_exeext'
6042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043 (eval $ac_try) 2>&5
6044 ac_status=$?
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }; }; then
6047 ac_cv_lib_nsl_gethostbyname=yes
6048 else
6049 echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6052 ac_cv_lib_nsl_gethostbyname=no
6054 rm -f conftest.err conftest.$ac_objext \
6055 conftest$ac_exeext conftest.$ac_ext
6056 LIBS=$ac_check_lib_save_LIBS
6058 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6059 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6060 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6061 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6064 if test $ac_cv_lib_nsl_gethostbyname = no; then
6065 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6066 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
6067 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6069 else
6070 ac_check_lib_save_LIBS=$LIBS
6071 LIBS="-lbsd $LIBS"
6072 cat >conftest.$ac_ext <<_ACEOF
6073 /* confdefs.h. */
6074 _ACEOF
6075 cat confdefs.h >>conftest.$ac_ext
6076 cat >>conftest.$ac_ext <<_ACEOF
6077 /* end confdefs.h. */
6079 /* Override any gcc2 internal prototype to avoid an error. */
6080 #ifdef __cplusplus
6081 extern "C"
6082 #endif
6083 /* We use char because int might match the return type of a gcc2
6084 builtin and then its argument prototype would still apply. */
6085 char gethostbyname ();
6087 main ()
6089 gethostbyname ();
6091 return 0;
6093 _ACEOF
6094 rm -f conftest.$ac_objext conftest$ac_exeext
6095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6096 (eval $ac_link) 2>conftest.er1
6097 ac_status=$?
6098 grep -v '^ *+' conftest.er1 >conftest.err
6099 rm -f conftest.er1
6100 cat conftest.err >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } &&
6103 { ac_try='test -z "$ac_c_werror_flag"
6104 || test ! -s conftest.err'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 (eval $ac_try) 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; } &&
6110 { ac_try='test -s conftest$ac_exeext'
6111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 (eval $ac_try) 2>&5
6113 ac_status=$?
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; }; then
6116 ac_cv_lib_bsd_gethostbyname=yes
6117 else
6118 echo "$as_me: failed program was:" >&5
6119 sed 's/^/| /' conftest.$ac_ext >&5
6121 ac_cv_lib_bsd_gethostbyname=no
6123 rm -f conftest.err conftest.$ac_objext \
6124 conftest$ac_exeext conftest.$ac_ext
6125 LIBS=$ac_check_lib_save_LIBS
6127 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6128 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6129 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6130 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6136 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6137 # socket/setsockopt and other routines are undefined under SCO ODT
6138 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6139 # on later versions), says Simon Leinen: it contains gethostby*
6140 # variants that don't use the name server (or something). -lsocket
6141 # must be given before -lnsl if both are needed. We assume that
6142 # if connect needs -lnsl, so does gethostbyname.
6143 echo "$as_me:$LINENO: checking for connect" >&5
6144 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6145 if test "${ac_cv_func_connect+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 else
6148 cat >conftest.$ac_ext <<_ACEOF
6149 /* confdefs.h. */
6150 _ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6154 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6156 #define connect innocuous_connect
6158 /* System header to define __stub macros and hopefully few prototypes,
6159 which can conflict with char connect (); below.
6160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6161 <limits.h> exists even on freestanding compilers. */
6163 #ifdef __STDC__
6164 # include <limits.h>
6165 #else
6166 # include <assert.h>
6167 #endif
6169 #undef connect
6171 /* Override any gcc2 internal prototype to avoid an error. */
6172 #ifdef __cplusplus
6173 extern "C"
6175 #endif
6176 /* We use char because int might match the return type of a gcc2
6177 builtin and then its argument prototype would still apply. */
6178 char connect ();
6179 /* The GNU C library defines this for functions which it implements
6180 to always fail with ENOSYS. Some functions are actually named
6181 something starting with __ and the normal name is an alias. */
6182 #if defined (__stub_connect) || defined (__stub___connect)
6183 choke me
6184 #else
6185 char (*f) () = connect;
6186 #endif
6187 #ifdef __cplusplus
6189 #endif
6192 main ()
6194 return f != connect;
6196 return 0;
6198 _ACEOF
6199 rm -f conftest.$ac_objext conftest$ac_exeext
6200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6201 (eval $ac_link) 2>conftest.er1
6202 ac_status=$?
6203 grep -v '^ *+' conftest.er1 >conftest.err
6204 rm -f conftest.er1
6205 cat conftest.err >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } &&
6208 { ac_try='test -z "$ac_c_werror_flag"
6209 || test ! -s conftest.err'
6210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211 (eval $ac_try) 2>&5
6212 ac_status=$?
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }; } &&
6215 { ac_try='test -s conftest$ac_exeext'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 (eval $ac_try) 2>&5
6218 ac_status=$?
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; }; then
6221 ac_cv_func_connect=yes
6222 else
6223 echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6226 ac_cv_func_connect=no
6228 rm -f conftest.err conftest.$ac_objext \
6229 conftest$ac_exeext conftest.$ac_ext
6231 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6232 echo "${ECHO_T}$ac_cv_func_connect" >&6
6234 if test $ac_cv_func_connect = no; then
6235 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6236 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6237 if test "${ac_cv_lib_socket_connect+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 else
6240 ac_check_lib_save_LIBS=$LIBS
6241 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6242 cat >conftest.$ac_ext <<_ACEOF
6243 /* confdefs.h. */
6244 _ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h. */
6249 /* Override any gcc2 internal prototype to avoid an error. */
6250 #ifdef __cplusplus
6251 extern "C"
6252 #endif
6253 /* We use char because int might match the return type of a gcc2
6254 builtin and then its argument prototype would still apply. */
6255 char connect ();
6257 main ()
6259 connect ();
6261 return 0;
6263 _ACEOF
6264 rm -f conftest.$ac_objext conftest$ac_exeext
6265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6266 (eval $ac_link) 2>conftest.er1
6267 ac_status=$?
6268 grep -v '^ *+' conftest.er1 >conftest.err
6269 rm -f conftest.er1
6270 cat conftest.err >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } &&
6273 { ac_try='test -z "$ac_c_werror_flag"
6274 || test ! -s conftest.err'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 (eval $ac_try) 2>&5
6277 ac_status=$?
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; } &&
6280 { ac_try='test -s conftest$ac_exeext'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282 (eval $ac_try) 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; }; then
6286 ac_cv_lib_socket_connect=yes
6287 else
6288 echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6291 ac_cv_lib_socket_connect=no
6293 rm -f conftest.err conftest.$ac_objext \
6294 conftest$ac_exeext conftest.$ac_ext
6295 LIBS=$ac_check_lib_save_LIBS
6297 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6298 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6299 if test $ac_cv_lib_socket_connect = yes; then
6300 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6305 # Guillermo Gomez says -lposix is necessary on A/UX.
6306 echo "$as_me:$LINENO: checking for remove" >&5
6307 echo $ECHO_N "checking for remove... $ECHO_C" >&6
6308 if test "${ac_cv_func_remove+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 else
6311 cat >conftest.$ac_ext <<_ACEOF
6312 /* confdefs.h. */
6313 _ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6317 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6319 #define remove innocuous_remove
6321 /* System header to define __stub macros and hopefully few prototypes,
6322 which can conflict with char remove (); below.
6323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6324 <limits.h> exists even on freestanding compilers. */
6326 #ifdef __STDC__
6327 # include <limits.h>
6328 #else
6329 # include <assert.h>
6330 #endif
6332 #undef remove
6334 /* Override any gcc2 internal prototype to avoid an error. */
6335 #ifdef __cplusplus
6336 extern "C"
6338 #endif
6339 /* We use char because int might match the return type of a gcc2
6340 builtin and then its argument prototype would still apply. */
6341 char remove ();
6342 /* The GNU C library defines this for functions which it implements
6343 to always fail with ENOSYS. Some functions are actually named
6344 something starting with __ and the normal name is an alias. */
6345 #if defined (__stub_remove) || defined (__stub___remove)
6346 choke me
6347 #else
6348 char (*f) () = remove;
6349 #endif
6350 #ifdef __cplusplus
6352 #endif
6355 main ()
6357 return f != remove;
6359 return 0;
6361 _ACEOF
6362 rm -f conftest.$ac_objext conftest$ac_exeext
6363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6364 (eval $ac_link) 2>conftest.er1
6365 ac_status=$?
6366 grep -v '^ *+' conftest.er1 >conftest.err
6367 rm -f conftest.er1
6368 cat conftest.err >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } &&
6371 { ac_try='test -z "$ac_c_werror_flag"
6372 || test ! -s conftest.err'
6373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 (eval $ac_try) 2>&5
6375 ac_status=$?
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; } &&
6378 { ac_try='test -s conftest$ac_exeext'
6379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380 (eval $ac_try) 2>&5
6381 ac_status=$?
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); }; }; then
6384 ac_cv_func_remove=yes
6385 else
6386 echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6389 ac_cv_func_remove=no
6391 rm -f conftest.err conftest.$ac_objext \
6392 conftest$ac_exeext conftest.$ac_ext
6394 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6395 echo "${ECHO_T}$ac_cv_func_remove" >&6
6397 if test $ac_cv_func_remove = no; then
6398 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6399 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6400 if test "${ac_cv_lib_posix_remove+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 else
6403 ac_check_lib_save_LIBS=$LIBS
6404 LIBS="-lposix $LIBS"
6405 cat >conftest.$ac_ext <<_ACEOF
6406 /* confdefs.h. */
6407 _ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6412 /* Override any gcc2 internal prototype to avoid an error. */
6413 #ifdef __cplusplus
6414 extern "C"
6415 #endif
6416 /* We use char because int might match the return type of a gcc2
6417 builtin and then its argument prototype would still apply. */
6418 char remove ();
6420 main ()
6422 remove ();
6424 return 0;
6426 _ACEOF
6427 rm -f conftest.$ac_objext conftest$ac_exeext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6429 (eval $ac_link) 2>conftest.er1
6430 ac_status=$?
6431 grep -v '^ *+' conftest.er1 >conftest.err
6432 rm -f conftest.er1
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } &&
6436 { ac_try='test -z "$ac_c_werror_flag"
6437 || test ! -s conftest.err'
6438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 (eval $ac_try) 2>&5
6440 ac_status=$?
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; } &&
6443 { ac_try='test -s conftest$ac_exeext'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 (eval $ac_try) 2>&5
6446 ac_status=$?
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; }; then
6449 ac_cv_lib_posix_remove=yes
6450 else
6451 echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6454 ac_cv_lib_posix_remove=no
6456 rm -f conftest.err conftest.$ac_objext \
6457 conftest$ac_exeext conftest.$ac_ext
6458 LIBS=$ac_check_lib_save_LIBS
6460 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6461 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6462 if test $ac_cv_lib_posix_remove = yes; then
6463 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6468 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6469 echo "$as_me:$LINENO: checking for shmat" >&5
6470 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6471 if test "${ac_cv_func_shmat+set}" = set; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 else
6474 cat >conftest.$ac_ext <<_ACEOF
6475 /* confdefs.h. */
6476 _ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6480 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6482 #define shmat innocuous_shmat
6484 /* System header to define __stub macros and hopefully few prototypes,
6485 which can conflict with char shmat (); below.
6486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6487 <limits.h> exists even on freestanding compilers. */
6489 #ifdef __STDC__
6490 # include <limits.h>
6491 #else
6492 # include <assert.h>
6493 #endif
6495 #undef shmat
6497 /* Override any gcc2 internal prototype to avoid an error. */
6498 #ifdef __cplusplus
6499 extern "C"
6501 #endif
6502 /* We use char because int might match the return type of a gcc2
6503 builtin and then its argument prototype would still apply. */
6504 char shmat ();
6505 /* The GNU C library defines this for functions which it implements
6506 to always fail with ENOSYS. Some functions are actually named
6507 something starting with __ and the normal name is an alias. */
6508 #if defined (__stub_shmat) || defined (__stub___shmat)
6509 choke me
6510 #else
6511 char (*f) () = shmat;
6512 #endif
6513 #ifdef __cplusplus
6515 #endif
6518 main ()
6520 return f != shmat;
6522 return 0;
6524 _ACEOF
6525 rm -f conftest.$ac_objext conftest$ac_exeext
6526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6527 (eval $ac_link) 2>conftest.er1
6528 ac_status=$?
6529 grep -v '^ *+' conftest.er1 >conftest.err
6530 rm -f conftest.er1
6531 cat conftest.err >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } &&
6534 { ac_try='test -z "$ac_c_werror_flag"
6535 || test ! -s conftest.err'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537 (eval $ac_try) 2>&5
6538 ac_status=$?
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; } &&
6541 { ac_try='test -s conftest$ac_exeext'
6542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543 (eval $ac_try) 2>&5
6544 ac_status=$?
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; }; then
6547 ac_cv_func_shmat=yes
6548 else
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6552 ac_cv_func_shmat=no
6554 rm -f conftest.err conftest.$ac_objext \
6555 conftest$ac_exeext conftest.$ac_ext
6557 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6558 echo "${ECHO_T}$ac_cv_func_shmat" >&6
6560 if test $ac_cv_func_shmat = no; then
6561 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6562 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6563 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566 ac_check_lib_save_LIBS=$LIBS
6567 LIBS="-lipc $LIBS"
6568 cat >conftest.$ac_ext <<_ACEOF
6569 /* confdefs.h. */
6570 _ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h. */
6575 /* Override any gcc2 internal prototype to avoid an error. */
6576 #ifdef __cplusplus
6577 extern "C"
6578 #endif
6579 /* We use char because int might match the return type of a gcc2
6580 builtin and then its argument prototype would still apply. */
6581 char shmat ();
6583 main ()
6585 shmat ();
6587 return 0;
6589 _ACEOF
6590 rm -f conftest.$ac_objext conftest$ac_exeext
6591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6592 (eval $ac_link) 2>conftest.er1
6593 ac_status=$?
6594 grep -v '^ *+' conftest.er1 >conftest.err
6595 rm -f conftest.er1
6596 cat conftest.err >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } &&
6599 { ac_try='test -z "$ac_c_werror_flag"
6600 || test ! -s conftest.err'
6601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 (eval $ac_try) 2>&5
6603 ac_status=$?
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; } &&
6606 { ac_try='test -s conftest$ac_exeext'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 (eval $ac_try) 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; }; then
6612 ac_cv_lib_ipc_shmat=yes
6613 else
6614 echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.$ac_ext >&5
6617 ac_cv_lib_ipc_shmat=no
6619 rm -f conftest.err conftest.$ac_objext \
6620 conftest$ac_exeext conftest.$ac_ext
6621 LIBS=$ac_check_lib_save_LIBS
6623 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6624 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6625 if test $ac_cv_lib_ipc_shmat = yes; then
6626 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6632 # Check for libraries that X11R6 Xt/Xaw programs need.
6633 ac_save_LDFLAGS=$LDFLAGS
6634 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6635 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6636 # check for ICE first), but we must link in the order -lSM -lICE or
6637 # we get undefined symbols. So assume we have SM if we have ICE.
6638 # These have to be linked with before -lX11, unlike the other
6639 # libraries we check for below, so use a different variable.
6640 # John Interrante, Karl Berry
6641 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6642 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6643 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6646 ac_check_lib_save_LIBS=$LIBS
6647 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6648 cat >conftest.$ac_ext <<_ACEOF
6649 /* confdefs.h. */
6650 _ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6655 /* Override any gcc2 internal prototype to avoid an error. */
6656 #ifdef __cplusplus
6657 extern "C"
6658 #endif
6659 /* We use char because int might match the return type of a gcc2
6660 builtin and then its argument prototype would still apply. */
6661 char IceConnectionNumber ();
6663 main ()
6665 IceConnectionNumber ();
6667 return 0;
6669 _ACEOF
6670 rm -f conftest.$ac_objext conftest$ac_exeext
6671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6672 (eval $ac_link) 2>conftest.er1
6673 ac_status=$?
6674 grep -v '^ *+' conftest.er1 >conftest.err
6675 rm -f conftest.er1
6676 cat conftest.err >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } &&
6679 { ac_try='test -z "$ac_c_werror_flag"
6680 || test ! -s conftest.err'
6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682 (eval $ac_try) 2>&5
6683 ac_status=$?
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; } &&
6686 { ac_try='test -s conftest$ac_exeext'
6687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 (eval $ac_try) 2>&5
6689 ac_status=$?
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); }; }; then
6692 ac_cv_lib_ICE_IceConnectionNumber=yes
6693 else
6694 echo "$as_me: failed program was:" >&5
6695 sed 's/^/| /' conftest.$ac_ext >&5
6697 ac_cv_lib_ICE_IceConnectionNumber=no
6699 rm -f conftest.err conftest.$ac_objext \
6700 conftest$ac_exeext conftest.$ac_ext
6701 LIBS=$ac_check_lib_save_LIBS
6703 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6704 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6705 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6706 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6709 LDFLAGS=$ac_save_LDFLAGS
6713 CFLAGS="$X_CFLAGS $CFLAGS"
6714 LDFLAGS="$X_PRE_LIBS -lX11 $X_LIBS $X_EXTRA_LIBS $LDFLAGS"
6717 # Checks for OpenGL.
6718 echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
6719 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6
6720 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723 ac_check_lib_save_LIBS=$LIBS
6724 LIBS="-lGL $LIBS"
6725 cat >conftest.$ac_ext <<_ACEOF
6726 /* confdefs.h. */
6727 _ACEOF
6728 cat confdefs.h >>conftest.$ac_ext
6729 cat >>conftest.$ac_ext <<_ACEOF
6730 /* end confdefs.h. */
6732 /* Override any gcc2 internal prototype to avoid an error. */
6733 #ifdef __cplusplus
6734 extern "C"
6735 #endif
6736 /* We use char because int might match the return type of a gcc2
6737 builtin and then its argument prototype would still apply. */
6738 char glBegin ();
6740 main ()
6742 glBegin ();
6744 return 0;
6746 _ACEOF
6747 rm -f conftest.$ac_objext conftest$ac_exeext
6748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6749 (eval $ac_link) 2>conftest.er1
6750 ac_status=$?
6751 grep -v '^ *+' conftest.er1 >conftest.err
6752 rm -f conftest.er1
6753 cat conftest.err >&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } &&
6756 { ac_try='test -z "$ac_c_werror_flag"
6757 || test ! -s conftest.err'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759 (eval $ac_try) 2>&5
6760 ac_status=$?
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; } &&
6763 { ac_try='test -s conftest$ac_exeext'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 (eval $ac_try) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; }; then
6769 ac_cv_lib_GL_glBegin=yes
6770 else
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6774 ac_cv_lib_GL_glBegin=no
6776 rm -f conftest.err conftest.$ac_objext \
6777 conftest$ac_exeext conftest.$ac_ext
6778 LIBS=$ac_check_lib_save_LIBS
6780 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
6781 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6
6782 if test $ac_cv_lib_GL_glBegin = yes; then
6783 LDFLAGS="-lGL $LDFLAGS"
6784 else
6785 ogl="no"
6788 if test "x$ogl" = "xno"; then
6789 { echo "$as_me:$LINENO: Maybe libGL requires libpthread..." >&5
6790 echo "$as_me: Maybe libGL requires libpthread..." >&6;}
6791 unset ac_cv_lib_GL_glBegin
6792 echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
6793 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6
6794 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797 ac_check_lib_save_LIBS=$LIBS
6798 LIBS="-lGL -lpthread $LIBS"
6799 cat >conftest.$ac_ext <<_ACEOF
6800 /* confdefs.h. */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6806 /* Override any gcc2 internal prototype to avoid an error. */
6807 #ifdef __cplusplus
6808 extern "C"
6809 #endif
6810 /* We use char because int might match the return type of a gcc2
6811 builtin and then its argument prototype would still apply. */
6812 char glBegin ();
6814 main ()
6816 glBegin ();
6818 return 0;
6820 _ACEOF
6821 rm -f conftest.$ac_objext conftest$ac_exeext
6822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6823 (eval $ac_link) 2>conftest.er1
6824 ac_status=$?
6825 grep -v '^ *+' conftest.er1 >conftest.err
6826 rm -f conftest.er1
6827 cat conftest.err >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } &&
6830 { ac_try='test -z "$ac_c_werror_flag"
6831 || test ! -s conftest.err'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833 (eval $ac_try) 2>&5
6834 ac_status=$?
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; } &&
6837 { ac_try='test -s conftest$ac_exeext'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 (eval $ac_try) 2>&5
6840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; }; then
6843 ac_cv_lib_GL_glBegin=yes
6844 else
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6848 ac_cv_lib_GL_glBegin=no
6850 rm -f conftest.err conftest.$ac_objext \
6851 conftest$ac_exeext conftest.$ac_ext
6852 LIBS=$ac_check_lib_save_LIBS
6854 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
6855 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6
6856 if test $ac_cv_lib_GL_glBegin = yes; then
6857 LDFLAGS="-lpthread -lGL $LDFLAGS"
6858 else
6859 { { echo "$as_me:$LINENO: error: Cannot use -lGL" >&5
6860 echo "$as_me: error: Cannot use -lGL" >&2;}
6861 { (exit 1); exit 1; }; }
6867 # Checks for gtk.
6868 # Check whether --enable-gtktest or --disable-gtktest was given.
6869 if test "${enable_gtktest+set}" = set; then
6870 enableval="$enable_gtktest"
6872 else
6873 enable_gtktest=yes
6876 pkg_config_args=gtk+-2.0
6877 for module in . gthread
6879 case "$module" in
6880 gthread)
6881 pkg_config_args="$pkg_config_args gthread-2.0"
6883 esac
6884 done
6886 no_gtk=""
6888 # Extract the first word of "pkg-config", so it can be a program name with args.
6889 set dummy pkg-config; ac_word=$2
6890 echo "$as_me:$LINENO: checking for $ac_word" >&5
6891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6892 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895 case $PKG_CONFIG in
6896 [\\/]* | ?:[\\/]*)
6897 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6907 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 break 2
6911 done
6912 done
6914 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6916 esac
6918 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6920 if test -n "$PKG_CONFIG"; then
6921 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6922 echo "${ECHO_T}$PKG_CONFIG" >&6
6923 else
6924 echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6
6929 if test x$PKG_CONFIG != xno ; then
6930 if pkg-config --atleast-pkgconfig-version 0.7 ; then
6932 else
6933 echo *** pkg-config too old; version 0.7 or better required.
6934 no_gtk=yes
6935 PKG_CONFIG=no
6937 else
6938 no_gtk=yes
6941 min_gtk_version=2.2.0
6942 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
6943 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
6945 if test x$PKG_CONFIG != xno ; then
6946 ## don't try to run the test against uninstalled libtool libs
6947 if $PKG_CONFIG --uninstalled $pkg_config_args; then
6948 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
6949 enable_gtktest=no
6952 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
6954 else
6955 no_gtk=yes
6959 if test x"$no_gtk" = x ; then
6960 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
6961 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
6962 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6963 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6964 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6965 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6966 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6967 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6968 if test "x$enable_gtktest" = "xyes" ; then
6969 ac_save_CFLAGS="$CFLAGS"
6970 ac_save_LIBS="$LIBS"
6971 CFLAGS="$CFLAGS $GTK_CFLAGS"
6972 LIBS="$GTK_LIBS $LIBS"
6973 rm -f conf.gtktest
6974 if test "$cross_compiling" = yes; then
6975 echo $ac_n "cross compiling; assumed OK... $ac_c"
6976 else
6977 cat >conftest.$ac_ext <<_ACEOF
6978 /* confdefs.h. */
6979 _ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6984 #include <gtk/gtk.h>
6985 #include <stdio.h>
6986 #include <stdlib.h>
6989 main ()
6991 int major, minor, micro;
6992 char *tmp_version;
6994 system ("touch conf.gtktest");
6996 /* HP/UX 9 (%@#!) writes to sscanf strings */
6997 tmp_version = g_strdup("$min_gtk_version");
6998 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
6999 printf("%s, bad version string\n", "$min_gtk_version");
7000 exit(1);
7003 if ((gtk_major_version != $gtk_config_major_version) ||
7004 (gtk_minor_version != $gtk_config_minor_version) ||
7005 (gtk_micro_version != $gtk_config_micro_version))
7007 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7008 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7009 gtk_major_version, gtk_minor_version, gtk_micro_version);
7010 printf ("*** was found! If pkg-config was correct, then it is best\n");
7011 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7012 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7013 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7014 printf("*** required on your system.\n");
7015 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7016 printf("*** to point to the correct configuration files\n");
7018 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7019 (gtk_minor_version != GTK_MINOR_VERSION) ||
7020 (gtk_micro_version != GTK_MICRO_VERSION))
7022 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7023 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7024 printf("*** library (version %d.%d.%d)\n",
7025 gtk_major_version, gtk_minor_version, gtk_micro_version);
7027 else
7029 if ((gtk_major_version > major) ||
7030 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7031 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7033 return 0;
7035 else
7037 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7038 gtk_major_version, gtk_minor_version, gtk_micro_version);
7039 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7040 major, minor, micro);
7041 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7042 printf("***\n");
7043 printf("*** If you have already installed a sufficiently new version, this error\n");
7044 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7045 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7046 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
7047 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7048 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7049 printf("*** so that the correct libraries are found at run-time))\n");
7052 return 1;
7055 _ACEOF
7056 rm -f conftest$ac_exeext
7057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7058 (eval $ac_link) 2>&5
7059 ac_status=$?
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063 (eval $ac_try) 2>&5
7064 ac_status=$?
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); }; }; then
7068 else
7069 echo "$as_me: program exited with status $ac_status" >&5
7070 echo "$as_me: failed program was:" >&5
7071 sed 's/^/| /' conftest.$ac_ext >&5
7073 ( exit $ac_status )
7074 no_gtk=yes
7076 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7078 CFLAGS="$ac_save_CFLAGS"
7079 LIBS="$ac_save_LIBS"
7082 if test "x$no_gtk" = x ; then
7083 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
7084 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
7086 CFLAGS="$GTK_CFLAGS $CFLAGS"
7087 LDFLAGS="$GTK_LIBS $LDFLAGS"
7088 GTK_VERSION="$($PKG_CONFIG --modversion gtk+-2.0)"
7090 else
7091 echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6
7093 if test "$PKG_CONFIG" = "no" ; then
7094 echo "*** A new enough version of pkg-config was not found."
7095 echo "*** See http://pkgconfig.sourceforge.net"
7096 else
7097 if test -f conf.gtktest ; then
7099 else
7100 echo "*** Could not run GTK+ test program, checking why..."
7101 ac_save_CFLAGS="$CFLAGS"
7102 ac_save_LIBS="$LIBS"
7103 CFLAGS="$CFLAGS $GTK_CFLAGS"
7104 LIBS="$LIBS $GTK_LIBS"
7105 cat >conftest.$ac_ext <<_ACEOF
7106 /* confdefs.h. */
7107 _ACEOF
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h. */
7112 #include <gtk/gtk.h>
7113 #include <stdio.h>
7116 main ()
7118 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7120 return 0;
7122 _ACEOF
7123 rm -f conftest.$ac_objext conftest$ac_exeext
7124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7125 (eval $ac_link) 2>conftest.er1
7126 ac_status=$?
7127 grep -v '^ *+' conftest.er1 >conftest.err
7128 rm -f conftest.er1
7129 cat conftest.err >&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); } &&
7132 { ac_try='test -z "$ac_c_werror_flag"
7133 || test ! -s conftest.err'
7134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135 (eval $ac_try) 2>&5
7136 ac_status=$?
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; } &&
7139 { ac_try='test -s conftest$ac_exeext'
7140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141 (eval $ac_try) 2>&5
7142 ac_status=$?
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); }; }; then
7145 echo "*** The test program compiled, but did not run. This usually means"
7146 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
7147 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
7148 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7149 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7150 echo "*** is required on your system"
7151 echo "***"
7152 echo "*** If you have an old version installed, it is best to remove it, although"
7153 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7154 else
7155 echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.$ac_ext >&5
7158 echo "*** The test program failed to compile or link. See the file config.log for the"
7159 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
7161 rm -f conftest.err conftest.$ac_objext \
7162 conftest$ac_exeext conftest.$ac_ext
7163 CFLAGS="$ac_save_CFLAGS"
7164 LIBS="$ac_save_LIBS"
7167 GTK_CFLAGS=""
7168 GTK_LIBS=""
7169 exit 1
7173 rm -f conf.gtktest
7176 # Checks for GtkGLExt.
7178 succeeded=no
7180 if test -z "$PKG_CONFIG"; then
7181 # Extract the first word of "pkg-config", so it can be a program name with args.
7182 set dummy pkg-config; ac_word=$2
7183 echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7185 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188 case $PKG_CONFIG in
7189 [\\/]* | ?:[\\/]*)
7190 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7204 done
7205 done
7207 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7209 esac
7211 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7213 if test -n "$PKG_CONFIG"; then
7214 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7215 echo "${ECHO_T}$PKG_CONFIG" >&6
7216 else
7217 echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6
7223 if test "$PKG_CONFIG" = "no" ; then
7224 echo "*** The pkg-config script could not be found. Make sure it is"
7225 echo "*** in your path, or set the PKG_CONFIG environment variable"
7226 echo "*** to the full path to pkg-config."
7227 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7228 else
7229 PKG_CONFIG_MIN_VERSION=0.9.0
7230 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7231 echo "$as_me:$LINENO: checking for gtkglext-1.0 >= 0.7.0" >&5
7232 echo $ECHO_N "checking for gtkglext-1.0 >= 0.7.0... $ECHO_C" >&6
7234 if $PKG_CONFIG --exists "gtkglext-1.0 >= 0.7.0" ; then
7235 echo "$as_me:$LINENO: result: yes" >&5
7236 echo "${ECHO_T}yes" >&6
7237 succeeded=yes
7239 echo "$as_me:$LINENO: checking GTKGLEXT_CFLAGS" >&5
7240 echo $ECHO_N "checking GTKGLEXT_CFLAGS... $ECHO_C" >&6
7241 GTKGLEXT_CFLAGS=`$PKG_CONFIG --cflags "gtkglext-1.0 >= 0.7.0"`
7242 echo "$as_me:$LINENO: result: $GTKGLEXT_CFLAGS" >&5
7243 echo "${ECHO_T}$GTKGLEXT_CFLAGS" >&6
7245 echo "$as_me:$LINENO: checking GTKGLEXT_LIBS" >&5
7246 echo $ECHO_N "checking GTKGLEXT_LIBS... $ECHO_C" >&6
7247 GTKGLEXT_LIBS=`$PKG_CONFIG --libs "gtkglext-1.0 >= 0.7.0"`
7248 echo "$as_me:$LINENO: result: $GTKGLEXT_LIBS" >&5
7249 echo "${ECHO_T}$GTKGLEXT_LIBS" >&6
7250 else
7251 GTKGLEXT_CFLAGS=""
7252 GTKGLEXT_LIBS=""
7253 ## If we have a custom action on failure, don't print errors, but
7254 ## do set a variable so people can do so.
7255 GTKGLEXT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkglext-1.0 >= 0.7.0"`
7256 echo $GTKGLEXT_PKG_ERRORS
7261 else
7262 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7263 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7267 if test $succeeded = yes; then
7269 else
7270 { { 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
7271 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;}
7272 { (exit 1); exit 1; }; }
7275 CFLAGS="$GTKGLEXT_CFLAGS $CFLAGS"
7276 LDFLAGS="$GTKGLEXT_LIBS $LDFLAGS"
7277 GTKGL_VERSION="$($PKG_CONFIG --modversion gtkglext-1.0)"
7279 # I18n.
7280 ALL_LINGUAS=$(echo po/*.po | sed 's|\.po||g' | sed 's|po/||g')
7283 MKINSTALLDIRS=
7284 if test -n "$ac_aux_dir"; then
7285 case "$ac_aux_dir" in
7286 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7287 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7288 esac
7290 if test -z "$MKINSTALLDIRS"; then
7291 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7296 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7297 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7298 # Check whether --enable-nls or --disable-nls was given.
7299 if test "${enable_nls+set}" = set; then
7300 enableval="$enable_nls"
7301 USE_NLS=$enableval
7302 else
7303 USE_NLS=yes
7305 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7306 echo "${ECHO_T}$USE_NLS" >&6
7313 # Prepare PATH_SEPARATOR.
7314 # The user is always right.
7315 if test "${PATH_SEPARATOR+set}" != set; then
7316 echo "#! /bin/sh" >conf$$.sh
7317 echo "exit 0" >>conf$$.sh
7318 chmod +x conf$$.sh
7319 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7320 PATH_SEPARATOR=';'
7321 else
7322 PATH_SEPARATOR=:
7324 rm -f conf$$.sh
7327 # Find out how to test for executable files. Don't use a zero-byte file,
7328 # as systems may use methods other than mode bits to determine executability.
7329 cat >conf$$.file <<_ASEOF
7330 #! /bin/sh
7331 exit 0
7332 _ASEOF
7333 chmod +x conf$$.file
7334 if test -x conf$$.file >/dev/null 2>&1; then
7335 ac_executable_p="test -x"
7336 else
7337 ac_executable_p="test -f"
7339 rm -f conf$$.file
7341 # Extract the first word of "msgfmt", so it can be a program name with args.
7342 set dummy msgfmt; ac_word=$2
7343 echo "$as_me:$LINENO: checking for $ac_word" >&5
7344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7345 if test "${ac_cv_path_MSGFMT+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 else
7348 case "$MSGFMT" in
7349 [\\/]* | ?:[\\/]*)
7350 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7353 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7354 for ac_dir in $PATH; do
7355 IFS="$ac_save_IFS"
7356 test -z "$ac_dir" && ac_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7359 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7360 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7361 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7362 break 2
7365 done
7366 done
7367 IFS="$ac_save_IFS"
7368 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7370 esac
7372 MSGFMT="$ac_cv_path_MSGFMT"
7373 if test "$MSGFMT" != ":"; then
7374 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7375 echo "${ECHO_T}$MSGFMT" >&6
7376 else
7377 echo "$as_me:$LINENO: result: no" >&5
7378 echo "${ECHO_T}no" >&6
7381 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7382 set dummy gmsgfmt; ac_word=$2
7383 echo "$as_me:$LINENO: checking for $ac_word" >&5
7384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7385 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388 case $GMSGFMT in
7389 [\\/]* | ?:[\\/]*)
7390 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 for as_dir in $PATH
7396 IFS=$as_save_IFS
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7400 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 break 2
7404 done
7405 done
7407 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7409 esac
7411 GMSGFMT=$ac_cv_path_GMSGFMT
7413 if test -n "$GMSGFMT"; then
7414 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7415 echo "${ECHO_T}$GMSGFMT" >&6
7416 else
7417 echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6
7423 # Prepare PATH_SEPARATOR.
7424 # The user is always right.
7425 if test "${PATH_SEPARATOR+set}" != set; then
7426 echo "#! /bin/sh" >conf$$.sh
7427 echo "exit 0" >>conf$$.sh
7428 chmod +x conf$$.sh
7429 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7430 PATH_SEPARATOR=';'
7431 else
7432 PATH_SEPARATOR=:
7434 rm -f conf$$.sh
7437 # Find out how to test for executable files. Don't use a zero-byte file,
7438 # as systems may use methods other than mode bits to determine executability.
7439 cat >conf$$.file <<_ASEOF
7440 #! /bin/sh
7441 exit 0
7442 _ASEOF
7443 chmod +x conf$$.file
7444 if test -x conf$$.file >/dev/null 2>&1; then
7445 ac_executable_p="test -x"
7446 else
7447 ac_executable_p="test -f"
7449 rm -f conf$$.file
7451 # Extract the first word of "xgettext", so it can be a program name with args.
7452 set dummy xgettext; 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_XGETTEXT+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 else
7458 case "$XGETTEXT" in
7459 [\\/]* | ?:[\\/]*)
7460 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7463 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7464 for ac_dir in $PATH; do
7465 IFS="$ac_save_IFS"
7466 test -z "$ac_dir" && ac_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7469 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7470 (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
7471 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7472 break 2
7475 done
7476 done
7477 IFS="$ac_save_IFS"
7478 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7480 esac
7482 XGETTEXT="$ac_cv_path_XGETTEXT"
7483 if test "$XGETTEXT" != ":"; then
7484 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7485 echo "${ECHO_T}$XGETTEXT" >&6
7486 else
7487 echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6
7491 rm -f messages.po
7494 # Prepare PATH_SEPARATOR.
7495 # The user is always right.
7496 if test "${PATH_SEPARATOR+set}" != set; then
7497 echo "#! /bin/sh" >conf$$.sh
7498 echo "exit 0" >>conf$$.sh
7499 chmod +x conf$$.sh
7500 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7501 PATH_SEPARATOR=';'
7502 else
7503 PATH_SEPARATOR=:
7505 rm -f conf$$.sh
7508 # Find out how to test for executable files. Don't use a zero-byte file,
7509 # as systems may use methods other than mode bits to determine executability.
7510 cat >conf$$.file <<_ASEOF
7511 #! /bin/sh
7512 exit 0
7513 _ASEOF
7514 chmod +x conf$$.file
7515 if test -x conf$$.file >/dev/null 2>&1; then
7516 ac_executable_p="test -x"
7517 else
7518 ac_executable_p="test -f"
7520 rm -f conf$$.file
7522 # Extract the first word of "msgmerge", so it can be a program name with args.
7523 set dummy msgmerge; ac_word=$2
7524 echo "$as_me:$LINENO: checking for $ac_word" >&5
7525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7526 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 else
7529 case "$MSGMERGE" in
7530 [\\/]* | ?:[\\/]*)
7531 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7534 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7535 for ac_dir in $PATH; do
7536 IFS="$ac_save_IFS"
7537 test -z "$ac_dir" && ac_dir=.
7538 for ac_exec_ext in '' $ac_executable_extensions; do
7539 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7540 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7541 ac_cv_path_MSGMERGE="$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_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7550 esac
7552 MSGMERGE="$ac_cv_path_MSGMERGE"
7553 if test "$MSGMERGE" != ":"; then
7554 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7555 echo "${ECHO_T}$MSGMERGE" >&6
7556 else
7557 echo "$as_me:$LINENO: result: no" >&5
7558 echo "${ECHO_T}no" >&6
7562 if test "$GMSGFMT" != ":"; then
7563 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7564 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7566 else
7567 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7568 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7569 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
7570 GMSGFMT=":"
7574 if test "$XGETTEXT" != ":"; then
7575 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7576 (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
7578 else
7579 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7580 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
7581 XGETTEXT=":"
7583 rm -f messages.po
7586 ac_config_commands="$ac_config_commands default-1"
7589 # Make sure we can run config.sub.
7590 $ac_config_sub sun4 >/dev/null 2>&1 ||
7591 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
7592 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
7593 { (exit 1); exit 1; }; }
7595 echo "$as_me:$LINENO: checking build system type" >&5
7596 echo $ECHO_N "checking build system type... $ECHO_C" >&6
7597 if test "${ac_cv_build+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600 ac_cv_build_alias=$build_alias
7601 test -z "$ac_cv_build_alias" &&
7602 ac_cv_build_alias=`$ac_config_guess`
7603 test -z "$ac_cv_build_alias" &&
7604 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7605 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7606 { (exit 1); exit 1; }; }
7607 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
7608 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
7609 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
7610 { (exit 1); exit 1; }; }
7613 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7614 echo "${ECHO_T}$ac_cv_build" >&6
7615 build=$ac_cv_build
7616 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7617 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7618 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7621 echo "$as_me:$LINENO: checking host system type" >&5
7622 echo $ECHO_N "checking host system type... $ECHO_C" >&6
7623 if test "${ac_cv_host+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7625 else
7626 ac_cv_host_alias=$host_alias
7627 test -z "$ac_cv_host_alias" &&
7628 ac_cv_host_alias=$ac_cv_build_alias
7629 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
7630 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7631 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7632 { (exit 1); exit 1; }; }
7635 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7636 echo "${ECHO_T}$ac_cv_host" >&6
7637 host=$ac_cv_host
7638 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7639 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7640 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7643 echo "$as_me:$LINENO: checking for library containing strerror" >&5
7644 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
7645 if test "${ac_cv_search_strerror+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 else
7648 ac_func_search_save_LIBS=$LIBS
7649 ac_cv_search_strerror=no
7650 cat >conftest.$ac_ext <<_ACEOF
7651 /* confdefs.h. */
7652 _ACEOF
7653 cat confdefs.h >>conftest.$ac_ext
7654 cat >>conftest.$ac_ext <<_ACEOF
7655 /* end confdefs.h. */
7657 /* Override any gcc2 internal prototype to avoid an error. */
7658 #ifdef __cplusplus
7659 extern "C"
7660 #endif
7661 /* We use char because int might match the return type of a gcc2
7662 builtin and then its argument prototype would still apply. */
7663 char strerror ();
7665 main ()
7667 strerror ();
7669 return 0;
7671 _ACEOF
7672 rm -f conftest.$ac_objext conftest$ac_exeext
7673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7674 (eval $ac_link) 2>conftest.er1
7675 ac_status=$?
7676 grep -v '^ *+' conftest.er1 >conftest.err
7677 rm -f conftest.er1
7678 cat conftest.err >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); } &&
7681 { ac_try='test -z "$ac_c_werror_flag"
7682 || test ! -s conftest.err'
7683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684 (eval $ac_try) 2>&5
7685 ac_status=$?
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; } &&
7688 { ac_try='test -s conftest$ac_exeext'
7689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690 (eval $ac_try) 2>&5
7691 ac_status=$?
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; }; then
7694 ac_cv_search_strerror="none required"
7695 else
7696 echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7700 rm -f conftest.err conftest.$ac_objext \
7701 conftest$ac_exeext conftest.$ac_ext
7702 if test "$ac_cv_search_strerror" = no; then
7703 for ac_lib in cposix; do
7704 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7705 cat >conftest.$ac_ext <<_ACEOF
7706 /* confdefs.h. */
7707 _ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7712 /* Override any gcc2 internal prototype to avoid an error. */
7713 #ifdef __cplusplus
7714 extern "C"
7715 #endif
7716 /* We use char because int might match the return type of a gcc2
7717 builtin and then its argument prototype would still apply. */
7718 char strerror ();
7720 main ()
7722 strerror ();
7724 return 0;
7726 _ACEOF
7727 rm -f conftest.$ac_objext conftest$ac_exeext
7728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7729 (eval $ac_link) 2>conftest.er1
7730 ac_status=$?
7731 grep -v '^ *+' conftest.er1 >conftest.err
7732 rm -f conftest.er1
7733 cat conftest.err >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } &&
7736 { ac_try='test -z "$ac_c_werror_flag"
7737 || test ! -s conftest.err'
7738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739 (eval $ac_try) 2>&5
7740 ac_status=$?
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; } &&
7743 { ac_try='test -s conftest$ac_exeext'
7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7745 (eval $ac_try) 2>&5
7746 ac_status=$?
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; }; then
7749 ac_cv_search_strerror="-l$ac_lib"
7750 break
7751 else
7752 echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7756 rm -f conftest.err conftest.$ac_objext \
7757 conftest$ac_exeext conftest.$ac_ext
7758 done
7760 LIBS=$ac_func_search_save_LIBS
7762 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
7763 echo "${ECHO_T}$ac_cv_search_strerror" >&6
7764 if test "$ac_cv_search_strerror" != no; then
7765 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
7769 echo "$as_me:$LINENO: checking for egrep" >&5
7770 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7771 if test "${ac_cv_prog_egrep+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7775 then ac_cv_prog_egrep='grep -E'
7776 else ac_cv_prog_egrep='egrep'
7779 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7780 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7781 EGREP=$ac_cv_prog_egrep
7784 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7785 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7786 if test "${ac_cv_header_stdc+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7788 else
7789 cat >conftest.$ac_ext <<_ACEOF
7790 /* confdefs.h. */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7795 #include <stdlib.h>
7796 #include <stdarg.h>
7797 #include <string.h>
7798 #include <float.h>
7801 main ()
7805 return 0;
7807 _ACEOF
7808 rm -f conftest.$ac_objext
7809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7810 (eval $ac_compile) 2>conftest.er1
7811 ac_status=$?
7812 grep -v '^ *+' conftest.er1 >conftest.err
7813 rm -f conftest.er1
7814 cat conftest.err >&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } &&
7817 { ac_try='test -z "$ac_c_werror_flag"
7818 || test ! -s conftest.err'
7819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820 (eval $ac_try) 2>&5
7821 ac_status=$?
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); }; } &&
7824 { ac_try='test -s conftest.$ac_objext'
7825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826 (eval $ac_try) 2>&5
7827 ac_status=$?
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; }; then
7830 ac_cv_header_stdc=yes
7831 else
7832 echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7835 ac_cv_header_stdc=no
7837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7839 if test $ac_cv_header_stdc = yes; then
7840 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7841 cat >conftest.$ac_ext <<_ACEOF
7842 /* confdefs.h. */
7843 _ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7847 #include <string.h>
7849 _ACEOF
7850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7851 $EGREP "memchr" >/dev/null 2>&1; then
7853 else
7854 ac_cv_header_stdc=no
7856 rm -f conftest*
7860 if test $ac_cv_header_stdc = yes; then
7861 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7862 cat >conftest.$ac_ext <<_ACEOF
7863 /* confdefs.h. */
7864 _ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7868 #include <stdlib.h>
7870 _ACEOF
7871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7872 $EGREP "free" >/dev/null 2>&1; then
7874 else
7875 ac_cv_header_stdc=no
7877 rm -f conftest*
7881 if test $ac_cv_header_stdc = yes; then
7882 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7883 if test "$cross_compiling" = yes; then
7885 else
7886 cat >conftest.$ac_ext <<_ACEOF
7887 /* confdefs.h. */
7888 _ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h. */
7892 #include <ctype.h>
7893 #if ((' ' & 0x0FF) == 0x020)
7894 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7895 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7896 #else
7897 # define ISLOWER(c) \
7898 (('a' <= (c) && (c) <= 'i') \
7899 || ('j' <= (c) && (c) <= 'r') \
7900 || ('s' <= (c) && (c) <= 'z'))
7901 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7902 #endif
7904 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7906 main ()
7908 int i;
7909 for (i = 0; i < 256; i++)
7910 if (XOR (islower (i), ISLOWER (i))
7911 || toupper (i) != TOUPPER (i))
7912 exit(2);
7913 exit (0);
7915 _ACEOF
7916 rm -f conftest$ac_exeext
7917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7918 (eval $ac_link) 2>&5
7919 ac_status=$?
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923 (eval $ac_try) 2>&5
7924 ac_status=$?
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); }; }; then
7928 else
7929 echo "$as_me: program exited with status $ac_status" >&5
7930 echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7933 ( exit $ac_status )
7934 ac_cv_header_stdc=no
7936 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7940 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7941 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7942 if test $ac_cv_header_stdc = yes; then
7944 cat >>confdefs.h <<\_ACEOF
7945 #define STDC_HEADERS 1
7946 _ACEOF
7950 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7951 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7952 if test "${ac_cv_c_const+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 else
7955 cat >conftest.$ac_ext <<_ACEOF
7956 /* confdefs.h. */
7957 _ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7963 main ()
7965 /* FIXME: Include the comments suggested by Paul. */
7966 #ifndef __cplusplus
7967 /* Ultrix mips cc rejects this. */
7968 typedef int charset[2];
7969 const charset x;
7970 /* SunOS 4.1.1 cc rejects this. */
7971 char const *const *ccp;
7972 char **p;
7973 /* NEC SVR4.0.2 mips cc rejects this. */
7974 struct point {int x, y;};
7975 static struct point const zero = {0,0};
7976 /* AIX XL C 1.02.0.0 rejects this.
7977 It does not let you subtract one const X* pointer from another in
7978 an arm of an if-expression whose if-part is not a constant
7979 expression */
7980 const char *g = "string";
7981 ccp = &g + (g ? g-g : 0);
7982 /* HPUX 7.0 cc rejects these. */
7983 ++ccp;
7984 p = (char**) ccp;
7985 ccp = (char const *const *) p;
7986 { /* SCO 3.2v4 cc rejects this. */
7987 char *t;
7988 char const *s = 0 ? (char *) 0 : (char const *) 0;
7990 *t++ = 0;
7992 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7993 int x[] = {25, 17};
7994 const int *foo = &x[0];
7995 ++foo;
7997 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7998 typedef const int *iptr;
7999 iptr p = 0;
8000 ++p;
8002 { /* AIX XL C 1.02.0.0 rejects this saying
8003 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8004 struct s { int j; const int *ap[3]; };
8005 struct s *b; b->j = 5;
8007 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8008 const int foo = 10;
8010 #endif
8013 return 0;
8015 _ACEOF
8016 rm -f conftest.$ac_objext
8017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8018 (eval $ac_compile) 2>conftest.er1
8019 ac_status=$?
8020 grep -v '^ *+' conftest.er1 >conftest.err
8021 rm -f conftest.er1
8022 cat conftest.err >&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); } &&
8025 { ac_try='test -z "$ac_c_werror_flag"
8026 || test ! -s conftest.err'
8027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028 (eval $ac_try) 2>&5
8029 ac_status=$?
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); }; } &&
8032 { ac_try='test -s conftest.$ac_objext'
8033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8034 (eval $ac_try) 2>&5
8035 ac_status=$?
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); }; }; then
8038 ac_cv_c_const=yes
8039 else
8040 echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8043 ac_cv_c_const=no
8045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8047 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8048 echo "${ECHO_T}$ac_cv_c_const" >&6
8049 if test $ac_cv_c_const = no; then
8051 cat >>confdefs.h <<\_ACEOF
8052 #define const
8053 _ACEOF
8057 echo "$as_me:$LINENO: checking for inline" >&5
8058 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8059 if test "${ac_cv_c_inline+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 else
8062 ac_cv_c_inline=no
8063 for ac_kw in inline __inline__ __inline; do
8064 cat >conftest.$ac_ext <<_ACEOF
8065 /* confdefs.h. */
8066 _ACEOF
8067 cat confdefs.h >>conftest.$ac_ext
8068 cat >>conftest.$ac_ext <<_ACEOF
8069 /* end confdefs.h. */
8070 #ifndef __cplusplus
8071 typedef int foo_t;
8072 static $ac_kw foo_t static_foo () {return 0; }
8073 $ac_kw foo_t foo () {return 0; }
8074 #endif
8076 _ACEOF
8077 rm -f conftest.$ac_objext
8078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8079 (eval $ac_compile) 2>conftest.er1
8080 ac_status=$?
8081 grep -v '^ *+' conftest.er1 >conftest.err
8082 rm -f conftest.er1
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } &&
8086 { ac_try='test -z "$ac_c_werror_flag"
8087 || test ! -s conftest.err'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089 (eval $ac_try) 2>&5
8090 ac_status=$?
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; } &&
8093 { ac_try='test -s conftest.$ac_objext'
8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095 (eval $ac_try) 2>&5
8096 ac_status=$?
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); }; }; then
8099 ac_cv_c_inline=$ac_kw; break
8100 else
8101 echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8106 done
8109 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8110 echo "${ECHO_T}$ac_cv_c_inline" >&6
8113 case $ac_cv_c_inline in
8114 inline | yes) ;;
8116 case $ac_cv_c_inline in
8117 no) ac_val=;;
8118 *) ac_val=$ac_cv_c_inline;;
8119 esac
8120 cat >>confdefs.h <<_ACEOF
8121 #ifndef __cplusplus
8122 #define inline $ac_val
8123 #endif
8124 _ACEOF
8126 esac
8128 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8138 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8139 inttypes.h stdint.h unistd.h
8141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8142 echo "$as_me:$LINENO: checking for $ac_header" >&5
8143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 else
8147 cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h. */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 $ac_includes_default
8155 #include <$ac_header>
8156 _ACEOF
8157 rm -f conftest.$ac_objext
8158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8159 (eval $ac_compile) 2>conftest.er1
8160 ac_status=$?
8161 grep -v '^ *+' conftest.er1 >conftest.err
8162 rm -f conftest.er1
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } &&
8166 { ac_try='test -z "$ac_c_werror_flag"
8167 || test ! -s conftest.err'
8168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169 (eval $ac_try) 2>&5
8170 ac_status=$?
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; } &&
8173 { ac_try='test -s conftest.$ac_objext'
8174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175 (eval $ac_try) 2>&5
8176 ac_status=$?
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; }; then
8179 eval "$as_ac_Header=yes"
8180 else
8181 echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8184 eval "$as_ac_Header=no"
8186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8191 cat >>confdefs.h <<_ACEOF
8192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8193 _ACEOF
8197 done
8200 echo "$as_me:$LINENO: checking for off_t" >&5
8201 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8202 if test "${ac_cv_type_off_t+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8204 else
8205 cat >conftest.$ac_ext <<_ACEOF
8206 /* confdefs.h. */
8207 _ACEOF
8208 cat confdefs.h >>conftest.$ac_ext
8209 cat >>conftest.$ac_ext <<_ACEOF
8210 /* end confdefs.h. */
8211 $ac_includes_default
8213 main ()
8215 if ((off_t *) 0)
8216 return 0;
8217 if (sizeof (off_t))
8218 return 0;
8220 return 0;
8222 _ACEOF
8223 rm -f conftest.$ac_objext
8224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8225 (eval $ac_compile) 2>conftest.er1
8226 ac_status=$?
8227 grep -v '^ *+' conftest.er1 >conftest.err
8228 rm -f conftest.er1
8229 cat conftest.err >&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); } &&
8232 { ac_try='test -z "$ac_c_werror_flag"
8233 || test ! -s conftest.err'
8234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235 (eval $ac_try) 2>&5
8236 ac_status=$?
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; } &&
8239 { ac_try='test -s conftest.$ac_objext'
8240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241 (eval $ac_try) 2>&5
8242 ac_status=$?
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; }; then
8245 ac_cv_type_off_t=yes
8246 else
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8250 ac_cv_type_off_t=no
8252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8254 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8255 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8256 if test $ac_cv_type_off_t = yes; then
8258 else
8260 cat >>confdefs.h <<_ACEOF
8261 #define off_t long
8262 _ACEOF
8266 echo "$as_me:$LINENO: checking for size_t" >&5
8267 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8268 if test "${ac_cv_type_size_t+set}" = set; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8270 else
8271 cat >conftest.$ac_ext <<_ACEOF
8272 /* confdefs.h. */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8277 $ac_includes_default
8279 main ()
8281 if ((size_t *) 0)
8282 return 0;
8283 if (sizeof (size_t))
8284 return 0;
8286 return 0;
8288 _ACEOF
8289 rm -f conftest.$ac_objext
8290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8291 (eval $ac_compile) 2>conftest.er1
8292 ac_status=$?
8293 grep -v '^ *+' conftest.er1 >conftest.err
8294 rm -f conftest.er1
8295 cat conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
8298 { ac_try='test -z "$ac_c_werror_flag"
8299 || test ! -s conftest.err'
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301 (eval $ac_try) 2>&5
8302 ac_status=$?
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; } &&
8305 { ac_try='test -s conftest.$ac_objext'
8306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307 (eval $ac_try) 2>&5
8308 ac_status=$?
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; }; then
8311 ac_cv_type_size_t=yes
8312 else
8313 echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8316 ac_cv_type_size_t=no
8318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8320 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8321 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8322 if test $ac_cv_type_size_t = yes; then
8324 else
8326 cat >>confdefs.h <<_ACEOF
8327 #define size_t unsigned
8328 _ACEOF
8332 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8333 # for constant arguments. Useless!
8334 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8335 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8336 if test "${ac_cv_working_alloca_h+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
8338 else
8339 cat >conftest.$ac_ext <<_ACEOF
8340 /* confdefs.h. */
8341 _ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h. */
8345 #include <alloca.h>
8347 main ()
8349 char *p = (char *) alloca (2 * sizeof (int));
8351 return 0;
8353 _ACEOF
8354 rm -f conftest.$ac_objext conftest$ac_exeext
8355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8356 (eval $ac_link) 2>conftest.er1
8357 ac_status=$?
8358 grep -v '^ *+' conftest.er1 >conftest.err
8359 rm -f conftest.er1
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } &&
8363 { ac_try='test -z "$ac_c_werror_flag"
8364 || test ! -s conftest.err'
8365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366 (eval $ac_try) 2>&5
8367 ac_status=$?
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; } &&
8370 { ac_try='test -s conftest$ac_exeext'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372 (eval $ac_try) 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; }; then
8376 ac_cv_working_alloca_h=yes
8377 else
8378 echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8381 ac_cv_working_alloca_h=no
8383 rm -f conftest.err conftest.$ac_objext \
8384 conftest$ac_exeext conftest.$ac_ext
8386 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8387 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8388 if test $ac_cv_working_alloca_h = yes; then
8390 cat >>confdefs.h <<\_ACEOF
8391 #define HAVE_ALLOCA_H 1
8392 _ACEOF
8396 echo "$as_me:$LINENO: checking for alloca" >&5
8397 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8398 if test "${ac_cv_func_alloca_works+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 else
8401 cat >conftest.$ac_ext <<_ACEOF
8402 /* confdefs.h. */
8403 _ACEOF
8404 cat confdefs.h >>conftest.$ac_ext
8405 cat >>conftest.$ac_ext <<_ACEOF
8406 /* end confdefs.h. */
8407 #ifdef __GNUC__
8408 # define alloca __builtin_alloca
8409 #else
8410 # ifdef _MSC_VER
8411 # include <malloc.h>
8412 # define alloca _alloca
8413 # else
8414 # if HAVE_ALLOCA_H
8415 # include <alloca.h>
8416 # else
8417 # ifdef _AIX
8418 #pragma alloca
8419 # else
8420 # ifndef alloca /* predefined by HP cc +Olibcalls */
8421 char *alloca ();
8422 # endif
8423 # endif
8424 # endif
8425 # endif
8426 #endif
8429 main ()
8431 char *p = (char *) alloca (1);
8433 return 0;
8435 _ACEOF
8436 rm -f conftest.$ac_objext conftest$ac_exeext
8437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8438 (eval $ac_link) 2>conftest.er1
8439 ac_status=$?
8440 grep -v '^ *+' conftest.er1 >conftest.err
8441 rm -f conftest.er1
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } &&
8445 { ac_try='test -z "$ac_c_werror_flag"
8446 || test ! -s conftest.err'
8447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448 (eval $ac_try) 2>&5
8449 ac_status=$?
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; } &&
8452 { ac_try='test -s conftest$ac_exeext'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 (eval $ac_try) 2>&5
8455 ac_status=$?
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; }; then
8458 ac_cv_func_alloca_works=yes
8459 else
8460 echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8463 ac_cv_func_alloca_works=no
8465 rm -f conftest.err conftest.$ac_objext \
8466 conftest$ac_exeext conftest.$ac_ext
8468 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8469 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8471 if test $ac_cv_func_alloca_works = yes; then
8473 cat >>confdefs.h <<\_ACEOF
8474 #define HAVE_ALLOCA 1
8475 _ACEOF
8477 else
8478 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8479 # that cause trouble. Some versions do not even contain alloca or
8480 # contain a buggy version. If you still want to use their alloca,
8481 # use ar to extract alloca.o from them instead of compiling alloca.c.
8483 ALLOCA=alloca.$ac_objext
8485 cat >>confdefs.h <<\_ACEOF
8486 #define C_ALLOCA 1
8487 _ACEOF
8490 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8491 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8492 if test "${ac_cv_os_cray+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495 cat >conftest.$ac_ext <<_ACEOF
8496 /* confdefs.h. */
8497 _ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8501 #if defined(CRAY) && ! defined(CRAY2)
8502 webecray
8503 #else
8504 wenotbecray
8505 #endif
8507 _ACEOF
8508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8509 $EGREP "webecray" >/dev/null 2>&1; then
8510 ac_cv_os_cray=yes
8511 else
8512 ac_cv_os_cray=no
8514 rm -f conftest*
8517 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8518 echo "${ECHO_T}$ac_cv_os_cray" >&6
8519 if test $ac_cv_os_cray = yes; then
8520 for ac_func in _getb67 GETB67 getb67; do
8521 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8522 echo "$as_me:$LINENO: checking for $ac_func" >&5
8523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8524 if eval "test \"\${$as_ac_var+set}\" = set"; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8526 else
8527 cat >conftest.$ac_ext <<_ACEOF
8528 /* confdefs.h. */
8529 _ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8535 #define $ac_func innocuous_$ac_func
8537 /* System header to define __stub macros and hopefully few prototypes,
8538 which can conflict with char $ac_func (); below.
8539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8540 <limits.h> exists even on freestanding compilers. */
8542 #ifdef __STDC__
8543 # include <limits.h>
8544 #else
8545 # include <assert.h>
8546 #endif
8548 #undef $ac_func
8550 /* Override any gcc2 internal prototype to avoid an error. */
8551 #ifdef __cplusplus
8552 extern "C"
8554 #endif
8555 /* We use char because int might match the return type of a gcc2
8556 builtin and then its argument prototype would still apply. */
8557 char $ac_func ();
8558 /* The GNU C library defines this for functions which it implements
8559 to always fail with ENOSYS. Some functions are actually named
8560 something starting with __ and the normal name is an alias. */
8561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8562 choke me
8563 #else
8564 char (*f) () = $ac_func;
8565 #endif
8566 #ifdef __cplusplus
8568 #endif
8571 main ()
8573 return f != $ac_func;
8575 return 0;
8577 _ACEOF
8578 rm -f conftest.$ac_objext conftest$ac_exeext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8580 (eval $ac_link) 2>conftest.er1
8581 ac_status=$?
8582 grep -v '^ *+' conftest.er1 >conftest.err
8583 rm -f conftest.er1
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
8587 { ac_try='test -z "$ac_c_werror_flag"
8588 || test ! -s conftest.err'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590 (eval $ac_try) 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; } &&
8594 { ac_try='test -s conftest$ac_exeext'
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596 (eval $ac_try) 2>&5
8597 ac_status=$?
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; }; then
8600 eval "$as_ac_var=yes"
8601 else
8602 echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8605 eval "$as_ac_var=no"
8607 rm -f conftest.err conftest.$ac_objext \
8608 conftest$ac_exeext conftest.$ac_ext
8610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8612 if test `eval echo '${'$as_ac_var'}'` = yes; then
8614 cat >>confdefs.h <<_ACEOF
8615 #define CRAY_STACKSEG_END $ac_func
8616 _ACEOF
8618 break
8621 done
8624 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8625 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8626 if test "${ac_cv_c_stack_direction+set}" = set; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
8628 else
8629 if test "$cross_compiling" = yes; then
8630 ac_cv_c_stack_direction=0
8631 else
8632 cat >conftest.$ac_ext <<_ACEOF
8633 /* confdefs.h. */
8634 _ACEOF
8635 cat confdefs.h >>conftest.$ac_ext
8636 cat >>conftest.$ac_ext <<_ACEOF
8637 /* end confdefs.h. */
8639 find_stack_direction ()
8641 static char *addr = 0;
8642 auto char dummy;
8643 if (addr == 0)
8645 addr = &dummy;
8646 return find_stack_direction ();
8648 else
8649 return (&dummy > addr) ? 1 : -1;
8653 main ()
8655 exit (find_stack_direction () < 0);
8657 _ACEOF
8658 rm -f conftest$ac_exeext
8659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8660 (eval $ac_link) 2>&5
8661 ac_status=$?
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665 (eval $ac_try) 2>&5
8666 ac_status=$?
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8669 ac_cv_c_stack_direction=1
8670 else
8671 echo "$as_me: program exited with status $ac_status" >&5
8672 echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8675 ( exit $ac_status )
8676 ac_cv_c_stack_direction=-1
8678 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8681 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8682 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8684 cat >>confdefs.h <<_ACEOF
8685 #define STACK_DIRECTION $ac_cv_c_stack_direction
8686 _ACEOF
8693 for ac_header in stdlib.h unistd.h
8695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8697 echo "$as_me:$LINENO: checking for $ac_header" >&5
8698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8704 else
8705 # Is the header compilable?
8706 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8708 cat >conftest.$ac_ext <<_ACEOF
8709 /* confdefs.h. */
8710 _ACEOF
8711 cat confdefs.h >>conftest.$ac_ext
8712 cat >>conftest.$ac_ext <<_ACEOF
8713 /* end confdefs.h. */
8714 $ac_includes_default
8715 #include <$ac_header>
8716 _ACEOF
8717 rm -f conftest.$ac_objext
8718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8719 (eval $ac_compile) 2>conftest.er1
8720 ac_status=$?
8721 grep -v '^ *+' conftest.er1 >conftest.err
8722 rm -f conftest.er1
8723 cat conftest.err >&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); } &&
8726 { ac_try='test -z "$ac_c_werror_flag"
8727 || test ! -s conftest.err'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 (eval $ac_try) 2>&5
8730 ac_status=$?
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; } &&
8733 { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
8740 else
8741 echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.$ac_ext >&5
8744 ac_header_compiler=no
8746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8748 echo "${ECHO_T}$ac_header_compiler" >&6
8750 # Is the header present?
8751 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8753 cat >conftest.$ac_ext <<_ACEOF
8754 /* confdefs.h. */
8755 _ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8759 #include <$ac_header>
8760 _ACEOF
8761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8763 ac_status=$?
8764 grep -v '^ *+' conftest.er1 >conftest.err
8765 rm -f conftest.er1
8766 cat conftest.err >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } >/dev/null; then
8769 if test -s conftest.err; then
8770 ac_cpp_err=$ac_c_preproc_warn_flag
8771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8772 else
8773 ac_cpp_err=
8775 else
8776 ac_cpp_err=yes
8778 if test -z "$ac_cpp_err"; then
8779 ac_header_preproc=yes
8780 else
8781 echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8784 ac_header_preproc=no
8786 rm -f conftest.err conftest.$ac_ext
8787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8788 echo "${ECHO_T}$ac_header_preproc" >&6
8790 # So? What about this header?
8791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8792 yes:no: )
8793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8797 ac_header_preproc=yes
8799 no:yes:* )
8800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8803 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8807 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8813 cat <<\_ASBOX
8814 ## ------------------------------- ##
8815 ## Report this to guichaz@yahoo.fr ##
8816 ## ------------------------------- ##
8817 _ASBOX
8819 sed "s/^/$as_me: WARNING: /" >&2
8821 esac
8822 echo "$as_me:$LINENO: checking for $ac_header" >&5
8823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
8826 else
8827 eval "$as_ac_Header=\$ac_header_preproc"
8829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8834 cat >>confdefs.h <<_ACEOF
8835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8836 _ACEOF
8840 done
8843 for ac_func in getpagesize
8845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8846 echo "$as_me:$LINENO: checking for $ac_func" >&5
8847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8848 if eval "test \"\${$as_ac_var+set}\" = set"; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 else
8851 cat >conftest.$ac_ext <<_ACEOF
8852 /* confdefs.h. */
8853 _ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h. */
8857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8859 #define $ac_func innocuous_$ac_func
8861 /* System header to define __stub macros and hopefully few prototypes,
8862 which can conflict with char $ac_func (); below.
8863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8864 <limits.h> exists even on freestanding compilers. */
8866 #ifdef __STDC__
8867 # include <limits.h>
8868 #else
8869 # include <assert.h>
8870 #endif
8872 #undef $ac_func
8874 /* Override any gcc2 internal prototype to avoid an error. */
8875 #ifdef __cplusplus
8876 extern "C"
8878 #endif
8879 /* We use char because int might match the return type of a gcc2
8880 builtin and then its argument prototype would still apply. */
8881 char $ac_func ();
8882 /* The GNU C library defines this for functions which it implements
8883 to always fail with ENOSYS. Some functions are actually named
8884 something starting with __ and the normal name is an alias. */
8885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8886 choke me
8887 #else
8888 char (*f) () = $ac_func;
8889 #endif
8890 #ifdef __cplusplus
8892 #endif
8895 main ()
8897 return f != $ac_func;
8899 return 0;
8901 _ACEOF
8902 rm -f conftest.$ac_objext conftest$ac_exeext
8903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904 (eval $ac_link) 2>conftest.er1
8905 ac_status=$?
8906 grep -v '^ *+' conftest.er1 >conftest.err
8907 rm -f conftest.er1
8908 cat conftest.err >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); } &&
8911 { ac_try='test -z "$ac_c_werror_flag"
8912 || test ! -s conftest.err'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 (eval $ac_try) 2>&5
8915 ac_status=$?
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; } &&
8918 { ac_try='test -s conftest$ac_exeext'
8919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920 (eval $ac_try) 2>&5
8921 ac_status=$?
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; }; then
8924 eval "$as_ac_var=yes"
8925 else
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8929 eval "$as_ac_var=no"
8931 rm -f conftest.err conftest.$ac_objext \
8932 conftest$ac_exeext conftest.$ac_ext
8934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8935 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8936 if test `eval echo '${'$as_ac_var'}'` = yes; then
8937 cat >>confdefs.h <<_ACEOF
8938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8939 _ACEOF
8942 done
8944 echo "$as_me:$LINENO: checking for working mmap" >&5
8945 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8946 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8948 else
8949 if test "$cross_compiling" = yes; then
8950 ac_cv_func_mmap_fixed_mapped=no
8951 else
8952 cat >conftest.$ac_ext <<_ACEOF
8953 /* confdefs.h. */
8954 _ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h. */
8958 $ac_includes_default
8959 /* malloc might have been renamed as rpl_malloc. */
8960 #undef malloc
8962 /* Thanks to Mike Haertel and Jim Avera for this test.
8963 Here is a matrix of mmap possibilities:
8964 mmap private not fixed
8965 mmap private fixed at somewhere currently unmapped
8966 mmap private fixed at somewhere already mapped
8967 mmap shared not fixed
8968 mmap shared fixed at somewhere currently unmapped
8969 mmap shared fixed at somewhere already mapped
8970 For private mappings, we should verify that changes cannot be read()
8971 back from the file, nor mmap's back from the file at a different
8972 address. (There have been systems where private was not correctly
8973 implemented like the infamous i386 svr4.0, and systems where the
8974 VM page cache was not coherent with the file system buffer cache
8975 like early versions of FreeBSD and possibly contemporary NetBSD.)
8976 For shared mappings, we should conversely verify that changes get
8977 propagated back to all the places they're supposed to be.
8979 Grep wants private fixed already mapped.
8980 The main things grep needs to know about mmap are:
8981 * does it exist and is it safe to write into the mmap'd area
8982 * how to use it (BSD variants) */
8984 #include <fcntl.h>
8985 #include <sys/mman.h>
8987 #if !STDC_HEADERS && !HAVE_STDLIB_H
8988 char *malloc ();
8989 #endif
8991 /* This mess was copied from the GNU getpagesize.h. */
8992 #if !HAVE_GETPAGESIZE
8993 /* Assume that all systems that can run configure have sys/param.h. */
8994 # if !HAVE_SYS_PARAM_H
8995 # define HAVE_SYS_PARAM_H 1
8996 # endif
8998 # ifdef _SC_PAGESIZE
8999 # define getpagesize() sysconf(_SC_PAGESIZE)
9000 # else /* no _SC_PAGESIZE */
9001 # if HAVE_SYS_PARAM_H
9002 # include <sys/param.h>
9003 # ifdef EXEC_PAGESIZE
9004 # define getpagesize() EXEC_PAGESIZE
9005 # else /* no EXEC_PAGESIZE */
9006 # ifdef NBPG
9007 # define getpagesize() NBPG * CLSIZE
9008 # ifndef CLSIZE
9009 # define CLSIZE 1
9010 # endif /* no CLSIZE */
9011 # else /* no NBPG */
9012 # ifdef NBPC
9013 # define getpagesize() NBPC
9014 # else /* no NBPC */
9015 # ifdef PAGESIZE
9016 # define getpagesize() PAGESIZE
9017 # endif /* PAGESIZE */
9018 # endif /* no NBPC */
9019 # endif /* no NBPG */
9020 # endif /* no EXEC_PAGESIZE */
9021 # else /* no HAVE_SYS_PARAM_H */
9022 # define getpagesize() 8192 /* punt totally */
9023 # endif /* no HAVE_SYS_PARAM_H */
9024 # endif /* no _SC_PAGESIZE */
9026 #endif /* no HAVE_GETPAGESIZE */
9029 main ()
9031 char *data, *data2, *data3;
9032 int i, pagesize;
9033 int fd;
9035 pagesize = getpagesize ();
9037 /* First, make a file with some known garbage in it. */
9038 data = (char *) malloc (pagesize);
9039 if (!data)
9040 exit (1);
9041 for (i = 0; i < pagesize; ++i)
9042 *(data + i) = rand ();
9043 umask (0);
9044 fd = creat ("conftest.mmap", 0600);
9045 if (fd < 0)
9046 exit (1);
9047 if (write (fd, data, pagesize) != pagesize)
9048 exit (1);
9049 close (fd);
9051 /* Next, try to mmap the file at a fixed address which already has
9052 something else allocated at it. If we can, also make sure that
9053 we see the same garbage. */
9054 fd = open ("conftest.mmap", O_RDWR);
9055 if (fd < 0)
9056 exit (1);
9057 data2 = (char *) malloc (2 * pagesize);
9058 if (!data2)
9059 exit (1);
9060 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9061 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9062 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9063 exit (1);
9064 for (i = 0; i < pagesize; ++i)
9065 if (*(data + i) != *(data2 + i))
9066 exit (1);
9068 /* Finally, make sure that changes to the mapped area do not
9069 percolate back to the file as seen by read(). (This is a bug on
9070 some variants of i386 svr4.0.) */
9071 for (i = 0; i < pagesize; ++i)
9072 *(data2 + i) = *(data2 + i) + 1;
9073 data3 = (char *) malloc (pagesize);
9074 if (!data3)
9075 exit (1);
9076 if (read (fd, data3, pagesize) != pagesize)
9077 exit (1);
9078 for (i = 0; i < pagesize; ++i)
9079 if (*(data + i) != *(data3 + i))
9080 exit (1);
9081 close (fd);
9082 exit (0);
9084 _ACEOF
9085 rm -f conftest$ac_exeext
9086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9087 (eval $ac_link) 2>&5
9088 ac_status=$?
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 (eval $ac_try) 2>&5
9093 ac_status=$?
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; }; then
9096 ac_cv_func_mmap_fixed_mapped=yes
9097 else
9098 echo "$as_me: program exited with status $ac_status" >&5
9099 echo "$as_me: failed program was:" >&5
9100 sed 's/^/| /' conftest.$ac_ext >&5
9102 ( exit $ac_status )
9103 ac_cv_func_mmap_fixed_mapped=no
9105 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9108 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9109 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9110 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9112 cat >>confdefs.h <<\_ACEOF
9113 #define HAVE_MMAP 1
9114 _ACEOF
9117 rm -f conftest.mmap
9120 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9121 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
9122 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9124 else
9125 cat >conftest.$ac_ext <<_ACEOF
9126 /* confdefs.h. */
9127 _ACEOF
9128 cat confdefs.h >>conftest.$ac_ext
9129 cat >>conftest.$ac_ext <<_ACEOF
9130 /* end confdefs.h. */
9132 #include <features.h>
9133 #ifdef __GNU_LIBRARY__
9134 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9135 Lucky GNU user
9136 #endif
9137 #endif
9139 _ACEOF
9140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9141 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9142 ac_cv_gnu_library_2_1=yes
9143 else
9144 ac_cv_gnu_library_2_1=no
9146 rm -f conftest*
9151 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9152 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
9154 GLIBC21="$ac_cv_gnu_library_2_1"
9159 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9160 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
9161 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 else
9165 if test "$cross_compiling" = yes; then
9167 # Guess based on the CPU.
9168 case "$host_cpu" in
9169 alpha* | i3456786 | m68k | s390*)
9170 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9172 gt_cv_int_divbyzero_sigfpe="guessing no";;
9173 esac
9175 else
9176 cat >conftest.$ac_ext <<_ACEOF
9177 /* confdefs.h. */
9178 _ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h. */
9183 #include <stdlib.h>
9184 #include <signal.h>
9186 static void
9187 #ifdef __cplusplus
9188 sigfpe_handler (int sig)
9189 #else
9190 sigfpe_handler (sig) int sig;
9191 #endif
9193 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9194 exit (sig != SIGFPE);
9197 int x = 1;
9198 int y = 0;
9199 int z;
9200 int nan;
9202 int main ()
9204 signal (SIGFPE, sigfpe_handler);
9205 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9206 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9207 signal (SIGTRAP, sigfpe_handler);
9208 #endif
9209 /* Linux/SPARC yields signal SIGILL. */
9210 #if defined (__sparc__) && defined (__linux__)
9211 signal (SIGILL, sigfpe_handler);
9212 #endif
9214 z = x / y;
9215 nan = y / y;
9216 exit (1);
9219 _ACEOF
9220 rm -f conftest$ac_exeext
9221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9222 (eval $ac_link) 2>&5
9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227 (eval $ac_try) 2>&5
9228 ac_status=$?
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
9231 gt_cv_int_divbyzero_sigfpe=yes
9232 else
9233 echo "$as_me: program exited with status $ac_status" >&5
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9237 ( exit $ac_status )
9238 gt_cv_int_divbyzero_sigfpe=no
9240 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9244 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9245 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9246 case "$gt_cv_int_divbyzero_sigfpe" in
9247 *yes) value=1;;
9248 *) value=0;;
9249 esac
9251 cat >>confdefs.h <<_ACEOF
9252 #define INTDIV0_RAISES_SIGFPE $value
9253 _ACEOF
9257 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9258 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9259 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
9260 echo $ECHO_N "(cached) $ECHO_C" >&6
9261 else
9262 cat >conftest.$ac_ext <<_ACEOF
9263 /* confdefs.h. */
9264 _ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h. */
9268 #include <sys/types.h>
9269 #include <inttypes.h>
9271 main ()
9273 uintmax_t i = (uintmax_t) -1;
9275 return 0;
9277 _ACEOF
9278 rm -f conftest.$ac_objext
9279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9280 (eval $ac_compile) 2>conftest.er1
9281 ac_status=$?
9282 grep -v '^ *+' conftest.er1 >conftest.err
9283 rm -f conftest.er1
9284 cat conftest.err >&5
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); } &&
9287 { ac_try='test -z "$ac_c_werror_flag"
9288 || test ! -s conftest.err'
9289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290 (eval $ac_try) 2>&5
9291 ac_status=$?
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; } &&
9294 { ac_try='test -s conftest.$ac_objext'
9295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296 (eval $ac_try) 2>&5
9297 ac_status=$?
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; }; then
9300 jm_ac_cv_header_inttypes_h=yes
9301 else
9302 echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.$ac_ext >&5
9305 jm_ac_cv_header_inttypes_h=no
9307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9309 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
9310 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
9311 if test $jm_ac_cv_header_inttypes_h = yes; then
9313 cat >>confdefs.h <<_ACEOF
9314 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
9315 _ACEOF
9320 echo "$as_me:$LINENO: checking for stdint.h" >&5
9321 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
9322 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 else
9325 cat >conftest.$ac_ext <<_ACEOF
9326 /* confdefs.h. */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9331 #include <sys/types.h>
9332 #include <stdint.h>
9334 main ()
9336 uintmax_t i = (uintmax_t) -1;
9338 return 0;
9340 _ACEOF
9341 rm -f conftest.$ac_objext
9342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9343 (eval $ac_compile) 2>conftest.er1
9344 ac_status=$?
9345 grep -v '^ *+' conftest.er1 >conftest.err
9346 rm -f conftest.er1
9347 cat conftest.err >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } &&
9350 { ac_try='test -z "$ac_c_werror_flag"
9351 || test ! -s conftest.err'
9352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353 (eval $ac_try) 2>&5
9354 ac_status=$?
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; } &&
9357 { ac_try='test -s conftest.$ac_objext'
9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 (eval $ac_try) 2>&5
9360 ac_status=$?
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; }; then
9363 jm_ac_cv_header_stdint_h=yes
9364 else
9365 echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9368 jm_ac_cv_header_stdint_h=no
9370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9372 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
9373 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
9374 if test $jm_ac_cv_header_stdint_h = yes; then
9376 cat >>confdefs.h <<_ACEOF
9377 #define HAVE_STDINT_H_WITH_UINTMAX 1
9378 _ACEOF
9383 echo "$as_me:$LINENO: checking for unsigned long long" >&5
9384 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9385 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 else
9388 cat >conftest.$ac_ext <<_ACEOF
9389 /* confdefs.h. */
9390 _ACEOF
9391 cat confdefs.h >>conftest.$ac_ext
9392 cat >>conftest.$ac_ext <<_ACEOF
9393 /* end confdefs.h. */
9394 unsigned long long ull = 1; int i = 63;
9396 main ()
9398 unsigned long long ullmax = (unsigned long long) -1;
9399 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9401 return 0;
9403 _ACEOF
9404 rm -f conftest.$ac_objext conftest$ac_exeext
9405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9406 (eval $ac_link) 2>conftest.er1
9407 ac_status=$?
9408 grep -v '^ *+' conftest.er1 >conftest.err
9409 rm -f conftest.er1
9410 cat conftest.err >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } &&
9413 { ac_try='test -z "$ac_c_werror_flag"
9414 || test ! -s conftest.err'
9415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9416 (eval $ac_try) 2>&5
9417 ac_status=$?
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); }; } &&
9420 { ac_try='test -s conftest$ac_exeext'
9421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422 (eval $ac_try) 2>&5
9423 ac_status=$?
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; }; then
9426 ac_cv_type_unsigned_long_long=yes
9427 else
9428 echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9431 ac_cv_type_unsigned_long_long=no
9433 rm -f conftest.err conftest.$ac_objext \
9434 conftest$ac_exeext conftest.$ac_ext
9436 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9437 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9438 if test $ac_cv_type_unsigned_long_long = yes; then
9440 cat >>confdefs.h <<\_ACEOF
9441 #define HAVE_UNSIGNED_LONG_LONG 1
9442 _ACEOF
9449 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
9451 test $ac_cv_type_unsigned_long_long = yes \
9452 && ac_type='unsigned long long' \
9453 || ac_type='unsigned long'
9455 cat >>confdefs.h <<_ACEOF
9456 #define uintmax_t $ac_type
9457 _ACEOF
9459 else
9461 cat >>confdefs.h <<\_ACEOF
9462 #define HAVE_UINTMAX_T 1
9463 _ACEOF
9468 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9469 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9470 if test "${gt_cv_header_inttypes_h+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 else
9474 cat >conftest.$ac_ext <<_ACEOF
9475 /* confdefs.h. */
9476 _ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h. */
9480 #include <sys/types.h>
9481 #include <inttypes.h>
9483 main ()
9487 return 0;
9489 _ACEOF
9490 rm -f conftest.$ac_objext
9491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9492 (eval $ac_compile) 2>conftest.er1
9493 ac_status=$?
9494 grep -v '^ *+' conftest.er1 >conftest.err
9495 rm -f conftest.er1
9496 cat conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } &&
9499 { ac_try='test -z "$ac_c_werror_flag"
9500 || test ! -s conftest.err'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 (eval $ac_try) 2>&5
9503 ac_status=$?
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; } &&
9506 { ac_try='test -s conftest.$ac_objext'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508 (eval $ac_try) 2>&5
9509 ac_status=$?
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9512 gt_cv_header_inttypes_h=yes
9513 else
9514 echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9517 gt_cv_header_inttypes_h=no
9519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9522 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9523 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9524 if test $gt_cv_header_inttypes_h = yes; then
9526 cat >>confdefs.h <<_ACEOF
9527 #define HAVE_INTTYPES_H 1
9528 _ACEOF
9534 if test $gt_cv_header_inttypes_h = yes; then
9535 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9536 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9537 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9539 else
9541 cat >conftest.$ac_ext <<_ACEOF
9542 /* confdefs.h. */
9543 _ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h. */
9547 #include <inttypes.h>
9548 #ifdef PRId32
9549 char *p = PRId32;
9550 #endif
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_inttypes_pri_broken=no
9583 else
9584 echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9587 gt_cv_inttypes_pri_broken=yes
9589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9592 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9593 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9595 if test "$gt_cv_inttypes_pri_broken" = yes; then
9597 cat >>confdefs.h <<_ACEOF
9598 #define PRI_MACROS_BROKEN 1
9599 _ACEOF
9604 if test "X$prefix" = "XNONE"; then
9605 acl_final_prefix="$ac_default_prefix"
9606 else
9607 acl_final_prefix="$prefix"
9609 if test "X$exec_prefix" = "XNONE"; then
9610 acl_final_exec_prefix='${prefix}'
9611 else
9612 acl_final_exec_prefix="$exec_prefix"
9614 acl_save_prefix="$prefix"
9615 prefix="$acl_final_prefix"
9616 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9617 prefix="$acl_save_prefix"
9620 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9621 if test "${with_gnu_ld+set}" = set; then
9622 withval="$with_gnu_ld"
9623 test "$withval" = no || with_gnu_ld=yes
9624 else
9625 with_gnu_ld=no
9627 # Prepare PATH_SEPARATOR.
9628 # The user is always right.
9629 if test "${PATH_SEPARATOR+set}" != set; then
9630 echo "#! /bin/sh" >conf$$.sh
9631 echo "exit 0" >>conf$$.sh
9632 chmod +x conf$$.sh
9633 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9634 PATH_SEPARATOR=';'
9635 else
9636 PATH_SEPARATOR=:
9638 rm -f conf$$.sh
9640 ac_prog=ld
9641 if test "$GCC" = yes; then
9642 # Check if gcc -print-prog-name=ld gives a path.
9643 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9644 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9645 case $host in
9646 *-*-mingw*)
9647 # gcc leaves a trailing carriage return which upsets mingw
9648 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9650 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9651 esac
9652 case $ac_prog in
9653 # Accept absolute paths.
9654 [\\/]* | [A-Za-z]:[\\/]*)
9655 re_direlt='/[^/][^/]*/\.\./'
9656 # Canonicalize the path of ld
9657 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9658 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9659 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9660 done
9661 test -z "$LD" && LD="$ac_prog"
9664 # If it fails, then pretend we aren't using GCC.
9665 ac_prog=ld
9668 # If it is relative, then search for the first ld in PATH.
9669 with_gnu_ld=unknown
9671 esac
9672 elif test "$with_gnu_ld" = yes; then
9673 echo "$as_me:$LINENO: checking for GNU ld" >&5
9674 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9675 else
9676 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9677 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9679 if test "${acl_cv_path_LD+set}" = set; then
9680 echo $ECHO_N "(cached) $ECHO_C" >&6
9681 else
9682 if test -z "$LD"; then
9683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9684 for ac_dir in $PATH; do
9685 test -z "$ac_dir" && ac_dir=.
9686 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9687 acl_cv_path_LD="$ac_dir/$ac_prog"
9688 # Check to see if the program is GNU ld. I'd rather use --version,
9689 # but apparently some GNU ld's only accept -v.
9690 # Break only if it was the GNU/non-GNU ld that we prefer.
9691 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9692 test "$with_gnu_ld" != no && break
9693 else
9694 test "$with_gnu_ld" != yes && break
9697 done
9698 IFS="$ac_save_ifs"
9699 else
9700 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9704 LD="$acl_cv_path_LD"
9705 if test -n "$LD"; then
9706 echo "$as_me:$LINENO: result: $LD" >&5
9707 echo "${ECHO_T}$LD" >&6
9708 else
9709 echo "$as_me:$LINENO: result: no" >&5
9710 echo "${ECHO_T}no" >&6
9712 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9713 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9714 { (exit 1); exit 1; }; }
9715 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9716 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9717 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9718 echo $ECHO_N "(cached) $ECHO_C" >&6
9719 else
9720 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9721 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9722 acl_cv_prog_gnu_ld=yes
9723 else
9724 acl_cv_prog_gnu_ld=no
9727 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9728 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9729 with_gnu_ld=$acl_cv_prog_gnu_ld
9733 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9734 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9735 if test "${acl_cv_rpath+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 else
9739 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9740 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9741 . ./conftest.sh
9742 rm -f ./conftest.sh
9743 acl_cv_rpath=done
9746 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9747 echo "${ECHO_T}$acl_cv_rpath" >&6
9748 wl="$acl_cv_wl"
9749 libext="$acl_cv_libext"
9750 shlibext="$acl_cv_shlibext"
9751 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9752 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9753 hardcode_direct="$acl_cv_hardcode_direct"
9754 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9755 # Check whether --enable-rpath or --disable-rpath was given.
9756 if test "${enable_rpath+set}" = set; then
9757 enableval="$enable_rpath"
9759 else
9760 enable_rpath=yes
9769 use_additional=yes
9771 acl_save_prefix="$prefix"
9772 prefix="$acl_final_prefix"
9773 acl_save_exec_prefix="$exec_prefix"
9774 exec_prefix="$acl_final_exec_prefix"
9776 eval additional_includedir=\"$includedir\"
9777 eval additional_libdir=\"$libdir\"
9779 exec_prefix="$acl_save_exec_prefix"
9780 prefix="$acl_save_prefix"
9783 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9784 if test "${with_libiconv_prefix+set}" = set; then
9785 withval="$with_libiconv_prefix"
9787 if test "X$withval" = "Xno"; then
9788 use_additional=no
9789 else
9790 if test "X$withval" = "X"; then
9792 acl_save_prefix="$prefix"
9793 prefix="$acl_final_prefix"
9794 acl_save_exec_prefix="$exec_prefix"
9795 exec_prefix="$acl_final_exec_prefix"
9797 eval additional_includedir=\"$includedir\"
9798 eval additional_libdir=\"$libdir\"
9800 exec_prefix="$acl_save_exec_prefix"
9801 prefix="$acl_save_prefix"
9803 else
9804 additional_includedir="$withval/include"
9805 additional_libdir="$withval/lib"
9810 LIBICONV=
9811 LTLIBICONV=
9812 INCICONV=
9813 rpathdirs=
9814 ltrpathdirs=
9815 names_already_handled=
9816 names_next_round='iconv '
9817 while test -n "$names_next_round"; do
9818 names_this_round="$names_next_round"
9819 names_next_round=
9820 for name in $names_this_round; do
9821 already_handled=
9822 for n in $names_already_handled; do
9823 if test "$n" = "$name"; then
9824 already_handled=yes
9825 break
9827 done
9828 if test -z "$already_handled"; then
9829 names_already_handled="$names_already_handled $name"
9830 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9831 eval value=\"\$HAVE_LIB$uppername\"
9832 if test -n "$value"; then
9833 if test "$value" = yes; then
9834 eval value=\"\$LIB$uppername\"
9835 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9836 eval value=\"\$LTLIB$uppername\"
9837 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9838 else
9841 else
9842 found_dir=
9843 found_la=
9844 found_so=
9845 found_a=
9846 if test $use_additional = yes; then
9847 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9848 found_dir="$additional_libdir"
9849 found_so="$additional_libdir/lib$name.$shlibext"
9850 if test -f "$additional_libdir/lib$name.la"; then
9851 found_la="$additional_libdir/lib$name.la"
9853 else
9854 if test -f "$additional_libdir/lib$name.$libext"; then
9855 found_dir="$additional_libdir"
9856 found_a="$additional_libdir/lib$name.$libext"
9857 if test -f "$additional_libdir/lib$name.la"; then
9858 found_la="$additional_libdir/lib$name.la"
9863 if test "X$found_dir" = "X"; then
9864 for x in $LDFLAGS $LTLIBICONV; do
9866 acl_save_prefix="$prefix"
9867 prefix="$acl_final_prefix"
9868 acl_save_exec_prefix="$exec_prefix"
9869 exec_prefix="$acl_final_exec_prefix"
9870 eval x=\"$x\"
9871 exec_prefix="$acl_save_exec_prefix"
9872 prefix="$acl_save_prefix"
9874 case "$x" in
9875 -L*)
9876 dir=`echo "X$x" | sed -e 's/^X-L//'`
9877 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9878 found_dir="$dir"
9879 found_so="$dir/lib$name.$shlibext"
9880 if test -f "$dir/lib$name.la"; then
9881 found_la="$dir/lib$name.la"
9883 else
9884 if test -f "$dir/lib$name.$libext"; then
9885 found_dir="$dir"
9886 found_a="$dir/lib$name.$libext"
9887 if test -f "$dir/lib$name.la"; then
9888 found_la="$dir/lib$name.la"
9893 esac
9894 if test "X$found_dir" != "X"; then
9895 break
9897 done
9899 if test "X$found_dir" != "X"; then
9900 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9901 if test "X$found_so" != "X"; then
9902 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9903 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9904 else
9905 haveit=
9906 for x in $ltrpathdirs; do
9907 if test "X$x" = "X$found_dir"; then
9908 haveit=yes
9909 break
9911 done
9912 if test -z "$haveit"; then
9913 ltrpathdirs="$ltrpathdirs $found_dir"
9915 if test "$hardcode_direct" = yes; then
9916 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9917 else
9918 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9919 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9920 haveit=
9921 for x in $rpathdirs; do
9922 if test "X$x" = "X$found_dir"; then
9923 haveit=yes
9924 break
9926 done
9927 if test -z "$haveit"; then
9928 rpathdirs="$rpathdirs $found_dir"
9930 else
9931 haveit=
9932 for x in $LDFLAGS $LIBICONV; do
9934 acl_save_prefix="$prefix"
9935 prefix="$acl_final_prefix"
9936 acl_save_exec_prefix="$exec_prefix"
9937 exec_prefix="$acl_final_exec_prefix"
9938 eval x=\"$x\"
9939 exec_prefix="$acl_save_exec_prefix"
9940 prefix="$acl_save_prefix"
9942 if test "X$x" = "X-L$found_dir"; then
9943 haveit=yes
9944 break
9946 done
9947 if test -z "$haveit"; then
9948 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9950 if test "$hardcode_minus_L" != no; then
9951 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9952 else
9953 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9958 else
9959 if test "X$found_a" != "X"; then
9960 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9961 else
9962 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9965 additional_includedir=
9966 case "$found_dir" in
9967 */lib | */lib/)
9968 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9969 additional_includedir="$basedir/include"
9971 esac
9972 if test "X$additional_includedir" != "X"; then
9973 if test "X$additional_includedir" != "X/usr/include"; then
9974 haveit=
9975 if test "X$additional_includedir" = "X/usr/local/include"; then
9976 if test -n "$GCC"; then
9977 case $host_os in
9978 linux*) haveit=yes;;
9979 esac
9982 if test -z "$haveit"; then
9983 for x in $CPPFLAGS $INCICONV; do
9985 acl_save_prefix="$prefix"
9986 prefix="$acl_final_prefix"
9987 acl_save_exec_prefix="$exec_prefix"
9988 exec_prefix="$acl_final_exec_prefix"
9989 eval x=\"$x\"
9990 exec_prefix="$acl_save_exec_prefix"
9991 prefix="$acl_save_prefix"
9993 if test "X$x" = "X-I$additional_includedir"; then
9994 haveit=yes
9995 break
9997 done
9998 if test -z "$haveit"; then
9999 if test -d "$additional_includedir"; then
10000 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10006 if test -n "$found_la"; then
10007 save_libdir="$libdir"
10008 case "$found_la" in
10009 */* | *\\*) . "$found_la" ;;
10010 *) . "./$found_la" ;;
10011 esac
10012 libdir="$save_libdir"
10013 for dep in $dependency_libs; do
10014 case "$dep" in
10015 -L*)
10016 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10017 if test "X$additional_libdir" != "X/usr/lib"; then
10018 haveit=
10019 if test "X$additional_libdir" = "X/usr/local/lib"; then
10020 if test -n "$GCC"; then
10021 case $host_os in
10022 linux*) haveit=yes;;
10023 esac
10026 if test -z "$haveit"; then
10027 haveit=
10028 for x in $LDFLAGS $LIBICONV; do
10030 acl_save_prefix="$prefix"
10031 prefix="$acl_final_prefix"
10032 acl_save_exec_prefix="$exec_prefix"
10033 exec_prefix="$acl_final_exec_prefix"
10034 eval x=\"$x\"
10035 exec_prefix="$acl_save_exec_prefix"
10036 prefix="$acl_save_prefix"
10038 if test "X$x" = "X-L$additional_libdir"; then
10039 haveit=yes
10040 break
10042 done
10043 if test -z "$haveit"; then
10044 if test -d "$additional_libdir"; then
10045 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10048 haveit=
10049 for x in $LDFLAGS $LTLIBICONV; do
10051 acl_save_prefix="$prefix"
10052 prefix="$acl_final_prefix"
10053 acl_save_exec_prefix="$exec_prefix"
10054 exec_prefix="$acl_final_exec_prefix"
10055 eval x=\"$x\"
10056 exec_prefix="$acl_save_exec_prefix"
10057 prefix="$acl_save_prefix"
10059 if test "X$x" = "X-L$additional_libdir"; then
10060 haveit=yes
10061 break
10063 done
10064 if test -z "$haveit"; then
10065 if test -d "$additional_libdir"; then
10066 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10072 -R*)
10073 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10074 if test "$enable_rpath" != no; then
10075 haveit=
10076 for x in $rpathdirs; do
10077 if test "X$x" = "X$dir"; then
10078 haveit=yes
10079 break
10081 done
10082 if test -z "$haveit"; then
10083 rpathdirs="$rpathdirs $dir"
10085 haveit=
10086 for x in $ltrpathdirs; do
10087 if test "X$x" = "X$dir"; then
10088 haveit=yes
10089 break
10091 done
10092 if test -z "$haveit"; then
10093 ltrpathdirs="$ltrpathdirs $dir"
10097 -l*)
10098 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10100 *.la)
10101 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10104 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10105 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10107 esac
10108 done
10110 else
10111 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10112 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10116 done
10117 done
10118 if test "X$rpathdirs" != "X"; then
10119 if test -n "$hardcode_libdir_separator"; then
10120 alldirs=
10121 for found_dir in $rpathdirs; do
10122 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10123 done
10124 acl_save_libdir="$libdir"
10125 libdir="$alldirs"
10126 eval flag=\"$hardcode_libdir_flag_spec\"
10127 libdir="$acl_save_libdir"
10128 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10129 else
10130 for found_dir in $rpathdirs; do
10131 acl_save_libdir="$libdir"
10132 libdir="$found_dir"
10133 eval flag=\"$hardcode_libdir_flag_spec\"
10134 libdir="$acl_save_libdir"
10135 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10136 done
10139 if test "X$ltrpathdirs" != "X"; then
10140 for found_dir in $ltrpathdirs; do
10141 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10142 done
10158 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10159 stdlib.h string.h unistd.h sys/param.h
10161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10163 echo "$as_me:$LINENO: checking for $ac_header" >&5
10164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10170 else
10171 # Is the header compilable?
10172 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10174 cat >conftest.$ac_ext <<_ACEOF
10175 /* confdefs.h. */
10176 _ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10180 $ac_includes_default
10181 #include <$ac_header>
10182 _ACEOF
10183 rm -f conftest.$ac_objext
10184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10185 (eval $ac_compile) 2>conftest.er1
10186 ac_status=$?
10187 grep -v '^ *+' conftest.er1 >conftest.err
10188 rm -f conftest.er1
10189 cat conftest.err >&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } &&
10192 { ac_try='test -z "$ac_c_werror_flag"
10193 || test ! -s conftest.err'
10194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195 (eval $ac_try) 2>&5
10196 ac_status=$?
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; } &&
10199 { ac_try='test -s conftest.$ac_objext'
10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10202 ac_status=$?
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; }; then
10205 ac_header_compiler=yes
10206 else
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10210 ac_header_compiler=no
10212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10214 echo "${ECHO_T}$ac_header_compiler" >&6
10216 # Is the header present?
10217 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10219 cat >conftest.$ac_ext <<_ACEOF
10220 /* confdefs.h. */
10221 _ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h. */
10225 #include <$ac_header>
10226 _ACEOF
10227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10229 ac_status=$?
10230 grep -v '^ *+' conftest.er1 >conftest.err
10231 rm -f conftest.er1
10232 cat conftest.err >&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } >/dev/null; then
10235 if test -s conftest.err; then
10236 ac_cpp_err=$ac_c_preproc_warn_flag
10237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10238 else
10239 ac_cpp_err=
10241 else
10242 ac_cpp_err=yes
10244 if test -z "$ac_cpp_err"; then
10245 ac_header_preproc=yes
10246 else
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10250 ac_header_preproc=no
10252 rm -f conftest.err conftest.$ac_ext
10253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10254 echo "${ECHO_T}$ac_header_preproc" >&6
10256 # So? What about this header?
10257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10258 yes:no: )
10259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10263 ac_header_preproc=yes
10265 no:yes:* )
10266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10279 cat <<\_ASBOX
10280 ## ------------------------------- ##
10281 ## Report this to guichaz@yahoo.fr ##
10282 ## ------------------------------- ##
10283 _ASBOX
10285 sed "s/^/$as_me: WARNING: /" >&2
10287 esac
10288 echo "$as_me:$LINENO: checking for $ac_header" >&5
10289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10292 else
10293 eval "$as_ac_Header=\$ac_header_preproc"
10295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10300 cat >>confdefs.h <<_ACEOF
10301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10302 _ACEOF
10306 done
10330 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
10331 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
10332 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
10333 __fsetlocking
10335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10336 echo "$as_me:$LINENO: checking for $ac_func" >&5
10337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10338 if eval "test \"\${$as_ac_var+set}\" = set"; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 else
10341 cat >conftest.$ac_ext <<_ACEOF
10342 /* confdefs.h. */
10343 _ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10349 #define $ac_func innocuous_$ac_func
10351 /* System header to define __stub macros and hopefully few prototypes,
10352 which can conflict with char $ac_func (); below.
10353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10354 <limits.h> exists even on freestanding compilers. */
10356 #ifdef __STDC__
10357 # include <limits.h>
10358 #else
10359 # include <assert.h>
10360 #endif
10362 #undef $ac_func
10364 /* Override any gcc2 internal prototype to avoid an error. */
10365 #ifdef __cplusplus
10366 extern "C"
10368 #endif
10369 /* We use char because int might match the return type of a gcc2
10370 builtin and then its argument prototype would still apply. */
10371 char $ac_func ();
10372 /* The GNU C library defines this for functions which it implements
10373 to always fail with ENOSYS. Some functions are actually named
10374 something starting with __ and the normal name is an alias. */
10375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10376 choke me
10377 #else
10378 char (*f) () = $ac_func;
10379 #endif
10380 #ifdef __cplusplus
10382 #endif
10385 main ()
10387 return f != $ac_func;
10389 return 0;
10391 _ACEOF
10392 rm -f conftest.$ac_objext conftest$ac_exeext
10393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10394 (eval $ac_link) 2>conftest.er1
10395 ac_status=$?
10396 grep -v '^ *+' conftest.er1 >conftest.err
10397 rm -f conftest.er1
10398 cat conftest.err >&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } &&
10401 { ac_try='test -z "$ac_c_werror_flag"
10402 || test ! -s conftest.err'
10403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404 (eval $ac_try) 2>&5
10405 ac_status=$?
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; } &&
10408 { ac_try='test -s conftest$ac_exeext'
10409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410 (eval $ac_try) 2>&5
10411 ac_status=$?
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; }; then
10414 eval "$as_ac_var=yes"
10415 else
10416 echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10419 eval "$as_ac_var=no"
10421 rm -f conftest.err conftest.$ac_objext \
10422 conftest$ac_exeext conftest.$ac_ext
10424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10425 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10426 if test `eval echo '${'$as_ac_var'}'` = yes; then
10427 cat >>confdefs.h <<_ACEOF
10428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10429 _ACEOF
10432 done
10440 am_save_CPPFLAGS="$CPPFLAGS"
10442 for element in $INCICONV; do
10443 haveit=
10444 for x in $CPPFLAGS; do
10446 acl_save_prefix="$prefix"
10447 prefix="$acl_final_prefix"
10448 acl_save_exec_prefix="$exec_prefix"
10449 exec_prefix="$acl_final_exec_prefix"
10450 eval x=\"$x\"
10451 exec_prefix="$acl_save_exec_prefix"
10452 prefix="$acl_save_prefix"
10454 if test "X$x" = "X$element"; then
10455 haveit=yes
10456 break
10458 done
10459 if test -z "$haveit"; then
10460 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10462 done
10465 echo "$as_me:$LINENO: checking for iconv" >&5
10466 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10467 if test "${am_cv_func_iconv+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
10469 else
10471 am_cv_func_iconv="no, consider installing GNU libiconv"
10472 am_cv_lib_iconv=no
10473 cat >conftest.$ac_ext <<_ACEOF
10474 /* confdefs.h. */
10475 _ACEOF
10476 cat confdefs.h >>conftest.$ac_ext
10477 cat >>conftest.$ac_ext <<_ACEOF
10478 /* end confdefs.h. */
10479 #include <stdlib.h>
10480 #include <iconv.h>
10482 main ()
10484 iconv_t cd = iconv_open("","");
10485 iconv(cd,NULL,NULL,NULL,NULL);
10486 iconv_close(cd);
10488 return 0;
10490 _ACEOF
10491 rm -f conftest.$ac_objext conftest$ac_exeext
10492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10493 (eval $ac_link) 2>conftest.er1
10494 ac_status=$?
10495 grep -v '^ *+' conftest.er1 >conftest.err
10496 rm -f conftest.er1
10497 cat conftest.err >&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } &&
10500 { ac_try='test -z "$ac_c_werror_flag"
10501 || test ! -s conftest.err'
10502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10504 ac_status=$?
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; } &&
10507 { ac_try='test -s conftest$ac_exeext'
10508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10510 ac_status=$?
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }; }; then
10513 am_cv_func_iconv=yes
10514 else
10515 echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10519 rm -f conftest.err conftest.$ac_objext \
10520 conftest$ac_exeext conftest.$ac_ext
10521 if test "$am_cv_func_iconv" != yes; then
10522 am_save_LIBS="$LIBS"
10523 LIBS="$LIBS $LIBICONV"
10524 cat >conftest.$ac_ext <<_ACEOF
10525 /* confdefs.h. */
10526 _ACEOF
10527 cat confdefs.h >>conftest.$ac_ext
10528 cat >>conftest.$ac_ext <<_ACEOF
10529 /* end confdefs.h. */
10530 #include <stdlib.h>
10531 #include <iconv.h>
10533 main ()
10535 iconv_t cd = iconv_open("","");
10536 iconv(cd,NULL,NULL,NULL,NULL);
10537 iconv_close(cd);
10539 return 0;
10541 _ACEOF
10542 rm -f conftest.$ac_objext conftest$ac_exeext
10543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10544 (eval $ac_link) 2>conftest.er1
10545 ac_status=$?
10546 grep -v '^ *+' conftest.er1 >conftest.err
10547 rm -f conftest.er1
10548 cat conftest.err >&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } &&
10551 { ac_try='test -z "$ac_c_werror_flag"
10552 || test ! -s conftest.err'
10553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10554 (eval $ac_try) 2>&5
10555 ac_status=$?
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; } &&
10558 { ac_try='test -s conftest$ac_exeext'
10559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10560 (eval $ac_try) 2>&5
10561 ac_status=$?
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); }; }; then
10564 am_cv_lib_iconv=yes
10565 am_cv_func_iconv=yes
10566 else
10567 echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10571 rm -f conftest.err conftest.$ac_objext \
10572 conftest$ac_exeext conftest.$ac_ext
10573 LIBS="$am_save_LIBS"
10577 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10578 echo "${ECHO_T}$am_cv_func_iconv" >&6
10579 if test "$am_cv_func_iconv" = yes; then
10581 cat >>confdefs.h <<\_ACEOF
10582 #define HAVE_ICONV 1
10583 _ACEOF
10586 if test "$am_cv_lib_iconv" = yes; then
10587 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10588 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10589 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10590 echo "${ECHO_T}$LIBICONV" >&6
10591 else
10592 CPPFLAGS="$am_save_CPPFLAGS"
10593 LIBICONV=
10594 LTLIBICONV=
10599 if test "$am_cv_func_iconv" = yes; then
10600 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10601 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10602 if test "${am_cv_proto_iconv+set}" = set; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10604 else
10606 cat >conftest.$ac_ext <<_ACEOF
10607 /* confdefs.h. */
10608 _ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h. */
10613 #include <stdlib.h>
10614 #include <iconv.h>
10615 extern
10616 #ifdef __cplusplus
10618 #endif
10619 #if defined(__STDC__) || defined(__cplusplus)
10620 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10621 #else
10622 size_t iconv();
10623 #endif
10626 main ()
10630 return 0;
10632 _ACEOF
10633 rm -f conftest.$ac_objext
10634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10635 (eval $ac_compile) 2>conftest.er1
10636 ac_status=$?
10637 grep -v '^ *+' conftest.er1 >conftest.err
10638 rm -f conftest.er1
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } &&
10642 { ac_try='test -z "$ac_c_werror_flag"
10643 || test ! -s conftest.err'
10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10646 ac_status=$?
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; } &&
10649 { ac_try='test -s conftest.$ac_objext'
10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651 (eval $ac_try) 2>&5
10652 ac_status=$?
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
10655 am_cv_proto_iconv_arg1=""
10656 else
10657 echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10660 am_cv_proto_iconv_arg1="const"
10662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10663 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);"
10666 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10667 echo "$as_me:$LINENO: result: ${ac_t:-
10668 }$am_cv_proto_iconv" >&5
10669 echo "${ECHO_T}${ac_t:-
10670 }$am_cv_proto_iconv" >&6
10672 cat >>confdefs.h <<_ACEOF
10673 #define ICONV_CONST $am_cv_proto_iconv_arg1
10674 _ACEOF
10679 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10680 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
10681 if test "${am_cv_langinfo_codeset+set}" = set; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10683 else
10684 cat >conftest.$ac_ext <<_ACEOF
10685 /* confdefs.h. */
10686 _ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690 #include <langinfo.h>
10692 main ()
10694 char* cs = nl_langinfo(CODESET);
10696 return 0;
10698 _ACEOF
10699 rm -f conftest.$ac_objext conftest$ac_exeext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10701 (eval $ac_link) 2>conftest.er1
10702 ac_status=$?
10703 grep -v '^ *+' conftest.er1 >conftest.err
10704 rm -f conftest.er1
10705 cat conftest.err >&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } &&
10708 { ac_try='test -z "$ac_c_werror_flag"
10709 || test ! -s conftest.err'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10712 ac_status=$?
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; } &&
10715 { ac_try='test -s conftest$ac_exeext'
10716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717 (eval $ac_try) 2>&5
10718 ac_status=$?
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; }; then
10721 am_cv_langinfo_codeset=yes
10722 else
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10726 am_cv_langinfo_codeset=no
10728 rm -f conftest.err conftest.$ac_objext \
10729 conftest$ac_exeext conftest.$ac_ext
10732 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10733 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
10734 if test $am_cv_langinfo_codeset = yes; then
10736 cat >>confdefs.h <<\_ACEOF
10737 #define HAVE_LANGINFO_CODESET 1
10738 _ACEOF
10742 if test $ac_cv_header_locale_h = yes; then
10744 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10745 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10746 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10748 else
10749 cat >conftest.$ac_ext <<_ACEOF
10750 /* confdefs.h. */
10751 _ACEOF
10752 cat confdefs.h >>conftest.$ac_ext
10753 cat >>conftest.$ac_ext <<_ACEOF
10754 /* end confdefs.h. */
10755 #include <locale.h>
10757 main ()
10759 return LC_MESSAGES
10761 return 0;
10763 _ACEOF
10764 rm -f conftest.$ac_objext conftest$ac_exeext
10765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10766 (eval $ac_link) 2>conftest.er1
10767 ac_status=$?
10768 grep -v '^ *+' conftest.er1 >conftest.err
10769 rm -f conftest.er1
10770 cat conftest.err >&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } &&
10773 { ac_try='test -z "$ac_c_werror_flag"
10774 || test ! -s conftest.err'
10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776 (eval $ac_try) 2>&5
10777 ac_status=$?
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; } &&
10780 { ac_try='test -s conftest$ac_exeext'
10781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10783 ac_status=$?
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; }; then
10786 am_cv_val_LC_MESSAGES=yes
10787 else
10788 echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10791 am_cv_val_LC_MESSAGES=no
10793 rm -f conftest.err conftest.$ac_objext \
10794 conftest$ac_exeext conftest.$ac_ext
10796 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10797 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10798 if test $am_cv_val_LC_MESSAGES = yes; then
10800 cat >>confdefs.h <<\_ACEOF
10801 #define HAVE_LC_MESSAGES 1
10802 _ACEOF
10808 for ac_prog in bison
10810 # Extract the first word of "$ac_prog", so it can be a program name with args.
10811 set dummy $ac_prog; ac_word=$2
10812 echo "$as_me:$LINENO: checking for $ac_word" >&5
10813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10814 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 else
10817 if test -n "$INTLBISON"; then
10818 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10819 else
10820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10821 for as_dir in $PATH
10823 IFS=$as_save_IFS
10824 test -z "$as_dir" && as_dir=.
10825 for ac_exec_ext in '' $ac_executable_extensions; do
10826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10827 ac_cv_prog_INTLBISON="$ac_prog"
10828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10829 break 2
10831 done
10832 done
10836 INTLBISON=$ac_cv_prog_INTLBISON
10837 if test -n "$INTLBISON"; then
10838 echo "$as_me:$LINENO: result: $INTLBISON" >&5
10839 echo "${ECHO_T}$INTLBISON" >&6
10840 else
10841 echo "$as_me:$LINENO: result: no" >&5
10842 echo "${ECHO_T}no" >&6
10845 test -n "$INTLBISON" && break
10846 done
10848 if test -z "$INTLBISON"; then
10849 ac_verc_fail=yes
10850 else
10851 echo "$as_me:$LINENO: checking version of bison" >&5
10852 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
10853 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10854 case $ac_prog_version in
10855 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10856 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10857 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10858 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10859 esac
10860 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10861 echo "${ECHO_T}$ac_prog_version" >&6
10863 if test $ac_verc_fail = yes; then
10864 INTLBISON=:
10882 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10883 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10884 # Check whether --enable-nls or --disable-nls was given.
10885 if test "${enable_nls+set}" = set; then
10886 enableval="$enable_nls"
10887 USE_NLS=$enableval
10888 else
10889 USE_NLS=yes
10891 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10892 echo "${ECHO_T}$USE_NLS" >&6
10897 BUILD_INCLUDED_LIBINTL=no
10898 USE_INCLUDED_LIBINTL=no
10900 LIBINTL=
10901 LTLIBINTL=
10902 POSUB=
10904 if test "$USE_NLS" = "yes"; then
10905 gt_use_preinstalled_gnugettext=no
10907 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10908 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
10910 # Check whether --with-included-gettext or --without-included-gettext was given.
10911 if test "${with_included_gettext+set}" = set; then
10912 withval="$with_included_gettext"
10913 nls_cv_force_use_gnu_gettext=$withval
10914 else
10915 nls_cv_force_use_gnu_gettext=no
10917 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10918 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
10920 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10921 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10928 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10929 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
10930 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10931 echo $ECHO_N "(cached) $ECHO_C" >&6
10932 else
10933 cat >conftest.$ac_ext <<_ACEOF
10934 /* confdefs.h. */
10935 _ACEOF
10936 cat confdefs.h >>conftest.$ac_ext
10937 cat >>conftest.$ac_ext <<_ACEOF
10938 /* end confdefs.h. */
10939 #include <libintl.h>
10940 extern int _nl_msg_cat_cntr;
10941 extern int *_nl_domain_bindings;
10943 main ()
10945 bindtextdomain ("", "");
10946 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10948 return 0;
10950 _ACEOF
10951 rm -f conftest.$ac_objext conftest$ac_exeext
10952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10953 (eval $ac_link) 2>conftest.er1
10954 ac_status=$?
10955 grep -v '^ *+' conftest.er1 >conftest.err
10956 rm -f conftest.er1
10957 cat conftest.err >&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); } &&
10960 { ac_try='test -z "$ac_c_werror_flag"
10961 || test ! -s conftest.err'
10962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963 (eval $ac_try) 2>&5
10964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; } &&
10967 { ac_try='test -s conftest$ac_exeext'
10968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969 (eval $ac_try) 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }; }; then
10973 gt_cv_func_gnugettext1_libc=yes
10974 else
10975 echo "$as_me: failed program was:" >&5
10976 sed 's/^/| /' conftest.$ac_ext >&5
10978 gt_cv_func_gnugettext1_libc=no
10980 rm -f conftest.err conftest.$ac_objext \
10981 conftest$ac_exeext conftest.$ac_ext
10983 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10984 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
10986 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10990 use_additional=yes
10992 acl_save_prefix="$prefix"
10993 prefix="$acl_final_prefix"
10994 acl_save_exec_prefix="$exec_prefix"
10995 exec_prefix="$acl_final_exec_prefix"
10997 eval additional_includedir=\"$includedir\"
10998 eval additional_libdir=\"$libdir\"
11000 exec_prefix="$acl_save_exec_prefix"
11001 prefix="$acl_save_prefix"
11004 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
11005 if test "${with_libintl_prefix+set}" = set; then
11006 withval="$with_libintl_prefix"
11008 if test "X$withval" = "Xno"; then
11009 use_additional=no
11010 else
11011 if test "X$withval" = "X"; then
11013 acl_save_prefix="$prefix"
11014 prefix="$acl_final_prefix"
11015 acl_save_exec_prefix="$exec_prefix"
11016 exec_prefix="$acl_final_exec_prefix"
11018 eval additional_includedir=\"$includedir\"
11019 eval additional_libdir=\"$libdir\"
11021 exec_prefix="$acl_save_exec_prefix"
11022 prefix="$acl_save_prefix"
11024 else
11025 additional_includedir="$withval/include"
11026 additional_libdir="$withval/lib"
11031 LIBINTL=
11032 LTLIBINTL=
11033 INCINTL=
11034 rpathdirs=
11035 ltrpathdirs=
11036 names_already_handled=
11037 names_next_round='intl '
11038 while test -n "$names_next_round"; do
11039 names_this_round="$names_next_round"
11040 names_next_round=
11041 for name in $names_this_round; do
11042 already_handled=
11043 for n in $names_already_handled; do
11044 if test "$n" = "$name"; then
11045 already_handled=yes
11046 break
11048 done
11049 if test -z "$already_handled"; then
11050 names_already_handled="$names_already_handled $name"
11051 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11052 eval value=\"\$HAVE_LIB$uppername\"
11053 if test -n "$value"; then
11054 if test "$value" = yes; then
11055 eval value=\"\$LIB$uppername\"
11056 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11057 eval value=\"\$LTLIB$uppername\"
11058 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11059 else
11062 else
11063 found_dir=
11064 found_la=
11065 found_so=
11066 found_a=
11067 if test $use_additional = yes; then
11068 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11069 found_dir="$additional_libdir"
11070 found_so="$additional_libdir/lib$name.$shlibext"
11071 if test -f "$additional_libdir/lib$name.la"; then
11072 found_la="$additional_libdir/lib$name.la"
11074 else
11075 if test -f "$additional_libdir/lib$name.$libext"; then
11076 found_dir="$additional_libdir"
11077 found_a="$additional_libdir/lib$name.$libext"
11078 if test -f "$additional_libdir/lib$name.la"; then
11079 found_la="$additional_libdir/lib$name.la"
11084 if test "X$found_dir" = "X"; then
11085 for x in $LDFLAGS $LTLIBINTL; do
11087 acl_save_prefix="$prefix"
11088 prefix="$acl_final_prefix"
11089 acl_save_exec_prefix="$exec_prefix"
11090 exec_prefix="$acl_final_exec_prefix"
11091 eval x=\"$x\"
11092 exec_prefix="$acl_save_exec_prefix"
11093 prefix="$acl_save_prefix"
11095 case "$x" in
11096 -L*)
11097 dir=`echo "X$x" | sed -e 's/^X-L//'`
11098 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11099 found_dir="$dir"
11100 found_so="$dir/lib$name.$shlibext"
11101 if test -f "$dir/lib$name.la"; then
11102 found_la="$dir/lib$name.la"
11104 else
11105 if test -f "$dir/lib$name.$libext"; then
11106 found_dir="$dir"
11107 found_a="$dir/lib$name.$libext"
11108 if test -f "$dir/lib$name.la"; then
11109 found_la="$dir/lib$name.la"
11114 esac
11115 if test "X$found_dir" != "X"; then
11116 break
11118 done
11120 if test "X$found_dir" != "X"; then
11121 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11122 if test "X$found_so" != "X"; then
11123 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11124 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11125 else
11126 haveit=
11127 for x in $ltrpathdirs; do
11128 if test "X$x" = "X$found_dir"; then
11129 haveit=yes
11130 break
11132 done
11133 if test -z "$haveit"; then
11134 ltrpathdirs="$ltrpathdirs $found_dir"
11136 if test "$hardcode_direct" = yes; then
11137 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11138 else
11139 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11140 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11141 haveit=
11142 for x in $rpathdirs; do
11143 if test "X$x" = "X$found_dir"; then
11144 haveit=yes
11145 break
11147 done
11148 if test -z "$haveit"; then
11149 rpathdirs="$rpathdirs $found_dir"
11151 else
11152 haveit=
11153 for x in $LDFLAGS $LIBINTL; do
11155 acl_save_prefix="$prefix"
11156 prefix="$acl_final_prefix"
11157 acl_save_exec_prefix="$exec_prefix"
11158 exec_prefix="$acl_final_exec_prefix"
11159 eval x=\"$x\"
11160 exec_prefix="$acl_save_exec_prefix"
11161 prefix="$acl_save_prefix"
11163 if test "X$x" = "X-L$found_dir"; then
11164 haveit=yes
11165 break
11167 done
11168 if test -z "$haveit"; then
11169 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11171 if test "$hardcode_minus_L" != no; then
11172 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11173 else
11174 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11179 else
11180 if test "X$found_a" != "X"; then
11181 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11182 else
11183 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11186 additional_includedir=
11187 case "$found_dir" in
11188 */lib | */lib/)
11189 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11190 additional_includedir="$basedir/include"
11192 esac
11193 if test "X$additional_includedir" != "X"; then
11194 if test "X$additional_includedir" != "X/usr/include"; then
11195 haveit=
11196 if test "X$additional_includedir" = "X/usr/local/include"; then
11197 if test -n "$GCC"; then
11198 case $host_os in
11199 linux*) haveit=yes;;
11200 esac
11203 if test -z "$haveit"; then
11204 for x in $CPPFLAGS $INCINTL; do
11206 acl_save_prefix="$prefix"
11207 prefix="$acl_final_prefix"
11208 acl_save_exec_prefix="$exec_prefix"
11209 exec_prefix="$acl_final_exec_prefix"
11210 eval x=\"$x\"
11211 exec_prefix="$acl_save_exec_prefix"
11212 prefix="$acl_save_prefix"
11214 if test "X$x" = "X-I$additional_includedir"; then
11215 haveit=yes
11216 break
11218 done
11219 if test -z "$haveit"; then
11220 if test -d "$additional_includedir"; then
11221 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11227 if test -n "$found_la"; then
11228 save_libdir="$libdir"
11229 case "$found_la" in
11230 */* | *\\*) . "$found_la" ;;
11231 *) . "./$found_la" ;;
11232 esac
11233 libdir="$save_libdir"
11234 for dep in $dependency_libs; do
11235 case "$dep" in
11236 -L*)
11237 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11238 if test "X$additional_libdir" != "X/usr/lib"; then
11239 haveit=
11240 if test "X$additional_libdir" = "X/usr/local/lib"; then
11241 if test -n "$GCC"; then
11242 case $host_os in
11243 linux*) haveit=yes;;
11244 esac
11247 if test -z "$haveit"; then
11248 haveit=
11249 for x in $LDFLAGS $LIBINTL; do
11251 acl_save_prefix="$prefix"
11252 prefix="$acl_final_prefix"
11253 acl_save_exec_prefix="$exec_prefix"
11254 exec_prefix="$acl_final_exec_prefix"
11255 eval x=\"$x\"
11256 exec_prefix="$acl_save_exec_prefix"
11257 prefix="$acl_save_prefix"
11259 if test "X$x" = "X-L$additional_libdir"; then
11260 haveit=yes
11261 break
11263 done
11264 if test -z "$haveit"; then
11265 if test -d "$additional_libdir"; then
11266 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11269 haveit=
11270 for x in $LDFLAGS $LTLIBINTL; do
11272 acl_save_prefix="$prefix"
11273 prefix="$acl_final_prefix"
11274 acl_save_exec_prefix="$exec_prefix"
11275 exec_prefix="$acl_final_exec_prefix"
11276 eval x=\"$x\"
11277 exec_prefix="$acl_save_exec_prefix"
11278 prefix="$acl_save_prefix"
11280 if test "X$x" = "X-L$additional_libdir"; then
11281 haveit=yes
11282 break
11284 done
11285 if test -z "$haveit"; then
11286 if test -d "$additional_libdir"; then
11287 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11293 -R*)
11294 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11295 if test "$enable_rpath" != no; then
11296 haveit=
11297 for x in $rpathdirs; do
11298 if test "X$x" = "X$dir"; then
11299 haveit=yes
11300 break
11302 done
11303 if test -z "$haveit"; then
11304 rpathdirs="$rpathdirs $dir"
11306 haveit=
11307 for x in $ltrpathdirs; do
11308 if test "X$x" = "X$dir"; then
11309 haveit=yes
11310 break
11312 done
11313 if test -z "$haveit"; then
11314 ltrpathdirs="$ltrpathdirs $dir"
11318 -l*)
11319 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11321 *.la)
11322 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11325 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11326 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11328 esac
11329 done
11331 else
11332 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11333 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11337 done
11338 done
11339 if test "X$rpathdirs" != "X"; then
11340 if test -n "$hardcode_libdir_separator"; then
11341 alldirs=
11342 for found_dir in $rpathdirs; do
11343 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11344 done
11345 acl_save_libdir="$libdir"
11346 libdir="$alldirs"
11347 eval flag=\"$hardcode_libdir_flag_spec\"
11348 libdir="$acl_save_libdir"
11349 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11350 else
11351 for found_dir in $rpathdirs; do
11352 acl_save_libdir="$libdir"
11353 libdir="$found_dir"
11354 eval flag=\"$hardcode_libdir_flag_spec\"
11355 libdir="$acl_save_libdir"
11356 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11357 done
11360 if test "X$ltrpathdirs" != "X"; then
11361 for found_dir in $ltrpathdirs; do
11362 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11363 done
11366 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11367 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
11368 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11370 else
11371 gt_save_CPPFLAGS="$CPPFLAGS"
11372 CPPFLAGS="$CPPFLAGS $INCINTL"
11373 gt_save_LIBS="$LIBS"
11374 LIBS="$LIBS $LIBINTL"
11375 cat >conftest.$ac_ext <<_ACEOF
11376 /* confdefs.h. */
11377 _ACEOF
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h. */
11381 #include <libintl.h>
11382 extern int _nl_msg_cat_cntr;
11383 extern
11384 #ifdef __cplusplus
11386 #endif
11387 const char *_nl_expand_alias ();
11389 main ()
11391 bindtextdomain ("", "");
11392 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11394 return 0;
11396 _ACEOF
11397 rm -f conftest.$ac_objext conftest$ac_exeext
11398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11399 (eval $ac_link) 2>conftest.er1
11400 ac_status=$?
11401 grep -v '^ *+' conftest.er1 >conftest.err
11402 rm -f conftest.er1
11403 cat conftest.err >&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } &&
11406 { ac_try='test -z "$ac_c_werror_flag"
11407 || test ! -s conftest.err'
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11410 ac_status=$?
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; } &&
11413 { ac_try='test -s conftest$ac_exeext'
11414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11415 (eval $ac_try) 2>&5
11416 ac_status=$?
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); }; }; then
11419 gt_cv_func_gnugettext1_libintl=yes
11420 else
11421 echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.$ac_ext >&5
11424 gt_cv_func_gnugettext1_libintl=no
11426 rm -f conftest.err conftest.$ac_objext \
11427 conftest$ac_exeext conftest.$ac_ext
11428 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11429 LIBS="$LIBS $LIBICONV"
11430 cat >conftest.$ac_ext <<_ACEOF
11431 /* confdefs.h. */
11432 _ACEOF
11433 cat confdefs.h >>conftest.$ac_ext
11434 cat >>conftest.$ac_ext <<_ACEOF
11435 /* end confdefs.h. */
11436 #include <libintl.h>
11437 extern int _nl_msg_cat_cntr;
11438 extern
11439 #ifdef __cplusplus
11441 #endif
11442 const char *_nl_expand_alias ();
11444 main ()
11446 bindtextdomain ("", "");
11447 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11449 return 0;
11451 _ACEOF
11452 rm -f conftest.$ac_objext conftest$ac_exeext
11453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11454 (eval $ac_link) 2>conftest.er1
11455 ac_status=$?
11456 grep -v '^ *+' conftest.er1 >conftest.err
11457 rm -f conftest.er1
11458 cat conftest.err >&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } &&
11461 { ac_try='test -z "$ac_c_werror_flag"
11462 || test ! -s conftest.err'
11463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11464 (eval $ac_try) 2>&5
11465 ac_status=$?
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); }; } &&
11468 { ac_try='test -s conftest$ac_exeext'
11469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470 (eval $ac_try) 2>&5
11471 ac_status=$?
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; }; then
11474 LIBINTL="$LIBINTL $LIBICONV"
11475 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11476 gt_cv_func_gnugettext1_libintl=yes
11478 else
11479 echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11483 rm -f conftest.err conftest.$ac_objext \
11484 conftest$ac_exeext conftest.$ac_ext
11486 CPPFLAGS="$gt_save_CPPFLAGS"
11487 LIBS="$gt_save_LIBS"
11489 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11490 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
11493 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11494 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11495 && test "$PACKAGE" != gettext-runtime \
11496 && test "$PACKAGE" != gettext-tools; }; then
11497 gt_use_preinstalled_gnugettext=yes
11498 else
11499 LIBINTL=
11500 LTLIBINTL=
11501 INCINTL=
11505 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11506 nls_cv_use_gnu_gettext=yes
11510 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11511 BUILD_INCLUDED_LIBINTL=yes
11512 USE_INCLUDED_LIBINTL=yes
11513 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11514 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11515 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11518 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11519 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11520 CATOBJEXT=.gmo
11524 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11525 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11527 cat >>confdefs.h <<\_ACEOF
11528 #define ENABLE_NLS 1
11529 _ACEOF
11531 else
11532 USE_NLS=no
11536 echo "$as_me:$LINENO: checking whether to use NLS" >&5
11537 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
11538 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11539 echo "${ECHO_T}$USE_NLS" >&6
11540 if test "$USE_NLS" = "yes"; then
11541 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11542 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
11543 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11544 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11545 gt_source="external libintl"
11546 else
11547 gt_source="libc"
11549 else
11550 gt_source="included intl directory"
11552 echo "$as_me:$LINENO: result: $gt_source" >&5
11553 echo "${ECHO_T}$gt_source" >&6
11556 if test "$USE_NLS" = "yes"; then
11558 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11559 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11560 echo "$as_me:$LINENO: checking how to link with libintl" >&5
11561 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
11562 echo "$as_me:$LINENO: result: $LIBINTL" >&5
11563 echo "${ECHO_T}$LIBINTL" >&6
11565 for element in $INCINTL; do
11566 haveit=
11567 for x in $CPPFLAGS; do
11569 acl_save_prefix="$prefix"
11570 prefix="$acl_final_prefix"
11571 acl_save_exec_prefix="$exec_prefix"
11572 exec_prefix="$acl_final_exec_prefix"
11573 eval x=\"$x\"
11574 exec_prefix="$acl_save_exec_prefix"
11575 prefix="$acl_save_prefix"
11577 if test "X$x" = "X$element"; then
11578 haveit=yes
11579 break
11581 done
11582 if test -z "$haveit"; then
11583 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11585 done
11590 cat >>confdefs.h <<\_ACEOF
11591 #define HAVE_GETTEXT 1
11592 _ACEOF
11595 cat >>confdefs.h <<\_ACEOF
11596 #define HAVE_DCGETTEXT 1
11597 _ACEOF
11601 POSUB=po
11605 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11606 BUILD_INCLUDED_LIBINTL=yes
11613 nls_cv_header_intl=
11614 nls_cv_header_libgt=
11616 DATADIRNAME=share
11619 INSTOBJEXT=.mo
11622 GENCAT=gencat
11625 if test "$USE_INCLUDED_LIBINTL" = yes; then
11626 INTLOBJS="\$(GETTOBJS)"
11630 INTL_LIBTOOL_SUFFIX_PREFIX=
11634 INTLLIBS="$LIBINTL"
11641 CFLAGS="$CFLAGS -I../${srcdir}/intl"
11642 LIBS="$LIBS $LIBINTL"
11645 ac_config_files="$ac_config_files Makefile lib/Makefile intl/Makefile po/Makefile.in tools/Makefile tools/glade/Makefile tools/glade/options/Makefile src/Makefile gliv.spec"
11648 cat >confcache <<\_ACEOF
11649 # This file is a shell script that caches the results of configure
11650 # tests run on this system so they can be shared between configure
11651 # scripts and configure runs, see configure's option --config-cache.
11652 # It is not useful on other systems. If it contains results you don't
11653 # want to keep, you may remove or edit it.
11655 # config.status only pays attention to the cache file if you give it
11656 # the --recheck option to rerun configure.
11658 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11659 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11660 # following values.
11662 _ACEOF
11664 # The following way of writing the cache mishandles newlines in values,
11665 # but we know of no workaround that is simple, portable, and efficient.
11666 # So, don't put newlines in cache variables' values.
11667 # Ultrix sh set writes to stderr and can't be redirected directly,
11668 # and sets the high bit in the cache file unless we assign to the vars.
11670 (set) 2>&1 |
11671 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11672 *ac_space=\ *)
11673 # `set' does not quote correctly, so add quotes (double-quote
11674 # substitution turns \\\\ into \\, and sed turns \\ into \).
11675 sed -n \
11676 "s/'/'\\\\''/g;
11677 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11680 # `set' quotes correctly as required by POSIX, so do not add quotes.
11681 sed -n \
11682 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11684 esac;
11686 sed '
11687 t clear
11688 : clear
11689 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11690 t end
11691 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11692 : end' >>confcache
11693 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11694 if test -w $cache_file; then
11695 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11696 cat confcache >$cache_file
11697 else
11698 echo "not updating unwritable cache $cache_file"
11701 rm -f confcache
11703 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11704 # Let make expand exec_prefix.
11705 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11707 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11708 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11709 # trailing colons and then remove the whole line if VPATH becomes empty
11710 # (actually we leave an empty line to preserve line numbers).
11711 if test "x$srcdir" = x.; then
11712 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11713 s/:*\$(srcdir):*/:/;
11714 s/:*\${srcdir}:*/:/;
11715 s/:*@srcdir@:*/:/;
11716 s/^\([^=]*=[ ]*\):*/\1/;
11717 s/:*$//;
11718 s/^[^=]*=[ ]*$//;
11722 DEFS=-DHAVE_CONFIG_H
11724 ac_libobjs=
11725 ac_ltlibobjs=
11726 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11727 # 1. Remove the extension, and $U if already installed.
11728 ac_i=`echo "$ac_i" |
11729 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11730 # 2. Add them.
11731 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11732 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11733 done
11734 LIBOBJS=$ac_libobjs
11736 LTLIBOBJS=$ac_ltlibobjs
11739 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11740 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11741 Usually this means the macro was only invoked conditionally." >&5
11742 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11743 Usually this means the macro was only invoked conditionally." >&2;}
11744 { (exit 1); exit 1; }; }
11746 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11747 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11748 Usually this means the macro was only invoked conditionally." >&5
11749 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11750 Usually this means the macro was only invoked conditionally." >&2;}
11751 { (exit 1); exit 1; }; }
11753 if test -z "${GETDELIM_TRUE}" && test -z "${GETDELIM_FALSE}"; then
11754 { { echo "$as_me:$LINENO: error: conditional \"GETDELIM\" was never defined.
11755 Usually this means the macro was only invoked conditionally." >&5
11756 echo "$as_me: error: conditional \"GETDELIM\" was never defined.
11757 Usually this means the macro was only invoked conditionally." >&2;}
11758 { (exit 1); exit 1; }; }
11760 if test -z "${GETOPT_LONG_TRUE}" && test -z "${GETOPT_LONG_FALSE}"; then
11761 { { echo "$as_me:$LINENO: error: conditional \"GETOPT_LONG\" was never defined.
11762 Usually this means the macro was only invoked conditionally." >&5
11763 echo "$as_me: error: conditional \"GETOPT_LONG\" was never defined.
11764 Usually this means the macro was only invoked conditionally." >&2;}
11765 { (exit 1); exit 1; }; }
11767 if test -z "${NEED_REPLACEMENTS_TRUE}" && test -z "${NEED_REPLACEMENTS_FALSE}"; then
11768 { { echo "$as_me:$LINENO: error: conditional \"NEED_REPLACEMENTS\" was never defined.
11769 Usually this means the macro was only invoked conditionally." >&5
11770 echo "$as_me: error: conditional \"NEED_REPLACEMENTS\" was never defined.
11771 Usually this means the macro was only invoked conditionally." >&2;}
11772 { (exit 1); exit 1; }; }
11774 if test -z "${NEED_REPLACEMENTS_TRUE}" && test -z "${NEED_REPLACEMENTS_FALSE}"; then
11775 { { echo "$as_me:$LINENO: error: conditional \"NEED_REPLACEMENTS\" was never defined.
11776 Usually this means the macro was only invoked conditionally." >&5
11777 echo "$as_me: error: conditional \"NEED_REPLACEMENTS\" was never defined.
11778 Usually this means the macro was only invoked conditionally." >&2;}
11779 { (exit 1); exit 1; }; }
11782 : ${CONFIG_STATUS=./config.status}
11783 ac_clean_files_save=$ac_clean_files
11784 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11785 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11786 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11787 cat >$CONFIG_STATUS <<_ACEOF
11788 #! $SHELL
11789 # Generated by $as_me.
11790 # Run this file to recreate the current configuration.
11791 # Compiler output produced by configure, useful for debugging
11792 # configure, is in config.log if it exists.
11794 debug=false
11795 ac_cs_recheck=false
11796 ac_cs_silent=false
11797 SHELL=\${CONFIG_SHELL-$SHELL}
11798 _ACEOF
11800 cat >>$CONFIG_STATUS <<\_ACEOF
11801 ## --------------------- ##
11802 ## M4sh Initialization. ##
11803 ## --------------------- ##
11805 # Be Bourne compatible
11806 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11807 emulate sh
11808 NULLCMD=:
11809 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11810 # is contrary to our usage. Disable this feature.
11811 alias -g '${1+"$@"}'='"$@"'
11812 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11813 set -o posix
11815 DUALCASE=1; export DUALCASE # for MKS sh
11817 # Support unset when possible.
11818 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11819 as_unset=unset
11820 else
11821 as_unset=false
11825 # Work around bugs in pre-3.0 UWIN ksh.
11826 $as_unset ENV MAIL MAILPATH
11827 PS1='$ '
11828 PS2='> '
11829 PS4='+ '
11831 # NLS nuisances.
11832 for as_var in \
11833 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11834 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11835 LC_TELEPHONE LC_TIME
11837 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11838 eval $as_var=C; export $as_var
11839 else
11840 $as_unset $as_var
11842 done
11844 # Required to use basename.
11845 if expr a : '\(a\)' >/dev/null 2>&1; then
11846 as_expr=expr
11847 else
11848 as_expr=false
11851 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11852 as_basename=basename
11853 else
11854 as_basename=false
11858 # Name of the executable.
11859 as_me=`$as_basename "$0" ||
11860 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11861 X"$0" : 'X\(//\)$' \| \
11862 X"$0" : 'X\(/\)$' \| \
11863 . : '\(.\)' 2>/dev/null ||
11864 echo X/"$0" |
11865 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11866 /^X\/\(\/\/\)$/{ s//\1/; q; }
11867 /^X\/\(\/\).*/{ s//\1/; q; }
11868 s/.*/./; q'`
11871 # PATH needs CR, and LINENO needs CR and PATH.
11872 # Avoid depending upon Character Ranges.
11873 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11874 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11875 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11876 as_cr_digits='0123456789'
11877 as_cr_alnum=$as_cr_Letters$as_cr_digits
11879 # The user is always right.
11880 if test "${PATH_SEPARATOR+set}" != set; then
11881 echo "#! /bin/sh" >conf$$.sh
11882 echo "exit 0" >>conf$$.sh
11883 chmod +x conf$$.sh
11884 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11885 PATH_SEPARATOR=';'
11886 else
11887 PATH_SEPARATOR=:
11889 rm -f conf$$.sh
11893 as_lineno_1=$LINENO
11894 as_lineno_2=$LINENO
11895 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11896 test "x$as_lineno_1" != "x$as_lineno_2" &&
11897 test "x$as_lineno_3" = "x$as_lineno_2" || {
11898 # Find who we are. Look in the path if we contain no path at all
11899 # relative or not.
11900 case $0 in
11901 *[\\/]* ) as_myself=$0 ;;
11902 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11903 for as_dir in $PATH
11905 IFS=$as_save_IFS
11906 test -z "$as_dir" && as_dir=.
11907 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11908 done
11911 esac
11912 # We did not find ourselves, most probably we were run as `sh COMMAND'
11913 # in which case we are not to be found in the path.
11914 if test "x$as_myself" = x; then
11915 as_myself=$0
11917 if test ! -f "$as_myself"; then
11918 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11919 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11920 { (exit 1); exit 1; }; }
11922 case $CONFIG_SHELL in
11924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11927 IFS=$as_save_IFS
11928 test -z "$as_dir" && as_dir=.
11929 for as_base in sh bash ksh sh5; do
11930 case $as_dir in
11932 if ("$as_dir/$as_base" -c '
11933 as_lineno_1=$LINENO
11934 as_lineno_2=$LINENO
11935 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11936 test "x$as_lineno_1" != "x$as_lineno_2" &&
11937 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11938 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11939 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11940 CONFIG_SHELL=$as_dir/$as_base
11941 export CONFIG_SHELL
11942 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11943 fi;;
11944 esac
11945 done
11946 done
11948 esac
11950 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11951 # uniformly replaced by the line number. The first 'sed' inserts a
11952 # line-number line before each line; the second 'sed' does the real
11953 # work. The second script uses 'N' to pair each line-number line
11954 # with the numbered line, and appends trailing '-' during
11955 # substitution so that $LINENO is not a special case at line end.
11956 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11957 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11958 sed '=' <$as_myself |
11959 sed '
11961 s,$,-,
11962 : loop
11963 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11964 t loop
11965 s,-$,,
11966 s,^['$as_cr_digits']*\n,,
11967 ' >$as_me.lineno &&
11968 chmod +x $as_me.lineno ||
11969 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11970 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11971 { (exit 1); exit 1; }; }
11973 # Don't try to exec as it changes $[0], causing all sort of problems
11974 # (the dirname of $[0] is not the place where we might find the
11975 # original and so on. Autoconf is especially sensible to this).
11976 . ./$as_me.lineno
11977 # Exit status is that of the last command.
11978 exit
11982 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11983 *c*,-n*) ECHO_N= ECHO_C='
11984 ' ECHO_T=' ' ;;
11985 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11986 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11987 esac
11989 if expr a : '\(a\)' >/dev/null 2>&1; then
11990 as_expr=expr
11991 else
11992 as_expr=false
11995 rm -f conf$$ conf$$.exe conf$$.file
11996 echo >conf$$.file
11997 if ln -s conf$$.file conf$$ 2>/dev/null; then
11998 # We could just check for DJGPP; but this test a) works b) is more generic
11999 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12000 if test -f conf$$.exe; then
12001 # Don't use ln at all; we don't have any links
12002 as_ln_s='cp -p'
12003 else
12004 as_ln_s='ln -s'
12006 elif ln conf$$.file conf$$ 2>/dev/null; then
12007 as_ln_s=ln
12008 else
12009 as_ln_s='cp -p'
12011 rm -f conf$$ conf$$.exe conf$$.file
12013 if mkdir -p . 2>/dev/null; then
12014 as_mkdir_p=:
12015 else
12016 test -d ./-p && rmdir ./-p
12017 as_mkdir_p=false
12020 as_executable_p="test -f"
12022 # Sed expression to map a string onto a valid CPP name.
12023 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12025 # Sed expression to map a string onto a valid variable name.
12026 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12029 # IFS
12030 # We need space, tab and new line, in precisely that order.
12031 as_nl='
12033 IFS=" $as_nl"
12035 # CDPATH.
12036 $as_unset CDPATH
12038 exec 6>&1
12040 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12041 # report actual input values of CONFIG_FILES etc. instead of their
12042 # values after options handling. Logging --version etc. is OK.
12043 exec 5>>config.log
12045 echo
12046 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12047 ## Running $as_me. ##
12048 _ASBOX
12049 } >&5
12050 cat >&5 <<_CSEOF
12052 This file was extended by gliv $as_me 1.8.1, which was
12053 generated by GNU Autoconf 2.59. Invocation command line was
12055 CONFIG_FILES = $CONFIG_FILES
12056 CONFIG_HEADERS = $CONFIG_HEADERS
12057 CONFIG_LINKS = $CONFIG_LINKS
12058 CONFIG_COMMANDS = $CONFIG_COMMANDS
12059 $ $0 $@
12061 _CSEOF
12062 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12063 echo >&5
12064 _ACEOF
12066 # Files that config.status was made for.
12067 if test -n "$ac_config_files"; then
12068 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12071 if test -n "$ac_config_headers"; then
12072 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12075 if test -n "$ac_config_links"; then
12076 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12079 if test -n "$ac_config_commands"; then
12080 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12083 cat >>$CONFIG_STATUS <<\_ACEOF
12085 ac_cs_usage="\
12086 \`$as_me' instantiates files from templates according to the
12087 current configuration.
12089 Usage: $0 [OPTIONS] [FILE]...
12091 -h, --help print this help, then exit
12092 -V, --version print version number, then exit
12093 -q, --quiet do not print progress messages
12094 -d, --debug don't remove temporary files
12095 --recheck update $as_me by reconfiguring in the same conditions
12096 --file=FILE[:TEMPLATE]
12097 instantiate the configuration file FILE
12098 --header=FILE[:TEMPLATE]
12099 instantiate the configuration header FILE
12101 Configuration files:
12102 $config_files
12104 Configuration headers:
12105 $config_headers
12107 Configuration commands:
12108 $config_commands
12110 Report bugs to <bug-autoconf@gnu.org>."
12111 _ACEOF
12113 cat >>$CONFIG_STATUS <<_ACEOF
12114 ac_cs_version="\\
12115 gliv config.status 1.8.1
12116 configured by $0, generated by GNU Autoconf 2.59,
12117 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12119 Copyright (C) 2003 Free Software Foundation, Inc.
12120 This config.status script is free software; the Free Software Foundation
12121 gives unlimited permission to copy, distribute and modify it."
12122 srcdir=$srcdir
12123 INSTALL="$INSTALL"
12124 _ACEOF
12126 cat >>$CONFIG_STATUS <<\_ACEOF
12127 # If no file are specified by the user, then we need to provide default
12128 # value. By we need to know if files were specified by the user.
12129 ac_need_defaults=:
12130 while test $# != 0
12132 case $1 in
12133 --*=*)
12134 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12135 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12136 ac_shift=:
12139 ac_option=$1
12140 ac_optarg=$2
12141 ac_shift=shift
12143 *) # This is not an option, so the user has probably given explicit
12144 # arguments.
12145 ac_option=$1
12146 ac_need_defaults=false;;
12147 esac
12149 case $ac_option in
12150 # Handling of the options.
12151 _ACEOF
12152 cat >>$CONFIG_STATUS <<\_ACEOF
12153 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12154 ac_cs_recheck=: ;;
12155 --version | --vers* | -V )
12156 echo "$ac_cs_version"; exit 0 ;;
12157 --he | --h)
12158 # Conflict between --help and --header
12159 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12160 Try \`$0 --help' for more information." >&5
12161 echo "$as_me: error: ambiguous option: $1
12162 Try \`$0 --help' for more information." >&2;}
12163 { (exit 1); exit 1; }; };;
12164 --help | --hel | -h )
12165 echo "$ac_cs_usage"; exit 0 ;;
12166 --debug | --d* | -d )
12167 debug=: ;;
12168 --file | --fil | --fi | --f )
12169 $ac_shift
12170 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12171 ac_need_defaults=false;;
12172 --header | --heade | --head | --hea )
12173 $ac_shift
12174 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12175 ac_need_defaults=false;;
12176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12177 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12178 ac_cs_silent=: ;;
12180 # This is an error.
12181 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12182 Try \`$0 --help' for more information." >&5
12183 echo "$as_me: error: unrecognized option: $1
12184 Try \`$0 --help' for more information." >&2;}
12185 { (exit 1); exit 1; }; } ;;
12187 *) ac_config_targets="$ac_config_targets $1" ;;
12189 esac
12190 shift
12191 done
12193 ac_configure_extra_args=
12195 if $ac_cs_silent; then
12196 exec 6>/dev/null
12197 ac_configure_extra_args="$ac_configure_extra_args --silent"
12200 _ACEOF
12201 cat >>$CONFIG_STATUS <<_ACEOF
12202 if \$ac_cs_recheck; then
12203 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12204 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12207 _ACEOF
12209 cat >>$CONFIG_STATUS <<_ACEOF
12211 # INIT-COMMANDS section.
12214 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12215 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12216 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12217 # from automake.
12218 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12219 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12220 LINGUAS="${LINGUAS-%UNSET%}"
12223 _ACEOF
12227 cat >>$CONFIG_STATUS <<\_ACEOF
12228 for ac_config_target in $ac_config_targets
12230 case "$ac_config_target" in
12231 # Handling of arguments.
12232 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12233 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12234 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
12235 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12236 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12237 "tools/glade/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/glade/Makefile" ;;
12238 "tools/glade/options/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/glade/options/Makefile" ;;
12239 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12240 "gliv.spec" ) CONFIG_FILES="$CONFIG_FILES gliv.spec" ;;
12241 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12242 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12243 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12244 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12245 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12246 { (exit 1); exit 1; }; };;
12247 esac
12248 done
12250 # If the user did not use the arguments to specify the items to instantiate,
12251 # then the envvar interface is used. Set only those that are not.
12252 # We use the long form for the default assignment because of an extremely
12253 # bizarre bug on SunOS 4.1.3.
12254 if $ac_need_defaults; then
12255 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12256 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12257 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12260 # Have a temporary directory for convenience. Make it in the build tree
12261 # simply because there is no reason to put it here, and in addition,
12262 # creating and moving files from /tmp can sometimes cause problems.
12263 # Create a temporary directory, and hook for its removal unless debugging.
12264 $debug ||
12266 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12267 trap '{ (exit 1); exit 1; }' 1 2 13 15
12270 # Create a (secure) tmp directory for tmp files.
12273 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12274 test -n "$tmp" && test -d "$tmp"
12275 } ||
12277 tmp=./confstat$$-$RANDOM
12278 (umask 077 && mkdir $tmp)
12279 } ||
12281 echo "$me: cannot create a temporary directory in ." >&2
12282 { (exit 1); exit 1; }
12285 _ACEOF
12287 cat >>$CONFIG_STATUS <<_ACEOF
12290 # CONFIG_FILES section.
12293 # No need to generate the scripts if there are no CONFIG_FILES.
12294 # This happens for instance when ./config.status config.h
12295 if test -n "\$CONFIG_FILES"; then
12296 # Protect against being on the right side of a sed subst in config.status.
12297 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12298 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12299 s,@SHELL@,$SHELL,;t t
12300 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12301 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12302 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12303 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12304 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12305 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12306 s,@exec_prefix@,$exec_prefix,;t t
12307 s,@prefix@,$prefix,;t t
12308 s,@program_transform_name@,$program_transform_name,;t t
12309 s,@bindir@,$bindir,;t t
12310 s,@sbindir@,$sbindir,;t t
12311 s,@libexecdir@,$libexecdir,;t t
12312 s,@datadir@,$datadir,;t t
12313 s,@sysconfdir@,$sysconfdir,;t t
12314 s,@sharedstatedir@,$sharedstatedir,;t t
12315 s,@localstatedir@,$localstatedir,;t t
12316 s,@libdir@,$libdir,;t t
12317 s,@includedir@,$includedir,;t t
12318 s,@oldincludedir@,$oldincludedir,;t t
12319 s,@infodir@,$infodir,;t t
12320 s,@mandir@,$mandir,;t t
12321 s,@build_alias@,$build_alias,;t t
12322 s,@host_alias@,$host_alias,;t t
12323 s,@target_alias@,$target_alias,;t t
12324 s,@DEFS@,$DEFS,;t t
12325 s,@ECHO_C@,$ECHO_C,;t t
12326 s,@ECHO_N@,$ECHO_N,;t t
12327 s,@ECHO_T@,$ECHO_T,;t t
12328 s,@LIBS@,$LIBS,;t t
12329 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12330 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12331 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12332 s,@CYGPATH_W@,$CYGPATH_W,;t t
12333 s,@PACKAGE@,$PACKAGE,;t t
12334 s,@VERSION@,$VERSION,;t t
12335 s,@ACLOCAL@,$ACLOCAL,;t t
12336 s,@AUTOCONF@,$AUTOCONF,;t t
12337 s,@AUTOMAKE@,$AUTOMAKE,;t t
12338 s,@AUTOHEADER@,$AUTOHEADER,;t t
12339 s,@MAKEINFO@,$MAKEINFO,;t t
12340 s,@AMTAR@,$AMTAR,;t t
12341 s,@install_sh@,$install_sh,;t t
12342 s,@STRIP@,$STRIP,;t t
12343 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12344 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12345 s,@mkdir_p@,$mkdir_p,;t t
12346 s,@AWK@,$AWK,;t t
12347 s,@SET_MAKE@,$SET_MAKE,;t t
12348 s,@am__leading_dot@,$am__leading_dot,;t t
12349 s,@CC@,$CC,;t t
12350 s,@CFLAGS@,$CFLAGS,;t t
12351 s,@LDFLAGS@,$LDFLAGS,;t t
12352 s,@CPPFLAGS@,$CPPFLAGS,;t t
12353 s,@ac_ct_CC@,$ac_ct_CC,;t t
12354 s,@EXEEXT@,$EXEEXT,;t t
12355 s,@OBJEXT@,$OBJEXT,;t t
12356 s,@DEPDIR@,$DEPDIR,;t t
12357 s,@am__include@,$am__include,;t t
12358 s,@am__quote@,$am__quote,;t t
12359 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12360 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12361 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12362 s,@CCDEPMODE@,$CCDEPMODE,;t t
12363 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12364 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12365 s,@RANLIB@,$RANLIB,;t t
12366 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12367 s,@GETDELIM_TRUE@,$GETDELIM_TRUE,;t t
12368 s,@GETDELIM_FALSE@,$GETDELIM_FALSE,;t t
12369 s,@GETOPT_LONG_TRUE@,$GETOPT_LONG_TRUE,;t t
12370 s,@GETOPT_LONG_FALSE@,$GETOPT_LONG_FALSE,;t t
12371 s,@NEED_REPLACEMENTS_TRUE@,$NEED_REPLACEMENTS_TRUE,;t t
12372 s,@NEED_REPLACEMENTS_FALSE@,$NEED_REPLACEMENTS_FALSE,;t t
12373 s,@CPP@,$CPP,;t t
12374 s,@X_CFLAGS@,$X_CFLAGS,;t t
12375 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
12376 s,@X_LIBS@,$X_LIBS,;t t
12377 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
12378 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
12379 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
12380 s,@GTK_LIBS@,$GTK_LIBS,;t t
12381 s,@GTKGLEXT_CFLAGS@,$GTKGLEXT_CFLAGS,;t t
12382 s,@GTKGLEXT_LIBS@,$GTKGLEXT_LIBS,;t t
12383 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12384 s,@USE_NLS@,$USE_NLS,;t t
12385 s,@MSGFMT@,$MSGFMT,;t t
12386 s,@GMSGFMT@,$GMSGFMT,;t t
12387 s,@XGETTEXT@,$XGETTEXT,;t t
12388 s,@MSGMERGE@,$MSGMERGE,;t t
12389 s,@build@,$build,;t t
12390 s,@build_cpu@,$build_cpu,;t t
12391 s,@build_vendor@,$build_vendor,;t t
12392 s,@build_os@,$build_os,;t t
12393 s,@host@,$host,;t t
12394 s,@host_cpu@,$host_cpu,;t t
12395 s,@host_vendor@,$host_vendor,;t t
12396 s,@host_os@,$host_os,;t t
12397 s,@EGREP@,$EGREP,;t t
12398 s,@ALLOCA@,$ALLOCA,;t t
12399 s,@GLIBC21@,$GLIBC21,;t t
12400 s,@LIBICONV@,$LIBICONV,;t t
12401 s,@LTLIBICONV@,$LTLIBICONV,;t t
12402 s,@INTLBISON@,$INTLBISON,;t t
12403 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
12404 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
12405 s,@CATOBJEXT@,$CATOBJEXT,;t t
12406 s,@DATADIRNAME@,$DATADIRNAME,;t t
12407 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12408 s,@GENCAT@,$GENCAT,;t t
12409 s,@INTLOBJS@,$INTLOBJS,;t t
12410 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
12411 s,@INTLLIBS@,$INTLLIBS,;t t
12412 s,@LIBINTL@,$LIBINTL,;t t
12413 s,@LTLIBINTL@,$LTLIBINTL,;t t
12414 s,@POSUB@,$POSUB,;t t
12415 s,@LIBOBJS@,$LIBOBJS,;t t
12416 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12417 CEOF
12419 _ACEOF
12421 cat >>$CONFIG_STATUS <<\_ACEOF
12422 # Split the substitutions into bite-sized pieces for seds with
12423 # small command number limits, like on Digital OSF/1 and HP-UX.
12424 ac_max_sed_lines=48
12425 ac_sed_frag=1 # Number of current file.
12426 ac_beg=1 # First line for current file.
12427 ac_end=$ac_max_sed_lines # Line after last line for current file.
12428 ac_more_lines=:
12429 ac_sed_cmds=
12430 while $ac_more_lines; do
12431 if test $ac_beg -gt 1; then
12432 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12433 else
12434 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12436 if test ! -s $tmp/subs.frag; then
12437 ac_more_lines=false
12438 else
12439 # The purpose of the label and of the branching condition is to
12440 # speed up the sed processing (if there are no `@' at all, there
12441 # is no need to browse any of the substitutions).
12442 # These are the two extra sed commands mentioned above.
12443 (echo ':t
12444 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12445 if test -z "$ac_sed_cmds"; then
12446 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12447 else
12448 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12450 ac_sed_frag=`expr $ac_sed_frag + 1`
12451 ac_beg=$ac_end
12452 ac_end=`expr $ac_end + $ac_max_sed_lines`
12454 done
12455 if test -z "$ac_sed_cmds"; then
12456 ac_sed_cmds=cat
12458 fi # test -n "$CONFIG_FILES"
12460 _ACEOF
12461 cat >>$CONFIG_STATUS <<\_ACEOF
12462 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12463 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12464 case $ac_file in
12465 - | *:- | *:-:* ) # input from stdin
12466 cat >$tmp/stdin
12467 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12468 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12469 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12470 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12471 * ) ac_file_in=$ac_file.in ;;
12472 esac
12474 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12475 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12476 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12477 X"$ac_file" : 'X\(//\)[^/]' \| \
12478 X"$ac_file" : 'X\(//\)$' \| \
12479 X"$ac_file" : 'X\(/\)' \| \
12480 . : '\(.\)' 2>/dev/null ||
12481 echo X"$ac_file" |
12482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12483 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12484 /^X\(\/\/\)$/{ s//\1/; q; }
12485 /^X\(\/\).*/{ s//\1/; q; }
12486 s/.*/./; q'`
12487 { if $as_mkdir_p; then
12488 mkdir -p "$ac_dir"
12489 else
12490 as_dir="$ac_dir"
12491 as_dirs=
12492 while test ! -d "$as_dir"; do
12493 as_dirs="$as_dir $as_dirs"
12494 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12495 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12496 X"$as_dir" : 'X\(//\)[^/]' \| \
12497 X"$as_dir" : 'X\(//\)$' \| \
12498 X"$as_dir" : 'X\(/\)' \| \
12499 . : '\(.\)' 2>/dev/null ||
12500 echo X"$as_dir" |
12501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12502 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12503 /^X\(\/\/\)$/{ s//\1/; q; }
12504 /^X\(\/\).*/{ s//\1/; q; }
12505 s/.*/./; q'`
12506 done
12507 test ! -n "$as_dirs" || mkdir $as_dirs
12508 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12509 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12510 { (exit 1); exit 1; }; }; }
12512 ac_builddir=.
12514 if test "$ac_dir" != .; then
12515 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12516 # A "../" for each directory in $ac_dir_suffix.
12517 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12518 else
12519 ac_dir_suffix= ac_top_builddir=
12522 case $srcdir in
12523 .) # No --srcdir option. We are building in place.
12524 ac_srcdir=.
12525 if test -z "$ac_top_builddir"; then
12526 ac_top_srcdir=.
12527 else
12528 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12529 fi ;;
12530 [\\/]* | ?:[\\/]* ) # Absolute path.
12531 ac_srcdir=$srcdir$ac_dir_suffix;
12532 ac_top_srcdir=$srcdir ;;
12533 *) # Relative path.
12534 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12535 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12536 esac
12538 # Do not use `cd foo && pwd` to compute absolute paths, because
12539 # the directories may not exist.
12540 case `pwd` in
12541 .) ac_abs_builddir="$ac_dir";;
12543 case "$ac_dir" in
12544 .) ac_abs_builddir=`pwd`;;
12545 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12546 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12547 esac;;
12548 esac
12549 case $ac_abs_builddir in
12550 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12552 case ${ac_top_builddir}. in
12553 .) ac_abs_top_builddir=$ac_abs_builddir;;
12554 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12555 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12556 esac;;
12557 esac
12558 case $ac_abs_builddir in
12559 .) ac_abs_srcdir=$ac_srcdir;;
12561 case $ac_srcdir in
12562 .) ac_abs_srcdir=$ac_abs_builddir;;
12563 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12564 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12565 esac;;
12566 esac
12567 case $ac_abs_builddir in
12568 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12570 case $ac_top_srcdir in
12571 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12572 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12573 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12574 esac;;
12575 esac
12578 case $INSTALL in
12579 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12580 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12581 esac
12583 if test x"$ac_file" != x-; then
12584 { echo "$as_me:$LINENO: creating $ac_file" >&5
12585 echo "$as_me: creating $ac_file" >&6;}
12586 rm -f "$ac_file"
12588 # Let's still pretend it is `configure' which instantiates (i.e., don't
12589 # use $as_me), people would be surprised to read:
12590 # /* config.h. Generated by config.status. */
12591 if test x"$ac_file" = x-; then
12592 configure_input=
12593 else
12594 configure_input="$ac_file. "
12596 configure_input=$configure_input"Generated from `echo $ac_file_in |
12597 sed 's,.*/,,'` by configure."
12599 # First look for the input files in the build tree, otherwise in the
12600 # src tree.
12601 ac_file_inputs=`IFS=:
12602 for f in $ac_file_in; do
12603 case $f in
12604 -) echo $tmp/stdin ;;
12605 [\\/$]*)
12606 # Absolute (can't be DOS-style, as IFS=:)
12607 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12608 echo "$as_me: error: cannot find input file: $f" >&2;}
12609 { (exit 1); exit 1; }; }
12610 echo "$f";;
12611 *) # Relative
12612 if test -f "$f"; then
12613 # Build tree
12614 echo "$f"
12615 elif test -f "$srcdir/$f"; then
12616 # Source tree
12617 echo "$srcdir/$f"
12618 else
12619 # /dev/null tree
12620 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12621 echo "$as_me: error: cannot find input file: $f" >&2;}
12622 { (exit 1); exit 1; }; }
12623 fi;;
12624 esac
12625 done` || { (exit 1); exit 1; }
12626 _ACEOF
12627 cat >>$CONFIG_STATUS <<_ACEOF
12628 sed "$ac_vpsub
12629 $extrasub
12630 _ACEOF
12631 cat >>$CONFIG_STATUS <<\_ACEOF
12633 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12634 s,@configure_input@,$configure_input,;t t
12635 s,@srcdir@,$ac_srcdir,;t t
12636 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12637 s,@top_srcdir@,$ac_top_srcdir,;t t
12638 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12639 s,@builddir@,$ac_builddir,;t t
12640 s,@abs_builddir@,$ac_abs_builddir,;t t
12641 s,@top_builddir@,$ac_top_builddir,;t t
12642 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12643 s,@INSTALL@,$ac_INSTALL,;t t
12644 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12645 rm -f $tmp/stdin
12646 if test x"$ac_file" != x-; then
12647 mv $tmp/out $ac_file
12648 else
12649 cat $tmp/out
12650 rm -f $tmp/out
12653 done
12654 _ACEOF
12655 cat >>$CONFIG_STATUS <<\_ACEOF
12658 # CONFIG_HEADER section.
12661 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12662 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12664 # ac_d sets the value in "#define NAME VALUE" lines.
12665 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12666 ac_dB='[ ].*$,\1#\2'
12667 ac_dC=' '
12668 ac_dD=',;t'
12669 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12670 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12671 ac_uB='$,\1#\2define\3'
12672 ac_uC=' '
12673 ac_uD=',;t'
12675 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12676 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12677 case $ac_file in
12678 - | *:- | *:-:* ) # input from stdin
12679 cat >$tmp/stdin
12680 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12681 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12682 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12683 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12684 * ) ac_file_in=$ac_file.in ;;
12685 esac
12687 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12688 echo "$as_me: creating $ac_file" >&6;}
12690 # First look for the input files in the build tree, otherwise in the
12691 # src tree.
12692 ac_file_inputs=`IFS=:
12693 for f in $ac_file_in; do
12694 case $f in
12695 -) echo $tmp/stdin ;;
12696 [\\/$]*)
12697 # Absolute (can't be DOS-style, as IFS=:)
12698 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12699 echo "$as_me: error: cannot find input file: $f" >&2;}
12700 { (exit 1); exit 1; }; }
12701 # Do quote $f, to prevent DOS paths from being IFS'd.
12702 echo "$f";;
12703 *) # Relative
12704 if test -f "$f"; then
12705 # Build tree
12706 echo "$f"
12707 elif test -f "$srcdir/$f"; then
12708 # Source tree
12709 echo "$srcdir/$f"
12710 else
12711 # /dev/null tree
12712 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12713 echo "$as_me: error: cannot find input file: $f" >&2;}
12714 { (exit 1); exit 1; }; }
12715 fi;;
12716 esac
12717 done` || { (exit 1); exit 1; }
12718 # Remove the trailing spaces.
12719 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12721 _ACEOF
12723 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12724 # `conftest.undefs', that substitutes the proper values into
12725 # config.h.in to produce config.h. The first handles `#define'
12726 # templates, and the second `#undef' templates.
12727 # And first: Protect against being on the right side of a sed subst in
12728 # config.status. Protect against being in an unquoted here document
12729 # in config.status.
12730 rm -f conftest.defines conftest.undefs
12731 # Using a here document instead of a string reduces the quoting nightmare.
12732 # Putting comments in sed scripts is not portable.
12734 # `end' is used to avoid that the second main sed command (meant for
12735 # 0-ary CPP macros) applies to n-ary macro definitions.
12736 # See the Autoconf documentation for `clear'.
12737 cat >confdef2sed.sed <<\_ACEOF
12738 s/[\\&,]/\\&/g
12739 s,[\\$`],\\&,g
12740 t clear
12741 : clear
12742 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12743 t end
12744 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12745 : end
12746 _ACEOF
12747 # If some macros were called several times there might be several times
12748 # the same #defines, which is useless. Nevertheless, we may not want to
12749 # sort them, since we want the *last* AC-DEFINE to be honored.
12750 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12751 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12752 rm -f confdef2sed.sed
12754 # This sed command replaces #undef with comments. This is necessary, for
12755 # example, in the case of _POSIX_SOURCE, which is predefined and required
12756 # on some systems where configure will not decide to define it.
12757 cat >>conftest.undefs <<\_ACEOF
12758 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12759 _ACEOF
12761 # Break up conftest.defines because some shells have a limit on the size
12762 # of here documents, and old seds have small limits too (100 cmds).
12763 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12764 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12765 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12766 echo ' :' >>$CONFIG_STATUS
12767 rm -f conftest.tail
12768 while grep . conftest.defines >/dev/null
12770 # Write a limited-size here document to $tmp/defines.sed.
12771 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12772 # Speed up: don't consider the non `#define' lines.
12773 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12774 # Work around the forget-to-reset-the-flag bug.
12775 echo 't clr' >>$CONFIG_STATUS
12776 echo ': clr' >>$CONFIG_STATUS
12777 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12778 echo 'CEOF
12779 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12780 rm -f $tmp/in
12781 mv $tmp/out $tmp/in
12782 ' >>$CONFIG_STATUS
12783 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12784 rm -f conftest.defines
12785 mv conftest.tail conftest.defines
12786 done
12787 rm -f conftest.defines
12788 echo ' fi # grep' >>$CONFIG_STATUS
12789 echo >>$CONFIG_STATUS
12791 # Break up conftest.undefs because some shells have a limit on the size
12792 # of here documents, and old seds have small limits too (100 cmds).
12793 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12794 rm -f conftest.tail
12795 while grep . conftest.undefs >/dev/null
12797 # Write a limited-size here document to $tmp/undefs.sed.
12798 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12799 # Speed up: don't consider the non `#undef'
12800 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12801 # Work around the forget-to-reset-the-flag bug.
12802 echo 't clr' >>$CONFIG_STATUS
12803 echo ': clr' >>$CONFIG_STATUS
12804 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12805 echo 'CEOF
12806 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12807 rm -f $tmp/in
12808 mv $tmp/out $tmp/in
12809 ' >>$CONFIG_STATUS
12810 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12811 rm -f conftest.undefs
12812 mv conftest.tail conftest.undefs
12813 done
12814 rm -f conftest.undefs
12816 cat >>$CONFIG_STATUS <<\_ACEOF
12817 # Let's still pretend it is `configure' which instantiates (i.e., don't
12818 # use $as_me), people would be surprised to read:
12819 # /* config.h. Generated by config.status. */
12820 if test x"$ac_file" = x-; then
12821 echo "/* Generated by configure. */" >$tmp/config.h
12822 else
12823 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12825 cat $tmp/in >>$tmp/config.h
12826 rm -f $tmp/in
12827 if test x"$ac_file" != x-; then
12828 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12829 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12830 echo "$as_me: $ac_file is unchanged" >&6;}
12831 else
12832 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12833 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12834 X"$ac_file" : 'X\(//\)[^/]' \| \
12835 X"$ac_file" : 'X\(//\)$' \| \
12836 X"$ac_file" : 'X\(/\)' \| \
12837 . : '\(.\)' 2>/dev/null ||
12838 echo X"$ac_file" |
12839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12840 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12841 /^X\(\/\/\)$/{ s//\1/; q; }
12842 /^X\(\/\).*/{ s//\1/; q; }
12843 s/.*/./; q'`
12844 { if $as_mkdir_p; then
12845 mkdir -p "$ac_dir"
12846 else
12847 as_dir="$ac_dir"
12848 as_dirs=
12849 while test ! -d "$as_dir"; do
12850 as_dirs="$as_dir $as_dirs"
12851 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12852 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12853 X"$as_dir" : 'X\(//\)[^/]' \| \
12854 X"$as_dir" : 'X\(//\)$' \| \
12855 X"$as_dir" : 'X\(/\)' \| \
12856 . : '\(.\)' 2>/dev/null ||
12857 echo X"$as_dir" |
12858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12859 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12860 /^X\(\/\/\)$/{ s//\1/; q; }
12861 /^X\(\/\).*/{ s//\1/; q; }
12862 s/.*/./; q'`
12863 done
12864 test ! -n "$as_dirs" || mkdir $as_dirs
12865 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12866 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12867 { (exit 1); exit 1; }; }; }
12869 rm -f $ac_file
12870 mv $tmp/config.h $ac_file
12872 else
12873 cat $tmp/config.h
12874 rm -f $tmp/config.h
12876 # Compute $ac_file's index in $config_headers.
12877 _am_stamp_count=1
12878 for _am_header in $config_headers :; do
12879 case $_am_header in
12880 $ac_file | $ac_file:* )
12881 break ;;
12883 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12884 esac
12885 done
12886 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12887 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12888 X$ac_file : 'X\(//\)[^/]' \| \
12889 X$ac_file : 'X\(//\)$' \| \
12890 X$ac_file : 'X\(/\)' \| \
12891 . : '\(.\)' 2>/dev/null ||
12892 echo X$ac_file |
12893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12894 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12895 /^X\(\/\/\)$/{ s//\1/; q; }
12896 /^X\(\/\).*/{ s//\1/; q; }
12897 s/.*/./; q'`/stamp-h$_am_stamp_count
12898 done
12899 _ACEOF
12900 cat >>$CONFIG_STATUS <<\_ACEOF
12903 # CONFIG_COMMANDS section.
12905 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12906 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12907 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12908 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12909 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12910 X"$ac_dest" : 'X\(//\)[^/]' \| \
12911 X"$ac_dest" : 'X\(//\)$' \| \
12912 X"$ac_dest" : 'X\(/\)' \| \
12913 . : '\(.\)' 2>/dev/null ||
12914 echo X"$ac_dest" |
12915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12916 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12917 /^X\(\/\/\)$/{ s//\1/; q; }
12918 /^X\(\/\).*/{ s//\1/; q; }
12919 s/.*/./; q'`
12920 { if $as_mkdir_p; then
12921 mkdir -p "$ac_dir"
12922 else
12923 as_dir="$ac_dir"
12924 as_dirs=
12925 while test ! -d "$as_dir"; do
12926 as_dirs="$as_dir $as_dirs"
12927 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12928 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12929 X"$as_dir" : 'X\(//\)[^/]' \| \
12930 X"$as_dir" : 'X\(//\)$' \| \
12931 X"$as_dir" : 'X\(/\)' \| \
12932 . : '\(.\)' 2>/dev/null ||
12933 echo X"$as_dir" |
12934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12935 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12936 /^X\(\/\/\)$/{ s//\1/; q; }
12937 /^X\(\/\).*/{ s//\1/; q; }
12938 s/.*/./; q'`
12939 done
12940 test ! -n "$as_dirs" || mkdir $as_dirs
12941 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12942 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12943 { (exit 1); exit 1; }; }; }
12945 ac_builddir=.
12947 if test "$ac_dir" != .; then
12948 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12949 # A "../" for each directory in $ac_dir_suffix.
12950 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12951 else
12952 ac_dir_suffix= ac_top_builddir=
12955 case $srcdir in
12956 .) # No --srcdir option. We are building in place.
12957 ac_srcdir=.
12958 if test -z "$ac_top_builddir"; then
12959 ac_top_srcdir=.
12960 else
12961 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12962 fi ;;
12963 [\\/]* | ?:[\\/]* ) # Absolute path.
12964 ac_srcdir=$srcdir$ac_dir_suffix;
12965 ac_top_srcdir=$srcdir ;;
12966 *) # Relative path.
12967 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12968 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12969 esac
12971 # Do not use `cd foo && pwd` to compute absolute paths, because
12972 # the directories may not exist.
12973 case `pwd` in
12974 .) ac_abs_builddir="$ac_dir";;
12976 case "$ac_dir" in
12977 .) ac_abs_builddir=`pwd`;;
12978 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12979 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12980 esac;;
12981 esac
12982 case $ac_abs_builddir in
12983 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12985 case ${ac_top_builddir}. in
12986 .) ac_abs_top_builddir=$ac_abs_builddir;;
12987 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12988 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12989 esac;;
12990 esac
12991 case $ac_abs_builddir in
12992 .) ac_abs_srcdir=$ac_srcdir;;
12994 case $ac_srcdir in
12995 .) ac_abs_srcdir=$ac_abs_builddir;;
12996 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12997 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12998 esac;;
12999 esac
13000 case $ac_abs_builddir in
13001 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13003 case $ac_top_srcdir in
13004 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13005 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13006 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13007 esac;;
13008 esac
13011 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13012 echo "$as_me: executing $ac_dest commands" >&6;}
13013 case $ac_dest in
13014 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13015 # Strip MF so we end up with the name of the file.
13016 mf=`echo "$mf" | sed -e 's/:.*$//'`
13017 # Check whether this is an Automake generated Makefile or not.
13018 # We used to match only the files named `Makefile.in', but
13019 # some people rename them; so instead we look at the file content.
13020 # Grep'ing the first line is not enough: some people post-process
13021 # each Makefile.in and add a new line on top of each file to say so.
13022 # So let's grep whole file.
13023 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13024 dirpart=`(dirname "$mf") 2>/dev/null ||
13025 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13026 X"$mf" : 'X\(//\)[^/]' \| \
13027 X"$mf" : 'X\(//\)$' \| \
13028 X"$mf" : 'X\(/\)' \| \
13029 . : '\(.\)' 2>/dev/null ||
13030 echo X"$mf" |
13031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13032 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13033 /^X\(\/\/\)$/{ s//\1/; q; }
13034 /^X\(\/\).*/{ s//\1/; q; }
13035 s/.*/./; q'`
13036 else
13037 continue
13039 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
13040 # Extract the definition of DEP_FILES from the Makefile without
13041 # running `make'.
13042 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
13043 test -z "$DEPDIR" && continue
13044 # When using ansi2knr, U may be empty or an underscore; expand it
13045 U=`sed -n -e '/^U = / s///p' < "$mf"`
13046 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
13047 # We invoke sed twice because it is the simplest approach to
13048 # changing $(DEPDIR) to its actual value in the expansion.
13049 for file in `sed -n -e '
13050 /^DEP_FILES = .*\\\\$/ {
13051 s/^DEP_FILES = //
13052 :loop
13053 s/\\\\$//
13056 /\\\\$/ b loop
13059 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
13060 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13061 # Make sure the directory exists.
13062 test -f "$dirpart/$file" && continue
13063 fdir=`(dirname "$file") 2>/dev/null ||
13064 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13065 X"$file" : 'X\(//\)[^/]' \| \
13066 X"$file" : 'X\(//\)$' \| \
13067 X"$file" : 'X\(/\)' \| \
13068 . : '\(.\)' 2>/dev/null ||
13069 echo X"$file" |
13070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13071 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13072 /^X\(\/\/\)$/{ s//\1/; q; }
13073 /^X\(\/\).*/{ s//\1/; q; }
13074 s/.*/./; q'`
13075 { if $as_mkdir_p; then
13076 mkdir -p $dirpart/$fdir
13077 else
13078 as_dir=$dirpart/$fdir
13079 as_dirs=
13080 while test ! -d "$as_dir"; do
13081 as_dirs="$as_dir $as_dirs"
13082 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13083 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13084 X"$as_dir" : 'X\(//\)[^/]' \| \
13085 X"$as_dir" : 'X\(//\)$' \| \
13086 X"$as_dir" : 'X\(/\)' \| \
13087 . : '\(.\)' 2>/dev/null ||
13088 echo X"$as_dir" |
13089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13090 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13091 /^X\(\/\/\)$/{ s//\1/; q; }
13092 /^X\(\/\).*/{ s//\1/; q; }
13093 s/.*/./; q'`
13094 done
13095 test ! -n "$as_dirs" || mkdir $as_dirs
13096 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13097 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13098 { (exit 1); exit 1; }; }; }
13100 # echo "creating $dirpart/$file"
13101 echo '# dummy' > "$dirpart/$file"
13102 done
13103 done
13105 default-1 )
13106 for ac_file in $CONFIG_FILES; do
13107 # Support "outfile[:infile[:infile...]]"
13108 case "$ac_file" in
13109 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13110 esac
13111 # PO directories have a Makefile.in generated from Makefile.in.in.
13112 case "$ac_file" in */Makefile.in)
13113 # Adjust a relative srcdir.
13114 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13115 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13116 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13117 # In autoconf-2.13 it is called $ac_given_srcdir.
13118 # In autoconf-2.50 it is called $srcdir.
13119 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13120 case "$ac_given_srcdir" in
13121 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13122 /*) top_srcdir="$ac_given_srcdir" ;;
13123 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13124 esac
13125 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13126 rm -f "$ac_dir/POTFILES"
13127 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13128 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13129 POMAKEFILEDEPS="POTFILES.in"
13130 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13131 # on $ac_dir but don't depend on user-specified configuration
13132 # parameters.
13133 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13134 # The LINGUAS file contains the set of available languages.
13135 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13136 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13138 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13139 # Hide the ALL_LINGUAS assigment from automake.
13140 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13141 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13142 else
13143 # The set of available languages was given in configure.in.
13144 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13146 case "$ac_given_srcdir" in
13147 .) srcdirpre= ;;
13148 *) srcdirpre='$(srcdir)/' ;;
13149 esac
13150 POFILES=
13151 GMOFILES=
13152 UPDATEPOFILES=
13153 DUMMYPOFILES=
13154 for lang in $ALL_LINGUAS; do
13155 POFILES="$POFILES $srcdirpre$lang.po"
13156 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13157 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13158 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13159 done
13160 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13161 # environment variable.
13162 INST_LINGUAS=
13163 if test -n "$ALL_LINGUAS"; then
13164 for presentlang in $ALL_LINGUAS; do
13165 useit=no
13166 if test "%UNSET%" != "$LINGUAS"; then
13167 desiredlanguages="$LINGUAS"
13168 else
13169 desiredlanguages="$ALL_LINGUAS"
13171 for desiredlang in $desiredlanguages; do
13172 # Use the presentlang catalog if desiredlang is
13173 # a. equal to presentlang, or
13174 # b. a variant of presentlang (because in this case,
13175 # presentlang can be used as a fallback for messages
13176 # which are not translated in the desiredlang catalog).
13177 case "$desiredlang" in
13178 "$presentlang"*) useit=yes;;
13179 esac
13180 done
13181 if test $useit = yes; then
13182 INST_LINGUAS="$INST_LINGUAS $presentlang"
13184 done
13186 CATALOGS=
13187 if test -n "$INST_LINGUAS"; then
13188 for lang in $INST_LINGUAS; do
13189 CATALOGS="$CATALOGS $lang.gmo"
13190 done
13192 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13193 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"
13194 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13195 if test -f "$f"; then
13196 case "$f" in
13197 *.orig | *.bak | *~) ;;
13198 *) cat "$f" >> "$ac_dir/Makefile" ;;
13199 esac
13201 done
13204 esac
13205 done ;;
13206 esac
13207 done
13208 _ACEOF
13210 cat >>$CONFIG_STATUS <<\_ACEOF
13212 { (exit 0); exit 0; }
13213 _ACEOF
13214 chmod +x $CONFIG_STATUS
13215 ac_clean_files=$ac_clean_files_save
13218 # configure is writing to config.log, and then calls config.status.
13219 # config.status does its own redirection, appending to config.log.
13220 # Unfortunately, on DOS this fails, as config.log is still kept open
13221 # by configure, so config.status won't be able to write to it; its
13222 # output is simply discarded. So we exec the FD to /dev/null,
13223 # effectively closing config.log, so it can be properly (re)opened and
13224 # appended to by config.status. When coming back to configure, we
13225 # need to make the FD available again.
13226 if test "$no_create" != yes; then
13227 ac_cs_success=:
13228 ac_config_status_args=
13229 test "$silent" = yes &&
13230 ac_config_status_args="$ac_config_status_args --quiet"
13231 exec 5>/dev/null
13232 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13233 exec 5>>config.log
13234 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13235 # would make configure fail if this is the last instruction.
13236 $ac_cs_success || { (exit 1); exit 1; }
13240 echo
13241 echo "Using GTK+ $GTK_VERSION with GtkGLExt $GTKGL_VERSION"
13242 echo