Do not setup the locale stuff if gliv is invoked with --help or --version.
[gliv.git] / configure
blobff8d5f54fbfd06aaf9ba592a3a09003366d221fc
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for gliv 1.8.
5 # Report bugs to <guichaz@yahoo.fr>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/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 -n "`(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 as_mkdir_p=false
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
239 IFS=" $as_nl"
241 # CDPATH.
242 $as_unset CDPATH
245 # Name of the host.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250 exec 6>&1
253 # Initializations.
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 # Identity of this package.
269 PACKAGE_NAME='gliv'
270 PACKAGE_TARNAME='gliv'
271 PACKAGE_VERSION='1.8'
272 PACKAGE_STRING='gliv 1.8'
273 PACKAGE_BUGREPORT='guichaz@yahoo.fr'
275 ac_unique_file="src/main.c"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 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 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 GETLINE_TRUE GETLINE_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'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures gliv 1.8 to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802 _ACEOF
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
833 cat <<\_ACEOF
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
850 if test -n "$ac_init_help"; then
851 case $ac_init_help in
852 short | recursive ) echo "Configuration of gliv 1.8:";;
853 esac
854 cat <<\_ACEOF
856 Optional Features:
857 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
858 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
859 --disable-dependency-tracking Speeds up one-time builds
860 --enable-dependency-tracking Do not reject slow dependency extractors
861 --disable-largefile omit support for large files
862 --disable-gtktest do not try to compile and run a test GTK+ program
863 --disable-nls do not use Native Language Support
864 --disable-rpath do not hardcode runtime library paths
866 Optional Packages:
867 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
868 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
869 --with-x use the X Window System
870 --with-gnu-ld assume the C compiler uses GNU ld default=no
871 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
872 --without-libiconv-prefix don't search for libiconv in includedir and libdir
873 --with-included-gettext use the GNU gettext library included here
874 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
875 --without-libintl-prefix don't search for libintl in includedir and libdir
877 Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
884 CPP C preprocessor
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
889 Report bugs to <guichaz@yahoo.fr>.
890 _ACEOF
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
895 ac_popdir=`pwd`
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
898 ac_builddir=.
900 if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 else
905 ac_dir_suffix= ac_top_builddir=
908 case $srcdir in
909 .) # No --srcdir option. We are building in place.
910 ac_srcdir=.
911 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=.
913 else
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 fi ;;
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
919 *) # Relative path.
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 esac
923 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
924 # absolute.
925 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
926 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
927 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
928 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
930 cd $ac_dir
931 # Check for guested configure; otherwise get Cygnus style configure.
932 if test -f $ac_srcdir/configure.gnu; then
933 echo
934 $SHELL $ac_srcdir/configure.gnu --help=recursive
935 elif test -f $ac_srcdir/configure; then
936 echo
937 $SHELL $ac_srcdir/configure --help=recursive
938 elif test -f $ac_srcdir/configure.ac ||
939 test -f $ac_srcdir/configure.in; then
940 echo
941 $ac_configure --help
942 else
943 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
945 cd $ac_popdir
946 done
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
951 cat <<\_ACEOF
952 gliv configure 1.8
953 generated by GNU Autoconf 2.57
955 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
956 Free Software Foundation, Inc.
957 This configure script is free software; the Free Software Foundation
958 gives unlimited permission to copy, distribute and modify it.
959 _ACEOF
960 exit 0
962 exec 5>config.log
963 cat >&5 <<_ACEOF
964 This file contains any messages produced by compilers while
965 running configure, to aid debugging if configure makes a mistake.
967 It was created by gliv $as_me 1.8, which was
968 generated by GNU Autoconf 2.57. Invocation command line was
970 $ $0 $@
972 _ACEOF
974 cat <<_ASUNAME
975 ## --------- ##
976 ## Platform. ##
977 ## --------- ##
979 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
980 uname -m = `(uname -m) 2>/dev/null || echo unknown`
981 uname -r = `(uname -r) 2>/dev/null || echo unknown`
982 uname -s = `(uname -s) 2>/dev/null || echo unknown`
983 uname -v = `(uname -v) 2>/dev/null || echo unknown`
985 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
986 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
988 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
989 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
990 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
991 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
992 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
993 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
994 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
996 _ASUNAME
998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
999 for as_dir in $PATH
1001 IFS=$as_save_IFS
1002 test -z "$as_dir" && as_dir=.
1003 echo "PATH: $as_dir"
1004 done
1006 } >&5
1008 cat >&5 <<_ACEOF
1011 ## ----------- ##
1012 ## Core tests. ##
1013 ## ----------- ##
1015 _ACEOF
1018 # Keep a trace of the command line.
1019 # Strip out --no-create and --no-recursion so they do not pile up.
1020 # Strip out --silent because we don't want to record it for future runs.
1021 # Also quote any args containing shell meta-characters.
1022 # Make two passes to allow for proper duplicate-argument suppression.
1023 ac_configure_args=
1024 ac_configure_args0=
1025 ac_configure_args1=
1026 ac_sep=
1027 ac_must_keep_next=false
1028 for ac_pass in 1 2
1030 for ac_arg
1032 case $ac_arg in
1033 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1035 | -silent | --silent | --silen | --sile | --sil)
1036 continue ;;
1037 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1038 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1039 esac
1040 case $ac_pass in
1041 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1043 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1044 if test $ac_must_keep_next = true; then
1045 ac_must_keep_next=false # Got value, back to normal.
1046 else
1047 case $ac_arg in
1048 *=* | --config-cache | -C | -disable-* | --disable-* \
1049 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1050 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1051 | -with-* | --with-* | -without-* | --without-* | --x)
1052 case "$ac_configure_args0 " in
1053 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1054 esac
1056 -* ) ac_must_keep_next=true ;;
1057 esac
1059 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1060 # Get rid of the leading space.
1061 ac_sep=" "
1063 esac
1064 done
1065 done
1066 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1067 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1069 # When interrupted or exit'd, cleanup temporary files, and complete
1070 # config.log. We remove comments because anyway the quotes in there
1071 # would cause problems or look ugly.
1072 # WARNING: Be sure not to use single quotes in there, as some shells,
1073 # such as our DU 5.0 friend, will then `close' the trap.
1074 trap 'exit_status=$?
1075 # Save into config.log some information that might help in debugging.
1077 echo
1079 cat <<\_ASBOX
1080 ## ---------------- ##
1081 ## Cache variables. ##
1082 ## ---------------- ##
1083 _ASBOX
1084 echo
1085 # The following way of writing the cache mishandles newlines in values,
1087 (set) 2>&1 |
1088 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1089 *ac_space=\ *)
1090 sed -n \
1091 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1092 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1095 sed -n \
1096 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1098 esac;
1100 echo
1102 cat <<\_ASBOX
1103 ## ----------------- ##
1104 ## Output variables. ##
1105 ## ----------------- ##
1106 _ASBOX
1107 echo
1108 for ac_var in $ac_subst_vars
1110 eval ac_val=$`echo $ac_var`
1111 echo "$ac_var='"'"'$ac_val'"'"'"
1112 done | sort
1113 echo
1115 if test -n "$ac_subst_files"; then
1116 cat <<\_ASBOX
1117 ## ------------- ##
1118 ## Output files. ##
1119 ## ------------- ##
1120 _ASBOX
1121 echo
1122 for ac_var in $ac_subst_files
1124 eval ac_val=$`echo $ac_var`
1125 echo "$ac_var='"'"'$ac_val'"'"'"
1126 done | sort
1127 echo
1130 if test -s confdefs.h; then
1131 cat <<\_ASBOX
1132 ## ----------- ##
1133 ## confdefs.h. ##
1134 ## ----------- ##
1135 _ASBOX
1136 echo
1137 sed "/^$/d" confdefs.h | sort
1138 echo
1140 test "$ac_signal" != 0 &&
1141 echo "$as_me: caught signal $ac_signal"
1142 echo "$as_me: exit $exit_status"
1143 } >&5
1144 rm -f core core.* *.core &&
1145 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1146 exit $exit_status
1148 for ac_signal in 1 2 13 15; do
1149 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1150 done
1151 ac_signal=0
1153 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1154 rm -rf conftest* confdefs.h
1155 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1156 echo >confdefs.h
1158 # Predefined preprocessor variables.
1160 cat >>confdefs.h <<_ACEOF
1161 #define PACKAGE_NAME "$PACKAGE_NAME"
1162 _ACEOF
1165 cat >>confdefs.h <<_ACEOF
1166 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1167 _ACEOF
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1172 _ACEOF
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_STRING "$PACKAGE_STRING"
1177 _ACEOF
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1182 _ACEOF
1185 # Let the site file select an alternate cache file if it wants to.
1186 # Prefer explicitly selected file to automatically selected ones.
1187 if test -z "$CONFIG_SITE"; then
1188 if test "x$prefix" != xNONE; then
1189 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1190 else
1191 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1194 for ac_site_file in $CONFIG_SITE; do
1195 if test -r "$ac_site_file"; then
1196 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1197 echo "$as_me: loading site script $ac_site_file" >&6;}
1198 sed 's/^/| /' "$ac_site_file" >&5
1199 . "$ac_site_file"
1201 done
1203 if test -r "$cache_file"; then
1204 # Some versions of bash will fail to source /dev/null (special
1205 # files actually), so we avoid doing that.
1206 if test -f "$cache_file"; then
1207 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1208 echo "$as_me: loading cache $cache_file" >&6;}
1209 case $cache_file in
1210 [\\/]* | ?:[\\/]* ) . $cache_file;;
1211 *) . ./$cache_file;;
1212 esac
1214 else
1215 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1216 echo "$as_me: creating cache $cache_file" >&6;}
1217 >$cache_file
1220 # Check that the precious variables saved in the cache have kept the same
1221 # value.
1222 ac_cache_corrupted=false
1223 for ac_var in `(set) 2>&1 |
1224 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1225 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1226 eval ac_new_set=\$ac_env_${ac_var}_set
1227 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1228 eval ac_new_val="\$ac_env_${ac_var}_value"
1229 case $ac_old_set,$ac_new_set in
1230 set,)
1231 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1232 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1233 ac_cache_corrupted=: ;;
1234 ,set)
1235 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1236 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1237 ac_cache_corrupted=: ;;
1238 ,);;
1240 if test "x$ac_old_val" != "x$ac_new_val"; then
1241 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1242 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1243 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1244 echo "$as_me: former value: $ac_old_val" >&2;}
1245 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1246 echo "$as_me: current value: $ac_new_val" >&2;}
1247 ac_cache_corrupted=:
1248 fi;;
1249 esac
1250 # Pass precious variables to config.status.
1251 if test "$ac_new_set" = set; then
1252 case $ac_new_val in
1253 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1254 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1255 *) ac_arg=$ac_var=$ac_new_val ;;
1256 esac
1257 case " $ac_configure_args " in
1258 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1259 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1260 esac
1262 done
1263 if $ac_cache_corrupted; then
1264 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1265 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1266 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1267 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1268 { (exit 1); exit 1; }; }
1271 ac_ext=c
1272 ac_cpp='$CPP $CPPFLAGS'
1273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304 am__api_version="1.7"
1305 ac_aux_dir=
1306 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1307 if test -f $ac_dir/install-sh; then
1308 ac_aux_dir=$ac_dir
1309 ac_install_sh="$ac_aux_dir/install-sh -c"
1310 break
1311 elif test -f $ac_dir/install.sh; then
1312 ac_aux_dir=$ac_dir
1313 ac_install_sh="$ac_aux_dir/install.sh -c"
1314 break
1315 elif test -f $ac_dir/shtool; then
1316 ac_aux_dir=$ac_dir
1317 ac_install_sh="$ac_aux_dir/shtool install -c"
1318 break
1320 done
1321 if test -z "$ac_aux_dir"; then
1322 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1323 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1324 { (exit 1); exit 1; }; }
1326 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1327 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1328 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1330 # Find a good install program. We prefer a C program (faster),
1331 # so one script is as good as another. But avoid the broken or
1332 # incompatible versions:
1333 # SysV /etc/install, /usr/sbin/install
1334 # SunOS /usr/etc/install
1335 # IRIX /sbin/install
1336 # AIX /bin/install
1337 # AmigaOS /C/install, which installs bootblocks on floppy discs
1338 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1339 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1340 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1341 # ./install, which can be erroneously created by make from ./install.sh.
1342 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1343 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1344 if test -z "$INSTALL"; then
1345 if test "${ac_cv_path_install+set}" = set; then
1346 echo $ECHO_N "(cached) $ECHO_C" >&6
1347 else
1348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1349 for as_dir in $PATH
1351 IFS=$as_save_IFS
1352 test -z "$as_dir" && as_dir=.
1353 # Account for people who put trailing slashes in PATH elements.
1354 case $as_dir/ in
1355 ./ | .// | /cC/* | \
1356 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1357 /usr/ucb/* ) ;;
1359 # OSF1 and SCO ODT 3.0 have their own names for install.
1360 # Don't use installbsd from OSF since it installs stuff as root
1361 # by default.
1362 for ac_prog in ginstall scoinst install; do
1363 for ac_exec_ext in '' $ac_executable_extensions; do
1364 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1365 if test $ac_prog = install &&
1366 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1367 # AIX install. It has an incompatible calling convention.
1369 elif test $ac_prog = install &&
1370 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1371 # program-specific install script used by HP pwplus--don't use.
1373 else
1374 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1375 break 3
1378 done
1379 done
1381 esac
1382 done
1386 if test "${ac_cv_path_install+set}" = set; then
1387 INSTALL=$ac_cv_path_install
1388 else
1389 # As a last resort, use the slow shell script. We don't cache a
1390 # path for INSTALL within a source directory, because that will
1391 # break other packages using the cache if that directory is
1392 # removed, or if the path is relative.
1393 INSTALL=$ac_install_sh
1396 echo "$as_me:$LINENO: result: $INSTALL" >&5
1397 echo "${ECHO_T}$INSTALL" >&6
1399 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1400 # It thinks the first close brace ends the variable substitution.
1401 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1403 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1405 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1407 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1408 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1409 # Just in case
1410 sleep 1
1411 echo timestamp > conftest.file
1412 # Do `set' in a subshell so we don't clobber the current shell's
1413 # arguments. Must try -L first in case configure is actually a
1414 # symlink; some systems play weird games with the mod time of symlinks
1415 # (eg FreeBSD returns the mod time of the symlink's containing
1416 # directory).
1417 if (
1418 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1419 if test "$*" = "X"; then
1420 # -L didn't work.
1421 set X `ls -t $srcdir/configure conftest.file`
1423 rm -f conftest.file
1424 if test "$*" != "X $srcdir/configure conftest.file" \
1425 && test "$*" != "X conftest.file $srcdir/configure"; then
1427 # If neither matched, then we have a broken ls. This can happen
1428 # if, for instance, CONFIG_SHELL is bash and it inherits a
1429 # broken ls alias from the environment. This has actually
1430 # happened. Such a system could not be considered "sane".
1431 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1432 alias in your environment" >&5
1433 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1434 alias in your environment" >&2;}
1435 { (exit 1); exit 1; }; }
1438 test "$2" = conftest.file
1440 then
1441 # Ok.
1443 else
1444 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1445 Check your system clock" >&5
1446 echo "$as_me: error: newly created file is older than distributed files!
1447 Check your system clock" >&2;}
1448 { (exit 1); exit 1; }; }
1450 echo "$as_me:$LINENO: result: yes" >&5
1451 echo "${ECHO_T}yes" >&6
1452 test "$program_prefix" != NONE &&
1453 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1454 # Use a double $ so make ignores it.
1455 test "$program_suffix" != NONE &&
1456 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1457 # Double any \ or $. echo might interpret backslashes.
1458 # By default was `s,x,x', remove it if useless.
1459 cat <<\_ACEOF >conftest.sed
1460 s/[\\$]/&&/g;s/;s,x,x,$//
1461 _ACEOF
1462 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1463 rm conftest.sed
1466 # expand $ac_aux_dir to an absolute path
1467 am_aux_dir=`cd $ac_aux_dir && pwd`
1469 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1470 # Use eval to expand $SHELL
1471 if eval "$MISSING --run true"; then
1472 am_missing_run="$MISSING --run "
1473 else
1474 am_missing_run=
1475 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1476 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1479 for ac_prog in gawk mawk nawk awk
1481 # Extract the first word of "$ac_prog", so it can be a program name with args.
1482 set dummy $ac_prog; ac_word=$2
1483 echo "$as_me:$LINENO: checking for $ac_word" >&5
1484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485 if test "${ac_cv_prog_AWK+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 else
1488 if test -n "$AWK"; then
1489 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1490 else
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1494 IFS=$as_save_IFS
1495 test -z "$as_dir" && as_dir=.
1496 for ac_exec_ext in '' $ac_executable_extensions; do
1497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1498 ac_cv_prog_AWK="$ac_prog"
1499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500 break 2
1502 done
1503 done
1507 AWK=$ac_cv_prog_AWK
1508 if test -n "$AWK"; then
1509 echo "$as_me:$LINENO: result: $AWK" >&5
1510 echo "${ECHO_T}$AWK" >&6
1511 else
1512 echo "$as_me:$LINENO: result: no" >&5
1513 echo "${ECHO_T}no" >&6
1516 test -n "$AWK" && break
1517 done
1519 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1520 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1521 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1522 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525 cat >conftest.make <<\_ACEOF
1526 all:
1527 @echo 'ac_maketemp="$(MAKE)"'
1528 _ACEOF
1529 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1530 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1531 if test -n "$ac_maketemp"; then
1532 eval ac_cv_prog_make_${ac_make}_set=yes
1533 else
1534 eval ac_cv_prog_make_${ac_make}_set=no
1536 rm -f conftest.make
1538 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1539 echo "$as_me:$LINENO: result: yes" >&5
1540 echo "${ECHO_T}yes" >&6
1541 SET_MAKE=
1542 else
1543 echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1545 SET_MAKE="MAKE=${MAKE-make}"
1548 rm -rf .tst 2>/dev/null
1549 mkdir .tst 2>/dev/null
1550 if test -d .tst; then
1551 am__leading_dot=.
1552 else
1553 am__leading_dot=_
1555 rmdir .tst 2>/dev/null
1557 # test to see if srcdir already configured
1558 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1559 test -f $srcdir/config.status; then
1560 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1561 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1562 { (exit 1); exit 1; }; }
1565 # test whether we have cygpath
1566 if test -z "$CYGPATH_W"; then
1567 if (cygpath --version) >/dev/null 2>/dev/null; then
1568 CYGPATH_W='cygpath -w'
1569 else
1570 CYGPATH_W=echo
1575 # Define the identity of the package.
1576 PACKAGE='gliv'
1577 VERSION='1.8'
1580 cat >>confdefs.h <<_ACEOF
1581 #define PACKAGE "$PACKAGE"
1582 _ACEOF
1585 cat >>confdefs.h <<_ACEOF
1586 #define VERSION "$VERSION"
1587 _ACEOF
1589 # Some tools Automake needs.
1591 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1594 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1597 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1600 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1603 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1606 AMTAR=${AMTAR-"${am_missing_run}tar"}
1608 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1610 # Installed binaries are usually stripped using `strip' when the user
1611 # run `make install-strip'. However `strip' might not be the right
1612 # tool to use in cross-compilation environments, therefore Automake
1613 # will honor the `STRIP' environment variable to overrule this program.
1614 if test "$cross_compiling" != no; then
1615 if test -n "$ac_tool_prefix"; then
1616 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1617 set dummy ${ac_tool_prefix}strip; ac_word=$2
1618 echo "$as_me:$LINENO: checking for $ac_word" >&5
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620 if test "${ac_cv_prog_STRIP+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 else
1623 if test -n "$STRIP"; then
1624 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1625 else
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627 for as_dir in $PATH
1629 IFS=$as_save_IFS
1630 test -z "$as_dir" && as_dir=.
1631 for ac_exec_ext in '' $ac_executable_extensions; do
1632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1633 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1635 break 2
1637 done
1638 done
1642 STRIP=$ac_cv_prog_STRIP
1643 if test -n "$STRIP"; then
1644 echo "$as_me:$LINENO: result: $STRIP" >&5
1645 echo "${ECHO_T}$STRIP" >&6
1646 else
1647 echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1652 if test -z "$ac_cv_prog_STRIP"; then
1653 ac_ct_STRIP=$STRIP
1654 # Extract the first word of "strip", so it can be a program name with args.
1655 set dummy strip; ac_word=$2
1656 echo "$as_me:$LINENO: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1660 else
1661 if test -n "$ac_ct_STRIP"; then
1662 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1663 else
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 for as_dir in $PATH
1667 IFS=$as_save_IFS
1668 test -z "$as_dir" && as_dir=.
1669 for ac_exec_ext in '' $ac_executable_extensions; do
1670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1671 ac_cv_prog_ac_ct_STRIP="strip"
1672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673 break 2
1675 done
1676 done
1678 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1681 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1682 if test -n "$ac_ct_STRIP"; then
1683 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1684 echo "${ECHO_T}$ac_ct_STRIP" >&6
1685 else
1686 echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1690 STRIP=$ac_ct_STRIP
1691 else
1692 STRIP="$ac_cv_prog_STRIP"
1696 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1698 # We need awk for the "check" target. The system "awk" is bad on
1699 # some platforms.
1703 ac_config_headers="$ac_config_headers config.h"
1705 ac_ext=c
1706 ac_cpp='$CPP $CPPFLAGS'
1707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1713 # We check this before AC_PROG_CC fills blank CFLAGS with "-g -O2".
1714 if test "x$CFLAGS" = "x"; then
1715 DEFAULT_CFLAGS=yes
1716 else
1717 DEFAULT_CFLAGS=no
1720 # Checks for programs.
1721 ac_ext=c
1722 ac_cpp='$CPP $CPPFLAGS'
1723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1726 if test -n "$ac_tool_prefix"; then
1727 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1728 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1729 echo "$as_me:$LINENO: checking for $ac_word" >&5
1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731 if test "${ac_cv_prog_CC+set}" = set; then
1732 echo $ECHO_N "(cached) $ECHO_C" >&6
1733 else
1734 if test -n "$CC"; then
1735 ac_cv_prog_CC="$CC" # Let the user override the test.
1736 else
1737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 for as_dir in $PATH
1740 IFS=$as_save_IFS
1741 test -z "$as_dir" && as_dir=.
1742 for ac_exec_ext in '' $ac_executable_extensions; do
1743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1744 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1746 break 2
1748 done
1749 done
1753 CC=$ac_cv_prog_CC
1754 if test -n "$CC"; then
1755 echo "$as_me:$LINENO: result: $CC" >&5
1756 echo "${ECHO_T}$CC" >&6
1757 else
1758 echo "$as_me:$LINENO: result: no" >&5
1759 echo "${ECHO_T}no" >&6
1763 if test -z "$ac_cv_prog_CC"; then
1764 ac_ct_CC=$CC
1765 # Extract the first word of "gcc", so it can be a program name with args.
1766 set dummy gcc; ac_word=$2
1767 echo "$as_me:$LINENO: checking for $ac_word" >&5
1768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1769 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 else
1772 if test -n "$ac_ct_CC"; then
1773 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1774 else
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 for as_dir in $PATH
1778 IFS=$as_save_IFS
1779 test -z "$as_dir" && as_dir=.
1780 for ac_exec_ext in '' $ac_executable_extensions; do
1781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1782 ac_cv_prog_ac_ct_CC="gcc"
1783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1784 break 2
1786 done
1787 done
1791 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1792 if test -n "$ac_ct_CC"; then
1793 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1794 echo "${ECHO_T}$ac_ct_CC" >&6
1795 else
1796 echo "$as_me:$LINENO: result: no" >&5
1797 echo "${ECHO_T}no" >&6
1800 CC=$ac_ct_CC
1801 else
1802 CC="$ac_cv_prog_CC"
1805 if test -z "$CC"; then
1806 if test -n "$ac_tool_prefix"; then
1807 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1808 set dummy ${ac_tool_prefix}cc; ac_word=$2
1809 echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811 if test "${ac_cv_prog_CC+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 else
1814 if test -n "$CC"; then
1815 ac_cv_prog_CC="$CC" # Let the user override the test.
1816 else
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 for as_dir in $PATH
1820 IFS=$as_save_IFS
1821 test -z "$as_dir" && as_dir=.
1822 for ac_exec_ext in '' $ac_executable_extensions; do
1823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824 ac_cv_prog_CC="${ac_tool_prefix}cc"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826 break 2
1828 done
1829 done
1833 CC=$ac_cv_prog_CC
1834 if test -n "$CC"; then
1835 echo "$as_me:$LINENO: result: $CC" >&5
1836 echo "${ECHO_T}$CC" >&6
1837 else
1838 echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1843 if test -z "$ac_cv_prog_CC"; then
1844 ac_ct_CC=$CC
1845 # Extract the first word of "cc", so it can be a program name with args.
1846 set dummy cc; ac_word=$2
1847 echo "$as_me:$LINENO: checking for $ac_word" >&5
1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852 if test -n "$ac_ct_CC"; then
1853 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1854 else
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1858 IFS=$as_save_IFS
1859 test -z "$as_dir" && as_dir=.
1860 for ac_exec_ext in '' $ac_executable_extensions; do
1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862 ac_cv_prog_ac_ct_CC="cc"
1863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864 break 2
1866 done
1867 done
1871 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1872 if test -n "$ac_ct_CC"; then
1873 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1874 echo "${ECHO_T}$ac_ct_CC" >&6
1875 else
1876 echo "$as_me:$LINENO: result: no" >&5
1877 echo "${ECHO_T}no" >&6
1880 CC=$ac_ct_CC
1881 else
1882 CC="$ac_cv_prog_CC"
1886 if test -z "$CC"; then
1887 # Extract the first word of "cc", so it can be a program name with args.
1888 set dummy cc; ac_word=$2
1889 echo "$as_me:$LINENO: checking for $ac_word" >&5
1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891 if test "${ac_cv_prog_CC+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 else
1894 if test -n "$CC"; then
1895 ac_cv_prog_CC="$CC" # Let the user override the test.
1896 else
1897 ac_prog_rejected=no
1898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 for as_dir in $PATH
1901 IFS=$as_save_IFS
1902 test -z "$as_dir" && as_dir=.
1903 for ac_exec_ext in '' $ac_executable_extensions; do
1904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1906 ac_prog_rejected=yes
1907 continue
1909 ac_cv_prog_CC="cc"
1910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 break 2
1913 done
1914 done
1916 if test $ac_prog_rejected = yes; then
1917 # We found a bogon in the path, so make sure we never use it.
1918 set dummy $ac_cv_prog_CC
1919 shift
1920 if test $# != 0; then
1921 # We chose a different compiler from the bogus one.
1922 # However, it has the same basename, so the bogon will be chosen
1923 # first if we set CC to just the basename; use the full file name.
1924 shift
1925 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1930 CC=$ac_cv_prog_CC
1931 if test -n "$CC"; then
1932 echo "$as_me:$LINENO: result: $CC" >&5
1933 echo "${ECHO_T}$CC" >&6
1934 else
1935 echo "$as_me:$LINENO: result: no" >&5
1936 echo "${ECHO_T}no" >&6
1940 if test -z "$CC"; then
1941 if test -n "$ac_tool_prefix"; then
1942 for ac_prog in cl
1944 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1945 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1946 echo "$as_me:$LINENO: checking for $ac_word" >&5
1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948 if test "${ac_cv_prog_CC+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 else
1951 if test -n "$CC"; then
1952 ac_cv_prog_CC="$CC" # Let the user override the test.
1953 else
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 for as_dir in $PATH
1957 IFS=$as_save_IFS
1958 test -z "$as_dir" && as_dir=.
1959 for ac_exec_ext in '' $ac_executable_extensions; do
1960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963 break 2
1965 done
1966 done
1970 CC=$ac_cv_prog_CC
1971 if test -n "$CC"; then
1972 echo "$as_me:$LINENO: result: $CC" >&5
1973 echo "${ECHO_T}$CC" >&6
1974 else
1975 echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1979 test -n "$CC" && break
1980 done
1982 if test -z "$CC"; then
1983 ac_ct_CC=$CC
1984 for ac_prog in cl
1986 # Extract the first word of "$ac_prog", so it can be a program name with args.
1987 set dummy $ac_prog; ac_word=$2
1988 echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 else
1993 if test -n "$ac_ct_CC"; then
1994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1995 else
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 for as_dir in $PATH
1999 IFS=$as_save_IFS
2000 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003 ac_cv_prog_ac_ct_CC="$ac_prog"
2004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 break 2
2007 done
2008 done
2012 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2013 if test -n "$ac_ct_CC"; then
2014 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2015 echo "${ECHO_T}$ac_ct_CC" >&6
2016 else
2017 echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6
2021 test -n "$ac_ct_CC" && break
2022 done
2024 CC=$ac_ct_CC
2030 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2031 See \`config.log' for more details." >&5
2032 echo "$as_me: error: no acceptable C compiler found in \$PATH
2033 See \`config.log' for more details." >&2;}
2034 { (exit 1); exit 1; }; }
2036 # Provide some information about the compiler.
2037 echo "$as_me:$LINENO:" \
2038 "checking for C compiler version" >&5
2039 ac_compiler=`set X $ac_compile; echo $2`
2040 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2041 (eval $ac_compiler --version </dev/null >&5) 2>&5
2042 ac_status=$?
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }
2045 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2046 (eval $ac_compiler -v </dev/null >&5) 2>&5
2047 ac_status=$?
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); }
2050 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2051 (eval $ac_compiler -V </dev/null >&5) 2>&5
2052 ac_status=$?
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }
2056 cat >conftest.$ac_ext <<_ACEOF
2057 #line $LINENO "configure"
2058 /* confdefs.h. */
2059 _ACEOF
2060 cat confdefs.h >>conftest.$ac_ext
2061 cat >>conftest.$ac_ext <<_ACEOF
2062 /* end confdefs.h. */
2065 main ()
2069 return 0;
2071 _ACEOF
2072 ac_clean_files_save=$ac_clean_files
2073 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2074 # Try to create an executable without -o first, disregard a.out.
2075 # It will help us diagnose broken compilers, and finding out an intuition
2076 # of exeext.
2077 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2078 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2079 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2080 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2081 (eval $ac_link_default) 2>&5
2082 ac_status=$?
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }; then
2085 # Find the output, starting from the most likely. This scheme is
2086 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2087 # resort.
2089 # Be careful to initialize this variable, since it used to be cached.
2090 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2091 ac_cv_exeext=
2092 # b.out is created by i960 compilers.
2093 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2095 test -f "$ac_file" || continue
2096 case $ac_file in
2097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2099 conftest.$ac_ext )
2100 # This is the source file.
2102 [ab].out )
2103 # We found the default executable, but exeext='' is most
2104 # certainly right.
2105 break;;
2106 *.* )
2107 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2108 # FIXME: I believe we export ac_cv_exeext for Libtool,
2109 # but it would be cool to find out if it's true. Does anybody
2110 # maintain Libtool? --akim.
2111 export ac_cv_exeext
2112 break;;
2114 break;;
2115 esac
2116 done
2117 else
2118 echo "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.$ac_ext >&5
2121 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: C compiler cannot create executables
2124 See \`config.log' for more details." >&2;}
2125 { (exit 77); exit 77; }; }
2128 ac_exeext=$ac_cv_exeext
2129 echo "$as_me:$LINENO: result: $ac_file" >&5
2130 echo "${ECHO_T}$ac_file" >&6
2132 # Check the compiler produces executables we can run. If not, either
2133 # the compiler is broken, or we cross compile.
2134 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2135 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2136 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2137 # If not cross compiling, check that we can run a simple program.
2138 if test "$cross_compiling" != yes; then
2139 if { ac_try='./$ac_file'
2140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141 (eval $ac_try) 2>&5
2142 ac_status=$?
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }; }; then
2145 cross_compiling=no
2146 else
2147 if test "$cross_compiling" = maybe; then
2148 cross_compiling=yes
2149 else
2150 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2151 If you meant to cross compile, use \`--host'.
2152 See \`config.log' for more details." >&5
2153 echo "$as_me: error: cannot run C compiled programs.
2154 If you meant to cross compile, use \`--host'.
2155 See \`config.log' for more details." >&2;}
2156 { (exit 1); exit 1; }; }
2160 echo "$as_me:$LINENO: result: yes" >&5
2161 echo "${ECHO_T}yes" >&6
2163 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2164 ac_clean_files=$ac_clean_files_save
2165 # Check the compiler produces executables we can run. If not, either
2166 # the compiler is broken, or we cross compile.
2167 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2168 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2169 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2170 echo "${ECHO_T}$cross_compiling" >&6
2172 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2173 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2175 (eval $ac_link) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; then
2179 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2180 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2181 # work properly (i.e., refer to `conftest.exe'), while it won't with
2182 # `rm'.
2183 for ac_file in conftest.exe conftest conftest.*; do
2184 test -f "$ac_file" || continue
2185 case $ac_file in
2186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2187 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2188 export ac_cv_exeext
2189 break;;
2190 * ) break;;
2191 esac
2192 done
2193 else
2194 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2195 See \`config.log' for more details." >&5
2196 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2197 See \`config.log' for more details." >&2;}
2198 { (exit 1); exit 1; }; }
2201 rm -f conftest$ac_cv_exeext
2202 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2203 echo "${ECHO_T}$ac_cv_exeext" >&6
2205 rm -f conftest.$ac_ext
2206 EXEEXT=$ac_cv_exeext
2207 ac_exeext=$EXEEXT
2208 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2209 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2210 if test "${ac_cv_objext+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213 cat >conftest.$ac_ext <<_ACEOF
2214 #line $LINENO "configure"
2215 /* confdefs.h. */
2216 _ACEOF
2217 cat confdefs.h >>conftest.$ac_ext
2218 cat >>conftest.$ac_ext <<_ACEOF
2219 /* end confdefs.h. */
2222 main ()
2226 return 0;
2228 _ACEOF
2229 rm -f conftest.o conftest.obj
2230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231 (eval $ac_compile) 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; then
2235 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2236 case $ac_file in
2237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2238 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2239 break;;
2240 esac
2241 done
2242 else
2243 echo "$as_me: failed program was:" >&5
2244 sed 's/^/| /' conftest.$ac_ext >&5
2246 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2247 See \`config.log' for more details." >&5
2248 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2249 See \`config.log' for more details." >&2;}
2250 { (exit 1); exit 1; }; }
2253 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2255 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2256 echo "${ECHO_T}$ac_cv_objext" >&6
2257 OBJEXT=$ac_cv_objext
2258 ac_objext=$OBJEXT
2259 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2260 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2261 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 else
2264 cat >conftest.$ac_ext <<_ACEOF
2265 #line $LINENO "configure"
2266 /* confdefs.h. */
2267 _ACEOF
2268 cat confdefs.h >>conftest.$ac_ext
2269 cat >>conftest.$ac_ext <<_ACEOF
2270 /* end confdefs.h. */
2273 main ()
2275 #ifndef __GNUC__
2276 choke me
2277 #endif
2280 return 0;
2282 _ACEOF
2283 rm -f conftest.$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285 (eval $ac_compile) 2>&5
2286 ac_status=$?
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); } &&
2289 { ac_try='test -s conftest.$ac_objext'
2290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291 (eval $ac_try) 2>&5
2292 ac_status=$?
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; }; then
2295 ac_compiler_gnu=yes
2296 else
2297 echo "$as_me: failed program was:" >&5
2298 sed 's/^/| /' conftest.$ac_ext >&5
2300 ac_compiler_gnu=no
2302 rm -f conftest.$ac_objext conftest.$ac_ext
2303 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2306 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2307 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2308 GCC=`test $ac_compiler_gnu = yes && echo yes`
2309 ac_test_CFLAGS=${CFLAGS+set}
2310 ac_save_CFLAGS=$CFLAGS
2311 CFLAGS="-g"
2312 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2313 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2314 if test "${ac_cv_prog_cc_g+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 else
2317 cat >conftest.$ac_ext <<_ACEOF
2318 #line $LINENO "configure"
2319 /* confdefs.h. */
2320 _ACEOF
2321 cat confdefs.h >>conftest.$ac_ext
2322 cat >>conftest.$ac_ext <<_ACEOF
2323 /* end confdefs.h. */
2326 main ()
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>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try='test -s conftest.$ac_objext'
2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341 (eval $ac_try) 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; }; then
2345 ac_cv_prog_cc_g=yes
2346 else
2347 echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2350 ac_cv_prog_cc_g=no
2352 rm -f conftest.$ac_objext conftest.$ac_ext
2354 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2355 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2356 if test "$ac_test_CFLAGS" = set; then
2357 CFLAGS=$ac_save_CFLAGS
2358 elif test $ac_cv_prog_cc_g = yes; then
2359 if test "$GCC" = yes; then
2360 CFLAGS="-g -O2"
2361 else
2362 CFLAGS="-g"
2364 else
2365 if test "$GCC" = yes; then
2366 CFLAGS="-O2"
2367 else
2368 CFLAGS=
2371 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2372 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2373 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2375 else
2376 ac_cv_prog_cc_stdc=no
2377 ac_save_CC=$CC
2378 cat >conftest.$ac_ext <<_ACEOF
2379 #line $LINENO "configure"
2380 /* confdefs.h. */
2381 _ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h. */
2385 #include <stdarg.h>
2386 #include <stdio.h>
2387 #include <sys/types.h>
2388 #include <sys/stat.h>
2389 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2390 struct buf { int x; };
2391 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2392 static char *e (p, i)
2393 char **p;
2394 int i;
2396 return p[i];
2398 static char *f (char * (*g) (char **, int), char **p, ...)
2400 char *s;
2401 va_list v;
2402 va_start (v,p);
2403 s = g (p, va_arg (v,int));
2404 va_end (v);
2405 return s;
2407 int test (int i, double x);
2408 struct s1 {int (*f) (int a);};
2409 struct s2 {int (*f) (double a);};
2410 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2411 int argc;
2412 char **argv;
2414 main ()
2416 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2418 return 0;
2420 _ACEOF
2421 # Don't try gcc -ansi; that turns off useful extensions and
2422 # breaks some systems' header files.
2423 # AIX -qlanglvl=ansi
2424 # Ultrix and OSF/1 -std1
2425 # HP-UX 10.20 and later -Ae
2426 # HP-UX older versions -Aa -D_HPUX_SOURCE
2427 # SVR4 -Xc -D__EXTENSIONS__
2428 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2430 CC="$ac_save_CC $ac_arg"
2431 rm -f conftest.$ac_objext
2432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2433 (eval $ac_compile) 2>&5
2434 ac_status=$?
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); } &&
2437 { ac_try='test -s conftest.$ac_objext'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 (eval $ac_try) 2>&5
2440 ac_status=$?
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2443 ac_cv_prog_cc_stdc=$ac_arg
2444 break
2445 else
2446 echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2450 rm -f conftest.$ac_objext
2451 done
2452 rm -f conftest.$ac_ext conftest.$ac_objext
2453 CC=$ac_save_CC
2457 case "x$ac_cv_prog_cc_stdc" in
2458 x|xno)
2459 echo "$as_me:$LINENO: result: none needed" >&5
2460 echo "${ECHO_T}none needed" >&6 ;;
2462 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2463 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2464 CC="$CC $ac_cv_prog_cc_stdc" ;;
2465 esac
2467 # Some people use a C++ compiler to compile C. Since we use `exit',
2468 # in C++ we need to declare it. In case someone uses the same compiler
2469 # for both compiling C and C++ we need to have the C++ compiler decide
2470 # the declaration of exit, since it's the most demanding environment.
2471 cat >conftest.$ac_ext <<_ACEOF
2472 #ifndef __cplusplus
2473 choke me
2474 #endif
2475 _ACEOF
2476 rm -f conftest.$ac_objext
2477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478 (eval $ac_compile) 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } &&
2482 { ac_try='test -s conftest.$ac_objext'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 (eval $ac_try) 2>&5
2485 ac_status=$?
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2488 for ac_declaration in \
2490 '#include <stdlib.h>' \
2491 'extern "C" void std::exit (int) throw (); using std::exit;' \
2492 'extern "C" void std::exit (int); using std::exit;' \
2493 'extern "C" void exit (int) throw ();' \
2494 'extern "C" void exit (int);' \
2495 'void exit (int);'
2497 cat >conftest.$ac_ext <<_ACEOF
2498 #line $LINENO "configure"
2499 /* confdefs.h. */
2500 _ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2504 #include <stdlib.h>
2505 $ac_declaration
2507 main ()
2509 exit (42);
2511 return 0;
2513 _ACEOF
2514 rm -f conftest.$ac_objext
2515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2516 (eval $ac_compile) 2>&5
2517 ac_status=$?
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); } &&
2520 { ac_try='test -s conftest.$ac_objext'
2521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2522 (eval $ac_try) 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; }; then
2527 else
2528 echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2531 continue
2533 rm -f conftest.$ac_objext conftest.$ac_ext
2534 cat >conftest.$ac_ext <<_ACEOF
2535 #line $LINENO "configure"
2536 /* confdefs.h. */
2537 _ACEOF
2538 cat confdefs.h >>conftest.$ac_ext
2539 cat >>conftest.$ac_ext <<_ACEOF
2540 /* end confdefs.h. */
2541 $ac_declaration
2543 main ()
2545 exit (42);
2547 return 0;
2549 _ACEOF
2550 rm -f conftest.$ac_objext
2551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552 (eval $ac_compile) 2>&5
2553 ac_status=$?
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); } &&
2556 { ac_try='test -s conftest.$ac_objext'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 (eval $ac_try) 2>&5
2559 ac_status=$?
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; }; then
2562 break
2563 else
2564 echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2568 rm -f conftest.$ac_objext conftest.$ac_ext
2569 done
2570 rm -f conftest*
2571 if test -n "$ac_declaration"; then
2572 echo '#ifdef __cplusplus' >>confdefs.h
2573 echo $ac_declaration >>confdefs.h
2574 echo '#endif' >>confdefs.h
2577 else
2578 echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2582 rm -f conftest.$ac_objext conftest.$ac_ext
2583 ac_ext=c
2584 ac_cpp='$CPP $CPPFLAGS'
2585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588 DEPDIR="${am__leading_dot}deps"
2590 ac_config_commands="$ac_config_commands depfiles"
2593 am_make=${MAKE-make}
2594 cat > confinc << 'END'
2595 am__doit:
2596 @echo done
2597 .PHONY: am__doit
2599 # If we don't find an include directive, just comment out the code.
2600 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2601 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2602 am__include="#"
2603 am__quote=
2604 _am_result=none
2605 # First try GNU make style include.
2606 echo "include confinc" > confmf
2607 # We grep out `Entering directory' and `Leaving directory'
2608 # messages which can occur if `w' ends up in MAKEFLAGS.
2609 # In particular we don't look at `^make:' because GNU make might
2610 # be invoked under some other name (usually "gmake"), in which
2611 # case it prints its new name instead of `make'.
2612 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2613 am__include=include
2614 am__quote=
2615 _am_result=GNU
2617 # Now try BSD make style include.
2618 if test "$am__include" = "#"; then
2619 echo '.include "confinc"' > confmf
2620 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2621 am__include=.include
2622 am__quote="\""
2623 _am_result=BSD
2628 echo "$as_me:$LINENO: result: $_am_result" >&5
2629 echo "${ECHO_T}$_am_result" >&6
2630 rm -f confinc confmf
2632 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2633 if test "${enable_dependency_tracking+set}" = set; then
2634 enableval="$enable_dependency_tracking"
2637 if test "x$enable_dependency_tracking" != xno; then
2638 am_depcomp="$ac_aux_dir/depcomp"
2639 AMDEPBACKSLASH='\'
2643 if test "x$enable_dependency_tracking" != xno; then
2644 AMDEP_TRUE=
2645 AMDEP_FALSE='#'
2646 else
2647 AMDEP_TRUE='#'
2648 AMDEP_FALSE=
2654 depcc="$CC" am_compiler_list=
2656 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2657 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2658 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660 else
2661 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2662 # We make a subdir and do the tests there. Otherwise we can end up
2663 # making bogus files that we don't know about and never remove. For
2664 # instance it was reported that on HP-UX the gcc test will end up
2665 # making a dummy file named `D' -- because `-MD' means `put the output
2666 # in D'.
2667 mkdir conftest.dir
2668 # Copy depcomp to subdir because otherwise we won't find it if we're
2669 # using a relative directory.
2670 cp "$am_depcomp" conftest.dir
2671 cd conftest.dir
2672 # We will build objects and dependencies in a subdirectory because
2673 # it helps to detect inapplicable dependency modes. For instance
2674 # both Tru64's cc and ICC support -MD to output dependencies as a
2675 # side effect of compilation, but ICC will put the dependencies in
2676 # the current directory while Tru64 will put them in the object
2677 # directory.
2678 mkdir sub
2680 am_cv_CC_dependencies_compiler_type=none
2681 if test "$am_compiler_list" = ""; then
2682 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2684 for depmode in $am_compiler_list; do
2685 # Setup a source with many dependencies, because some compilers
2686 # like to wrap large dependency lists on column 80 (with \), and
2687 # we should not choose a depcomp mode which is confused by this.
2689 # We need to recreate these files for each test, as the compiler may
2690 # overwrite some of them when testing with obscure command lines.
2691 # This happens at least with the AIX C compiler.
2692 : > sub/conftest.c
2693 for i in 1 2 3 4 5 6; do
2694 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2695 : > sub/conftst$i.h
2696 done
2697 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2699 case $depmode in
2700 nosideeffect)
2701 # after this tag, mechanisms are not by side-effect, so they'll
2702 # only be used when explicitly requested
2703 if test "x$enable_dependency_tracking" = xyes; then
2704 continue
2705 else
2706 break
2709 none) break ;;
2710 esac
2711 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2712 # mode. It turns out that the SunPro C++ compiler does not properly
2713 # handle `-M -o', and we need to detect this.
2714 if depmode=$depmode \
2715 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2716 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2717 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2718 >/dev/null 2>conftest.err &&
2719 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2720 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2721 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2722 # icc doesn't choke on unknown options, it will just issue warnings
2723 # (even with -Werror). So we grep stderr for any message
2724 # that says an option was ignored.
2725 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2726 am_cv_CC_dependencies_compiler_type=$depmode
2727 break
2730 done
2732 cd ..
2733 rm -rf conftest.dir
2734 else
2735 am_cv_CC_dependencies_compiler_type=none
2739 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2740 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2741 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2746 test "x$enable_dependency_tracking" != xno \
2747 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2748 am__fastdepCC_TRUE=
2749 am__fastdepCC_FALSE='#'
2750 else
2751 am__fastdepCC_TRUE='#'
2752 am__fastdepCC_FALSE=
2756 if test -n "$ac_tool_prefix"; then
2757 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2758 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2759 echo "$as_me:$LINENO: checking for $ac_word" >&5
2760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2761 if test "${ac_cv_prog_RANLIB+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764 if test -n "$RANLIB"; then
2765 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2766 else
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 break 2
2778 done
2779 done
2783 RANLIB=$ac_cv_prog_RANLIB
2784 if test -n "$RANLIB"; then
2785 echo "$as_me:$LINENO: result: $RANLIB" >&5
2786 echo "${ECHO_T}$RANLIB" >&6
2787 else
2788 echo "$as_me:$LINENO: result: no" >&5
2789 echo "${ECHO_T}no" >&6
2793 if test -z "$ac_cv_prog_RANLIB"; then
2794 ac_ct_RANLIB=$RANLIB
2795 # Extract the first word of "ranlib", so it can be a program name with args.
2796 set dummy ranlib; ac_word=$2
2797 echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2799 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802 if test -n "$ac_ct_RANLIB"; then
2803 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812 ac_cv_prog_ac_ct_RANLIB="ranlib"
2813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 break 2
2816 done
2817 done
2819 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2822 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2823 if test -n "$ac_ct_RANLIB"; then
2824 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2825 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2826 else
2827 echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6
2831 RANLIB=$ac_ct_RANLIB
2832 else
2833 RANLIB="$ac_cv_prog_RANLIB"
2838 # Default CFLAGS.
2839 if test "x$GCC" = "xyes" && test "$DEFAULT_CFLAGS" = "yes"; then
2840 CFLAGS="-Wall -O2 -fomit-frame-pointer -ffast-math"
2844 # Checks for LFS flags, we may not handle big files, but it doesn't hurt.
2846 # Check whether --enable-largefile or --disable-largefile was given.
2847 if test "${enable_largefile+set}" = set; then
2848 enableval="$enable_largefile"
2851 if test "$enable_largefile" != no; then
2853 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2854 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2855 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 else
2858 ac_cv_sys_largefile_CC=no
2859 if test "$GCC" != yes; then
2860 ac_save_CC=$CC
2861 while :; do
2862 # IRIX 6.2 and later do not support large files by default,
2863 # so use the C compiler's -n32 option if that helps.
2864 cat >conftest.$ac_ext <<_ACEOF
2865 #line $LINENO "configure"
2866 /* confdefs.h. */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2871 #include <sys/types.h>
2872 /* Check that off_t can represent 2**63 - 1 correctly.
2873 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2874 since some C++ compilers masquerading as C compilers
2875 incorrectly reject 9223372036854775807. */
2876 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2877 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2878 && LARGE_OFF_T % 2147483647 == 1)
2879 ? 1 : -1];
2881 main ()
2885 return 0;
2887 _ACEOF
2888 rm -f conftest.$ac_objext
2889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890 (eval $ac_compile) 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 (eval $ac_try) 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2900 break
2901 else
2902 echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2906 rm -f conftest.$ac_objext
2907 CC="$CC -n32"
2908 rm -f conftest.$ac_objext
2909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2910 (eval $ac_compile) 2>&5
2911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } &&
2914 { ac_try='test -s conftest.$ac_objext'
2915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916 (eval $ac_try) 2>&5
2917 ac_status=$?
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; }; then
2920 ac_cv_sys_largefile_CC=' -n32'; break
2921 else
2922 echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2926 rm -f conftest.$ac_objext
2927 break
2928 done
2929 CC=$ac_save_CC
2930 rm -f conftest.$ac_ext
2933 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2934 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2935 if test "$ac_cv_sys_largefile_CC" != no; then
2936 CC=$CC$ac_cv_sys_largefile_CC
2939 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2940 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2941 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944 while :; do
2945 ac_cv_sys_file_offset_bits=no
2946 cat >conftest.$ac_ext <<_ACEOF
2947 #line $LINENO "configure"
2948 /* confdefs.h. */
2949 _ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2953 #include <sys/types.h>
2954 /* Check that off_t can represent 2**63 - 1 correctly.
2955 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2956 since some C++ compilers masquerading as C compilers
2957 incorrectly reject 9223372036854775807. */
2958 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2959 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2960 && LARGE_OFF_T % 2147483647 == 1)
2961 ? 1 : -1];
2963 main ()
2967 return 0;
2969 _ACEOF
2970 rm -f conftest.$ac_objext
2971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2972 (eval $ac_compile) 2>&5
2973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } &&
2976 { ac_try='test -s conftest.$ac_objext'
2977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2978 (eval $ac_try) 2>&5
2979 ac_status=$?
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }; }; then
2982 break
2983 else
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2988 rm -f conftest.$ac_objext conftest.$ac_ext
2989 cat >conftest.$ac_ext <<_ACEOF
2990 #line $LINENO "configure"
2991 /* confdefs.h. */
2992 _ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
2996 #define _FILE_OFFSET_BITS 64
2997 #include <sys/types.h>
2998 /* Check that off_t can represent 2**63 - 1 correctly.
2999 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3000 since some C++ compilers masquerading as C compilers
3001 incorrectly reject 9223372036854775807. */
3002 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3003 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3004 && LARGE_OFF_T % 2147483647 == 1)
3005 ? 1 : -1];
3007 main ()
3011 return 0;
3013 _ACEOF
3014 rm -f conftest.$ac_objext
3015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3016 (eval $ac_compile) 2>&5
3017 ac_status=$?
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } &&
3020 { ac_try='test -s conftest.$ac_objext'
3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022 (eval $ac_try) 2>&5
3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; }; then
3026 ac_cv_sys_file_offset_bits=64; break
3027 else
3028 echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3032 rm -f conftest.$ac_objext conftest.$ac_ext
3033 break
3034 done
3036 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3037 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3038 if test "$ac_cv_sys_file_offset_bits" != no; then
3040 cat >>confdefs.h <<_ACEOF
3041 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3042 _ACEOF
3045 rm -f conftest*
3046 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3047 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3048 if test "${ac_cv_sys_large_files+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 else
3051 while :; do
3052 ac_cv_sys_large_files=no
3053 cat >conftest.$ac_ext <<_ACEOF
3054 #line $LINENO "configure"
3055 /* confdefs.h. */
3056 _ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3060 #include <sys/types.h>
3061 /* Check that off_t can represent 2**63 - 1 correctly.
3062 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3063 since some C++ compilers masquerading as C compilers
3064 incorrectly reject 9223372036854775807. */
3065 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3066 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3067 && LARGE_OFF_T % 2147483647 == 1)
3068 ? 1 : -1];
3070 main ()
3074 return 0;
3076 _ACEOF
3077 rm -f conftest.$ac_objext
3078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3079 (eval $ac_compile) 2>&5
3080 ac_status=$?
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try='test -s conftest.$ac_objext'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085 (eval $ac_try) 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; }; then
3089 break
3090 else
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3095 rm -f conftest.$ac_objext conftest.$ac_ext
3096 cat >conftest.$ac_ext <<_ACEOF
3097 #line $LINENO "configure"
3098 /* confdefs.h. */
3099 _ACEOF
3100 cat confdefs.h >>conftest.$ac_ext
3101 cat >>conftest.$ac_ext <<_ACEOF
3102 /* end confdefs.h. */
3103 #define _LARGE_FILES 1
3104 #include <sys/types.h>
3105 /* Check that off_t can represent 2**63 - 1 correctly.
3106 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3107 since some C++ compilers masquerading as C compilers
3108 incorrectly reject 9223372036854775807. */
3109 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3110 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3111 && LARGE_OFF_T % 2147483647 == 1)
3112 ? 1 : -1];
3114 main ()
3118 return 0;
3120 _ACEOF
3121 rm -f conftest.$ac_objext
3122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3123 (eval $ac_compile) 2>&5
3124 ac_status=$?
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } &&
3127 { ac_try='test -s conftest.$ac_objext'
3128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3129 (eval $ac_try) 2>&5
3130 ac_status=$?
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; }; then
3133 ac_cv_sys_large_files=1; break
3134 else
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3139 rm -f conftest.$ac_objext conftest.$ac_ext
3140 break
3141 done
3143 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3144 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3145 if test "$ac_cv_sys_large_files" != no; then
3147 cat >>confdefs.h <<_ACEOF
3148 #define _LARGE_FILES $ac_cv_sys_large_files
3149 _ACEOF
3152 rm -f conftest*
3156 # Checks for libm.
3157 echo "$as_me:$LINENO: checking for atan2 in -lm" >&5
3158 echo $ECHO_N "checking for atan2 in -lm... $ECHO_C" >&6
3159 if test "${ac_cv_lib_m_atan2+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 else
3162 ac_check_lib_save_LIBS=$LIBS
3163 LIBS="-lm $LIBS"
3164 cat >conftest.$ac_ext <<_ACEOF
3165 #line $LINENO "configure"
3166 /* confdefs.h. */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3172 /* Override any gcc2 internal prototype to avoid an error. */
3173 #ifdef __cplusplus
3174 extern "C"
3175 #endif
3176 /* We use char because int might match the return type of a gcc2
3177 builtin and then its argument prototype would still apply. */
3178 char atan2 ();
3180 main ()
3182 atan2 ();
3184 return 0;
3186 _ACEOF
3187 rm -f conftest.$ac_objext conftest$ac_exeext
3188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3189 (eval $ac_link) 2>&5
3190 ac_status=$?
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); } &&
3193 { ac_try='test -s conftest$ac_exeext'
3194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195 (eval $ac_try) 2>&5
3196 ac_status=$?
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3199 ac_cv_lib_m_atan2=yes
3200 else
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3204 ac_cv_lib_m_atan2=no
3206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3207 LIBS=$ac_check_lib_save_LIBS
3209 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2" >&5
3210 echo "${ECHO_T}$ac_cv_lib_m_atan2" >&6
3211 if test $ac_cv_lib_m_atan2 = yes; then
3213 LDFLAGS="-lm $LDFLAGS"
3215 else
3217 { { echo "$as_me:$LINENO: error: Cannot use -lm" >&5
3218 echo "$as_me: error: Cannot use -lm" >&2;}
3219 { (exit 1); exit 1; }; }
3225 # Checks for hypot (SVID 3, BSD 4.3).
3226 # The replacement is #defined in the source.
3228 for ac_func in hypot
3230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3231 echo "$as_me:$LINENO: checking for $ac_func" >&5
3232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3233 if eval "test \"\${$as_ac_var+set}\" = set"; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236 cat >conftest.$ac_ext <<_ACEOF
3237 #line $LINENO "configure"
3238 /* confdefs.h. */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3243 /* System header to define __stub macros and hopefully few prototypes,
3244 which can conflict with char $ac_func (); below.
3245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3246 <limits.h> exists even on freestanding compilers. */
3247 #ifdef __STDC__
3248 # include <limits.h>
3249 #else
3250 # include <assert.h>
3251 #endif
3252 /* Override any gcc2 internal prototype to avoid an error. */
3253 #ifdef __cplusplus
3254 extern "C"
3256 #endif
3257 /* We use char because int might match the return type of a gcc2
3258 builtin and then its argument prototype would still apply. */
3259 char $ac_func ();
3260 /* The GNU C library defines this for functions which it implements
3261 to always fail with ENOSYS. Some functions are actually named
3262 something starting with __ and the normal name is an alias. */
3263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3264 choke me
3265 #else
3266 char (*f) () = $ac_func;
3267 #endif
3268 #ifdef __cplusplus
3270 #endif
3273 main ()
3275 return f != $ac_func;
3277 return 0;
3279 _ACEOF
3280 rm -f conftest.$ac_objext conftest$ac_exeext
3281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3282 (eval $ac_link) 2>&5
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 { ac_try='test -s conftest$ac_exeext'
3287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288 (eval $ac_try) 2>&5
3289 ac_status=$?
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; }; then
3292 eval "$as_ac_var=yes"
3293 else
3294 echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3297 eval "$as_ac_var=no"
3299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3302 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3303 if test `eval echo '${'$as_ac_var'}'` = yes; then
3304 cat >>confdefs.h <<_ACEOF
3305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3306 _ACEOF
3309 done
3313 # Checks for math functions using floats.
3314 # Using floats instead of doubles makes gcc use SSE with -msse
3315 # The replacement are #defined in math_floats.h.
3317 for ac_func in sqrtf
3319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3320 echo "$as_me:$LINENO: checking for $ac_func" >&5
3321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3322 if eval "test \"\${$as_ac_var+set}\" = set"; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325 cat >conftest.$ac_ext <<_ACEOF
3326 #line $LINENO "configure"
3327 /* confdefs.h. */
3328 _ACEOF
3329 cat confdefs.h >>conftest.$ac_ext
3330 cat >>conftest.$ac_ext <<_ACEOF
3331 /* end confdefs.h. */
3332 /* System header to define __stub macros and hopefully few prototypes,
3333 which can conflict with char $ac_func (); below.
3334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3335 <limits.h> exists even on freestanding compilers. */
3336 #ifdef __STDC__
3337 # include <limits.h>
3338 #else
3339 # include <assert.h>
3340 #endif
3341 /* Override any gcc2 internal prototype to avoid an error. */
3342 #ifdef __cplusplus
3343 extern "C"
3345 #endif
3346 /* We use char because int might match the return type of a gcc2
3347 builtin and then its argument prototype would still apply. */
3348 char $ac_func ();
3349 /* The GNU C library defines this for functions which it implements
3350 to always fail with ENOSYS. Some functions are actually named
3351 something starting with __ and the normal name is an alias. */
3352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3353 choke me
3354 #else
3355 char (*f) () = $ac_func;
3356 #endif
3357 #ifdef __cplusplus
3359 #endif
3362 main ()
3364 return f != $ac_func;
3366 return 0;
3368 _ACEOF
3369 rm -f conftest.$ac_objext conftest$ac_exeext
3370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3371 (eval $ac_link) 2>&5
3372 ac_status=$?
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } &&
3375 { ac_try='test -s conftest$ac_exeext'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 (eval $ac_try) 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; }; then
3381 eval "$as_ac_var=yes"
3382 else
3383 echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3386 eval "$as_ac_var=no"
3388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3392 if test `eval echo '${'$as_ac_var'}'` = yes; then
3393 cat >>confdefs.h <<_ACEOF
3394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3395 _ACEOF
3398 done
3401 for ac_func in hypotf
3403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3404 echo "$as_me:$LINENO: checking for $ac_func" >&5
3405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3406 if eval "test \"\${$as_ac_var+set}\" = set"; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 else
3409 cat >conftest.$ac_ext <<_ACEOF
3410 #line $LINENO "configure"
3411 /* confdefs.h. */
3412 _ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3416 /* System header to define __stub macros and hopefully few prototypes,
3417 which can conflict with char $ac_func (); below.
3418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3419 <limits.h> exists even on freestanding compilers. */
3420 #ifdef __STDC__
3421 # include <limits.h>
3422 #else
3423 # include <assert.h>
3424 #endif
3425 /* Override any gcc2 internal prototype to avoid an error. */
3426 #ifdef __cplusplus
3427 extern "C"
3429 #endif
3430 /* We use char because int might match the return type of a gcc2
3431 builtin and then its argument prototype would still apply. */
3432 char $ac_func ();
3433 /* The GNU C library defines this for functions which it implements
3434 to always fail with ENOSYS. Some functions are actually named
3435 something starting with __ and the normal name is an alias. */
3436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3437 choke me
3438 #else
3439 char (*f) () = $ac_func;
3440 #endif
3441 #ifdef __cplusplus
3443 #endif
3446 main ()
3448 return f != $ac_func;
3450 return 0;
3452 _ACEOF
3453 rm -f conftest.$ac_objext conftest$ac_exeext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3455 (eval $ac_link) 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } &&
3459 { ac_try='test -s conftest$ac_exeext'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 (eval $ac_try) 2>&5
3462 ac_status=$?
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; }; then
3465 eval "$as_ac_var=yes"
3466 else
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 eval "$as_ac_var=no"
3472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3476 if test `eval echo '${'$as_ac_var'}'` = yes; then
3477 cat >>confdefs.h <<_ACEOF
3478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3479 _ACEOF
3482 done
3485 for ac_func in atan2f
3487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3488 echo "$as_me:$LINENO: checking for $ac_func" >&5
3489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3490 if eval "test \"\${$as_ac_var+set}\" = set"; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493 cat >conftest.$ac_ext <<_ACEOF
3494 #line $LINENO "configure"
3495 /* confdefs.h. */
3496 _ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3500 /* System header to define __stub macros and hopefully few prototypes,
3501 which can conflict with char $ac_func (); below.
3502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3503 <limits.h> exists even on freestanding compilers. */
3504 #ifdef __STDC__
3505 # include <limits.h>
3506 #else
3507 # include <assert.h>
3508 #endif
3509 /* Override any gcc2 internal prototype to avoid an error. */
3510 #ifdef __cplusplus
3511 extern "C"
3513 #endif
3514 /* We use char because int might match the return type of a gcc2
3515 builtin and then its argument prototype would still apply. */
3516 char $ac_func ();
3517 /* The GNU C library defines this for functions which it implements
3518 to always fail with ENOSYS. Some functions are actually named
3519 something starting with __ and the normal name is an alias. */
3520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3521 choke me
3522 #else
3523 char (*f) () = $ac_func;
3524 #endif
3525 #ifdef __cplusplus
3527 #endif
3530 main ()
3532 return f != $ac_func;
3534 return 0;
3536 _ACEOF
3537 rm -f conftest.$ac_objext conftest$ac_exeext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3539 (eval $ac_link) 2>&5
3540 ac_status=$?
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); } &&
3543 { ac_try='test -s conftest$ac_exeext'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 (eval $ac_try) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; }; then
3549 eval "$as_ac_var=yes"
3550 else
3551 echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3554 eval "$as_ac_var=no"
3556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3560 if test `eval echo '${'$as_ac_var'}'` = yes; then
3561 cat >>confdefs.h <<_ACEOF
3562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3563 _ACEOF
3566 done
3569 for ac_func in powf
3571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3572 echo "$as_me:$LINENO: checking for $ac_func" >&5
3573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3574 if eval "test \"\${$as_ac_var+set}\" = set"; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 else
3577 cat >conftest.$ac_ext <<_ACEOF
3578 #line $LINENO "configure"
3579 /* confdefs.h. */
3580 _ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h. */
3584 /* System header to define __stub macros and hopefully few prototypes,
3585 which can conflict with char $ac_func (); below.
3586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3587 <limits.h> exists even on freestanding compilers. */
3588 #ifdef __STDC__
3589 # include <limits.h>
3590 #else
3591 # include <assert.h>
3592 #endif
3593 /* Override any gcc2 internal prototype to avoid an error. */
3594 #ifdef __cplusplus
3595 extern "C"
3597 #endif
3598 /* We use char because int might match the return type of a gcc2
3599 builtin and then its argument prototype would still apply. */
3600 char $ac_func ();
3601 /* The GNU C library defines this for functions which it implements
3602 to always fail with ENOSYS. Some functions are actually named
3603 something starting with __ and the normal name is an alias. */
3604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3605 choke me
3606 #else
3607 char (*f) () = $ac_func;
3608 #endif
3609 #ifdef __cplusplus
3611 #endif
3614 main ()
3616 return f != $ac_func;
3618 return 0;
3620 _ACEOF
3621 rm -f conftest.$ac_objext conftest$ac_exeext
3622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3623 (eval $ac_link) 2>&5
3624 ac_status=$?
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } &&
3627 { ac_try='test -s conftest$ac_exeext'
3628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629 (eval $ac_try) 2>&5
3630 ac_status=$?
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); }; }; then
3633 eval "$as_ac_var=yes"
3634 else
3635 echo "$as_me: failed program was:" >&5
3636 sed 's/^/| /' conftest.$ac_ext >&5
3638 eval "$as_ac_var=no"
3640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3644 if test `eval echo '${'$as_ac_var'}'` = yes; then
3645 cat >>confdefs.h <<_ACEOF
3646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3647 _ACEOF
3650 done
3653 for ac_func in ceilf
3655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3656 echo "$as_me:$LINENO: checking for $ac_func" >&5
3657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3658 if eval "test \"\${$as_ac_var+set}\" = set"; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661 cat >conftest.$ac_ext <<_ACEOF
3662 #line $LINENO "configure"
3663 /* confdefs.h. */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3668 /* System header to define __stub macros and hopefully few prototypes,
3669 which can conflict with char $ac_func (); below.
3670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3671 <limits.h> exists even on freestanding compilers. */
3672 #ifdef __STDC__
3673 # include <limits.h>
3674 #else
3675 # include <assert.h>
3676 #endif
3677 /* Override any gcc2 internal prototype to avoid an error. */
3678 #ifdef __cplusplus
3679 extern "C"
3681 #endif
3682 /* We use char because int might match the return type of a gcc2
3683 builtin and then its argument prototype would still apply. */
3684 char $ac_func ();
3685 /* The GNU C library defines this for functions which it implements
3686 to always fail with ENOSYS. Some functions are actually named
3687 something starting with __ and the normal name is an alias. */
3688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3689 choke me
3690 #else
3691 char (*f) () = $ac_func;
3692 #endif
3693 #ifdef __cplusplus
3695 #endif
3698 main ()
3700 return f != $ac_func;
3702 return 0;
3704 _ACEOF
3705 rm -f conftest.$ac_objext conftest$ac_exeext
3706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3707 (eval $ac_link) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } &&
3711 { ac_try='test -s conftest$ac_exeext'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 (eval $ac_try) 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; }; then
3717 eval "$as_ac_var=yes"
3718 else
3719 echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3722 eval "$as_ac_var=no"
3724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3727 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3728 if test `eval echo '${'$as_ac_var'}'` = yes; then
3729 cat >>confdefs.h <<_ACEOF
3730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3731 _ACEOF
3734 done
3737 for ac_func in cosf
3739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3740 echo "$as_me:$LINENO: checking for $ac_func" >&5
3741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3742 if eval "test \"\${$as_ac_var+set}\" = set"; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745 cat >conftest.$ac_ext <<_ACEOF
3746 #line $LINENO "configure"
3747 /* confdefs.h. */
3748 _ACEOF
3749 cat confdefs.h >>conftest.$ac_ext
3750 cat >>conftest.$ac_ext <<_ACEOF
3751 /* end confdefs.h. */
3752 /* System header to define __stub macros and hopefully few prototypes,
3753 which can conflict with char $ac_func (); below.
3754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3755 <limits.h> exists even on freestanding compilers. */
3756 #ifdef __STDC__
3757 # include <limits.h>
3758 #else
3759 # include <assert.h>
3760 #endif
3761 /* Override any gcc2 internal prototype to avoid an error. */
3762 #ifdef __cplusplus
3763 extern "C"
3765 #endif
3766 /* We use char because int might match the return type of a gcc2
3767 builtin and then its argument prototype would still apply. */
3768 char $ac_func ();
3769 /* The GNU C library defines this for functions which it implements
3770 to always fail with ENOSYS. Some functions are actually named
3771 something starting with __ and the normal name is an alias. */
3772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3773 choke me
3774 #else
3775 char (*f) () = $ac_func;
3776 #endif
3777 #ifdef __cplusplus
3779 #endif
3782 main ()
3784 return f != $ac_func;
3786 return 0;
3788 _ACEOF
3789 rm -f conftest.$ac_objext conftest$ac_exeext
3790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3791 (eval $ac_link) 2>&5
3792 ac_status=$?
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } &&
3795 { ac_try='test -s conftest$ac_exeext'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 (eval $ac_try) 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; }; then
3801 eval "$as_ac_var=yes"
3802 else
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3806 eval "$as_ac_var=no"
3808 rm -f conftest.$ac_objext 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 sinf
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 #line $LINENO "configure"
3831 /* confdefs.h. */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3836 /* System header to define __stub macros and hopefully few prototypes,
3837 which can conflict with char $ac_func (); below.
3838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3839 <limits.h> exists even on freestanding compilers. */
3840 #ifdef __STDC__
3841 # include <limits.h>
3842 #else
3843 # include <assert.h>
3844 #endif
3845 /* Override any gcc2 internal prototype to avoid an error. */
3846 #ifdef __cplusplus
3847 extern "C"
3849 #endif
3850 /* We use char because int might match the return type of a gcc2
3851 builtin and then its argument prototype would still apply. */
3852 char $ac_func ();
3853 /* The GNU C library defines this for functions which it implements
3854 to always fail with ENOSYS. Some functions are actually named
3855 something starting with __ and the normal name is an alias. */
3856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3857 choke me
3858 #else
3859 char (*f) () = $ac_func;
3860 #endif
3861 #ifdef __cplusplus
3863 #endif
3866 main ()
3868 return f != $ac_func;
3870 return 0;
3872 _ACEOF
3873 rm -f conftest.$ac_objext conftest$ac_exeext
3874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3875 (eval $ac_link) 2>&5
3876 ac_status=$?
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } &&
3879 { ac_try='test -s conftest$ac_exeext'
3880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3881 (eval $ac_try) 2>&5
3882 ac_status=$?
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; }; then
3885 eval "$as_ac_var=yes"
3886 else
3887 echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3890 eval "$as_ac_var=no"
3892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3896 if test `eval echo '${'$as_ac_var'}'` = yes; then
3897 cat >>confdefs.h <<_ACEOF
3898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3899 _ACEOF
3902 done
3905 for ac_func in acosf
3907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3908 echo "$as_me:$LINENO: checking for $ac_func" >&5
3909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3910 if eval "test \"\${$as_ac_var+set}\" = set"; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913 cat >conftest.$ac_ext <<_ACEOF
3914 #line $LINENO "configure"
3915 /* confdefs.h. */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3920 /* System header to define __stub macros and hopefully few prototypes,
3921 which can conflict with char $ac_func (); below.
3922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3923 <limits.h> exists even on freestanding compilers. */
3924 #ifdef __STDC__
3925 # include <limits.h>
3926 #else
3927 # include <assert.h>
3928 #endif
3929 /* Override any gcc2 internal prototype to avoid an error. */
3930 #ifdef __cplusplus
3931 extern "C"
3933 #endif
3934 /* We use char because int might match the return type of a gcc2
3935 builtin and then its argument prototype would still apply. */
3936 char $ac_func ();
3937 /* The GNU C library defines this for functions which it implements
3938 to always fail with ENOSYS. Some functions are actually named
3939 something starting with __ and the normal name is an alias. */
3940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3941 choke me
3942 #else
3943 char (*f) () = $ac_func;
3944 #endif
3945 #ifdef __cplusplus
3947 #endif
3950 main ()
3952 return f != $ac_func;
3954 return 0;
3956 _ACEOF
3957 rm -f conftest.$ac_objext conftest$ac_exeext
3958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3959 (eval $ac_link) 2>&5
3960 ac_status=$?
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } &&
3963 { ac_try='test -s conftest$ac_exeext'
3964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965 (eval $ac_try) 2>&5
3966 ac_status=$?
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); }; }; then
3969 eval "$as_ac_var=yes"
3970 else
3971 echo "$as_me: failed program was:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3974 eval "$as_ac_var=no"
3976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3980 if test `eval echo '${'$as_ac_var'}'` = yes; then
3981 cat >>confdefs.h <<_ACEOF
3982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3983 _ACEOF
3986 done
3989 for ac_func in fmodf
3991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3992 echo "$as_me:$LINENO: checking for $ac_func" >&5
3993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3994 if eval "test \"\${$as_ac_var+set}\" = set"; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997 cat >conftest.$ac_ext <<_ACEOF
3998 #line $LINENO "configure"
3999 /* confdefs.h. */
4000 _ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4004 /* System header to define __stub macros and hopefully few prototypes,
4005 which can conflict with char $ac_func (); below.
4006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4007 <limits.h> exists even on freestanding compilers. */
4008 #ifdef __STDC__
4009 # include <limits.h>
4010 #else
4011 # include <assert.h>
4012 #endif
4013 /* Override any gcc2 internal prototype to avoid an error. */
4014 #ifdef __cplusplus
4015 extern "C"
4017 #endif
4018 /* We use char because int might match the return type of a gcc2
4019 builtin and then its argument prototype would still apply. */
4020 char $ac_func ();
4021 /* The GNU C library defines this for functions which it implements
4022 to always fail with ENOSYS. Some functions are actually named
4023 something starting with __ and the normal name is an alias. */
4024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4025 choke me
4026 #else
4027 char (*f) () = $ac_func;
4028 #endif
4029 #ifdef __cplusplus
4031 #endif
4034 main ()
4036 return f != $ac_func;
4038 return 0;
4040 _ACEOF
4041 rm -f conftest.$ac_objext conftest$ac_exeext
4042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4043 (eval $ac_link) 2>&5
4044 ac_status=$?
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try='test -s conftest$ac_exeext'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 (eval $ac_try) 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; }; then
4053 eval "$as_ac_var=yes"
4054 else
4055 echo "$as_me: failed program was:" >&5
4056 sed 's/^/| /' conftest.$ac_ext >&5
4058 eval "$as_ac_var=no"
4060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4064 if test `eval echo '${'$as_ac_var'}'` = yes; then
4065 cat >>confdefs.h <<_ACEOF
4066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4067 _ACEOF
4070 done
4073 for ac_func in fabsf
4075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4076 echo "$as_me:$LINENO: checking for $ac_func" >&5
4077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4078 if eval "test \"\${$as_ac_var+set}\" = set"; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 else
4081 cat >conftest.$ac_ext <<_ACEOF
4082 #line $LINENO "configure"
4083 /* confdefs.h. */
4084 _ACEOF
4085 cat confdefs.h >>conftest.$ac_ext
4086 cat >>conftest.$ac_ext <<_ACEOF
4087 /* end confdefs.h. */
4088 /* System header to define __stub macros and hopefully few prototypes,
4089 which can conflict with char $ac_func (); below.
4090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4091 <limits.h> exists even on freestanding compilers. */
4092 #ifdef __STDC__
4093 # include <limits.h>
4094 #else
4095 # include <assert.h>
4096 #endif
4097 /* Override any gcc2 internal prototype to avoid an error. */
4098 #ifdef __cplusplus
4099 extern "C"
4101 #endif
4102 /* We use char because int might match the return type of a gcc2
4103 builtin and then its argument prototype would still apply. */
4104 char $ac_func ();
4105 /* The GNU C library defines this for functions which it implements
4106 to always fail with ENOSYS. Some functions are actually named
4107 something starting with __ and the normal name is an alias. */
4108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4109 choke me
4110 #else
4111 char (*f) () = $ac_func;
4112 #endif
4113 #ifdef __cplusplus
4115 #endif
4118 main ()
4120 return f != $ac_func;
4122 return 0;
4124 _ACEOF
4125 rm -f conftest.$ac_objext conftest$ac_exeext
4126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4127 (eval $ac_link) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } &&
4131 { ac_try='test -s conftest$ac_exeext'
4132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133 (eval $ac_try) 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4137 eval "$as_ac_var=yes"
4138 else
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4142 eval "$as_ac_var=no"
4144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4148 if test `eval echo '${'$as_ac_var'}'` = yes; then
4149 cat >>confdefs.h <<_ACEOF
4150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4151 _ACEOF
4154 done
4157 for ac_func in powf
4159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4160 echo "$as_me:$LINENO: checking for $ac_func" >&5
4161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4162 if eval "test \"\${$as_ac_var+set}\" = set"; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 else
4165 cat >conftest.$ac_ext <<_ACEOF
4166 #line $LINENO "configure"
4167 /* confdefs.h. */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4172 /* System header to define __stub macros and hopefully few prototypes,
4173 which can conflict with char $ac_func (); below.
4174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4175 <limits.h> exists even on freestanding compilers. */
4176 #ifdef __STDC__
4177 # include <limits.h>
4178 #else
4179 # include <assert.h>
4180 #endif
4181 /* Override any gcc2 internal prototype to avoid an error. */
4182 #ifdef __cplusplus
4183 extern "C"
4185 #endif
4186 /* We use char because int might match the return type of a gcc2
4187 builtin and then its argument prototype would still apply. */
4188 char $ac_func ();
4189 /* The GNU C library defines this for functions which it implements
4190 to always fail with ENOSYS. Some functions are actually named
4191 something starting with __ and the normal name is an alias. */
4192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4193 choke me
4194 #else
4195 char (*f) () = $ac_func;
4196 #endif
4197 #ifdef __cplusplus
4199 #endif
4202 main ()
4204 return f != $ac_func;
4206 return 0;
4208 _ACEOF
4209 rm -f conftest.$ac_objext conftest$ac_exeext
4210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4211 (eval $ac_link) 2>&5
4212 ac_status=$?
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); } &&
4215 { ac_try='test -s conftest$ac_exeext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 (eval $ac_try) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4221 eval "$as_ac_var=yes"
4222 else
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4226 eval "$as_ac_var=no"
4228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4232 if test `eval echo '${'$as_ac_var'}'` = yes; then
4233 cat >>confdefs.h <<_ACEOF
4234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4235 _ACEOF
4238 done
4241 # If we don't have ftello, we'll use ftell.
4243 for ac_func in ftello
4245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4246 echo "$as_me:$LINENO: checking for $ac_func" >&5
4247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4248 if eval "test \"\${$as_ac_var+set}\" = set"; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251 cat >conftest.$ac_ext <<_ACEOF
4252 #line $LINENO "configure"
4253 /* confdefs.h. */
4254 _ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4258 /* System header to define __stub macros and hopefully few prototypes,
4259 which can conflict with char $ac_func (); below.
4260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4261 <limits.h> exists even on freestanding compilers. */
4262 #ifdef __STDC__
4263 # include <limits.h>
4264 #else
4265 # include <assert.h>
4266 #endif
4267 /* Override any gcc2 internal prototype to avoid an error. */
4268 #ifdef __cplusplus
4269 extern "C"
4271 #endif
4272 /* We use char because int might match the return type of a gcc2
4273 builtin and then its argument prototype would still apply. */
4274 char $ac_func ();
4275 /* The GNU C library defines this for functions which it implements
4276 to always fail with ENOSYS. Some functions are actually named
4277 something starting with __ and the normal name is an alias. */
4278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4279 choke me
4280 #else
4281 char (*f) () = $ac_func;
4282 #endif
4283 #ifdef __cplusplus
4285 #endif
4288 main ()
4290 return f != $ac_func;
4292 return 0;
4294 _ACEOF
4295 rm -f conftest.$ac_objext conftest$ac_exeext
4296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4297 (eval $ac_link) 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } &&
4301 { ac_try='test -s conftest$ac_exeext'
4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303 (eval $ac_try) 2>&5
4304 ac_status=$?
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; }; then
4307 eval "$as_ac_var=yes"
4308 else
4309 echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4312 eval "$as_ac_var=no"
4314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4318 if test `eval echo '${'$as_ac_var'}'` = yes; then
4319 cat >>confdefs.h <<_ACEOF
4320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4321 _ACEOF
4324 done
4328 # Checks for getline, this is a GNU extension.
4329 CFLAGS="$CFLAGS -D_GNU_SOURCE"
4331 for ac_func in getline
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 #line $LINENO "configure"
4341 /* confdefs.h. */
4342 _ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h. */
4346 /* System header to define __stub macros and hopefully few prototypes,
4347 which can conflict with char $ac_func (); below.
4348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4349 <limits.h> exists even on freestanding compilers. */
4350 #ifdef __STDC__
4351 # include <limits.h>
4352 #else
4353 # include <assert.h>
4354 #endif
4355 /* Override any gcc2 internal prototype to avoid an error. */
4356 #ifdef __cplusplus
4357 extern "C"
4359 #endif
4360 /* We use char because int might match the return type of a gcc2
4361 builtin and then its argument prototype would still apply. */
4362 char $ac_func ();
4363 /* The GNU C library defines this for functions which it implements
4364 to always fail with ENOSYS. Some functions are actually named
4365 something starting with __ and the normal name is an alias. */
4366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4367 choke me
4368 #else
4369 char (*f) () = $ac_func;
4370 #endif
4371 #ifdef __cplusplus
4373 #endif
4376 main ()
4378 return f != $ac_func;
4380 return 0;
4382 _ACEOF
4383 rm -f conftest.$ac_objext conftest$ac_exeext
4384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4385 (eval $ac_link) 2>&5
4386 ac_status=$?
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } &&
4389 { ac_try='test -s conftest$ac_exeext'
4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 (eval $ac_try) 2>&5
4392 ac_status=$?
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; }; then
4395 eval "$as_ac_var=yes"
4396 else
4397 echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4400 eval "$as_ac_var=no"
4402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4405 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4406 if test `eval echo '${'$as_ac_var'}'` = yes; then
4407 cat >>confdefs.h <<_ACEOF
4408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4409 _ACEOF
4411 have_getline="yes"
4413 else
4415 have_getline="no"
4418 done
4423 if test "$have_getline" = "yes"; then
4424 GETLINE_TRUE=
4425 GETLINE_FALSE='#'
4426 else
4427 GETLINE_TRUE='#'
4428 GETLINE_FALSE=
4433 # Checks for getopt_long, another GNU extension.
4435 for ac_func in getopt_long
4437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4438 echo "$as_me:$LINENO: checking for $ac_func" >&5
4439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4440 if eval "test \"\${$as_ac_var+set}\" = set"; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443 cat >conftest.$ac_ext <<_ACEOF
4444 #line $LINENO "configure"
4445 /* confdefs.h. */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4450 /* System header to define __stub macros and hopefully few prototypes,
4451 which can conflict with char $ac_func (); below.
4452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4453 <limits.h> exists even on freestanding compilers. */
4454 #ifdef __STDC__
4455 # include <limits.h>
4456 #else
4457 # include <assert.h>
4458 #endif
4459 /* Override any gcc2 internal prototype to avoid an error. */
4460 #ifdef __cplusplus
4461 extern "C"
4463 #endif
4464 /* We use char because int might match the return type of a gcc2
4465 builtin and then its argument prototype would still apply. */
4466 char $ac_func ();
4467 /* The GNU C library defines this for functions which it implements
4468 to always fail with ENOSYS. Some functions are actually named
4469 something starting with __ and the normal name is an alias. */
4470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4471 choke me
4472 #else
4473 char (*f) () = $ac_func;
4474 #endif
4475 #ifdef __cplusplus
4477 #endif
4480 main ()
4482 return f != $ac_func;
4484 return 0;
4486 _ACEOF
4487 rm -f conftest.$ac_objext conftest$ac_exeext
4488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4489 (eval $ac_link) 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } &&
4493 { ac_try='test -s conftest$ac_exeext'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495 (eval $ac_try) 2>&5
4496 ac_status=$?
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 eval "$as_ac_var=yes"
4500 else
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4504 eval "$as_ac_var=no"
4506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4509 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4510 if test `eval echo '${'$as_ac_var'}'` = yes; then
4511 cat >>confdefs.h <<_ACEOF
4512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4513 _ACEOF
4515 have_getopt_long="yes"
4517 else
4519 have_getopt_long="no"
4522 done
4527 if test "$have_getopt_long" = "yes"; then
4528 GETOPT_LONG_TRUE=
4529 GETOPT_LONG_FALSE='#'
4530 else
4531 GETOPT_LONG_TRUE='#'
4532 GETOPT_LONG_FALSE=
4537 if test "$have_getline" = "no" ||
4538 test "$have_getopt_long" = "no"; then
4541 if true; then
4542 NEED_REPLACEMENTS_TRUE=
4543 NEED_REPLACEMENTS_FALSE='#'
4544 else
4545 NEED_REPLACEMENTS_TRUE='#'
4546 NEED_REPLACEMENTS_FALSE=
4549 CFLAGS="$CFLAGS -I${srcdir}/../lib"
4550 else
4553 if false; then
4554 NEED_REPLACEMENTS_TRUE=
4555 NEED_REPLACEMENTS_FALSE='#'
4556 else
4557 NEED_REPLACEMENTS_TRUE='#'
4558 NEED_REPLACEMENTS_FALSE=
4564 # Checks for flavours of varargs macros (borrowed from glib-2)
4565 # ISO C99
4566 echo "$as_me:$LINENO: checking for ISO C99 varargs macros" >&5
4567 echo $ECHO_N "checking for ISO C99 varargs macros... $ECHO_C" >&6
4569 cat >conftest.$ac_ext <<_ACEOF
4570 #line $LINENO "configure"
4571 /* confdefs.h. */
4572 _ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h. */
4578 main ()
4581 int a(int p1, int p2, int p3);
4582 #define call_a(...) a(1,__VA_ARGS__)
4583 call_a(2,3);
4586 return 0;
4588 _ACEOF
4589 rm -f conftest.$ac_objext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4591 (eval $ac_compile) 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } &&
4595 { ac_try='test -s conftest.$ac_objext'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 (eval $ac_try) 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; }; then
4601 have_iso_c_varargs=yes
4602 else
4603 echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4606 have_iso_c_varargs=no
4608 rm -f conftest.$ac_objext conftest.$ac_ext
4610 echo "$as_me:$LINENO: result: $have_iso_c_varargs" >&5
4611 echo "${ECHO_T}$have_iso_c_varargs" >&6
4613 if test $have_iso_c_varargs = yes; then
4614 iso_c_varargs=1
4615 else
4616 iso_c_varargs=0
4620 cat >>confdefs.h <<_ACEOF
4621 #define HAVE_ISO_C_VARARGS $iso_c_varargs
4622 _ACEOF
4625 # GNU C
4626 echo "$as_me:$LINENO: checking for GNU C varargs macros" >&5
4627 echo $ECHO_N "checking for GNU C varargs macros... $ECHO_C" >&6
4629 cat >conftest.$ac_ext <<_ACEOF
4630 #line $LINENO "configure"
4631 /* confdefs.h. */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4638 main ()
4641 int a(int p1, int p2, int p3);
4642 #define call_a(params...) a(1,params)
4643 call_a(2,3);
4646 return 0;
4648 _ACEOF
4649 rm -f conftest.$ac_objext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4651 (eval $ac_compile) 2>&5
4652 ac_status=$?
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } &&
4655 { ac_try='test -s conftest.$ac_objext'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 (eval $ac_try) 2>&5
4658 ac_status=$?
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; }; then
4661 have_gnu_c_varargs=yes
4662 else
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4666 have_gnu_c_varargs=no
4668 rm -f conftest.$ac_objext conftest.$ac_ext
4670 echo "$as_me:$LINENO: result: $have_gnu_c_varargs" >&5
4671 echo "${ECHO_T}$have_gnu_c_varargs" >&6
4673 if test $have_gnu_c_varargs = yes; then
4674 gnu_c_varargs=1
4675 else
4676 gnu_c_varargs=0
4680 cat >>confdefs.h <<_ACEOF
4681 #define HAVE_GNU_C_VARARGS $gnu_c_varargs
4682 _ACEOF
4685 if test $have_gnu_c_varargs = no && $have_iso_c_varargs = no; then
4686 { { echo "$as_me:$LINENO: error: no variadic macros, use gcc >= 2.95 or an ISO C99 compiler" >&5
4687 echo "$as_me: error: no variadic macros, use gcc >= 2.95 or an ISO C99 compiler" >&2;}
4688 { (exit 1); exit 1; }; }
4691 # Checks for X.
4692 ac_ext=c
4693 ac_cpp='$CPP $CPPFLAGS'
4694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4697 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4698 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4699 # On Suns, sometimes $CPP names a directory.
4700 if test -n "$CPP" && test -d "$CPP"; then
4701 CPP=
4703 if test -z "$CPP"; then
4704 if test "${ac_cv_prog_CPP+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707 # Double quotes because CPP needs to be expanded
4708 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4710 ac_preproc_ok=false
4711 for ac_c_preproc_warn_flag in '' yes
4713 # Use a header file that comes with gcc, so configuring glibc
4714 # with a fresh cross-compiler works.
4715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4716 # <limits.h> exists even on freestanding compilers.
4717 # On the NeXT, cc -E runs the code through the compiler's parser,
4718 # not just through cpp. "Syntax error" is here to catch this case.
4719 cat >conftest.$ac_ext <<_ACEOF
4720 #line $LINENO "configure"
4721 /* confdefs.h. */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4726 #ifdef __STDC__
4727 # include <limits.h>
4728 #else
4729 # include <assert.h>
4730 #endif
4731 Syntax error
4732 _ACEOF
4733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4735 ac_status=$?
4736 grep -v '^ *+' conftest.er1 >conftest.err
4737 rm -f conftest.er1
4738 cat conftest.err >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } >/dev/null; then
4741 if test -s conftest.err; then
4742 ac_cpp_err=$ac_c_preproc_warn_flag
4743 else
4744 ac_cpp_err=
4746 else
4747 ac_cpp_err=yes
4749 if test -z "$ac_cpp_err"; then
4751 else
4752 echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4755 # Broken: fails on valid input.
4756 continue
4758 rm -f conftest.err conftest.$ac_ext
4760 # OK, works on sane cases. Now check whether non-existent headers
4761 # can be detected and how.
4762 cat >conftest.$ac_ext <<_ACEOF
4763 #line $LINENO "configure"
4764 /* confdefs.h. */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4769 #include <ac_nonexistent.h>
4770 _ACEOF
4771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4773 ac_status=$?
4774 grep -v '^ *+' conftest.er1 >conftest.err
4775 rm -f conftest.er1
4776 cat conftest.err >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } >/dev/null; then
4779 if test -s conftest.err; then
4780 ac_cpp_err=$ac_c_preproc_warn_flag
4781 else
4782 ac_cpp_err=
4784 else
4785 ac_cpp_err=yes
4787 if test -z "$ac_cpp_err"; then
4788 # Broken: success on invalid input.
4789 continue
4790 else
4791 echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4794 # Passes both tests.
4795 ac_preproc_ok=:
4796 break
4798 rm -f conftest.err conftest.$ac_ext
4800 done
4801 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4802 rm -f conftest.err conftest.$ac_ext
4803 if $ac_preproc_ok; then
4804 break
4807 done
4808 ac_cv_prog_CPP=$CPP
4811 CPP=$ac_cv_prog_CPP
4812 else
4813 ac_cv_prog_CPP=$CPP
4815 echo "$as_me:$LINENO: result: $CPP" >&5
4816 echo "${ECHO_T}$CPP" >&6
4817 ac_preproc_ok=false
4818 for ac_c_preproc_warn_flag in '' yes
4820 # Use a header file that comes with gcc, so configuring glibc
4821 # with a fresh cross-compiler works.
4822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4823 # <limits.h> exists even on freestanding compilers.
4824 # On the NeXT, cc -E runs the code through the compiler's parser,
4825 # not just through cpp. "Syntax error" is here to catch this case.
4826 cat >conftest.$ac_ext <<_ACEOF
4827 #line $LINENO "configure"
4828 /* confdefs.h. */
4829 _ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h. */
4833 #ifdef __STDC__
4834 # include <limits.h>
4835 #else
4836 # include <assert.h>
4837 #endif
4838 Syntax error
4839 _ACEOF
4840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4842 ac_status=$?
4843 grep -v '^ *+' conftest.er1 >conftest.err
4844 rm -f conftest.er1
4845 cat conftest.err >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } >/dev/null; then
4848 if test -s conftest.err; then
4849 ac_cpp_err=$ac_c_preproc_warn_flag
4850 else
4851 ac_cpp_err=
4853 else
4854 ac_cpp_err=yes
4856 if test -z "$ac_cpp_err"; then
4858 else
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4862 # Broken: fails on valid input.
4863 continue
4865 rm -f conftest.err conftest.$ac_ext
4867 # OK, works on sane cases. Now check whether non-existent headers
4868 # can be detected and how.
4869 cat >conftest.$ac_ext <<_ACEOF
4870 #line $LINENO "configure"
4871 /* confdefs.h. */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4876 #include <ac_nonexistent.h>
4877 _ACEOF
4878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4880 ac_status=$?
4881 grep -v '^ *+' conftest.er1 >conftest.err
4882 rm -f conftest.er1
4883 cat conftest.err >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } >/dev/null; then
4886 if test -s conftest.err; then
4887 ac_cpp_err=$ac_c_preproc_warn_flag
4888 else
4889 ac_cpp_err=
4891 else
4892 ac_cpp_err=yes
4894 if test -z "$ac_cpp_err"; then
4895 # Broken: success on invalid input.
4896 continue
4897 else
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4901 # Passes both tests.
4902 ac_preproc_ok=:
4903 break
4905 rm -f conftest.err conftest.$ac_ext
4907 done
4908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4909 rm -f conftest.err conftest.$ac_ext
4910 if $ac_preproc_ok; then
4912 else
4913 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4914 See \`config.log' for more details." >&5
4915 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4916 See \`config.log' for more details." >&2;}
4917 { (exit 1); exit 1; }; }
4920 ac_ext=c
4921 ac_cpp='$CPP $CPPFLAGS'
4922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4927 echo "$as_me:$LINENO: checking for X" >&5
4928 echo $ECHO_N "checking for X... $ECHO_C" >&6
4931 # Check whether --with-x or --without-x was given.
4932 if test "${with_x+set}" = set; then
4933 withval="$with_x"
4936 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4937 if test "x$with_x" = xno; then
4938 # The user explicitly disabled X.
4939 have_x=disabled
4940 else
4941 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4942 # Both variables are already set.
4943 have_x=yes
4944 else
4945 if test "${ac_cv_have_x+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948 # One or both of the vars are not set, and there is no cached value.
4949 ac_x_includes=no ac_x_libraries=no
4950 rm -fr conftest.dir
4951 if mkdir conftest.dir; then
4952 cd conftest.dir
4953 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4954 cat >Imakefile <<'_ACEOF'
4955 acfindx:
4956 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4957 _ACEOF
4958 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4959 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4960 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4961 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4962 for ac_extension in a so sl; do
4963 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4964 test -f $ac_im_libdir/libX11.$ac_extension; then
4965 ac_im_usrlibdir=$ac_im_libdir; break
4967 done
4968 # Screen out bogus values from the imake configuration. They are
4969 # bogus both because they are the default anyway, and because
4970 # using them would break gcc on systems where it needs fixed includes.
4971 case $ac_im_incroot in
4972 /usr/include) ;;
4973 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4974 esac
4975 case $ac_im_usrlibdir in
4976 /usr/lib | /lib) ;;
4977 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4978 esac
4980 cd ..
4981 rm -fr conftest.dir
4984 # Standard set of common directories for X headers.
4985 # Check X11 before X11Rn because it is often a symlink to the current release.
4986 ac_x_header_dirs='
4987 /usr/X11/include
4988 /usr/X11R6/include
4989 /usr/X11R5/include
4990 /usr/X11R4/include
4992 /usr/include/X11
4993 /usr/include/X11R6
4994 /usr/include/X11R5
4995 /usr/include/X11R4
4997 /usr/local/X11/include
4998 /usr/local/X11R6/include
4999 /usr/local/X11R5/include
5000 /usr/local/X11R4/include
5002 /usr/local/include/X11
5003 /usr/local/include/X11R6
5004 /usr/local/include/X11R5
5005 /usr/local/include/X11R4
5007 /usr/X386/include
5008 /usr/x386/include
5009 /usr/XFree86/include/X11
5011 /usr/include
5012 /usr/local/include
5013 /usr/unsupported/include
5014 /usr/athena/include
5015 /usr/local/x11r5/include
5016 /usr/lpp/Xamples/include
5018 /usr/openwin/include
5019 /usr/openwin/share/include'
5021 if test "$ac_x_includes" = no; then
5022 # Guess where to find include files, by looking for Intrinsic.h.
5023 # First, try using that file with no special directory specified.
5024 cat >conftest.$ac_ext <<_ACEOF
5025 #line $LINENO "configure"
5026 /* confdefs.h. */
5027 _ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h. */
5031 #include <X11/Intrinsic.h>
5032 _ACEOF
5033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5035 ac_status=$?
5036 grep -v '^ *+' conftest.er1 >conftest.err
5037 rm -f conftest.er1
5038 cat conftest.err >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } >/dev/null; then
5041 if test -s conftest.err; then
5042 ac_cpp_err=$ac_c_preproc_warn_flag
5043 else
5044 ac_cpp_err=
5046 else
5047 ac_cpp_err=yes
5049 if test -z "$ac_cpp_err"; then
5050 # We can compile using X headers with no special include directory.
5051 ac_x_includes=
5052 else
5053 echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5056 for ac_dir in $ac_x_header_dirs; do
5057 if test -r "$ac_dir/X11/Intrinsic.h"; then
5058 ac_x_includes=$ac_dir
5059 break
5061 done
5063 rm -f conftest.err conftest.$ac_ext
5064 fi # $ac_x_includes = no
5066 if test "$ac_x_libraries" = no; then
5067 # Check for the libraries.
5068 # See if we find them without any special options.
5069 # Don't add to $LIBS permanently.
5070 ac_save_LIBS=$LIBS
5071 LIBS="-lXt $LIBS"
5072 cat >conftest.$ac_ext <<_ACEOF
5073 #line $LINENO "configure"
5074 /* confdefs.h. */
5075 _ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5079 #include <X11/Intrinsic.h>
5081 main ()
5083 XtMalloc (0)
5085 return 0;
5087 _ACEOF
5088 rm -f conftest.$ac_objext conftest$ac_exeext
5089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5090 (eval $ac_link) 2>&5
5091 ac_status=$?
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } &&
5094 { ac_try='test -s conftest$ac_exeext'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 (eval $ac_try) 2>&5
5097 ac_status=$?
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; }; then
5100 LIBS=$ac_save_LIBS
5101 # We can link X programs with no special library path.
5102 ac_x_libraries=
5103 else
5104 echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5107 LIBS=$ac_save_LIBS
5108 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5110 # Don't even attempt the hair of trying to link an X program!
5111 for ac_extension in a so sl; do
5112 if test -r $ac_dir/libXt.$ac_extension; then
5113 ac_x_libraries=$ac_dir
5114 break 2
5116 done
5117 done
5119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5120 fi # $ac_x_libraries = no
5122 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5123 # Didn't find X anywhere. Cache the known absence of X.
5124 ac_cv_have_x="have_x=no"
5125 else
5126 # Record where we found X for the cache.
5127 ac_cv_have_x="have_x=yes \
5128 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5133 eval "$ac_cv_have_x"
5134 fi # $with_x != no
5136 if test "$have_x" != yes; then
5137 echo "$as_me:$LINENO: result: $have_x" >&5
5138 echo "${ECHO_T}$have_x" >&6
5139 no_x=yes
5140 else
5141 # If each of the values was on the command line, it overrides each guess.
5142 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5143 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5144 # Update the cache value to reflect the command line values.
5145 ac_cv_have_x="have_x=yes \
5146 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5147 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5148 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5151 if test "$no_x" = yes; then
5152 # Not all programs may use this symbol, but it does not hurt to define it.
5154 cat >>confdefs.h <<\_ACEOF
5155 #define X_DISPLAY_MISSING 1
5156 _ACEOF
5158 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5159 else
5160 if test -n "$x_includes"; then
5161 X_CFLAGS="$X_CFLAGS -I$x_includes"
5164 # It would also be nice to do this for all -L options, not just this one.
5165 if test -n "$x_libraries"; then
5166 X_LIBS="$X_LIBS -L$x_libraries"
5167 # For Solaris; some versions of Sun CC require a space after -R and
5168 # others require no space. Words are not sufficient . . . .
5169 case `(uname -sr) 2>/dev/null` in
5170 "SunOS 5"*)
5171 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5172 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5173 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5174 cat >conftest.$ac_ext <<_ACEOF
5175 #line $LINENO "configure"
5176 /* confdefs.h. */
5177 _ACEOF
5178 cat confdefs.h >>conftest.$ac_ext
5179 cat >>conftest.$ac_ext <<_ACEOF
5180 /* end confdefs.h. */
5183 main ()
5187 return 0;
5189 _ACEOF
5190 rm -f conftest.$ac_objext conftest$ac_exeext
5191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5192 (eval $ac_link) 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } &&
5196 { ac_try='test -s conftest$ac_exeext'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198 (eval $ac_try) 2>&5
5199 ac_status=$?
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; }; then
5202 ac_R_nospace=yes
5203 else
5204 echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.$ac_ext >&5
5207 ac_R_nospace=no
5209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5210 if test $ac_R_nospace = yes; then
5211 echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6
5213 X_LIBS="$X_LIBS -R$x_libraries"
5214 else
5215 LIBS="$ac_xsave_LIBS -R $x_libraries"
5216 cat >conftest.$ac_ext <<_ACEOF
5217 #line $LINENO "configure"
5218 /* confdefs.h. */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5225 main ()
5229 return 0;
5231 _ACEOF
5232 rm -f conftest.$ac_objext conftest$ac_exeext
5233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5234 (eval $ac_link) 2>&5
5235 ac_status=$?
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } &&
5238 { ac_try='test -s conftest$ac_exeext'
5239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 (eval $ac_try) 2>&5
5241 ac_status=$?
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; }; then
5244 ac_R_space=yes
5245 else
5246 echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5249 ac_R_space=no
5251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5252 if test $ac_R_space = yes; then
5253 echo "$as_me:$LINENO: result: yes" >&5
5254 echo "${ECHO_T}yes" >&6
5255 X_LIBS="$X_LIBS -R $x_libraries"
5256 else
5257 echo "$as_me:$LINENO: result: neither works" >&5
5258 echo "${ECHO_T}neither works" >&6
5261 LIBS=$ac_xsave_LIBS
5262 esac
5265 # Check for system-dependent libraries X programs must link with.
5266 # Do this before checking for the system-independent R6 libraries
5267 # (-lICE), since we may need -lsocket or whatever for X linking.
5269 if test "$ISC" = yes; then
5270 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5271 else
5272 # Martyn Johnson says this is needed for Ultrix, if the X
5273 # libraries were built with DECnet support. And Karl Berry says
5274 # the Alpha needs dnet_stub (dnet does not exist).
5275 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5276 cat >conftest.$ac_ext <<_ACEOF
5277 #line $LINENO "configure"
5278 /* confdefs.h. */
5279 _ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h. */
5284 /* Override any gcc2 internal prototype to avoid an error. */
5285 #ifdef __cplusplus
5286 extern "C"
5287 #endif
5288 /* We use char because int might match the return type of a gcc2
5289 builtin and then its argument prototype would still apply. */
5290 char XOpenDisplay ();
5292 main ()
5294 XOpenDisplay ();
5296 return 0;
5298 _ACEOF
5299 rm -f conftest.$ac_objext conftest$ac_exeext
5300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5301 (eval $ac_link) 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } &&
5305 { ac_try='test -s conftest$ac_exeext'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 (eval $ac_try) 2>&5
5308 ac_status=$?
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; }; then
5312 else
5313 echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5316 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5317 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5318 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321 ac_check_lib_save_LIBS=$LIBS
5322 LIBS="-ldnet $LIBS"
5323 cat >conftest.$ac_ext <<_ACEOF
5324 #line $LINENO "configure"
5325 /* confdefs.h. */
5326 _ACEOF
5327 cat confdefs.h >>conftest.$ac_ext
5328 cat >>conftest.$ac_ext <<_ACEOF
5329 /* end confdefs.h. */
5331 /* Override any gcc2 internal prototype to avoid an error. */
5332 #ifdef __cplusplus
5333 extern "C"
5334 #endif
5335 /* We use char because int might match the return type of a gcc2
5336 builtin and then its argument prototype would still apply. */
5337 char dnet_ntoa ();
5339 main ()
5341 dnet_ntoa ();
5343 return 0;
5345 _ACEOF
5346 rm -f conftest.$ac_objext conftest$ac_exeext
5347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5348 (eval $ac_link) 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } &&
5352 { ac_try='test -s conftest$ac_exeext'
5353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354 (eval $ac_try) 2>&5
5355 ac_status=$?
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }; }; then
5358 ac_cv_lib_dnet_dnet_ntoa=yes
5359 else
5360 echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5363 ac_cv_lib_dnet_dnet_ntoa=no
5365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5366 LIBS=$ac_check_lib_save_LIBS
5368 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5369 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5370 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5371 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5374 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5375 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5376 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5377 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5379 else
5380 ac_check_lib_save_LIBS=$LIBS
5381 LIBS="-ldnet_stub $LIBS"
5382 cat >conftest.$ac_ext <<_ACEOF
5383 #line $LINENO "configure"
5384 /* confdefs.h. */
5385 _ACEOF
5386 cat confdefs.h >>conftest.$ac_ext
5387 cat >>conftest.$ac_ext <<_ACEOF
5388 /* end confdefs.h. */
5390 /* Override any gcc2 internal prototype to avoid an error. */
5391 #ifdef __cplusplus
5392 extern "C"
5393 #endif
5394 /* We use char because int might match the return type of a gcc2
5395 builtin and then its argument prototype would still apply. */
5396 char dnet_ntoa ();
5398 main ()
5400 dnet_ntoa ();
5402 return 0;
5404 _ACEOF
5405 rm -f conftest.$ac_objext conftest$ac_exeext
5406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5407 (eval $ac_link) 2>&5
5408 ac_status=$?
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } &&
5411 { ac_try='test -s conftest$ac_exeext'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413 (eval $ac_try) 2>&5
5414 ac_status=$?
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; }; then
5417 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5418 else
5419 echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5422 ac_cv_lib_dnet_stub_dnet_ntoa=no
5424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5425 LIBS=$ac_check_lib_save_LIBS
5427 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5428 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5429 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5430 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5436 LIBS="$ac_xsave_LIBS"
5438 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5439 # to get the SysV transport functions.
5440 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5441 # needs -lnsl.
5442 # The nsl library prevents programs from opening the X display
5443 # on Irix 5.2, according to T.E. Dickey.
5444 # The functions gethostbyname, getservbyname, and inet_addr are
5445 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5446 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5447 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5448 if test "${ac_cv_func_gethostbyname+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451 cat >conftest.$ac_ext <<_ACEOF
5452 #line $LINENO "configure"
5453 /* confdefs.h. */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 /* System header to define __stub macros and hopefully few prototypes,
5459 which can conflict with char gethostbyname (); below.
5460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5461 <limits.h> exists even on freestanding compilers. */
5462 #ifdef __STDC__
5463 # include <limits.h>
5464 #else
5465 # include <assert.h>
5466 #endif
5467 /* Override any gcc2 internal prototype to avoid an error. */
5468 #ifdef __cplusplus
5469 extern "C"
5471 #endif
5472 /* We use char because int might match the return type of a gcc2
5473 builtin and then its argument prototype would still apply. */
5474 char gethostbyname ();
5475 /* The GNU C library defines this for functions which it implements
5476 to always fail with ENOSYS. Some functions are actually named
5477 something starting with __ and the normal name is an alias. */
5478 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5479 choke me
5480 #else
5481 char (*f) () = gethostbyname;
5482 #endif
5483 #ifdef __cplusplus
5485 #endif
5488 main ()
5490 return f != gethostbyname;
5492 return 0;
5494 _ACEOF
5495 rm -f conftest.$ac_objext conftest$ac_exeext
5496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5497 (eval $ac_link) 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 ac_cv_func_gethostbyname=yes
5508 else
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 ac_cv_func_gethostbyname=no
5514 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5516 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5517 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5519 if test $ac_cv_func_gethostbyname = no; then
5520 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5521 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5522 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 else
5525 ac_check_lib_save_LIBS=$LIBS
5526 LIBS="-lnsl $LIBS"
5527 cat >conftest.$ac_ext <<_ACEOF
5528 #line $LINENO "configure"
5529 /* confdefs.h. */
5530 _ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h. */
5535 /* Override any gcc2 internal prototype to avoid an error. */
5536 #ifdef __cplusplus
5537 extern "C"
5538 #endif
5539 /* We use char because int might match the return type of a gcc2
5540 builtin and then its argument prototype would still apply. */
5541 char gethostbyname ();
5543 main ()
5545 gethostbyname ();
5547 return 0;
5549 _ACEOF
5550 rm -f conftest.$ac_objext conftest$ac_exeext
5551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5552 (eval $ac_link) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } &&
5556 { ac_try='test -s conftest$ac_exeext'
5557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558 (eval $ac_try) 2>&5
5559 ac_status=$?
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; }; then
5562 ac_cv_lib_nsl_gethostbyname=yes
5563 else
5564 echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5567 ac_cv_lib_nsl_gethostbyname=no
5569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5570 LIBS=$ac_check_lib_save_LIBS
5572 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5573 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5574 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5575 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5578 if test $ac_cv_lib_nsl_gethostbyname = no; then
5579 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5580 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5581 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 else
5584 ac_check_lib_save_LIBS=$LIBS
5585 LIBS="-lbsd $LIBS"
5586 cat >conftest.$ac_ext <<_ACEOF
5587 #line $LINENO "configure"
5588 /* confdefs.h. */
5589 _ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5594 /* Override any gcc2 internal prototype to avoid an error. */
5595 #ifdef __cplusplus
5596 extern "C"
5597 #endif
5598 /* We use char because int might match the return type of a gcc2
5599 builtin and then its argument prototype would still apply. */
5600 char gethostbyname ();
5602 main ()
5604 gethostbyname ();
5606 return 0;
5608 _ACEOF
5609 rm -f conftest.$ac_objext conftest$ac_exeext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5611 (eval $ac_link) 2>&5
5612 ac_status=$?
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
5615 { ac_try='test -s conftest$ac_exeext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 (eval $ac_try) 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5621 ac_cv_lib_bsd_gethostbyname=yes
5622 else
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5626 ac_cv_lib_bsd_gethostbyname=no
5628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5629 LIBS=$ac_check_lib_save_LIBS
5631 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5632 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5633 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5634 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5640 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5641 # socket/setsockopt and other routines are undefined under SCO ODT
5642 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5643 # on later versions), says Simon Leinen: it contains gethostby*
5644 # variants that don't use the name server (or something). -lsocket
5645 # must be given before -lnsl if both are needed. We assume that
5646 # if connect needs -lnsl, so does gethostbyname.
5647 echo "$as_me:$LINENO: checking for connect" >&5
5648 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5649 if test "${ac_cv_func_connect+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 else
5652 cat >conftest.$ac_ext <<_ACEOF
5653 #line $LINENO "configure"
5654 /* confdefs.h. */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5659 /* System header to define __stub macros and hopefully few prototypes,
5660 which can conflict with char connect (); below.
5661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5662 <limits.h> exists even on freestanding compilers. */
5663 #ifdef __STDC__
5664 # include <limits.h>
5665 #else
5666 # include <assert.h>
5667 #endif
5668 /* Override any gcc2 internal prototype to avoid an error. */
5669 #ifdef __cplusplus
5670 extern "C"
5672 #endif
5673 /* We use char because int might match the return type of a gcc2
5674 builtin and then its argument prototype would still apply. */
5675 char connect ();
5676 /* The GNU C library defines this for functions which it implements
5677 to always fail with ENOSYS. Some functions are actually named
5678 something starting with __ and the normal name is an alias. */
5679 #if defined (__stub_connect) || defined (__stub___connect)
5680 choke me
5681 #else
5682 char (*f) () = connect;
5683 #endif
5684 #ifdef __cplusplus
5686 #endif
5689 main ()
5691 return f != connect;
5693 return 0;
5695 _ACEOF
5696 rm -f conftest.$ac_objext conftest$ac_exeext
5697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5698 (eval $ac_link) 2>&5
5699 ac_status=$?
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } &&
5702 { ac_try='test -s conftest$ac_exeext'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 (eval $ac_try) 2>&5
5705 ac_status=$?
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; }; then
5708 ac_cv_func_connect=yes
5709 else
5710 echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5713 ac_cv_func_connect=no
5715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5717 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5718 echo "${ECHO_T}$ac_cv_func_connect" >&6
5720 if test $ac_cv_func_connect = no; then
5721 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5722 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5723 if test "${ac_cv_lib_socket_connect+set}" = set; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5725 else
5726 ac_check_lib_save_LIBS=$LIBS
5727 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5728 cat >conftest.$ac_ext <<_ACEOF
5729 #line $LINENO "configure"
5730 /* confdefs.h. */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5736 /* Override any gcc2 internal prototype to avoid an error. */
5737 #ifdef __cplusplus
5738 extern "C"
5739 #endif
5740 /* We use char because int might match the return type of a gcc2
5741 builtin and then its argument prototype would still apply. */
5742 char connect ();
5744 main ()
5746 connect ();
5748 return 0;
5750 _ACEOF
5751 rm -f conftest.$ac_objext conftest$ac_exeext
5752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5753 (eval $ac_link) 2>&5
5754 ac_status=$?
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); } &&
5757 { ac_try='test -s conftest$ac_exeext'
5758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5759 (eval $ac_try) 2>&5
5760 ac_status=$?
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }; }; then
5763 ac_cv_lib_socket_connect=yes
5764 else
5765 echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5768 ac_cv_lib_socket_connect=no
5770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5771 LIBS=$ac_check_lib_save_LIBS
5773 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5774 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5775 if test $ac_cv_lib_socket_connect = yes; then
5776 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5781 # Guillermo Gomez says -lposix is necessary on A/UX.
5782 echo "$as_me:$LINENO: checking for remove" >&5
5783 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5784 if test "${ac_cv_func_remove+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 else
5787 cat >conftest.$ac_ext <<_ACEOF
5788 #line $LINENO "configure"
5789 /* confdefs.h. */
5790 _ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h. */
5794 /* System header to define __stub macros and hopefully few prototypes,
5795 which can conflict with char remove (); below.
5796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5797 <limits.h> exists even on freestanding compilers. */
5798 #ifdef __STDC__
5799 # include <limits.h>
5800 #else
5801 # include <assert.h>
5802 #endif
5803 /* Override any gcc2 internal prototype to avoid an error. */
5804 #ifdef __cplusplus
5805 extern "C"
5807 #endif
5808 /* We use char because int might match the return type of a gcc2
5809 builtin and then its argument prototype would still apply. */
5810 char remove ();
5811 /* The GNU C library defines this for functions which it implements
5812 to always fail with ENOSYS. Some functions are actually named
5813 something starting with __ and the normal name is an alias. */
5814 #if defined (__stub_remove) || defined (__stub___remove)
5815 choke me
5816 #else
5817 char (*f) () = remove;
5818 #endif
5819 #ifdef __cplusplus
5821 #endif
5824 main ()
5826 return f != remove;
5828 return 0;
5830 _ACEOF
5831 rm -f conftest.$ac_objext conftest$ac_exeext
5832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5833 (eval $ac_link) 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try='test -s conftest$ac_exeext'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 (eval $ac_try) 2>&5
5840 ac_status=$?
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; }; then
5843 ac_cv_func_remove=yes
5844 else
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5848 ac_cv_func_remove=no
5850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5852 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5853 echo "${ECHO_T}$ac_cv_func_remove" >&6
5855 if test $ac_cv_func_remove = no; then
5856 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5857 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5858 if test "${ac_cv_lib_posix_remove+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5860 else
5861 ac_check_lib_save_LIBS=$LIBS
5862 LIBS="-lposix $LIBS"
5863 cat >conftest.$ac_ext <<_ACEOF
5864 #line $LINENO "configure"
5865 /* confdefs.h. */
5866 _ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5871 /* Override any gcc2 internal prototype to avoid an error. */
5872 #ifdef __cplusplus
5873 extern "C"
5874 #endif
5875 /* We use char because int might match the return type of a gcc2
5876 builtin and then its argument prototype would still apply. */
5877 char remove ();
5879 main ()
5881 remove ();
5883 return 0;
5885 _ACEOF
5886 rm -f conftest.$ac_objext conftest$ac_exeext
5887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5888 (eval $ac_link) 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } &&
5892 { ac_try='test -s conftest$ac_exeext'
5893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894 (eval $ac_try) 2>&5
5895 ac_status=$?
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; }; then
5898 ac_cv_lib_posix_remove=yes
5899 else
5900 echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5903 ac_cv_lib_posix_remove=no
5905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5906 LIBS=$ac_check_lib_save_LIBS
5908 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5909 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5910 if test $ac_cv_lib_posix_remove = yes; then
5911 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5916 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5917 echo "$as_me:$LINENO: checking for shmat" >&5
5918 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5919 if test "${ac_cv_func_shmat+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922 cat >conftest.$ac_ext <<_ACEOF
5923 #line $LINENO "configure"
5924 /* confdefs.h. */
5925 _ACEOF
5926 cat confdefs.h >>conftest.$ac_ext
5927 cat >>conftest.$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5929 /* System header to define __stub macros and hopefully few prototypes,
5930 which can conflict with char shmat (); below.
5931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5932 <limits.h> exists even on freestanding compilers. */
5933 #ifdef __STDC__
5934 # include <limits.h>
5935 #else
5936 # include <assert.h>
5937 #endif
5938 /* Override any gcc2 internal prototype to avoid an error. */
5939 #ifdef __cplusplus
5940 extern "C"
5942 #endif
5943 /* We use char because int might match the return type of a gcc2
5944 builtin and then its argument prototype would still apply. */
5945 char shmat ();
5946 /* The GNU C library defines this for functions which it implements
5947 to always fail with ENOSYS. Some functions are actually named
5948 something starting with __ and the normal name is an alias. */
5949 #if defined (__stub_shmat) || defined (__stub___shmat)
5950 choke me
5951 #else
5952 char (*f) () = shmat;
5953 #endif
5954 #ifdef __cplusplus
5956 #endif
5959 main ()
5961 return f != shmat;
5963 return 0;
5965 _ACEOF
5966 rm -f conftest.$ac_objext conftest$ac_exeext
5967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5968 (eval $ac_link) 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } &&
5972 { ac_try='test -s conftest$ac_exeext'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 (eval $ac_try) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; }; then
5978 ac_cv_func_shmat=yes
5979 else
5980 echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5983 ac_cv_func_shmat=no
5985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5987 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5988 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5990 if test $ac_cv_func_shmat = no; then
5991 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5992 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5993 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996 ac_check_lib_save_LIBS=$LIBS
5997 LIBS="-lipc $LIBS"
5998 cat >conftest.$ac_ext <<_ACEOF
5999 #line $LINENO "configure"
6000 /* confdefs.h. */
6001 _ACEOF
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h. */
6006 /* Override any gcc2 internal prototype to avoid an error. */
6007 #ifdef __cplusplus
6008 extern "C"
6009 #endif
6010 /* We use char because int might match the return type of a gcc2
6011 builtin and then its argument prototype would still apply. */
6012 char shmat ();
6014 main ()
6016 shmat ();
6018 return 0;
6020 _ACEOF
6021 rm -f conftest.$ac_objext conftest$ac_exeext
6022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6023 (eval $ac_link) 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); } &&
6027 { ac_try='test -s conftest$ac_exeext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6033 ac_cv_lib_ipc_shmat=yes
6034 else
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6038 ac_cv_lib_ipc_shmat=no
6040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6041 LIBS=$ac_check_lib_save_LIBS
6043 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6044 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6045 if test $ac_cv_lib_ipc_shmat = yes; then
6046 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6052 # Check for libraries that X11R6 Xt/Xaw programs need.
6053 ac_save_LDFLAGS=$LDFLAGS
6054 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6055 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6056 # check for ICE first), but we must link in the order -lSM -lICE or
6057 # we get undefined symbols. So assume we have SM if we have ICE.
6058 # These have to be linked with before -lX11, unlike the other
6059 # libraries we check for below, so use a different variable.
6060 # John Interrante, Karl Berry
6061 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6062 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6063 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 else
6066 ac_check_lib_save_LIBS=$LIBS
6067 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6068 cat >conftest.$ac_ext <<_ACEOF
6069 #line $LINENO "configure"
6070 /* confdefs.h. */
6071 _ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h. */
6076 /* Override any gcc2 internal prototype to avoid an error. */
6077 #ifdef __cplusplus
6078 extern "C"
6079 #endif
6080 /* We use char because int might match the return type of a gcc2
6081 builtin and then its argument prototype would still apply. */
6082 char IceConnectionNumber ();
6084 main ()
6086 IceConnectionNumber ();
6088 return 0;
6090 _ACEOF
6091 rm -f conftest.$ac_objext conftest$ac_exeext
6092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6093 (eval $ac_link) 2>&5
6094 ac_status=$?
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } &&
6097 { ac_try='test -s conftest$ac_exeext'
6098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6099 (eval $ac_try) 2>&5
6100 ac_status=$?
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); }; }; then
6103 ac_cv_lib_ICE_IceConnectionNumber=yes
6104 else
6105 echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6108 ac_cv_lib_ICE_IceConnectionNumber=no
6110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6111 LIBS=$ac_check_lib_save_LIBS
6113 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6114 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6115 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6116 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6119 LDFLAGS=$ac_save_LDFLAGS
6123 CFLAGS="$X_CFLAGS $CFLAGS"
6124 LDFLAGS="$X_PRE_LIBS -lX11 $X_LIBS $X_EXTRA_LIBS $LDFLAGS"
6127 # Checks for OpenGL.
6128 echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
6129 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6
6130 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6132 else
6133 ac_check_lib_save_LIBS=$LIBS
6134 LIBS="-lGL $LIBS"
6135 cat >conftest.$ac_ext <<_ACEOF
6136 #line $LINENO "configure"
6137 /* confdefs.h. */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6143 /* Override any gcc2 internal prototype to avoid an error. */
6144 #ifdef __cplusplus
6145 extern "C"
6146 #endif
6147 /* We use char because int might match the return type of a gcc2
6148 builtin and then its argument prototype would still apply. */
6149 char glBegin ();
6151 main ()
6153 glBegin ();
6155 return 0;
6157 _ACEOF
6158 rm -f conftest.$ac_objext conftest$ac_exeext
6159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6160 (eval $ac_link) 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } &&
6164 { ac_try='test -s conftest$ac_exeext'
6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 (eval $ac_try) 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 ac_cv_lib_GL_glBegin=yes
6171 else
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6175 ac_cv_lib_GL_glBegin=no
6177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6178 LIBS=$ac_check_lib_save_LIBS
6180 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
6181 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6
6182 if test $ac_cv_lib_GL_glBegin = yes; then
6183 LDFLAGS="-lGL $LDFLAGS"
6184 else
6185 ogl="no"
6188 if test "x$ogl" = "xno"; then
6189 { echo "$as_me:$LINENO: Maybe libGL requires libpthread..." >&5
6190 echo "$as_me: Maybe libGL requires libpthread..." >&6;}
6191 unset ac_cv_lib_GL_glBegin
6192 echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
6193 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6
6194 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 else
6197 ac_check_lib_save_LIBS=$LIBS
6198 LIBS="-lGL -lpthread $LIBS"
6199 cat >conftest.$ac_ext <<_ACEOF
6200 #line $LINENO "configure"
6201 /* confdefs.h. */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6207 /* Override any gcc2 internal prototype to avoid an error. */
6208 #ifdef __cplusplus
6209 extern "C"
6210 #endif
6211 /* We use char because int might match the return type of a gcc2
6212 builtin and then its argument prototype would still apply. */
6213 char glBegin ();
6215 main ()
6217 glBegin ();
6219 return 0;
6221 _ACEOF
6222 rm -f conftest.$ac_objext conftest$ac_exeext
6223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6224 (eval $ac_link) 2>&5
6225 ac_status=$?
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } &&
6228 { ac_try='test -s conftest$ac_exeext'
6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 (eval $ac_try) 2>&5
6231 ac_status=$?
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; }; then
6234 ac_cv_lib_GL_glBegin=yes
6235 else
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6239 ac_cv_lib_GL_glBegin=no
6241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6242 LIBS=$ac_check_lib_save_LIBS
6244 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
6245 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6
6246 if test $ac_cv_lib_GL_glBegin = yes; then
6247 LDFLAGS="-lpthread -lGL $LDFLAGS"
6248 else
6249 { { echo "$as_me:$LINENO: error: Cannot use -lGL" >&5
6250 echo "$as_me: error: Cannot use -lGL" >&2;}
6251 { (exit 1); exit 1; }; }
6257 # Checks for gtk.
6258 # Check whether --enable-gtktest or --disable-gtktest was given.
6259 if test "${enable_gtktest+set}" = set; then
6260 enableval="$enable_gtktest"
6262 else
6263 enable_gtktest=yes
6266 pkg_config_args=gtk+-2.0
6267 for module in . gthread
6269 case "$module" in
6270 gthread)
6271 pkg_config_args="$pkg_config_args gthread-2.0"
6273 esac
6274 done
6276 no_gtk=""
6278 # Extract the first word of "pkg-config", so it can be a program name with args.
6279 set dummy pkg-config; ac_word=$2
6280 echo "$as_me:$LINENO: checking for $ac_word" >&5
6281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6282 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285 case $PKG_CONFIG in
6286 [\\/]* | ?:[\\/]*)
6287 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6297 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 break 2
6301 done
6302 done
6304 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6306 esac
6308 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6310 if test -n "$PKG_CONFIG"; then
6311 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6312 echo "${ECHO_T}$PKG_CONFIG" >&6
6313 else
6314 echo "$as_me:$LINENO: result: no" >&5
6315 echo "${ECHO_T}no" >&6
6319 if test x$PKG_CONFIG != xno ; then
6320 if pkg-config --atleast-pkgconfig-version 0.7 ; then
6322 else
6323 echo *** pkg-config too old; version 0.7 or better required.
6324 no_gtk=yes
6325 PKG_CONFIG=no
6327 else
6328 no_gtk=yes
6331 min_gtk_version=2.2.0
6332 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
6333 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
6335 if test x$PKG_CONFIG != xno ; then
6336 ## don't try to run the test against uninstalled libtool libs
6337 if $PKG_CONFIG --uninstalled $pkg_config_args; then
6338 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
6339 enable_gtktest=no
6342 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
6344 else
6345 no_gtk=yes
6349 if test x"$no_gtk" = x ; then
6350 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
6351 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
6352 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6353 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6354 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6355 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6356 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6357 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6358 if test "x$enable_gtktest" = "xyes" ; then
6359 ac_save_CFLAGS="$CFLAGS"
6360 ac_save_LIBS="$LIBS"
6361 CFLAGS="$CFLAGS $GTK_CFLAGS"
6362 LIBS="$GTK_LIBS $LIBS"
6363 rm -f conf.gtktest
6364 if test "$cross_compiling" = yes; then
6365 echo $ac_n "cross compiling; assumed OK... $ac_c"
6366 else
6367 cat >conftest.$ac_ext <<_ACEOF
6368 #line $LINENO "configure"
6369 /* confdefs.h. */
6370 _ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6375 #include <gtk/gtk.h>
6376 #include <stdio.h>
6377 #include <stdlib.h>
6380 main ()
6382 int major, minor, micro;
6383 char *tmp_version;
6385 system ("touch conf.gtktest");
6387 /* HP/UX 9 (%@#!) writes to sscanf strings */
6388 tmp_version = g_strdup("$min_gtk_version");
6389 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
6390 printf("%s, bad version string\n", "$min_gtk_version");
6391 exit(1);
6394 if ((gtk_major_version != $gtk_config_major_version) ||
6395 (gtk_minor_version != $gtk_config_minor_version) ||
6396 (gtk_micro_version != $gtk_config_micro_version))
6398 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6399 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
6400 gtk_major_version, gtk_minor_version, gtk_micro_version);
6401 printf ("*** was found! If pkg-config was correct, then it is best\n");
6402 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
6403 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
6404 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
6405 printf("*** required on your system.\n");
6406 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
6407 printf("*** to point to the correct configuration files\n");
6409 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
6410 (gtk_minor_version != GTK_MINOR_VERSION) ||
6411 (gtk_micro_version != GTK_MICRO_VERSION))
6413 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
6414 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6415 printf("*** library (version %d.%d.%d)\n",
6416 gtk_major_version, gtk_minor_version, gtk_micro_version);
6418 else
6420 if ((gtk_major_version > major) ||
6421 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6422 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
6424 return 0;
6426 else
6428 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
6429 gtk_major_version, gtk_minor_version, gtk_micro_version);
6430 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
6431 major, minor, micro);
6432 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
6433 printf("***\n");
6434 printf("*** If you have already installed a sufficiently new version, this error\n");
6435 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
6436 printf("*** being found. The easiest way to fix this is to remove the old version\n");
6437 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
6438 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
6439 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
6440 printf("*** so that the correct libraries are found at run-time))\n");
6443 return 1;
6446 _ACEOF
6447 rm -f conftest$ac_exeext
6448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6449 (eval $ac_link) 2>&5
6450 ac_status=$?
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 (eval $ac_try) 2>&5
6455 ac_status=$?
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }; }; then
6459 else
6460 echo "$as_me: program exited with status $ac_status" >&5
6461 echo "$as_me: failed program was:" >&5
6462 sed 's/^/| /' conftest.$ac_ext >&5
6464 ( exit $ac_status )
6465 no_gtk=yes
6467 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6469 CFLAGS="$ac_save_CFLAGS"
6470 LIBS="$ac_save_LIBS"
6473 if test "x$no_gtk" = x ; then
6474 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
6475 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
6477 CFLAGS="$GTK_CFLAGS $CFLAGS"
6478 LDFLAGS="$GTK_LIBS $LDFLAGS"
6479 GTK_VERSION="$($PKG_CONFIG --modversion gtk+-2.0)"
6481 else
6482 echo "$as_me:$LINENO: result: no" >&5
6483 echo "${ECHO_T}no" >&6
6484 if test "$PKG_CONFIG" = "no" ; then
6485 echo "*** A new enough version of pkg-config was not found."
6486 echo "*** See http://pkgconfig.sourceforge.net"
6487 else
6488 if test -f conf.gtktest ; then
6490 else
6491 echo "*** Could not run GTK+ test program, checking why..."
6492 ac_save_CFLAGS="$CFLAGS"
6493 ac_save_LIBS="$LIBS"
6494 CFLAGS="$CFLAGS $GTK_CFLAGS"
6495 LIBS="$LIBS $GTK_LIBS"
6496 cat >conftest.$ac_ext <<_ACEOF
6497 #line $LINENO "configure"
6498 /* confdefs.h. */
6499 _ACEOF
6500 cat confdefs.h >>conftest.$ac_ext
6501 cat >>conftest.$ac_ext <<_ACEOF
6502 /* end confdefs.h. */
6504 #include <gtk/gtk.h>
6505 #include <stdio.h>
6508 main ()
6510 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
6512 return 0;
6514 _ACEOF
6515 rm -f conftest.$ac_objext conftest$ac_exeext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6517 (eval $ac_link) 2>&5
6518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } &&
6521 { ac_try='test -s conftest$ac_exeext'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 (eval $ac_try) 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; }; then
6527 echo "*** The test program compiled, but did not run. This usually means"
6528 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
6529 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
6530 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
6531 echo "*** to the installed location Also, make sure you have run ldconfig if that"
6532 echo "*** is required on your system"
6533 echo "***"
6534 echo "*** If you have an old version installed, it is best to remove it, although"
6535 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
6536 else
6537 echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6540 echo "*** The test program failed to compile or link. See the file config.log for the"
6541 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
6543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6544 CFLAGS="$ac_save_CFLAGS"
6545 LIBS="$ac_save_LIBS"
6548 GTK_CFLAGS=""
6549 GTK_LIBS=""
6550 exit 1
6554 rm -f conf.gtktest
6557 # Checks for GtkGLExt.
6559 succeeded=no
6561 if test -z "$PKG_CONFIG"; then
6562 # Extract the first word of "pkg-config", so it can be a program name with args.
6563 set dummy pkg-config; ac_word=$2
6564 echo "$as_me:$LINENO: checking for $ac_word" >&5
6565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6566 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569 case $PKG_CONFIG in
6570 [\\/]* | ?:[\\/]*)
6571 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6581 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 break 2
6585 done
6586 done
6588 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6590 esac
6592 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6594 if test -n "$PKG_CONFIG"; then
6595 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6596 echo "${ECHO_T}$PKG_CONFIG" >&6
6597 else
6598 echo "$as_me:$LINENO: result: no" >&5
6599 echo "${ECHO_T}no" >&6
6604 if test "$PKG_CONFIG" = "no" ; then
6605 echo "*** The pkg-config script could not be found. Make sure it is"
6606 echo "*** in your path, or set the PKG_CONFIG environment variable"
6607 echo "*** to the full path to pkg-config."
6608 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
6609 else
6610 PKG_CONFIG_MIN_VERSION=0.9.0
6611 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6612 echo "$as_me:$LINENO: checking for gtkglext-1.0 >= 0.7.0" >&5
6613 echo $ECHO_N "checking for gtkglext-1.0 >= 0.7.0... $ECHO_C" >&6
6615 if $PKG_CONFIG --exists "gtkglext-1.0 >= 0.7.0" ; then
6616 echo "$as_me:$LINENO: result: yes" >&5
6617 echo "${ECHO_T}yes" >&6
6618 succeeded=yes
6620 echo "$as_me:$LINENO: checking GTKGLEXT_CFLAGS" >&5
6621 echo $ECHO_N "checking GTKGLEXT_CFLAGS... $ECHO_C" >&6
6622 GTKGLEXT_CFLAGS=`$PKG_CONFIG --cflags "gtkglext-1.0 >= 0.7.0"`
6623 echo "$as_me:$LINENO: result: $GTKGLEXT_CFLAGS" >&5
6624 echo "${ECHO_T}$GTKGLEXT_CFLAGS" >&6
6626 echo "$as_me:$LINENO: checking GTKGLEXT_LIBS" >&5
6627 echo $ECHO_N "checking GTKGLEXT_LIBS... $ECHO_C" >&6
6628 GTKGLEXT_LIBS=`$PKG_CONFIG --libs "gtkglext-1.0 >= 0.7.0"`
6629 echo "$as_me:$LINENO: result: $GTKGLEXT_LIBS" >&5
6630 echo "${ECHO_T}$GTKGLEXT_LIBS" >&6
6631 else
6632 GTKGLEXT_CFLAGS=""
6633 GTKGLEXT_LIBS=""
6634 ## If we have a custom action on failure, don't print errors, but
6635 ## do set a variable so people can do so.
6636 GTKGLEXT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkglext-1.0 >= 0.7.0"`
6637 echo $GTKGLEXT_PKG_ERRORS
6642 else
6643 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6644 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6648 if test $succeeded = yes; then
6650 else
6651 { { 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
6652 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;}
6653 { (exit 1); exit 1; }; }
6656 CFLAGS="$GTKGLEXT_CFLAGS $CFLAGS"
6657 LDFLAGS="$GTKGLEXT_LIBS $LDFLAGS"
6658 GTKGL_VERSION="$($PKG_CONFIG --modversion gtkglext-1.0)"
6660 # I18n.
6661 ALL_LINGUAS=$(echo po/*.po | sed 's|\.po||g' | sed 's|po/||g')
6664 MKINSTALLDIRS=
6665 if test -n "$ac_aux_dir"; then
6666 case "$ac_aux_dir" in
6667 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6668 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6669 esac
6671 if test -z "$MKINSTALLDIRS"; then
6672 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6677 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6678 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6679 # Check whether --enable-nls or --disable-nls was given.
6680 if test "${enable_nls+set}" = set; then
6681 enableval="$enable_nls"
6682 USE_NLS=$enableval
6683 else
6684 USE_NLS=yes
6686 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6687 echo "${ECHO_T}$USE_NLS" >&6
6694 # Prepare PATH_SEPARATOR.
6695 # The user is always right.
6696 if test "${PATH_SEPARATOR+set}" != set; then
6697 echo "#! /bin/sh" >conf$$.sh
6698 echo "exit 0" >>conf$$.sh
6699 chmod +x conf$$.sh
6700 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6701 PATH_SEPARATOR=';'
6702 else
6703 PATH_SEPARATOR=:
6705 rm -f conf$$.sh
6708 # Find out how to test for executable files. Don't use a zero-byte file,
6709 # as systems may use methods other than mode bits to determine executability.
6710 cat >conf$$.file <<_ASEOF
6711 #! /bin/sh
6712 exit 0
6713 _ASEOF
6714 chmod +x conf$$.file
6715 if test -x conf$$.file >/dev/null 2>&1; then
6716 ac_executable_p="test -x"
6717 else
6718 ac_executable_p="test -f"
6720 rm -f conf$$.file
6722 # Extract the first word of "msgfmt", so it can be a program name with args.
6723 set dummy msgfmt; ac_word=$2
6724 echo "$as_me:$LINENO: checking for $ac_word" >&5
6725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6726 if test "${ac_cv_path_MSGFMT+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 else
6729 case "$MSGFMT" in
6730 [\\/]* | ?:[\\/]*)
6731 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6734 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6735 for ac_dir in $PATH; do
6736 IFS="$ac_save_IFS"
6737 test -z "$ac_dir" && ac_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6740 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6741 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6742 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6743 break 2
6746 done
6747 done
6748 IFS="$ac_save_IFS"
6749 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6751 esac
6753 MSGFMT="$ac_cv_path_MSGFMT"
6754 if test "$MSGFMT" != ":"; then
6755 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6756 echo "${ECHO_T}$MSGFMT" >&6
6757 else
6758 echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6
6762 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6763 set dummy gmsgfmt; ac_word=$2
6764 echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6766 if test "${ac_cv_path_GMSGFMT+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769 case $GMSGFMT in
6770 [\\/]* | ?:[\\/]*)
6771 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6781 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6785 done
6786 done
6788 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6790 esac
6792 GMSGFMT=$ac_cv_path_GMSGFMT
6794 if test -n "$GMSGFMT"; then
6795 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
6796 echo "${ECHO_T}$GMSGFMT" >&6
6797 else
6798 echo "$as_me:$LINENO: result: no" >&5
6799 echo "${ECHO_T}no" >&6
6804 # Prepare PATH_SEPARATOR.
6805 # The user is always right.
6806 if test "${PATH_SEPARATOR+set}" != set; then
6807 echo "#! /bin/sh" >conf$$.sh
6808 echo "exit 0" >>conf$$.sh
6809 chmod +x conf$$.sh
6810 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6811 PATH_SEPARATOR=';'
6812 else
6813 PATH_SEPARATOR=:
6815 rm -f conf$$.sh
6818 # Find out how to test for executable files. Don't use a zero-byte file,
6819 # as systems may use methods other than mode bits to determine executability.
6820 cat >conf$$.file <<_ASEOF
6821 #! /bin/sh
6822 exit 0
6823 _ASEOF
6824 chmod +x conf$$.file
6825 if test -x conf$$.file >/dev/null 2>&1; then
6826 ac_executable_p="test -x"
6827 else
6828 ac_executable_p="test -f"
6830 rm -f conf$$.file
6832 # Extract the first word of "xgettext", so it can be a program name with args.
6833 set dummy xgettext; ac_word=$2
6834 echo "$as_me:$LINENO: checking for $ac_word" >&5
6835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6836 if test "${ac_cv_path_XGETTEXT+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 else
6839 case "$XGETTEXT" in
6840 [\\/]* | ?:[\\/]*)
6841 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6844 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6845 for ac_dir in $PATH; do
6846 IFS="$ac_save_IFS"
6847 test -z "$ac_dir" && ac_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6850 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6851 (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
6852 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6853 break 2
6856 done
6857 done
6858 IFS="$ac_save_IFS"
6859 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6861 esac
6863 XGETTEXT="$ac_cv_path_XGETTEXT"
6864 if test "$XGETTEXT" != ":"; then
6865 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6866 echo "${ECHO_T}$XGETTEXT" >&6
6867 else
6868 echo "$as_me:$LINENO: result: no" >&5
6869 echo "${ECHO_T}no" >&6
6872 rm -f messages.po
6875 # Prepare PATH_SEPARATOR.
6876 # The user is always right.
6877 if test "${PATH_SEPARATOR+set}" != set; then
6878 echo "#! /bin/sh" >conf$$.sh
6879 echo "exit 0" >>conf$$.sh
6880 chmod +x conf$$.sh
6881 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6882 PATH_SEPARATOR=';'
6883 else
6884 PATH_SEPARATOR=:
6886 rm -f conf$$.sh
6889 # Find out how to test for executable files. Don't use a zero-byte file,
6890 # as systems may use methods other than mode bits to determine executability.
6891 cat >conf$$.file <<_ASEOF
6892 #! /bin/sh
6893 exit 0
6894 _ASEOF
6895 chmod +x conf$$.file
6896 if test -x conf$$.file >/dev/null 2>&1; then
6897 ac_executable_p="test -x"
6898 else
6899 ac_executable_p="test -f"
6901 rm -f conf$$.file
6903 # Extract the first word of "msgmerge", so it can be a program name with args.
6904 set dummy msgmerge; ac_word=$2
6905 echo "$as_me:$LINENO: checking for $ac_word" >&5
6906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6907 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 else
6910 case "$MSGMERGE" in
6911 [\\/]* | ?:[\\/]*)
6912 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6915 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6916 for ac_dir in $PATH; do
6917 IFS="$ac_save_IFS"
6918 test -z "$ac_dir" && ac_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6921 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6922 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6923 break 2
6926 done
6927 done
6928 IFS="$ac_save_IFS"
6929 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6931 esac
6933 MSGMERGE="$ac_cv_path_MSGMERGE"
6934 if test "$MSGMERGE" != ":"; then
6935 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6936 echo "${ECHO_T}$MSGMERGE" >&6
6937 else
6938 echo "$as_me:$LINENO: result: no" >&5
6939 echo "${ECHO_T}no" >&6
6943 if test "$GMSGFMT" != ":"; then
6944 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6945 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6947 else
6948 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6949 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6950 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
6951 GMSGFMT=":"
6955 if test "$XGETTEXT" != ":"; then
6956 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6957 (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
6959 else
6960 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6961 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6962 XGETTEXT=":"
6964 rm -f messages.po
6967 ac_config_commands="$ac_config_commands default-1"
6970 # Make sure we can run config.sub.
6971 $ac_config_sub sun4 >/dev/null 2>&1 ||
6972 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6973 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6974 { (exit 1); exit 1; }; }
6976 echo "$as_me:$LINENO: checking build system type" >&5
6977 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6978 if test "${ac_cv_build+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981 ac_cv_build_alias=$build_alias
6982 test -z "$ac_cv_build_alias" &&
6983 ac_cv_build_alias=`$ac_config_guess`
6984 test -z "$ac_cv_build_alias" &&
6985 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6986 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6987 { (exit 1); exit 1; }; }
6988 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
6989 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
6990 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
6991 { (exit 1); exit 1; }; }
6994 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6995 echo "${ECHO_T}$ac_cv_build" >&6
6996 build=$ac_cv_build
6997 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6998 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6999 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7002 echo "$as_me:$LINENO: checking host system type" >&5
7003 echo $ECHO_N "checking host system type... $ECHO_C" >&6
7004 if test "${ac_cv_host+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 else
7007 ac_cv_host_alias=$host_alias
7008 test -z "$ac_cv_host_alias" &&
7009 ac_cv_host_alias=$ac_cv_build_alias
7010 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
7011 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7012 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7013 { (exit 1); exit 1; }; }
7016 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7017 echo "${ECHO_T}$ac_cv_host" >&6
7018 host=$ac_cv_host
7019 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7020 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7021 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7025 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7026 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
7027 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030 ac_check_lib_save_LIBS=$LIBS
7031 LIBS="-lcposix $LIBS"
7032 cat >conftest.$ac_ext <<_ACEOF
7033 #line $LINENO "configure"
7034 /* confdefs.h. */
7035 _ACEOF
7036 cat confdefs.h >>conftest.$ac_ext
7037 cat >>conftest.$ac_ext <<_ACEOF
7038 /* end confdefs.h. */
7040 /* Override any gcc2 internal prototype to avoid an error. */
7041 #ifdef __cplusplus
7042 extern "C"
7043 #endif
7044 /* We use char because int might match the return type of a gcc2
7045 builtin and then its argument prototype would still apply. */
7046 char strerror ();
7048 main ()
7050 strerror ();
7052 return 0;
7054 _ACEOF
7055 rm -f conftest.$ac_objext conftest$ac_exeext
7056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7057 (eval $ac_link) 2>&5
7058 ac_status=$?
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } &&
7061 { ac_try='test -s 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
7067 ac_cv_lib_cposix_strerror=yes
7068 else
7069 echo "$as_me: failed program was:" >&5
7070 sed 's/^/| /' conftest.$ac_ext >&5
7072 ac_cv_lib_cposix_strerror=no
7074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7075 LIBS=$ac_check_lib_save_LIBS
7077 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7078 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
7079 if test $ac_cv_lib_cposix_strerror = yes; then
7080 LIBS="$LIBS -lcposix"
7085 echo "$as_me:$LINENO: checking for egrep" >&5
7086 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7087 if test "${ac_cv_prog_egrep+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7091 then ac_cv_prog_egrep='grep -E'
7092 else ac_cv_prog_egrep='egrep'
7095 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7096 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7097 EGREP=$ac_cv_prog_egrep
7100 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7101 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7102 if test "${ac_cv_header_stdc+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105 cat >conftest.$ac_ext <<_ACEOF
7106 #line $LINENO "configure"
7107 /* confdefs.h. */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 #include <stdlib.h>
7113 #include <stdarg.h>
7114 #include <string.h>
7115 #include <float.h>
7118 main ()
7122 return 0;
7124 _ACEOF
7125 rm -f conftest.$ac_objext
7126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7127 (eval $ac_compile) 2>&5
7128 ac_status=$?
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); } &&
7131 { ac_try='test -s conftest.$ac_objext'
7132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133 (eval $ac_try) 2>&5
7134 ac_status=$?
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; }; then
7137 ac_cv_header_stdc=yes
7138 else
7139 echo "$as_me: failed program was:" >&5
7140 sed 's/^/| /' conftest.$ac_ext >&5
7142 ac_cv_header_stdc=no
7144 rm -f conftest.$ac_objext conftest.$ac_ext
7146 if test $ac_cv_header_stdc = yes; then
7147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7148 cat >conftest.$ac_ext <<_ACEOF
7149 #line $LINENO "configure"
7150 /* confdefs.h. */
7151 _ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 #include <string.h>
7157 _ACEOF
7158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7159 $EGREP "memchr" >/dev/null 2>&1; then
7161 else
7162 ac_cv_header_stdc=no
7164 rm -f conftest*
7168 if test $ac_cv_header_stdc = yes; then
7169 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7170 cat >conftest.$ac_ext <<_ACEOF
7171 #line $LINENO "configure"
7172 /* confdefs.h. */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 #include <stdlib.h>
7179 _ACEOF
7180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7181 $EGREP "free" >/dev/null 2>&1; then
7183 else
7184 ac_cv_header_stdc=no
7186 rm -f conftest*
7190 if test $ac_cv_header_stdc = yes; then
7191 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7192 if test "$cross_compiling" = yes; then
7194 else
7195 cat >conftest.$ac_ext <<_ACEOF
7196 #line $LINENO "configure"
7197 /* confdefs.h. */
7198 _ACEOF
7199 cat confdefs.h >>conftest.$ac_ext
7200 cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h. */
7202 #include <ctype.h>
7203 #if ((' ' & 0x0FF) == 0x020)
7204 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7205 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7206 #else
7207 # define ISLOWER(c) \
7208 (('a' <= (c) && (c) <= 'i') \
7209 || ('j' <= (c) && (c) <= 'r') \
7210 || ('s' <= (c) && (c) <= 'z'))
7211 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7212 #endif
7214 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7216 main ()
7218 int i;
7219 for (i = 0; i < 256; i++)
7220 if (XOR (islower (i), ISLOWER (i))
7221 || toupper (i) != TOUPPER (i))
7222 exit(2);
7223 exit (0);
7225 _ACEOF
7226 rm -f conftest$ac_exeext
7227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7228 (eval $ac_link) 2>&5
7229 ac_status=$?
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 (eval $ac_try) 2>&5
7234 ac_status=$?
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; }; then
7238 else
7239 echo "$as_me: program exited with status $ac_status" >&5
7240 echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.$ac_ext >&5
7243 ( exit $ac_status )
7244 ac_cv_header_stdc=no
7246 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7250 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7251 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7252 if test $ac_cv_header_stdc = yes; then
7254 cat >>confdefs.h <<\_ACEOF
7255 #define STDC_HEADERS 1
7256 _ACEOF
7260 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7261 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7262 if test "${ac_cv_c_const+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 else
7265 cat >conftest.$ac_ext <<_ACEOF
7266 #line $LINENO "configure"
7267 /* confdefs.h. */
7268 _ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h. */
7274 main ()
7276 /* FIXME: Include the comments suggested by Paul. */
7277 #ifndef __cplusplus
7278 /* Ultrix mips cc rejects this. */
7279 typedef int charset[2];
7280 const charset x;
7281 /* SunOS 4.1.1 cc rejects this. */
7282 char const *const *ccp;
7283 char **p;
7284 /* NEC SVR4.0.2 mips cc rejects this. */
7285 struct point {int x, y;};
7286 static struct point const zero = {0,0};
7287 /* AIX XL C 1.02.0.0 rejects this.
7288 It does not let you subtract one const X* pointer from another in
7289 an arm of an if-expression whose if-part is not a constant
7290 expression */
7291 const char *g = "string";
7292 ccp = &g + (g ? g-g : 0);
7293 /* HPUX 7.0 cc rejects these. */
7294 ++ccp;
7295 p = (char**) ccp;
7296 ccp = (char const *const *) p;
7297 { /* SCO 3.2v4 cc rejects this. */
7298 char *t;
7299 char const *s = 0 ? (char *) 0 : (char const *) 0;
7301 *t++ = 0;
7303 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7304 int x[] = {25, 17};
7305 const int *foo = &x[0];
7306 ++foo;
7308 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7309 typedef const int *iptr;
7310 iptr p = 0;
7311 ++p;
7313 { /* AIX XL C 1.02.0.0 rejects this saying
7314 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7315 struct s { int j; const int *ap[3]; };
7316 struct s *b; b->j = 5;
7318 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7319 const int foo = 10;
7321 #endif
7324 return 0;
7326 _ACEOF
7327 rm -f conftest.$ac_objext
7328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7329 (eval $ac_compile) 2>&5
7330 ac_status=$?
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } &&
7333 { ac_try='test -s conftest.$ac_objext'
7334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335 (eval $ac_try) 2>&5
7336 ac_status=$?
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); }; }; then
7339 ac_cv_c_const=yes
7340 else
7341 echo "$as_me: failed program was:" >&5
7342 sed 's/^/| /' conftest.$ac_ext >&5
7344 ac_cv_c_const=no
7346 rm -f conftest.$ac_objext conftest.$ac_ext
7348 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7349 echo "${ECHO_T}$ac_cv_c_const" >&6
7350 if test $ac_cv_c_const = no; then
7352 cat >>confdefs.h <<\_ACEOF
7353 #define const
7354 _ACEOF
7358 echo "$as_me:$LINENO: checking for inline" >&5
7359 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7360 if test "${ac_cv_c_inline+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363 ac_cv_c_inline=no
7364 for ac_kw in inline __inline__ __inline; do
7365 cat >conftest.$ac_ext <<_ACEOF
7366 #line $LINENO "configure"
7367 /* confdefs.h. */
7368 _ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7372 #ifndef __cplusplus
7373 typedef int foo_t;
7374 static $ac_kw foo_t static_foo () {return 0; }
7375 $ac_kw foo_t foo () {return 0; }
7376 #endif
7378 _ACEOF
7379 rm -f conftest.$ac_objext
7380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7381 (eval $ac_compile) 2>&5
7382 ac_status=$?
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); } &&
7385 { ac_try='test -s conftest.$ac_objext'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 (eval $ac_try) 2>&5
7388 ac_status=$?
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; }; then
7391 ac_cv_c_inline=$ac_kw; break
7392 else
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7397 rm -f conftest.$ac_objext conftest.$ac_ext
7398 done
7401 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7402 echo "${ECHO_T}$ac_cv_c_inline" >&6
7403 case $ac_cv_c_inline in
7404 inline | yes) ;;
7406 cat >>confdefs.h <<\_ACEOF
7407 #define inline
7408 _ACEOF
7410 *) cat >>confdefs.h <<_ACEOF
7411 #define inline $ac_cv_c_inline
7412 _ACEOF
7414 esac
7416 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7426 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7427 inttypes.h stdint.h unistd.h
7429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7430 echo "$as_me:$LINENO: checking for $ac_header" >&5
7431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7434 else
7435 cat >conftest.$ac_ext <<_ACEOF
7436 #line $LINENO "configure"
7437 /* confdefs.h. */
7438 _ACEOF
7439 cat confdefs.h >>conftest.$ac_ext
7440 cat >>conftest.$ac_ext <<_ACEOF
7441 /* end confdefs.h. */
7442 $ac_includes_default
7444 #include <$ac_header>
7445 _ACEOF
7446 rm -f conftest.$ac_objext
7447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7448 (eval $ac_compile) 2>&5
7449 ac_status=$?
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } &&
7452 { ac_try='test -s conftest.$ac_objext'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 (eval $ac_try) 2>&5
7455 ac_status=$?
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; }; then
7458 eval "$as_ac_Header=yes"
7459 else
7460 echo "$as_me: failed program was:" >&5
7461 sed 's/^/| /' conftest.$ac_ext >&5
7463 eval "$as_ac_Header=no"
7465 rm -f conftest.$ac_objext conftest.$ac_ext
7467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7470 cat >>confdefs.h <<_ACEOF
7471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7472 _ACEOF
7476 done
7479 echo "$as_me:$LINENO: checking for off_t" >&5
7480 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7481 if test "${ac_cv_type_off_t+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 else
7484 cat >conftest.$ac_ext <<_ACEOF
7485 #line $LINENO "configure"
7486 /* confdefs.h. */
7487 _ACEOF
7488 cat confdefs.h >>conftest.$ac_ext
7489 cat >>conftest.$ac_ext <<_ACEOF
7490 /* end confdefs.h. */
7491 $ac_includes_default
7493 main ()
7495 if ((off_t *) 0)
7496 return 0;
7497 if (sizeof (off_t))
7498 return 0;
7500 return 0;
7502 _ACEOF
7503 rm -f conftest.$ac_objext
7504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7505 (eval $ac_compile) 2>&5
7506 ac_status=$?
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } &&
7509 { ac_try='test -s conftest.$ac_objext'
7510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511 (eval $ac_try) 2>&5
7512 ac_status=$?
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; }; then
7515 ac_cv_type_off_t=yes
7516 else
7517 echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7520 ac_cv_type_off_t=no
7522 rm -f conftest.$ac_objext conftest.$ac_ext
7524 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7525 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7526 if test $ac_cv_type_off_t = yes; then
7528 else
7530 cat >>confdefs.h <<_ACEOF
7531 #define off_t long
7532 _ACEOF
7536 echo "$as_me:$LINENO: checking for size_t" >&5
7537 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7538 if test "${ac_cv_type_size_t+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541 cat >conftest.$ac_ext <<_ACEOF
7542 #line $LINENO "configure"
7543 /* confdefs.h. */
7544 _ACEOF
7545 cat confdefs.h >>conftest.$ac_ext
7546 cat >>conftest.$ac_ext <<_ACEOF
7547 /* end confdefs.h. */
7548 $ac_includes_default
7550 main ()
7552 if ((size_t *) 0)
7553 return 0;
7554 if (sizeof (size_t))
7555 return 0;
7557 return 0;
7559 _ACEOF
7560 rm -f conftest.$ac_objext
7561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7562 (eval $ac_compile) 2>&5
7563 ac_status=$?
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } &&
7566 { ac_try='test -s conftest.$ac_objext'
7567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7568 (eval $ac_try) 2>&5
7569 ac_status=$?
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); }; }; then
7572 ac_cv_type_size_t=yes
7573 else
7574 echo "$as_me: failed program was:" >&5
7575 sed 's/^/| /' conftest.$ac_ext >&5
7577 ac_cv_type_size_t=no
7579 rm -f conftest.$ac_objext conftest.$ac_ext
7581 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7582 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7583 if test $ac_cv_type_size_t = yes; then
7585 else
7587 cat >>confdefs.h <<_ACEOF
7588 #define size_t unsigned
7589 _ACEOF
7593 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7594 # for constant arguments. Useless!
7595 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7596 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7597 if test "${ac_cv_working_alloca_h+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600 cat >conftest.$ac_ext <<_ACEOF
7601 #line $LINENO "configure"
7602 /* confdefs.h. */
7603 _ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7607 #include <alloca.h>
7609 main ()
7611 char *p = (char *) alloca (2 * sizeof (int));
7613 return 0;
7615 _ACEOF
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>&5
7619 ac_status=$?
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } &&
7622 { ac_try='test -s conftest$ac_exeext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 (eval $ac_try) 2>&5
7625 ac_status=$?
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 ac_cv_working_alloca_h=yes
7629 else
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7633 ac_cv_working_alloca_h=no
7635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7637 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7638 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7639 if test $ac_cv_working_alloca_h = yes; then
7641 cat >>confdefs.h <<\_ACEOF
7642 #define HAVE_ALLOCA_H 1
7643 _ACEOF
7647 echo "$as_me:$LINENO: checking for alloca" >&5
7648 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7649 if test "${ac_cv_func_alloca_works+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652 cat >conftest.$ac_ext <<_ACEOF
7653 #line $LINENO "configure"
7654 /* confdefs.h. */
7655 _ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7659 #ifdef __GNUC__
7660 # define alloca __builtin_alloca
7661 #else
7662 # ifdef _MSC_VER
7663 # include <malloc.h>
7664 # define alloca _alloca
7665 # else
7666 # if HAVE_ALLOCA_H
7667 # include <alloca.h>
7668 # else
7669 # ifdef _AIX
7670 #pragma alloca
7671 # else
7672 # ifndef alloca /* predefined by HP cc +Olibcalls */
7673 char *alloca ();
7674 # endif
7675 # endif
7676 # endif
7677 # endif
7678 #endif
7681 main ()
7683 char *p = (char *) alloca (1);
7685 return 0;
7687 _ACEOF
7688 rm -f conftest.$ac_objext conftest$ac_exeext
7689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7690 (eval $ac_link) 2>&5
7691 ac_status=$?
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } &&
7694 { ac_try='test -s conftest$ac_exeext'
7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696 (eval $ac_try) 2>&5
7697 ac_status=$?
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; }; then
7700 ac_cv_func_alloca_works=yes
7701 else
7702 echo "$as_me: failed program was:" >&5
7703 sed 's/^/| /' conftest.$ac_ext >&5
7705 ac_cv_func_alloca_works=no
7707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7709 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7710 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7712 if test $ac_cv_func_alloca_works = yes; then
7714 cat >>confdefs.h <<\_ACEOF
7715 #define HAVE_ALLOCA 1
7716 _ACEOF
7718 else
7719 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7720 # that cause trouble. Some versions do not even contain alloca or
7721 # contain a buggy version. If you still want to use their alloca,
7722 # use ar to extract alloca.o from them instead of compiling alloca.c.
7724 ALLOCA=alloca.$ac_objext
7726 cat >>confdefs.h <<\_ACEOF
7727 #define C_ALLOCA 1
7728 _ACEOF
7731 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7732 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7733 if test "${ac_cv_os_cray+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 else
7736 cat >conftest.$ac_ext <<_ACEOF
7737 #line $LINENO "configure"
7738 /* confdefs.h. */
7739 _ACEOF
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
7742 /* end confdefs.h. */
7743 #if defined(CRAY) && ! defined(CRAY2)
7744 webecray
7745 #else
7746 wenotbecray
7747 #endif
7749 _ACEOF
7750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7751 $EGREP "webecray" >/dev/null 2>&1; then
7752 ac_cv_os_cray=yes
7753 else
7754 ac_cv_os_cray=no
7756 rm -f conftest*
7759 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7760 echo "${ECHO_T}$ac_cv_os_cray" >&6
7761 if test $ac_cv_os_cray = yes; then
7762 for ac_func in _getb67 GETB67 getb67; do
7763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7764 echo "$as_me:$LINENO: checking for $ac_func" >&5
7765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7766 if eval "test \"\${$as_ac_var+set}\" = set"; then
7767 echo $ECHO_N "(cached) $ECHO_C" >&6
7768 else
7769 cat >conftest.$ac_ext <<_ACEOF
7770 #line $LINENO "configure"
7771 /* confdefs.h. */
7772 _ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7776 /* System header to define __stub macros and hopefully few prototypes,
7777 which can conflict with char $ac_func (); below.
7778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7779 <limits.h> exists even on freestanding compilers. */
7780 #ifdef __STDC__
7781 # include <limits.h>
7782 #else
7783 # include <assert.h>
7784 #endif
7785 /* Override any gcc2 internal prototype to avoid an error. */
7786 #ifdef __cplusplus
7787 extern "C"
7789 #endif
7790 /* We use char because int might match the return type of a gcc2
7791 builtin and then its argument prototype would still apply. */
7792 char $ac_func ();
7793 /* The GNU C library defines this for functions which it implements
7794 to always fail with ENOSYS. Some functions are actually named
7795 something starting with __ and the normal name is an alias. */
7796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7797 choke me
7798 #else
7799 char (*f) () = $ac_func;
7800 #endif
7801 #ifdef __cplusplus
7803 #endif
7806 main ()
7808 return f != $ac_func;
7810 return 0;
7812 _ACEOF
7813 rm -f conftest.$ac_objext conftest$ac_exeext
7814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7815 (eval $ac_link) 2>&5
7816 ac_status=$?
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } &&
7819 { ac_try='test -s conftest$ac_exeext'
7820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821 (eval $ac_try) 2>&5
7822 ac_status=$?
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; }; then
7825 eval "$as_ac_var=yes"
7826 else
7827 echo "$as_me: failed program was:" >&5
7828 sed 's/^/| /' conftest.$ac_ext >&5
7830 eval "$as_ac_var=no"
7832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7836 if test `eval echo '${'$as_ac_var'}'` = yes; then
7838 cat >>confdefs.h <<_ACEOF
7839 #define CRAY_STACKSEG_END $ac_func
7840 _ACEOF
7842 break
7845 done
7848 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7849 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7850 if test "${ac_cv_c_stack_direction+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 else
7853 if test "$cross_compiling" = yes; then
7854 ac_cv_c_stack_direction=0
7855 else
7856 cat >conftest.$ac_ext <<_ACEOF
7857 #line $LINENO "configure"
7858 /* confdefs.h. */
7859 _ACEOF
7860 cat confdefs.h >>conftest.$ac_ext
7861 cat >>conftest.$ac_ext <<_ACEOF
7862 /* end confdefs.h. */
7864 find_stack_direction ()
7866 static char *addr = 0;
7867 auto char dummy;
7868 if (addr == 0)
7870 addr = &dummy;
7871 return find_stack_direction ();
7873 else
7874 return (&dummy > addr) ? 1 : -1;
7878 main ()
7880 exit (find_stack_direction () < 0);
7882 _ACEOF
7883 rm -f conftest$ac_exeext
7884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7885 (eval $ac_link) 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890 (eval $ac_try) 2>&5
7891 ac_status=$?
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); }; }; then
7894 ac_cv_c_stack_direction=1
7895 else
7896 echo "$as_me: program exited with status $ac_status" >&5
7897 echo "$as_me: failed program was:" >&5
7898 sed 's/^/| /' conftest.$ac_ext >&5
7900 ( exit $ac_status )
7901 ac_cv_c_stack_direction=-1
7903 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7906 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7907 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7909 cat >>confdefs.h <<_ACEOF
7910 #define STACK_DIRECTION $ac_cv_c_stack_direction
7911 _ACEOF
7918 for ac_header in stdlib.h unistd.h
7920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7922 echo "$as_me:$LINENO: checking for $ac_header" >&5
7923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7925 echo $ECHO_N "(cached) $ECHO_C" >&6
7927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7929 else
7930 # Is the header compilable?
7931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7933 cat >conftest.$ac_ext <<_ACEOF
7934 #line $LINENO "configure"
7935 /* confdefs.h. */
7936 _ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7940 $ac_includes_default
7941 #include <$ac_header>
7942 _ACEOF
7943 rm -f conftest.$ac_objext
7944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7945 (eval $ac_compile) 2>&5
7946 ac_status=$?
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); } &&
7949 { ac_try='test -s conftest.$ac_objext'
7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 (eval $ac_try) 2>&5
7952 ac_status=$?
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; }; then
7955 ac_header_compiler=yes
7956 else
7957 echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7960 ac_header_compiler=no
7962 rm -f conftest.$ac_objext conftest.$ac_ext
7963 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7964 echo "${ECHO_T}$ac_header_compiler" >&6
7966 # Is the header present?
7967 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7969 cat >conftest.$ac_ext <<_ACEOF
7970 #line $LINENO "configure"
7971 /* confdefs.h. */
7972 _ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h. */
7976 #include <$ac_header>
7977 _ACEOF
7978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7980 ac_status=$?
7981 grep -v '^ *+' conftest.er1 >conftest.err
7982 rm -f conftest.er1
7983 cat conftest.err >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } >/dev/null; then
7986 if test -s conftest.err; then
7987 ac_cpp_err=$ac_c_preproc_warn_flag
7988 else
7989 ac_cpp_err=
7991 else
7992 ac_cpp_err=yes
7994 if test -z "$ac_cpp_err"; then
7995 ac_header_preproc=yes
7996 else
7997 echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
8000 ac_header_preproc=no
8002 rm -f conftest.err conftest.$ac_ext
8003 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8004 echo "${ECHO_T}$ac_header_preproc" >&6
8006 # So? What about this header?
8007 case $ac_header_compiler:$ac_header_preproc in
8008 yes:no )
8009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8014 cat <<\_ASBOX
8015 ## ------------------------------------ ##
8016 ## Report this to bug-autoconf@gnu.org. ##
8017 ## ------------------------------------ ##
8018 _ASBOX
8020 sed "s/^/$as_me: WARNING: /" >&2
8022 no:yes )
8023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8030 cat <<\_ASBOX
8031 ## ------------------------------------ ##
8032 ## Report this to bug-autoconf@gnu.org. ##
8033 ## ------------------------------------ ##
8034 _ASBOX
8036 sed "s/^/$as_me: WARNING: /" >&2
8038 esac
8039 echo "$as_me:$LINENO: checking for $ac_header" >&5
8040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8043 else
8044 eval "$as_ac_Header=$ac_header_preproc"
8046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8051 cat >>confdefs.h <<_ACEOF
8052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8053 _ACEOF
8057 done
8060 for ac_func in getpagesize
8062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8063 echo "$as_me:$LINENO: checking for $ac_func" >&5
8064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8065 if eval "test \"\${$as_ac_var+set}\" = set"; then
8066 echo $ECHO_N "(cached) $ECHO_C" >&6
8067 else
8068 cat >conftest.$ac_ext <<_ACEOF
8069 #line $LINENO "configure"
8070 /* confdefs.h. */
8071 _ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h. */
8075 /* System header to define __stub macros and hopefully few prototypes,
8076 which can conflict with char $ac_func (); below.
8077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8078 <limits.h> exists even on freestanding compilers. */
8079 #ifdef __STDC__
8080 # include <limits.h>
8081 #else
8082 # include <assert.h>
8083 #endif
8084 /* Override any gcc2 internal prototype to avoid an error. */
8085 #ifdef __cplusplus
8086 extern "C"
8088 #endif
8089 /* We use char because int might match the return type of a gcc2
8090 builtin and then its argument prototype would still apply. */
8091 char $ac_func ();
8092 /* The GNU C library defines this for functions which it implements
8093 to always fail with ENOSYS. Some functions are actually named
8094 something starting with __ and the normal name is an alias. */
8095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8096 choke me
8097 #else
8098 char (*f) () = $ac_func;
8099 #endif
8100 #ifdef __cplusplus
8102 #endif
8105 main ()
8107 return f != $ac_func;
8109 return 0;
8111 _ACEOF
8112 rm -f conftest.$ac_objext conftest$ac_exeext
8113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8114 (eval $ac_link) 2>&5
8115 ac_status=$?
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try='test -s conftest$ac_exeext'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120 (eval $ac_try) 2>&5
8121 ac_status=$?
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8124 eval "$as_ac_var=yes"
8125 else
8126 echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8129 eval "$as_ac_var=no"
8131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8135 if test `eval echo '${'$as_ac_var'}'` = yes; then
8136 cat >>confdefs.h <<_ACEOF
8137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8138 _ACEOF
8141 done
8143 echo "$as_me:$LINENO: checking for working mmap" >&5
8144 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8145 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 else
8148 if test "$cross_compiling" = yes; then
8149 ac_cv_func_mmap_fixed_mapped=no
8150 else
8151 cat >conftest.$ac_ext <<_ACEOF
8152 #line $LINENO "configure"
8153 /* confdefs.h. */
8154 _ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h. */
8158 $ac_includes_default
8159 /* malloc might have been renamed as rpl_malloc. */
8160 #undef malloc
8162 /* Thanks to Mike Haertel and Jim Avera for this test.
8163 Here is a matrix of mmap possibilities:
8164 mmap private not fixed
8165 mmap private fixed at somewhere currently unmapped
8166 mmap private fixed at somewhere already mapped
8167 mmap shared not fixed
8168 mmap shared fixed at somewhere currently unmapped
8169 mmap shared fixed at somewhere already mapped
8170 For private mappings, we should verify that changes cannot be read()
8171 back from the file, nor mmap's back from the file at a different
8172 address. (There have been systems where private was not correctly
8173 implemented like the infamous i386 svr4.0, and systems where the
8174 VM page cache was not coherent with the file system buffer cache
8175 like early versions of FreeBSD and possibly contemporary NetBSD.)
8176 For shared mappings, we should conversely verify that changes get
8177 propagated back to all the places they're supposed to be.
8179 Grep wants private fixed already mapped.
8180 The main things grep needs to know about mmap are:
8181 * does it exist and is it safe to write into the mmap'd area
8182 * how to use it (BSD variants) */
8184 #include <fcntl.h>
8185 #include <sys/mman.h>
8187 #if !STDC_HEADERS && !HAVE_STDLIB_H
8188 char *malloc ();
8189 #endif
8191 /* This mess was copied from the GNU getpagesize.h. */
8192 #if !HAVE_GETPAGESIZE
8193 /* Assume that all systems that can run configure have sys/param.h. */
8194 # if !HAVE_SYS_PARAM_H
8195 # define HAVE_SYS_PARAM_H 1
8196 # endif
8198 # ifdef _SC_PAGESIZE
8199 # define getpagesize() sysconf(_SC_PAGESIZE)
8200 # else /* no _SC_PAGESIZE */
8201 # if HAVE_SYS_PARAM_H
8202 # include <sys/param.h>
8203 # ifdef EXEC_PAGESIZE
8204 # define getpagesize() EXEC_PAGESIZE
8205 # else /* no EXEC_PAGESIZE */
8206 # ifdef NBPG
8207 # define getpagesize() NBPG * CLSIZE
8208 # ifndef CLSIZE
8209 # define CLSIZE 1
8210 # endif /* no CLSIZE */
8211 # else /* no NBPG */
8212 # ifdef NBPC
8213 # define getpagesize() NBPC
8214 # else /* no NBPC */
8215 # ifdef PAGESIZE
8216 # define getpagesize() PAGESIZE
8217 # endif /* PAGESIZE */
8218 # endif /* no NBPC */
8219 # endif /* no NBPG */
8220 # endif /* no EXEC_PAGESIZE */
8221 # else /* no HAVE_SYS_PARAM_H */
8222 # define getpagesize() 8192 /* punt totally */
8223 # endif /* no HAVE_SYS_PARAM_H */
8224 # endif /* no _SC_PAGESIZE */
8226 #endif /* no HAVE_GETPAGESIZE */
8229 main ()
8231 char *data, *data2, *data3;
8232 int i, pagesize;
8233 int fd;
8235 pagesize = getpagesize ();
8237 /* First, make a file with some known garbage in it. */
8238 data = (char *) malloc (pagesize);
8239 if (!data)
8240 exit (1);
8241 for (i = 0; i < pagesize; ++i)
8242 *(data + i) = rand ();
8243 umask (0);
8244 fd = creat ("conftest.mmap", 0600);
8245 if (fd < 0)
8246 exit (1);
8247 if (write (fd, data, pagesize) != pagesize)
8248 exit (1);
8249 close (fd);
8251 /* Next, try to mmap the file at a fixed address which already has
8252 something else allocated at it. If we can, also make sure that
8253 we see the same garbage. */
8254 fd = open ("conftest.mmap", O_RDWR);
8255 if (fd < 0)
8256 exit (1);
8257 data2 = (char *) malloc (2 * pagesize);
8258 if (!data2)
8259 exit (1);
8260 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8261 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8262 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8263 exit (1);
8264 for (i = 0; i < pagesize; ++i)
8265 if (*(data + i) != *(data2 + i))
8266 exit (1);
8268 /* Finally, make sure that changes to the mapped area do not
8269 percolate back to the file as seen by read(). (This is a bug on
8270 some variants of i386 svr4.0.) */
8271 for (i = 0; i < pagesize; ++i)
8272 *(data2 + i) = *(data2 + i) + 1;
8273 data3 = (char *) malloc (pagesize);
8274 if (!data3)
8275 exit (1);
8276 if (read (fd, data3, pagesize) != pagesize)
8277 exit (1);
8278 for (i = 0; i < pagesize; ++i)
8279 if (*(data + i) != *(data3 + i))
8280 exit (1);
8281 close (fd);
8282 exit (0);
8284 _ACEOF
8285 rm -f conftest$ac_exeext
8286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8287 (eval $ac_link) 2>&5
8288 ac_status=$?
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 (eval $ac_try) 2>&5
8293 ac_status=$?
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; }; then
8296 ac_cv_func_mmap_fixed_mapped=yes
8297 else
8298 echo "$as_me: program exited with status $ac_status" >&5
8299 echo "$as_me: failed program was:" >&5
8300 sed 's/^/| /' conftest.$ac_ext >&5
8302 ( exit $ac_status )
8303 ac_cv_func_mmap_fixed_mapped=no
8305 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8308 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8309 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8310 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8312 cat >>confdefs.h <<\_ACEOF
8313 #define HAVE_MMAP 1
8314 _ACEOF
8317 rm -f conftest.mmap
8320 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8321 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8322 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 else
8325 cat >conftest.$ac_ext <<_ACEOF
8326 #line $LINENO "configure"
8327 /* confdefs.h. */
8328 _ACEOF
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h. */
8333 #include <features.h>
8334 #ifdef __GNU_LIBRARY__
8335 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8336 Lucky GNU user
8337 #endif
8338 #endif
8340 _ACEOF
8341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8342 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8343 ac_cv_gnu_library_2_1=yes
8344 else
8345 ac_cv_gnu_library_2_1=no
8347 rm -f conftest*
8352 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8353 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8355 GLIBC21="$ac_cv_gnu_library_2_1"
8360 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8361 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8362 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8366 if test "$cross_compiling" = yes; then
8368 # Guess based on the CPU.
8369 case "$host_cpu" in
8370 alpha* | i3456786 | m68k | s390*)
8371 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8373 gt_cv_int_divbyzero_sigfpe="guessing no";;
8374 esac
8376 else
8377 cat >conftest.$ac_ext <<_ACEOF
8378 #line $LINENO "configure"
8379 /* confdefs.h. */
8380 _ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8385 #include <stdlib.h>
8386 #include <signal.h>
8388 static void
8389 #ifdef __cplusplus
8390 sigfpe_handler (int sig)
8391 #else
8392 sigfpe_handler (sig) int sig;
8393 #endif
8395 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8396 exit (sig != SIGFPE);
8399 int x = 1;
8400 int y = 0;
8401 int z;
8402 int nan;
8404 int main ()
8406 signal (SIGFPE, sigfpe_handler);
8407 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
8408 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8409 signal (SIGTRAP, sigfpe_handler);
8410 #endif
8411 /* Linux/SPARC yields signal SIGILL. */
8412 #if defined (__sparc__) && defined (__linux__)
8413 signal (SIGILL, sigfpe_handler);
8414 #endif
8416 z = x / y;
8417 nan = y / y;
8418 exit (1);
8421 _ACEOF
8422 rm -f conftest$ac_exeext
8423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8424 (eval $ac_link) 2>&5
8425 ac_status=$?
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429 (eval $ac_try) 2>&5
8430 ac_status=$?
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; }; then
8433 gt_cv_int_divbyzero_sigfpe=yes
8434 else
8435 echo "$as_me: program exited with status $ac_status" >&5
8436 echo "$as_me: failed program was:" >&5
8437 sed 's/^/| /' conftest.$ac_ext >&5
8439 ( exit $ac_status )
8440 gt_cv_int_divbyzero_sigfpe=no
8442 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8446 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
8447 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
8448 case "$gt_cv_int_divbyzero_sigfpe" in
8449 *yes) value=1;;
8450 *) value=0;;
8451 esac
8453 cat >>confdefs.h <<_ACEOF
8454 #define INTDIV0_RAISES_SIGFPE $value
8455 _ACEOF
8459 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8460 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8461 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 else
8464 cat >conftest.$ac_ext <<_ACEOF
8465 #line $LINENO "configure"
8466 /* confdefs.h. */
8467 _ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h. */
8471 #include <sys/types.h>
8472 #include <inttypes.h>
8474 main ()
8476 uintmax_t i = (uintmax_t) -1;
8478 return 0;
8480 _ACEOF
8481 rm -f conftest.$ac_objext
8482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8483 (eval $ac_compile) 2>&5
8484 ac_status=$?
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } &&
8487 { ac_try='test -s conftest.$ac_objext'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489 (eval $ac_try) 2>&5
8490 ac_status=$?
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; }; then
8493 jm_ac_cv_header_inttypes_h=yes
8494 else
8495 echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8498 jm_ac_cv_header_inttypes_h=no
8500 rm -f conftest.$ac_objext conftest.$ac_ext
8502 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
8503 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
8504 if test $jm_ac_cv_header_inttypes_h = yes; then
8506 cat >>confdefs.h <<_ACEOF
8507 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8508 _ACEOF
8513 echo "$as_me:$LINENO: checking for stdint.h" >&5
8514 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
8515 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
8516 echo $ECHO_N "(cached) $ECHO_C" >&6
8517 else
8518 cat >conftest.$ac_ext <<_ACEOF
8519 #line $LINENO "configure"
8520 /* confdefs.h. */
8521 _ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h. */
8525 #include <sys/types.h>
8526 #include <stdint.h>
8528 main ()
8530 uintmax_t i = (uintmax_t) -1;
8532 return 0;
8534 _ACEOF
8535 rm -f conftest.$ac_objext
8536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8537 (eval $ac_compile) 2>&5
8538 ac_status=$?
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } &&
8541 { ac_try='test -s conftest.$ac_objext'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 (eval $ac_try) 2>&5
8544 ac_status=$?
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 jm_ac_cv_header_stdint_h=yes
8548 else
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8552 jm_ac_cv_header_stdint_h=no
8554 rm -f conftest.$ac_objext conftest.$ac_ext
8556 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
8557 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
8558 if test $jm_ac_cv_header_stdint_h = yes; then
8560 cat >>confdefs.h <<_ACEOF
8561 #define HAVE_STDINT_H_WITH_UINTMAX 1
8562 _ACEOF
8567 echo "$as_me:$LINENO: checking for unsigned long long" >&5
8568 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
8569 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572 cat >conftest.$ac_ext <<_ACEOF
8573 #line $LINENO "configure"
8574 /* confdefs.h. */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8579 unsigned long long ull = 1; int i = 63;
8581 main ()
8583 unsigned long long ullmax = (unsigned long long) -1;
8584 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8586 return 0;
8588 _ACEOF
8589 rm -f conftest.$ac_objext conftest$ac_exeext
8590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8591 (eval $ac_link) 2>&5
8592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } &&
8595 { ac_try='test -s conftest$ac_exeext'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 (eval $ac_try) 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
8601 ac_cv_type_unsigned_long_long=yes
8602 else
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8606 ac_cv_type_unsigned_long_long=no
8608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8610 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
8611 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
8612 if test $ac_cv_type_unsigned_long_long = yes; then
8614 cat >>confdefs.h <<\_ACEOF
8615 #define HAVE_UNSIGNED_LONG_LONG 1
8616 _ACEOF
8623 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
8625 test $ac_cv_type_unsigned_long_long = yes \
8626 && ac_type='unsigned long long' \
8627 || ac_type='unsigned long'
8629 cat >>confdefs.h <<_ACEOF
8630 #define uintmax_t $ac_type
8631 _ACEOF
8633 else
8635 cat >>confdefs.h <<\_ACEOF
8636 #define HAVE_UINTMAX_T 1
8637 _ACEOF
8642 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8643 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8644 if test "${gt_cv_header_inttypes_h+set}" = set; then
8645 echo $ECHO_N "(cached) $ECHO_C" >&6
8646 else
8648 cat >conftest.$ac_ext <<_ACEOF
8649 #line $LINENO "configure"
8650 /* confdefs.h. */
8651 _ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8655 #include <sys/types.h>
8656 #include <inttypes.h>
8658 main ()
8662 return 0;
8664 _ACEOF
8665 rm -f conftest.$ac_objext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8667 (eval $ac_compile) 2>&5
8668 ac_status=$?
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } &&
8671 { ac_try='test -s conftest.$ac_objext'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673 (eval $ac_try) 2>&5
8674 ac_status=$?
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; }; then
8677 gt_cv_header_inttypes_h=yes
8678 else
8679 echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8682 gt_cv_header_inttypes_h=no
8684 rm -f conftest.$ac_objext conftest.$ac_ext
8687 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
8688 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
8689 if test $gt_cv_header_inttypes_h = yes; then
8691 cat >>confdefs.h <<_ACEOF
8692 #define HAVE_INTTYPES_H 1
8693 _ACEOF
8699 if test $gt_cv_header_inttypes_h = yes; then
8700 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
8701 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
8702 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8704 else
8706 cat >conftest.$ac_ext <<_ACEOF
8707 #line $LINENO "configure"
8708 /* confdefs.h. */
8709 _ACEOF
8710 cat confdefs.h >>conftest.$ac_ext
8711 cat >>conftest.$ac_ext <<_ACEOF
8712 /* end confdefs.h. */
8713 #include <inttypes.h>
8714 #ifdef PRId32
8715 char *p = PRId32;
8716 #endif
8719 main ()
8723 return 0;
8725 _ACEOF
8726 rm -f conftest.$ac_objext
8727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8728 (eval $ac_compile) 2>&5
8729 ac_status=$?
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } &&
8732 { ac_try='test -s conftest.$ac_objext'
8733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734 (eval $ac_try) 2>&5
8735 ac_status=$?
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); }; }; then
8738 gt_cv_inttypes_pri_broken=no
8739 else
8740 echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8743 gt_cv_inttypes_pri_broken=yes
8745 rm -f conftest.$ac_objext conftest.$ac_ext
8748 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
8749 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
8751 if test "$gt_cv_inttypes_pri_broken" = yes; then
8753 cat >>confdefs.h <<_ACEOF
8754 #define PRI_MACROS_BROKEN 1
8755 _ACEOF
8760 if test "X$prefix" = "XNONE"; then
8761 acl_final_prefix="$ac_default_prefix"
8762 else
8763 acl_final_prefix="$prefix"
8765 if test "X$exec_prefix" = "XNONE"; then
8766 acl_final_exec_prefix='${prefix}'
8767 else
8768 acl_final_exec_prefix="$exec_prefix"
8770 acl_save_prefix="$prefix"
8771 prefix="$acl_final_prefix"
8772 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8773 prefix="$acl_save_prefix"
8776 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8777 if test "${with_gnu_ld+set}" = set; then
8778 withval="$with_gnu_ld"
8779 test "$withval" = no || with_gnu_ld=yes
8780 else
8781 with_gnu_ld=no
8783 # Prepare PATH_SEPARATOR.
8784 # The user is always right.
8785 if test "${PATH_SEPARATOR+set}" != set; then
8786 echo "#! /bin/sh" >conf$$.sh
8787 echo "exit 0" >>conf$$.sh
8788 chmod +x conf$$.sh
8789 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8790 PATH_SEPARATOR=';'
8791 else
8792 PATH_SEPARATOR=:
8794 rm -f conf$$.sh
8796 ac_prog=ld
8797 if test "$GCC" = yes; then
8798 # Check if gcc -print-prog-name=ld gives a path.
8799 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8800 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
8801 case $host in
8802 *-*-mingw*)
8803 # gcc leaves a trailing carriage return which upsets mingw
8804 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8806 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8807 esac
8808 case $ac_prog in
8809 # Accept absolute paths.
8810 [\\/]* | [A-Za-z]:[\\/]*)
8811 re_direlt='/[^/][^/]*/\.\./'
8812 # Canonicalize the path of ld
8813 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8814 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8815 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8816 done
8817 test -z "$LD" && LD="$ac_prog"
8820 # If it fails, then pretend we aren't using GCC.
8821 ac_prog=ld
8824 # If it is relative, then search for the first ld in PATH.
8825 with_gnu_ld=unknown
8827 esac
8828 elif test "$with_gnu_ld" = yes; then
8829 echo "$as_me:$LINENO: checking for GNU ld" >&5
8830 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8831 else
8832 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8833 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8835 if test "${acl_cv_path_LD+set}" = set; then
8836 echo $ECHO_N "(cached) $ECHO_C" >&6
8837 else
8838 if test -z "$LD"; then
8839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8840 for ac_dir in $PATH; do
8841 test -z "$ac_dir" && ac_dir=.
8842 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8843 acl_cv_path_LD="$ac_dir/$ac_prog"
8844 # Check to see if the program is GNU ld. I'd rather use --version,
8845 # but apparently some GNU ld's only accept -v.
8846 # Break only if it was the GNU/non-GNU ld that we prefer.
8847 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8848 test "$with_gnu_ld" != no && break
8849 else
8850 test "$with_gnu_ld" != yes && break
8853 done
8854 IFS="$ac_save_ifs"
8855 else
8856 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8860 LD="$acl_cv_path_LD"
8861 if test -n "$LD"; then
8862 echo "$as_me:$LINENO: result: $LD" >&5
8863 echo "${ECHO_T}$LD" >&6
8864 else
8865 echo "$as_me:$LINENO: result: no" >&5
8866 echo "${ECHO_T}no" >&6
8868 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8869 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8870 { (exit 1); exit 1; }; }
8871 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8872 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8873 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8875 else
8876 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8877 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8878 acl_cv_prog_gnu_ld=yes
8879 else
8880 acl_cv_prog_gnu_ld=no
8883 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8884 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
8885 with_gnu_ld=$acl_cv_prog_gnu_ld
8889 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8890 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
8891 if test "${acl_cv_rpath+set}" = set; then
8892 echo $ECHO_N "(cached) $ECHO_C" >&6
8893 else
8895 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8896 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8897 . ./conftest.sh
8898 rm -f ./conftest.sh
8899 acl_cv_rpath=done
8902 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8903 echo "${ECHO_T}$acl_cv_rpath" >&6
8904 wl="$acl_cv_wl"
8905 libext="$acl_cv_libext"
8906 shlibext="$acl_cv_shlibext"
8907 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8908 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8909 hardcode_direct="$acl_cv_hardcode_direct"
8910 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8911 # Check whether --enable-rpath or --disable-rpath was given.
8912 if test "${enable_rpath+set}" = set; then
8913 enableval="$enable_rpath"
8915 else
8916 enable_rpath=yes
8925 use_additional=yes
8927 acl_save_prefix="$prefix"
8928 prefix="$acl_final_prefix"
8929 acl_save_exec_prefix="$exec_prefix"
8930 exec_prefix="$acl_final_exec_prefix"
8932 eval additional_includedir=\"$includedir\"
8933 eval additional_libdir=\"$libdir\"
8935 exec_prefix="$acl_save_exec_prefix"
8936 prefix="$acl_save_prefix"
8939 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8940 if test "${with_libiconv_prefix+set}" = set; then
8941 withval="$with_libiconv_prefix"
8943 if test "X$withval" = "Xno"; then
8944 use_additional=no
8945 else
8946 if test "X$withval" = "X"; then
8948 acl_save_prefix="$prefix"
8949 prefix="$acl_final_prefix"
8950 acl_save_exec_prefix="$exec_prefix"
8951 exec_prefix="$acl_final_exec_prefix"
8953 eval additional_includedir=\"$includedir\"
8954 eval additional_libdir=\"$libdir\"
8956 exec_prefix="$acl_save_exec_prefix"
8957 prefix="$acl_save_prefix"
8959 else
8960 additional_includedir="$withval/include"
8961 additional_libdir="$withval/lib"
8966 LIBICONV=
8967 LTLIBICONV=
8968 INCICONV=
8969 rpathdirs=
8970 ltrpathdirs=
8971 names_already_handled=
8972 names_next_round='iconv '
8973 while test -n "$names_next_round"; do
8974 names_this_round="$names_next_round"
8975 names_next_round=
8976 for name in $names_this_round; do
8977 already_handled=
8978 for n in $names_already_handled; do
8979 if test "$n" = "$name"; then
8980 already_handled=yes
8981 break
8983 done
8984 if test -z "$already_handled"; then
8985 names_already_handled="$names_already_handled $name"
8986 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8987 eval value=\"\$HAVE_LIB$uppername\"
8988 if test -n "$value"; then
8989 if test "$value" = yes; then
8990 eval value=\"\$LIB$uppername\"
8991 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8992 eval value=\"\$LTLIB$uppername\"
8993 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8994 else
8997 else
8998 found_dir=
8999 found_la=
9000 found_so=
9001 found_a=
9002 if test $use_additional = yes; then
9003 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9004 found_dir="$additional_libdir"
9005 found_so="$additional_libdir/lib$name.$shlibext"
9006 if test -f "$additional_libdir/lib$name.la"; then
9007 found_la="$additional_libdir/lib$name.la"
9009 else
9010 if test -f "$additional_libdir/lib$name.$libext"; then
9011 found_dir="$additional_libdir"
9012 found_a="$additional_libdir/lib$name.$libext"
9013 if test -f "$additional_libdir/lib$name.la"; then
9014 found_la="$additional_libdir/lib$name.la"
9019 if test "X$found_dir" = "X"; then
9020 for x in $LDFLAGS $LTLIBICONV; do
9022 acl_save_prefix="$prefix"
9023 prefix="$acl_final_prefix"
9024 acl_save_exec_prefix="$exec_prefix"
9025 exec_prefix="$acl_final_exec_prefix"
9026 eval x=\"$x\"
9027 exec_prefix="$acl_save_exec_prefix"
9028 prefix="$acl_save_prefix"
9030 case "$x" in
9031 -L*)
9032 dir=`echo "X$x" | sed -e 's/^X-L//'`
9033 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9034 found_dir="$dir"
9035 found_so="$dir/lib$name.$shlibext"
9036 if test -f "$dir/lib$name.la"; then
9037 found_la="$dir/lib$name.la"
9039 else
9040 if test -f "$dir/lib$name.$libext"; then
9041 found_dir="$dir"
9042 found_a="$dir/lib$name.$libext"
9043 if test -f "$dir/lib$name.la"; then
9044 found_la="$dir/lib$name.la"
9049 esac
9050 if test "X$found_dir" != "X"; then
9051 break
9053 done
9055 if test "X$found_dir" != "X"; then
9056 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9057 if test "X$found_so" != "X"; then
9058 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9059 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9060 else
9061 haveit=
9062 for x in $ltrpathdirs; do
9063 if test "X$x" = "X$found_dir"; then
9064 haveit=yes
9065 break
9067 done
9068 if test -z "$haveit"; then
9069 ltrpathdirs="$ltrpathdirs $found_dir"
9071 if test "$hardcode_direct" = yes; then
9072 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9073 else
9074 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9075 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9076 haveit=
9077 for x in $rpathdirs; do
9078 if test "X$x" = "X$found_dir"; then
9079 haveit=yes
9080 break
9082 done
9083 if test -z "$haveit"; then
9084 rpathdirs="$rpathdirs $found_dir"
9086 else
9087 haveit=
9088 for x in $LDFLAGS $LIBICONV; do
9090 acl_save_prefix="$prefix"
9091 prefix="$acl_final_prefix"
9092 acl_save_exec_prefix="$exec_prefix"
9093 exec_prefix="$acl_final_exec_prefix"
9094 eval x=\"$x\"
9095 exec_prefix="$acl_save_exec_prefix"
9096 prefix="$acl_save_prefix"
9098 if test "X$x" = "X-L$found_dir"; then
9099 haveit=yes
9100 break
9102 done
9103 if test -z "$haveit"; then
9104 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9106 if test "$hardcode_minus_L" != no; then
9107 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9108 else
9109 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9114 else
9115 if test "X$found_a" != "X"; then
9116 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9117 else
9118 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9121 additional_includedir=
9122 case "$found_dir" in
9123 */lib | */lib/)
9124 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9125 additional_includedir="$basedir/include"
9127 esac
9128 if test "X$additional_includedir" != "X"; then
9129 if test "X$additional_includedir" != "X/usr/include"; then
9130 haveit=
9131 if test "X$additional_includedir" = "X/usr/local/include"; then
9132 if test -n "$GCC"; then
9133 case $host_os in
9134 linux*) haveit=yes;;
9135 esac
9138 if test -z "$haveit"; then
9139 for x in $CPPFLAGS $INCICONV; do
9141 acl_save_prefix="$prefix"
9142 prefix="$acl_final_prefix"
9143 acl_save_exec_prefix="$exec_prefix"
9144 exec_prefix="$acl_final_exec_prefix"
9145 eval x=\"$x\"
9146 exec_prefix="$acl_save_exec_prefix"
9147 prefix="$acl_save_prefix"
9149 if test "X$x" = "X-I$additional_includedir"; then
9150 haveit=yes
9151 break
9153 done
9154 if test -z "$haveit"; then
9155 if test -d "$additional_includedir"; then
9156 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9162 if test -n "$found_la"; then
9163 save_libdir="$libdir"
9164 case "$found_la" in
9165 */* | *\\*) . "$found_la" ;;
9166 *) . "./$found_la" ;;
9167 esac
9168 libdir="$save_libdir"
9169 for dep in $dependency_libs; do
9170 case "$dep" in
9171 -L*)
9172 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9173 if test "X$additional_libdir" != "X/usr/lib"; then
9174 haveit=
9175 if test "X$additional_libdir" = "X/usr/local/lib"; then
9176 if test -n "$GCC"; then
9177 case $host_os in
9178 linux*) haveit=yes;;
9179 esac
9182 if test -z "$haveit"; then
9183 haveit=
9184 for x in $LDFLAGS $LIBICONV; do
9186 acl_save_prefix="$prefix"
9187 prefix="$acl_final_prefix"
9188 acl_save_exec_prefix="$exec_prefix"
9189 exec_prefix="$acl_final_exec_prefix"
9190 eval x=\"$x\"
9191 exec_prefix="$acl_save_exec_prefix"
9192 prefix="$acl_save_prefix"
9194 if test "X$x" = "X-L$additional_libdir"; then
9195 haveit=yes
9196 break
9198 done
9199 if test -z "$haveit"; then
9200 if test -d "$additional_libdir"; then
9201 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9204 haveit=
9205 for x in $LDFLAGS $LTLIBICONV; do
9207 acl_save_prefix="$prefix"
9208 prefix="$acl_final_prefix"
9209 acl_save_exec_prefix="$exec_prefix"
9210 exec_prefix="$acl_final_exec_prefix"
9211 eval x=\"$x\"
9212 exec_prefix="$acl_save_exec_prefix"
9213 prefix="$acl_save_prefix"
9215 if test "X$x" = "X-L$additional_libdir"; then
9216 haveit=yes
9217 break
9219 done
9220 if test -z "$haveit"; then
9221 if test -d "$additional_libdir"; then
9222 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9228 -R*)
9229 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9230 if test "$enable_rpath" != no; then
9231 haveit=
9232 for x in $rpathdirs; do
9233 if test "X$x" = "X$dir"; then
9234 haveit=yes
9235 break
9237 done
9238 if test -z "$haveit"; then
9239 rpathdirs="$rpathdirs $dir"
9241 haveit=
9242 for x in $ltrpathdirs; do
9243 if test "X$x" = "X$dir"; then
9244 haveit=yes
9245 break
9247 done
9248 if test -z "$haveit"; then
9249 ltrpathdirs="$ltrpathdirs $dir"
9253 -l*)
9254 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9256 *.la)
9257 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9260 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9261 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9263 esac
9264 done
9266 else
9267 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9268 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9272 done
9273 done
9274 if test "X$rpathdirs" != "X"; then
9275 if test -n "$hardcode_libdir_separator"; then
9276 alldirs=
9277 for found_dir in $rpathdirs; do
9278 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9279 done
9280 acl_save_libdir="$libdir"
9281 libdir="$alldirs"
9282 eval flag=\"$hardcode_libdir_flag_spec\"
9283 libdir="$acl_save_libdir"
9284 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9285 else
9286 for found_dir in $rpathdirs; do
9287 acl_save_libdir="$libdir"
9288 libdir="$found_dir"
9289 eval flag=\"$hardcode_libdir_flag_spec\"
9290 libdir="$acl_save_libdir"
9291 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9292 done
9295 if test "X$ltrpathdirs" != "X"; then
9296 for found_dir in $ltrpathdirs; do
9297 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9298 done
9314 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9315 stdlib.h string.h unistd.h sys/param.h
9317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9319 echo "$as_me:$LINENO: checking for $ac_header" >&5
9320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9326 else
9327 # Is the header compilable?
9328 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9330 cat >conftest.$ac_ext <<_ACEOF
9331 #line $LINENO "configure"
9332 /* confdefs.h. */
9333 _ACEOF
9334 cat confdefs.h >>conftest.$ac_ext
9335 cat >>conftest.$ac_ext <<_ACEOF
9336 /* end confdefs.h. */
9337 $ac_includes_default
9338 #include <$ac_header>
9339 _ACEOF
9340 rm -f conftest.$ac_objext
9341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9342 (eval $ac_compile) 2>&5
9343 ac_status=$?
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); } &&
9346 { ac_try='test -s conftest.$ac_objext'
9347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348 (eval $ac_try) 2>&5
9349 ac_status=$?
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); }; }; then
9352 ac_header_compiler=yes
9353 else
9354 echo "$as_me: failed program was:" >&5
9355 sed 's/^/| /' conftest.$ac_ext >&5
9357 ac_header_compiler=no
9359 rm -f conftest.$ac_objext conftest.$ac_ext
9360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9361 echo "${ECHO_T}$ac_header_compiler" >&6
9363 # Is the header present?
9364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9366 cat >conftest.$ac_ext <<_ACEOF
9367 #line $LINENO "configure"
9368 /* confdefs.h. */
9369 _ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9373 #include <$ac_header>
9374 _ACEOF
9375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9377 ac_status=$?
9378 grep -v '^ *+' conftest.er1 >conftest.err
9379 rm -f conftest.er1
9380 cat conftest.err >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } >/dev/null; then
9383 if test -s conftest.err; then
9384 ac_cpp_err=$ac_c_preproc_warn_flag
9385 else
9386 ac_cpp_err=
9388 else
9389 ac_cpp_err=yes
9391 if test -z "$ac_cpp_err"; then
9392 ac_header_preproc=yes
9393 else
9394 echo "$as_me: failed program was:" >&5
9395 sed 's/^/| /' conftest.$ac_ext >&5
9397 ac_header_preproc=no
9399 rm -f conftest.err conftest.$ac_ext
9400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9401 echo "${ECHO_T}$ac_header_preproc" >&6
9403 # So? What about this header?
9404 case $ac_header_compiler:$ac_header_preproc in
9405 yes:no )
9406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9411 cat <<\_ASBOX
9412 ## ------------------------------------ ##
9413 ## Report this to bug-autoconf@gnu.org. ##
9414 ## ------------------------------------ ##
9415 _ASBOX
9417 sed "s/^/$as_me: WARNING: /" >&2
9419 no:yes )
9420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9423 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9427 cat <<\_ASBOX
9428 ## ------------------------------------ ##
9429 ## Report this to bug-autoconf@gnu.org. ##
9430 ## ------------------------------------ ##
9431 _ASBOX
9433 sed "s/^/$as_me: WARNING: /" >&2
9435 esac
9436 echo "$as_me:$LINENO: checking for $ac_header" >&5
9437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9440 else
9441 eval "$as_ac_Header=$ac_header_preproc"
9443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9448 cat >>confdefs.h <<_ACEOF
9449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9450 _ACEOF
9454 done
9478 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
9479 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
9480 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
9481 __fsetlocking
9483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9484 echo "$as_me:$LINENO: checking for $ac_func" >&5
9485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9486 if eval "test \"\${$as_ac_var+set}\" = set"; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9488 else
9489 cat >conftest.$ac_ext <<_ACEOF
9490 #line $LINENO "configure"
9491 /* confdefs.h. */
9492 _ACEOF
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h. */
9496 /* System header to define __stub macros and hopefully few prototypes,
9497 which can conflict with char $ac_func (); below.
9498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9499 <limits.h> exists even on freestanding compilers. */
9500 #ifdef __STDC__
9501 # include <limits.h>
9502 #else
9503 # include <assert.h>
9504 #endif
9505 /* Override any gcc2 internal prototype to avoid an error. */
9506 #ifdef __cplusplus
9507 extern "C"
9509 #endif
9510 /* We use char because int might match the return type of a gcc2
9511 builtin and then its argument prototype would still apply. */
9512 char $ac_func ();
9513 /* The GNU C library defines this for functions which it implements
9514 to always fail with ENOSYS. Some functions are actually named
9515 something starting with __ and the normal name is an alias. */
9516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9517 choke me
9518 #else
9519 char (*f) () = $ac_func;
9520 #endif
9521 #ifdef __cplusplus
9523 #endif
9526 main ()
9528 return f != $ac_func;
9530 return 0;
9532 _ACEOF
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9535 (eval $ac_link) 2>&5
9536 ac_status=$?
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } &&
9539 { ac_try='test -s conftest$ac_exeext'
9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 (eval $ac_try) 2>&5
9542 ac_status=$?
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; }; then
9545 eval "$as_ac_var=yes"
9546 else
9547 echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9550 eval "$as_ac_var=no"
9552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9556 if test `eval echo '${'$as_ac_var'}'` = yes; then
9557 cat >>confdefs.h <<_ACEOF
9558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9559 _ACEOF
9562 done
9570 am_save_CPPFLAGS="$CPPFLAGS"
9572 for element in $INCICONV; do
9573 haveit=
9574 for x in $CPPFLAGS; do
9576 acl_save_prefix="$prefix"
9577 prefix="$acl_final_prefix"
9578 acl_save_exec_prefix="$exec_prefix"
9579 exec_prefix="$acl_final_exec_prefix"
9580 eval x=\"$x\"
9581 exec_prefix="$acl_save_exec_prefix"
9582 prefix="$acl_save_prefix"
9584 if test "X$x" = "X$element"; then
9585 haveit=yes
9586 break
9588 done
9589 if test -z "$haveit"; then
9590 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9592 done
9595 echo "$as_me:$LINENO: checking for iconv" >&5
9596 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9597 if test "${am_cv_func_iconv+set}" = set; then
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9599 else
9601 am_cv_func_iconv="no, consider installing GNU libiconv"
9602 am_cv_lib_iconv=no
9603 cat >conftest.$ac_ext <<_ACEOF
9604 #line $LINENO "configure"
9605 /* confdefs.h. */
9606 _ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9610 #include <stdlib.h>
9611 #include <iconv.h>
9613 main ()
9615 iconv_t cd = iconv_open("","");
9616 iconv(cd,NULL,NULL,NULL,NULL);
9617 iconv_close(cd);
9619 return 0;
9621 _ACEOF
9622 rm -f conftest.$ac_objext conftest$ac_exeext
9623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9624 (eval $ac_link) 2>&5
9625 ac_status=$?
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } &&
9628 { ac_try='test -s conftest$ac_exeext'
9629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630 (eval $ac_try) 2>&5
9631 ac_status=$?
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; }; then
9634 am_cv_func_iconv=yes
9635 else
9636 echo "$as_me: failed program was:" >&5
9637 sed 's/^/| /' conftest.$ac_ext >&5
9640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9641 if test "$am_cv_func_iconv" != yes; then
9642 am_save_LIBS="$LIBS"
9643 LIBS="$LIBS $LIBICONV"
9644 cat >conftest.$ac_ext <<_ACEOF
9645 #line $LINENO "configure"
9646 /* confdefs.h. */
9647 _ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9651 #include <stdlib.h>
9652 #include <iconv.h>
9654 main ()
9656 iconv_t cd = iconv_open("","");
9657 iconv(cd,NULL,NULL,NULL,NULL);
9658 iconv_close(cd);
9660 return 0;
9662 _ACEOF
9663 rm -f conftest.$ac_objext conftest$ac_exeext
9664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9665 (eval $ac_link) 2>&5
9666 ac_status=$?
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } &&
9669 { ac_try='test -s conftest$ac_exeext'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671 (eval $ac_try) 2>&5
9672 ac_status=$?
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; }; then
9675 am_cv_lib_iconv=yes
9676 am_cv_func_iconv=yes
9677 else
9678 echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9683 LIBS="$am_save_LIBS"
9687 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9688 echo "${ECHO_T}$am_cv_func_iconv" >&6
9689 if test "$am_cv_func_iconv" = yes; then
9691 cat >>confdefs.h <<\_ACEOF
9692 #define HAVE_ICONV 1
9693 _ACEOF
9696 if test "$am_cv_lib_iconv" = yes; then
9697 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9698 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
9699 echo "$as_me:$LINENO: result: $LIBICONV" >&5
9700 echo "${ECHO_T}$LIBICONV" >&6
9701 else
9702 CPPFLAGS="$am_save_CPPFLAGS"
9703 LIBICONV=
9704 LTLIBICONV=
9709 if test "$am_cv_func_iconv" = yes; then
9710 echo "$as_me:$LINENO: checking for iconv declaration" >&5
9711 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
9712 if test "${am_cv_proto_iconv+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 else
9716 cat >conftest.$ac_ext <<_ACEOF
9717 #line $LINENO "configure"
9718 /* confdefs.h. */
9719 _ACEOF
9720 cat confdefs.h >>conftest.$ac_ext
9721 cat >>conftest.$ac_ext <<_ACEOF
9722 /* end confdefs.h. */
9724 #include <stdlib.h>
9725 #include <iconv.h>
9726 extern
9727 #ifdef __cplusplus
9729 #endif
9730 #if defined(__STDC__) || defined(__cplusplus)
9731 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9732 #else
9733 size_t iconv();
9734 #endif
9737 main ()
9741 return 0;
9743 _ACEOF
9744 rm -f conftest.$ac_objext
9745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9746 (eval $ac_compile) 2>&5
9747 ac_status=$?
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); } &&
9750 { ac_try='test -s conftest.$ac_objext'
9751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752 (eval $ac_try) 2>&5
9753 ac_status=$?
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; }; then
9756 am_cv_proto_iconv_arg1=""
9757 else
9758 echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9761 am_cv_proto_iconv_arg1="const"
9763 rm -f conftest.$ac_objext conftest.$ac_ext
9764 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);"
9767 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9768 echo "$as_me:$LINENO: result: ${ac_t:-
9769 }$am_cv_proto_iconv" >&5
9770 echo "${ECHO_T}${ac_t:-
9771 }$am_cv_proto_iconv" >&6
9773 cat >>confdefs.h <<_ACEOF
9774 #define ICONV_CONST $am_cv_proto_iconv_arg1
9775 _ACEOF
9780 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9781 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
9782 if test "${am_cv_langinfo_codeset+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9784 else
9785 cat >conftest.$ac_ext <<_ACEOF
9786 #line $LINENO "configure"
9787 /* confdefs.h. */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 #include <langinfo.h>
9794 main ()
9796 char* cs = nl_langinfo(CODESET);
9798 return 0;
9800 _ACEOF
9801 rm -f conftest.$ac_objext conftest$ac_exeext
9802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9803 (eval $ac_link) 2>&5
9804 ac_status=$?
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } &&
9807 { ac_try='test -s conftest$ac_exeext'
9808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9809 (eval $ac_try) 2>&5
9810 ac_status=$?
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; }; then
9813 am_cv_langinfo_codeset=yes
9814 else
9815 echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.$ac_ext >&5
9818 am_cv_langinfo_codeset=no
9820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9823 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9824 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9825 if test $am_cv_langinfo_codeset = yes; then
9827 cat >>confdefs.h <<\_ACEOF
9828 #define HAVE_LANGINFO_CODESET 1
9829 _ACEOF
9833 if test $ac_cv_header_locale_h = yes; then
9835 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9836 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9837 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
9839 else
9840 cat >conftest.$ac_ext <<_ACEOF
9841 #line $LINENO "configure"
9842 /* confdefs.h. */
9843 _ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9847 #include <locale.h>
9849 main ()
9851 return LC_MESSAGES
9853 return 0;
9855 _ACEOF
9856 rm -f conftest.$ac_objext conftest$ac_exeext
9857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9858 (eval $ac_link) 2>&5
9859 ac_status=$?
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } &&
9862 { ac_try='test -s conftest$ac_exeext'
9863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864 (eval $ac_try) 2>&5
9865 ac_status=$?
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; }; then
9868 am_cv_val_LC_MESSAGES=yes
9869 else
9870 echo "$as_me: failed program was:" >&5
9871 sed 's/^/| /' conftest.$ac_ext >&5
9873 am_cv_val_LC_MESSAGES=no
9875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9877 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9878 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
9879 if test $am_cv_val_LC_MESSAGES = yes; then
9881 cat >>confdefs.h <<\_ACEOF
9882 #define HAVE_LC_MESSAGES 1
9883 _ACEOF
9889 for ac_prog in bison
9891 # Extract the first word of "$ac_prog", so it can be a program name with args.
9892 set dummy $ac_prog; ac_word=$2
9893 echo "$as_me:$LINENO: checking for $ac_word" >&5
9894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9895 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 else
9898 if test -n "$INTLBISON"; then
9899 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9900 else
9901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9902 for as_dir in $PATH
9904 IFS=$as_save_IFS
9905 test -z "$as_dir" && as_dir=.
9906 for ac_exec_ext in '' $ac_executable_extensions; do
9907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9908 ac_cv_prog_INTLBISON="$ac_prog"
9909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9910 break 2
9912 done
9913 done
9917 INTLBISON=$ac_cv_prog_INTLBISON
9918 if test -n "$INTLBISON"; then
9919 echo "$as_me:$LINENO: result: $INTLBISON" >&5
9920 echo "${ECHO_T}$INTLBISON" >&6
9921 else
9922 echo "$as_me:$LINENO: result: no" >&5
9923 echo "${ECHO_T}no" >&6
9926 test -n "$INTLBISON" && break
9927 done
9929 if test -z "$INTLBISON"; then
9930 ac_verc_fail=yes
9931 else
9932 echo "$as_me:$LINENO: checking version of bison" >&5
9933 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
9934 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9935 case $ac_prog_version in
9936 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9937 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9938 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9939 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9940 esac
9941 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9942 echo "${ECHO_T}$ac_prog_version" >&6
9944 if test $ac_verc_fail = yes; then
9945 INTLBISON=:
9963 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9964 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9965 # Check whether --enable-nls or --disable-nls was given.
9966 if test "${enable_nls+set}" = set; then
9967 enableval="$enable_nls"
9968 USE_NLS=$enableval
9969 else
9970 USE_NLS=yes
9972 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9973 echo "${ECHO_T}$USE_NLS" >&6
9978 BUILD_INCLUDED_LIBINTL=no
9979 USE_INCLUDED_LIBINTL=no
9981 LIBINTL=
9982 LTLIBINTL=
9983 POSUB=
9985 if test "$USE_NLS" = "yes"; then
9986 gt_use_preinstalled_gnugettext=no
9988 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9989 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9991 # Check whether --with-included-gettext or --without-included-gettext was given.
9992 if test "${with_included_gettext+set}" = set; then
9993 withval="$with_included_gettext"
9994 nls_cv_force_use_gnu_gettext=$withval
9995 else
9996 nls_cv_force_use_gnu_gettext=no
9998 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9999 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
10001 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10002 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10009 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10010 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
10011 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10013 else
10014 cat >conftest.$ac_ext <<_ACEOF
10015 #line $LINENO "configure"
10016 /* confdefs.h. */
10017 _ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h. */
10021 #include <libintl.h>
10022 extern int _nl_msg_cat_cntr;
10023 extern int *_nl_domain_bindings;
10025 main ()
10027 bindtextdomain ("", "");
10028 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10030 return 0;
10032 _ACEOF
10033 rm -f conftest.$ac_objext conftest$ac_exeext
10034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10035 (eval $ac_link) 2>&5
10036 ac_status=$?
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } &&
10039 { ac_try='test -s conftest$ac_exeext'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
10045 gt_cv_func_gnugettext1_libc=yes
10046 else
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10050 gt_cv_func_gnugettext1_libc=no
10052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10054 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10055 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
10057 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10061 use_additional=yes
10063 acl_save_prefix="$prefix"
10064 prefix="$acl_final_prefix"
10065 acl_save_exec_prefix="$exec_prefix"
10066 exec_prefix="$acl_final_exec_prefix"
10068 eval additional_includedir=\"$includedir\"
10069 eval additional_libdir=\"$libdir\"
10071 exec_prefix="$acl_save_exec_prefix"
10072 prefix="$acl_save_prefix"
10075 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
10076 if test "${with_libintl_prefix+set}" = set; then
10077 withval="$with_libintl_prefix"
10079 if test "X$withval" = "Xno"; then
10080 use_additional=no
10081 else
10082 if test "X$withval" = "X"; then
10084 acl_save_prefix="$prefix"
10085 prefix="$acl_final_prefix"
10086 acl_save_exec_prefix="$exec_prefix"
10087 exec_prefix="$acl_final_exec_prefix"
10089 eval additional_includedir=\"$includedir\"
10090 eval additional_libdir=\"$libdir\"
10092 exec_prefix="$acl_save_exec_prefix"
10093 prefix="$acl_save_prefix"
10095 else
10096 additional_includedir="$withval/include"
10097 additional_libdir="$withval/lib"
10102 LIBINTL=
10103 LTLIBINTL=
10104 INCINTL=
10105 rpathdirs=
10106 ltrpathdirs=
10107 names_already_handled=
10108 names_next_round='intl '
10109 while test -n "$names_next_round"; do
10110 names_this_round="$names_next_round"
10111 names_next_round=
10112 for name in $names_this_round; do
10113 already_handled=
10114 for n in $names_already_handled; do
10115 if test "$n" = "$name"; then
10116 already_handled=yes
10117 break
10119 done
10120 if test -z "$already_handled"; then
10121 names_already_handled="$names_already_handled $name"
10122 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10123 eval value=\"\$HAVE_LIB$uppername\"
10124 if test -n "$value"; then
10125 if test "$value" = yes; then
10126 eval value=\"\$LIB$uppername\"
10127 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10128 eval value=\"\$LTLIB$uppername\"
10129 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10130 else
10133 else
10134 found_dir=
10135 found_la=
10136 found_so=
10137 found_a=
10138 if test $use_additional = yes; then
10139 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10140 found_dir="$additional_libdir"
10141 found_so="$additional_libdir/lib$name.$shlibext"
10142 if test -f "$additional_libdir/lib$name.la"; then
10143 found_la="$additional_libdir/lib$name.la"
10145 else
10146 if test -f "$additional_libdir/lib$name.$libext"; then
10147 found_dir="$additional_libdir"
10148 found_a="$additional_libdir/lib$name.$libext"
10149 if test -f "$additional_libdir/lib$name.la"; then
10150 found_la="$additional_libdir/lib$name.la"
10155 if test "X$found_dir" = "X"; then
10156 for x in $LDFLAGS $LTLIBINTL; do
10158 acl_save_prefix="$prefix"
10159 prefix="$acl_final_prefix"
10160 acl_save_exec_prefix="$exec_prefix"
10161 exec_prefix="$acl_final_exec_prefix"
10162 eval x=\"$x\"
10163 exec_prefix="$acl_save_exec_prefix"
10164 prefix="$acl_save_prefix"
10166 case "$x" in
10167 -L*)
10168 dir=`echo "X$x" | sed -e 's/^X-L//'`
10169 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10170 found_dir="$dir"
10171 found_so="$dir/lib$name.$shlibext"
10172 if test -f "$dir/lib$name.la"; then
10173 found_la="$dir/lib$name.la"
10175 else
10176 if test -f "$dir/lib$name.$libext"; then
10177 found_dir="$dir"
10178 found_a="$dir/lib$name.$libext"
10179 if test -f "$dir/lib$name.la"; then
10180 found_la="$dir/lib$name.la"
10185 esac
10186 if test "X$found_dir" != "X"; then
10187 break
10189 done
10191 if test "X$found_dir" != "X"; then
10192 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10193 if test "X$found_so" != "X"; then
10194 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10195 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10196 else
10197 haveit=
10198 for x in $ltrpathdirs; do
10199 if test "X$x" = "X$found_dir"; then
10200 haveit=yes
10201 break
10203 done
10204 if test -z "$haveit"; then
10205 ltrpathdirs="$ltrpathdirs $found_dir"
10207 if test "$hardcode_direct" = yes; then
10208 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10209 else
10210 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10211 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10212 haveit=
10213 for x in $rpathdirs; do
10214 if test "X$x" = "X$found_dir"; then
10215 haveit=yes
10216 break
10218 done
10219 if test -z "$haveit"; then
10220 rpathdirs="$rpathdirs $found_dir"
10222 else
10223 haveit=
10224 for x in $LDFLAGS $LIBINTL; do
10226 acl_save_prefix="$prefix"
10227 prefix="$acl_final_prefix"
10228 acl_save_exec_prefix="$exec_prefix"
10229 exec_prefix="$acl_final_exec_prefix"
10230 eval x=\"$x\"
10231 exec_prefix="$acl_save_exec_prefix"
10232 prefix="$acl_save_prefix"
10234 if test "X$x" = "X-L$found_dir"; then
10235 haveit=yes
10236 break
10238 done
10239 if test -z "$haveit"; then
10240 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10242 if test "$hardcode_minus_L" != no; then
10243 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10244 else
10245 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10250 else
10251 if test "X$found_a" != "X"; then
10252 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10253 else
10254 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10257 additional_includedir=
10258 case "$found_dir" in
10259 */lib | */lib/)
10260 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10261 additional_includedir="$basedir/include"
10263 esac
10264 if test "X$additional_includedir" != "X"; then
10265 if test "X$additional_includedir" != "X/usr/include"; then
10266 haveit=
10267 if test "X$additional_includedir" = "X/usr/local/include"; then
10268 if test -n "$GCC"; then
10269 case $host_os in
10270 linux*) haveit=yes;;
10271 esac
10274 if test -z "$haveit"; then
10275 for x in $CPPFLAGS $INCINTL; do
10277 acl_save_prefix="$prefix"
10278 prefix="$acl_final_prefix"
10279 acl_save_exec_prefix="$exec_prefix"
10280 exec_prefix="$acl_final_exec_prefix"
10281 eval x=\"$x\"
10282 exec_prefix="$acl_save_exec_prefix"
10283 prefix="$acl_save_prefix"
10285 if test "X$x" = "X-I$additional_includedir"; then
10286 haveit=yes
10287 break
10289 done
10290 if test -z "$haveit"; then
10291 if test -d "$additional_includedir"; then
10292 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10298 if test -n "$found_la"; then
10299 save_libdir="$libdir"
10300 case "$found_la" in
10301 */* | *\\*) . "$found_la" ;;
10302 *) . "./$found_la" ;;
10303 esac
10304 libdir="$save_libdir"
10305 for dep in $dependency_libs; do
10306 case "$dep" in
10307 -L*)
10308 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10309 if test "X$additional_libdir" != "X/usr/lib"; then
10310 haveit=
10311 if test "X$additional_libdir" = "X/usr/local/lib"; then
10312 if test -n "$GCC"; then
10313 case $host_os in
10314 linux*) haveit=yes;;
10315 esac
10318 if test -z "$haveit"; then
10319 haveit=
10320 for x in $LDFLAGS $LIBINTL; do
10322 acl_save_prefix="$prefix"
10323 prefix="$acl_final_prefix"
10324 acl_save_exec_prefix="$exec_prefix"
10325 exec_prefix="$acl_final_exec_prefix"
10326 eval x=\"$x\"
10327 exec_prefix="$acl_save_exec_prefix"
10328 prefix="$acl_save_prefix"
10330 if test "X$x" = "X-L$additional_libdir"; then
10331 haveit=yes
10332 break
10334 done
10335 if test -z "$haveit"; then
10336 if test -d "$additional_libdir"; then
10337 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10340 haveit=
10341 for x in $LDFLAGS $LTLIBINTL; do
10343 acl_save_prefix="$prefix"
10344 prefix="$acl_final_prefix"
10345 acl_save_exec_prefix="$exec_prefix"
10346 exec_prefix="$acl_final_exec_prefix"
10347 eval x=\"$x\"
10348 exec_prefix="$acl_save_exec_prefix"
10349 prefix="$acl_save_prefix"
10351 if test "X$x" = "X-L$additional_libdir"; then
10352 haveit=yes
10353 break
10355 done
10356 if test -z "$haveit"; then
10357 if test -d "$additional_libdir"; then
10358 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10364 -R*)
10365 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10366 if test "$enable_rpath" != no; then
10367 haveit=
10368 for x in $rpathdirs; do
10369 if test "X$x" = "X$dir"; then
10370 haveit=yes
10371 break
10373 done
10374 if test -z "$haveit"; then
10375 rpathdirs="$rpathdirs $dir"
10377 haveit=
10378 for x in $ltrpathdirs; do
10379 if test "X$x" = "X$dir"; then
10380 haveit=yes
10381 break
10383 done
10384 if test -z "$haveit"; then
10385 ltrpathdirs="$ltrpathdirs $dir"
10389 -l*)
10390 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10392 *.la)
10393 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10396 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10397 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10399 esac
10400 done
10402 else
10403 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10404 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10408 done
10409 done
10410 if test "X$rpathdirs" != "X"; then
10411 if test -n "$hardcode_libdir_separator"; then
10412 alldirs=
10413 for found_dir in $rpathdirs; do
10414 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10415 done
10416 acl_save_libdir="$libdir"
10417 libdir="$alldirs"
10418 eval flag=\"$hardcode_libdir_flag_spec\"
10419 libdir="$acl_save_libdir"
10420 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10421 else
10422 for found_dir in $rpathdirs; do
10423 acl_save_libdir="$libdir"
10424 libdir="$found_dir"
10425 eval flag=\"$hardcode_libdir_flag_spec\"
10426 libdir="$acl_save_libdir"
10427 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10428 done
10431 if test "X$ltrpathdirs" != "X"; then
10432 for found_dir in $ltrpathdirs; do
10433 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10434 done
10437 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10438 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
10439 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10441 else
10442 gt_save_CPPFLAGS="$CPPFLAGS"
10443 CPPFLAGS="$CPPFLAGS $INCINTL"
10444 gt_save_LIBS="$LIBS"
10445 LIBS="$LIBS $LIBINTL"
10446 cat >conftest.$ac_ext <<_ACEOF
10447 #line $LINENO "configure"
10448 /* confdefs.h. */
10449 _ACEOF
10450 cat confdefs.h >>conftest.$ac_ext
10451 cat >>conftest.$ac_ext <<_ACEOF
10452 /* end confdefs.h. */
10453 #include <libintl.h>
10454 extern int _nl_msg_cat_cntr;
10455 extern
10456 #ifdef __cplusplus
10458 #endif
10459 const char *_nl_expand_alias ();
10461 main ()
10463 bindtextdomain ("", "");
10464 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10466 return 0;
10468 _ACEOF
10469 rm -f conftest.$ac_objext conftest$ac_exeext
10470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10471 (eval $ac_link) 2>&5
10472 ac_status=$?
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); } &&
10475 { ac_try='test -s conftest$ac_exeext'
10476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477 (eval $ac_try) 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; }; then
10481 gt_cv_func_gnugettext1_libintl=yes
10482 else
10483 echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10486 gt_cv_func_gnugettext1_libintl=no
10488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10489 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10490 LIBS="$LIBS $LIBICONV"
10491 cat >conftest.$ac_ext <<_ACEOF
10492 #line $LINENO "configure"
10493 /* confdefs.h. */
10494 _ACEOF
10495 cat confdefs.h >>conftest.$ac_ext
10496 cat >>conftest.$ac_ext <<_ACEOF
10497 /* end confdefs.h. */
10498 #include <libintl.h>
10499 extern int _nl_msg_cat_cntr;
10500 extern
10501 #ifdef __cplusplus
10503 #endif
10504 const char *_nl_expand_alias ();
10506 main ()
10508 bindtextdomain ("", "");
10509 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10511 return 0;
10513 _ACEOF
10514 rm -f conftest.$ac_objext conftest$ac_exeext
10515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10516 (eval $ac_link) 2>&5
10517 ac_status=$?
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); } &&
10520 { ac_try='test -s conftest$ac_exeext'
10521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10522 (eval $ac_try) 2>&5
10523 ac_status=$?
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); }; }; then
10526 LIBINTL="$LIBINTL $LIBICONV"
10527 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10528 gt_cv_func_gnugettext1_libintl=yes
10530 else
10531 echo "$as_me: failed program was:" >&5
10532 sed 's/^/| /' conftest.$ac_ext >&5
10535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10537 CPPFLAGS="$gt_save_CPPFLAGS"
10538 LIBS="$gt_save_LIBS"
10540 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10541 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
10544 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10545 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10546 && test "$PACKAGE" != gettext-runtime \
10547 && test "$PACKAGE" != gettext-tools; }; then
10548 gt_use_preinstalled_gnugettext=yes
10549 else
10550 LIBINTL=
10551 LTLIBINTL=
10552 INCINTL=
10556 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10557 nls_cv_use_gnu_gettext=yes
10561 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10562 BUILD_INCLUDED_LIBINTL=yes
10563 USE_INCLUDED_LIBINTL=yes
10564 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10565 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10566 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10569 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10570 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10571 CATOBJEXT=.gmo
10575 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10576 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10578 cat >>confdefs.h <<\_ACEOF
10579 #define ENABLE_NLS 1
10580 _ACEOF
10582 else
10583 USE_NLS=no
10587 echo "$as_me:$LINENO: checking whether to use NLS" >&5
10588 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
10589 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10590 echo "${ECHO_T}$USE_NLS" >&6
10591 if test "$USE_NLS" = "yes"; then
10592 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10593 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
10594 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10595 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10596 gt_source="external libintl"
10597 else
10598 gt_source="libc"
10600 else
10601 gt_source="included intl directory"
10603 echo "$as_me:$LINENO: result: $gt_source" >&5
10604 echo "${ECHO_T}$gt_source" >&6
10607 if test "$USE_NLS" = "yes"; then
10609 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10610 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10611 echo "$as_me:$LINENO: checking how to link with libintl" >&5
10612 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
10613 echo "$as_me:$LINENO: result: $LIBINTL" >&5
10614 echo "${ECHO_T}$LIBINTL" >&6
10616 for element in $INCINTL; do
10617 haveit=
10618 for x in $CPPFLAGS; do
10620 acl_save_prefix="$prefix"
10621 prefix="$acl_final_prefix"
10622 acl_save_exec_prefix="$exec_prefix"
10623 exec_prefix="$acl_final_exec_prefix"
10624 eval x=\"$x\"
10625 exec_prefix="$acl_save_exec_prefix"
10626 prefix="$acl_save_prefix"
10628 if test "X$x" = "X$element"; then
10629 haveit=yes
10630 break
10632 done
10633 if test -z "$haveit"; then
10634 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10636 done
10641 cat >>confdefs.h <<\_ACEOF
10642 #define HAVE_GETTEXT 1
10643 _ACEOF
10646 cat >>confdefs.h <<\_ACEOF
10647 #define HAVE_DCGETTEXT 1
10648 _ACEOF
10652 POSUB=po
10656 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10657 BUILD_INCLUDED_LIBINTL=yes
10664 nls_cv_header_intl=
10665 nls_cv_header_libgt=
10667 DATADIRNAME=share
10670 INSTOBJEXT=.mo
10673 GENCAT=gencat
10676 if test "$USE_INCLUDED_LIBINTL" = yes; then
10677 INTLOBJS="\$(GETTOBJS)"
10681 INTL_LIBTOOL_SUFFIX_PREFIX=
10685 INTLLIBS="$LIBINTL"
10692 CFLAGS="$CFLAGS -I../${srcdir}/intl"
10693 LIBS="$LIBS $LIBINTL"
10696 ac_config_files="$ac_config_files Makefile lib/Makefile intl/Makefile po/Makefile.in tools/Makefile src/Makefile gliv.spec"
10699 cat >confcache <<\_ACEOF
10700 # This file is a shell script that caches the results of configure
10701 # tests run on this system so they can be shared between configure
10702 # scripts and configure runs, see configure's option --config-cache.
10703 # It is not useful on other systems. If it contains results you don't
10704 # want to keep, you may remove or edit it.
10706 # config.status only pays attention to the cache file if you give it
10707 # the --recheck option to rerun configure.
10709 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10710 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10711 # following values.
10713 _ACEOF
10715 # The following way of writing the cache mishandles newlines in values,
10716 # but we know of no workaround that is simple, portable, and efficient.
10717 # So, don't put newlines in cache variables' values.
10718 # Ultrix sh set writes to stderr and can't be redirected directly,
10719 # and sets the high bit in the cache file unless we assign to the vars.
10721 (set) 2>&1 |
10722 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10723 *ac_space=\ *)
10724 # `set' does not quote correctly, so add quotes (double-quote
10725 # substitution turns \\\\ into \\, and sed turns \\ into \).
10726 sed -n \
10727 "s/'/'\\\\''/g;
10728 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10731 # `set' quotes correctly as required by POSIX, so do not add quotes.
10732 sed -n \
10733 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10735 esac;
10737 sed '
10738 t clear
10739 : clear
10740 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10741 t end
10742 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10743 : end' >>confcache
10744 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10745 if test -w $cache_file; then
10746 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10747 cat confcache >$cache_file
10748 else
10749 echo "not updating unwritable cache $cache_file"
10752 rm -f confcache
10754 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10755 # Let make expand exec_prefix.
10756 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10758 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10759 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10760 # trailing colons and then remove the whole line if VPATH becomes empty
10761 # (actually we leave an empty line to preserve line numbers).
10762 if test "x$srcdir" = x.; then
10763 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10764 s/:*\$(srcdir):*/:/;
10765 s/:*\${srcdir}:*/:/;
10766 s/:*@srcdir@:*/:/;
10767 s/^\([^=]*=[ ]*\):*/\1/;
10768 s/:*$//;
10769 s/^[^=]*=[ ]*$//;
10773 DEFS=-DHAVE_CONFIG_H
10775 ac_libobjs=
10776 ac_ltlibobjs=
10777 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10778 # 1. Remove the extension, and $U if already installed.
10779 ac_i=`echo "$ac_i" |
10780 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10781 # 2. Add them.
10782 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10783 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10784 done
10785 LIBOBJS=$ac_libobjs
10787 LTLIBOBJS=$ac_ltlibobjs
10790 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10791 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10792 Usually this means the macro was only invoked conditionally." >&5
10793 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10794 Usually this means the macro was only invoked conditionally." >&2;}
10795 { (exit 1); exit 1; }; }
10797 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10798 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10799 Usually this means the macro was only invoked conditionally." >&5
10800 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10801 Usually this means the macro was only invoked conditionally." >&2;}
10802 { (exit 1); exit 1; }; }
10804 if test -z "${GETLINE_TRUE}" && test -z "${GETLINE_FALSE}"; then
10805 { { echo "$as_me:$LINENO: error: conditional \"GETLINE\" was never defined.
10806 Usually this means the macro was only invoked conditionally." >&5
10807 echo "$as_me: error: conditional \"GETLINE\" was never defined.
10808 Usually this means the macro was only invoked conditionally." >&2;}
10809 { (exit 1); exit 1; }; }
10811 if test -z "${GETOPT_LONG_TRUE}" && test -z "${GETOPT_LONG_FALSE}"; then
10812 { { echo "$as_me:$LINENO: error: conditional \"GETOPT_LONG\" was never defined.
10813 Usually this means the macro was only invoked conditionally." >&5
10814 echo "$as_me: error: conditional \"GETOPT_LONG\" was never defined.
10815 Usually this means the macro was only invoked conditionally." >&2;}
10816 { (exit 1); exit 1; }; }
10818 if test -z "${NEED_REPLACEMENTS_TRUE}" && test -z "${NEED_REPLACEMENTS_FALSE}"; then
10819 { { echo "$as_me:$LINENO: error: conditional \"NEED_REPLACEMENTS\" was never defined.
10820 Usually this means the macro was only invoked conditionally." >&5
10821 echo "$as_me: error: conditional \"NEED_REPLACEMENTS\" was never defined.
10822 Usually this means the macro was only invoked conditionally." >&2;}
10823 { (exit 1); exit 1; }; }
10825 if test -z "${NEED_REPLACEMENTS_TRUE}" && test -z "${NEED_REPLACEMENTS_FALSE}"; then
10826 { { echo "$as_me:$LINENO: error: conditional \"NEED_REPLACEMENTS\" was never defined.
10827 Usually this means the macro was only invoked conditionally." >&5
10828 echo "$as_me: error: conditional \"NEED_REPLACEMENTS\" was never defined.
10829 Usually this means the macro was only invoked conditionally." >&2;}
10830 { (exit 1); exit 1; }; }
10833 : ${CONFIG_STATUS=./config.status}
10834 ac_clean_files_save=$ac_clean_files
10835 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10836 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10837 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10838 cat >$CONFIG_STATUS <<_ACEOF
10839 #! $SHELL
10840 # Generated by $as_me.
10841 # Run this file to recreate the current configuration.
10842 # Compiler output produced by configure, useful for debugging
10843 # configure, is in config.log if it exists.
10845 debug=false
10846 ac_cs_recheck=false
10847 ac_cs_silent=false
10848 SHELL=\${CONFIG_SHELL-$SHELL}
10849 _ACEOF
10851 cat >>$CONFIG_STATUS <<\_ACEOF
10852 ## --------------------- ##
10853 ## M4sh Initialization. ##
10854 ## --------------------- ##
10856 # Be Bourne compatible
10857 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10858 emulate sh
10859 NULLCMD=:
10860 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10861 # is contrary to our usage. Disable this feature.
10862 alias -g '${1+"$@"}'='"$@"'
10863 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10864 set -o posix
10867 # Support unset when possible.
10868 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10869 as_unset=unset
10870 else
10871 as_unset=false
10875 # Work around bugs in pre-3.0 UWIN ksh.
10876 $as_unset ENV MAIL MAILPATH
10877 PS1='$ '
10878 PS2='> '
10879 PS4='+ '
10881 # NLS nuisances.
10882 for as_var in \
10883 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10884 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10885 LC_TELEPHONE LC_TIME
10887 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
10888 eval $as_var=C; export $as_var
10889 else
10890 $as_unset $as_var
10892 done
10894 # Required to use basename.
10895 if expr a : '\(a\)' >/dev/null 2>&1; then
10896 as_expr=expr
10897 else
10898 as_expr=false
10901 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10902 as_basename=basename
10903 else
10904 as_basename=false
10908 # Name of the executable.
10909 as_me=`$as_basename "$0" ||
10910 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10911 X"$0" : 'X\(//\)$' \| \
10912 X"$0" : 'X\(/\)$' \| \
10913 . : '\(.\)' 2>/dev/null ||
10914 echo X/"$0" |
10915 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10916 /^X\/\(\/\/\)$/{ s//\1/; q; }
10917 /^X\/\(\/\).*/{ s//\1/; q; }
10918 s/.*/./; q'`
10921 # PATH needs CR, and LINENO needs CR and PATH.
10922 # Avoid depending upon Character Ranges.
10923 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10924 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10925 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10926 as_cr_digits='0123456789'
10927 as_cr_alnum=$as_cr_Letters$as_cr_digits
10929 # The user is always right.
10930 if test "${PATH_SEPARATOR+set}" != set; then
10931 echo "#! /bin/sh" >conf$$.sh
10932 echo "exit 0" >>conf$$.sh
10933 chmod +x conf$$.sh
10934 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10935 PATH_SEPARATOR=';'
10936 else
10937 PATH_SEPARATOR=:
10939 rm -f conf$$.sh
10943 as_lineno_1=$LINENO
10944 as_lineno_2=$LINENO
10945 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10946 test "x$as_lineno_1" != "x$as_lineno_2" &&
10947 test "x$as_lineno_3" = "x$as_lineno_2" || {
10948 # Find who we are. Look in the path if we contain no path at all
10949 # relative or not.
10950 case $0 in
10951 *[\\/]* ) as_myself=$0 ;;
10952 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953 for as_dir in $PATH
10955 IFS=$as_save_IFS
10956 test -z "$as_dir" && as_dir=.
10957 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10958 done
10961 esac
10962 # We did not find ourselves, most probably we were run as `sh COMMAND'
10963 # in which case we are not to be found in the path.
10964 if test "x$as_myself" = x; then
10965 as_myself=$0
10967 if test ! -f "$as_myself"; then
10968 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10969 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10970 { (exit 1); exit 1; }; }
10972 case $CONFIG_SHELL in
10974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10977 IFS=$as_save_IFS
10978 test -z "$as_dir" && as_dir=.
10979 for as_base in sh bash ksh sh5; do
10980 case $as_dir in
10982 if ("$as_dir/$as_base" -c '
10983 as_lineno_1=$LINENO
10984 as_lineno_2=$LINENO
10985 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10986 test "x$as_lineno_1" != "x$as_lineno_2" &&
10987 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10988 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10989 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10990 CONFIG_SHELL=$as_dir/$as_base
10991 export CONFIG_SHELL
10992 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10993 fi;;
10994 esac
10995 done
10996 done
10998 esac
11000 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11001 # uniformly replaced by the line number. The first 'sed' inserts a
11002 # line-number line before each line; the second 'sed' does the real
11003 # work. The second script uses 'N' to pair each line-number line
11004 # with the numbered line, and appends trailing '-' during
11005 # substitution so that $LINENO is not a special case at line end.
11006 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11007 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11008 sed '=' <$as_myself |
11009 sed '
11011 s,$,-,
11012 : loop
11013 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11014 t loop
11015 s,-$,,
11016 s,^['$as_cr_digits']*\n,,
11017 ' >$as_me.lineno &&
11018 chmod +x $as_me.lineno ||
11019 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11020 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11021 { (exit 1); exit 1; }; }
11023 # Don't try to exec as it changes $[0], causing all sort of problems
11024 # (the dirname of $[0] is not the place where we might find the
11025 # original and so on. Autoconf is especially sensible to this).
11026 . ./$as_me.lineno
11027 # Exit status is that of the last command.
11028 exit
11032 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11033 *c*,-n*) ECHO_N= ECHO_C='
11034 ' ECHO_T=' ' ;;
11035 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11036 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11037 esac
11039 if expr a : '\(a\)' >/dev/null 2>&1; then
11040 as_expr=expr
11041 else
11042 as_expr=false
11045 rm -f conf$$ conf$$.exe conf$$.file
11046 echo >conf$$.file
11047 if ln -s conf$$.file conf$$ 2>/dev/null; then
11048 # We could just check for DJGPP; but this test a) works b) is more generic
11049 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11050 if test -f conf$$.exe; then
11051 # Don't use ln at all; we don't have any links
11052 as_ln_s='cp -p'
11053 else
11054 as_ln_s='ln -s'
11056 elif ln conf$$.file conf$$ 2>/dev/null; then
11057 as_ln_s=ln
11058 else
11059 as_ln_s='cp -p'
11061 rm -f conf$$ conf$$.exe conf$$.file
11063 if mkdir -p . 2>/dev/null; then
11064 as_mkdir_p=:
11065 else
11066 as_mkdir_p=false
11069 as_executable_p="test -f"
11071 # Sed expression to map a string onto a valid CPP name.
11072 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11074 # Sed expression to map a string onto a valid variable name.
11075 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11078 # IFS
11079 # We need space, tab and new line, in precisely that order.
11080 as_nl='
11082 IFS=" $as_nl"
11084 # CDPATH.
11085 $as_unset CDPATH
11087 exec 6>&1
11089 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11090 # report actual input values of CONFIG_FILES etc. instead of their
11091 # values after options handling. Logging --version etc. is OK.
11092 exec 5>>config.log
11094 echo
11095 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11096 ## Running $as_me. ##
11097 _ASBOX
11098 } >&5
11099 cat >&5 <<_CSEOF
11101 This file was extended by gliv $as_me 1.8, which was
11102 generated by GNU Autoconf 2.57. Invocation command line was
11104 CONFIG_FILES = $CONFIG_FILES
11105 CONFIG_HEADERS = $CONFIG_HEADERS
11106 CONFIG_LINKS = $CONFIG_LINKS
11107 CONFIG_COMMANDS = $CONFIG_COMMANDS
11108 $ $0 $@
11110 _CSEOF
11111 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11112 echo >&5
11113 _ACEOF
11115 # Files that config.status was made for.
11116 if test -n "$ac_config_files"; then
11117 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11120 if test -n "$ac_config_headers"; then
11121 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11124 if test -n "$ac_config_links"; then
11125 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11128 if test -n "$ac_config_commands"; then
11129 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11132 cat >>$CONFIG_STATUS <<\_ACEOF
11134 ac_cs_usage="\
11135 \`$as_me' instantiates files from templates according to the
11136 current configuration.
11138 Usage: $0 [OPTIONS] [FILE]...
11140 -h, --help print this help, then exit
11141 -V, --version print version number, then exit
11142 -q, --quiet do not print progress messages
11143 -d, --debug don't remove temporary files
11144 --recheck update $as_me by reconfiguring in the same conditions
11145 --file=FILE[:TEMPLATE]
11146 instantiate the configuration file FILE
11147 --header=FILE[:TEMPLATE]
11148 instantiate the configuration header FILE
11150 Configuration files:
11151 $config_files
11153 Configuration headers:
11154 $config_headers
11156 Configuration commands:
11157 $config_commands
11159 Report bugs to <bug-autoconf@gnu.org>."
11160 _ACEOF
11162 cat >>$CONFIG_STATUS <<_ACEOF
11163 ac_cs_version="\\
11164 gliv config.status 1.8
11165 configured by $0, generated by GNU Autoconf 2.57,
11166 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11168 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11169 Free Software Foundation, Inc.
11170 This config.status script is free software; the Free Software Foundation
11171 gives unlimited permission to copy, distribute and modify it."
11172 srcdir=$srcdir
11173 INSTALL="$INSTALL"
11174 _ACEOF
11176 cat >>$CONFIG_STATUS <<\_ACEOF
11177 # If no file are specified by the user, then we need to provide default
11178 # value. By we need to know if files were specified by the user.
11179 ac_need_defaults=:
11180 while test $# != 0
11182 case $1 in
11183 --*=*)
11184 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11185 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11186 ac_shift=:
11189 ac_option=$1
11190 ac_optarg=$2
11191 ac_shift=shift
11193 *) # This is not an option, so the user has probably given explicit
11194 # arguments.
11195 ac_option=$1
11196 ac_need_defaults=false;;
11197 esac
11199 case $ac_option in
11200 # Handling of the options.
11201 _ACEOF
11202 cat >>$CONFIG_STATUS <<\_ACEOF
11203 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11204 ac_cs_recheck=: ;;
11205 --version | --vers* | -V )
11206 echo "$ac_cs_version"; exit 0 ;;
11207 --he | --h)
11208 # Conflict between --help and --header
11209 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11210 Try \`$0 --help' for more information." >&5
11211 echo "$as_me: error: ambiguous option: $1
11212 Try \`$0 --help' for more information." >&2;}
11213 { (exit 1); exit 1; }; };;
11214 --help | --hel | -h )
11215 echo "$ac_cs_usage"; exit 0 ;;
11216 --debug | --d* | -d )
11217 debug=: ;;
11218 --file | --fil | --fi | --f )
11219 $ac_shift
11220 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11221 ac_need_defaults=false;;
11222 --header | --heade | --head | --hea )
11223 $ac_shift
11224 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11225 ac_need_defaults=false;;
11226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11227 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11228 ac_cs_silent=: ;;
11230 # This is an error.
11231 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11232 Try \`$0 --help' for more information." >&5
11233 echo "$as_me: error: unrecognized option: $1
11234 Try \`$0 --help' for more information." >&2;}
11235 { (exit 1); exit 1; }; } ;;
11237 *) ac_config_targets="$ac_config_targets $1" ;;
11239 esac
11240 shift
11241 done
11243 ac_configure_extra_args=
11245 if $ac_cs_silent; then
11246 exec 6>/dev/null
11247 ac_configure_extra_args="$ac_configure_extra_args --silent"
11250 _ACEOF
11251 cat >>$CONFIG_STATUS <<_ACEOF
11252 if \$ac_cs_recheck; then
11253 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11254 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11257 _ACEOF
11259 cat >>$CONFIG_STATUS <<_ACEOF
11261 # INIT-COMMANDS section.
11264 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11265 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11266 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
11267 # from automake.
11268 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11269 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11270 LINGUAS="${LINGUAS-%UNSET%}"
11273 _ACEOF
11277 cat >>$CONFIG_STATUS <<\_ACEOF
11278 for ac_config_target in $ac_config_targets
11280 case "$ac_config_target" in
11281 # Handling of arguments.
11282 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11283 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11284 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
11285 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11286 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11287 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11288 "gliv.spec" ) CONFIG_FILES="$CONFIG_FILES gliv.spec" ;;
11289 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11290 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11291 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11292 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11293 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11294 { (exit 1); exit 1; }; };;
11295 esac
11296 done
11298 # If the user did not use the arguments to specify the items to instantiate,
11299 # then the envvar interface is used. Set only those that are not.
11300 # We use the long form for the default assignment because of an extremely
11301 # bizarre bug on SunOS 4.1.3.
11302 if $ac_need_defaults; then
11303 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11304 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11305 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11308 # Have a temporary directory for convenience. Make it in the build tree
11309 # simply because there is no reason to put it here, and in addition,
11310 # creating and moving files from /tmp can sometimes cause problems.
11311 # Create a temporary directory, and hook for its removal unless debugging.
11312 $debug ||
11314 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11315 trap '{ (exit 1); exit 1; }' 1 2 13 15
11318 # Create a (secure) tmp directory for tmp files.
11321 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11322 test -n "$tmp" && test -d "$tmp"
11323 } ||
11325 tmp=./confstat$$-$RANDOM
11326 (umask 077 && mkdir $tmp)
11327 } ||
11329 echo "$me: cannot create a temporary directory in ." >&2
11330 { (exit 1); exit 1; }
11333 _ACEOF
11335 cat >>$CONFIG_STATUS <<_ACEOF
11338 # CONFIG_FILES section.
11341 # No need to generate the scripts if there are no CONFIG_FILES.
11342 # This happens for instance when ./config.status config.h
11343 if test -n "\$CONFIG_FILES"; then
11344 # Protect against being on the right side of a sed subst in config.status.
11345 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11346 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11347 s,@SHELL@,$SHELL,;t t
11348 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11349 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11350 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11351 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11352 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11353 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11354 s,@exec_prefix@,$exec_prefix,;t t
11355 s,@prefix@,$prefix,;t t
11356 s,@program_transform_name@,$program_transform_name,;t t
11357 s,@bindir@,$bindir,;t t
11358 s,@sbindir@,$sbindir,;t t
11359 s,@libexecdir@,$libexecdir,;t t
11360 s,@datadir@,$datadir,;t t
11361 s,@sysconfdir@,$sysconfdir,;t t
11362 s,@sharedstatedir@,$sharedstatedir,;t t
11363 s,@localstatedir@,$localstatedir,;t t
11364 s,@libdir@,$libdir,;t t
11365 s,@includedir@,$includedir,;t t
11366 s,@oldincludedir@,$oldincludedir,;t t
11367 s,@infodir@,$infodir,;t t
11368 s,@mandir@,$mandir,;t t
11369 s,@build_alias@,$build_alias,;t t
11370 s,@host_alias@,$host_alias,;t t
11371 s,@target_alias@,$target_alias,;t t
11372 s,@DEFS@,$DEFS,;t t
11373 s,@ECHO_C@,$ECHO_C,;t t
11374 s,@ECHO_N@,$ECHO_N,;t t
11375 s,@ECHO_T@,$ECHO_T,;t t
11376 s,@LIBS@,$LIBS,;t t
11377 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11378 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11379 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11380 s,@CYGPATH_W@,$CYGPATH_W,;t t
11381 s,@PACKAGE@,$PACKAGE,;t t
11382 s,@VERSION@,$VERSION,;t t
11383 s,@ACLOCAL@,$ACLOCAL,;t t
11384 s,@AUTOCONF@,$AUTOCONF,;t t
11385 s,@AUTOMAKE@,$AUTOMAKE,;t t
11386 s,@AUTOHEADER@,$AUTOHEADER,;t t
11387 s,@MAKEINFO@,$MAKEINFO,;t t
11388 s,@AMTAR@,$AMTAR,;t t
11389 s,@install_sh@,$install_sh,;t t
11390 s,@STRIP@,$STRIP,;t t
11391 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11392 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11393 s,@AWK@,$AWK,;t t
11394 s,@SET_MAKE@,$SET_MAKE,;t t
11395 s,@am__leading_dot@,$am__leading_dot,;t t
11396 s,@CC@,$CC,;t t
11397 s,@CFLAGS@,$CFLAGS,;t t
11398 s,@LDFLAGS@,$LDFLAGS,;t t
11399 s,@CPPFLAGS@,$CPPFLAGS,;t t
11400 s,@ac_ct_CC@,$ac_ct_CC,;t t
11401 s,@EXEEXT@,$EXEEXT,;t t
11402 s,@OBJEXT@,$OBJEXT,;t t
11403 s,@DEPDIR@,$DEPDIR,;t t
11404 s,@am__include@,$am__include,;t t
11405 s,@am__quote@,$am__quote,;t t
11406 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11407 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11408 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11409 s,@CCDEPMODE@,$CCDEPMODE,;t t
11410 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11411 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11412 s,@RANLIB@,$RANLIB,;t t
11413 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11414 s,@GETLINE_TRUE@,$GETLINE_TRUE,;t t
11415 s,@GETLINE_FALSE@,$GETLINE_FALSE,;t t
11416 s,@GETOPT_LONG_TRUE@,$GETOPT_LONG_TRUE,;t t
11417 s,@GETOPT_LONG_FALSE@,$GETOPT_LONG_FALSE,;t t
11418 s,@NEED_REPLACEMENTS_TRUE@,$NEED_REPLACEMENTS_TRUE,;t t
11419 s,@NEED_REPLACEMENTS_FALSE@,$NEED_REPLACEMENTS_FALSE,;t t
11420 s,@CPP@,$CPP,;t t
11421 s,@X_CFLAGS@,$X_CFLAGS,;t t
11422 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
11423 s,@X_LIBS@,$X_LIBS,;t t
11424 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
11425 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
11426 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
11427 s,@GTK_LIBS@,$GTK_LIBS,;t t
11428 s,@GTKGLEXT_CFLAGS@,$GTKGLEXT_CFLAGS,;t t
11429 s,@GTKGLEXT_LIBS@,$GTKGLEXT_LIBS,;t t
11430 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11431 s,@USE_NLS@,$USE_NLS,;t t
11432 s,@MSGFMT@,$MSGFMT,;t t
11433 s,@GMSGFMT@,$GMSGFMT,;t t
11434 s,@XGETTEXT@,$XGETTEXT,;t t
11435 s,@MSGMERGE@,$MSGMERGE,;t t
11436 s,@build@,$build,;t t
11437 s,@build_cpu@,$build_cpu,;t t
11438 s,@build_vendor@,$build_vendor,;t t
11439 s,@build_os@,$build_os,;t t
11440 s,@host@,$host,;t t
11441 s,@host_cpu@,$host_cpu,;t t
11442 s,@host_vendor@,$host_vendor,;t t
11443 s,@host_os@,$host_os,;t t
11444 s,@EGREP@,$EGREP,;t t
11445 s,@ALLOCA@,$ALLOCA,;t t
11446 s,@GLIBC21@,$GLIBC21,;t t
11447 s,@LIBICONV@,$LIBICONV,;t t
11448 s,@LTLIBICONV@,$LTLIBICONV,;t t
11449 s,@INTLBISON@,$INTLBISON,;t t
11450 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
11451 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
11452 s,@CATOBJEXT@,$CATOBJEXT,;t t
11453 s,@DATADIRNAME@,$DATADIRNAME,;t t
11454 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
11455 s,@GENCAT@,$GENCAT,;t t
11456 s,@INTLOBJS@,$INTLOBJS,;t t
11457 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
11458 s,@INTLLIBS@,$INTLLIBS,;t t
11459 s,@LIBINTL@,$LIBINTL,;t t
11460 s,@LTLIBINTL@,$LTLIBINTL,;t t
11461 s,@POSUB@,$POSUB,;t t
11462 s,@LIBOBJS@,$LIBOBJS,;t t
11463 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11464 CEOF
11466 _ACEOF
11468 cat >>$CONFIG_STATUS <<\_ACEOF
11469 # Split the substitutions into bite-sized pieces for seds with
11470 # small command number limits, like on Digital OSF/1 and HP-UX.
11471 ac_max_sed_lines=48
11472 ac_sed_frag=1 # Number of current file.
11473 ac_beg=1 # First line for current file.
11474 ac_end=$ac_max_sed_lines # Line after last line for current file.
11475 ac_more_lines=:
11476 ac_sed_cmds=
11477 while $ac_more_lines; do
11478 if test $ac_beg -gt 1; then
11479 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11480 else
11481 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11483 if test ! -s $tmp/subs.frag; then
11484 ac_more_lines=false
11485 else
11486 # The purpose of the label and of the branching condition is to
11487 # speed up the sed processing (if there are no `@' at all, there
11488 # is no need to browse any of the substitutions).
11489 # These are the two extra sed commands mentioned above.
11490 (echo ':t
11491 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11492 if test -z "$ac_sed_cmds"; then
11493 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11494 else
11495 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11497 ac_sed_frag=`expr $ac_sed_frag + 1`
11498 ac_beg=$ac_end
11499 ac_end=`expr $ac_end + $ac_max_sed_lines`
11501 done
11502 if test -z "$ac_sed_cmds"; then
11503 ac_sed_cmds=cat
11505 fi # test -n "$CONFIG_FILES"
11507 _ACEOF
11508 cat >>$CONFIG_STATUS <<\_ACEOF
11509 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11510 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11511 case $ac_file in
11512 - | *:- | *:-:* ) # input from stdin
11513 cat >$tmp/stdin
11514 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11515 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11516 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11517 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11518 * ) ac_file_in=$ac_file.in ;;
11519 esac
11521 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11522 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11523 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11524 X"$ac_file" : 'X\(//\)[^/]' \| \
11525 X"$ac_file" : 'X\(//\)$' \| \
11526 X"$ac_file" : 'X\(/\)' \| \
11527 . : '\(.\)' 2>/dev/null ||
11528 echo X"$ac_file" |
11529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11530 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11531 /^X\(\/\/\)$/{ s//\1/; q; }
11532 /^X\(\/\).*/{ s//\1/; q; }
11533 s/.*/./; q'`
11534 { if $as_mkdir_p; then
11535 mkdir -p "$ac_dir"
11536 else
11537 as_dir="$ac_dir"
11538 as_dirs=
11539 while test ! -d "$as_dir"; do
11540 as_dirs="$as_dir $as_dirs"
11541 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11542 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11543 X"$as_dir" : 'X\(//\)[^/]' \| \
11544 X"$as_dir" : 'X\(//\)$' \| \
11545 X"$as_dir" : 'X\(/\)' \| \
11546 . : '\(.\)' 2>/dev/null ||
11547 echo X"$as_dir" |
11548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11549 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11550 /^X\(\/\/\)$/{ s//\1/; q; }
11551 /^X\(\/\).*/{ s//\1/; q; }
11552 s/.*/./; q'`
11553 done
11554 test ! -n "$as_dirs" || mkdir $as_dirs
11555 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11556 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11557 { (exit 1); exit 1; }; }; }
11559 ac_builddir=.
11561 if test "$ac_dir" != .; then
11562 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11563 # A "../" for each directory in $ac_dir_suffix.
11564 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11565 else
11566 ac_dir_suffix= ac_top_builddir=
11569 case $srcdir in
11570 .) # No --srcdir option. We are building in place.
11571 ac_srcdir=.
11572 if test -z "$ac_top_builddir"; then
11573 ac_top_srcdir=.
11574 else
11575 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11576 fi ;;
11577 [\\/]* | ?:[\\/]* ) # Absolute path.
11578 ac_srcdir=$srcdir$ac_dir_suffix;
11579 ac_top_srcdir=$srcdir ;;
11580 *) # Relative path.
11581 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11582 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11583 esac
11584 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11585 # absolute.
11586 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11587 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11588 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11589 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11592 case $INSTALL in
11593 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11594 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11595 esac
11597 if test x"$ac_file" != x-; then
11598 { echo "$as_me:$LINENO: creating $ac_file" >&5
11599 echo "$as_me: creating $ac_file" >&6;}
11600 rm -f "$ac_file"
11602 # Let's still pretend it is `configure' which instantiates (i.e., don't
11603 # use $as_me), people would be surprised to read:
11604 # /* config.h. Generated by config.status. */
11605 if test x"$ac_file" = x-; then
11606 configure_input=
11607 else
11608 configure_input="$ac_file. "
11610 configure_input=$configure_input"Generated from `echo $ac_file_in |
11611 sed 's,.*/,,'` by configure."
11613 # First look for the input files in the build tree, otherwise in the
11614 # src tree.
11615 ac_file_inputs=`IFS=:
11616 for f in $ac_file_in; do
11617 case $f in
11618 -) echo $tmp/stdin ;;
11619 [\\/$]*)
11620 # Absolute (can't be DOS-style, as IFS=:)
11621 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11622 echo "$as_me: error: cannot find input file: $f" >&2;}
11623 { (exit 1); exit 1; }; }
11624 echo $f;;
11625 *) # Relative
11626 if test -f "$f"; then
11627 # Build tree
11628 echo $f
11629 elif test -f "$srcdir/$f"; then
11630 # Source tree
11631 echo $srcdir/$f
11632 else
11633 # /dev/null tree
11634 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11635 echo "$as_me: error: cannot find input file: $f" >&2;}
11636 { (exit 1); exit 1; }; }
11637 fi;;
11638 esac
11639 done` || { (exit 1); exit 1; }
11640 _ACEOF
11641 cat >>$CONFIG_STATUS <<_ACEOF
11642 sed "$ac_vpsub
11643 $extrasub
11644 _ACEOF
11645 cat >>$CONFIG_STATUS <<\_ACEOF
11647 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11648 s,@configure_input@,$configure_input,;t t
11649 s,@srcdir@,$ac_srcdir,;t t
11650 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11651 s,@top_srcdir@,$ac_top_srcdir,;t t
11652 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11653 s,@builddir@,$ac_builddir,;t t
11654 s,@abs_builddir@,$ac_abs_builddir,;t t
11655 s,@top_builddir@,$ac_top_builddir,;t t
11656 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11657 s,@INSTALL@,$ac_INSTALL,;t t
11658 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11659 rm -f $tmp/stdin
11660 if test x"$ac_file" != x-; then
11661 mv $tmp/out $ac_file
11662 else
11663 cat $tmp/out
11664 rm -f $tmp/out
11667 done
11668 _ACEOF
11669 cat >>$CONFIG_STATUS <<\_ACEOF
11672 # CONFIG_HEADER section.
11675 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11676 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11678 # ac_d sets the value in "#define NAME VALUE" lines.
11679 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11680 ac_dB='[ ].*$,\1#\2'
11681 ac_dC=' '
11682 ac_dD=',;t'
11683 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11684 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11685 ac_uB='$,\1#\2define\3'
11686 ac_uC=' '
11687 ac_uD=',;t'
11689 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11690 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11691 case $ac_file in
11692 - | *:- | *:-:* ) # input from stdin
11693 cat >$tmp/stdin
11694 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11695 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11696 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11697 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11698 * ) ac_file_in=$ac_file.in ;;
11699 esac
11701 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11702 echo "$as_me: creating $ac_file" >&6;}
11704 # First look for the input files in the build tree, otherwise in the
11705 # src tree.
11706 ac_file_inputs=`IFS=:
11707 for f in $ac_file_in; do
11708 case $f in
11709 -) echo $tmp/stdin ;;
11710 [\\/$]*)
11711 # Absolute (can't be DOS-style, as IFS=:)
11712 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11713 echo "$as_me: error: cannot find input file: $f" >&2;}
11714 { (exit 1); exit 1; }; }
11715 echo $f;;
11716 *) # Relative
11717 if test -f "$f"; then
11718 # Build tree
11719 echo $f
11720 elif test -f "$srcdir/$f"; then
11721 # Source tree
11722 echo $srcdir/$f
11723 else
11724 # /dev/null tree
11725 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11726 echo "$as_me: error: cannot find input file: $f" >&2;}
11727 { (exit 1); exit 1; }; }
11728 fi;;
11729 esac
11730 done` || { (exit 1); exit 1; }
11731 # Remove the trailing spaces.
11732 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11734 _ACEOF
11736 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11737 # `conftest.undefs', that substitutes the proper values into
11738 # config.h.in to produce config.h. The first handles `#define'
11739 # templates, and the second `#undef' templates.
11740 # And first: Protect against being on the right side of a sed subst in
11741 # config.status. Protect against being in an unquoted here document
11742 # in config.status.
11743 rm -f conftest.defines conftest.undefs
11744 # Using a here document instead of a string reduces the quoting nightmare.
11745 # Putting comments in sed scripts is not portable.
11747 # `end' is used to avoid that the second main sed command (meant for
11748 # 0-ary CPP macros) applies to n-ary macro definitions.
11749 # See the Autoconf documentation for `clear'.
11750 cat >confdef2sed.sed <<\_ACEOF
11751 s/[\\&,]/\\&/g
11752 s,[\\$`],\\&,g
11753 t clear
11754 : clear
11755 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11756 t end
11757 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11758 : end
11759 _ACEOF
11760 # If some macros were called several times there might be several times
11761 # the same #defines, which is useless. Nevertheless, we may not want to
11762 # sort them, since we want the *last* AC-DEFINE to be honored.
11763 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11764 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11765 rm -f confdef2sed.sed
11767 # This sed command replaces #undef with comments. This is necessary, for
11768 # example, in the case of _POSIX_SOURCE, which is predefined and required
11769 # on some systems where configure will not decide to define it.
11770 cat >>conftest.undefs <<\_ACEOF
11771 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11772 _ACEOF
11774 # Break up conftest.defines because some shells have a limit on the size
11775 # of here documents, and old seds have small limits too (100 cmds).
11776 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11777 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11778 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11779 echo ' :' >>$CONFIG_STATUS
11780 rm -f conftest.tail
11781 while grep . conftest.defines >/dev/null
11783 # Write a limited-size here document to $tmp/defines.sed.
11784 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11785 # Speed up: don't consider the non `#define' lines.
11786 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11787 # Work around the forget-to-reset-the-flag bug.
11788 echo 't clr' >>$CONFIG_STATUS
11789 echo ': clr' >>$CONFIG_STATUS
11790 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11791 echo 'CEOF
11792 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11793 rm -f $tmp/in
11794 mv $tmp/out $tmp/in
11795 ' >>$CONFIG_STATUS
11796 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11797 rm -f conftest.defines
11798 mv conftest.tail conftest.defines
11799 done
11800 rm -f conftest.defines
11801 echo ' fi # grep' >>$CONFIG_STATUS
11802 echo >>$CONFIG_STATUS
11804 # Break up conftest.undefs because some shells have a limit on the size
11805 # of here documents, and old seds have small limits too (100 cmds).
11806 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11807 rm -f conftest.tail
11808 while grep . conftest.undefs >/dev/null
11810 # Write a limited-size here document to $tmp/undefs.sed.
11811 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11812 # Speed up: don't consider the non `#undef'
11813 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11814 # Work around the forget-to-reset-the-flag bug.
11815 echo 't clr' >>$CONFIG_STATUS
11816 echo ': clr' >>$CONFIG_STATUS
11817 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11818 echo 'CEOF
11819 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11820 rm -f $tmp/in
11821 mv $tmp/out $tmp/in
11822 ' >>$CONFIG_STATUS
11823 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11824 rm -f conftest.undefs
11825 mv conftest.tail conftest.undefs
11826 done
11827 rm -f conftest.undefs
11829 cat >>$CONFIG_STATUS <<\_ACEOF
11830 # Let's still pretend it is `configure' which instantiates (i.e., don't
11831 # use $as_me), people would be surprised to read:
11832 # /* config.h. Generated by config.status. */
11833 if test x"$ac_file" = x-; then
11834 echo "/* Generated by configure. */" >$tmp/config.h
11835 else
11836 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11838 cat $tmp/in >>$tmp/config.h
11839 rm -f $tmp/in
11840 if test x"$ac_file" != x-; then
11841 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11842 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11843 echo "$as_me: $ac_file is unchanged" >&6;}
11844 else
11845 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11846 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11847 X"$ac_file" : 'X\(//\)[^/]' \| \
11848 X"$ac_file" : 'X\(//\)$' \| \
11849 X"$ac_file" : 'X\(/\)' \| \
11850 . : '\(.\)' 2>/dev/null ||
11851 echo X"$ac_file" |
11852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11853 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11854 /^X\(\/\/\)$/{ s//\1/; q; }
11855 /^X\(\/\).*/{ s//\1/; q; }
11856 s/.*/./; q'`
11857 { if $as_mkdir_p; then
11858 mkdir -p "$ac_dir"
11859 else
11860 as_dir="$ac_dir"
11861 as_dirs=
11862 while test ! -d "$as_dir"; do
11863 as_dirs="$as_dir $as_dirs"
11864 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11865 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11866 X"$as_dir" : 'X\(//\)[^/]' \| \
11867 X"$as_dir" : 'X\(//\)$' \| \
11868 X"$as_dir" : 'X\(/\)' \| \
11869 . : '\(.\)' 2>/dev/null ||
11870 echo X"$as_dir" |
11871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11873 /^X\(\/\/\)$/{ s//\1/; q; }
11874 /^X\(\/\).*/{ s//\1/; q; }
11875 s/.*/./; q'`
11876 done
11877 test ! -n "$as_dirs" || mkdir $as_dirs
11878 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11879 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11880 { (exit 1); exit 1; }; }; }
11882 rm -f $ac_file
11883 mv $tmp/config.h $ac_file
11885 else
11886 cat $tmp/config.h
11887 rm -f $tmp/config.h
11889 # Compute $ac_file's index in $config_headers.
11890 _am_stamp_count=1
11891 for _am_header in $config_headers :; do
11892 case $_am_header in
11893 $ac_file | $ac_file:* )
11894 break ;;
11896 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11897 esac
11898 done
11899 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11900 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11901 X$ac_file : 'X\(//\)[^/]' \| \
11902 X$ac_file : 'X\(//\)$' \| \
11903 X$ac_file : 'X\(/\)' \| \
11904 . : '\(.\)' 2>/dev/null ||
11905 echo X$ac_file |
11906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11907 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11908 /^X\(\/\/\)$/{ s//\1/; q; }
11909 /^X\(\/\).*/{ s//\1/; q; }
11910 s/.*/./; q'`/stamp-h$_am_stamp_count
11911 done
11912 _ACEOF
11913 cat >>$CONFIG_STATUS <<\_ACEOF
11916 # CONFIG_COMMANDS section.
11918 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11919 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11920 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11921 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11922 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11923 X"$ac_dest" : 'X\(//\)[^/]' \| \
11924 X"$ac_dest" : 'X\(//\)$' \| \
11925 X"$ac_dest" : 'X\(/\)' \| \
11926 . : '\(.\)' 2>/dev/null ||
11927 echo X"$ac_dest" |
11928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11929 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11930 /^X\(\/\/\)$/{ s//\1/; q; }
11931 /^X\(\/\).*/{ s//\1/; q; }
11932 s/.*/./; q'`
11933 ac_builddir=.
11935 if test "$ac_dir" != .; then
11936 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11937 # A "../" for each directory in $ac_dir_suffix.
11938 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11939 else
11940 ac_dir_suffix= ac_top_builddir=
11943 case $srcdir in
11944 .) # No --srcdir option. We are building in place.
11945 ac_srcdir=.
11946 if test -z "$ac_top_builddir"; then
11947 ac_top_srcdir=.
11948 else
11949 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11950 fi ;;
11951 [\\/]* | ?:[\\/]* ) # Absolute path.
11952 ac_srcdir=$srcdir$ac_dir_suffix;
11953 ac_top_srcdir=$srcdir ;;
11954 *) # Relative path.
11955 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11956 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11957 esac
11958 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11959 # absolute.
11960 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11961 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11962 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11963 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11966 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11967 echo "$as_me: executing $ac_dest commands" >&6;}
11968 case $ac_dest in
11969 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11970 # Strip MF so we end up with the name of the file.
11971 mf=`echo "$mf" | sed -e 's/:.*$//'`
11972 # Check whether this is an Automake generated Makefile or not.
11973 # We used to match only the files named `Makefile.in', but
11974 # some people rename them; so instead we look at the file content.
11975 # Grep'ing the first line is not enough: some people post-process
11976 # each Makefile.in and add a new line on top of each file to say so.
11977 # So let's grep whole file.
11978 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11979 dirpart=`(dirname "$mf") 2>/dev/null ||
11980 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11981 X"$mf" : 'X\(//\)[^/]' \| \
11982 X"$mf" : 'X\(//\)$' \| \
11983 X"$mf" : 'X\(/\)' \| \
11984 . : '\(.\)' 2>/dev/null ||
11985 echo X"$mf" |
11986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11987 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11988 /^X\(\/\/\)$/{ s//\1/; q; }
11989 /^X\(\/\).*/{ s//\1/; q; }
11990 s/.*/./; q'`
11991 else
11992 continue
11994 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11995 # Extract the definition of DEP_FILES from the Makefile without
11996 # running `make'.
11997 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
11998 test -z "$DEPDIR" && continue
11999 # When using ansi2knr, U may be empty or an underscore; expand it
12000 U=`sed -n -e '/^U = / s///p' < "$mf"`
12001 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12002 # We invoke sed twice because it is the simplest approach to
12003 # changing $(DEPDIR) to its actual value in the expansion.
12004 for file in `sed -n -e '
12005 /^DEP_FILES = .*\\\\$/ {
12006 s/^DEP_FILES = //
12007 :loop
12008 s/\\\\$//
12011 /\\\\$/ b loop
12014 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12015 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12016 # Make sure the directory exists.
12017 test -f "$dirpart/$file" && continue
12018 fdir=`(dirname "$file") 2>/dev/null ||
12019 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12020 X"$file" : 'X\(//\)[^/]' \| \
12021 X"$file" : 'X\(//\)$' \| \
12022 X"$file" : 'X\(/\)' \| \
12023 . : '\(.\)' 2>/dev/null ||
12024 echo X"$file" |
12025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12026 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12027 /^X\(\/\/\)$/{ s//\1/; q; }
12028 /^X\(\/\).*/{ s//\1/; q; }
12029 s/.*/./; q'`
12030 { if $as_mkdir_p; then
12031 mkdir -p $dirpart/$fdir
12032 else
12033 as_dir=$dirpart/$fdir
12034 as_dirs=
12035 while test ! -d "$as_dir"; do
12036 as_dirs="$as_dir $as_dirs"
12037 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12038 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12039 X"$as_dir" : 'X\(//\)[^/]' \| \
12040 X"$as_dir" : 'X\(//\)$' \| \
12041 X"$as_dir" : 'X\(/\)' \| \
12042 . : '\(.\)' 2>/dev/null ||
12043 echo X"$as_dir" |
12044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12045 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12046 /^X\(\/\/\)$/{ s//\1/; q; }
12047 /^X\(\/\).*/{ s//\1/; q; }
12048 s/.*/./; q'`
12049 done
12050 test ! -n "$as_dirs" || mkdir $as_dirs
12051 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12052 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12053 { (exit 1); exit 1; }; }; }
12055 # echo "creating $dirpart/$file"
12056 echo '# dummy' > "$dirpart/$file"
12057 done
12058 done
12060 default-1 )
12061 for ac_file in $CONFIG_FILES; do
12062 # Support "outfile[:infile[:infile...]]"
12063 case "$ac_file" in
12064 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12065 esac
12066 # PO directories have a Makefile.in generated from Makefile.in.in.
12067 case "$ac_file" in */Makefile.in)
12068 # Adjust a relative srcdir.
12069 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12070 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12071 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12072 # In autoconf-2.13 it is called $ac_given_srcdir.
12073 # In autoconf-2.50 it is called $srcdir.
12074 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12075 case "$ac_given_srcdir" in
12076 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12077 /*) top_srcdir="$ac_given_srcdir" ;;
12078 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12079 esac
12080 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12081 rm -f "$ac_dir/POTFILES"
12082 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12083 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12084 POMAKEFILEDEPS="POTFILES.in"
12085 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
12086 # on $ac_dir but don't depend on user-specified configuration
12087 # parameters.
12088 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12089 # The LINGUAS file contains the set of available languages.
12090 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12091 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12093 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12094 # Hide the ALL_LINGUAS assigment from automake.
12095 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12096 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12097 else
12098 # The set of available languages was given in configure.in.
12099 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12101 case "$ac_given_srcdir" in
12102 .) srcdirpre= ;;
12103 *) srcdirpre='$(srcdir)/' ;;
12104 esac
12105 POFILES=
12106 GMOFILES=
12107 UPDATEPOFILES=
12108 DUMMYPOFILES=
12109 for lang in $ALL_LINGUAS; do
12110 POFILES="$POFILES $srcdirpre$lang.po"
12111 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12112 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12113 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12114 done
12115 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12116 # environment variable.
12117 INST_LINGUAS=
12118 if test -n "$ALL_LINGUAS"; then
12119 for presentlang in $ALL_LINGUAS; do
12120 useit=no
12121 if test "%UNSET%" != "$LINGUAS"; then
12122 desiredlanguages="$LINGUAS"
12123 else
12124 desiredlanguages="$ALL_LINGUAS"
12126 for desiredlang in $desiredlanguages; do
12127 # Use the presentlang catalog if desiredlang is
12128 # a. equal to presentlang, or
12129 # b. a variant of presentlang (because in this case,
12130 # presentlang can be used as a fallback for messages
12131 # which are not translated in the desiredlang catalog).
12132 case "$desiredlang" in
12133 "$presentlang"*) useit=yes;;
12134 esac
12135 done
12136 if test $useit = yes; then
12137 INST_LINGUAS="$INST_LINGUAS $presentlang"
12139 done
12141 CATALOGS=
12142 if test -n "$INST_LINGUAS"; then
12143 for lang in $INST_LINGUAS; do
12144 CATALOGS="$CATALOGS $lang.gmo"
12145 done
12147 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12148 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"
12149 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12150 if test -f "$f"; then
12151 case "$f" in
12152 *.orig | *.bak | *~) ;;
12153 *) cat "$f" >> "$ac_dir/Makefile" ;;
12154 esac
12156 done
12159 esac
12160 done ;;
12161 esac
12162 done
12163 _ACEOF
12165 cat >>$CONFIG_STATUS <<\_ACEOF
12167 { (exit 0); exit 0; }
12168 _ACEOF
12169 chmod +x $CONFIG_STATUS
12170 ac_clean_files=$ac_clean_files_save
12173 # configure is writing to config.log, and then calls config.status.
12174 # config.status does its own redirection, appending to config.log.
12175 # Unfortunately, on DOS this fails, as config.log is still kept open
12176 # by configure, so config.status won't be able to write to it; its
12177 # output is simply discarded. So we exec the FD to /dev/null,
12178 # effectively closing config.log, so it can be properly (re)opened and
12179 # appended to by config.status. When coming back to configure, we
12180 # need to make the FD available again.
12181 if test "$no_create" != yes; then
12182 ac_cs_success=:
12183 ac_config_status_args=
12184 test "$silent" = yes &&
12185 ac_config_status_args="$ac_config_status_args --quiet"
12186 exec 5>/dev/null
12187 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12188 exec 5>>config.log
12189 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12190 # would make configure fail if this is the last instruction.
12191 $ac_cs_success || { (exit 1); exit 1; }
12195 echo
12196 echo "Using GTK+ $GTK_VERSION with GtkGLExt $GTKGL_VERSION"
12197 echo