Import upstream Source
[gamazons.git] / configure
blob8fd53fd011b005438c699fed7b958547915eb411
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12 else
13 as_expr=false
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33 else
34 as_unset=false
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
93 rm -f conftest.sh
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147 done
149 esac
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
160 sed '
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191 else
192 as_expr=false
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208 else
209 as_ln_s='cp -p'
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
226 IFS=" $as_nl"
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
237 exec 6>&1
240 # Initializations.
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
261 ac_unique_file="configure.in"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 # include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 # include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 # include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
338 ac_prev=
339 for ac_option
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
344 ac_prev=
345 continue
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
352 case $ac_option in
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
355 ac_prev=bindir ;;
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357 bindir=$ac_optarg ;;
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
371 --config-cache | -C)
372 cache_file=config.cache ;;
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375 ac_prev=datadir ;;
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377 | --da=*)
378 datadir=$ac_optarg ;;
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396 case $ac_option in
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398 *) ac_optarg=yes ;;
399 esac
400 eval "enable_$ac_feature='$ac_optarg'" ;;
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
413 with_gas=yes ;;
415 -help | --help | --hel | --he | -h)
416 ac_init_help=long ;;
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
435 ac_prev=infodir ;;
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
439 -libdir | --libdir | --libdi | --libd)
440 ac_prev=libdir ;;
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
442 libdir=$ac_optarg ;;
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461 ac_prev=mandir ;;
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463 mandir=$ac_optarg ;;
465 -nfp | --nfp | --nf)
466 # Obsolete; use --without-fp.
467 with_fp=no ;;
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
471 no_create=yes ;;
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475 no_recursion=yes ;;
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487 ac_prev=prefix ;;
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489 prefix=$ac_optarg ;;
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
524 silent=yes ;;
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527 ac_prev=sbindir ;;
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529 | --sbi=* | --sb=*)
530 sbindir=$ac_optarg ;;
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
535 | --sha | --sh)
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540 | --sha=* | --sh=*)
541 sharedstatedir=$ac_optarg ;;
543 -site | --site | --sit)
544 ac_prev=site ;;
545 -site=* | --site=* | --sit=*)
546 site=$ac_optarg ;;
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549 ac_prev=srcdir ;;
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551 srcdir=$ac_optarg ;;
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
566 verbose=yes ;;
568 -version | --version | --versio | --versi | --vers | -V)
569 ac_init_version=: ;;
571 -with-* | --with-*)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "with_$ac_package='$ac_optarg'" ;;
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
593 --x)
594 # Obsolete; use --with-x.
595 with_x=yes ;;
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
616 *=*)
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
624 export $ac_envvar ;;
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
634 esac
635 done
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
646 eval ac_val=$`echo $ac_var`
647 case $ac_val in
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
651 esac
652 done
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
663 esac
664 done
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
680 cross_compiling=yes
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687 test "$silent" = yes && exec 6>/dev/null
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
705 s/.*/./; q'`
706 srcdir=$ac_confdir
707 if test ! -r $srcdir/$ac_unique_file; then
708 srcdir=..
710 else
711 ac_srcdir_defaulted=no
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
717 else
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
757 # Report the --help message.
759 if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
762 cat <<_ACEOF
763 \`configure' configures this package to adapt to many kinds of systems.
765 Usage: $0 [OPTION]... [VAR=VALUE]...
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
770 Defaults for the options are specified in brackets.
772 Configuration:
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
783 _ACEOF
785 cat <<_ACEOF
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
788 [$ac_default_prefix]
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
790 [PREFIX]
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
797 For better control, use the options below.
799 Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
812 _ACEOF
814 cat <<\_ACEOF
816 Program names:
817 --program-prefix=PREFIX prepend PREFIX to installed program names
818 --program-suffix=SUFFIX append SUFFIX to installed program names
819 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
820 _ACEOF
823 if test -n "$ac_init_help"; then
825 cat <<\_ACEOF
827 Optional Features:
828 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
829 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
830 --enable-maintainer-mode enable make rules and dependencies not useful
831 (and sometimes confusing) to the casual installer
833 Some influential environment variables:
834 CC C compiler command
835 CFLAGS C compiler flags
836 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
837 nonstandard directory <lib dir>
838 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
839 headers in a nonstandard directory <include dir>
840 CPP C preprocessor
842 Use these variables to override the choices made by `configure' or to help
843 it to find libraries and programs with nonstandard names/locations.
845 _ACEOF
848 if test "$ac_init_help" = "recursive"; then
849 # If there are subdirs, report their specific --help.
850 ac_popdir=`pwd`
851 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
852 test -d $ac_dir || continue
853 ac_builddir=.
855 if test "$ac_dir" != .; then
856 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
857 # A "../" for each directory in $ac_dir_suffix.
858 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
859 else
860 ac_dir_suffix= ac_top_builddir=
863 case $srcdir in
864 .) # No --srcdir option. We are building in place.
865 ac_srcdir=.
866 if test -z "$ac_top_builddir"; then
867 ac_top_srcdir=.
868 else
869 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
870 fi ;;
871 [\\/]* | ?:[\\/]* ) # Absolute path.
872 ac_srcdir=$srcdir$ac_dir_suffix;
873 ac_top_srcdir=$srcdir ;;
874 *) # Relative path.
875 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
876 ac_top_srcdir=$ac_top_builddir$srcdir ;;
877 esac
878 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
879 # absolute.
880 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
881 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
882 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
883 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
885 cd $ac_dir
886 # Check for guested configure; otherwise get Cygnus style configure.
887 if test -f $ac_srcdir/configure.gnu; then
888 echo
889 $SHELL $ac_srcdir/configure.gnu --help=recursive
890 elif test -f $ac_srcdir/configure; then
891 echo
892 $SHELL $ac_srcdir/configure --help=recursive
893 elif test -f $ac_srcdir/configure.ac ||
894 test -f $ac_srcdir/configure.in; then
895 echo
896 $ac_configure --help
897 else
898 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
900 cd $ac_popdir
901 done
904 test -n "$ac_init_help" && exit 0
905 if $ac_init_version; then
906 cat <<\_ACEOF
908 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
909 Free Software Foundation, Inc.
910 This configure script is free software; the Free Software Foundation
911 gives unlimited permission to copy, distribute and modify it.
912 _ACEOF
913 exit 0
915 exec 5>config.log
916 cat >&5 <<_ACEOF
917 This file contains any messages produced by compilers while
918 running configure, to aid debugging if configure makes a mistake.
920 It was created by $as_me, which was
921 generated by GNU Autoconf 2.53. Invocation command line was
923 $ $0 $@
925 _ACEOF
927 cat <<_ASUNAME
928 ## --------- ##
929 ## Platform. ##
930 ## --------- ##
932 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
933 uname -m = `(uname -m) 2>/dev/null || echo unknown`
934 uname -r = `(uname -r) 2>/dev/null || echo unknown`
935 uname -s = `(uname -s) 2>/dev/null || echo unknown`
936 uname -v = `(uname -v) 2>/dev/null || echo unknown`
938 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
939 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
941 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
942 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
943 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
944 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
945 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
946 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
947 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
949 _ASUNAME
951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
952 for as_dir in $PATH
954 IFS=$as_save_IFS
955 test -z "$as_dir" && as_dir=.
956 echo "PATH: $as_dir"
957 done
959 } >&5
961 cat >&5 <<_ACEOF
964 ## ----------- ##
965 ## Core tests. ##
966 ## ----------- ##
968 _ACEOF
971 # Keep a trace of the command line.
972 # Strip out --no-create and --no-recursion so they do not pile up.
973 # Also quote any args containing shell meta-characters.
974 ac_configure_args=
975 ac_sep=
976 for ac_arg
978 case $ac_arg in
979 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
980 | --no-cr | --no-c | -n ) continue ;;
981 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
982 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
983 continue ;;
984 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
985 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
986 esac
987 case " $ac_configure_args " in
988 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
989 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
990 ac_sep=" " ;;
991 esac
992 # Get rid of the leading space.
993 done
995 # When interrupted or exit'd, cleanup temporary files, and complete
996 # config.log. We remove comments because anyway the quotes in there
997 # would cause problems or look ugly.
998 # WARNING: Be sure not to use single quotes in there, as some shells,
999 # such as our DU 5.0 friend, will then `close' the trap.
1000 trap 'exit_status=$?
1001 # Save into config.log some information that might help in debugging.
1003 echo
1004 cat <<\_ASBOX
1005 ## ---------------- ##
1006 ## Cache variables. ##
1007 ## ---------------- ##
1008 _ASBOX
1009 echo
1010 # The following way of writing the cache mishandles newlines in values,
1012 (set) 2>&1 |
1013 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1014 *ac_space=\ *)
1015 sed -n \
1016 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1020 sed -n \
1021 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1023 esac;
1025 echo
1026 if test -s confdefs.h; then
1027 cat <<\_ASBOX
1028 ## ----------- ##
1029 ## confdefs.h. ##
1030 ## ----------- ##
1031 _ASBOX
1032 echo
1033 sed "/^$/d" confdefs.h
1034 echo
1036 test "$ac_signal" != 0 &&
1037 echo "$as_me: caught signal $ac_signal"
1038 echo "$as_me: exit $exit_status"
1039 } >&5
1040 rm -f core core.* *.core &&
1041 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1042 exit $exit_status
1044 for ac_signal in 1 2 13 15; do
1045 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1046 done
1047 ac_signal=0
1049 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1050 rm -rf conftest* confdefs.h
1051 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1052 echo >confdefs.h
1054 # Predefined preprocessor variables.
1056 cat >>confdefs.h <<_ACEOF
1057 #define PACKAGE_NAME "$PACKAGE_NAME"
1058 _ACEOF
1061 cat >>confdefs.h <<_ACEOF
1062 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1063 _ACEOF
1066 cat >>confdefs.h <<_ACEOF
1067 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1068 _ACEOF
1071 cat >>confdefs.h <<_ACEOF
1072 #define PACKAGE_STRING "$PACKAGE_STRING"
1073 _ACEOF
1076 cat >>confdefs.h <<_ACEOF
1077 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1078 _ACEOF
1081 # Let the site file select an alternate cache file if it wants to.
1082 # Prefer explicitly selected file to automatically selected ones.
1083 if test -z "$CONFIG_SITE"; then
1084 if test "x$prefix" != xNONE; then
1085 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1086 else
1087 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1090 for ac_site_file in $CONFIG_SITE; do
1091 if test -r "$ac_site_file"; then
1092 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1093 echo "$as_me: loading site script $ac_site_file" >&6;}
1094 sed 's/^/| /' "$ac_site_file" >&5
1095 . "$ac_site_file"
1097 done
1099 if test -r "$cache_file"; then
1100 # Some versions of bash will fail to source /dev/null (special
1101 # files actually), so we avoid doing that.
1102 if test -f "$cache_file"; then
1103 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1104 echo "$as_me: loading cache $cache_file" >&6;}
1105 case $cache_file in
1106 [\\/]* | ?:[\\/]* ) . $cache_file;;
1107 *) . ./$cache_file;;
1108 esac
1110 else
1111 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1112 echo "$as_me: creating cache $cache_file" >&6;}
1113 >$cache_file
1116 # Check that the precious variables saved in the cache have kept the same
1117 # value.
1118 ac_cache_corrupted=false
1119 for ac_var in `(set) 2>&1 |
1120 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1121 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1122 eval ac_new_set=\$ac_env_${ac_var}_set
1123 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1124 eval ac_new_val="\$ac_env_${ac_var}_value"
1125 case $ac_old_set,$ac_new_set in
1126 set,)
1127 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1128 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1129 ac_cache_corrupted=: ;;
1130 ,set)
1131 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1132 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1133 ac_cache_corrupted=: ;;
1134 ,);;
1136 if test "x$ac_old_val" != "x$ac_new_val"; then
1137 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1138 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1139 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1140 echo "$as_me: former value: $ac_old_val" >&2;}
1141 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1142 echo "$as_me: current value: $ac_new_val" >&2;}
1143 ac_cache_corrupted=:
1144 fi;;
1145 esac
1146 # Pass precious variables to config.status.
1147 if test "$ac_new_set" = set; then
1148 case $ac_new_val in
1149 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1150 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1151 *) ac_arg=$ac_var=$ac_new_val ;;
1152 esac
1153 case " $ac_configure_args " in
1154 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1155 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1156 esac
1158 done
1159 if $ac_cache_corrupted; then
1160 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1161 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1162 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1163 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1164 { (exit 1); exit 1; }; }
1167 ac_ext=c
1168 ac_cpp='$CPP $CPPFLAGS'
1169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1190 am__api_version="1.4"
1191 ac_aux_dir=
1192 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1193 if test -f $ac_dir/install-sh; then
1194 ac_aux_dir=$ac_dir
1195 ac_install_sh="$ac_aux_dir/install-sh -c"
1196 break
1197 elif test -f $ac_dir/install.sh; then
1198 ac_aux_dir=$ac_dir
1199 ac_install_sh="$ac_aux_dir/install.sh -c"
1200 break
1201 elif test -f $ac_dir/shtool; then
1202 ac_aux_dir=$ac_dir
1203 ac_install_sh="$ac_aux_dir/shtool install -c"
1204 break
1206 done
1207 if test -z "$ac_aux_dir"; then
1208 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1209 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1210 { (exit 1); exit 1; }; }
1212 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1213 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1214 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1216 # Find a good install program. We prefer a C program (faster),
1217 # so one script is as good as another. But avoid the broken or
1218 # incompatible versions:
1219 # SysV /etc/install, /usr/sbin/install
1220 # SunOS /usr/etc/install
1221 # IRIX /sbin/install
1222 # AIX /bin/install
1223 # AmigaOS /C/install, which installs bootblocks on floppy discs
1224 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1225 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1226 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1227 # ./install, which can be erroneously created by make from ./install.sh.
1228 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1229 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1230 if test -z "$INSTALL"; then
1231 if test "${ac_cv_path_install+set}" = set; then
1232 echo $ECHO_N "(cached) $ECHO_C" >&6
1233 else
1234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1235 for as_dir in $PATH
1237 IFS=$as_save_IFS
1238 test -z "$as_dir" && as_dir=.
1239 # Account for people who put trailing slashes in PATH elements.
1240 case $as_dir/ in
1241 ./ | .// | /cC/* | \
1242 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1243 /usr/ucb/* ) ;;
1245 # OSF1 and SCO ODT 3.0 have their own names for install.
1246 # Don't use installbsd from OSF since it installs stuff as root
1247 # by default.
1248 for ac_prog in ginstall scoinst install; do
1249 for ac_exec_ext in '' $ac_executable_extensions; do
1250 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1251 if test $ac_prog = install &&
1252 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1253 # AIX install. It has an incompatible calling convention.
1255 elif test $ac_prog = install &&
1256 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1257 # program-specific install script used by HP pwplus--don't use.
1259 else
1260 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1261 break 3
1264 done
1265 done
1267 esac
1268 done
1272 if test "${ac_cv_path_install+set}" = set; then
1273 INSTALL=$ac_cv_path_install
1274 else
1275 # As a last resort, use the slow shell script. We don't cache a
1276 # path for INSTALL within a source directory, because that will
1277 # break other packages using the cache if that directory is
1278 # removed, or if the path is relative.
1279 INSTALL=$ac_install_sh
1282 echo "$as_me:$LINENO: result: $INSTALL" >&5
1283 echo "${ECHO_T}$INSTALL" >&6
1285 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1286 # It thinks the first close brace ends the variable substitution.
1287 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1289 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1291 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1293 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1294 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1295 # Just in case
1296 sleep 1
1297 echo timestamp > conftestfile
1298 # Do `set' in a subshell so we don't clobber the current shell's
1299 # arguments. Must try -L first in case configure is actually a
1300 # symlink; some systems play weird games with the mod time of symlinks
1301 # (eg FreeBSD returns the mod time of the symlink's containing
1302 # directory).
1303 if (
1304 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1305 if test "$*" = "X"; then
1306 # -L didn't work.
1307 set X `ls -t $srcdir/configure conftestfile`
1309 if test "$*" != "X $srcdir/configure conftestfile" \
1310 && test "$*" != "X conftestfile $srcdir/configure"; then
1312 # If neither matched, then we have a broken ls. This can happen
1313 # if, for instance, CONFIG_SHELL is bash and it inherits a
1314 # broken ls alias from the environment. This has actually
1315 # happened. Such a system could not be considered "sane".
1316 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1317 alias in your environment" >&5
1318 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1319 alias in your environment" >&2;}
1320 { (exit 1); exit 1; }; }
1323 test "$2" = conftestfile
1325 then
1326 # Ok.
1328 else
1329 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1330 Check your system clock" >&5
1331 echo "$as_me: error: newly created file is older than distributed files!
1332 Check your system clock" >&2;}
1333 { (exit 1); exit 1; }; }
1335 rm -f conftest*
1336 echo "$as_me:$LINENO: result: yes" >&5
1337 echo "${ECHO_T}yes" >&6
1338 test "$program_prefix" != NONE &&
1339 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1340 # Use a double $ so make ignores it.
1341 test "$program_suffix" != NONE &&
1342 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1343 # Double any \ or $. echo might interpret backslashes.
1344 # By default was `s,x,x', remove it if useless.
1345 cat <<\_ACEOF >conftest.sed
1346 s/[\\$]/&&/g;s/;s,x,x,$//
1347 _ACEOF
1348 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1349 rm conftest.sed
1351 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1352 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1353 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1354 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1355 echo $ECHO_N "(cached) $ECHO_C" >&6
1356 else
1357 cat >conftest.make <<\_ACEOF
1358 all:
1359 @echo 'ac_maketemp="${MAKE}"'
1360 _ACEOF
1361 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1362 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1363 if test -n "$ac_maketemp"; then
1364 eval ac_cv_prog_make_${ac_make}_set=yes
1365 else
1366 eval ac_cv_prog_make_${ac_make}_set=no
1368 rm -f conftest.make
1370 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1371 echo "$as_me:$LINENO: result: yes" >&5
1372 echo "${ECHO_T}yes" >&6
1373 SET_MAKE=
1374 else
1375 echo "$as_me:$LINENO: result: no" >&5
1376 echo "${ECHO_T}no" >&6
1377 SET_MAKE="MAKE=${MAKE-make}"
1381 PACKAGE=gamazons
1383 VERSION=0.83
1385 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1386 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1387 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1388 { (exit 1); exit 1; }; }
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE "$PACKAGE"
1393 _ACEOF
1396 cat >>confdefs.h <<_ACEOF
1397 #define VERSION "$VERSION"
1398 _ACEOF
1402 missing_dir=`cd $ac_aux_dir && pwd`
1403 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1404 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1405 # Run test in a subshell; some versions of sh will print an error if
1406 # an executable is not found, even if stderr is redirected.
1407 # Redirect stdin to placate older versions of autoconf. Sigh.
1408 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1409 ACLOCAL=aclocal-${am__api_version}
1410 echo "$as_me:$LINENO: result: found" >&5
1411 echo "${ECHO_T}found" >&6
1412 else
1413 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1414 echo "$as_me:$LINENO: result: missing" >&5
1415 echo "${ECHO_T}missing" >&6
1418 echo "$as_me:$LINENO: checking for working autoconf" >&5
1419 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1420 # Run test in a subshell; some versions of sh will print an error if
1421 # an executable is not found, even if stderr is redirected.
1422 # Redirect stdin to placate older versions of autoconf. Sigh.
1423 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1424 AUTOCONF=autoconf
1425 echo "$as_me:$LINENO: result: found" >&5
1426 echo "${ECHO_T}found" >&6
1427 else
1428 AUTOCONF="$missing_dir/missing autoconf"
1429 echo "$as_me:$LINENO: result: missing" >&5
1430 echo "${ECHO_T}missing" >&6
1433 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1434 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1435 # Run test in a subshell; some versions of sh will print an error if
1436 # an executable is not found, even if stderr is redirected.
1437 # Redirect stdin to placate older versions of autoconf. Sigh.
1438 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1439 AUTOMAKE=automake-${am__api_version}
1440 echo "$as_me:$LINENO: result: found" >&5
1441 echo "${ECHO_T}found" >&6
1442 else
1443 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1444 echo "$as_me:$LINENO: result: missing" >&5
1445 echo "${ECHO_T}missing" >&6
1448 echo "$as_me:$LINENO: checking for working autoheader" >&5
1449 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1450 # Run test in a subshell; some versions of sh will print an error if
1451 # an executable is not found, even if stderr is redirected.
1452 # Redirect stdin to placate older versions of autoconf. Sigh.
1453 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1454 AUTOHEADER=autoheader
1455 echo "$as_me:$LINENO: result: found" >&5
1456 echo "${ECHO_T}found" >&6
1457 else
1458 AUTOHEADER="$missing_dir/missing autoheader"
1459 echo "$as_me:$LINENO: result: missing" >&5
1460 echo "${ECHO_T}missing" >&6
1463 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1464 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1465 # Run test in a subshell; some versions of sh will print an error if
1466 # an executable is not found, even if stderr is redirected.
1467 # Redirect stdin to placate older versions of autoconf. Sigh.
1468 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1469 MAKEINFO=makeinfo
1470 echo "$as_me:$LINENO: result: found" >&5
1471 echo "${ECHO_T}found" >&6
1472 else
1473 MAKEINFO="$missing_dir/missing makeinfo"
1474 echo "$as_me:$LINENO: result: missing" >&5
1475 echo "${ECHO_T}missing" >&6
1479 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1480 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1481 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1482 if test "${enable_maintainer_mode+set}" = set; then
1483 enableval="$enable_maintainer_mode"
1484 USE_MAINTAINER_MODE=$enableval
1485 else
1486 USE_MAINTAINER_MODE=no
1488 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1489 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1492 if test $USE_MAINTAINER_MODE = yes; then
1493 MAINTAINER_MODE_TRUE=
1494 MAINTAINER_MODE_FALSE='#'
1495 else
1496 MAINTAINER_MODE_TRUE='#'
1497 MAINTAINER_MODE_FALSE=
1499 MAINT=$MAINTAINER_MODE_TRUE
1503 ac_config_headers="$ac_config_headers config.h"
1505 ac_config_commands="$ac_config_commands default-1"
1508 ac_ext=c
1509 ac_cpp='$CPP $CPPFLAGS'
1510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1513 if test -n "$ac_tool_prefix"; then
1514 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1515 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1516 echo "$as_me:$LINENO: checking for $ac_word" >&5
1517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1518 if test "${ac_cv_prog_CC+set}" = set; then
1519 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 else
1521 if test -n "$CC"; then
1522 ac_cv_prog_CC="$CC" # Let the user override the test.
1523 else
1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 for as_dir in $PATH
1527 IFS=$as_save_IFS
1528 test -z "$as_dir" && as_dir=.
1529 for ac_exec_ext in '' $ac_executable_extensions; do
1530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1531 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1533 break 2
1535 done
1536 done
1540 CC=$ac_cv_prog_CC
1541 if test -n "$CC"; then
1542 echo "$as_me:$LINENO: result: $CC" >&5
1543 echo "${ECHO_T}$CC" >&6
1544 else
1545 echo "$as_me:$LINENO: result: no" >&5
1546 echo "${ECHO_T}no" >&6
1550 if test -z "$ac_cv_prog_CC"; then
1551 ac_ct_CC=$CC
1552 # Extract the first word of "gcc", so it can be a program name with args.
1553 set dummy gcc; ac_word=$2
1554 echo "$as_me:$LINENO: checking for $ac_word" >&5
1555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1556 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 else
1559 if test -n "$ac_ct_CC"; then
1560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1561 else
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563 for as_dir in $PATH
1565 IFS=$as_save_IFS
1566 test -z "$as_dir" && as_dir=.
1567 for ac_exec_ext in '' $ac_executable_extensions; do
1568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1569 ac_cv_prog_ac_ct_CC="gcc"
1570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1571 break 2
1573 done
1574 done
1578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1579 if test -n "$ac_ct_CC"; then
1580 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1581 echo "${ECHO_T}$ac_ct_CC" >&6
1582 else
1583 echo "$as_me:$LINENO: result: no" >&5
1584 echo "${ECHO_T}no" >&6
1587 CC=$ac_ct_CC
1588 else
1589 CC="$ac_cv_prog_CC"
1592 if test -z "$CC"; then
1593 if test -n "$ac_tool_prefix"; then
1594 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1595 set dummy ${ac_tool_prefix}cc; ac_word=$2
1596 echo "$as_me:$LINENO: checking for $ac_word" >&5
1597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1598 if test "${ac_cv_prog_CC+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 else
1601 if test -n "$CC"; then
1602 ac_cv_prog_CC="$CC" # Let the user override the test.
1603 else
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 for as_dir in $PATH
1607 IFS=$as_save_IFS
1608 test -z "$as_dir" && as_dir=.
1609 for ac_exec_ext in '' $ac_executable_extensions; do
1610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1611 ac_cv_prog_CC="${ac_tool_prefix}cc"
1612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1613 break 2
1615 done
1616 done
1620 CC=$ac_cv_prog_CC
1621 if test -n "$CC"; then
1622 echo "$as_me:$LINENO: result: $CC" >&5
1623 echo "${ECHO_T}$CC" >&6
1624 else
1625 echo "$as_me:$LINENO: result: no" >&5
1626 echo "${ECHO_T}no" >&6
1630 if test -z "$ac_cv_prog_CC"; then
1631 ac_ct_CC=$CC
1632 # Extract the first word of "cc", so it can be a program name with args.
1633 set dummy cc; ac_word=$2
1634 echo "$as_me:$LINENO: checking for $ac_word" >&5
1635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 else
1639 if test -n "$ac_ct_CC"; then
1640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1641 else
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643 for as_dir in $PATH
1645 IFS=$as_save_IFS
1646 test -z "$as_dir" && as_dir=.
1647 for ac_exec_ext in '' $ac_executable_extensions; do
1648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649 ac_cv_prog_ac_ct_CC="cc"
1650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1651 break 2
1653 done
1654 done
1658 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1659 if test -n "$ac_ct_CC"; then
1660 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1661 echo "${ECHO_T}$ac_ct_CC" >&6
1662 else
1663 echo "$as_me:$LINENO: result: no" >&5
1664 echo "${ECHO_T}no" >&6
1667 CC=$ac_ct_CC
1668 else
1669 CC="$ac_cv_prog_CC"
1673 if test -z "$CC"; then
1674 # Extract the first word of "cc", so it can be a program name with args.
1675 set dummy cc; ac_word=$2
1676 echo "$as_me:$LINENO: checking for $ac_word" >&5
1677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678 if test "${ac_cv_prog_CC+set}" = set; then
1679 echo $ECHO_N "(cached) $ECHO_C" >&6
1680 else
1681 if test -n "$CC"; then
1682 ac_cv_prog_CC="$CC" # Let the user override the test.
1683 else
1684 ac_prog_rejected=no
1685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686 for as_dir in $PATH
1688 IFS=$as_save_IFS
1689 test -z "$as_dir" && as_dir=.
1690 for ac_exec_ext in '' $ac_executable_extensions; do
1691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1692 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1693 ac_prog_rejected=yes
1694 continue
1696 ac_cv_prog_CC="cc"
1697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1698 break 2
1700 done
1701 done
1703 if test $ac_prog_rejected = yes; then
1704 # We found a bogon in the path, so make sure we never use it.
1705 set dummy $ac_cv_prog_CC
1706 shift
1707 if test $# != 0; then
1708 # We chose a different compiler from the bogus one.
1709 # However, it has the same basename, so the bogon will be chosen
1710 # first if we set CC to just the basename; use the full file name.
1711 shift
1712 set dummy "$as_dir/$ac_word" ${1+"$@"}
1713 shift
1714 ac_cv_prog_CC="$@"
1719 CC=$ac_cv_prog_CC
1720 if test -n "$CC"; then
1721 echo "$as_me:$LINENO: result: $CC" >&5
1722 echo "${ECHO_T}$CC" >&6
1723 else
1724 echo "$as_me:$LINENO: result: no" >&5
1725 echo "${ECHO_T}no" >&6
1729 if test -z "$CC"; then
1730 if test -n "$ac_tool_prefix"; then
1731 for ac_prog in cl
1733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740 if test -n "$CC"; then
1741 ac_cv_prog_CC="$CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1746 IFS=$as_save_IFS
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752 break 2
1754 done
1755 done
1759 CC=$ac_cv_prog_CC
1760 if test -n "$CC"; then
1761 echo "$as_me:$LINENO: result: $CC" >&5
1762 echo "${ECHO_T}$CC" >&6
1763 else
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1768 test -n "$CC" && break
1769 done
1771 if test -z "$CC"; then
1772 ac_ct_CC=$CC
1773 for ac_prog in cl
1775 # Extract the first word of "$ac_prog", so it can be a program name with args.
1776 set dummy $ac_prog; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782 if test -n "$ac_ct_CC"; then
1783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1784 else
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 for as_dir in $PATH
1788 IFS=$as_save_IFS
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 ac_cv_prog_ac_ct_CC="$ac_prog"
1793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794 break 2
1796 done
1797 done
1801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1802 if test -n "$ac_ct_CC"; then
1803 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1804 echo "${ECHO_T}$ac_ct_CC" >&6
1805 else
1806 echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1810 test -n "$ac_ct_CC" && break
1811 done
1813 CC=$ac_ct_CC
1819 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1820 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1821 { (exit 1); exit 1; }; }
1823 # Provide some information about the compiler.
1824 echo "$as_me:$LINENO:" \
1825 "checking for C compiler version" >&5
1826 ac_compiler=`set X $ac_compile; echo $2`
1827 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1828 (eval $ac_compiler --version </dev/null >&5) 2>&5
1829 ac_status=$?
1830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1831 (exit $ac_status); }
1832 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1833 (eval $ac_compiler -v </dev/null >&5) 2>&5
1834 ac_status=$?
1835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1836 (exit $ac_status); }
1837 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1838 (eval $ac_compiler -V </dev/null >&5) 2>&5
1839 ac_status=$?
1840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841 (exit $ac_status); }
1843 cat >conftest.$ac_ext <<_ACEOF
1844 #line $LINENO "configure"
1845 #include "confdefs.h"
1847 #ifdef F77_DUMMY_MAIN
1848 # ifdef __cplusplus
1849 extern "C"
1850 # endif
1851 int F77_DUMMY_MAIN() { return 1; }
1852 #endif
1854 main ()
1858 return 0;
1860 _ACEOF
1861 ac_clean_files_save=$ac_clean_files
1862 ac_clean_files="$ac_clean_files a.out a.exe"
1863 # Try to create an executable without -o first, disregard a.out.
1864 # It will help us diagnose broken compilers, and finding out an intuition
1865 # of exeext.
1866 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1867 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1868 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1869 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1870 (eval $ac_link_default) 2>&5
1871 ac_status=$?
1872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873 (exit $ac_status); }; then
1874 # Find the output, starting from the most likely. This scheme is
1875 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1876 # resort.
1878 # Be careful to initialize this variable, since it used to be cached.
1879 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1880 ac_cv_exeext=
1881 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1882 ls a.out conftest 2>/dev/null;
1883 ls a.* conftest.* 2>/dev/null`; do
1884 case $ac_file in
1885 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1886 a.out ) # We found the default executable, but exeext='' is most
1887 # certainly right.
1888 break;;
1889 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1890 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1891 export ac_cv_exeext
1892 break;;
1893 * ) break;;
1894 esac
1895 done
1896 else
1897 echo "$as_me: failed program was:" >&5
1898 cat conftest.$ac_ext >&5
1899 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1900 echo "$as_me: error: C compiler cannot create executables" >&2;}
1901 { (exit 77); exit 77; }; }
1904 ac_exeext=$ac_cv_exeext
1905 echo "$as_me:$LINENO: result: $ac_file" >&5
1906 echo "${ECHO_T}$ac_file" >&6
1908 # Check the compiler produces executables we can run. If not, either
1909 # the compiler is broken, or we cross compile.
1910 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1911 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1912 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1913 # If not cross compiling, check that we can run a simple program.
1914 if test "$cross_compiling" != yes; then
1915 if { ac_try='./$ac_file'
1916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1917 (eval $ac_try) 2>&5
1918 ac_status=$?
1919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1920 (exit $ac_status); }; }; then
1921 cross_compiling=no
1922 else
1923 if test "$cross_compiling" = maybe; then
1924 cross_compiling=yes
1925 else
1926 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1927 If you meant to cross compile, use \`--host'." >&5
1928 echo "$as_me: error: cannot run C compiled programs.
1929 If you meant to cross compile, use \`--host'." >&2;}
1930 { (exit 1); exit 1; }; }
1934 echo "$as_me:$LINENO: result: yes" >&5
1935 echo "${ECHO_T}yes" >&6
1937 rm -f a.out a.exe conftest$ac_cv_exeext
1938 ac_clean_files=$ac_clean_files_save
1939 # Check the compiler produces executables we can run. If not, either
1940 # the compiler is broken, or we cross compile.
1941 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1942 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1943 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1944 echo "${ECHO_T}$cross_compiling" >&6
1946 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1947 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1949 (eval $ac_link) 2>&5
1950 ac_status=$?
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }; then
1953 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1954 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1955 # work properly (i.e., refer to `conftest.exe'), while it won't with
1956 # `rm'.
1957 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1958 case $ac_file in
1959 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1960 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1961 export ac_cv_exeext
1962 break;;
1963 * ) break;;
1964 esac
1965 done
1966 else
1967 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1968 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1969 { (exit 1); exit 1; }; }
1972 rm -f conftest$ac_cv_exeext
1973 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1974 echo "${ECHO_T}$ac_cv_exeext" >&6
1976 rm -f conftest.$ac_ext
1977 EXEEXT=$ac_cv_exeext
1978 ac_exeext=$EXEEXT
1979 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1980 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1981 if test "${ac_cv_objext+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 else
1984 cat >conftest.$ac_ext <<_ACEOF
1985 #line $LINENO "configure"
1986 #include "confdefs.h"
1988 #ifdef F77_DUMMY_MAIN
1989 # ifdef __cplusplus
1990 extern "C"
1991 # endif
1992 int F77_DUMMY_MAIN() { return 1; }
1993 #endif
1995 main ()
1999 return 0;
2001 _ACEOF
2002 rm -f conftest.o conftest.obj
2003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2004 (eval $ac_compile) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; then
2008 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2009 case $ac_file in
2010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2011 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2012 break;;
2013 esac
2014 done
2015 else
2016 echo "$as_me: failed program was:" >&5
2017 cat conftest.$ac_ext >&5
2018 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2019 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2020 { (exit 1); exit 1; }; }
2023 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2025 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2026 echo "${ECHO_T}$ac_cv_objext" >&6
2027 OBJEXT=$ac_cv_objext
2028 ac_objext=$OBJEXT
2029 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2030 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2031 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034 cat >conftest.$ac_ext <<_ACEOF
2035 #line $LINENO "configure"
2036 #include "confdefs.h"
2038 #ifdef F77_DUMMY_MAIN
2039 # ifdef __cplusplus
2040 extern "C"
2041 # endif
2042 int F77_DUMMY_MAIN() { return 1; }
2043 #endif
2045 main ()
2047 #ifndef __GNUC__
2048 choke me
2049 #endif
2052 return 0;
2054 _ACEOF
2055 rm -f conftest.$ac_objext
2056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2057 (eval $ac_compile) 2>&5
2058 ac_status=$?
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); } &&
2061 { ac_try='test -s conftest.$ac_objext'
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 (eval $ac_try) 2>&5
2064 ac_status=$?
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; }; then
2067 ac_compiler_gnu=yes
2068 else
2069 echo "$as_me: failed program was:" >&5
2070 cat conftest.$ac_ext >&5
2071 ac_compiler_gnu=no
2073 rm -f conftest.$ac_objext conftest.$ac_ext
2074 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2077 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2078 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2079 GCC=`test $ac_compiler_gnu = yes && echo yes`
2080 ac_test_CFLAGS=${CFLAGS+set}
2081 ac_save_CFLAGS=$CFLAGS
2082 CFLAGS="-g"
2083 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2084 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2085 if test "${ac_cv_prog_cc_g+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 else
2088 cat >conftest.$ac_ext <<_ACEOF
2089 #line $LINENO "configure"
2090 #include "confdefs.h"
2092 #ifdef F77_DUMMY_MAIN
2093 # ifdef __cplusplus
2094 extern "C"
2095 # endif
2096 int F77_DUMMY_MAIN() { return 1; }
2097 #endif
2099 main ()
2103 return 0;
2105 _ACEOF
2106 rm -f conftest.$ac_objext
2107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2108 (eval $ac_compile) 2>&5
2109 ac_status=$?
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); } &&
2112 { ac_try='test -s conftest.$ac_objext'
2113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114 (eval $ac_try) 2>&5
2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }; }; then
2118 ac_cv_prog_cc_g=yes
2119 else
2120 echo "$as_me: failed program was:" >&5
2121 cat conftest.$ac_ext >&5
2122 ac_cv_prog_cc_g=no
2124 rm -f conftest.$ac_objext conftest.$ac_ext
2126 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2127 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2128 if test "$ac_test_CFLAGS" = set; then
2129 CFLAGS=$ac_save_CFLAGS
2130 elif test $ac_cv_prog_cc_g = yes; then
2131 if test "$GCC" = yes; then
2132 CFLAGS="-g -O2"
2133 else
2134 CFLAGS="-g"
2136 else
2137 if test "$GCC" = yes; then
2138 CFLAGS="-O2"
2139 else
2140 CFLAGS=
2143 # Some people use a C++ compiler to compile C. Since we use `exit',
2144 # in C++ we need to declare it. In case someone uses the same compiler
2145 # for both compiling C and C++ we need to have the C++ compiler decide
2146 # the declaration of exit, since it's the most demanding environment.
2147 cat >conftest.$ac_ext <<_ACEOF
2148 #ifndef __cplusplus
2149 choke me
2150 #endif
2151 _ACEOF
2152 rm -f conftest.$ac_objext
2153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154 (eval $ac_compile) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); } &&
2158 { ac_try='test -s conftest.$ac_objext'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 (eval $ac_try) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; }; then
2164 for ac_declaration in \
2166 '#include <stdlib.h>' \
2167 'extern "C" void std::exit (int) throw (); using std::exit;' \
2168 'extern "C" void std::exit (int); using std::exit;' \
2169 'extern "C" void exit (int) throw ();' \
2170 'extern "C" void exit (int);' \
2171 'void exit (int);'
2173 cat >conftest.$ac_ext <<_ACEOF
2174 #line $LINENO "configure"
2175 #include "confdefs.h"
2176 #include <stdlib.h>
2177 $ac_declaration
2178 #ifdef F77_DUMMY_MAIN
2179 # ifdef __cplusplus
2180 extern "C"
2181 # endif
2182 int F77_DUMMY_MAIN() { return 1; }
2183 #endif
2185 main ()
2187 exit (42);
2189 return 0;
2191 _ACEOF
2192 rm -f conftest.$ac_objext
2193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194 (eval $ac_compile) 2>&5
2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); } &&
2198 { ac_try='test -s conftest.$ac_objext'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200 (eval $ac_try) 2>&5
2201 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; }; then
2205 else
2206 echo "$as_me: failed program was:" >&5
2207 cat conftest.$ac_ext >&5
2208 continue
2210 rm -f conftest.$ac_objext conftest.$ac_ext
2211 cat >conftest.$ac_ext <<_ACEOF
2212 #line $LINENO "configure"
2213 #include "confdefs.h"
2214 $ac_declaration
2215 #ifdef F77_DUMMY_MAIN
2216 # ifdef __cplusplus
2217 extern "C"
2218 # endif
2219 int F77_DUMMY_MAIN() { return 1; }
2220 #endif
2222 main ()
2224 exit (42);
2226 return 0;
2228 _ACEOF
2229 rm -f conftest.$ac_objext
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); } &&
2235 { ac_try='test -s conftest.$ac_objext'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2241 break
2242 else
2243 echo "$as_me: failed program was:" >&5
2244 cat conftest.$ac_ext >&5
2246 rm -f conftest.$ac_objext conftest.$ac_ext
2247 done
2248 rm -f conftest*
2249 if test -n "$ac_declaration"; then
2250 echo '#ifdef __cplusplus' >>confdefs.h
2251 echo $ac_declaration >>confdefs.h
2252 echo '#endif' >>confdefs.h
2255 else
2256 echo "$as_me: failed program was:" >&5
2257 cat conftest.$ac_ext >&5
2259 rm -f conftest.$ac_objext conftest.$ac_ext
2260 ac_ext=c
2261 ac_cpp='$CPP $CPPFLAGS'
2262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2268 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2269 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2270 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273 ac_check_lib_save_LIBS=$LIBS
2274 LIBS="-lcposix $LIBS"
2275 cat >conftest.$ac_ext <<_ACEOF
2276 #line $LINENO "configure"
2277 #include "confdefs.h"
2279 /* Override any gcc2 internal prototype to avoid an error. */
2280 #ifdef __cplusplus
2281 extern "C"
2282 #endif
2283 /* We use char because int might match the return type of a gcc2
2284 builtin and then its argument prototype would still apply. */
2285 char strerror ();
2286 #ifdef F77_DUMMY_MAIN
2287 # ifdef __cplusplus
2288 extern "C"
2289 # endif
2290 int F77_DUMMY_MAIN() { return 1; }
2291 #endif
2293 main ()
2295 strerror ();
2297 return 0;
2299 _ACEOF
2300 rm -f conftest.$ac_objext conftest$ac_exeext
2301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2302 (eval $ac_link) 2>&5
2303 ac_status=$?
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); } &&
2306 { ac_try='test -s conftest$ac_exeext'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 (eval $ac_try) 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; }; then
2312 ac_cv_lib_cposix_strerror=yes
2313 else
2314 echo "$as_me: failed program was:" >&5
2315 cat conftest.$ac_ext >&5
2316 ac_cv_lib_cposix_strerror=no
2318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2319 LIBS=$ac_check_lib_save_LIBS
2321 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2322 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2323 if test $ac_cv_lib_cposix_strerror = yes; then
2324 LIBS="$LIBS -lcposix"
2329 ac_ext=c
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334 if test -n "$ac_tool_prefix"; then
2335 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2336 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2337 echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2339 if test "${ac_cv_prog_CC+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342 if test -n "$CC"; then
2343 ac_cv_prog_CC="$CC" # Let the user override the test.
2344 else
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2352 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 break 2
2356 done
2357 done
2361 CC=$ac_cv_prog_CC
2362 if test -n "$CC"; then
2363 echo "$as_me:$LINENO: result: $CC" >&5
2364 echo "${ECHO_T}$CC" >&6
2365 else
2366 echo "$as_me:$LINENO: result: no" >&5
2367 echo "${ECHO_T}no" >&6
2371 if test -z "$ac_cv_prog_CC"; then
2372 ac_ct_CC=$CC
2373 # Extract the first word of "gcc", so it can be a program name with args.
2374 set dummy gcc; ac_word=$2
2375 echo "$as_me:$LINENO: checking for $ac_word" >&5
2376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2377 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380 if test -n "$ac_ct_CC"; then
2381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2382 else
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2390 ac_cv_prog_ac_ct_CC="gcc"
2391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 break 2
2394 done
2395 done
2399 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2400 if test -n "$ac_ct_CC"; then
2401 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2402 echo "${ECHO_T}$ac_ct_CC" >&6
2403 else
2404 echo "$as_me:$LINENO: result: no" >&5
2405 echo "${ECHO_T}no" >&6
2408 CC=$ac_ct_CC
2409 else
2410 CC="$ac_cv_prog_CC"
2413 if test -z "$CC"; then
2414 if test -n "$ac_tool_prefix"; then
2415 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2416 set dummy ${ac_tool_prefix}cc; ac_word=$2
2417 echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2419 if test "${ac_cv_prog_CC+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422 if test -n "$CC"; then
2423 ac_cv_prog_CC="$CC" # Let the user override the test.
2424 else
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 for as_dir in $PATH
2428 IFS=$as_save_IFS
2429 test -z "$as_dir" && as_dir=.
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2432 ac_cv_prog_CC="${ac_tool_prefix}cc"
2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 break 2
2436 done
2437 done
2441 CC=$ac_cv_prog_CC
2442 if test -n "$CC"; then
2443 echo "$as_me:$LINENO: result: $CC" >&5
2444 echo "${ECHO_T}$CC" >&6
2445 else
2446 echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6
2451 if test -z "$ac_cv_prog_CC"; then
2452 ac_ct_CC=$CC
2453 # Extract the first word of "cc", so it can be a program name with args.
2454 set dummy cc; ac_word=$2
2455 echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460 if test -n "$ac_ct_CC"; then
2461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2470 ac_cv_prog_ac_ct_CC="cc"
2471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 break 2
2474 done
2475 done
2479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2480 if test -n "$ac_ct_CC"; then
2481 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2482 echo "${ECHO_T}$ac_ct_CC" >&6
2483 else
2484 echo "$as_me:$LINENO: result: no" >&5
2485 echo "${ECHO_T}no" >&6
2488 CC=$ac_ct_CC
2489 else
2490 CC="$ac_cv_prog_CC"
2494 if test -z "$CC"; then
2495 # Extract the first word of "cc", so it can be a program name with args.
2496 set dummy cc; ac_word=$2
2497 echo "$as_me:$LINENO: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2499 if test "${ac_cv_prog_CC+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502 if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2504 else
2505 ac_prog_rejected=no
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2513 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2514 ac_prog_rejected=yes
2515 continue
2517 ac_cv_prog_CC="cc"
2518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519 break 2
2521 done
2522 done
2524 if test $ac_prog_rejected = yes; then
2525 # We found a bogon in the path, so make sure we never use it.
2526 set dummy $ac_cv_prog_CC
2527 shift
2528 if test $# != 0; then
2529 # We chose a different compiler from the bogus one.
2530 # However, it has the same basename, so the bogon will be chosen
2531 # first if we set CC to just the basename; use the full file name.
2532 shift
2533 set dummy "$as_dir/$ac_word" ${1+"$@"}
2534 shift
2535 ac_cv_prog_CC="$@"
2540 CC=$ac_cv_prog_CC
2541 if test -n "$CC"; then
2542 echo "$as_me:$LINENO: result: $CC" >&5
2543 echo "${ECHO_T}$CC" >&6
2544 else
2545 echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6
2550 if test -z "$CC"; then
2551 if test -n "$ac_tool_prefix"; then
2552 for ac_prog in cl
2554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2556 echo "$as_me:$LINENO: checking for $ac_word" >&5
2557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2558 if test "${ac_cv_prog_CC+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2560 else
2561 if test -n "$CC"; then
2562 ac_cv_prog_CC="$CC" # Let the user override the test.
2563 else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2571 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 break 2
2575 done
2576 done
2580 CC=$ac_cv_prog_CC
2581 if test -n "$CC"; then
2582 echo "$as_me:$LINENO: result: $CC" >&5
2583 echo "${ECHO_T}$CC" >&6
2584 else
2585 echo "$as_me:$LINENO: result: no" >&5
2586 echo "${ECHO_T}no" >&6
2589 test -n "$CC" && break
2590 done
2592 if test -z "$CC"; then
2593 ac_ct_CC=$CC
2594 for ac_prog in cl
2596 # Extract the first word of "$ac_prog", so it can be a program name with args.
2597 set dummy $ac_prog; ac_word=$2
2598 echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603 if test -n "$ac_ct_CC"; then
2604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2613 ac_cv_prog_ac_ct_CC="$ac_prog"
2614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 break 2
2617 done
2618 done
2622 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2623 if test -n "$ac_ct_CC"; then
2624 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2625 echo "${ECHO_T}$ac_ct_CC" >&6
2626 else
2627 echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6
2631 test -n "$ac_ct_CC" && break
2632 done
2634 CC=$ac_ct_CC
2640 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2641 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2642 { (exit 1); exit 1; }; }
2644 # Provide some information about the compiler.
2645 echo "$as_me:$LINENO:" \
2646 "checking for C compiler version" >&5
2647 ac_compiler=`set X $ac_compile; echo $2`
2648 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2649 (eval $ac_compiler --version </dev/null >&5) 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }
2653 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2654 (eval $ac_compiler -v </dev/null >&5) 2>&5
2655 ac_status=$?
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }
2658 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2659 (eval $ac_compiler -V </dev/null >&5) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }
2664 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2665 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2666 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 else
2669 cat >conftest.$ac_ext <<_ACEOF
2670 #line $LINENO "configure"
2671 #include "confdefs.h"
2673 #ifdef F77_DUMMY_MAIN
2674 # ifdef __cplusplus
2675 extern "C"
2676 # endif
2677 int F77_DUMMY_MAIN() { return 1; }
2678 #endif
2680 main ()
2682 #ifndef __GNUC__
2683 choke me
2684 #endif
2687 return 0;
2689 _ACEOF
2690 rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692 (eval $ac_compile) 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); } &&
2696 { ac_try='test -s conftest.$ac_objext'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 (eval $ac_try) 2>&5
2699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; }; then
2702 ac_compiler_gnu=yes
2703 else
2704 echo "$as_me: failed program was:" >&5
2705 cat conftest.$ac_ext >&5
2706 ac_compiler_gnu=no
2708 rm -f conftest.$ac_objext conftest.$ac_ext
2709 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2712 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2713 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2714 GCC=`test $ac_compiler_gnu = yes && echo yes`
2715 ac_test_CFLAGS=${CFLAGS+set}
2716 ac_save_CFLAGS=$CFLAGS
2717 CFLAGS="-g"
2718 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2719 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2720 if test "${ac_cv_prog_cc_g+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723 cat >conftest.$ac_ext <<_ACEOF
2724 #line $LINENO "configure"
2725 #include "confdefs.h"
2727 #ifdef F77_DUMMY_MAIN
2728 # ifdef __cplusplus
2729 extern "C"
2730 # endif
2731 int F77_DUMMY_MAIN() { return 1; }
2732 #endif
2734 main ()
2738 return 0;
2740 _ACEOF
2741 rm -f conftest.$ac_objext
2742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2743 (eval $ac_compile) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
2747 { ac_try='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 (eval $ac_try) 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2753 ac_cv_prog_cc_g=yes
2754 else
2755 echo "$as_me: failed program was:" >&5
2756 cat conftest.$ac_ext >&5
2757 ac_cv_prog_cc_g=no
2759 rm -f conftest.$ac_objext conftest.$ac_ext
2761 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2762 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2763 if test "$ac_test_CFLAGS" = set; then
2764 CFLAGS=$ac_save_CFLAGS
2765 elif test $ac_cv_prog_cc_g = yes; then
2766 if test "$GCC" = yes; then
2767 CFLAGS="-g -O2"
2768 else
2769 CFLAGS="-g"
2771 else
2772 if test "$GCC" = yes; then
2773 CFLAGS="-O2"
2774 else
2775 CFLAGS=
2778 # Some people use a C++ compiler to compile C. Since we use `exit',
2779 # in C++ we need to declare it. In case someone uses the same compiler
2780 # for both compiling C and C++ we need to have the C++ compiler decide
2781 # the declaration of exit, since it's the most demanding environment.
2782 cat >conftest.$ac_ext <<_ACEOF
2783 #ifndef __cplusplus
2784 choke me
2785 #endif
2786 _ACEOF
2787 rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789 (eval $ac_compile) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 (eval $ac_try) 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2799 for ac_declaration in \
2801 '#include <stdlib.h>' \
2802 'extern "C" void std::exit (int) throw (); using std::exit;' \
2803 'extern "C" void std::exit (int); using std::exit;' \
2804 'extern "C" void exit (int) throw ();' \
2805 'extern "C" void exit (int);' \
2806 'void exit (int);'
2808 cat >conftest.$ac_ext <<_ACEOF
2809 #line $LINENO "configure"
2810 #include "confdefs.h"
2811 #include <stdlib.h>
2812 $ac_declaration
2813 #ifdef F77_DUMMY_MAIN
2814 # ifdef __cplusplus
2815 extern "C"
2816 # endif
2817 int F77_DUMMY_MAIN() { return 1; }
2818 #endif
2820 main ()
2822 exit (42);
2824 return 0;
2826 _ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829 (eval $ac_compile) 2>&5
2830 ac_status=$?
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try='test -s conftest.$ac_objext'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 (eval $ac_try) 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; }; then
2840 else
2841 echo "$as_me: failed program was:" >&5
2842 cat conftest.$ac_ext >&5
2843 continue
2845 rm -f conftest.$ac_objext conftest.$ac_ext
2846 cat >conftest.$ac_ext <<_ACEOF
2847 #line $LINENO "configure"
2848 #include "confdefs.h"
2849 $ac_declaration
2850 #ifdef F77_DUMMY_MAIN
2851 # ifdef __cplusplus
2852 extern "C"
2853 # endif
2854 int F77_DUMMY_MAIN() { return 1; }
2855 #endif
2857 main ()
2859 exit (42);
2861 return 0;
2863 _ACEOF
2864 rm -f conftest.$ac_objext
2865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2866 (eval $ac_compile) 2>&5
2867 ac_status=$?
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try='test -s conftest.$ac_objext'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; }; then
2876 break
2877 else
2878 echo "$as_me: failed program was:" >&5
2879 cat conftest.$ac_ext >&5
2881 rm -f conftest.$ac_objext conftest.$ac_ext
2882 done
2883 rm -f conftest*
2884 if test -n "$ac_declaration"; then
2885 echo '#ifdef __cplusplus' >>confdefs.h
2886 echo $ac_declaration >>confdefs.h
2887 echo '#endif' >>confdefs.h
2890 else
2891 echo "$as_me: failed program was:" >&5
2892 cat conftest.$ac_ext >&5
2894 rm -f conftest.$ac_objext conftest.$ac_ext
2895 ac_ext=c
2896 ac_cpp='$CPP $CPPFLAGS'
2897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2904 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2905 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2906 if test "${am_cv_prog_cc_stdc+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909 am_cv_prog_cc_stdc=no
2910 ac_save_CC="$CC"
2911 # Don't try gcc -ansi; that turns off useful extensions and
2912 # breaks some systems' header files.
2913 # AIX -qlanglvl=ansi
2914 # Ultrix and OSF/1 -std1
2915 # HP-UX -Aa -D_HPUX_SOURCE
2916 # SVR4 -Xc -D__EXTENSIONS__
2917 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2919 CC="$ac_save_CC $ac_arg"
2920 cat >conftest.$ac_ext <<_ACEOF
2921 #line $LINENO "configure"
2922 #include "confdefs.h"
2923 #include <stdarg.h>
2924 #include <stdio.h>
2925 #include <sys/types.h>
2926 #include <sys/stat.h>
2927 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2928 struct buf { int x; };
2929 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2930 static char *e (p, i)
2931 char **p;
2932 int i;
2934 return p[i];
2936 static char *f (char * (*g) (char **, int), char **p, ...)
2938 char *s;
2939 va_list v;
2940 va_start (v,p);
2941 s = g (p, va_arg (v,int));
2942 va_end (v);
2943 return s;
2945 int test (int i, double x);
2946 struct s1 {int (*f) (int a);};
2947 struct s2 {int (*f) (double a);};
2948 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2949 int argc;
2950 char **argv;
2952 #ifdef F77_DUMMY_MAIN
2953 # ifdef __cplusplus
2954 extern "C"
2955 # endif
2956 int F77_DUMMY_MAIN() { return 1; }
2957 #endif
2959 main ()
2962 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2965 return 0;
2967 _ACEOF
2968 rm -f conftest.$ac_objext
2969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2970 (eval $ac_compile) 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } &&
2974 { ac_try='test -s conftest.$ac_objext'
2975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976 (eval $ac_try) 2>&5
2977 ac_status=$?
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2980 am_cv_prog_cc_stdc="$ac_arg"; break
2981 else
2982 echo "$as_me: failed program was:" >&5
2983 cat conftest.$ac_ext >&5
2985 rm -f conftest.$ac_objext conftest.$ac_ext
2986 done
2987 CC="$ac_save_CC"
2991 if test -z "$am_cv_prog_cc_stdc"; then
2992 echo "$as_me:$LINENO: result: none needed" >&5
2993 echo "${ECHO_T}none needed" >&6
2994 else
2995 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2996 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2998 case "x$am_cv_prog_cc_stdc" in
2999 x|xno) ;;
3000 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3001 esac
3003 ac_ext=c
3004 ac_cpp='$CPP $CPPFLAGS'
3005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3009 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3010 # On Suns, sometimes $CPP names a directory.
3011 if test -n "$CPP" && test -d "$CPP"; then
3012 CPP=
3014 if test -z "$CPP"; then
3015 if test "${ac_cv_prog_CPP+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
3018 # Double quotes because CPP needs to be expanded
3019 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3021 ac_preproc_ok=false
3022 for ac_c_preproc_warn_flag in '' yes
3024 # Use a header file that comes with gcc, so configuring glibc
3025 # with a fresh cross-compiler works.
3026 # On the NeXT, cc -E runs the code through the compiler's parser,
3027 # not just through cpp. "Syntax error" is here to catch this case.
3028 cat >conftest.$ac_ext <<_ACEOF
3029 #line $LINENO "configure"
3030 #include "confdefs.h"
3031 #include <assert.h>
3032 Syntax error
3033 _ACEOF
3034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3036 ac_status=$?
3037 egrep -v '^ *\+' conftest.er1 >conftest.err
3038 rm -f conftest.er1
3039 cat conftest.err >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } >/dev/null; then
3042 if test -s conftest.err; then
3043 ac_cpp_err=$ac_c_preproc_warn_flag
3044 else
3045 ac_cpp_err=
3047 else
3048 ac_cpp_err=yes
3050 if test -z "$ac_cpp_err"; then
3052 else
3053 echo "$as_me: failed program was:" >&5
3054 cat conftest.$ac_ext >&5
3055 # Broken: fails on valid input.
3056 continue
3058 rm -f conftest.err conftest.$ac_ext
3060 # OK, works on sane cases. Now check whether non-existent headers
3061 # can be detected and how.
3062 cat >conftest.$ac_ext <<_ACEOF
3063 #line $LINENO "configure"
3064 #include "confdefs.h"
3065 #include <ac_nonexistent.h>
3066 _ACEOF
3067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3069 ac_status=$?
3070 egrep -v '^ *\+' conftest.er1 >conftest.err
3071 rm -f conftest.er1
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } >/dev/null; then
3075 if test -s conftest.err; then
3076 ac_cpp_err=$ac_c_preproc_warn_flag
3077 else
3078 ac_cpp_err=
3080 else
3081 ac_cpp_err=yes
3083 if test -z "$ac_cpp_err"; then
3084 # Broken: success on invalid input.
3085 continue
3086 else
3087 echo "$as_me: failed program was:" >&5
3088 cat conftest.$ac_ext >&5
3089 # Passes both tests.
3090 ac_preproc_ok=:
3091 break
3093 rm -f conftest.err conftest.$ac_ext
3095 done
3096 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3097 rm -f conftest.err conftest.$ac_ext
3098 if $ac_preproc_ok; then
3099 break
3102 done
3103 ac_cv_prog_CPP=$CPP
3106 CPP=$ac_cv_prog_CPP
3107 else
3108 ac_cv_prog_CPP=$CPP
3110 echo "$as_me:$LINENO: result: $CPP" >&5
3111 echo "${ECHO_T}$CPP" >&6
3112 ac_preproc_ok=false
3113 for ac_c_preproc_warn_flag in '' yes
3115 # Use a header file that comes with gcc, so configuring glibc
3116 # with a fresh cross-compiler works.
3117 # On the NeXT, cc -E runs the code through the compiler's parser,
3118 # not just through cpp. "Syntax error" is here to catch this case.
3119 cat >conftest.$ac_ext <<_ACEOF
3120 #line $LINENO "configure"
3121 #include "confdefs.h"
3122 #include <assert.h>
3123 Syntax error
3124 _ACEOF
3125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3127 ac_status=$?
3128 egrep -v '^ *\+' conftest.er1 >conftest.err
3129 rm -f conftest.er1
3130 cat conftest.err >&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); } >/dev/null; then
3133 if test -s conftest.err; then
3134 ac_cpp_err=$ac_c_preproc_warn_flag
3135 else
3136 ac_cpp_err=
3138 else
3139 ac_cpp_err=yes
3141 if test -z "$ac_cpp_err"; then
3143 else
3144 echo "$as_me: failed program was:" >&5
3145 cat conftest.$ac_ext >&5
3146 # Broken: fails on valid input.
3147 continue
3149 rm -f conftest.err conftest.$ac_ext
3151 # OK, works on sane cases. Now check whether non-existent headers
3152 # can be detected and how.
3153 cat >conftest.$ac_ext <<_ACEOF
3154 #line $LINENO "configure"
3155 #include "confdefs.h"
3156 #include <ac_nonexistent.h>
3157 _ACEOF
3158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3160 ac_status=$?
3161 egrep -v '^ *\+' conftest.er1 >conftest.err
3162 rm -f conftest.er1
3163 cat conftest.err >&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); } >/dev/null; then
3166 if test -s conftest.err; then
3167 ac_cpp_err=$ac_c_preproc_warn_flag
3168 else
3169 ac_cpp_err=
3171 else
3172 ac_cpp_err=yes
3174 if test -z "$ac_cpp_err"; then
3175 # Broken: success on invalid input.
3176 continue
3177 else
3178 echo "$as_me: failed program was:" >&5
3179 cat conftest.$ac_ext >&5
3180 # Passes both tests.
3181 ac_preproc_ok=:
3182 break
3184 rm -f conftest.err conftest.$ac_ext
3186 done
3187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3188 rm -f conftest.err conftest.$ac_ext
3189 if $ac_preproc_ok; then
3191 else
3192 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3193 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3194 { (exit 1); exit 1; }; }
3197 ac_ext=c
3198 ac_cpp='$CPP $CPPFLAGS'
3199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3204 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3205 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3206 if test "${ac_cv_header_stdc+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209 cat >conftest.$ac_ext <<_ACEOF
3210 #line $LINENO "configure"
3211 #include "confdefs.h"
3212 #include <stdlib.h>
3213 #include <stdarg.h>
3214 #include <string.h>
3215 #include <float.h>
3217 _ACEOF
3218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3220 ac_status=$?
3221 egrep -v '^ *\+' conftest.er1 >conftest.err
3222 rm -f conftest.er1
3223 cat conftest.err >&5
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); } >/dev/null; then
3226 if test -s conftest.err; then
3227 ac_cpp_err=$ac_c_preproc_warn_flag
3228 else
3229 ac_cpp_err=
3231 else
3232 ac_cpp_err=yes
3234 if test -z "$ac_cpp_err"; then
3235 ac_cv_header_stdc=yes
3236 else
3237 echo "$as_me: failed program was:" >&5
3238 cat conftest.$ac_ext >&5
3239 ac_cv_header_stdc=no
3241 rm -f conftest.err conftest.$ac_ext
3243 if test $ac_cv_header_stdc = yes; then
3244 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3245 cat >conftest.$ac_ext <<_ACEOF
3246 #line $LINENO "configure"
3247 #include "confdefs.h"
3248 #include <string.h>
3250 _ACEOF
3251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3252 egrep "memchr" >/dev/null 2>&1; then
3254 else
3255 ac_cv_header_stdc=no
3257 rm -f conftest*
3261 if test $ac_cv_header_stdc = yes; then
3262 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3263 cat >conftest.$ac_ext <<_ACEOF
3264 #line $LINENO "configure"
3265 #include "confdefs.h"
3266 #include <stdlib.h>
3268 _ACEOF
3269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3270 egrep "free" >/dev/null 2>&1; then
3272 else
3273 ac_cv_header_stdc=no
3275 rm -f conftest*
3279 if test $ac_cv_header_stdc = yes; then
3280 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3281 if test "$cross_compiling" = yes; then
3283 else
3284 cat >conftest.$ac_ext <<_ACEOF
3285 #line $LINENO "configure"
3286 #include "confdefs.h"
3287 #include <ctype.h>
3288 #if ((' ' & 0x0FF) == 0x020)
3289 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3290 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3291 #else
3292 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3293 || ('j' <= (c) && (c) <= 'r') \
3294 || ('s' <= (c) && (c) <= 'z'))
3295 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3296 #endif
3298 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3300 main ()
3302 int i;
3303 for (i = 0; i < 256; i++)
3304 if (XOR (islower (i), ISLOWER (i))
3305 || toupper (i) != TOUPPER (i))
3306 exit(2);
3307 exit (0);
3309 _ACEOF
3310 rm -f conftest$ac_exeext
3311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3312 (eval $ac_link) 2>&5
3313 ac_status=$?
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317 (eval $ac_try) 2>&5
3318 ac_status=$?
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; }; then
3322 else
3323 echo "$as_me: program exited with status $ac_status" >&5
3324 echo "$as_me: failed program was:" >&5
3325 cat conftest.$ac_ext >&5
3326 ( exit $ac_status )
3327 ac_cv_header_stdc=no
3329 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3333 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3334 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3335 if test $ac_cv_header_stdc = yes; then
3337 cat >>confdefs.h <<\_ACEOF
3338 #define STDC_HEADERS 1
3339 _ACEOF
3344 GNOME_COMPILE_WARNINGS
3346 pkg_modules="libgnomeui-2.0"
3348 succeeded=no
3350 if test -z "$PKG_CONFIG"; then
3351 # Extract the first word of "pkg-config", so it can be a program name with args.
3352 set dummy pkg-config; ac_word=$2
3353 echo "$as_me:$LINENO: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358 case $PKG_CONFIG in
3359 [\\/]* | ?:[\\/]*)
3360 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 break 2
3374 done
3375 done
3377 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
3379 esac
3381 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3383 if test -n "$PKG_CONFIG"; then
3384 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3385 echo "${ECHO_T}$PKG_CONFIG" >&6
3386 else
3387 echo "$as_me:$LINENO: result: no" >&5
3388 echo "${ECHO_T}no" >&6
3393 if test "$PKG_CONFIG" = "no" ; then
3394 echo "*** The pkg-config script could not be found. Make sure it is"
3395 echo "*** in your path, or set the PKG_CONFIG environment variable"
3396 echo "*** to the full path to pkg-config."
3397 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
3398 else
3399 PKG_CONFIG_MIN_VERSION=0.9.0
3400 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
3401 echo "$as_me:$LINENO: checking for $pkg_modules" >&5
3402 echo $ECHO_N "checking for $pkg_modules... $ECHO_C" >&6
3404 if $PKG_CONFIG --exists "$pkg_modules" ; then
3405 echo "$as_me:$LINENO: result: yes" >&5
3406 echo "${ECHO_T}yes" >&6
3407 succeeded=yes
3409 echo "$as_me:$LINENO: checking PACKAGE_CFLAGS" >&5
3410 echo $ECHO_N "checking PACKAGE_CFLAGS... $ECHO_C" >&6
3411 PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules"`
3412 echo "$as_me:$LINENO: result: $PACKAGE_CFLAGS" >&5
3413 echo "${ECHO_T}$PACKAGE_CFLAGS" >&6
3415 echo "$as_me:$LINENO: checking PACKAGE_LIBS" >&5
3416 echo $ECHO_N "checking PACKAGE_LIBS... $ECHO_C" >&6
3417 PACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_modules"`
3418 echo "$as_me:$LINENO: result: $PACKAGE_LIBS" >&5
3419 echo "${ECHO_T}$PACKAGE_LIBS" >&6
3420 else
3421 PACKAGE_CFLAGS=""
3422 PACKAGE_LIBS=""
3423 ## If we have a custom action on failure, don't print errors, but
3424 ## do set a variable so people can do so.
3425 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_modules"`
3426 echo $PACKAGE_PKG_ERRORS
3431 else
3432 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
3433 echo "*** See http://www.freedesktop.org/software/pkgconfig"
3437 if test $succeeded = yes; then
3439 else
3440 { { echo "$as_me:$LINENO: error: Library requirements ($pkg_modules) 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
3441 echo "$as_me: error: Library requirements ($pkg_modules) 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;}
3442 { (exit 1); exit 1; }; }
3448 GETTEXT_PACKAGE=gamazons
3450 cat >>confdefs.h <<_ACEOF
3451 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
3452 _ACEOF
3455 ALL_LINGUAS=""
3456 if test -n "$ac_tool_prefix"; then
3457 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3458 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3459 echo "$as_me:$LINENO: checking for $ac_word" >&5
3460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3461 if test "${ac_cv_prog_RANLIB+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464 if test -n "$RANLIB"; then
3465 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3466 else
3467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468 for as_dir in $PATH
3470 IFS=$as_save_IFS
3471 test -z "$as_dir" && as_dir=.
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3476 break 2
3478 done
3479 done
3483 RANLIB=$ac_cv_prog_RANLIB
3484 if test -n "$RANLIB"; then
3485 echo "$as_me:$LINENO: result: $RANLIB" >&5
3486 echo "${ECHO_T}$RANLIB" >&6
3487 else
3488 echo "$as_me:$LINENO: result: no" >&5
3489 echo "${ECHO_T}no" >&6
3493 if test -z "$ac_cv_prog_RANLIB"; then
3494 ac_ct_RANLIB=$RANLIB
3495 # Extract the first word of "ranlib", so it can be a program name with args.
3496 set dummy ranlib; ac_word=$2
3497 echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3499 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502 if test -n "$ac_ct_RANLIB"; then
3503 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_ac_ct_RANLIB="ranlib"
3513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3516 done
3517 done
3519 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3522 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3523 if test -n "$ac_ct_RANLIB"; then
3524 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3525 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3526 else
3527 echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6
3531 RANLIB=$ac_ct_RANLIB
3532 else
3533 RANLIB="$ac_cv_prog_RANLIB"
3536 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3537 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3538 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541 ac_cv_prog_cc_stdc=no
3542 ac_save_CC=$CC
3543 cat >conftest.$ac_ext <<_ACEOF
3544 #line $LINENO "configure"
3545 #include "confdefs.h"
3546 #include <stdarg.h>
3547 #include <stdio.h>
3548 #include <sys/types.h>
3549 #include <sys/stat.h>
3550 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3551 struct buf { int x; };
3552 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3553 static char *e (p, i)
3554 char **p;
3555 int i;
3557 return p[i];
3559 static char *f (char * (*g) (char **, int), char **p, ...)
3561 char *s;
3562 va_list v;
3563 va_start (v,p);
3564 s = g (p, va_arg (v,int));
3565 va_end (v);
3566 return s;
3568 int test (int i, double x);
3569 struct s1 {int (*f) (int a);};
3570 struct s2 {int (*f) (double a);};
3571 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3572 int argc;
3573 char **argv;
3574 #ifdef F77_DUMMY_MAIN
3575 # ifdef __cplusplus
3576 extern "C"
3577 # endif
3578 int F77_DUMMY_MAIN() { return 1; }
3579 #endif
3581 main ()
3583 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3585 return 0;
3587 _ACEOF
3588 # Don't try gcc -ansi; that turns off useful extensions and
3589 # breaks some systems' header files.
3590 # AIX -qlanglvl=ansi
3591 # Ultrix and OSF/1 -std1
3592 # HP-UX 10.20 and later -Ae
3593 # HP-UX older versions -Aa -D_HPUX_SOURCE
3594 # SVR4 -Xc -D__EXTENSIONS__
3595 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3597 CC="$ac_save_CC $ac_arg"
3598 rm -f conftest.$ac_objext
3599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3600 (eval $ac_compile) 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } &&
3604 { ac_try='test -s conftest.$ac_objext'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 (eval $ac_try) 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; }; then
3610 ac_cv_prog_cc_stdc=$ac_arg
3611 break
3612 else
3613 echo "$as_me: failed program was:" >&5
3614 cat conftest.$ac_ext >&5
3616 rm -f conftest.$ac_objext
3617 done
3618 rm -f conftest.$ac_ext conftest.$ac_objext
3619 CC=$ac_save_CC
3623 case "x$ac_cv_prog_cc_stdc" in
3624 x|xno)
3625 echo "$as_me:$LINENO: result: none needed" >&5
3626 echo "${ECHO_T}none needed" >&6 ;;
3628 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3629 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3630 CC="$CC $ac_cv_prog_cc_stdc" ;;
3631 esac
3633 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3634 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3635 if test "${ac_cv_c_const+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 else
3638 cat >conftest.$ac_ext <<_ACEOF
3639 #line $LINENO "configure"
3640 #include "confdefs.h"
3642 #ifdef F77_DUMMY_MAIN
3643 # ifdef __cplusplus
3644 extern "C"
3645 # endif
3646 int F77_DUMMY_MAIN() { return 1; }
3647 #endif
3649 main ()
3651 /* FIXME: Include the comments suggested by Paul. */
3652 #ifndef __cplusplus
3653 /* Ultrix mips cc rejects this. */
3654 typedef int charset[2];
3655 const charset x;
3656 /* SunOS 4.1.1 cc rejects this. */
3657 char const *const *ccp;
3658 char **p;
3659 /* NEC SVR4.0.2 mips cc rejects this. */
3660 struct point {int x, y;};
3661 static struct point const zero = {0,0};
3662 /* AIX XL C 1.02.0.0 rejects this.
3663 It does not let you subtract one const X* pointer from another in
3664 an arm of an if-expression whose if-part is not a constant
3665 expression */
3666 const char *g = "string";
3667 ccp = &g + (g ? g-g : 0);
3668 /* HPUX 7.0 cc rejects these. */
3669 ++ccp;
3670 p = (char**) ccp;
3671 ccp = (char const *const *) p;
3672 { /* SCO 3.2v4 cc rejects this. */
3673 char *t;
3674 char const *s = 0 ? (char *) 0 : (char const *) 0;
3676 *t++ = 0;
3678 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3679 int x[] = {25, 17};
3680 const int *foo = &x[0];
3681 ++foo;
3683 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3684 typedef const int *iptr;
3685 iptr p = 0;
3686 ++p;
3688 { /* AIX XL C 1.02.0.0 rejects this saying
3689 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3690 struct s { int j; const int *ap[3]; };
3691 struct s *b; b->j = 5;
3693 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3694 const int foo = 10;
3696 #endif
3699 return 0;
3701 _ACEOF
3702 rm -f conftest.$ac_objext
3703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3704 (eval $ac_compile) 2>&5
3705 ac_status=$?
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } &&
3708 { ac_try='test -s conftest.$ac_objext'
3709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710 (eval $ac_try) 2>&5
3711 ac_status=$?
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; }; then
3714 ac_cv_c_const=yes
3715 else
3716 echo "$as_me: failed program was:" >&5
3717 cat conftest.$ac_ext >&5
3718 ac_cv_c_const=no
3720 rm -f conftest.$ac_objext conftest.$ac_ext
3722 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3723 echo "${ECHO_T}$ac_cv_c_const" >&6
3724 if test $ac_cv_c_const = no; then
3726 cat >>confdefs.h <<\_ACEOF
3727 #define const
3728 _ACEOF
3732 echo "$as_me:$LINENO: checking for inline" >&5
3733 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3734 if test "${ac_cv_c_inline+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737 ac_cv_c_inline=no
3738 for ac_kw in inline __inline__ __inline; do
3739 cat >conftest.$ac_ext <<_ACEOF
3740 #line $LINENO "configure"
3741 #include "confdefs.h"
3742 #ifndef __cplusplus
3743 static $ac_kw int static_foo () {return 0; }
3744 $ac_kw int foo () {return 0; }
3745 #endif
3747 _ACEOF
3748 rm -f conftest.$ac_objext
3749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3750 (eval $ac_compile) 2>&5
3751 ac_status=$?
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } &&
3754 { ac_try='test -s conftest.$ac_objext'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756 (eval $ac_try) 2>&5
3757 ac_status=$?
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; }; then
3760 ac_cv_c_inline=$ac_kw; break
3761 else
3762 echo "$as_me: failed program was:" >&5
3763 cat conftest.$ac_ext >&5
3765 rm -f conftest.$ac_objext conftest.$ac_ext
3766 done
3769 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3770 echo "${ECHO_T}$ac_cv_c_inline" >&6
3771 case $ac_cv_c_inline in
3772 inline | yes) ;;
3774 cat >>confdefs.h <<\_ACEOF
3775 #define inline
3776 _ACEOF
3778 *) cat >>confdefs.h <<_ACEOF
3779 #define inline $ac_cv_c_inline
3780 _ACEOF
3782 esac
3784 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3794 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3795 inttypes.h stdint.h unistd.h
3797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3798 echo "$as_me:$LINENO: checking for $ac_header" >&5
3799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803 cat >conftest.$ac_ext <<_ACEOF
3804 #line $LINENO "configure"
3805 #include "confdefs.h"
3806 $ac_includes_default
3808 #include <$ac_header>
3809 _ACEOF
3810 rm -f conftest.$ac_objext
3811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3812 (eval $ac_compile) 2>&5
3813 ac_status=$?
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } &&
3816 { ac_try='test -s conftest.$ac_objext'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 (eval $ac_try) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; }; then
3822 eval "$as_ac_Header=yes"
3823 else
3824 echo "$as_me: failed program was:" >&5
3825 cat conftest.$ac_ext >&5
3826 eval "$as_ac_Header=no"
3828 rm -f conftest.$ac_objext conftest.$ac_ext
3830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3833 cat >>confdefs.h <<_ACEOF
3834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3835 _ACEOF
3839 done
3842 echo "$as_me:$LINENO: checking for off_t" >&5
3843 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3844 if test "${ac_cv_type_off_t+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847 cat >conftest.$ac_ext <<_ACEOF
3848 #line $LINENO "configure"
3849 #include "confdefs.h"
3850 $ac_includes_default
3851 #ifdef F77_DUMMY_MAIN
3852 # ifdef __cplusplus
3853 extern "C"
3854 # endif
3855 int F77_DUMMY_MAIN() { return 1; }
3856 #endif
3858 main ()
3860 if ((off_t *) 0)
3861 return 0;
3862 if (sizeof (off_t))
3863 return 0;
3865 return 0;
3867 _ACEOF
3868 rm -f conftest.$ac_objext
3869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3870 (eval $ac_compile) 2>&5
3871 ac_status=$?
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); } &&
3874 { ac_try='test -s conftest.$ac_objext'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 (eval $ac_try) 2>&5
3877 ac_status=$?
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3880 ac_cv_type_off_t=yes
3881 else
3882 echo "$as_me: failed program was:" >&5
3883 cat conftest.$ac_ext >&5
3884 ac_cv_type_off_t=no
3886 rm -f conftest.$ac_objext conftest.$ac_ext
3888 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3889 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3890 if test $ac_cv_type_off_t = yes; then
3892 else
3894 cat >>confdefs.h <<_ACEOF
3895 #define off_t long
3896 _ACEOF
3900 echo "$as_me:$LINENO: checking for size_t" >&5
3901 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3902 if test "${ac_cv_type_size_t+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905 cat >conftest.$ac_ext <<_ACEOF
3906 #line $LINENO "configure"
3907 #include "confdefs.h"
3908 $ac_includes_default
3909 #ifdef F77_DUMMY_MAIN
3910 # ifdef __cplusplus
3911 extern "C"
3912 # endif
3913 int F77_DUMMY_MAIN() { return 1; }
3914 #endif
3916 main ()
3918 if ((size_t *) 0)
3919 return 0;
3920 if (sizeof (size_t))
3921 return 0;
3923 return 0;
3925 _ACEOF
3926 rm -f conftest.$ac_objext
3927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3928 (eval $ac_compile) 2>&5
3929 ac_status=$?
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } &&
3932 { ac_try='test -s conftest.$ac_objext'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 (eval $ac_try) 2>&5
3935 ac_status=$?
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; }; then
3938 ac_cv_type_size_t=yes
3939 else
3940 echo "$as_me: failed program was:" >&5
3941 cat conftest.$ac_ext >&5
3942 ac_cv_type_size_t=no
3944 rm -f conftest.$ac_objext conftest.$ac_ext
3946 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3947 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3948 if test $ac_cv_type_size_t = yes; then
3950 else
3952 cat >>confdefs.h <<_ACEOF
3953 #define size_t unsigned
3954 _ACEOF
3958 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3959 # for constant arguments. Useless!
3960 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3961 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3962 if test "${ac_cv_working_alloca_h+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965 cat >conftest.$ac_ext <<_ACEOF
3966 #line $LINENO "configure"
3967 #include "confdefs.h"
3968 #include <alloca.h>
3969 #ifdef F77_DUMMY_MAIN
3970 # ifdef __cplusplus
3971 extern "C"
3972 # endif
3973 int F77_DUMMY_MAIN() { return 1; }
3974 #endif
3976 main ()
3978 char *p = (char *) alloca (2 * sizeof (int));
3980 return 0;
3982 _ACEOF
3983 rm -f conftest.$ac_objext conftest$ac_exeext
3984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3985 (eval $ac_link) 2>&5
3986 ac_status=$?
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } &&
3989 { ac_try='test -s conftest$ac_exeext'
3990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 (eval $ac_try) 2>&5
3992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; }; then
3995 ac_cv_working_alloca_h=yes
3996 else
3997 echo "$as_me: failed program was:" >&5
3998 cat conftest.$ac_ext >&5
3999 ac_cv_working_alloca_h=no
4001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4003 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4004 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4005 if test $ac_cv_working_alloca_h = yes; then
4007 cat >>confdefs.h <<\_ACEOF
4008 #define HAVE_ALLOCA_H 1
4009 _ACEOF
4013 echo "$as_me:$LINENO: checking for alloca" >&5
4014 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4015 if test "${ac_cv_func_alloca_works+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018 cat >conftest.$ac_ext <<_ACEOF
4019 #line $LINENO "configure"
4020 #include "confdefs.h"
4021 #ifdef __GNUC__
4022 # define alloca __builtin_alloca
4023 #else
4024 # ifdef _MSC_VER
4025 # include <malloc.h>
4026 # define alloca _alloca
4027 # else
4028 # if HAVE_ALLOCA_H
4029 # include <alloca.h>
4030 # else
4031 # ifdef _AIX
4032 #pragma alloca
4033 # else
4034 # ifndef alloca /* predefined by HP cc +Olibcalls */
4035 char *alloca ();
4036 # endif
4037 # endif
4038 # endif
4039 # endif
4040 #endif
4042 #ifdef F77_DUMMY_MAIN
4043 # ifdef __cplusplus
4044 extern "C"
4045 # endif
4046 int F77_DUMMY_MAIN() { return 1; }
4047 #endif
4049 main ()
4051 char *p = (char *) alloca (1);
4053 return 0;
4055 _ACEOF
4056 rm -f conftest.$ac_objext conftest$ac_exeext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4058 (eval $ac_link) 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); } &&
4062 { ac_try='test -s conftest$ac_exeext'
4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 (eval $ac_try) 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; }; then
4068 ac_cv_func_alloca_works=yes
4069 else
4070 echo "$as_me: failed program was:" >&5
4071 cat conftest.$ac_ext >&5
4072 ac_cv_func_alloca_works=no
4074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4076 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4077 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4079 if test $ac_cv_func_alloca_works = yes; then
4081 cat >>confdefs.h <<\_ACEOF
4082 #define HAVE_ALLOCA 1
4083 _ACEOF
4085 else
4086 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4087 # that cause trouble. Some versions do not even contain alloca or
4088 # contain a buggy version. If you still want to use their alloca,
4089 # use ar to extract alloca.o from them instead of compiling alloca.c.
4091 ALLOCA=alloca.$ac_objext
4093 cat >>confdefs.h <<\_ACEOF
4094 #define C_ALLOCA 1
4095 _ACEOF
4098 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4099 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4100 if test "${ac_cv_os_cray+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103 cat >conftest.$ac_ext <<_ACEOF
4104 #line $LINENO "configure"
4105 #include "confdefs.h"
4106 #if defined(CRAY) && ! defined(CRAY2)
4107 webecray
4108 #else
4109 wenotbecray
4110 #endif
4112 _ACEOF
4113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4114 egrep "webecray" >/dev/null 2>&1; then
4115 ac_cv_os_cray=yes
4116 else
4117 ac_cv_os_cray=no
4119 rm -f conftest*
4122 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4123 echo "${ECHO_T}$ac_cv_os_cray" >&6
4124 if test $ac_cv_os_cray = yes; then
4125 for ac_func in _getb67 GETB67 getb67; do
4126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4127 echo "$as_me:$LINENO: checking for $ac_func" >&5
4128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4129 if eval "test \"\${$as_ac_var+set}\" = set"; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132 cat >conftest.$ac_ext <<_ACEOF
4133 #line $LINENO "configure"
4134 #include "confdefs.h"
4135 /* System header to define __stub macros and hopefully few prototypes,
4136 which can conflict with char $ac_func (); below. */
4137 #include <assert.h>
4138 /* Override any gcc2 internal prototype to avoid an error. */
4139 #ifdef __cplusplus
4140 extern "C"
4141 #endif
4142 /* We use char because int might match the return type of a gcc2
4143 builtin and then its argument prototype would still apply. */
4144 char $ac_func ();
4145 char (*f) ();
4147 #ifdef F77_DUMMY_MAIN
4148 # ifdef __cplusplus
4149 extern "C"
4150 # endif
4151 int F77_DUMMY_MAIN() { return 1; }
4152 #endif
4154 main ()
4156 /* The GNU C library defines this for functions which it implements
4157 to always fail with ENOSYS. Some functions are actually named
4158 something starting with __ and the normal name is an alias. */
4159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4160 choke me
4161 #else
4162 f = $ac_func;
4163 #endif
4166 return 0;
4168 _ACEOF
4169 rm -f conftest.$ac_objext conftest$ac_exeext
4170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4171 (eval $ac_link) 2>&5
4172 ac_status=$?
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } &&
4175 { ac_try='test -s conftest$ac_exeext'
4176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177 (eval $ac_try) 2>&5
4178 ac_status=$?
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; }; then
4181 eval "$as_ac_var=yes"
4182 else
4183 echo "$as_me: failed program was:" >&5
4184 cat conftest.$ac_ext >&5
4185 eval "$as_ac_var=no"
4187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4191 if test `eval echo '${'$as_ac_var'}'` = yes; then
4193 cat >>confdefs.h <<_ACEOF
4194 #define CRAY_STACKSEG_END $ac_func
4195 _ACEOF
4197 break
4200 done
4203 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4204 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4205 if test "${ac_cv_c_stack_direction+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208 if test "$cross_compiling" = yes; then
4209 ac_cv_c_stack_direction=0
4210 else
4211 cat >conftest.$ac_ext <<_ACEOF
4212 #line $LINENO "configure"
4213 #include "confdefs.h"
4215 find_stack_direction ()
4217 static char *addr = 0;
4218 auto char dummy;
4219 if (addr == 0)
4221 addr = &dummy;
4222 return find_stack_direction ();
4224 else
4225 return (&dummy > addr) ? 1 : -1;
4229 main ()
4231 exit (find_stack_direction () < 0);
4233 _ACEOF
4234 rm -f conftest$ac_exeext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4236 (eval $ac_link) 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 (eval $ac_try) 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 ac_cv_c_stack_direction=1
4246 else
4247 echo "$as_me: program exited with status $ac_status" >&5
4248 echo "$as_me: failed program was:" >&5
4249 cat conftest.$ac_ext >&5
4250 ( exit $ac_status )
4251 ac_cv_c_stack_direction=-1
4253 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4256 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4257 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4259 cat >>confdefs.h <<_ACEOF
4260 #define STACK_DIRECTION $ac_cv_c_stack_direction
4261 _ACEOF
4268 for ac_header in stdlib.h unistd.h
4270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4272 echo "$as_me:$LINENO: checking for $ac_header" >&5
4273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4279 else
4280 # Is the header compilable?
4281 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4283 cat >conftest.$ac_ext <<_ACEOF
4284 #line $LINENO "configure"
4285 #include "confdefs.h"
4286 $ac_includes_default
4287 #include <$ac_header>
4288 _ACEOF
4289 rm -f conftest.$ac_objext
4290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4291 (eval $ac_compile) 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -s conftest.$ac_objext'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 (eval $ac_try) 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; }; then
4301 ac_header_compiler=yes
4302 else
4303 echo "$as_me: failed program was:" >&5
4304 cat conftest.$ac_ext >&5
4305 ac_header_compiler=no
4307 rm -f conftest.$ac_objext conftest.$ac_ext
4308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4309 echo "${ECHO_T}$ac_header_compiler" >&6
4311 # Is the header present?
4312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4314 cat >conftest.$ac_ext <<_ACEOF
4315 #line $LINENO "configure"
4316 #include "confdefs.h"
4317 #include <$ac_header>
4318 _ACEOF
4319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4321 ac_status=$?
4322 egrep -v '^ *\+' conftest.er1 >conftest.err
4323 rm -f conftest.er1
4324 cat conftest.err >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } >/dev/null; then
4327 if test -s conftest.err; then
4328 ac_cpp_err=$ac_c_preproc_warn_flag
4329 else
4330 ac_cpp_err=
4332 else
4333 ac_cpp_err=yes
4335 if test -z "$ac_cpp_err"; then
4336 ac_header_preproc=yes
4337 else
4338 echo "$as_me: failed program was:" >&5
4339 cat conftest.$ac_ext >&5
4340 ac_header_preproc=no
4342 rm -f conftest.err conftest.$ac_ext
4343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4344 echo "${ECHO_T}$ac_header_preproc" >&6
4346 # So? What about this header?
4347 case $ac_header_compiler:$ac_header_preproc in
4348 yes:no )
4349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4353 no:yes )
4354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4360 esac
4361 echo "$as_me:$LINENO: checking for $ac_header" >&5
4362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366 eval "$as_ac_Header=$ac_header_preproc"
4368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4373 cat >>confdefs.h <<_ACEOF
4374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4375 _ACEOF
4379 done
4382 for ac_func in getpagesize
4384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4385 echo "$as_me:$LINENO: checking for $ac_func" >&5
4386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4387 if eval "test \"\${$as_ac_var+set}\" = set"; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390 cat >conftest.$ac_ext <<_ACEOF
4391 #line $LINENO "configure"
4392 #include "confdefs.h"
4393 /* System header to define __stub macros and hopefully few prototypes,
4394 which can conflict with char $ac_func (); below. */
4395 #include <assert.h>
4396 /* Override any gcc2 internal prototype to avoid an error. */
4397 #ifdef __cplusplus
4398 extern "C"
4399 #endif
4400 /* We use char because int might match the return type of a gcc2
4401 builtin and then its argument prototype would still apply. */
4402 char $ac_func ();
4403 char (*f) ();
4405 #ifdef F77_DUMMY_MAIN
4406 # ifdef __cplusplus
4407 extern "C"
4408 # endif
4409 int F77_DUMMY_MAIN() { return 1; }
4410 #endif
4412 main ()
4414 /* The GNU C library defines this for functions which it implements
4415 to always fail with ENOSYS. Some functions are actually named
4416 something starting with __ and the normal name is an alias. */
4417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4418 choke me
4419 #else
4420 f = $ac_func;
4421 #endif
4424 return 0;
4426 _ACEOF
4427 rm -f conftest.$ac_objext conftest$ac_exeext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4429 (eval $ac_link) 2>&5
4430 ac_status=$?
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } &&
4433 { ac_try='test -s conftest$ac_exeext'
4434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435 (eval $ac_try) 2>&5
4436 ac_status=$?
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); }; }; then
4439 eval "$as_ac_var=yes"
4440 else
4441 echo "$as_me: failed program was:" >&5
4442 cat conftest.$ac_ext >&5
4443 eval "$as_ac_var=no"
4445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4449 if test `eval echo '${'$as_ac_var'}'` = yes; then
4450 cat >>confdefs.h <<_ACEOF
4451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4452 _ACEOF
4455 done
4457 echo "$as_me:$LINENO: checking for working mmap" >&5
4458 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4459 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462 if test "$cross_compiling" = yes; then
4463 ac_cv_func_mmap_fixed_mapped=no
4464 else
4465 cat >conftest.$ac_ext <<_ACEOF
4466 #line $LINENO "configure"
4467 #include "confdefs.h"
4468 $ac_includes_default
4469 /* malloc might have been renamed as rpl_malloc. */
4470 #undef malloc
4472 /* Thanks to Mike Haertel and Jim Avera for this test.
4473 Here is a matrix of mmap possibilities:
4474 mmap private not fixed
4475 mmap private fixed at somewhere currently unmapped
4476 mmap private fixed at somewhere already mapped
4477 mmap shared not fixed
4478 mmap shared fixed at somewhere currently unmapped
4479 mmap shared fixed at somewhere already mapped
4480 For private mappings, we should verify that changes cannot be read()
4481 back from the file, nor mmap's back from the file at a different
4482 address. (There have been systems where private was not correctly
4483 implemented like the infamous i386 svr4.0, and systems where the
4484 VM page cache was not coherent with the file system buffer cache
4485 like early versions of FreeBSD and possibly contemporary NetBSD.)
4486 For shared mappings, we should conversely verify that changes get
4487 propagated back to all the places they're supposed to be.
4489 Grep wants private fixed already mapped.
4490 The main things grep needs to know about mmap are:
4491 * does it exist and is it safe to write into the mmap'd area
4492 * how to use it (BSD variants) */
4494 #include <fcntl.h>
4495 #include <sys/mman.h>
4497 #if !STDC_HEADERS && !HAVE_STDLIB_H
4498 char *malloc ();
4499 #endif
4501 /* This mess was copied from the GNU getpagesize.h. */
4502 #if !HAVE_GETPAGESIZE
4503 /* Assume that all systems that can run configure have sys/param.h. */
4504 # if !HAVE_SYS_PARAM_H
4505 # define HAVE_SYS_PARAM_H 1
4506 # endif
4508 # ifdef _SC_PAGESIZE
4509 # define getpagesize() sysconf(_SC_PAGESIZE)
4510 # else /* no _SC_PAGESIZE */
4511 # if HAVE_SYS_PARAM_H
4512 # include <sys/param.h>
4513 # ifdef EXEC_PAGESIZE
4514 # define getpagesize() EXEC_PAGESIZE
4515 # else /* no EXEC_PAGESIZE */
4516 # ifdef NBPG
4517 # define getpagesize() NBPG * CLSIZE
4518 # ifndef CLSIZE
4519 # define CLSIZE 1
4520 # endif /* no CLSIZE */
4521 # else /* no NBPG */
4522 # ifdef NBPC
4523 # define getpagesize() NBPC
4524 # else /* no NBPC */
4525 # ifdef PAGESIZE
4526 # define getpagesize() PAGESIZE
4527 # endif /* PAGESIZE */
4528 # endif /* no NBPC */
4529 # endif /* no NBPG */
4530 # endif /* no EXEC_PAGESIZE */
4531 # else /* no HAVE_SYS_PARAM_H */
4532 # define getpagesize() 8192 /* punt totally */
4533 # endif /* no HAVE_SYS_PARAM_H */
4534 # endif /* no _SC_PAGESIZE */
4536 #endif /* no HAVE_GETPAGESIZE */
4539 main ()
4541 char *data, *data2, *data3;
4542 int i, pagesize;
4543 int fd;
4545 pagesize = getpagesize ();
4547 /* First, make a file with some known garbage in it. */
4548 data = (char *) malloc (pagesize);
4549 if (!data)
4550 exit (1);
4551 for (i = 0; i < pagesize; ++i)
4552 *(data + i) = rand ();
4553 umask (0);
4554 fd = creat ("conftest.mmap", 0600);
4555 if (fd < 0)
4556 exit (1);
4557 if (write (fd, data, pagesize) != pagesize)
4558 exit (1);
4559 close (fd);
4561 /* Next, try to mmap the file at a fixed address which already has
4562 something else allocated at it. If we can, also make sure that
4563 we see the same garbage. */
4564 fd = open ("conftest.mmap", O_RDWR);
4565 if (fd < 0)
4566 exit (1);
4567 data2 = (char *) malloc (2 * pagesize);
4568 if (!data2)
4569 exit (1);
4570 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4571 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4572 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4573 exit (1);
4574 for (i = 0; i < pagesize; ++i)
4575 if (*(data + i) != *(data2 + i))
4576 exit (1);
4578 /* Finally, make sure that changes to the mapped area do not
4579 percolate back to the file as seen by read(). (This is a bug on
4580 some variants of i386 svr4.0.) */
4581 for (i = 0; i < pagesize; ++i)
4582 *(data2 + i) = *(data2 + i) + 1;
4583 data3 = (char *) malloc (pagesize);
4584 if (!data3)
4585 exit (1);
4586 if (read (fd, data3, pagesize) != pagesize)
4587 exit (1);
4588 for (i = 0; i < pagesize; ++i)
4589 if (*(data + i) != *(data3 + i))
4590 exit (1);
4591 close (fd);
4592 exit (0);
4594 _ACEOF
4595 rm -f conftest$ac_exeext
4596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4597 (eval $ac_link) 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 (eval $ac_try) 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
4606 ac_cv_func_mmap_fixed_mapped=yes
4607 else
4608 echo "$as_me: program exited with status $ac_status" >&5
4609 echo "$as_me: failed program was:" >&5
4610 cat conftest.$ac_ext >&5
4611 ( exit $ac_status )
4612 ac_cv_func_mmap_fixed_mapped=no
4614 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4617 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4618 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4619 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4621 cat >>confdefs.h <<\_ACEOF
4622 #define HAVE_MMAP 1
4623 _ACEOF
4626 rm -f conftest.mmap
4637 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4638 unistd.h sys/param.h
4640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4642 echo "$as_me:$LINENO: checking for $ac_header" >&5
4643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4649 else
4650 # Is the header compilable?
4651 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4653 cat >conftest.$ac_ext <<_ACEOF
4654 #line $LINENO "configure"
4655 #include "confdefs.h"
4656 $ac_includes_default
4657 #include <$ac_header>
4658 _ACEOF
4659 rm -f conftest.$ac_objext
4660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4661 (eval $ac_compile) 2>&5
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } &&
4665 { ac_try='test -s conftest.$ac_objext'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 (eval $ac_try) 2>&5
4668 ac_status=$?
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4671 ac_header_compiler=yes
4672 else
4673 echo "$as_me: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4675 ac_header_compiler=no
4677 rm -f conftest.$ac_objext conftest.$ac_ext
4678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4679 echo "${ECHO_T}$ac_header_compiler" >&6
4681 # Is the header present?
4682 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4684 cat >conftest.$ac_ext <<_ACEOF
4685 #line $LINENO "configure"
4686 #include "confdefs.h"
4687 #include <$ac_header>
4688 _ACEOF
4689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4691 ac_status=$?
4692 egrep -v '^ *\+' conftest.er1 >conftest.err
4693 rm -f conftest.er1
4694 cat conftest.err >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } >/dev/null; then
4697 if test -s conftest.err; then
4698 ac_cpp_err=$ac_c_preproc_warn_flag
4699 else
4700 ac_cpp_err=
4702 else
4703 ac_cpp_err=yes
4705 if test -z "$ac_cpp_err"; then
4706 ac_header_preproc=yes
4707 else
4708 echo "$as_me: failed program was:" >&5
4709 cat conftest.$ac_ext >&5
4710 ac_header_preproc=no
4712 rm -f conftest.err conftest.$ac_ext
4713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4714 echo "${ECHO_T}$ac_header_preproc" >&6
4716 # So? What about this header?
4717 case $ac_header_compiler:$ac_header_preproc in
4718 yes:no )
4719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4723 no:yes )
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4727 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4730 esac
4731 echo "$as_me:$LINENO: checking for $ac_header" >&5
4732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736 eval "$as_ac_Header=$ac_header_preproc"
4738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4743 cat >>confdefs.h <<_ACEOF
4744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4745 _ACEOF
4749 done
4762 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4763 strdup __argz_count __argz_stringify __argz_next
4765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4766 echo "$as_me:$LINENO: checking for $ac_func" >&5
4767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4768 if eval "test \"\${$as_ac_var+set}\" = set"; then
4769 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 else
4771 cat >conftest.$ac_ext <<_ACEOF
4772 #line $LINENO "configure"
4773 #include "confdefs.h"
4774 /* System header to define __stub macros and hopefully few prototypes,
4775 which can conflict with char $ac_func (); below. */
4776 #include <assert.h>
4777 /* Override any gcc2 internal prototype to avoid an error. */
4778 #ifdef __cplusplus
4779 extern "C"
4780 #endif
4781 /* We use char because int might match the return type of a gcc2
4782 builtin and then its argument prototype would still apply. */
4783 char $ac_func ();
4784 char (*f) ();
4786 #ifdef F77_DUMMY_MAIN
4787 # ifdef __cplusplus
4788 extern "C"
4789 # endif
4790 int F77_DUMMY_MAIN() { return 1; }
4791 #endif
4793 main ()
4795 /* The GNU C library defines this for functions which it implements
4796 to always fail with ENOSYS. Some functions are actually named
4797 something starting with __ and the normal name is an alias. */
4798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4799 choke me
4800 #else
4801 f = $ac_func;
4802 #endif
4805 return 0;
4807 _ACEOF
4808 rm -f conftest.$ac_objext conftest$ac_exeext
4809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4810 (eval $ac_link) 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } &&
4814 { ac_try='test -s conftest$ac_exeext'
4815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 (eval $ac_try) 2>&5
4817 ac_status=$?
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; }; then
4820 eval "$as_ac_var=yes"
4821 else
4822 echo "$as_me: failed program was:" >&5
4823 cat conftest.$ac_ext >&5
4824 eval "$as_ac_var=no"
4826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4830 if test `eval echo '${'$as_ac_var'}'` = yes; then
4831 cat >>confdefs.h <<_ACEOF
4832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4833 _ACEOF
4836 done
4839 if test $ac_cv_header_locale_h = yes; then
4840 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4841 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4842 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845 cat >conftest.$ac_ext <<_ACEOF
4846 #line $LINENO "configure"
4847 #include "confdefs.h"
4848 #include <locale.h>
4849 #ifdef F77_DUMMY_MAIN
4850 # ifdef __cplusplus
4851 extern "C"
4852 # endif
4853 int F77_DUMMY_MAIN() { return 1; }
4854 #endif
4856 main ()
4858 return LC_MESSAGES
4860 return 0;
4862 _ACEOF
4863 rm -f conftest.$ac_objext conftest$ac_exeext
4864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4865 (eval $ac_link) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } &&
4869 { ac_try='test -s conftest$ac_exeext'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 (eval $ac_try) 2>&5
4872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; }; then
4875 am_cv_val_LC_MESSAGES=yes
4876 else
4877 echo "$as_me: failed program was:" >&5
4878 cat conftest.$ac_ext >&5
4879 am_cv_val_LC_MESSAGES=no
4881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4883 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4884 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4885 if test $am_cv_val_LC_MESSAGES = yes; then
4887 cat >>confdefs.h <<\_ACEOF
4888 #define HAVE_LC_MESSAGES 1
4889 _ACEOF
4893 USE_NLS=yes
4896 nls_cv_force_use_gnu_gettext="no"
4898 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4899 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4900 nls_cv_header_intl=
4901 nls_cv_header_libgt=
4902 CATOBJEXT=NONE
4903 XGETTEXT=:
4905 if test "${ac_cv_header_libintl_h+set}" = set; then
4906 echo "$as_me:$LINENO: checking for libintl.h" >&5
4907 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4908 if test "${ac_cv_header_libintl_h+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4912 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4913 else
4914 # Is the header compilable?
4915 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4916 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4917 cat >conftest.$ac_ext <<_ACEOF
4918 #line $LINENO "configure"
4919 #include "confdefs.h"
4920 $ac_includes_default
4921 #include <libintl.h>
4922 _ACEOF
4923 rm -f conftest.$ac_objext
4924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4925 (eval $ac_compile) 2>&5
4926 ac_status=$?
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } &&
4929 { ac_try='test -s conftest.$ac_objext'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931 (eval $ac_try) 2>&5
4932 ac_status=$?
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; }; then
4935 ac_header_compiler=yes
4936 else
4937 echo "$as_me: failed program was:" >&5
4938 cat conftest.$ac_ext >&5
4939 ac_header_compiler=no
4941 rm -f conftest.$ac_objext conftest.$ac_ext
4942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4943 echo "${ECHO_T}$ac_header_compiler" >&6
4945 # Is the header present?
4946 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4947 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4948 cat >conftest.$ac_ext <<_ACEOF
4949 #line $LINENO "configure"
4950 #include "confdefs.h"
4951 #include <libintl.h>
4952 _ACEOF
4953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4955 ac_status=$?
4956 egrep -v '^ *\+' conftest.er1 >conftest.err
4957 rm -f conftest.er1
4958 cat conftest.err >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } >/dev/null; then
4961 if test -s conftest.err; then
4962 ac_cpp_err=$ac_c_preproc_warn_flag
4963 else
4964 ac_cpp_err=
4966 else
4967 ac_cpp_err=yes
4969 if test -z "$ac_cpp_err"; then
4970 ac_header_preproc=yes
4971 else
4972 echo "$as_me: failed program was:" >&5
4973 cat conftest.$ac_ext >&5
4974 ac_header_preproc=no
4976 rm -f conftest.err conftest.$ac_ext
4977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4978 echo "${ECHO_T}$ac_header_preproc" >&6
4980 # So? What about this header?
4981 case $ac_header_compiler:$ac_header_preproc in
4982 yes:no )
4983 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4984 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4985 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4986 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
4987 no:yes )
4988 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4989 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4990 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4991 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4992 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4993 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
4994 esac
4995 echo "$as_me:$LINENO: checking for libintl.h" >&5
4996 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4997 if test "${ac_cv_header_libintl_h+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 else
5000 ac_cv_header_libintl_h=$ac_header_preproc
5002 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5003 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5006 if test $ac_cv_header_libintl_h = yes; then
5007 echo "$as_me:$LINENO: checking for dgettext in libc" >&5
5008 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
5009 if test "${gt_cv_func_dgettext_libc+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012 cat >conftest.$ac_ext <<_ACEOF
5013 #line $LINENO "configure"
5014 #include "confdefs.h"
5015 #include <libintl.h>
5016 #ifdef F77_DUMMY_MAIN
5017 # ifdef __cplusplus
5018 extern "C"
5019 # endif
5020 int F77_DUMMY_MAIN() { return 1; }
5021 #endif
5023 main ()
5025 return (int) dgettext ("","")
5027 return 0;
5029 _ACEOF
5030 rm -f conftest.$ac_objext conftest$ac_exeext
5031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5032 (eval $ac_link) 2>&5
5033 ac_status=$?
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try='test -s conftest$ac_exeext'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 (eval $ac_try) 2>&5
5039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 gt_cv_func_dgettext_libc=yes
5043 else
5044 echo "$as_me: failed program was:" >&5
5045 cat conftest.$ac_ext >&5
5046 gt_cv_func_dgettext_libc=no
5048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5050 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
5051 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
5053 gt_cv_func_dgettext_libintl="no"
5054 libintl_extra_libs=""
5056 if test "$gt_cv_func_dgettext_libc" != "yes" ; then
5057 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5058 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5059 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5061 else
5062 ac_check_lib_save_LIBS=$LIBS
5063 LIBS="-lintl $LIBS"
5064 cat >conftest.$ac_ext <<_ACEOF
5065 #line $LINENO "configure"
5066 #include "confdefs.h"
5068 /* Override any gcc2 internal prototype to avoid an error. */
5069 #ifdef __cplusplus
5070 extern "C"
5071 #endif
5072 /* We use char because int might match the return type of a gcc2
5073 builtin and then its argument prototype would still apply. */
5074 char bindtextdomain ();
5075 #ifdef F77_DUMMY_MAIN
5076 # ifdef __cplusplus
5077 extern "C"
5078 # endif
5079 int F77_DUMMY_MAIN() { return 1; }
5080 #endif
5082 main ()
5084 bindtextdomain ();
5086 return 0;
5088 _ACEOF
5089 rm -f conftest.$ac_objext conftest$ac_exeext
5090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5091 (eval $ac_link) 2>&5
5092 ac_status=$?
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try='test -s conftest$ac_exeext'
5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097 (eval $ac_try) 2>&5
5098 ac_status=$?
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; }; then
5101 ac_cv_lib_intl_bindtextdomain=yes
5102 else
5103 echo "$as_me: failed program was:" >&5
5104 cat conftest.$ac_ext >&5
5105 ac_cv_lib_intl_bindtextdomain=no
5107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5108 LIBS=$ac_check_lib_save_LIBS
5110 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5111 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5112 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5113 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
5114 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
5115 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 else
5118 ac_check_lib_save_LIBS=$LIBS
5119 LIBS="-lintl $LIBS"
5120 cat >conftest.$ac_ext <<_ACEOF
5121 #line $LINENO "configure"
5122 #include "confdefs.h"
5124 /* Override any gcc2 internal prototype to avoid an error. */
5125 #ifdef __cplusplus
5126 extern "C"
5127 #endif
5128 /* We use char because int might match the return type of a gcc2
5129 builtin and then its argument prototype would still apply. */
5130 char dgettext ();
5131 #ifdef F77_DUMMY_MAIN
5132 # ifdef __cplusplus
5133 extern "C"
5134 # endif
5135 int F77_DUMMY_MAIN() { return 1; }
5136 #endif
5138 main ()
5140 dgettext ();
5142 return 0;
5144 _ACEOF
5145 rm -f conftest.$ac_objext conftest$ac_exeext
5146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5147 (eval $ac_link) 2>&5
5148 ac_status=$?
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); } &&
5151 { ac_try='test -s conftest$ac_exeext'
5152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153 (eval $ac_try) 2>&5
5154 ac_status=$?
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }; }; then
5157 ac_cv_lib_intl_dgettext=yes
5158 else
5159 echo "$as_me: failed program was:" >&5
5160 cat conftest.$ac_ext >&5
5161 ac_cv_lib_intl_dgettext=no
5163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5164 LIBS=$ac_check_lib_save_LIBS
5166 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
5167 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
5168 if test $ac_cv_lib_intl_dgettext = yes; then
5169 gt_cv_func_dgettext_libintl=yes
5175 if test "$gt_cv_func_dgettext_libc" != "yes" ; then
5176 echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
5177 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
5178 echo "$as_me:$LINENO: result: " >&5
5179 echo "${ECHO_T}" >&6
5180 echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
5181 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
5182 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185 ac_check_lib_save_LIBS=$LIBS
5186 LIBS="-lintl -liconv $LIBS"
5187 cat >conftest.$ac_ext <<_ACEOF
5188 #line $LINENO "configure"
5189 #include "confdefs.h"
5191 /* Override any gcc2 internal prototype to avoid an error. */
5192 #ifdef __cplusplus
5193 extern "C"
5194 #endif
5195 /* We use char because int might match the return type of a gcc2
5196 builtin and then its argument prototype would still apply. */
5197 char dcgettext ();
5198 #ifdef F77_DUMMY_MAIN
5199 # ifdef __cplusplus
5200 extern "C"
5201 # endif
5202 int F77_DUMMY_MAIN() { return 1; }
5203 #endif
5205 main ()
5207 dcgettext ();
5209 return 0;
5211 _ACEOF
5212 rm -f conftest.$ac_objext conftest$ac_exeext
5213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5214 (eval $ac_link) 2>&5
5215 ac_status=$?
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); } &&
5218 { ac_try='test -s conftest$ac_exeext'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220 (eval $ac_try) 2>&5
5221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; }; then
5224 ac_cv_lib_intl_dcgettext=yes
5225 else
5226 echo "$as_me: failed program was:" >&5
5227 cat conftest.$ac_ext >&5
5228 ac_cv_lib_intl_dcgettext=no
5230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5231 LIBS=$ac_check_lib_save_LIBS
5233 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
5234 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
5235 if test $ac_cv_lib_intl_dcgettext = yes; then
5236 gt_cv_func_dgettext_libintl=yes
5237 libintl_extra_libs=-liconv
5238 else
5245 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
5246 LIBS="$LIBS -lintl $libintl_extra_libs";
5249 if test "$gt_cv_func_dgettext_libc" = "yes" \
5250 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
5252 cat >>confdefs.h <<\_ACEOF
5253 #define HAVE_GETTEXT 1
5254 _ACEOF
5256 # Extract the first word of "msgfmt", so it can be a program name with args.
5257 set dummy msgfmt; ac_word=$2
5258 echo "$as_me:$LINENO: checking for $ac_word" >&5
5259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5260 if test "${ac_cv_path_MSGFMT+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 else
5263 case "$MSGFMT" in
5265 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5268 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5269 for ac_dir in $PATH; do
5270 test -z "$ac_dir" && ac_dir=.
5271 if test -f $ac_dir/$ac_word; then
5272 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5273 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5274 break
5277 done
5278 IFS="$ac_save_ifs"
5279 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5281 esac
5283 MSGFMT="$ac_cv_path_MSGFMT"
5284 if test "$MSGFMT" != "no"; then
5285 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5286 echo "${ECHO_T}$MSGFMT" >&6
5287 else
5288 echo "$as_me:$LINENO: result: no" >&5
5289 echo "${ECHO_T}no" >&6
5291 if test "$MSGFMT" != "no"; then
5293 for ac_func in dcgettext
5295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5296 echo "$as_me:$LINENO: checking for $ac_func" >&5
5297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5298 if eval "test \"\${$as_ac_var+set}\" = set"; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 else
5301 cat >conftest.$ac_ext <<_ACEOF
5302 #line $LINENO "configure"
5303 #include "confdefs.h"
5304 /* System header to define __stub macros and hopefully few prototypes,
5305 which can conflict with char $ac_func (); below. */
5306 #include <assert.h>
5307 /* Override any gcc2 internal prototype to avoid an error. */
5308 #ifdef __cplusplus
5309 extern "C"
5310 #endif
5311 /* We use char because int might match the return type of a gcc2
5312 builtin and then its argument prototype would still apply. */
5313 char $ac_func ();
5314 char (*f) ();
5316 #ifdef F77_DUMMY_MAIN
5317 # ifdef __cplusplus
5318 extern "C"
5319 # endif
5320 int F77_DUMMY_MAIN() { return 1; }
5321 #endif
5323 main ()
5325 /* The GNU C library defines this for functions which it implements
5326 to always fail with ENOSYS. Some functions are actually named
5327 something starting with __ and the normal name is an alias. */
5328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5329 choke me
5330 #else
5331 f = $ac_func;
5332 #endif
5335 return 0;
5337 _ACEOF
5338 rm -f conftest.$ac_objext conftest$ac_exeext
5339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5340 (eval $ac_link) 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); } &&
5344 { ac_try='test -s conftest$ac_exeext'
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 (eval $ac_try) 2>&5
5347 ac_status=$?
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; }; then
5350 eval "$as_ac_var=yes"
5351 else
5352 echo "$as_me: failed program was:" >&5
5353 cat conftest.$ac_ext >&5
5354 eval "$as_ac_var=no"
5356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5360 if test `eval echo '${'$as_ac_var'}'` = yes; then
5361 cat >>confdefs.h <<_ACEOF
5362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5363 _ACEOF
5366 done
5368 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5369 set dummy gmsgfmt; ac_word=$2
5370 echo "$as_me:$LINENO: checking for $ac_word" >&5
5371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5372 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5374 else
5375 case $GMSGFMT in
5376 [\\/]* | ?:[\\/]*)
5377 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381 for as_dir in $PATH
5383 IFS=$as_save_IFS
5384 test -z "$as_dir" && as_dir=.
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5387 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 break 2
5391 done
5392 done
5394 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5396 esac
5398 GMSGFMT=$ac_cv_path_GMSGFMT
5400 if test -n "$GMSGFMT"; then
5401 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5402 echo "${ECHO_T}$GMSGFMT" >&6
5403 else
5404 echo "$as_me:$LINENO: result: no" >&5
5405 echo "${ECHO_T}no" >&6
5408 # Extract the first word of "xgettext", so it can be a program name with args.
5409 set dummy xgettext; ac_word=$2
5410 echo "$as_me:$LINENO: checking for $ac_word" >&5
5411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5412 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 else
5415 case "$XGETTEXT" in
5417 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5421 for ac_dir in $PATH; do
5422 test -z "$ac_dir" && ac_dir=.
5423 if test -f $ac_dir/$ac_word; then
5424 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5425 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5426 break
5429 done
5430 IFS="$ac_save_ifs"
5431 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5433 esac
5435 XGETTEXT="$ac_cv_path_XGETTEXT"
5436 if test "$XGETTEXT" != ":"; then
5437 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5438 echo "${ECHO_T}$XGETTEXT" >&6
5439 else
5440 echo "$as_me:$LINENO: result: no" >&5
5441 echo "${ECHO_T}no" >&6
5444 cat >conftest.$ac_ext <<_ACEOF
5445 #line $LINENO "configure"
5446 #include "confdefs.h"
5448 #ifdef F77_DUMMY_MAIN
5449 # ifdef __cplusplus
5450 extern "C"
5451 # endif
5452 int F77_DUMMY_MAIN() { return 1; }
5453 #endif
5455 main ()
5457 extern int _nl_msg_cat_cntr;
5458 return _nl_msg_cat_cntr
5460 return 0;
5462 _ACEOF
5463 rm -f conftest.$ac_objext conftest$ac_exeext
5464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5465 (eval $ac_link) 2>&5
5466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } &&
5469 { ac_try='test -s conftest$ac_exeext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 (eval $ac_try) 2>&5
5472 ac_status=$?
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5475 CATOBJEXT=.gmo
5476 DATADIRNAME=share
5477 else
5478 echo "$as_me: failed program was:" >&5
5479 cat conftest.$ac_ext >&5
5480 CATOBJEXT=.mo
5481 DATADIRNAME=lib
5483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5484 INSTOBJEXT=.mo
5488 # Added by Martin Baulig 12/15/98 for libc5 systems
5489 if test "$gt_cv_func_dgettext_libc" != "yes" \
5490 && test "$gt_cv_func_dgettext_libintl" = "yes"; then
5491 INTLLIBS="-lintl $libintl_extra_libs"
5492 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5499 if test "$CATOBJEXT" = "NONE"; then
5500 nls_cv_use_gnu_gettext=yes
5504 if test "$nls_cv_use_gnu_gettext" != "yes"; then
5506 cat >>confdefs.h <<\_ACEOF
5507 #define ENABLE_NLS 1
5508 _ACEOF
5510 else
5511 CATOBJEXT=
5514 if test "$XGETTEXT" != ":"; then
5515 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5517 else
5518 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5519 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5520 XGETTEXT=":"
5524 # We need to process the po/ directory.
5525 POSUB=po
5527 ac_config_commands="$ac_config_commands default-2"
5530 for lang in $ALL_LINGUAS; do
5531 GMOFILES="$GMOFILES $lang.gmo"
5532 POFILES="$POFILES $lang.po"
5533 done
5547 if test "x$CATOBJEXT" != "x"; then
5548 if test "x$ALL_LINGUAS" = "x"; then
5549 LINGUAS=
5550 else
5551 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5552 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5553 NEW_LINGUAS=
5554 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5555 case "$ALL_LINGUAS" in
5556 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5557 esac
5558 done
5559 LINGUAS=$NEW_LINGUAS
5560 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5561 echo "${ECHO_T}$LINGUAS" >&6
5564 if test -n "$LINGUAS"; then
5565 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5569 test -d po || mkdir po
5570 if test "$CATOBJEXT" = ".cat"; then
5571 if test "${ac_cv_header_linux_version_h+set}" = set; then
5572 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5573 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5574 if test "${ac_cv_header_linux_version_h+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5578 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5579 else
5580 # Is the header compilable?
5581 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5582 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5583 cat >conftest.$ac_ext <<_ACEOF
5584 #line $LINENO "configure"
5585 #include "confdefs.h"
5586 $ac_includes_default
5587 #include <linux/version.h>
5588 _ACEOF
5589 rm -f conftest.$ac_objext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5591 (eval $ac_compile) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } &&
5595 { ac_try='test -s conftest.$ac_objext'
5596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597 (eval $ac_try) 2>&5
5598 ac_status=$?
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; }; then
5601 ac_header_compiler=yes
5602 else
5603 echo "$as_me: failed program was:" >&5
5604 cat conftest.$ac_ext >&5
5605 ac_header_compiler=no
5607 rm -f conftest.$ac_objext conftest.$ac_ext
5608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5609 echo "${ECHO_T}$ac_header_compiler" >&6
5611 # Is the header present?
5612 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5613 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5614 cat >conftest.$ac_ext <<_ACEOF
5615 #line $LINENO "configure"
5616 #include "confdefs.h"
5617 #include <linux/version.h>
5618 _ACEOF
5619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5621 ac_status=$?
5622 egrep -v '^ *\+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } >/dev/null; then
5627 if test -s conftest.err; then
5628 ac_cpp_err=$ac_c_preproc_warn_flag
5629 else
5630 ac_cpp_err=
5632 else
5633 ac_cpp_err=yes
5635 if test -z "$ac_cpp_err"; then
5636 ac_header_preproc=yes
5637 else
5638 echo "$as_me: failed program was:" >&5
5639 cat conftest.$ac_ext >&5
5640 ac_header_preproc=no
5642 rm -f conftest.err conftest.$ac_ext
5643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5644 echo "${ECHO_T}$ac_header_preproc" >&6
5646 # So? What about this header?
5647 case $ac_header_compiler:$ac_header_preproc in
5648 yes:no )
5649 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5650 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5651 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5652 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;};;
5653 no:yes )
5654 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5655 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5656 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5657 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5658 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5659 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;};;
5660 esac
5661 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5662 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5663 if test "${ac_cv_header_linux_version_h+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 else
5666 ac_cv_header_linux_version_h=$ac_header_preproc
5668 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5669 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5672 if test $ac_cv_header_linux_version_h = yes; then
5673 msgformat=linux
5674 else
5675 msgformat=xopen
5680 sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed
5683 MKINSTALLDIRS=
5684 if test -n "$ac_aux_dir"; then
5685 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5687 if test -z "$MKINSTALLDIRS"; then
5688 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5692 test -d po || mkdir po
5693 if test "x$srcdir" != "x."; then
5694 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5695 posrcprefix="$srcdir/"
5696 else
5697 posrcprefix="../$srcdir/"
5699 else
5700 posrcprefix="../"
5702 rm -f po/POTFILES
5703 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5704 < $srcdir/po/POTFILES.in > po/POTFILES
5707 ac_config_files="$ac_config_files Makefile src/Makefile pixmaps/Makefile po/Makefile.in"
5708 cat >confcache <<\_ACEOF
5709 # This file is a shell script that caches the results of configure
5710 # tests run on this system so they can be shared between configure
5711 # scripts and configure runs, see configure's option --config-cache.
5712 # It is not useful on other systems. If it contains results you don't
5713 # want to keep, you may remove or edit it.
5715 # config.status only pays attention to the cache file if you give it
5716 # the --recheck option to rerun configure.
5718 # `ac_cv_env_foo' variables (set or unset) will be overriden when
5719 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5720 # following values.
5722 _ACEOF
5724 # The following way of writing the cache mishandles newlines in values,
5725 # but we know of no workaround that is simple, portable, and efficient.
5726 # So, don't put newlines in cache variables' values.
5727 # Ultrix sh set writes to stderr and can't be redirected directly,
5728 # and sets the high bit in the cache file unless we assign to the vars.
5730 (set) 2>&1 |
5731 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5732 *ac_space=\ *)
5733 # `set' does not quote correctly, so add quotes (double-quote
5734 # substitution turns \\\\ into \\, and sed turns \\ into \).
5735 sed -n \
5736 "s/'/'\\\\''/g;
5737 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5740 # `set' quotes correctly as required by POSIX, so do not add quotes.
5741 sed -n \
5742 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5744 esac;
5746 sed '
5747 t clear
5748 : clear
5749 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5750 t end
5751 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5752 : end' >>confcache
5753 if cmp -s $cache_file confcache; then :; else
5754 if test -w $cache_file; then
5755 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5756 cat confcache >$cache_file
5757 else
5758 echo "not updating unwritable cache $cache_file"
5761 rm -f confcache
5763 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5764 # Let make expand exec_prefix.
5765 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5767 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5768 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5769 # trailing colons and then remove the whole line if VPATH becomes empty
5770 # (actually we leave an empty line to preserve line numbers).
5771 if test "x$srcdir" = x.; then
5772 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5773 s/:*\$(srcdir):*/:/;
5774 s/:*\${srcdir}:*/:/;
5775 s/:*@srcdir@:*/:/;
5776 s/^\([^=]*=[ ]*\):*/\1/;
5777 s/:*$//;
5778 s/^[^=]*=[ ]*$//;
5782 DEFS=-DHAVE_CONFIG_H
5785 : ${CONFIG_STATUS=./config.status}
5786 ac_clean_files_save=$ac_clean_files
5787 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5788 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5789 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5790 cat >$CONFIG_STATUS <<_ACEOF
5791 #! $SHELL
5792 # Generated by $as_me.
5793 # Run this file to recreate the current configuration.
5794 # Compiler output produced by configure, useful for debugging
5795 # configure, is in config.log if it exists.
5797 debug=false
5798 SHELL=\${CONFIG_SHELL-$SHELL}
5799 _ACEOF
5801 cat >>$CONFIG_STATUS <<\_ACEOF
5803 ## --------------------- ##
5804 ## M4sh Initialization. ##
5805 ## --------------------- ##
5807 # Be Bourne compatible
5808 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5809 emulate sh
5810 NULLCMD=:
5811 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5812 set -o posix
5815 # NLS nuisances.
5816 # Support unset when possible.
5817 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5818 as_unset=unset
5819 else
5820 as_unset=false
5823 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
5824 { $as_unset LANG || test "${LANG+set}" != set; } ||
5825 { LANG=C; export LANG; }
5826 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
5827 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
5828 { LC_ALL=C; export LC_ALL; }
5829 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
5830 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
5831 { LC_TIME=C; export LC_TIME; }
5832 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
5833 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
5834 { LC_CTYPE=C; export LC_CTYPE; }
5835 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
5836 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
5837 { LANGUAGE=C; export LANGUAGE; }
5838 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
5839 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
5840 { LC_COLLATE=C; export LC_COLLATE; }
5841 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
5842 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
5843 { LC_NUMERIC=C; export LC_NUMERIC; }
5844 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
5845 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
5846 { LC_MESSAGES=C; export LC_MESSAGES; }
5849 # Name of the executable.
5850 as_me=`(basename "$0") 2>/dev/null ||
5851 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5852 X"$0" : 'X\(//\)$' \| \
5853 X"$0" : 'X\(/\)$' \| \
5854 . : '\(.\)' 2>/dev/null ||
5855 echo X/"$0" |
5856 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5857 /^X\/\(\/\/\)$/{ s//\1/; q; }
5858 /^X\/\(\/\).*/{ s//\1/; q; }
5859 s/.*/./; q'`
5861 # PATH needs CR, and LINENO needs CR and PATH.
5862 # Avoid depending upon Character Ranges.
5863 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5864 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5865 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5866 as_cr_digits='0123456789'
5867 as_cr_alnum=$as_cr_Letters$as_cr_digits
5869 # The user is always right.
5870 if test "${PATH_SEPARATOR+set}" != set; then
5871 echo "#! /bin/sh" >conftest.sh
5872 echo "exit 0" >>conftest.sh
5873 chmod +x conftest.sh
5874 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
5875 PATH_SEPARATOR=';'
5876 else
5877 PATH_SEPARATOR=:
5879 rm -f conftest.sh
5883 as_lineno_1=$LINENO
5884 as_lineno_2=$LINENO
5885 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5886 test "x$as_lineno_1" != "x$as_lineno_2" &&
5887 test "x$as_lineno_3" = "x$as_lineno_2" || {
5888 # Find who we are. Look in the path if we contain no path at all
5889 # relative or not.
5890 case $0 in
5891 *[\\/]* ) as_myself=$0 ;;
5892 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 for as_dir in $PATH
5895 IFS=$as_save_IFS
5896 test -z "$as_dir" && as_dir=.
5897 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5898 done
5901 esac
5902 # We did not find ourselves, most probably we were run as `sh COMMAND'
5903 # in which case we are not to be found in the path.
5904 if test "x$as_myself" = x; then
5905 as_myself=$0
5907 if test ! -f "$as_myself"; then
5908 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5909 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5910 { (exit 1); exit 1; }; }
5912 case $CONFIG_SHELL in
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for as_base in sh bash ksh sh5; do
5920 case $as_dir in
5922 if ("$as_dir/$as_base" -c '
5923 as_lineno_1=$LINENO
5924 as_lineno_2=$LINENO
5925 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5926 test "x$as_lineno_1" != "x$as_lineno_2" &&
5927 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5928 CONFIG_SHELL=$as_dir/$as_base
5929 export CONFIG_SHELL
5930 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5931 fi;;
5932 esac
5933 done
5934 done
5936 esac
5938 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5939 # uniformly replaced by the line number. The first 'sed' inserts a
5940 # line-number line before each line; the second 'sed' does the real
5941 # work. The second script uses 'N' to pair each line-number line
5942 # with the numbered line, and appends trailing '-' during
5943 # substitution so that $LINENO is not a special case at line end.
5944 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5945 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5946 sed '=' <$as_myself |
5947 sed '
5949 s,$,-,
5950 : loop
5951 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5952 t loop
5953 s,-$,,
5954 s,^['$as_cr_digits']*\n,,
5955 ' >$as_me.lineno &&
5956 chmod +x $as_me.lineno ||
5957 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5958 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5959 { (exit 1); exit 1; }; }
5961 # Don't try to exec as it changes $[0], causing all sort of problems
5962 # (the dirname of $[0] is not the place where we might find the
5963 # original and so on. Autoconf is especially sensible to this).
5964 . ./$as_me.lineno
5965 # Exit status is that of the last command.
5966 exit
5970 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5971 *c*,-n*) ECHO_N= ECHO_C='
5972 ' ECHO_T=' ' ;;
5973 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5974 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5975 esac
5977 if expr a : '\(a\)' >/dev/null 2>&1; then
5978 as_expr=expr
5979 else
5980 as_expr=false
5983 rm -f conf$$ conf$$.exe conf$$.file
5984 echo >conf$$.file
5985 if ln -s conf$$.file conf$$ 2>/dev/null; then
5986 # We could just check for DJGPP; but this test a) works b) is more generic
5987 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5988 if test -f conf$$.exe; then
5989 # Don't use ln at all; we don't have any links
5990 as_ln_s='cp -p'
5991 else
5992 as_ln_s='ln -s'
5994 elif ln conf$$.file conf$$ 2>/dev/null; then
5995 as_ln_s=ln
5996 else
5997 as_ln_s='cp -p'
5999 rm -f conf$$ conf$$.exe conf$$.file
6001 as_executable_p="test -f"
6003 # Sed expression to map a string onto a valid CPP name.
6004 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6006 # Sed expression to map a string onto a valid variable name.
6007 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6010 # IFS
6011 # We need space, tab and new line, in precisely that order.
6012 as_nl='
6014 IFS=" $as_nl"
6016 # CDPATH.
6017 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
6019 exec 6>&1
6021 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6022 # report actual input values of CONFIG_FILES etc. instead of their
6023 # values after options handling. Logging --version etc. is OK.
6024 exec 5>>config.log
6026 echo
6027 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6028 ## Running $as_me. ##
6029 _ASBOX
6030 } >&5
6031 cat >&5 <<_CSEOF
6033 This file was extended by $as_me, which was
6034 generated by GNU Autoconf 2.53. Invocation command line was
6036 CONFIG_FILES = $CONFIG_FILES
6037 CONFIG_HEADERS = $CONFIG_HEADERS
6038 CONFIG_LINKS = $CONFIG_LINKS
6039 CONFIG_COMMANDS = $CONFIG_COMMANDS
6040 $ $0 $@
6042 _CSEOF
6043 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6044 echo >&5
6045 _ACEOF
6047 # Files that config.status was made for.
6048 if test -n "$ac_config_files"; then
6049 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6052 if test -n "$ac_config_headers"; then
6053 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6056 if test -n "$ac_config_links"; then
6057 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6060 if test -n "$ac_config_commands"; then
6061 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6064 cat >>$CONFIG_STATUS <<\_ACEOF
6066 ac_cs_usage="\
6067 \`$as_me' instantiates files from templates according to the
6068 current configuration.
6070 Usage: $0 [OPTIONS] [FILE]...
6072 -h, --help print this help, then exit
6073 -V, --version print version number, then exit
6074 -d, --debug don't remove temporary files
6075 --recheck update $as_me by reconfiguring in the same conditions
6076 --file=FILE[:TEMPLATE]
6077 instantiate the configuration file FILE
6078 --header=FILE[:TEMPLATE]
6079 instantiate the configuration header FILE
6081 Configuration files:
6082 $config_files
6084 Configuration headers:
6085 $config_headers
6087 Configuration commands:
6088 $config_commands
6090 Report bugs to <bug-autoconf@gnu.org>."
6091 _ACEOF
6093 cat >>$CONFIG_STATUS <<_ACEOF
6094 ac_cs_version="\\
6095 config.status
6096 configured by $0, generated by GNU Autoconf 2.53,
6097 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6099 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6100 Free Software Foundation, Inc.
6101 This config.status script is free software; the Free Software Foundation
6102 gives unlimited permission to copy, distribute and modify it."
6103 srcdir=$srcdir
6104 INSTALL="$INSTALL"
6105 _ACEOF
6107 cat >>$CONFIG_STATUS <<\_ACEOF
6108 # If no file are specified by the user, then we need to provide default
6109 # value. By we need to know if files were specified by the user.
6110 ac_need_defaults=:
6111 while test $# != 0
6113 case $1 in
6114 --*=*)
6115 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6116 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6117 shift
6118 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
6119 shift
6121 -*);;
6122 *) # This is not an option, so the user has probably given explicit
6123 # arguments.
6124 ac_need_defaults=false;;
6125 esac
6127 case $1 in
6128 # Handling of the options.
6129 _ACEOF
6130 cat >>$CONFIG_STATUS <<_ACEOF
6131 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6132 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6133 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6134 _ACEOF
6135 cat >>$CONFIG_STATUS <<\_ACEOF
6136 --version | --vers* | -V )
6137 echo "$ac_cs_version"; exit 0 ;;
6138 --he | --h)
6139 # Conflict between --help and --header
6140 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6141 Try \`$0 --help' for more information." >&5
6142 echo "$as_me: error: ambiguous option: $1
6143 Try \`$0 --help' for more information." >&2;}
6144 { (exit 1); exit 1; }; };;
6145 --help | --hel | -h )
6146 echo "$ac_cs_usage"; exit 0 ;;
6147 --debug | --d* | -d )
6148 debug=: ;;
6149 --file | --fil | --fi | --f )
6150 shift
6151 CONFIG_FILES="$CONFIG_FILES $1"
6152 ac_need_defaults=false;;
6153 --header | --heade | --head | --hea )
6154 shift
6155 CONFIG_HEADERS="$CONFIG_HEADERS $1"
6156 ac_need_defaults=false;;
6158 # This is an error.
6159 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6160 Try \`$0 --help' for more information." >&5
6161 echo "$as_me: error: unrecognized option: $1
6162 Try \`$0 --help' for more information." >&2;}
6163 { (exit 1); exit 1; }; } ;;
6165 *) ac_config_targets="$ac_config_targets $1" ;;
6167 esac
6168 shift
6169 done
6171 _ACEOF
6173 cat >>$CONFIG_STATUS <<_ACEOF
6175 # INIT-COMMANDS section.
6181 _ACEOF
6185 cat >>$CONFIG_STATUS <<\_ACEOF
6186 for ac_config_target in $ac_config_targets
6188 case "$ac_config_target" in
6189 # Handling of arguments.
6190 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6191 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6192 "pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
6193 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
6194 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6195 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
6196 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6197 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6198 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6199 { (exit 1); exit 1; }; };;
6200 esac
6201 done
6203 # If the user did not use the arguments to specify the items to instantiate,
6204 # then the envvar interface is used. Set only those that are not.
6205 # We use the long form for the default assignment because of an extremely
6206 # bizarre bug on SunOS 4.1.3.
6207 if $ac_need_defaults; then
6208 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6209 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6210 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6213 # Create a temporary directory, and hook for its removal unless debugging.
6214 $debug ||
6216 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6217 trap '{ (exit 1); exit 1; }' 1 2 13 15
6220 # Create a (secure) tmp directory for tmp files.
6221 : ${TMPDIR=/tmp}
6223 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
6224 test -n "$tmp" && test -d "$tmp"
6225 } ||
6227 tmp=$TMPDIR/cs$$-$RANDOM
6228 (umask 077 && mkdir $tmp)
6229 } ||
6231 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6232 { (exit 1); exit 1; }
6235 _ACEOF
6237 cat >>$CONFIG_STATUS <<_ACEOF
6240 # CONFIG_FILES section.
6243 # No need to generate the scripts if there are no CONFIG_FILES.
6244 # This happens for instance when ./config.status config.h
6245 if test -n "\$CONFIG_FILES"; then
6246 # Protect against being on the right side of a sed subst in config.status.
6247 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6248 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6249 s,@SHELL@,$SHELL,;t t
6250 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6251 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6252 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6253 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6254 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6255 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6256 s,@exec_prefix@,$exec_prefix,;t t
6257 s,@prefix@,$prefix,;t t
6258 s,@program_transform_name@,$program_transform_name,;t t
6259 s,@bindir@,$bindir,;t t
6260 s,@sbindir@,$sbindir,;t t
6261 s,@libexecdir@,$libexecdir,;t t
6262 s,@datadir@,$datadir,;t t
6263 s,@sysconfdir@,$sysconfdir,;t t
6264 s,@sharedstatedir@,$sharedstatedir,;t t
6265 s,@localstatedir@,$localstatedir,;t t
6266 s,@libdir@,$libdir,;t t
6267 s,@includedir@,$includedir,;t t
6268 s,@oldincludedir@,$oldincludedir,;t t
6269 s,@infodir@,$infodir,;t t
6270 s,@mandir@,$mandir,;t t
6271 s,@build_alias@,$build_alias,;t t
6272 s,@host_alias@,$host_alias,;t t
6273 s,@target_alias@,$target_alias,;t t
6274 s,@DEFS@,$DEFS,;t t
6275 s,@ECHO_C@,$ECHO_C,;t t
6276 s,@ECHO_N@,$ECHO_N,;t t
6277 s,@ECHO_T@,$ECHO_T,;t t
6278 s,@LIBS@,$LIBS,;t t
6279 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6280 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6281 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6282 s,@PACKAGE@,$PACKAGE,;t t
6283 s,@VERSION@,$VERSION,;t t
6284 s,@ACLOCAL@,$ACLOCAL,;t t
6285 s,@AUTOCONF@,$AUTOCONF,;t t
6286 s,@AUTOMAKE@,$AUTOMAKE,;t t
6287 s,@AUTOHEADER@,$AUTOHEADER,;t t
6288 s,@MAKEINFO@,$MAKEINFO,;t t
6289 s,@SET_MAKE@,$SET_MAKE,;t t
6290 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6291 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6292 s,@MAINT@,$MAINT,;t t
6293 s,@CC@,$CC,;t t
6294 s,@CFLAGS@,$CFLAGS,;t t
6295 s,@LDFLAGS@,$LDFLAGS,;t t
6296 s,@CPPFLAGS@,$CPPFLAGS,;t t
6297 s,@ac_ct_CC@,$ac_ct_CC,;t t
6298 s,@EXEEXT@,$EXEEXT,;t t
6299 s,@OBJEXT@,$OBJEXT,;t t
6300 s,@CPP@,$CPP,;t t
6301 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
6302 s,@PACKAGE_CFLAGS@,$PACKAGE_CFLAGS,;t t
6303 s,@PACKAGE_LIBS@,$PACKAGE_LIBS,;t t
6304 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
6305 s,@RANLIB@,$RANLIB,;t t
6306 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6307 s,@ALLOCA@,$ALLOCA,;t t
6308 s,@USE_NLS@,$USE_NLS,;t t
6309 s,@MSGFMT@,$MSGFMT,;t t
6310 s,@GMSGFMT@,$GMSGFMT,;t t
6311 s,@XGETTEXT@,$XGETTEXT,;t t
6312 s,@CATALOGS@,$CATALOGS,;t t
6313 s,@CATOBJEXT@,$CATOBJEXT,;t t
6314 s,@DATADIRNAME@,$DATADIRNAME,;t t
6315 s,@GMOFILES@,$GMOFILES,;t t
6316 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
6317 s,@INTLDEPS@,$INTLDEPS,;t t
6318 s,@INTLLIBS@,$INTLLIBS,;t t
6319 s,@INTLOBJS@,$INTLOBJS,;t t
6320 s,@POFILES@,$POFILES,;t t
6321 s,@POSUB@,$POSUB,;t t
6322 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
6323 CEOF
6325 _ACEOF
6327 cat >>$CONFIG_STATUS <<\_ACEOF
6328 # Split the substitutions into bite-sized pieces for seds with
6329 # small command number limits, like on Digital OSF/1 and HP-UX.
6330 ac_max_sed_lines=48
6331 ac_sed_frag=1 # Number of current file.
6332 ac_beg=1 # First line for current file.
6333 ac_end=$ac_max_sed_lines # Line after last line for current file.
6334 ac_more_lines=:
6335 ac_sed_cmds=
6336 while $ac_more_lines; do
6337 if test $ac_beg -gt 1; then
6338 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6339 else
6340 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6342 if test ! -s $tmp/subs.frag; then
6343 ac_more_lines=false
6344 else
6345 # The purpose of the label and of the branching condition is to
6346 # speed up the sed processing (if there are no `@' at all, there
6347 # is no need to browse any of the substitutions).
6348 # These are the two extra sed commands mentioned above.
6349 (echo ':t
6350 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6351 if test -z "$ac_sed_cmds"; then
6352 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6353 else
6354 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6356 ac_sed_frag=`expr $ac_sed_frag + 1`
6357 ac_beg=$ac_end
6358 ac_end=`expr $ac_end + $ac_max_sed_lines`
6360 done
6361 if test -z "$ac_sed_cmds"; then
6362 ac_sed_cmds=cat
6364 fi # test -n "$CONFIG_FILES"
6366 _ACEOF
6367 cat >>$CONFIG_STATUS <<\_ACEOF
6368 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6369 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6370 case $ac_file in
6371 - | *:- | *:-:* ) # input from stdin
6372 cat >$tmp/stdin
6373 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6374 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6375 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6376 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6377 * ) ac_file_in=$ac_file.in ;;
6378 esac
6380 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6381 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6382 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6383 X"$ac_file" : 'X\(//\)[^/]' \| \
6384 X"$ac_file" : 'X\(//\)$' \| \
6385 X"$ac_file" : 'X\(/\)' \| \
6386 . : '\(.\)' 2>/dev/null ||
6387 echo X"$ac_file" |
6388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6389 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6390 /^X\(\/\/\)$/{ s//\1/; q; }
6391 /^X\(\/\).*/{ s//\1/; q; }
6392 s/.*/./; q'`
6393 { case "$ac_dir" in
6394 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6395 *) as_incr_dir=.;;
6396 esac
6397 as_dummy="$ac_dir"
6398 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6399 case $as_mkdir_dir in
6400 # Skip DOS drivespec
6401 ?:) as_incr_dir=$as_mkdir_dir ;;
6403 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6404 test -d "$as_incr_dir" ||
6405 mkdir "$as_incr_dir" ||
6406 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6407 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6408 { (exit 1); exit 1; }; }
6410 esac
6411 done; }
6413 ac_builddir=.
6415 if test "$ac_dir" != .; then
6416 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6417 # A "../" for each directory in $ac_dir_suffix.
6418 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6419 else
6420 ac_dir_suffix= ac_top_builddir=
6423 case $srcdir in
6424 .) # No --srcdir option. We are building in place.
6425 ac_srcdir=.
6426 if test -z "$ac_top_builddir"; then
6427 ac_top_srcdir=.
6428 else
6429 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6430 fi ;;
6431 [\\/]* | ?:[\\/]* ) # Absolute path.
6432 ac_srcdir=$srcdir$ac_dir_suffix;
6433 ac_top_srcdir=$srcdir ;;
6434 *) # Relative path.
6435 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6436 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6437 esac
6438 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6439 # absolute.
6440 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6441 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
6442 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6443 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6446 case $INSTALL in
6447 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6448 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6449 esac
6451 if test x"$ac_file" != x-; then
6452 { echo "$as_me:$LINENO: creating $ac_file" >&5
6453 echo "$as_me: creating $ac_file" >&6;}
6454 rm -f "$ac_file"
6456 # Let's still pretend it is `configure' which instantiates (i.e., don't
6457 # use $as_me), people would be surprised to read:
6458 # /* config.h. Generated by config.status. */
6459 if test x"$ac_file" = x-; then
6460 configure_input=
6461 else
6462 configure_input="$ac_file. "
6464 configure_input=$configure_input"Generated from `echo $ac_file_in |
6465 sed 's,.*/,,'` by configure."
6467 # First look for the input files in the build tree, otherwise in the
6468 # src tree.
6469 ac_file_inputs=`IFS=:
6470 for f in $ac_file_in; do
6471 case $f in
6472 -) echo $tmp/stdin ;;
6473 [\\/$]*)
6474 # Absolute (can't be DOS-style, as IFS=:)
6475 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6476 echo "$as_me: error: cannot find input file: $f" >&2;}
6477 { (exit 1); exit 1; }; }
6478 echo $f;;
6479 *) # Relative
6480 if test -f "$f"; then
6481 # Build tree
6482 echo $f
6483 elif test -f "$srcdir/$f"; then
6484 # Source tree
6485 echo $srcdir/$f
6486 else
6487 # /dev/null tree
6488 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6489 echo "$as_me: error: cannot find input file: $f" >&2;}
6490 { (exit 1); exit 1; }; }
6491 fi;;
6492 esac
6493 done` || { (exit 1); exit 1; }
6494 _ACEOF
6495 cat >>$CONFIG_STATUS <<_ACEOF
6496 sed "$ac_vpsub
6497 $extrasub
6498 _ACEOF
6499 cat >>$CONFIG_STATUS <<\_ACEOF
6501 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6502 s,@configure_input@,$configure_input,;t t
6503 s,@srcdir@,$ac_srcdir,;t t
6504 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6505 s,@top_srcdir@,$ac_top_srcdir,;t t
6506 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6507 s,@builddir@,$ac_builddir,;t t
6508 s,@abs_builddir@,$ac_abs_builddir,;t t
6509 s,@top_builddir@,$ac_top_builddir,;t t
6510 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6511 s,@INSTALL@,$ac_INSTALL,;t t
6512 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6513 rm -f $tmp/stdin
6514 if test x"$ac_file" != x-; then
6515 mv $tmp/out $ac_file
6516 else
6517 cat $tmp/out
6518 rm -f $tmp/out
6521 done
6522 _ACEOF
6523 cat >>$CONFIG_STATUS <<\_ACEOF
6526 # CONFIG_HEADER section.
6529 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6530 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6532 # ac_d sets the value in "#define NAME VALUE" lines.
6533 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6534 ac_dB='[ ].*$,\1#\2'
6535 ac_dC=' '
6536 ac_dD=',;t'
6537 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6538 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6539 ac_uB='$,\1#\2define\3'
6540 ac_uC=' '
6541 ac_uD=',;t'
6543 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6544 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6545 case $ac_file in
6546 - | *:- | *:-:* ) # input from stdin
6547 cat >$tmp/stdin
6548 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6549 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6550 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6551 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6552 * ) ac_file_in=$ac_file.in ;;
6553 esac
6555 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6556 echo "$as_me: creating $ac_file" >&6;}
6558 # First look for the input files in the build tree, otherwise in the
6559 # src tree.
6560 ac_file_inputs=`IFS=:
6561 for f in $ac_file_in; do
6562 case $f in
6563 -) echo $tmp/stdin ;;
6564 [\\/$]*)
6565 # Absolute (can't be DOS-style, as IFS=:)
6566 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6567 echo "$as_me: error: cannot find input file: $f" >&2;}
6568 { (exit 1); exit 1; }; }
6569 echo $f;;
6570 *) # Relative
6571 if test -f "$f"; then
6572 # Build tree
6573 echo $f
6574 elif test -f "$srcdir/$f"; then
6575 # Source tree
6576 echo $srcdir/$f
6577 else
6578 # /dev/null tree
6579 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6580 echo "$as_me: error: cannot find input file: $f" >&2;}
6581 { (exit 1); exit 1; }; }
6582 fi;;
6583 esac
6584 done` || { (exit 1); exit 1; }
6585 # Remove the trailing spaces.
6586 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6588 _ACEOF
6590 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6591 # `conftest.undefs', that substitutes the proper values into
6592 # config.h.in to produce config.h. The first handles `#define'
6593 # templates, and the second `#undef' templates.
6594 # And first: Protect against being on the right side of a sed subst in
6595 # config.status. Protect against being in an unquoted here document
6596 # in config.status.
6597 rm -f conftest.defines conftest.undefs
6598 # Using a here document instead of a string reduces the quoting nightmare.
6599 # Putting comments in sed scripts is not portable.
6601 # `end' is used to avoid that the second main sed command (meant for
6602 # 0-ary CPP macros) applies to n-ary macro definitions.
6603 # See the Autoconf documentation for `clear'.
6604 cat >confdef2sed.sed <<\_ACEOF
6605 s/[\\&,]/\\&/g
6606 s,[\\$`],\\&,g
6607 t clear
6608 : clear
6609 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6610 t end
6611 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6612 : end
6613 _ACEOF
6614 # If some macros were called several times there might be several times
6615 # the same #defines, which is useless. Nevertheless, we may not want to
6616 # sort them, since we want the *last* AC-DEFINE to be honored.
6617 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6618 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6619 rm -f confdef2sed.sed
6621 # This sed command replaces #undef with comments. This is necessary, for
6622 # example, in the case of _POSIX_SOURCE, which is predefined and required
6623 # on some systems where configure will not decide to define it.
6624 cat >>conftest.undefs <<\_ACEOF
6625 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6626 _ACEOF
6628 # Break up conftest.defines because some shells have a limit on the size
6629 # of here documents, and old seds have small limits too (100 cmds).
6630 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6631 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6632 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6633 echo ' :' >>$CONFIG_STATUS
6634 rm -f conftest.tail
6635 while grep . conftest.defines >/dev/null
6637 # Write a limited-size here document to $tmp/defines.sed.
6638 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6639 # Speed up: don't consider the non `#define' lines.
6640 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6641 # Work around the forget-to-reset-the-flag bug.
6642 echo 't clr' >>$CONFIG_STATUS
6643 echo ': clr' >>$CONFIG_STATUS
6644 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6645 echo 'CEOF
6646 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6647 rm -f $tmp/in
6648 mv $tmp/out $tmp/in
6649 ' >>$CONFIG_STATUS
6650 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6651 rm -f conftest.defines
6652 mv conftest.tail conftest.defines
6653 done
6654 rm -f conftest.defines
6655 echo ' fi # egrep' >>$CONFIG_STATUS
6656 echo >>$CONFIG_STATUS
6658 # Break up conftest.undefs because some shells have a limit on the size
6659 # of here documents, and old seds have small limits too (100 cmds).
6660 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6661 rm -f conftest.tail
6662 while grep . conftest.undefs >/dev/null
6664 # Write a limited-size here document to $tmp/undefs.sed.
6665 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6666 # Speed up: don't consider the non `#undef'
6667 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6668 # Work around the forget-to-reset-the-flag bug.
6669 echo 't clr' >>$CONFIG_STATUS
6670 echo ': clr' >>$CONFIG_STATUS
6671 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6672 echo 'CEOF
6673 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6674 rm -f $tmp/in
6675 mv $tmp/out $tmp/in
6676 ' >>$CONFIG_STATUS
6677 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6678 rm -f conftest.undefs
6679 mv conftest.tail conftest.undefs
6680 done
6681 rm -f conftest.undefs
6683 cat >>$CONFIG_STATUS <<\_ACEOF
6684 # Let's still pretend it is `configure' which instantiates (i.e., don't
6685 # use $as_me), people would be surprised to read:
6686 # /* config.h. Generated by config.status. */
6687 if test x"$ac_file" = x-; then
6688 echo "/* Generated by configure. */" >$tmp/config.h
6689 else
6690 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6692 cat $tmp/in >>$tmp/config.h
6693 rm -f $tmp/in
6694 if test x"$ac_file" != x-; then
6695 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
6696 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6697 echo "$as_me: $ac_file is unchanged" >&6;}
6698 else
6699 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6700 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6701 X"$ac_file" : 'X\(//\)[^/]' \| \
6702 X"$ac_file" : 'X\(//\)$' \| \
6703 X"$ac_file" : 'X\(/\)' \| \
6704 . : '\(.\)' 2>/dev/null ||
6705 echo X"$ac_file" |
6706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6708 /^X\(\/\/\)$/{ s//\1/; q; }
6709 /^X\(\/\).*/{ s//\1/; q; }
6710 s/.*/./; q'`
6711 { case "$ac_dir" in
6712 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6713 *) as_incr_dir=.;;
6714 esac
6715 as_dummy="$ac_dir"
6716 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6717 case $as_mkdir_dir in
6718 # Skip DOS drivespec
6719 ?:) as_incr_dir=$as_mkdir_dir ;;
6721 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6722 test -d "$as_incr_dir" ||
6723 mkdir "$as_incr_dir" ||
6724 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6725 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6726 { (exit 1); exit 1; }; }
6728 esac
6729 done; }
6731 rm -f $ac_file
6732 mv $tmp/config.h $ac_file
6734 else
6735 cat $tmp/config.h
6736 rm -f $tmp/config.h
6738 done
6739 _ACEOF
6740 cat >>$CONFIG_STATUS <<\_ACEOF
6743 # CONFIG_COMMANDS section.
6745 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6746 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6747 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6748 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6749 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6750 X"$ac_dest" : 'X\(//\)[^/]' \| \
6751 X"$ac_dest" : 'X\(//\)$' \| \
6752 X"$ac_dest" : 'X\(/\)' \| \
6753 . : '\(.\)' 2>/dev/null ||
6754 echo X"$ac_dest" |
6755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6756 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6757 /^X\(\/\/\)$/{ s//\1/; q; }
6758 /^X\(\/\).*/{ s//\1/; q; }
6759 s/.*/./; q'`
6760 ac_builddir=.
6762 if test "$ac_dir" != .; then
6763 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6764 # A "../" for each directory in $ac_dir_suffix.
6765 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6766 else
6767 ac_dir_suffix= ac_top_builddir=
6770 case $srcdir in
6771 .) # No --srcdir option. We are building in place.
6772 ac_srcdir=.
6773 if test -z "$ac_top_builddir"; then
6774 ac_top_srcdir=.
6775 else
6776 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6777 fi ;;
6778 [\\/]* | ?:[\\/]* ) # Absolute path.
6779 ac_srcdir=$srcdir$ac_dir_suffix;
6780 ac_top_srcdir=$srcdir ;;
6781 *) # Relative path.
6782 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6783 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6784 esac
6785 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6786 # absolute.
6787 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6788 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
6789 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6790 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6793 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6794 echo "$as_me: executing $ac_dest commands" >&6;}
6795 case $ac_dest in
6796 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
6797 default-2 ) case "$CONFIG_FILES" in *po/Makefile.in*)
6798 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
6799 esac ;;
6800 esac
6801 done
6802 _ACEOF
6804 cat >>$CONFIG_STATUS <<\_ACEOF
6806 { (exit 0); exit 0; }
6807 _ACEOF
6808 chmod +x $CONFIG_STATUS
6809 ac_clean_files=$ac_clean_files_save
6812 # configure is writing to config.log, and then calls config.status.
6813 # config.status does its own redirection, appending to config.log.
6814 # Unfortunately, on DOS this fails, as config.log is still kept open
6815 # by configure, so config.status won't be able to write to it; its
6816 # output is simply discarded. So we exec the FD to /dev/null,
6817 # effectively closing config.log, so it can be properly (re)opened and
6818 # appended to by config.status. When coming back to configure, we
6819 # need to make the FD available again.
6820 if test "$no_create" != yes; then
6821 ac_cs_success=:
6822 exec 5>/dev/null
6823 $SHELL $CONFIG_STATUS || ac_cs_success=false
6824 exec 5>>config.log
6825 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6826 # would make configure fail if this is the last instruction.
6827 $ac_cs_success || { (exit 1); exit 1; }