Annotation of OpenXM/src/kxx/configure, Revision 1.5
1.1 takayama 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.3 takayama 3: # Generated by GNU Autoconf 2.59.
1.1 takayama 4: #
1.3 takayama 5: # Copyright (C) 2003 Free Software Foundation, Inc.
1.1 takayama 6: # This configure script is free software; the Free Software Foundation
7: # gives unlimited permission to copy, distribute and modify it.
1.2 takayama 8: ## --------------------- ##
9: ## M4sh Initialization. ##
10: ## --------------------- ##
11:
12: # Be Bourne compatible
13: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14: emulate sh
15: NULLCMD=:
1.3 takayama 16: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17: # is contrary to our usage. Disable this feature.
18: alias -g '${1+"$@"}'='"$@"'
1.2 takayama 19: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20: set -o posix
21: fi
1.3 takayama 22: DUALCASE=1; export DUALCASE # for MKS sh
1.2 takayama 23:
24: # Support unset when possible.
1.3 takayama 25: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.2 takayama 26: as_unset=unset
27: else
28: as_unset=false
29: fi
30:
1.3 takayama 31:
32: # Work around bugs in pre-3.0 UWIN ksh.
33: $as_unset ENV MAIL MAILPATH
34: PS1='$ '
35: PS2='> '
36: PS4='+ '
37:
38: # NLS nuisances.
39: for as_var in \
40: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42: LC_TELEPHONE LC_TIME
43: do
44: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45: eval $as_var=C; export $as_var
46: else
47: $as_unset $as_var
48: fi
49: done
50:
51: # Required to use basename.
52: if expr a : '\(a\)' >/dev/null 2>&1; then
53: as_expr=expr
54: else
55: as_expr=false
56: fi
57:
58: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59: as_basename=basename
60: else
61: as_basename=false
62: fi
1.2 takayama 63:
64:
65: # Name of the executable.
1.3 takayama 66: as_me=`$as_basename "$0" ||
1.2 takayama 67: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68: X"$0" : 'X\(//\)$' \| \
69: X"$0" : 'X\(/\)$' \| \
70: . : '\(.\)' 2>/dev/null ||
71: echo X/"$0" |
72: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73: /^X\/\(\/\/\)$/{ s//\1/; q; }
74: /^X\/\(\/\).*/{ s//\1/; q; }
75: s/.*/./; q'`
76:
1.3 takayama 77:
1.2 takayama 78: # PATH needs CR, and LINENO needs CR and PATH.
79: # Avoid depending upon Character Ranges.
80: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83: as_cr_digits='0123456789'
84: as_cr_alnum=$as_cr_Letters$as_cr_digits
85:
86: # The user is always right.
87: if test "${PATH_SEPARATOR+set}" != set; then
1.3 takayama 88: echo "#! /bin/sh" >conf$$.sh
89: echo "exit 0" >>conf$$.sh
90: chmod +x conf$$.sh
91: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1.2 takayama 92: PATH_SEPARATOR=';'
93: else
94: PATH_SEPARATOR=:
95: fi
1.3 takayama 96: rm -f conf$$.sh
1.2 takayama 97: fi
98:
99:
100: as_lineno_1=$LINENO
101: as_lineno_2=$LINENO
102: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103: test "x$as_lineno_1" != "x$as_lineno_2" &&
104: test "x$as_lineno_3" = "x$as_lineno_2" || {
105: # Find who we are. Look in the path if we contain no path at all
106: # relative or not.
107: case $0 in
108: *[\\/]* ) as_myself=$0 ;;
109: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110: for as_dir in $PATH
111: do
112: IFS=$as_save_IFS
113: test -z "$as_dir" && as_dir=.
114: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115: done
116:
117: ;;
118: esac
119: # We did not find ourselves, most probably we were run as `sh COMMAND'
120: # in which case we are not to be found in the path.
121: if test "x$as_myself" = x; then
122: as_myself=$0
123: fi
124: if test ! -f "$as_myself"; then
125: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126: { (exit 1); exit 1; }; }
127: fi
128: case $CONFIG_SHELL in
129: '')
130: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132: do
133: IFS=$as_save_IFS
134: test -z "$as_dir" && as_dir=.
135: for as_base in sh bash ksh sh5; do
136: case $as_dir in
137: /*)
138: if ("$as_dir/$as_base" -c '
139: as_lineno_1=$LINENO
140: as_lineno_2=$LINENO
141: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142: test "x$as_lineno_1" != "x$as_lineno_2" &&
143: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
1.3 takayama 144: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
1.2 takayama 146: CONFIG_SHELL=$as_dir/$as_base
147: export CONFIG_SHELL
148: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149: fi;;
150: esac
151: done
152: done
153: ;;
154: esac
155:
156: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157: # uniformly replaced by the line number. The first 'sed' inserts a
158: # line-number line before each line; the second 'sed' does the real
159: # work. The second script uses 'N' to pair each line-number line
160: # with the numbered line, and appends trailing '-' during
161: # substitution so that $LINENO is not a special case at line end.
162: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164: sed '=' <$as_myself |
165: sed '
166: N
167: s,$,-,
168: : loop
169: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170: t loop
171: s,-$,,
172: s,^['$as_cr_digits']*\n,,
173: ' >$as_me.lineno &&
174: chmod +x $as_me.lineno ||
175: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176: { (exit 1); exit 1; }; }
177:
178: # Don't try to exec as it changes $[0], causing all sort of problems
179: # (the dirname of $[0] is not the place where we might find the
180: # original and so on. Autoconf is especially sensible to this).
181: . ./$as_me.lineno
182: # Exit status is that of the last command.
183: exit
184: }
185:
186:
187: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188: *c*,-n*) ECHO_N= ECHO_C='
189: ' ECHO_T=' ' ;;
190: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192: esac
193:
194: if expr a : '\(a\)' >/dev/null 2>&1; then
195: as_expr=expr
196: else
197: as_expr=false
198: fi
199:
200: rm -f conf$$ conf$$.exe conf$$.file
201: echo >conf$$.file
202: if ln -s conf$$.file conf$$ 2>/dev/null; then
203: # We could just check for DJGPP; but this test a) works b) is more generic
204: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205: if test -f conf$$.exe; then
206: # Don't use ln at all; we don't have any links
207: as_ln_s='cp -p'
208: else
209: as_ln_s='ln -s'
210: fi
211: elif ln conf$$.file conf$$ 2>/dev/null; then
212: as_ln_s=ln
213: else
214: as_ln_s='cp -p'
215: fi
216: rm -f conf$$ conf$$.exe conf$$.file
217:
1.3 takayama 218: if mkdir -p . 2>/dev/null; then
219: as_mkdir_p=:
220: else
221: test -d ./-p && rmdir ./-p
222: as_mkdir_p=false
223: fi
224:
1.2 takayama 225: as_executable_p="test -f"
226:
227: # Sed expression to map a string onto a valid CPP name.
1.3 takayama 228: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.2 takayama 229:
230: # Sed expression to map a string onto a valid variable name.
1.3 takayama 231: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.2 takayama 232:
233:
234: # IFS
235: # We need space, tab and new line, in precisely that order.
236: as_nl='
237: '
238: IFS=" $as_nl"
239:
240: # CDPATH.
1.3 takayama 241: $as_unset CDPATH
1.2 takayama 242:
243:
244: # Name of the host.
245: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246: # so uname gets run too.
247: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248:
249: exec 6>&1
250:
251: #
252: # Initializations.
253: #
1.1 takayama 254: ac_default_prefix=/usr/local
1.3 takayama 255: ac_config_libobj_dir=.
1.2 takayama 256: cross_compiling=no
257: subdirs=
258: MFLAGS=
259: MAKEFLAGS=
260: SHELL=${CONFIG_SHELL-/bin/sh}
261:
262: # Maximum number of lines to put in a shell here document.
263: # This variable seems obsolete. It should probably be removed, and
264: # only ac_max_sed_lines should be used.
265: : ${ac_max_here_lines=38}
266:
267: # Identity of this package.
268: PACKAGE_NAME=
269: PACKAGE_TARNAME=
270: PACKAGE_VERSION=
271: PACKAGE_STRING=
272: PACKAGE_BUGREPORT=
273:
274: ac_unique_file="oxmain.c"
1.3 takayama 275: # Factoring default headers for most tests.
276: ac_includes_default="\
277: #include <stdio.h>
278: #if HAVE_SYS_TYPES_H
279: # include <sys/types.h>
280: #endif
281: #if HAVE_SYS_STAT_H
282: # include <sys/stat.h>
283: #endif
284: #if STDC_HEADERS
285: # include <stdlib.h>
286: # include <stddef.h>
287: #else
288: # if HAVE_STDLIB_H
289: # include <stdlib.h>
290: # endif
291: #endif
292: #if HAVE_STRING_H
293: # if !STDC_HEADERS && HAVE_MEMORY_H
294: # include <memory.h>
295: # endif
296: # include <string.h>
297: #endif
298: #if HAVE_STRINGS_H
299: # include <strings.h>
300: #endif
301: #if HAVE_INTTYPES_H
302: # include <inttypes.h>
303: #else
304: # if HAVE_STDINT_H
305: # include <stdint.h>
306: # endif
307: #endif
308: #if HAVE_UNISTD_H
309: # include <unistd.h>
310: #endif"
311:
1.4 takayama 312: ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB CFLAG2 CPP EGREP CFLAG2p LIBOBJS LTLIBOBJS'
1.3 takayama 313: ac_subst_files=''
1.1 takayama 314:
315: # Initialize some variables set by options.
1.2 takayama 316: ac_init_help=
317: ac_init_version=false
1.1 takayama 318: # The variables have the same names as the options, with
319: # dashes changed to underlines.
1.2 takayama 320: cache_file=/dev/null
1.1 takayama 321: exec_prefix=NONE
322: no_create=
323: no_recursion=
324: prefix=NONE
325: program_prefix=NONE
326: program_suffix=NONE
327: program_transform_name=s,x,x,
328: silent=
329: site=
330: srcdir=
331: verbose=
332: x_includes=NONE
333: x_libraries=NONE
1.2 takayama 334:
335: # Installation directory options.
336: # These are left unexpanded so users can "make install exec_prefix=/foo"
337: # and all the variables that are supposed to be based on exec_prefix
338: # by default will actually change.
339: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1 takayama 340: bindir='${exec_prefix}/bin'
341: sbindir='${exec_prefix}/sbin'
342: libexecdir='${exec_prefix}/libexec'
343: datadir='${prefix}/share'
344: sysconfdir='${prefix}/etc'
345: sharedstatedir='${prefix}/com'
346: localstatedir='${prefix}/var'
347: libdir='${exec_prefix}/lib'
348: includedir='${prefix}/include'
349: oldincludedir='/usr/include'
350: infodir='${prefix}/info'
351: mandir='${prefix}/man'
352:
353: ac_prev=
354: for ac_option
355: do
356: # If the previous option needs an argument, assign it.
357: if test -n "$ac_prev"; then
358: eval "$ac_prev=\$ac_option"
359: ac_prev=
360: continue
361: fi
362:
1.2 takayama 363: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 takayama 364:
365: # Accept the important Cygnus configure options, so we can diagnose typos.
366:
1.2 takayama 367: case $ac_option in
1.1 takayama 368:
369: -bindir | --bindir | --bindi | --bind | --bin | --bi)
370: ac_prev=bindir ;;
371: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.2 takayama 372: bindir=$ac_optarg ;;
1.1 takayama 373:
374: -build | --build | --buil | --bui | --bu)
1.2 takayama 375: ac_prev=build_alias ;;
1.1 takayama 376: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.2 takayama 377: build_alias=$ac_optarg ;;
1.1 takayama 378:
379: -cache-file | --cache-file | --cache-fil | --cache-fi \
380: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381: ac_prev=cache_file ;;
382: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.2 takayama 384: cache_file=$ac_optarg ;;
385:
386: --config-cache | -C)
387: cache_file=config.cache ;;
1.1 takayama 388:
389: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390: ac_prev=datadir ;;
391: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392: | --da=*)
1.2 takayama 393: datadir=$ac_optarg ;;
1.1 takayama 394:
395: -disable-* | --disable-*)
1.2 takayama 396: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 takayama 397: # Reject names that are not valid shell variable names.
1.2 takayama 398: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400: { (exit 1); exit 1; }; }
401: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402: eval "enable_$ac_feature=no" ;;
1.1 takayama 403:
404: -enable-* | --enable-*)
1.2 takayama 405: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 takayama 406: # Reject names that are not valid shell variable names.
1.2 takayama 407: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409: { (exit 1); exit 1; }; }
410: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411: case $ac_option in
412: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 takayama 413: *) ac_optarg=yes ;;
414: esac
1.2 takayama 415: eval "enable_$ac_feature='$ac_optarg'" ;;
1.1 takayama 416:
417: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419: | --exec | --exe | --ex)
420: ac_prev=exec_prefix ;;
421: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423: | --exec=* | --exe=* | --ex=*)
1.2 takayama 424: exec_prefix=$ac_optarg ;;
1.1 takayama 425:
426: -gas | --gas | --ga | --g)
427: # Obsolete; use --with-gas.
428: with_gas=yes ;;
429:
1.2 takayama 430: -help | --help | --hel | --he | -h)
431: ac_init_help=long ;;
432: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433: ac_init_help=recursive ;;
434: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435: ac_init_help=short ;;
1.1 takayama 436:
437: -host | --host | --hos | --ho)
1.2 takayama 438: ac_prev=host_alias ;;
1.1 takayama 439: -host=* | --host=* | --hos=* | --ho=*)
1.2 takayama 440: host_alias=$ac_optarg ;;
1.1 takayama 441:
442: -includedir | --includedir | --includedi | --included | --include \
443: | --includ | --inclu | --incl | --inc)
444: ac_prev=includedir ;;
445: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.2 takayama 447: includedir=$ac_optarg ;;
1.1 takayama 448:
449: -infodir | --infodir | --infodi | --infod | --info | --inf)
450: ac_prev=infodir ;;
451: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.2 takayama 452: infodir=$ac_optarg ;;
1.1 takayama 453:
454: -libdir | --libdir | --libdi | --libd)
455: ac_prev=libdir ;;
456: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.2 takayama 457: libdir=$ac_optarg ;;
1.1 takayama 458:
459: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460: | --libexe | --libex | --libe)
461: ac_prev=libexecdir ;;
462: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463: | --libexe=* | --libex=* | --libe=*)
1.2 takayama 464: libexecdir=$ac_optarg ;;
1.1 takayama 465:
466: -localstatedir | --localstatedir | --localstatedi | --localstated \
467: | --localstate | --localstat | --localsta | --localst \
468: | --locals | --local | --loca | --loc | --lo)
469: ac_prev=localstatedir ;;
470: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.2 takayama 473: localstatedir=$ac_optarg ;;
1.1 takayama 474:
475: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476: ac_prev=mandir ;;
477: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.2 takayama 478: mandir=$ac_optarg ;;
1.1 takayama 479:
480: -nfp | --nfp | --nf)
481: # Obsolete; use --without-fp.
482: with_fp=no ;;
483:
484: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.2 takayama 485: | --no-cr | --no-c | -n)
1.1 takayama 486: no_create=yes ;;
487:
488: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490: no_recursion=yes ;;
491:
492: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494: | --oldin | --oldi | --old | --ol | --o)
495: ac_prev=oldincludedir ;;
496: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.2 takayama 499: oldincludedir=$ac_optarg ;;
1.1 takayama 500:
501: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502: ac_prev=prefix ;;
503: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.2 takayama 504: prefix=$ac_optarg ;;
1.1 takayama 505:
506: -program-prefix | --program-prefix | --program-prefi | --program-pref \
507: | --program-pre | --program-pr | --program-p)
508: ac_prev=program_prefix ;;
509: -program-prefix=* | --program-prefix=* | --program-prefi=* \
510: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.2 takayama 511: program_prefix=$ac_optarg ;;
1.1 takayama 512:
513: -program-suffix | --program-suffix | --program-suffi | --program-suff \
514: | --program-suf | --program-su | --program-s)
515: ac_prev=program_suffix ;;
516: -program-suffix=* | --program-suffix=* | --program-suffi=* \
517: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.2 takayama 518: program_suffix=$ac_optarg ;;
1.1 takayama 519:
520: -program-transform-name | --program-transform-name \
521: | --program-transform-nam | --program-transform-na \
522: | --program-transform-n | --program-transform- \
523: | --program-transform | --program-transfor \
524: | --program-transfo | --program-transf \
525: | --program-trans | --program-tran \
526: | --progr-tra | --program-tr | --program-t)
527: ac_prev=program_transform_name ;;
528: -program-transform-name=* | --program-transform-name=* \
529: | --program-transform-nam=* | --program-transform-na=* \
530: | --program-transform-n=* | --program-transform-=* \
531: | --program-transform=* | --program-transfor=* \
532: | --program-transfo=* | --program-transf=* \
533: | --program-trans=* | --program-tran=* \
534: | --progr-tra=* | --program-tr=* | --program-t=*)
1.2 takayama 535: program_transform_name=$ac_optarg ;;
1.1 takayama 536:
537: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538: | -silent | --silent | --silen | --sile | --sil)
539: silent=yes ;;
540:
541: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542: ac_prev=sbindir ;;
543: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544: | --sbi=* | --sb=*)
1.2 takayama 545: sbindir=$ac_optarg ;;
1.1 takayama 546:
547: -sharedstatedir | --sharedstatedir | --sharedstatedi \
548: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549: | --sharedst | --shareds | --shared | --share | --shar \
550: | --sha | --sh)
551: ac_prev=sharedstatedir ;;
552: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555: | --sha=* | --sh=*)
1.2 takayama 556: sharedstatedir=$ac_optarg ;;
1.1 takayama 557:
558: -site | --site | --sit)
559: ac_prev=site ;;
560: -site=* | --site=* | --sit=*)
1.2 takayama 561: site=$ac_optarg ;;
1.1 takayama 562:
563: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564: ac_prev=srcdir ;;
565: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.2 takayama 566: srcdir=$ac_optarg ;;
1.1 takayama 567:
568: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569: | --syscon | --sysco | --sysc | --sys | --sy)
570: ac_prev=sysconfdir ;;
571: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.2 takayama 573: sysconfdir=$ac_optarg ;;
1.1 takayama 574:
575: -target | --target | --targe | --targ | --tar | --ta | --t)
1.2 takayama 576: ac_prev=target_alias ;;
1.1 takayama 577: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.2 takayama 578: target_alias=$ac_optarg ;;
1.1 takayama 579:
580: -v | -verbose | --verbose | --verbos | --verbo | --verb)
581: verbose=yes ;;
582:
1.2 takayama 583: -version | --version | --versio | --versi | --vers | -V)
584: ac_init_version=: ;;
1.1 takayama 585:
586: -with-* | --with-*)
1.2 takayama 587: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 takayama 588: # Reject names that are not valid shell variable names.
1.2 takayama 589: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590: { echo "$as_me: error: invalid package name: $ac_package" >&2
591: { (exit 1); exit 1; }; }
1.1 takayama 592: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.2 takayama 593: case $ac_option in
594: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 takayama 595: *) ac_optarg=yes ;;
596: esac
1.2 takayama 597: eval "with_$ac_package='$ac_optarg'" ;;
1.1 takayama 598:
599: -without-* | --without-*)
1.2 takayama 600: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 takayama 601: # Reject names that are not valid shell variable names.
1.2 takayama 602: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603: { echo "$as_me: error: invalid package name: $ac_package" >&2
604: { (exit 1); exit 1; }; }
605: ac_package=`echo $ac_package | sed 's/-/_/g'`
606: eval "with_$ac_package=no" ;;
1.1 takayama 607:
608: --x)
609: # Obsolete; use --with-x.
610: with_x=yes ;;
611:
612: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613: | --x-incl | --x-inc | --x-in | --x-i)
614: ac_prev=x_includes ;;
615: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.2 takayama 617: x_includes=$ac_optarg ;;
1.1 takayama 618:
619: -x-libraries | --x-libraries | --x-librarie | --x-librari \
620: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621: ac_prev=x_libraries ;;
622: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.2 takayama 624: x_libraries=$ac_optarg ;;
1.1 takayama 625:
1.2 takayama 626: -*) { echo "$as_me: error: unrecognized option: $ac_option
627: Try \`$0 --help' for more information." >&2
628: { (exit 1); exit 1; }; }
1.1 takayama 629: ;;
630:
1.2 takayama 631: *=*)
632: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633: # Reject names that are not valid shell variable names.
634: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636: { (exit 1); exit 1; }; }
637: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638: eval "$ac_envvar='$ac_optarg'"
639: export $ac_envvar ;;
640:
1.1 takayama 641: *)
1.2 takayama 642: # FIXME: should be removed in autoconf 3.0.
643: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 takayama 647: ;;
648:
649: esac
650: done
651:
652: if test -n "$ac_prev"; then
1.2 takayama 653: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654: { echo "$as_me: error: missing argument to $ac_option" >&2
655: { (exit 1); exit 1; }; }
1.1 takayama 656: fi
657:
1.2 takayama 658: # Be sure to have absolute paths.
659: for ac_var in exec_prefix prefix
660: do
661: eval ac_val=$`echo $ac_var`
662: case $ac_val in
663: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665: { (exit 1); exit 1; }; };;
666: esac
667: done
1.1 takayama 668:
1.2 takayama 669: # Be sure to have absolute paths.
670: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1.3 takayama 671: localstatedir libdir includedir oldincludedir infodir mandir
1.1 takayama 672: do
1.2 takayama 673: eval ac_val=$`echo $ac_var`
674: case $ac_val in
675: [\\/$]* | ?:[\\/]* ) ;;
676: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677: { (exit 1); exit 1; }; };;
1.1 takayama 678: esac
679: done
680:
1.2 takayama 681: # There might be people who depend on the old broken behavior: `$host'
682: # used to hold the argument of --host etc.
683: # FIXME: To remove some day.
684: build=$build_alias
685: host=$host_alias
686: target=$target_alias
687:
688: # FIXME: To remove some day.
689: if test "x$host_alias" != x; then
690: if test "x$build_alias" = x; then
691: cross_compiling=maybe
692: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693: If a cross compiler is detected then cross compile mode will be used." >&2
694: elif test "x$build_alias" != "x$host_alias"; then
695: cross_compiling=yes
696: fi
697: fi
698:
699: ac_tool_prefix=
700: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 takayama 701:
1.2 takayama 702: test "$silent" = yes && exec 6>/dev/null
1.1 takayama 703:
704:
705: # Find the source files, if location was not specified.
706: if test -z "$srcdir"; then
707: ac_srcdir_defaulted=yes
708: # Try the directory containing this script, then its parent.
1.2 takayama 709: ac_confdir=`(dirname "$0") 2>/dev/null ||
710: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.3 takayama 711: X"$0" : 'X\(//\)[^/]' \| \
712: X"$0" : 'X\(//\)$' \| \
713: X"$0" : 'X\(/\)' \| \
714: . : '\(.\)' 2>/dev/null ||
1.2 takayama 715: echo X"$0" |
716: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718: /^X\(\/\/\)$/{ s//\1/; q; }
719: /^X\(\/\).*/{ s//\1/; q; }
720: s/.*/./; q'`
1.1 takayama 721: srcdir=$ac_confdir
722: if test ! -r $srcdir/$ac_unique_file; then
723: srcdir=..
724: fi
725: else
726: ac_srcdir_defaulted=no
727: fi
728: if test ! -r $srcdir/$ac_unique_file; then
729: if test "$ac_srcdir_defaulted" = yes; then
1.2 takayama 730: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731: { (exit 1); exit 1; }; }
1.1 takayama 732: else
1.2 takayama 733: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734: { (exit 1); exit 1; }; }
1.1 takayama 735: fi
736: fi
1.3 takayama 737: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739: { (exit 1); exit 1; }; }
1.2 takayama 740: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741: ac_env_build_alias_set=${build_alias+set}
742: ac_env_build_alias_value=$build_alias
743: ac_cv_env_build_alias_set=${build_alias+set}
744: ac_cv_env_build_alias_value=$build_alias
745: ac_env_host_alias_set=${host_alias+set}
746: ac_env_host_alias_value=$host_alias
747: ac_cv_env_host_alias_set=${host_alias+set}
748: ac_cv_env_host_alias_value=$host_alias
749: ac_env_target_alias_set=${target_alias+set}
750: ac_env_target_alias_value=$target_alias
751: ac_cv_env_target_alias_set=${target_alias+set}
752: ac_cv_env_target_alias_value=$target_alias
753: ac_env_CC_set=${CC+set}
754: ac_env_CC_value=$CC
755: ac_cv_env_CC_set=${CC+set}
756: ac_cv_env_CC_value=$CC
757: ac_env_CFLAGS_set=${CFLAGS+set}
758: ac_env_CFLAGS_value=$CFLAGS
759: ac_cv_env_CFLAGS_set=${CFLAGS+set}
760: ac_cv_env_CFLAGS_value=$CFLAGS
761: ac_env_LDFLAGS_set=${LDFLAGS+set}
762: ac_env_LDFLAGS_value=$LDFLAGS
763: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764: ac_cv_env_LDFLAGS_value=$LDFLAGS
765: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766: ac_env_CPPFLAGS_value=$CPPFLAGS
767: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
1.3 takayama 769: ac_env_CPP_set=${CPP+set}
770: ac_env_CPP_value=$CPP
771: ac_cv_env_CPP_set=${CPP+set}
772: ac_cv_env_CPP_value=$CPP
1.2 takayama 773:
774: #
775: # Report the --help message.
776: #
777: if test "$ac_init_help" = "long"; then
778: # Omit some internal or obsolete options to make the list less imposing.
779: # This message is too long to be a string in the A/UX 3.1 sh.
780: cat <<_ACEOF
781: \`configure' configures this package to adapt to many kinds of systems.
782:
783: Usage: $0 [OPTION]... [VAR=VALUE]...
784:
785: To assign environment variables (e.g., CC, CFLAGS...), specify them as
786: VAR=VALUE. See below for descriptions of some of the useful variables.
787:
788: Defaults for the options are specified in brackets.
789:
790: Configuration:
791: -h, --help display this help and exit
792: --help=short display options specific to this package
793: --help=recursive display the short help of all the included packages
794: -V, --version display version information and exit
795: -q, --quiet, --silent do not print \`checking...' messages
796: --cache-file=FILE cache test results in FILE [disabled]
797: -C, --config-cache alias for \`--cache-file=config.cache'
798: -n, --no-create do not create output files
799: --srcdir=DIR find the sources in DIR [configure dir or \`..']
800:
801: _ACEOF
802:
803: cat <<_ACEOF
804: Installation directories:
805: --prefix=PREFIX install architecture-independent files in PREFIX
1.3 takayama 806: [$ac_default_prefix]
1.2 takayama 807: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.3 takayama 808: [PREFIX]
1.2 takayama 809:
810: By default, \`make install' will install all the files in
811: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813: for instance \`--prefix=\$HOME'.
814:
815: For better control, use the options below.
816:
817: Fine tuning of the installation directories:
818: --bindir=DIR user executables [EPREFIX/bin]
819: --sbindir=DIR system admin executables [EPREFIX/sbin]
820: --libexecdir=DIR program executables [EPREFIX/libexec]
821: --datadir=DIR read-only architecture-independent data [PREFIX/share]
822: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825: --libdir=DIR object code libraries [EPREFIX/lib]
826: --includedir=DIR C header files [PREFIX/include]
827: --oldincludedir=DIR C header files for non-gcc [/usr/include]
828: --infodir=DIR info documentation [PREFIX/info]
829: --mandir=DIR man documentation [PREFIX/man]
830: _ACEOF
831:
832: cat <<\_ACEOF
833: _ACEOF
834: fi
835:
836: if test -n "$ac_init_help"; then
837:
838: cat <<\_ACEOF
839:
840: Some influential environment variables:
841: CC C compiler command
842: CFLAGS C compiler flags
843: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
844: nonstandard directory <lib dir>
845: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
846: headers in a nonstandard directory <include dir>
1.3 takayama 847: CPP C preprocessor
1.2 takayama 848:
849: Use these variables to override the choices made by `configure' or to help
850: it to find libraries and programs with nonstandard names/locations.
851:
852: _ACEOF
853: fi
854:
855: if test "$ac_init_help" = "recursive"; then
856: # If there are subdirs, report their specific --help.
857: ac_popdir=`pwd`
858: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
859: test -d $ac_dir || continue
860: ac_builddir=.
861:
862: if test "$ac_dir" != .; then
863: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
864: # A "../" for each directory in $ac_dir_suffix.
865: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
866: else
867: ac_dir_suffix= ac_top_builddir=
868: fi
869:
870: case $srcdir in
871: .) # No --srcdir option. We are building in place.
872: ac_srcdir=.
873: if test -z "$ac_top_builddir"; then
874: ac_top_srcdir=.
875: else
876: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
877: fi ;;
878: [\\/]* | ?:[\\/]* ) # Absolute path.
879: ac_srcdir=$srcdir$ac_dir_suffix;
880: ac_top_srcdir=$srcdir ;;
881: *) # Relative path.
882: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
883: ac_top_srcdir=$ac_top_builddir$srcdir ;;
884: esac
1.3 takayama 885:
886: # Do not use `cd foo && pwd` to compute absolute paths, because
887: # the directories may not exist.
888: case `pwd` in
889: .) ac_abs_builddir="$ac_dir";;
890: *)
891: case "$ac_dir" in
892: .) ac_abs_builddir=`pwd`;;
893: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
894: *) ac_abs_builddir=`pwd`/"$ac_dir";;
895: esac;;
896: esac
897: case $ac_abs_builddir in
898: .) ac_abs_top_builddir=${ac_top_builddir}.;;
899: *)
900: case ${ac_top_builddir}. in
901: .) ac_abs_top_builddir=$ac_abs_builddir;;
902: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
903: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
904: esac;;
905: esac
906: case $ac_abs_builddir in
907: .) ac_abs_srcdir=$ac_srcdir;;
908: *)
909: case $ac_srcdir in
910: .) ac_abs_srcdir=$ac_abs_builddir;;
911: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
912: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
913: esac;;
914: esac
915: case $ac_abs_builddir in
916: .) ac_abs_top_srcdir=$ac_top_srcdir;;
917: *)
918: case $ac_top_srcdir in
919: .) ac_abs_top_srcdir=$ac_abs_builddir;;
920: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
921: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
922: esac;;
923: esac
1.2 takayama 924:
925: cd $ac_dir
926: # Check for guested configure; otherwise get Cygnus style configure.
927: if test -f $ac_srcdir/configure.gnu; then
928: echo
929: $SHELL $ac_srcdir/configure.gnu --help=recursive
930: elif test -f $ac_srcdir/configure; then
931: echo
932: $SHELL $ac_srcdir/configure --help=recursive
933: elif test -f $ac_srcdir/configure.ac ||
1.3 takayama 934: test -f $ac_srcdir/configure.in; then
1.2 takayama 935: echo
936: $ac_configure --help
937: else
938: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
939: fi
940: cd $ac_popdir
941: done
942: fi
943:
944: test -n "$ac_init_help" && exit 0
945: if $ac_init_version; then
946: cat <<\_ACEOF
947:
1.3 takayama 948: Copyright (C) 2003 Free Software Foundation, Inc.
1.2 takayama 949: This configure script is free software; the Free Software Foundation
950: gives unlimited permission to copy, distribute and modify it.
951: _ACEOF
952: exit 0
953: fi
954: exec 5>config.log
955: cat >&5 <<_ACEOF
956: This file contains any messages produced by compilers while
957: running configure, to aid debugging if configure makes a mistake.
958:
959: It was created by $as_me, which was
1.3 takayama 960: generated by GNU Autoconf 2.59. Invocation command line was
1.2 takayama 961:
962: $ $0 $@
963:
964: _ACEOF
965: {
966: cat <<_ASUNAME
967: ## --------- ##
968: ## Platform. ##
969: ## --------- ##
970:
971: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
972: uname -m = `(uname -m) 2>/dev/null || echo unknown`
973: uname -r = `(uname -r) 2>/dev/null || echo unknown`
974: uname -s = `(uname -s) 2>/dev/null || echo unknown`
975: uname -v = `(uname -v) 2>/dev/null || echo unknown`
976:
977: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
978: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
979:
980: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
981: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
982: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
983: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
984: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
985: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
986: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
987:
988: _ASUNAME
989:
990: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
991: for as_dir in $PATH
992: do
993: IFS=$as_save_IFS
994: test -z "$as_dir" && as_dir=.
995: echo "PATH: $as_dir"
996: done
997:
998: } >&5
999:
1000: cat >&5 <<_ACEOF
1001:
1002:
1003: ## ----------- ##
1004: ## Core tests. ##
1005: ## ----------- ##
1006:
1007: _ACEOF
1008:
1009:
1010: # Keep a trace of the command line.
1011: # Strip out --no-create and --no-recursion so they do not pile up.
1.3 takayama 1012: # Strip out --silent because we don't want to record it for future runs.
1.2 takayama 1013: # Also quote any args containing shell meta-characters.
1.3 takayama 1014: # Make two passes to allow for proper duplicate-argument suppression.
1.2 takayama 1015: ac_configure_args=
1.3 takayama 1016: ac_configure_args0=
1017: ac_configure_args1=
1.2 takayama 1018: ac_sep=
1.3 takayama 1019: ac_must_keep_next=false
1020: for ac_pass in 1 2
1.2 takayama 1021: do
1.3 takayama 1022: for ac_arg
1023: do
1024: case $ac_arg in
1025: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1026: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027: | -silent | --silent | --silen | --sile | --sil)
1028: continue ;;
1029: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1030: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1031: esac
1032: case $ac_pass in
1033: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1034: 2)
1035: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1036: if test $ac_must_keep_next = true; then
1037: ac_must_keep_next=false # Got value, back to normal.
1038: else
1039: case $ac_arg in
1040: *=* | --config-cache | -C | -disable-* | --disable-* \
1041: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1042: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1043: | -with-* | --with-* | -without-* | --without-* | --x)
1044: case "$ac_configure_args0 " in
1045: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1046: esac
1047: ;;
1048: -* ) ac_must_keep_next=true ;;
1049: esac
1050: fi
1051: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1052: # Get rid of the leading space.
1053: ac_sep=" "
1054: ;;
1055: esac
1056: done
1.2 takayama 1057: done
1.3 takayama 1058: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1059: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.2 takayama 1060:
1061: # When interrupted or exit'd, cleanup temporary files, and complete
1062: # config.log. We remove comments because anyway the quotes in there
1063: # would cause problems or look ugly.
1064: # WARNING: Be sure not to use single quotes in there, as some shells,
1065: # such as our DU 5.0 friend, will then `close' the trap.
1066: trap 'exit_status=$?
1067: # Save into config.log some information that might help in debugging.
1068: {
1069: echo
1.3 takayama 1070:
1.2 takayama 1071: cat <<\_ASBOX
1072: ## ---------------- ##
1073: ## Cache variables. ##
1074: ## ---------------- ##
1075: _ASBOX
1076: echo
1077: # The following way of writing the cache mishandles newlines in values,
1078: {
1079: (set) 2>&1 |
1080: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1081: *ac_space=\ *)
1082: sed -n \
1.3 takayama 1083: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1084: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1.2 takayama 1085: ;;
1086: *)
1087: sed -n \
1.3 takayama 1088: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.2 takayama 1089: ;;
1090: esac;
1091: }
1092: echo
1.3 takayama 1093:
1094: cat <<\_ASBOX
1095: ## ----------------- ##
1096: ## Output variables. ##
1097: ## ----------------- ##
1098: _ASBOX
1099: echo
1100: for ac_var in $ac_subst_vars
1101: do
1102: eval ac_val=$`echo $ac_var`
1103: echo "$ac_var='"'"'$ac_val'"'"'"
1104: done | sort
1105: echo
1106:
1107: if test -n "$ac_subst_files"; then
1108: cat <<\_ASBOX
1109: ## ------------- ##
1110: ## Output files. ##
1111: ## ------------- ##
1112: _ASBOX
1113: echo
1114: for ac_var in $ac_subst_files
1115: do
1116: eval ac_val=$`echo $ac_var`
1117: echo "$ac_var='"'"'$ac_val'"'"'"
1118: done | sort
1119: echo
1120: fi
1121:
1.2 takayama 1122: if test -s confdefs.h; then
1123: cat <<\_ASBOX
1124: ## ----------- ##
1125: ## confdefs.h. ##
1126: ## ----------- ##
1127: _ASBOX
1128: echo
1.3 takayama 1129: sed "/^$/d" confdefs.h | sort
1.2 takayama 1130: echo
1131: fi
1132: test "$ac_signal" != 0 &&
1133: echo "$as_me: caught signal $ac_signal"
1134: echo "$as_me: exit $exit_status"
1135: } >&5
1.3 takayama 1136: rm -f core *.core &&
1.2 takayama 1137: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1138: exit $exit_status
1139: ' 0
1140: for ac_signal in 1 2 13 15; do
1141: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1142: done
1143: ac_signal=0
1144:
1145: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1146: rm -rf conftest* confdefs.h
1147: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1148: echo >confdefs.h
1149:
1150: # Predefined preprocessor variables.
1.1 takayama 1151:
1.2 takayama 1152: cat >>confdefs.h <<_ACEOF
1153: #define PACKAGE_NAME "$PACKAGE_NAME"
1154: _ACEOF
1155:
1156:
1157: cat >>confdefs.h <<_ACEOF
1158: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1159: _ACEOF
1160:
1161:
1162: cat >>confdefs.h <<_ACEOF
1163: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1164: _ACEOF
1165:
1166:
1167: cat >>confdefs.h <<_ACEOF
1168: #define PACKAGE_STRING "$PACKAGE_STRING"
1169: _ACEOF
1170:
1171:
1172: cat >>confdefs.h <<_ACEOF
1173: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1174: _ACEOF
1175:
1176:
1177: # Let the site file select an alternate cache file if it wants to.
1.1 takayama 1178: # Prefer explicitly selected file to automatically selected ones.
1179: if test -z "$CONFIG_SITE"; then
1180: if test "x$prefix" != xNONE; then
1181: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1182: else
1183: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1184: fi
1185: fi
1186: for ac_site_file in $CONFIG_SITE; do
1187: if test -r "$ac_site_file"; then
1.2 takayama 1188: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1189: echo "$as_me: loading site script $ac_site_file" >&6;}
1190: sed 's/^/| /' "$ac_site_file" >&5
1.1 takayama 1191: . "$ac_site_file"
1192: fi
1193: done
1194:
1195: if test -r "$cache_file"; then
1.2 takayama 1196: # Some versions of bash will fail to source /dev/null (special
1197: # files actually), so we avoid doing that.
1198: if test -f "$cache_file"; then
1199: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1200: echo "$as_me: loading cache $cache_file" >&6;}
1201: case $cache_file in
1202: [\\/]* | ?:[\\/]* ) . $cache_file;;
1203: *) . ./$cache_file;;
1204: esac
1205: fi
1.1 takayama 1206: else
1.2 takayama 1207: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1208: echo "$as_me: creating cache $cache_file" >&6;}
1209: >$cache_file
1210: fi
1211:
1212: # Check that the precious variables saved in the cache have kept the same
1213: # value.
1214: ac_cache_corrupted=false
1215: for ac_var in `(set) 2>&1 |
1.3 takayama 1216: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.2 takayama 1217: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1218: eval ac_new_set=\$ac_env_${ac_var}_set
1219: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1220: eval ac_new_val="\$ac_env_${ac_var}_value"
1221: case $ac_old_set,$ac_new_set in
1222: set,)
1223: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1224: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1225: ac_cache_corrupted=: ;;
1226: ,set)
1227: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1228: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1229: ac_cache_corrupted=: ;;
1230: ,);;
1231: *)
1232: if test "x$ac_old_val" != "x$ac_new_val"; then
1.3 takayama 1233: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.2 takayama 1234: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.3 takayama 1235: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.2 takayama 1236: echo "$as_me: former value: $ac_old_val" >&2;}
1.3 takayama 1237: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.2 takayama 1238: echo "$as_me: current value: $ac_new_val" >&2;}
1.3 takayama 1239: ac_cache_corrupted=:
1.2 takayama 1240: fi;;
1241: esac
1242: # Pass precious variables to config.status.
1243: if test "$ac_new_set" = set; then
1244: case $ac_new_val in
1245: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1247: *) ac_arg=$ac_var=$ac_new_val ;;
1248: esac
1249: case " $ac_configure_args " in
1250: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1251: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1252: esac
1253: fi
1254: done
1255: if $ac_cache_corrupted; then
1256: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1257: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1258: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1259: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1260: { (exit 1); exit 1; }; }
1.1 takayama 1261: fi
1262:
1263: ac_ext=c
1264: ac_cpp='$CPP $CPPFLAGS'
1.2 takayama 1265: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1266: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1267: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1268:
1269:
1270:
1271:
1272:
1273:
1274:
1275:
1276:
1277:
1278:
1279:
1280:
1281:
1282:
1283:
1284:
1285:
1.3 takayama 1286:
1.2 takayama 1287: ac_ext=c
1288: ac_cpp='$CPP $CPPFLAGS'
1289: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1290: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1291: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1292: if test -n "$ac_tool_prefix"; then
1293: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1294: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1295: echo "$as_me:$LINENO: checking for $ac_word" >&5
1296: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1297: if test "${ac_cv_prog_CC+set}" = set; then
1298: echo $ECHO_N "(cached) $ECHO_C" >&6
1299: else
1300: if test -n "$CC"; then
1301: ac_cv_prog_CC="$CC" # Let the user override the test.
1302: else
1303: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1304: for as_dir in $PATH
1305: do
1306: IFS=$as_save_IFS
1307: test -z "$as_dir" && as_dir=.
1308: for ac_exec_ext in '' $ac_executable_extensions; do
1309: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1310: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1311: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1312: break 2
1313: fi
1314: done
1315: done
1316:
1317: fi
1318: fi
1319: CC=$ac_cv_prog_CC
1320: if test -n "$CC"; then
1321: echo "$as_me:$LINENO: result: $CC" >&5
1322: echo "${ECHO_T}$CC" >&6
1323: else
1324: echo "$as_me:$LINENO: result: no" >&5
1325: echo "${ECHO_T}no" >&6
1326: fi
1327:
1328: fi
1329: if test -z "$ac_cv_prog_CC"; then
1330: ac_ct_CC=$CC
1331: # Extract the first word of "gcc", so it can be a program name with args.
1332: set dummy gcc; ac_word=$2
1333: echo "$as_me:$LINENO: checking for $ac_word" >&5
1334: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1335: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1336: echo $ECHO_N "(cached) $ECHO_C" >&6
1337: else
1338: if test -n "$ac_ct_CC"; then
1339: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1340: else
1341: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1342: for as_dir in $PATH
1343: do
1344: IFS=$as_save_IFS
1345: test -z "$as_dir" && as_dir=.
1346: for ac_exec_ext in '' $ac_executable_extensions; do
1347: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1348: ac_cv_prog_ac_ct_CC="gcc"
1349: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1350: break 2
1.1 takayama 1351: fi
1.2 takayama 1352: done
1353: done
1354:
1355: fi
1356: fi
1357: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1358: if test -n "$ac_ct_CC"; then
1359: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1360: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 takayama 1361: else
1.2 takayama 1362: echo "$as_me:$LINENO: result: no" >&5
1363: echo "${ECHO_T}no" >&6
1.1 takayama 1364: fi
1365:
1.2 takayama 1366: CC=$ac_ct_CC
1367: else
1368: CC="$ac_cv_prog_CC"
1369: fi
1.1 takayama 1370:
1.2 takayama 1371: if test -z "$CC"; then
1372: if test -n "$ac_tool_prefix"; then
1373: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1374: set dummy ${ac_tool_prefix}cc; ac_word=$2
1375: echo "$as_me:$LINENO: checking for $ac_word" >&5
1376: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1377: if test "${ac_cv_prog_CC+set}" = set; then
1378: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 takayama 1379: else
1380: if test -n "$CC"; then
1381: ac_cv_prog_CC="$CC" # Let the user override the test.
1382: else
1.2 takayama 1383: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1384: for as_dir in $PATH
1385: do
1386: IFS=$as_save_IFS
1387: test -z "$as_dir" && as_dir=.
1388: for ac_exec_ext in '' $ac_executable_extensions; do
1389: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1390: ac_cv_prog_CC="${ac_tool_prefix}cc"
1391: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1392: break 2
1393: fi
1394: done
1395: done
1396:
1.1 takayama 1397: fi
1398: fi
1.2 takayama 1399: CC=$ac_cv_prog_CC
1.1 takayama 1400: if test -n "$CC"; then
1.2 takayama 1401: echo "$as_me:$LINENO: result: $CC" >&5
1402: echo "${ECHO_T}$CC" >&6
1403: else
1404: echo "$as_me:$LINENO: result: no" >&5
1405: echo "${ECHO_T}no" >&6
1406: fi
1407:
1408: fi
1409: if test -z "$ac_cv_prog_CC"; then
1410: ac_ct_CC=$CC
1411: # Extract the first word of "cc", so it can be a program name with args.
1412: set dummy cc; ac_word=$2
1413: echo "$as_me:$LINENO: checking for $ac_word" >&5
1414: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1415: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1416: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 takayama 1417: else
1.2 takayama 1418: if test -n "$ac_ct_CC"; then
1419: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1420: else
1421: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1422: for as_dir in $PATH
1423: do
1424: IFS=$as_save_IFS
1425: test -z "$as_dir" && as_dir=.
1426: for ac_exec_ext in '' $ac_executable_extensions; do
1427: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1428: ac_cv_prog_ac_ct_CC="cc"
1429: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1430: break 2
1431: fi
1432: done
1433: done
1434:
1435: fi
1436: fi
1437: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1438: if test -n "$ac_ct_CC"; then
1439: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1440: echo "${ECHO_T}$ac_ct_CC" >&6
1441: else
1442: echo "$as_me:$LINENO: result: no" >&5
1443: echo "${ECHO_T}no" >&6
1444: fi
1445:
1446: CC=$ac_ct_CC
1447: else
1448: CC="$ac_cv_prog_CC"
1.1 takayama 1449: fi
1450:
1.2 takayama 1451: fi
1.1 takayama 1452: if test -z "$CC"; then
1453: # Extract the first word of "cc", so it can be a program name with args.
1454: set dummy cc; ac_word=$2
1.2 takayama 1455: echo "$as_me:$LINENO: checking for $ac_word" >&5
1456: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1457: if test "${ac_cv_prog_CC+set}" = set; then
1458: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 takayama 1459: else
1460: if test -n "$CC"; then
1461: ac_cv_prog_CC="$CC" # Let the user override the test.
1462: else
1463: ac_prog_rejected=no
1.2 takayama 1464: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1465: for as_dir in $PATH
1466: do
1467: IFS=$as_save_IFS
1468: test -z "$as_dir" && as_dir=.
1469: for ac_exec_ext in '' $ac_executable_extensions; do
1470: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1471: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1472: ac_prog_rejected=yes
1473: continue
1474: fi
1475: ac_cv_prog_CC="cc"
1476: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1477: break 2
1478: fi
1479: done
1480: done
1481:
1.1 takayama 1482: if test $ac_prog_rejected = yes; then
1483: # We found a bogon in the path, so make sure we never use it.
1484: set dummy $ac_cv_prog_CC
1485: shift
1.2 takayama 1486: if test $# != 0; then
1.1 takayama 1487: # We chose a different compiler from the bogus one.
1488: # However, it has the same basename, so the bogon will be chosen
1489: # first if we set CC to just the basename; use the full file name.
1490: shift
1.3 takayama 1491: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 takayama 1492: fi
1493: fi
1494: fi
1495: fi
1.2 takayama 1496: CC=$ac_cv_prog_CC
1.1 takayama 1497: if test -n "$CC"; then
1.2 takayama 1498: echo "$as_me:$LINENO: result: $CC" >&5
1499: echo "${ECHO_T}$CC" >&6
1.1 takayama 1500: else
1.2 takayama 1501: echo "$as_me:$LINENO: result: no" >&5
1502: echo "${ECHO_T}no" >&6
1.1 takayama 1503: fi
1504:
1.2 takayama 1505: fi
1506: if test -z "$CC"; then
1507: if test -n "$ac_tool_prefix"; then
1508: for ac_prog in cl
1509: do
1510: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1511: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1512: echo "$as_me:$LINENO: checking for $ac_word" >&5
1513: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1514: if test "${ac_cv_prog_CC+set}" = set; then
1515: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 takayama 1516: else
1517: if test -n "$CC"; then
1518: ac_cv_prog_CC="$CC" # Let the user override the test.
1519: else
1.2 takayama 1520: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521: for as_dir in $PATH
1522: do
1523: IFS=$as_save_IFS
1524: test -z "$as_dir" && as_dir=.
1525: for ac_exec_ext in '' $ac_executable_extensions; do
1526: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1527: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1528: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1529: break 2
1530: fi
1531: done
1532: done
1533:
1.1 takayama 1534: fi
1535: fi
1.2 takayama 1536: CC=$ac_cv_prog_CC
1.1 takayama 1537: if test -n "$CC"; then
1.2 takayama 1538: echo "$as_me:$LINENO: result: $CC" >&5
1539: echo "${ECHO_T}$CC" >&6
1.1 takayama 1540: else
1.2 takayama 1541: echo "$as_me:$LINENO: result: no" >&5
1542: echo "${ECHO_T}no" >&6
1.1 takayama 1543: fi
1.2 takayama 1544:
1545: test -n "$CC" && break
1546: done
1547: fi
1548: if test -z "$CC"; then
1549: ac_ct_CC=$CC
1550: for ac_prog in cl
1551: do
1552: # Extract the first word of "$ac_prog", so it can be a program name with args.
1553: set dummy $ac_prog; 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
1564: do
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="$ac_prog"
1570: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1571: break 2
1.1 takayama 1572: fi
1.2 takayama 1573: done
1574: done
1575:
1576: fi
1577: fi
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
1.1 takayama 1585: fi
1586:
1.2 takayama 1587: test -n "$ac_ct_CC" && break
1588: done
1589:
1590: CC=$ac_ct_CC
1591: fi
1592:
1593: fi
1.1 takayama 1594:
1595:
1.3 takayama 1596: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1597: See \`config.log' for more details." >&5
1598: echo "$as_me: error: no acceptable C compiler found in \$PATH
1599: See \`config.log' for more details." >&2;}
1.2 takayama 1600: { (exit 1); exit 1; }; }
1601:
1602: # Provide some information about the compiler.
1603: echo "$as_me:$LINENO:" \
1604: "checking for C compiler version" >&5
1605: ac_compiler=`set X $ac_compile; echo $2`
1606: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1607: (eval $ac_compiler --version </dev/null >&5) 2>&5
1608: ac_status=$?
1609: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1610: (exit $ac_status); }
1611: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1612: (eval $ac_compiler -v </dev/null >&5) 2>&5
1613: ac_status=$?
1614: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1615: (exit $ac_status); }
1616: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1617: (eval $ac_compiler -V </dev/null >&5) 2>&5
1618: ac_status=$?
1619: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1620: (exit $ac_status); }
1.1 takayama 1621:
1.2 takayama 1622: cat >conftest.$ac_ext <<_ACEOF
1.3 takayama 1623: /* confdefs.h. */
1624: _ACEOF
1625: cat confdefs.h >>conftest.$ac_ext
1626: cat >>conftest.$ac_ext <<_ACEOF
1627: /* end confdefs.h. */
1.1 takayama 1628:
1.2 takayama 1629: int
1630: main ()
1631: {
1632:
1633: ;
1634: return 0;
1635: }
1636: _ACEOF
1637: ac_clean_files_save=$ac_clean_files
1.3 takayama 1638: ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.2 takayama 1639: # Try to create an executable without -o first, disregard a.out.
1640: # It will help us diagnose broken compilers, and finding out an intuition
1641: # of exeext.
1.3 takayama 1642: echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1643: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1.2 takayama 1644: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1645: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1646: (eval $ac_link_default) 2>&5
1647: ac_status=$?
1648: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1649: (exit $ac_status); }; then
1650: # Find the output, starting from the most likely. This scheme is
1651: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1652: # resort.
1653:
1654: # Be careful to initialize this variable, since it used to be cached.
1655: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1656: ac_cv_exeext=
1.3 takayama 1657: # b.out is created by i960 compilers.
1658: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1659: do
1660: test -f "$ac_file" || continue
1.2 takayama 1661: case $ac_file in
1.3 takayama 1662: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1663: ;;
1664: conftest.$ac_ext )
1665: # This is the source file.
1666: ;;
1667: [ab].out )
1668: # We found the default executable, but exeext='' is most
1669: # certainly right.
1670: break;;
1671: *.* )
1672: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1673: # FIXME: I believe we export ac_cv_exeext for Libtool,
1674: # but it would be cool to find out if it's true. Does anybody
1675: # maintain Libtool? --akim.
1676: export ac_cv_exeext
1677: break;;
1678: * )
1679: break;;
1.2 takayama 1680: esac
1681: done
1682: else
1683: echo "$as_me: failed program was:" >&5
1.3 takayama 1684: sed 's/^/| /' conftest.$ac_ext >&5
1685:
1686: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1687: See \`config.log' for more details." >&5
1688: echo "$as_me: error: C compiler cannot create executables
1689: See \`config.log' for more details." >&2;}
1.2 takayama 1690: { (exit 77); exit 77; }; }
1691: fi
1692:
1693: ac_exeext=$ac_cv_exeext
1694: echo "$as_me:$LINENO: result: $ac_file" >&5
1695: echo "${ECHO_T}$ac_file" >&6
1696:
1697: # Check the compiler produces executables we can run. If not, either
1698: # the compiler is broken, or we cross compile.
1699: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1700: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1701: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1702: # If not cross compiling, check that we can run a simple program.
1703: if test "$cross_compiling" != yes; then
1704: if { ac_try='./$ac_file'
1705: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1706: (eval $ac_try) 2>&5
1707: ac_status=$?
1708: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1709: (exit $ac_status); }; }; then
1710: cross_compiling=no
1.1 takayama 1711: else
1.2 takayama 1712: if test "$cross_compiling" = maybe; then
1713: cross_compiling=yes
1714: else
1715: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1.3 takayama 1716: If you meant to cross compile, use \`--host'.
1717: See \`config.log' for more details." >&5
1.2 takayama 1718: echo "$as_me: error: cannot run C compiled programs.
1.3 takayama 1719: If you meant to cross compile, use \`--host'.
1720: See \`config.log' for more details." >&2;}
1.2 takayama 1721: { (exit 1); exit 1; }; }
1722: fi
1.1 takayama 1723: fi
1724: fi
1.2 takayama 1725: echo "$as_me:$LINENO: result: yes" >&5
1726: echo "${ECHO_T}yes" >&6
1.1 takayama 1727:
1.3 takayama 1728: rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.2 takayama 1729: ac_clean_files=$ac_clean_files_save
1730: # Check the compiler produces executables we can run. If not, either
1731: # the compiler is broken, or we cross compile.
1732: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1733: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1734: echo "$as_me:$LINENO: result: $cross_compiling" >&5
1735: echo "${ECHO_T}$cross_compiling" >&6
1736:
1737: echo "$as_me:$LINENO: checking for suffix of executables" >&5
1738: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1739: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1740: (eval $ac_link) 2>&5
1741: ac_status=$?
1742: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1743: (exit $ac_status); }; then
1744: # If both `conftest.exe' and `conftest' are `present' (well, observable)
1745: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1746: # work properly (i.e., refer to `conftest.exe'), while it won't with
1747: # `rm'.
1.3 takayama 1748: for ac_file in conftest.exe conftest conftest.*; do
1749: test -f "$ac_file" || continue
1.2 takayama 1750: case $ac_file in
1.3 takayama 1751: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1.2 takayama 1752: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.3 takayama 1753: export ac_cv_exeext
1754: break;;
1.2 takayama 1755: * ) break;;
1756: esac
1757: done
1758: else
1.3 takayama 1759: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1760: See \`config.log' for more details." >&5
1761: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1762: See \`config.log' for more details." >&2;}
1.2 takayama 1763: { (exit 1); exit 1; }; }
1764: fi
1765:
1766: rm -f conftest$ac_cv_exeext
1767: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1768: echo "${ECHO_T}$ac_cv_exeext" >&6
1769:
1770: rm -f conftest.$ac_ext
1771: EXEEXT=$ac_cv_exeext
1772: ac_exeext=$EXEEXT
1773: echo "$as_me:$LINENO: checking for suffix of object files" >&5
1774: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1775: if test "${ac_cv_objext+set}" = set; then
1776: echo $ECHO_N "(cached) $ECHO_C" >&6
1777: else
1778: cat >conftest.$ac_ext <<_ACEOF
1.3 takayama 1779: /* confdefs.h. */
1780: _ACEOF
1781: cat confdefs.h >>conftest.$ac_ext
1782: cat >>conftest.$ac_ext <<_ACEOF
1783: /* end confdefs.h. */
1.1 takayama 1784:
1.2 takayama 1785: int
1786: main ()
1787: {
1788:
1789: ;
1790: return 0;
1791: }
1792: _ACEOF
1793: rm -f conftest.o conftest.obj
1794: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1795: (eval $ac_compile) 2>&5
1796: ac_status=$?
1797: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798: (exit $ac_status); }; then
1799: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1800: case $ac_file in
1.3 takayama 1801: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1.2 takayama 1802: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1803: break;;
1804: esac
1805: done
1.1 takayama 1806: else
1.2 takayama 1807: echo "$as_me: failed program was:" >&5
1.3 takayama 1808: sed 's/^/| /' conftest.$ac_ext >&5
1809:
1810: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1811: See \`config.log' for more details." >&5
1812: echo "$as_me: error: cannot compute suffix of object files: cannot compile
1813: See \`config.log' for more details." >&2;}
1.2 takayama 1814: { (exit 1); exit 1; }; }
1815: fi
1816:
1817: rm -f conftest.$ac_cv_objext conftest.$ac_ext
1818: fi
1819: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1820: echo "${ECHO_T}$ac_cv_objext" >&6
1821: OBJEXT=$ac_cv_objext
1822: ac_objext=$OBJEXT
1823: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1824: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1825: if test "${ac_cv_c_compiler_gnu+set}" = set; then
1826: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 takayama 1827: else
1.2 takayama 1828: cat >conftest.$ac_ext <<_ACEOF
1.3 takayama 1829: /* confdefs.h. */
1830: _ACEOF
1831: cat confdefs.h >>conftest.$ac_ext
1832: cat >>conftest.$ac_ext <<_ACEOF
1833: /* end confdefs.h. */
1.1 takayama 1834:
1.2 takayama 1835: int
1836: main ()
1837: {
1838: #ifndef __GNUC__
1839: choke me
1840: #endif
1.1 takayama 1841:
1.2 takayama 1842: ;
1843: return 0;
1844: }
1845: _ACEOF
1846: rm -f conftest.$ac_objext
1847: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.3 takayama 1848: (eval $ac_compile) 2>conftest.er1
1.2 takayama 1849: ac_status=$?
1.3 takayama 1850: grep -v '^ *+' conftest.er1 >conftest.err
1851: rm -f conftest.er1
1852: cat conftest.err >&5
1.2 takayama 1853: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854: (exit $ac_status); } &&
1.3 takayama 1855: { ac_try='test -z "$ac_c_werror_flag"
1856: || test ! -s conftest.err'
1857: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1858: (eval $ac_try) 2>&5
1859: ac_status=$?
1860: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1861: (exit $ac_status); }; } &&
1862: { ac_try='test -s conftest.$ac_objext'
1.2 takayama 1863: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1864: (eval $ac_try) 2>&5
1865: ac_status=$?
1866: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867: (exit $ac_status); }; }; then
1868: ac_compiler_gnu=yes
1869: else
1870: echo "$as_me: failed program was:" >&5
1.3 takayama 1871: sed 's/^/| /' conftest.$ac_ext >&5
1872:
1.2 takayama 1873: ac_compiler_gnu=no
1874: fi
1.3 takayama 1875: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.2 takayama 1876: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1877:
1878: fi
1879: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1880: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1881: GCC=`test $ac_compiler_gnu = yes && echo yes`
1882: ac_test_CFLAGS=${CFLAGS+set}
1883: ac_save_CFLAGS=$CFLAGS
1884: CFLAGS="-g"
1885: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1886: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1887: if test "${ac_cv_prog_cc_g+set}" = set; then
1888: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 takayama 1889: else
1.2 takayama 1890: cat >conftest.$ac_ext <<_ACEOF
1.3 takayama 1891: /* confdefs.h. */
1892: _ACEOF
1893: cat confdefs.h >>conftest.$ac_ext
1894: cat >>conftest.$ac_ext <<_ACEOF
1895: /* end confdefs.h. */
1.1 takayama 1896:
1.2 takayama 1897: int
1898: main ()
1899: {
1900:
1901: ;
1902: return 0;
1903: }
1904: _ACEOF
1905: rm -f conftest.$ac_objext
1906: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.3 takayama 1907: (eval $ac_compile) 2>conftest.er1
1.2 takayama 1908: ac_status=$?
1.3 takayama 1909: grep -v '^ *+' conftest.er1 >conftest.err
1910: rm -f conftest.er1
1911: cat conftest.err >&5
1.2 takayama 1912: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913: (exit $ac_status); } &&
1.3 takayama 1914: { ac_try='test -z "$ac_c_werror_flag"
1915: || test ! -s conftest.err'
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); }; } &&
1921: { ac_try='test -s conftest.$ac_objext'
1.2 takayama 1922: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1923: (eval $ac_try) 2>&5
1924: ac_status=$?
1925: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926: (exit $ac_status); }; }; then
1.1 takayama 1927: ac_cv_prog_cc_g=yes
1928: else
1.2 takayama 1929: echo "$as_me: failed program was:" >&5
1.3 takayama 1930: sed 's/^/| /' conftest.$ac_ext >&5
1931:
1.2 takayama 1932: ac_cv_prog_cc_g=no
1.1 takayama 1933: fi
1.3 takayama 1934: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 takayama 1935: fi
1.2 takayama 1936: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1937: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 takayama 1938: if test "$ac_test_CFLAGS" = set; then
1.2 takayama 1939: CFLAGS=$ac_save_CFLAGS
1.1 takayama 1940: elif test $ac_cv_prog_cc_g = yes; then
1941: if test "$GCC" = yes; then
1942: CFLAGS="-g -O2"
1943: else
1944: CFLAGS="-g"
1945: fi
1946: else
1947: if test "$GCC" = yes; then
1948: CFLAGS="-O2"
1949: else
1950: CFLAGS=
1951: fi
1952: fi
1.3 takayama 1953: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1954: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1955: if test "${ac_cv_prog_cc_stdc+set}" = set; then
1956: echo $ECHO_N "(cached) $ECHO_C" >&6
1957: else
1958: ac_cv_prog_cc_stdc=no
1959: ac_save_CC=$CC
1960: cat >conftest.$ac_ext <<_ACEOF
1961: /* confdefs.h. */
1962: _ACEOF
1963: cat confdefs.h >>conftest.$ac_ext
1964: cat >>conftest.$ac_ext <<_ACEOF
1965: /* end confdefs.h. */
1966: #include <stdarg.h>
1967: #include <stdio.h>
1968: #include <sys/types.h>
1969: #include <sys/stat.h>
1970: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1971: struct buf { int x; };
1972: FILE * (*rcsopen) (struct buf *, struct stat *, int);
1973: static char *e (p, i)
1974: char **p;
1975: int i;
1976: {
1977: return p[i];
1978: }
1979: static char *f (char * (*g) (char **, int), char **p, ...)
1980: {
1981: char *s;
1982: va_list v;
1983: va_start (v,p);
1984: s = g (p, va_arg (v,int));
1985: va_end (v);
1986: return s;
1987: }
1988:
1989: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1990: function prototypes and stuff, but not '\xHH' hex character constants.
1991: These don't provoke an error unfortunately, instead are silently treated
1992: as 'x'. The following induces an error, until -std1 is added to get
1993: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1994: array size at least. It's necessary to write '\x00'==0 to get something
1995: that's true only with -std1. */
1996: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1997:
1998: int test (int i, double x);
1999: struct s1 {int (*f) (int a);};
2000: struct s2 {int (*f) (double a);};
2001: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2002: int argc;
2003: char **argv;
2004: int
2005: main ()
2006: {
2007: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2008: ;
2009: return 0;
2010: }
2011: _ACEOF
2012: # Don't try gcc -ansi; that turns off useful extensions and
2013: # breaks some systems' header files.
2014: # AIX -qlanglvl=ansi
2015: # Ultrix and OSF/1 -std1
2016: # HP-UX 10.20 and later -Ae
2017: # HP-UX older versions -Aa -D_HPUX_SOURCE
2018: # SVR4 -Xc -D__EXTENSIONS__
2019: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2020: do
2021: CC="$ac_save_CC $ac_arg"
2022: rm -f conftest.$ac_objext
2023: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2024: (eval $ac_compile) 2>conftest.er1
2025: ac_status=$?
2026: grep -v '^ *+' conftest.er1 >conftest.err
2027: rm -f conftest.er1
2028: cat conftest.err >&5
2029: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030: (exit $ac_status); } &&
2031: { ac_try='test -z "$ac_c_werror_flag"
2032: || test ! -s conftest.err'
2033: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2034: (eval $ac_try) 2>&5
2035: ac_status=$?
2036: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037: (exit $ac_status); }; } &&
2038: { ac_try='test -s conftest.$ac_objext'
2039: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2040: (eval $ac_try) 2>&5
2041: ac_status=$?
2042: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043: (exit $ac_status); }; }; then
2044: ac_cv_prog_cc_stdc=$ac_arg
2045: break
2046: else
2047: echo "$as_me: failed program was:" >&5
2048: sed 's/^/| /' conftest.$ac_ext >&5
2049:
2050: fi
2051: rm -f conftest.err conftest.$ac_objext
2052: done
2053: rm -f conftest.$ac_ext conftest.$ac_objext
2054: CC=$ac_save_CC
2055:
2056: fi
2057:
2058: case "x$ac_cv_prog_cc_stdc" in
2059: x|xno)
2060: echo "$as_me:$LINENO: result: none needed" >&5
2061: echo "${ECHO_T}none needed" >&6 ;;
2062: *)
2063: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2064: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2065: CC="$CC $ac_cv_prog_cc_stdc" ;;
2066: esac
2067:
1.2 takayama 2068: # Some people use a C++ compiler to compile C. Since we use `exit',
2069: # in C++ we need to declare it. In case someone uses the same compiler
2070: # for both compiling C and C++ we need to have the C++ compiler decide
2071: # the declaration of exit, since it's the most demanding environment.
2072: cat >conftest.$ac_ext <<_ACEOF
2073: #ifndef __cplusplus
2074: choke me
2075: #endif
2076: _ACEOF
2077: rm -f conftest.$ac_objext
2078: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.3 takayama 2079: (eval $ac_compile) 2>conftest.er1
1.2 takayama 2080: ac_status=$?
1.3 takayama 2081: grep -v '^ *+' conftest.er1 >conftest.err
2082: rm -f conftest.er1
2083: cat conftest.err >&5
1.2 takayama 2084: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085: (exit $ac_status); } &&
1.3 takayama 2086: { ac_try='test -z "$ac_c_werror_flag"
2087: || test ! -s conftest.err'
2088: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089: (eval $ac_try) 2>&5
2090: ac_status=$?
2091: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092: (exit $ac_status); }; } &&
2093: { ac_try='test -s conftest.$ac_objext'
1.2 takayama 2094: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095: (eval $ac_try) 2>&5
2096: ac_status=$?
2097: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098: (exit $ac_status); }; }; then
2099: for ac_declaration in \
1.3 takayama 2100: '' \
1.2 takayama 2101: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2102: 'extern "C" void std::exit (int); using std::exit;' \
2103: 'extern "C" void exit (int) throw ();' \
2104: 'extern "C" void exit (int);' \
2105: 'void exit (int);'
2106: do
2107: cat >conftest.$ac_ext <<_ACEOF
1.3 takayama 2108: /* confdefs.h. */
2109: _ACEOF
2110: cat confdefs.h >>conftest.$ac_ext
2111: cat >>conftest.$ac_ext <<_ACEOF
2112: /* end confdefs.h. */
2113: $ac_declaration
1.2 takayama 2114: #include <stdlib.h>
2115: int
2116: main ()
2117: {
2118: exit (42);
2119: ;
2120: return 0;
2121: }
2122: _ACEOF
2123: rm -f conftest.$ac_objext
2124: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.3 takayama 2125: (eval $ac_compile) 2>conftest.er1
1.2 takayama 2126: ac_status=$?
1.3 takayama 2127: grep -v '^ *+' conftest.er1 >conftest.err
2128: rm -f conftest.er1
2129: cat conftest.err >&5
1.2 takayama 2130: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131: (exit $ac_status); } &&
1.3 takayama 2132: { ac_try='test -z "$ac_c_werror_flag"
2133: || test ! -s conftest.err'
2134: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2135: (eval $ac_try) 2>&5
2136: ac_status=$?
2137: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138: (exit $ac_status); }; } &&
2139: { ac_try='test -s conftest.$ac_objext'
1.2 takayama 2140: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141: (eval $ac_try) 2>&5
2142: ac_status=$?
2143: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144: (exit $ac_status); }; }; then
2145: :
2146: else
2147: echo "$as_me: failed program was:" >&5
1.3 takayama 2148: sed 's/^/| /' conftest.$ac_ext >&5
2149:
1.2 takayama 2150: continue
2151: fi
1.3 takayama 2152: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.2 takayama 2153: cat >conftest.$ac_ext <<_ACEOF
1.3 takayama 2154: /* confdefs.h. */
2155: _ACEOF
2156: cat confdefs.h >>conftest.$ac_ext
2157: cat >>conftest.$ac_ext <<_ACEOF
2158: /* end confdefs.h. */
1.2 takayama 2159: $ac_declaration
2160: int
2161: main ()
2162: {
2163: exit (42);
2164: ;
2165: return 0;
2166: }
2167: _ACEOF
2168: rm -f conftest.$ac_objext
2169: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.3 takayama 2170: (eval $ac_compile) 2>conftest.er1
1.2 takayama 2171: ac_status=$?
1.3 takayama 2172: grep -v '^ *+' conftest.er1 >conftest.err
2173: rm -f conftest.er1
2174: cat conftest.err >&5
1.2 takayama 2175: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176: (exit $ac_status); } &&
1.3 takayama 2177: { ac_try='test -z "$ac_c_werror_flag"
2178: || test ! -s conftest.err'
2179: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180: (eval $ac_try) 2>&5
2181: ac_status=$?
2182: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183: (exit $ac_status); }; } &&
2184: { ac_try='test -s conftest.$ac_objext'
1.2 takayama 2185: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186: (eval $ac_try) 2>&5
2187: ac_status=$?
2188: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189: (exit $ac_status); }; }; then
2190: break
2191: else
2192: echo "$as_me: failed program was:" >&5
1.3 takayama 2193: sed 's/^/| /' conftest.$ac_ext >&5
2194:
1.2 takayama 2195: fi
1.3 takayama 2196: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.2 takayama 2197: done
2198: rm -f conftest*
2199: if test -n "$ac_declaration"; then
2200: echo '#ifdef __cplusplus' >>confdefs.h
2201: echo $ac_declaration >>confdefs.h
2202: echo '#endif' >>confdefs.h
2203: fi
1.1 takayama 2204:
1.2 takayama 2205: else
2206: echo "$as_me: failed program was:" >&5
1.3 takayama 2207: sed 's/^/| /' conftest.$ac_ext >&5
2208:
1.2 takayama 2209: fi
1.3 takayama 2210: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.2 takayama 2211: ac_ext=c
2212: ac_cpp='$CPP $CPPFLAGS'
2213: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2214: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2215: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2216:
2217: if test -n "$ac_tool_prefix"; then
2218: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2219: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2220: echo "$as_me:$LINENO: checking for $ac_word" >&5
2221: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222: if test "${ac_cv_prog_RANLIB+set}" = set; then
2223: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 takayama 2224: else
2225: if test -n "$RANLIB"; then
2226: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2227: else
1.2 takayama 2228: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229: for as_dir in $PATH
2230: do
2231: IFS=$as_save_IFS
2232: test -z "$as_dir" && as_dir=.
2233: for ac_exec_ext in '' $ac_executable_extensions; do
2234: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2235: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2236: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237: break 2
2238: fi
2239: done
2240: done
2241:
1.1 takayama 2242: fi
2243: fi
1.2 takayama 2244: RANLIB=$ac_cv_prog_RANLIB
1.1 takayama 2245: if test -n "$RANLIB"; then
1.2 takayama 2246: echo "$as_me:$LINENO: result: $RANLIB" >&5
2247: echo "${ECHO_T}$RANLIB" >&6
2248: else
2249: echo "$as_me:$LINENO: result: no" >&5
2250: echo "${ECHO_T}no" >&6
2251: fi
2252:
2253: fi
2254: if test -z "$ac_cv_prog_RANLIB"; then
2255: ac_ct_RANLIB=$RANLIB
2256: # Extract the first word of "ranlib", so it can be a program name with args.
2257: set dummy ranlib; ac_word=$2
2258: echo "$as_me:$LINENO: checking for $ac_word" >&5
2259: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2260: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2261: echo $ECHO_N "(cached) $ECHO_C" >&6
2262: else
2263: if test -n "$ac_ct_RANLIB"; then
2264: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2265: else
2266: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267: for as_dir in $PATH
2268: do
2269: IFS=$as_save_IFS
2270: test -z "$as_dir" && as_dir=.
2271: for ac_exec_ext in '' $ac_executable_extensions; do
2272: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2273: ac_cv_prog_ac_ct_RANLIB="ranlib"
2274: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2275: break 2
2276: fi
2277: done
2278: done
2279:
2280: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2281: fi
2282: fi
2283: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2284: if test -n "$ac_ct_RANLIB"; then
2285: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2286: echo "${ECHO_T}$ac_ct_RANLIB" >&6
1.1 takayama 2287: else
1.2 takayama 2288: echo "$as_me:$LINENO: result: no" >&5
2289: echo "${ECHO_T}no" >&6
2290: fi
2291:
2292: RANLIB=$ac_ct_RANLIB
2293: else
2294: RANLIB="$ac_cv_prog_RANLIB"
1.1 takayama 2295: fi
2296:
2297:
1.2 takayama 2298:
2299: echo "$as_me:$LINENO: checking for socket" >&5
2300: echo $ECHO_N "checking for socket... $ECHO_C" >&6
2301: if test "${ac_cv_func_socket+set}" = set; then
2302: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 takayama 2303: else
1.2 takayama 2304: cat >conftest.$ac_ext <<_ACEOF
1.3 takayama 2305: /* confdefs.h. */
2306: _ACEOF
2307: cat confdefs.h >>conftest.$ac_ext
2308: cat >>conftest.$ac_ext <<_ACEOF
2309: /* end confdefs.h. */
2310: /* Define socket to an innocuous variant, in case <limits.h> declares socket.
2311: For example, HP-UX 11i <limits.h> declares gettimeofday. */
2312: #define socket innocuous_socket
2313:
1.1 takayama 2314: /* System header to define __stub macros and hopefully few prototypes,
1.3 takayama 2315: which can conflict with char socket (); below.
2316: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2317: <limits.h> exists even on freestanding compilers. */
2318:
2319: #ifdef __STDC__
2320: # include <limits.h>
2321: #else
2322: # include <assert.h>
2323: #endif
2324:
2325: #undef socket
2326:
1.1 takayama 2327: /* Override any gcc2 internal prototype to avoid an error. */
1.2 takayama 2328: #ifdef __cplusplus
2329: extern "C"
1.3 takayama 2330: {
1.2 takayama 2331: #endif
1.1 takayama 2332: /* We use char because int might match the return type of a gcc2
1.2 takayama 2333: builtin and then its argument prototype would still apply. */
2334: char socket ();
1.1 takayama 2335: /* The GNU C library defines this for functions which it implements
2336: to always fail with ENOSYS. Some functions are actually named
2337: something starting with __ and the normal name is an alias. */
2338: #if defined (__stub_socket) || defined (__stub___socket)
2339: choke me
2340: #else
1.3 takayama 2341: char (*f) () = socket;
2342: #endif
2343: #ifdef __cplusplus
2344: }
1.1 takayama 2345: #endif
2346:
1.3 takayama 2347: int
2348: main ()
2349: {
2350: return f != socket;
1.2 takayama 2351: ;
2352: return 0;
2353: }
2354: _ACEOF
2355: rm -f conftest.$ac_objext conftest$ac_exeext
2356: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.3 takayama 2357: (eval $ac_link) 2>conftest.er1
1.2 takayama 2358: ac_status=$?
1.3 takayama 2359: grep -v '^ *+' conftest.er1 >conftest.err
2360: rm -f conftest.er1
2361: cat conftest.err >&5
1.2 takayama 2362: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363: (exit $ac_status); } &&
1.3 takayama 2364: { ac_try='test -z "$ac_c_werror_flag"
2365: || test ! -s conftest.err'
2366: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367: (eval $ac_try) 2>&5
2368: ac_status=$?
2369: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370: (exit $ac_status); }; } &&
2371: { ac_try='test -s conftest$ac_exeext'
1.2 takayama 2372: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373: (eval $ac_try) 2>&5
2374: ac_status=$?
2375: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376: (exit $ac_status); }; }; then
2377: ac_cv_func_socket=yes
2378: else
2379: echo "$as_me: failed program was:" >&5
1.3 takayama 2380: sed 's/^/| /' conftest.$ac_ext >&5
2381:
1.2 takayama 2382: ac_cv_func_socket=no
1.1 takayama 2383: fi
1.3 takayama 2384: rm -f conftest.err conftest.$ac_objext \
2385: conftest$ac_exeext conftest.$ac_ext
1.1 takayama 2386: fi
1.2 takayama 2387: echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
2388: echo "${ECHO_T}$ac_cv_func_socket" >&6
1.1 takayama 2389:
1.2 takayama 2390: if test "$ac_cv_func_socket" = no ; then
1.1 takayama 2391:
1.2 takayama 2392: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
2393: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
2394: if test "${ac_cv_lib_socket_socket+set}" = set; then
2395: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 takayama 2396: else
1.2 takayama 2397: ac_check_lib_save_LIBS=$LIBS
1.1 takayama 2398: LIBS="-lsocket $LIBS"
1.2 takayama 2399: cat >conftest.$ac_ext <<_ACEOF
1.3 takayama 2400: /* confdefs.h. */
2401: _ACEOF
2402: cat confdefs.h >>conftest.$ac_ext
2403: cat >>conftest.$ac_ext <<_ACEOF
2404: /* end confdefs.h. */
1.2 takayama 2405:
1.1 takayama 2406: /* Override any gcc2 internal prototype to avoid an error. */
1.2 takayama 2407: #ifdef __cplusplus
2408: extern "C"
2409: #endif
1.1 takayama 2410: /* We use char because int might match the return type of a gcc2
1.2 takayama 2411: builtin and then its argument prototype would still apply. */
2412: char socket ();
2413: int
2414: main ()
2415: {
2416: socket ();
2417: ;
2418: return 0;
2419: }
2420: _ACEOF
2421: rm -f conftest.$ac_objext conftest$ac_exeext
2422: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.3 takayama 2423: (eval $ac_link) 2>conftest.er1
1.2 takayama 2424: ac_status=$?
1.3 takayama 2425: grep -v '^ *+' conftest.er1 >conftest.err
2426: rm -f conftest.er1
2427: cat conftest.err >&5
1.2 takayama 2428: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429: (exit $ac_status); } &&
1.3 takayama 2430: { ac_try='test -z "$ac_c_werror_flag"
2431: || test ! -s conftest.err'
2432: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433: (eval $ac_try) 2>&5
2434: ac_status=$?
2435: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436: (exit $ac_status); }; } &&
2437: { ac_try='test -s conftest$ac_exeext'
1.2 takayama 2438: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439: (eval $ac_try) 2>&5
2440: ac_status=$?
2441: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442: (exit $ac_status); }; }; then
2443: ac_cv_lib_socket_socket=yes
2444: else
2445: echo "$as_me: failed program was:" >&5
1.3 takayama 2446: sed 's/^/| /' conftest.$ac_ext >&5
2447:
1.2 takayama 2448: ac_cv_lib_socket_socket=no
2449: fi
1.3 takayama 2450: rm -f conftest.err conftest.$ac_objext \
2451: conftest$ac_exeext conftest.$ac_ext
1.2 takayama 2452: LIBS=$ac_check_lib_save_LIBS
2453: fi
2454: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
2455: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
2456: if test $ac_cv_lib_socket_socket = yes; then
2457: cat >>confdefs.h <<_ACEOF
2458: #define HAVE_LIBSOCKET 1
2459: _ACEOF
1.1 takayama 2460:
2461: LIBS="-lsocket $LIBS"
2462:
2463: fi
2464:
2465: fi
1.2 takayama 2466: echo "$as_me:$LINENO: checking for gethostbyname" >&5
2467: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2468: if test "${ac_cv_func_gethostbyname+set}" = set; then
2469: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 takayama 2470: else
1.2 takayama 2471: cat >conftest.$ac_ext <<_ACEOF
1.3 takayama 2472: /* confdefs.h. */
2473: _ACEOF
2474: cat confdefs.h >>conftest.$ac_ext
2475: cat >>conftest.$ac_ext <<_ACEOF
2476: /* end confdefs.h. */
2477: /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
2478: For example, HP-UX 11i <limits.h> declares gettimeofday. */
2479: #define gethostbyname innocuous_gethostbyname
2480:
1.1 takayama 2481: /* System header to define __stub macros and hopefully few prototypes,
1.3 takayama 2482: which can conflict with char gethostbyname (); below.
2483: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2484: <limits.h> exists even on freestanding compilers. */
2485:
2486: #ifdef __STDC__
2487: # include <limits.h>
2488: #else
2489: # include <assert.h>
2490: #endif
2491:
2492: #undef gethostbyname
2493:
1.1 takayama 2494: /* Override any gcc2 internal prototype to avoid an error. */
1.2 takayama 2495: #ifdef __cplusplus
2496: extern "C"
1.3 takayama 2497: {
1.2 takayama 2498: #endif
1.1 takayama 2499: /* We use char because int might match the return type of a gcc2
1.2 takayama 2500: builtin and then its argument prototype would still apply. */
2501: char gethostbyname ();
1.1 takayama 2502: /* The GNU C library defines this for functions which it implements
2503: to always fail with ENOSYS. Some functions are actually named
2504: something starting with __ and the normal name is an alias. */
2505: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2506: choke me
2507: #else
1.3 takayama 2508: char (*f) () = gethostbyname;
2509: #endif
2510: #ifdef __cplusplus
2511: }
1.1 takayama 2512: #endif
2513:
1.3 takayama 2514: int
2515: main ()
2516: {
2517: return f != gethostbyname;
1.2 takayama 2518: ;
2519: return 0;
2520: }
2521: _ACEOF
2522: rm -f conftest.$ac_objext conftest$ac_exeext
2523: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.3 takayama 2524: (eval $ac_link) 2>conftest.er1
1.2 takayama 2525: ac_status=$?
1.3 takayama 2526: grep -v '^ *+' conftest.er1 >conftest.err
2527: rm -f conftest.er1
2528: cat conftest.err >&5
1.2 takayama 2529: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530: (exit $ac_status); } &&
1.3 takayama 2531: { ac_try='test -z "$ac_c_werror_flag"
2532: || test ! -s conftest.err'
2533: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534: (eval $ac_try) 2>&5
2535: ac_status=$?
2536: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537: (exit $ac_status); }; } &&
2538: { ac_try='test -s conftest$ac_exeext'
1.2 takayama 2539: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540: (eval $ac_try) 2>&5
2541: ac_status=$?
2542: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543: (exit $ac_status); }; }; then
2544: ac_cv_func_gethostbyname=yes
2545: else
2546: echo "$as_me: failed program was:" >&5
1.3 takayama 2547: sed 's/^/| /' conftest.$ac_ext >&5
2548:
1.2 takayama 2549: ac_cv_func_gethostbyname=no
1.1 takayama 2550: fi
1.3 takayama 2551: rm -f conftest.err conftest.$ac_objext \
2552: conftest$ac_exeext conftest.$ac_ext
1.1 takayama 2553: fi
1.2 takayama 2554: echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2555: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
1.1 takayama 2556:
1.2 takayama 2557: if test "$ac_cv_func_gethostbyname" = no ; then
1.1 takayama 2558:
1.2 takayama 2559: echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2560: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2561: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2562: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 takayama 2563: else
1.2 takayama 2564: ac_check_lib_save_LIBS=$LIBS
1.1 takayama 2565: LIBS="-lnsl $LIBS"
1.2 takayama 2566: cat >conftest.$ac_ext <<_ACEOF
1.3 takayama 2567: /* confdefs.h. */
2568: _ACEOF
2569: cat confdefs.h >>conftest.$ac_ext
2570: cat >>conftest.$ac_ext <<_ACEOF
2571: /* end confdefs.h. */
1.2 takayama 2572:
1.1 takayama 2573: /* Override any gcc2 internal prototype to avoid an error. */
1.2 takayama 2574: #ifdef __cplusplus
2575: extern "C"
2576: #endif
1.1 takayama 2577: /* We use char because int might match the return type of a gcc2
1.2 takayama 2578: builtin and then its argument prototype would still apply. */
2579: char gethostbyname ();
2580: int
2581: main ()
2582: {
2583: gethostbyname ();
2584: ;
2585: return 0;
2586: }
2587: _ACEOF
2588: rm -f conftest.$ac_objext conftest$ac_exeext
2589: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.3 takayama 2590: (eval $ac_link) 2>conftest.er1
1.2 takayama 2591: ac_status=$?
1.3 takayama 2592: grep -v '^ *+' conftest.er1 >conftest.err
2593: rm -f conftest.er1
2594: cat conftest.err >&5
1.2 takayama 2595: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596: (exit $ac_status); } &&
1.3 takayama 2597: { ac_try='test -z "$ac_c_werror_flag"
2598: || test ! -s conftest.err'
2599: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600: (eval $ac_try) 2>&5
2601: ac_status=$?
2602: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603: (exit $ac_status); }; } &&
2604: { ac_try='test -s conftest$ac_exeext'
1.2 takayama 2605: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606: (eval $ac_try) 2>&5
2607: ac_status=$?
2608: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609: (exit $ac_status); }; }; then
2610: ac_cv_lib_nsl_gethostbyname=yes
2611: else
2612: echo "$as_me: failed program was:" >&5
1.3 takayama 2613: sed 's/^/| /' conftest.$ac_ext >&5
2614:
1.2 takayama 2615: ac_cv_lib_nsl_gethostbyname=no
2616: fi
1.3 takayama 2617: rm -f conftest.err conftest.$ac_objext \
2618: conftest$ac_exeext conftest.$ac_ext
1.2 takayama 2619: LIBS=$ac_check_lib_save_LIBS
2620: fi
2621: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2622: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2623: if test $ac_cv_lib_nsl_gethostbyname = yes; then
2624: cat >>confdefs.h <<_ACEOF
2625: #define HAVE_LIBNSL 1
2626: _ACEOF
2627:
2628: LIBS="-lnsl $LIBS"
1.1 takayama 2629:
2630: fi
2631:
2632: fi
1.2 takayama 2633: echo "$as_me:$LINENO: checking for dlopen" >&5
2634: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
2635: if test "${ac_cv_func_dlopen+set}" = set; then
2636: echo $ECHO_N "(cached) $ECHO_C" >&6
2637: else
2638: cat >conftest.$ac_ext <<_ACEOF
1.3 takayama 2639: /* confdefs.h. */
2640: _ACEOF
2641: cat confdefs.h >>conftest.$ac_ext
2642: cat >>conftest.$ac_ext <<_ACEOF
2643: /* end confdefs.h. */
2644: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
2645: For example, HP-UX 11i <limits.h> declares gettimeofday. */
2646: #define dlopen innocuous_dlopen
2647:
1.2 takayama 2648: /* System header to define __stub macros and hopefully few prototypes,
1.3 takayama 2649: which can conflict with char dlopen (); below.
2650: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2651: <limits.h> exists even on freestanding compilers. */
2652:
2653: #ifdef __STDC__
2654: # include <limits.h>
2655: #else
2656: # include <assert.h>
2657: #endif
2658:
2659: #undef dlopen
2660:
1.2 takayama 2661: /* Override any gcc2 internal prototype to avoid an error. */
2662: #ifdef __cplusplus
2663: extern "C"
1.3 takayama 2664: {
1.2 takayama 2665: #endif
2666: /* We use char because int might match the return type of a gcc2
2667: builtin and then its argument prototype would still apply. */
2668: char dlopen ();
2669: /* The GNU C library defines this for functions which it implements
2670: to always fail with ENOSYS. Some functions are actually named
2671: something starting with __ and the normal name is an alias. */
2672: #if defined (__stub_dlopen) || defined (__stub___dlopen)
2673: choke me
2674: #else
1.3 takayama 2675: char (*f) () = dlopen;
2676: #endif
2677: #ifdef __cplusplus
2678: }
1.2 takayama 2679: #endif
2680:
1.3 takayama 2681: int
2682: main ()
2683: {
2684: return f != dlopen;
1.2 takayama 2685: ;
2686: return 0;
2687: }
2688: _ACEOF
2689: rm -f conftest.$ac_objext conftest$ac_exeext
2690: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.3 takayama 2691: (eval $ac_link) 2>conftest.er1
1.2 takayama 2692: ac_status=$?
1.3 takayama 2693: grep -v '^ *+' conftest.er1 >conftest.err
2694: rm -f conftest.er1
2695: cat conftest.err >&5
1.2 takayama 2696: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697: (exit $ac_status); } &&
1.3 takayama 2698: { ac_try='test -z "$ac_c_werror_flag"
2699: || test ! -s conftest.err'
2700: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701: (eval $ac_try) 2>&5
2702: ac_status=$?
2703: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704: (exit $ac_status); }; } &&
2705: { ac_try='test -s conftest$ac_exeext'
1.2 takayama 2706: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707: (eval $ac_try) 2>&5
2708: ac_status=$?
2709: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710: (exit $ac_status); }; }; then
2711: ac_cv_func_dlopen=yes
2712: else
2713: echo "$as_me: failed program was:" >&5
1.3 takayama 2714: sed 's/^/| /' conftest.$ac_ext >&5
2715:
1.2 takayama 2716: ac_cv_func_dlopen=no
2717: fi
1.3 takayama 2718: rm -f conftest.err conftest.$ac_objext \
2719: conftest$ac_exeext conftest.$ac_ext
1.2 takayama 2720: fi
2721: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
2722: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
2723:
2724: if test "$ac_cv_func_dlopen" = no ; then
2725:
2726: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
2727: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
2728: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
2729: echo $ECHO_N "(cached) $ECHO_C" >&6
2730: else
2731: ac_check_lib_save_LIBS=$LIBS
2732: LIBS="-ldl $LIBS"
2733: cat >conftest.$ac_ext <<_ACEOF
1.3 takayama 2734: /* confdefs.h. */
2735: _ACEOF
2736: cat confdefs.h >>conftest.$ac_ext
2737: cat >>conftest.$ac_ext <<_ACEOF
2738: /* end confdefs.h. */
1.1 takayama 2739:
1.2 takayama 2740: /* Override any gcc2 internal prototype to avoid an error. */
2741: #ifdef __cplusplus
2742: extern "C"
2743: #endif
2744: /* We use char because int might match the return type of a gcc2
2745: builtin and then its argument prototype would still apply. */
2746: char dlopen ();
2747: int
2748: main ()
2749: {
2750: dlopen ();
2751: ;
2752: return 0;
2753: }
2754: _ACEOF
2755: rm -f conftest.$ac_objext conftest$ac_exeext
2756: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.3 takayama 2757: (eval $ac_link) 2>conftest.er1
1.2 takayama 2758: ac_status=$?
1.3 takayama 2759: grep -v '^ *+' conftest.er1 >conftest.err
2760: rm -f conftest.er1
2761: cat conftest.err >&5
1.2 takayama 2762: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763: (exit $ac_status); } &&
1.3 takayama 2764: { ac_try='test -z "$ac_c_werror_flag"
2765: || test ! -s conftest.err'
2766: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767: (eval $ac_try) 2>&5
2768: ac_status=$?
2769: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770: (exit $ac_status); }; } &&
2771: { ac_try='test -s conftest$ac_exeext'
1.2 takayama 2772: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773: (eval $ac_try) 2>&5
2774: ac_status=$?
2775: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776: (exit $ac_status); }; }; then
2777: ac_cv_lib_dl_dlopen=yes
2778: else
2779: echo "$as_me: failed program was:" >&5
1.3 takayama 2780: sed 's/^/| /' conftest.$ac_ext >&5
2781:
1.2 takayama 2782: ac_cv_lib_dl_dlopen=no
2783: fi
1.3 takayama 2784: rm -f conftest.err conftest.$ac_objext \
2785: conftest$ac_exeext conftest.$ac_ext
1.2 takayama 2786: LIBS=$ac_check_lib_save_LIBS
2787: fi
2788: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
2789: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
2790: if test $ac_cv_lib_dl_dlopen = yes; then
2791: cat >>confdefs.h <<_ACEOF
2792: #define HAVE_LIBDL 1
2793: _ACEOF
2794:
2795: LIBS="-ldl $LIBS"
1.1 takayama 2796:
2797: fi
2798:
2799: fi
2800:
1.3 takayama 2801: ac_ext=c
2802: ac_cpp='$CPP $CPPFLAGS'
2803: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2807: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2808: # On Suns, sometimes $CPP names a directory.
2809: if test -n "$CPP" && test -d "$CPP"; then
2810: CPP=
2811: fi
2812: if test -z "$CPP"; then
2813: if test "${ac_cv_prog_CPP+set}" = set; then
2814: echo $ECHO_N "(cached) $ECHO_C" >&6
2815: else
2816: # Double quotes because CPP needs to be expanded
2817: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2818: do
2819: ac_preproc_ok=false
2820: for ac_c_preproc_warn_flag in '' yes
2821: do
2822: # Use a header file that comes with gcc, so configuring glibc
2823: # with a fresh cross-compiler works.
2824: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2825: # <limits.h> exists even on freestanding compilers.
2826: # On the NeXT, cc -E runs the code through the compiler's parser,
2827: # not just through cpp. "Syntax error" is here to catch this case.
2828: cat >conftest.$ac_ext <<_ACEOF
2829: /* confdefs.h. */
2830: _ACEOF
2831: cat confdefs.h >>conftest.$ac_ext
2832: cat >>conftest.$ac_ext <<_ACEOF
2833: /* end confdefs.h. */
2834: #ifdef __STDC__
2835: # include <limits.h>
2836: #else
2837: # include <assert.h>
2838: #endif
2839: Syntax error
2840: _ACEOF
2841: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2842: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2843: ac_status=$?
2844: grep -v '^ *+' conftest.er1 >conftest.err
2845: rm -f conftest.er1
2846: cat conftest.err >&5
2847: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848: (exit $ac_status); } >/dev/null; then
2849: if test -s conftest.err; then
2850: ac_cpp_err=$ac_c_preproc_warn_flag
2851: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2852: else
2853: ac_cpp_err=
2854: fi
2855: else
2856: ac_cpp_err=yes
2857: fi
2858: if test -z "$ac_cpp_err"; then
2859: :
2860: else
2861: echo "$as_me: failed program was:" >&5
2862: sed 's/^/| /' conftest.$ac_ext >&5
2863:
2864: # Broken: fails on valid input.
2865: continue
2866: fi
2867: rm -f conftest.err conftest.$ac_ext
2868:
2869: # OK, works on sane cases. Now check whether non-existent headers
2870: # can be detected and how.
2871: cat >conftest.$ac_ext <<_ACEOF
2872: /* confdefs.h. */
2873: _ACEOF
2874: cat confdefs.h >>conftest.$ac_ext
2875: cat >>conftest.$ac_ext <<_ACEOF
2876: /* end confdefs.h. */
2877: #include <ac_nonexistent.h>
2878: _ACEOF
2879: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2880: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2881: ac_status=$?
2882: grep -v '^ *+' conftest.er1 >conftest.err
2883: rm -f conftest.er1
2884: cat conftest.err >&5
2885: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886: (exit $ac_status); } >/dev/null; then
2887: if test -s conftest.err; then
2888: ac_cpp_err=$ac_c_preproc_warn_flag
2889: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2890: else
2891: ac_cpp_err=
2892: fi
2893: else
2894: ac_cpp_err=yes
2895: fi
2896: if test -z "$ac_cpp_err"; then
2897: # Broken: success on invalid input.
2898: continue
2899: else
2900: echo "$as_me: failed program was:" >&5
2901: sed 's/^/| /' conftest.$ac_ext >&5
1.1 takayama 2902:
1.3 takayama 2903: # Passes both tests.
2904: ac_preproc_ok=:
2905: break
2906: fi
2907: rm -f conftest.err conftest.$ac_ext
2908:
2909: done
2910: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2911: rm -f conftest.err conftest.$ac_ext
2912: if $ac_preproc_ok; then
2913: break
2914: fi
2915:
2916: done
2917: ac_cv_prog_CPP=$CPP
2918:
2919: fi
2920: CPP=$ac_cv_prog_CPP
2921: else
2922: ac_cv_prog_CPP=$CPP
2923: fi
2924: echo "$as_me:$LINENO: result: $CPP" >&5
2925: echo "${ECHO_T}$CPP" >&6
2926: ac_preproc_ok=false
2927: for ac_c_preproc_warn_flag in '' yes
2928: do
2929: # Use a header file that comes with gcc, so configuring glibc
2930: # with a fresh cross-compiler works.
2931: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2932: # <limits.h> exists even on freestanding compilers.
2933: # On the NeXT, cc -E runs the code through the compiler's parser,
2934: # not just through cpp. "Syntax error" is here to catch this case.
2935: cat >conftest.$ac_ext <<_ACEOF
2936: /* confdefs.h. */
2937: _ACEOF
2938: cat confdefs.h >>conftest.$ac_ext
2939: cat >>conftest.$ac_ext <<_ACEOF
2940: /* end confdefs.h. */
2941: #ifdef __STDC__
2942: # include <limits.h>
2943: #else
2944: # include <assert.h>
2945: #endif
2946: Syntax error
2947: _ACEOF
2948: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2949: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950: ac_status=$?
2951: grep -v '^ *+' conftest.er1 >conftest.err
2952: rm -f conftest.er1
2953: cat conftest.err >&5
2954: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955: (exit $ac_status); } >/dev/null; then
2956: if test -s conftest.err; then
2957: ac_cpp_err=$ac_c_preproc_warn_flag
2958: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2959: else
2960: ac_cpp_err=
2961: fi
2962: else
2963: ac_cpp_err=yes
2964: fi
2965: if test -z "$ac_cpp_err"; then
2966: :
2967: else
2968: echo "$as_me: failed program was:" >&5
2969: sed 's/^/| /' conftest.$ac_ext >&5
2970:
2971: # Broken: fails on valid input.
2972: continue
2973: fi
2974: rm -f conftest.err conftest.$ac_ext
2975:
2976: # OK, works on sane cases. Now check whether non-existent headers
2977: # can be detected and how.
2978: cat >conftest.$ac_ext <<_ACEOF
2979: /* confdefs.h. */
2980: _ACEOF
2981: cat confdefs.h >>conftest.$ac_ext
2982: cat >>conftest.$ac_ext <<_ACEOF
2983: /* end confdefs.h. */
2984: #include <ac_nonexistent.h>
2985: _ACEOF
2986: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2987: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2988: ac_status=$?
2989: grep -v '^ *+' conftest.er1 >conftest.err
2990: rm -f conftest.er1
2991: cat conftest.err >&5
2992: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993: (exit $ac_status); } >/dev/null; then
2994: if test -s conftest.err; then
2995: ac_cpp_err=$ac_c_preproc_warn_flag
2996: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2997: else
2998: ac_cpp_err=
2999: fi
3000: else
3001: ac_cpp_err=yes
3002: fi
3003: if test -z "$ac_cpp_err"; then
3004: # Broken: success on invalid input.
3005: continue
3006: else
3007: echo "$as_me: failed program was:" >&5
3008: sed 's/^/| /' conftest.$ac_ext >&5
3009:
3010: # Passes both tests.
3011: ac_preproc_ok=:
3012: break
3013: fi
3014: rm -f conftest.err conftest.$ac_ext
3015:
3016: done
3017: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3018: rm -f conftest.err conftest.$ac_ext
3019: if $ac_preproc_ok; then
3020: :
3021: else
3022: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3023: See \`config.log' for more details." >&5
3024: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3025: See \`config.log' for more details." >&2;}
3026: { (exit 1); exit 1; }; }
3027: fi
3028:
3029: ac_ext=c
3030: ac_cpp='$CPP $CPPFLAGS'
3031: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3032: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3033: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3034:
3035:
3036: echo "$as_me:$LINENO: checking for egrep" >&5
3037: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3038: if test "${ac_cv_prog_egrep+set}" = set; then
3039: echo $ECHO_N "(cached) $ECHO_C" >&6
3040: else
3041: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3042: then ac_cv_prog_egrep='grep -E'
3043: else ac_cv_prog_egrep='egrep'
3044: fi
3045: fi
3046: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3047: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3048: EGREP=$ac_cv_prog_egrep
3049:
3050:
3051: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3052: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3053: if test "${ac_cv_header_stdc+set}" = set; then
3054: echo $ECHO_N "(cached) $ECHO_C" >&6
3055: else
3056: cat >conftest.$ac_ext <<_ACEOF
3057: /* confdefs.h. */
3058: _ACEOF
3059: cat confdefs.h >>conftest.$ac_ext
3060: cat >>conftest.$ac_ext <<_ACEOF
3061: /* end confdefs.h. */
3062: #include <stdlib.h>
3063: #include <stdarg.h>
3064: #include <string.h>
3065: #include <float.h>
3066:
3067: int
3068: main ()
3069: {
3070:
3071: ;
3072: return 0;
3073: }
3074: _ACEOF
3075: rm -f conftest.$ac_objext
3076: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3077: (eval $ac_compile) 2>conftest.er1
3078: ac_status=$?
3079: grep -v '^ *+' conftest.er1 >conftest.err
3080: rm -f conftest.er1
3081: cat conftest.err >&5
3082: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083: (exit $ac_status); } &&
3084: { ac_try='test -z "$ac_c_werror_flag"
3085: || test ! -s conftest.err'
3086: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087: (eval $ac_try) 2>&5
3088: ac_status=$?
3089: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090: (exit $ac_status); }; } &&
3091: { ac_try='test -s conftest.$ac_objext'
3092: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093: (eval $ac_try) 2>&5
3094: ac_status=$?
3095: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096: (exit $ac_status); }; }; then
3097: ac_cv_header_stdc=yes
3098: else
3099: echo "$as_me: failed program was:" >&5
3100: sed 's/^/| /' conftest.$ac_ext >&5
3101:
3102: ac_cv_header_stdc=no
3103: fi
3104: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3105:
3106: if test $ac_cv_header_stdc = yes; then
3107: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3108: cat >conftest.$ac_ext <<_ACEOF
3109: /* confdefs.h. */
3110: _ACEOF
3111: cat confdefs.h >>conftest.$ac_ext
3112: cat >>conftest.$ac_ext <<_ACEOF
3113: /* end confdefs.h. */
3114: #include <string.h>
3115:
3116: _ACEOF
3117: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3118: $EGREP "memchr" >/dev/null 2>&1; then
3119: :
3120: else
3121: ac_cv_header_stdc=no
3122: fi
3123: rm -f conftest*
3124:
3125: fi
3126:
3127: if test $ac_cv_header_stdc = yes; then
3128: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3129: cat >conftest.$ac_ext <<_ACEOF
3130: /* confdefs.h. */
3131: _ACEOF
3132: cat confdefs.h >>conftest.$ac_ext
3133: cat >>conftest.$ac_ext <<_ACEOF
3134: /* end confdefs.h. */
3135: #include <stdlib.h>
3136:
3137: _ACEOF
3138: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139: $EGREP "free" >/dev/null 2>&1; then
3140: :
3141: else
3142: ac_cv_header_stdc=no
3143: fi
3144: rm -f conftest*
3145:
3146: fi
3147:
3148: if test $ac_cv_header_stdc = yes; then
3149: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3150: if test "$cross_compiling" = yes; then
3151: :
3152: else
3153: cat >conftest.$ac_ext <<_ACEOF
3154: /* confdefs.h. */
3155: _ACEOF
3156: cat confdefs.h >>conftest.$ac_ext
3157: cat >>conftest.$ac_ext <<_ACEOF
3158: /* end confdefs.h. */
3159: #include <ctype.h>
3160: #if ((' ' & 0x0FF) == 0x020)
3161: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3162: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3163: #else
3164: # define ISLOWER(c) \
3165: (('a' <= (c) && (c) <= 'i') \
3166: || ('j' <= (c) && (c) <= 'r') \
3167: || ('s' <= (c) && (c) <= 'z'))
3168: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3169: #endif
3170:
3171: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3172: int
3173: main ()
3174: {
3175: int i;
3176: for (i = 0; i < 256; i++)
3177: if (XOR (islower (i), ISLOWER (i))
3178: || toupper (i) != TOUPPER (i))
3179: exit(2);
3180: exit (0);
3181: }
3182: _ACEOF
3183: rm -f conftest$ac_exeext
3184: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3185: (eval $ac_link) 2>&5
3186: ac_status=$?
3187: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3189: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190: (eval $ac_try) 2>&5
3191: ac_status=$?
3192: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193: (exit $ac_status); }; }; then
3194: :
3195: else
3196: echo "$as_me: program exited with status $ac_status" >&5
3197: echo "$as_me: failed program was:" >&5
3198: sed 's/^/| /' conftest.$ac_ext >&5
3199:
3200: ( exit $ac_status )
3201: ac_cv_header_stdc=no
3202: fi
3203: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3204: fi
3205: fi
3206: fi
3207: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3208: echo "${ECHO_T}$ac_cv_header_stdc" >&6
3209: if test $ac_cv_header_stdc = yes; then
3210:
3211: cat >>confdefs.h <<\_ACEOF
3212: #define STDC_HEADERS 1
3213: _ACEOF
3214:
3215: fi
3216:
3217: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3218:
3219:
3220:
3221:
3222:
3223:
3224:
3225:
3226:
3227: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3228: inttypes.h stdint.h unistd.h
3229: do
3230: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3231: echo "$as_me:$LINENO: checking for $ac_header" >&5
3232: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3233: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3234: echo $ECHO_N "(cached) $ECHO_C" >&6
3235: else
3236: cat >conftest.$ac_ext <<_ACEOF
3237: /* confdefs.h. */
3238: _ACEOF
3239: cat confdefs.h >>conftest.$ac_ext
3240: cat >>conftest.$ac_ext <<_ACEOF
3241: /* end confdefs.h. */
3242: $ac_includes_default
3243:
3244: #include <$ac_header>
3245: _ACEOF
3246: rm -f conftest.$ac_objext
3247: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3248: (eval $ac_compile) 2>conftest.er1
3249: ac_status=$?
3250: grep -v '^ *+' conftest.er1 >conftest.err
3251: rm -f conftest.er1
3252: cat conftest.err >&5
3253: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254: (exit $ac_status); } &&
3255: { ac_try='test -z "$ac_c_werror_flag"
3256: || test ! -s conftest.err'
3257: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258: (eval $ac_try) 2>&5
3259: ac_status=$?
3260: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261: (exit $ac_status); }; } &&
3262: { ac_try='test -s conftest.$ac_objext'
3263: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264: (eval $ac_try) 2>&5
3265: ac_status=$?
3266: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267: (exit $ac_status); }; }; then
3268: eval "$as_ac_Header=yes"
3269: else
3270: echo "$as_me: failed program was:" >&5
3271: sed 's/^/| /' conftest.$ac_ext >&5
3272:
3273: eval "$as_ac_Header=no"
3274: fi
3275: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3276: fi
3277: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3278: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3279: if test `eval echo '${'$as_ac_Header'}'` = yes; then
3280: cat >>confdefs.h <<_ACEOF
3281: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3282: _ACEOF
3283:
3284: fi
3285:
3286: done
3287:
3288:
3289: if test "${ac_cv_header_sys_appleapiopts_h+set}" = set; then
3290: echo "$as_me:$LINENO: checking for sys/appleapiopts.h" >&5
3291: echo $ECHO_N "checking for sys/appleapiopts.h... $ECHO_C" >&6
3292: if test "${ac_cv_header_sys_appleapiopts_h+set}" = set; then
3293: echo $ECHO_N "(cached) $ECHO_C" >&6
3294: fi
3295: echo "$as_me:$LINENO: result: $ac_cv_header_sys_appleapiopts_h" >&5
3296: echo "${ECHO_T}$ac_cv_header_sys_appleapiopts_h" >&6
3297: else
3298: # Is the header compilable?
3299: echo "$as_me:$LINENO: checking sys/appleapiopts.h usability" >&5
3300: echo $ECHO_N "checking sys/appleapiopts.h usability... $ECHO_C" >&6
3301: cat >conftest.$ac_ext <<_ACEOF
3302: /* confdefs.h. */
3303: _ACEOF
3304: cat confdefs.h >>conftest.$ac_ext
3305: cat >>conftest.$ac_ext <<_ACEOF
3306: /* end confdefs.h. */
3307: $ac_includes_default
3308: #include <sys/appleapiopts.h>
3309: _ACEOF
3310: rm -f conftest.$ac_objext
3311: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3312: (eval $ac_compile) 2>conftest.er1
3313: ac_status=$?
3314: grep -v '^ *+' conftest.er1 >conftest.err
3315: rm -f conftest.er1
3316: cat conftest.err >&5
3317: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318: (exit $ac_status); } &&
3319: { ac_try='test -z "$ac_c_werror_flag"
3320: || test ! -s conftest.err'
3321: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322: (eval $ac_try) 2>&5
3323: ac_status=$?
3324: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325: (exit $ac_status); }; } &&
3326: { ac_try='test -s conftest.$ac_objext'
3327: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3328: (eval $ac_try) 2>&5
3329: ac_status=$?
3330: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331: (exit $ac_status); }; }; then
3332: ac_header_compiler=yes
3333: else
3334: echo "$as_me: failed program was:" >&5
3335: sed 's/^/| /' conftest.$ac_ext >&5
3336:
3337: ac_header_compiler=no
3338: fi
3339: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3340: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3341: echo "${ECHO_T}$ac_header_compiler" >&6
3342:
3343: # Is the header present?
3344: echo "$as_me:$LINENO: checking sys/appleapiopts.h presence" >&5
3345: echo $ECHO_N "checking sys/appleapiopts.h presence... $ECHO_C" >&6
3346: cat >conftest.$ac_ext <<_ACEOF
3347: /* confdefs.h. */
3348: _ACEOF
3349: cat confdefs.h >>conftest.$ac_ext
3350: cat >>conftest.$ac_ext <<_ACEOF
3351: /* end confdefs.h. */
3352: #include <sys/appleapiopts.h>
3353: _ACEOF
3354: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3355: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3356: ac_status=$?
3357: grep -v '^ *+' conftest.er1 >conftest.err
3358: rm -f conftest.er1
3359: cat conftest.err >&5
3360: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361: (exit $ac_status); } >/dev/null; then
3362: if test -s conftest.err; then
3363: ac_cpp_err=$ac_c_preproc_warn_flag
3364: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3365: else
3366: ac_cpp_err=
3367: fi
3368: else
3369: ac_cpp_err=yes
3370: fi
3371: if test -z "$ac_cpp_err"; then
3372: ac_header_preproc=yes
3373: else
3374: echo "$as_me: failed program was:" >&5
3375: sed 's/^/| /' conftest.$ac_ext >&5
3376:
3377: ac_header_preproc=no
3378: fi
3379: rm -f conftest.err conftest.$ac_ext
3380: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3381: echo "${ECHO_T}$ac_header_preproc" >&6
3382:
3383: # So? What about this header?
3384: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3385: yes:no: )
3386: { echo "$as_me:$LINENO: WARNING: sys/appleapiopts.h: accepted by the compiler, rejected by the preprocessor!" >&5
3387: echo "$as_me: WARNING: sys/appleapiopts.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3388: { echo "$as_me:$LINENO: WARNING: sys/appleapiopts.h: proceeding with the compiler's result" >&5
3389: echo "$as_me: WARNING: sys/appleapiopts.h: proceeding with the compiler's result" >&2;}
3390: ac_header_preproc=yes
3391: ;;
3392: no:yes:* )
3393: { echo "$as_me:$LINENO: WARNING: sys/appleapiopts.h: present but cannot be compiled" >&5
3394: echo "$as_me: WARNING: sys/appleapiopts.h: present but cannot be compiled" >&2;}
3395: { echo "$as_me:$LINENO: WARNING: sys/appleapiopts.h: check for missing prerequisite headers?" >&5
3396: echo "$as_me: WARNING: sys/appleapiopts.h: check for missing prerequisite headers?" >&2;}
3397: { echo "$as_me:$LINENO: WARNING: sys/appleapiopts.h: see the Autoconf documentation" >&5
3398: echo "$as_me: WARNING: sys/appleapiopts.h: see the Autoconf documentation" >&2;}
3399: { echo "$as_me:$LINENO: WARNING: sys/appleapiopts.h: section \"Present But Cannot Be Compiled\"" >&5
3400: echo "$as_me: WARNING: sys/appleapiopts.h: section \"Present But Cannot Be Compiled\"" >&2;}
3401: { echo "$as_me:$LINENO: WARNING: sys/appleapiopts.h: proceeding with the preprocessor's result" >&5
3402: echo "$as_me: WARNING: sys/appleapiopts.h: proceeding with the preprocessor's result" >&2;}
3403: { echo "$as_me:$LINENO: WARNING: sys/appleapiopts.h: in the future, the compiler will take precedence" >&5
3404: echo "$as_me: WARNING: sys/appleapiopts.h: in the future, the compiler will take precedence" >&2;}
3405: (
3406: cat <<\_ASBOX
3407: ## ------------------------------------------ ##
3408: ## Report this to the AC_PACKAGE_NAME lists. ##
3409: ## ------------------------------------------ ##
3410: _ASBOX
3411: ) |
3412: sed "s/^/$as_me: WARNING: /" >&2
3413: ;;
3414: esac
3415: echo "$as_me:$LINENO: checking for sys/appleapiopts.h" >&5
3416: echo $ECHO_N "checking for sys/appleapiopts.h... $ECHO_C" >&6
3417: if test "${ac_cv_header_sys_appleapiopts_h+set}" = set; then
3418: echo $ECHO_N "(cached) $ECHO_C" >&6
3419: else
3420: ac_cv_header_sys_appleapiopts_h=$ac_header_preproc
3421: fi
3422: echo "$as_me:$LINENO: result: $ac_cv_header_sys_appleapiopts_h" >&5
3423: echo "${ECHO_T}$ac_cv_header_sys_appleapiopts_h" >&6
3424:
3425: fi
3426: if test $ac_cv_header_sys_appleapiopts_h = yes; then
3427: CFLAG2=" -arch ppc -arch i386"
3428:
3429: else
3430: CFLAG2=" "
3431:
3432: fi
3433:
3434:
1.4 takayama 3435: if test "${ac_cv_header_sys_appleapiopts_h+set}" = set; then
3436: echo "$as_me:$LINENO: checking for sys/appleapiopts.h" >&5
3437: echo $ECHO_N "checking for sys/appleapiopts.h... $ECHO_C" >&6
3438: if test "${ac_cv_header_sys_appleapiopts_h+set}" = set; then
3439: echo $ECHO_N "(cached) $ECHO_C" >&6
3440: fi
3441: echo "$as_me:$LINENO: result: $ac_cv_header_sys_appleapiopts_h" >&5
3442: echo "${ECHO_T}$ac_cv_header_sys_appleapiopts_h" >&6
3443: else
3444: # Is the header compilable?
3445: echo "$as_me:$LINENO: checking sys/appleapiopts.h usability" >&5
3446: echo $ECHO_N "checking sys/appleapiopts.h usability... $ECHO_C" >&6
3447: cat >conftest.$ac_ext <<_ACEOF
3448: /* confdefs.h. */
3449: _ACEOF
3450: cat confdefs.h >>conftest.$ac_ext
3451: cat >>conftest.$ac_ext <<_ACEOF
3452: /* end confdefs.h. */
3453: $ac_includes_default
3454: #include <sys/appleapiopts.h>
3455: _ACEOF
3456: rm -f conftest.$ac_objext
3457: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3458: (eval $ac_compile) 2>conftest.er1
3459: ac_status=$?
3460: grep -v '^ *+' conftest.er1 >conftest.err
3461: rm -f conftest.er1
3462: cat conftest.err >&5
3463: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464: (exit $ac_status); } &&
3465: { ac_try='test -z "$ac_c_werror_flag"
3466: || test ! -s conftest.err'
3467: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468: (eval $ac_try) 2>&5
3469: ac_status=$?
3470: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471: (exit $ac_status); }; } &&
3472: { ac_try='test -s conftest.$ac_objext'
3473: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474: (eval $ac_try) 2>&5
3475: ac_status=$?
3476: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477: (exit $ac_status); }; }; then
3478: ac_header_compiler=yes
3479: else
3480: echo "$as_me: failed program was:" >&5
3481: sed 's/^/| /' conftest.$ac_ext >&5
3482:
3483: ac_header_compiler=no
3484: fi
3485: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3486: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3487: echo "${ECHO_T}$ac_header_compiler" >&6
3488:
3489: # Is the header present?
3490: echo "$as_me:$LINENO: checking sys/appleapiopts.h presence" >&5
3491: echo $ECHO_N "checking sys/appleapiopts.h presence... $ECHO_C" >&6
3492: cat >conftest.$ac_ext <<_ACEOF
3493: /* confdefs.h. */
3494: _ACEOF
3495: cat confdefs.h >>conftest.$ac_ext
3496: cat >>conftest.$ac_ext <<_ACEOF
3497: /* end confdefs.h. */
3498: #include <sys/appleapiopts.h>
3499: _ACEOF
3500: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3501: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3502: ac_status=$?
3503: grep -v '^ *+' conftest.er1 >conftest.err
3504: rm -f conftest.er1
3505: cat conftest.err >&5
3506: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507: (exit $ac_status); } >/dev/null; then
3508: if test -s conftest.err; then
3509: ac_cpp_err=$ac_c_preproc_warn_flag
3510: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3511: else
3512: ac_cpp_err=
3513: fi
3514: else
3515: ac_cpp_err=yes
3516: fi
3517: if test -z "$ac_cpp_err"; then
3518: ac_header_preproc=yes
3519: else
3520: echo "$as_me: failed program was:" >&5
3521: sed 's/^/| /' conftest.$ac_ext >&5
3522:
3523: ac_header_preproc=no
3524: fi
3525: rm -f conftest.err conftest.$ac_ext
3526: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3527: echo "${ECHO_T}$ac_header_preproc" >&6
3528:
3529: # So? What about this header?
3530: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3531: yes:no: )
3532: { echo "$as_me:$LINENO: WARNING: sys/appleapiopts.h: accepted by the compiler, rejected by the preprocessor!" >&5
3533: echo "$as_me: WARNING: sys/appleapiopts.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3534: { echo "$as_me:$LINENO: WARNING: sys/appleapiopts.h: proceeding with the compiler's result" >&5
3535: echo "$as_me: WARNING: sys/appleapiopts.h: proceeding with the compiler's result" >&2;}
3536: ac_header_preproc=yes
3537: ;;
3538: no:yes:* )
3539: { echo "$as_me:$LINENO: WARNING: sys/appleapiopts.h: present but cannot be compiled" >&5
3540: echo "$as_me: WARNING: sys/appleapiopts.h: present but cannot be compiled" >&2;}
3541: { echo "$as_me:$LINENO: WARNING: sys/appleapiopts.h: check for missing prerequisite headers?" >&5
3542: echo "$as_me: WARNING: sys/appleapiopts.h: check for missing prerequisite headers?" >&2;}
3543: { echo "$as_me:$LINENO: WARNING: sys/appleapiopts.h: see the Autoconf documentation" >&5
3544: echo "$as_me: WARNING: sys/appleapiopts.h: see the Autoconf documentation" >&2;}
3545: { echo "$as_me:$LINENO: WARNING: sys/appleapiopts.h: section \"Present But Cannot Be Compiled\"" >&5
3546: echo "$as_me: WARNING: sys/appleapiopts.h: section \"Present But Cannot Be Compiled\"" >&2;}
3547: { echo "$as_me:$LINENO: WARNING: sys/appleapiopts.h: proceeding with the preprocessor's result" >&5
3548: echo "$as_me: WARNING: sys/appleapiopts.h: proceeding with the preprocessor's result" >&2;}
3549: { echo "$as_me:$LINENO: WARNING: sys/appleapiopts.h: in the future, the compiler will take precedence" >&5
3550: echo "$as_me: WARNING: sys/appleapiopts.h: in the future, the compiler will take precedence" >&2;}
3551: (
3552: cat <<\_ASBOX
3553: ## ------------------------------------------ ##
3554: ## Report this to the AC_PACKAGE_NAME lists. ##
3555: ## ------------------------------------------ ##
3556: _ASBOX
3557: ) |
3558: sed "s/^/$as_me: WARNING: /" >&2
3559: ;;
3560: esac
3561: echo "$as_me:$LINENO: checking for sys/appleapiopts.h" >&5
3562: echo $ECHO_N "checking for sys/appleapiopts.h... $ECHO_C" >&6
3563: if test "${ac_cv_header_sys_appleapiopts_h+set}" = set; then
3564: echo $ECHO_N "(cached) $ECHO_C" >&6
3565: else
3566: ac_cv_header_sys_appleapiopts_h=$ac_header_preproc
3567: fi
3568: echo "$as_me:$LINENO: result: $ac_cv_header_sys_appleapiopts_h" >&5
3569: echo "${ECHO_T}$ac_cv_header_sys_appleapiopts_h" >&6
3570:
3571: fi
3572: if test $ac_cv_header_sys_appleapiopts_h = yes; then
1.5 ! takayama 3573: CFLAG2p=" -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk "
1.4 takayama 3574:
3575: else
3576: CFLAG2p=" "
3577:
3578: fi
3579:
3580:
1.3 takayama 3581:
3582:
3583: ac_config_files="$ac_config_files Makefile"
1.2 takayama 3584: cat >confcache <<\_ACEOF
1.1 takayama 3585: # This file is a shell script that caches the results of configure
3586: # tests run on this system so they can be shared between configure
1.2 takayama 3587: # scripts and configure runs, see configure's option --config-cache.
3588: # It is not useful on other systems. If it contains results you don't
3589: # want to keep, you may remove or edit it.
1.1 takayama 3590: #
1.2 takayama 3591: # config.status only pays attention to the cache file if you give it
3592: # the --recheck option to rerun configure.
1.1 takayama 3593: #
1.3 takayama 3594: # `ac_cv_env_foo' variables (set or unset) will be overridden when
1.2 takayama 3595: # loading this file, other *unset* `ac_cv_foo' will be assigned the
3596: # following values.
3597:
3598: _ACEOF
3599:
1.1 takayama 3600: # The following way of writing the cache mishandles newlines in values,
3601: # but we know of no workaround that is simple, portable, and efficient.
3602: # So, don't put newlines in cache variables' values.
3603: # Ultrix sh set writes to stderr and can't be redirected directly,
3604: # and sets the high bit in the cache file unless we assign to the vars.
1.2 takayama 3605: {
3606: (set) 2>&1 |
3607: case `(ac_space=' '; set | grep ac_space) 2>&1` in
3608: *ac_space=\ *)
3609: # `set' does not quote correctly, so add quotes (double-quote
3610: # substitution turns \\\\ into \\, and sed turns \\ into \).
3611: sed -n \
1.3 takayama 3612: "s/'/'\\\\''/g;
3613: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.2 takayama 3614: ;;
3615: *)
3616: # `set' quotes correctly as required by POSIX, so do not add quotes.
3617: sed -n \
1.3 takayama 3618: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.2 takayama 3619: ;;
3620: esac;
3621: } |
3622: sed '
3623: t clear
3624: : clear
3625: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3626: t end
3627: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3628: : end' >>confcache
1.3 takayama 3629: if diff $cache_file confcache >/dev/null 2>&1; then :; else
1.1 takayama 3630: if test -w $cache_file; then
1.2 takayama 3631: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3632: cat confcache >$cache_file
1.1 takayama 3633: else
3634: echo "not updating unwritable cache $cache_file"
3635: fi
3636: fi
3637: rm -f confcache
3638:
3639: test "x$prefix" = xNONE && prefix=$ac_default_prefix
3640: # Let make expand exec_prefix.
3641: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3642:
1.2 takayama 3643: # VPATH may cause trouble with some makes, so we remove $(srcdir),
3644: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3645: # trailing colons and then remove the whole line if VPATH becomes empty
3646: # (actually we leave an empty line to preserve line numbers).
1.1 takayama 3647: if test "x$srcdir" = x.; then
1.3 takayama 3648: ac_vpsub='/^[ ]*VPATH[ ]*=/{
1.2 takayama 3649: s/:*\$(srcdir):*/:/;
3650: s/:*\${srcdir}:*/:/;
3651: s/:*@srcdir@:*/:/;
1.3 takayama 3652: s/^\([^=]*=[ ]*\):*/\1/;
1.2 takayama 3653: s/:*$//;
1.3 takayama 3654: s/^[^=]*=[ ]*$//;
1.2 takayama 3655: }'
1.1 takayama 3656: fi
3657:
3658: # Transform confdefs.h into DEFS.
3659: # Protect against shell expansion while executing Makefile rules.
3660: # Protect against Makefile macro expansion.
1.2 takayama 3661: #
3662: # If the first sed substitution is executed (which looks for macros that
3663: # take arguments), then we branch to the quote section. Otherwise,
3664: # look for a macro that doesn't take arguments.
3665: cat >confdef2opt.sed <<\_ACEOF
3666: t clear
3667: : clear
1.3 takayama 3668: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
1.2 takayama 3669: t quote
1.3 takayama 3670: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
1.2 takayama 3671: t quote
3672: d
3673: : quote
1.3 takayama 3674: s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
1.2 takayama 3675: s,\[,\\&,g
3676: s,\],\\&,g
3677: s,\$,$$,g
3678: p
3679: _ACEOF
3680: # We use echo to avoid assuming a particular line-breaking character.
3681: # The extra dot is to prevent the shell from consuming trailing
3682: # line-breaks from the sub-command output. A line-break within
3683: # single-quotes doesn't work because, if this script is created in a
3684: # platform that uses two characters for line-breaks (e.g., DOS), tr
3685: # would break.
3686: ac_LF_and_DOT=`echo; echo .`
3687: DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3688: rm -f confdef2opt.sed
3689:
1.1 takayama 3690:
1.3 takayama 3691: ac_libobjs=
3692: ac_ltlibobjs=
3693: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3694: # 1. Remove the extension, and $U if already installed.
3695: ac_i=`echo "$ac_i" |
3696: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3697: # 2. Add them.
3698: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3699: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3700: done
3701: LIBOBJS=$ac_libobjs
3702:
3703: LTLIBOBJS=$ac_ltlibobjs
3704:
3705:
1.1 takayama 3706:
3707: : ${CONFIG_STATUS=./config.status}
1.2 takayama 3708: ac_clean_files_save=$ac_clean_files
3709: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3710: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3711: echo "$as_me: creating $CONFIG_STATUS" >&6;}
3712: cat >$CONFIG_STATUS <<_ACEOF
3713: #! $SHELL
3714: # Generated by $as_me.
1.1 takayama 3715: # Run this file to recreate the current configuration.
3716: # Compiler output produced by configure, useful for debugging
1.2 takayama 3717: # configure, is in config.log if it exists.
3718:
3719: debug=false
1.3 takayama 3720: ac_cs_recheck=false
3721: ac_cs_silent=false
1.2 takayama 3722: SHELL=\${CONFIG_SHELL-$SHELL}
3723: _ACEOF
3724:
3725: cat >>$CONFIG_STATUS <<\_ACEOF
3726: ## --------------------- ##
3727: ## M4sh Initialization. ##
3728: ## --------------------- ##
3729:
3730: # Be Bourne compatible
3731: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3732: emulate sh
3733: NULLCMD=:
1.3 takayama 3734: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3735: # is contrary to our usage. Disable this feature.
3736: alias -g '${1+"$@"}'='"$@"'
1.2 takayama 3737: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3738: set -o posix
3739: fi
1.3 takayama 3740: DUALCASE=1; export DUALCASE # for MKS sh
1.2 takayama 3741:
3742: # Support unset when possible.
1.3 takayama 3743: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.2 takayama 3744: as_unset=unset
3745: else
3746: as_unset=false
3747: fi
3748:
1.3 takayama 3749:
3750: # Work around bugs in pre-3.0 UWIN ksh.
3751: $as_unset ENV MAIL MAILPATH
3752: PS1='$ '
3753: PS2='> '
3754: PS4='+ '
3755:
3756: # NLS nuisances.
3757: for as_var in \
3758: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3759: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3760: LC_TELEPHONE LC_TIME
3761: do
3762: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3763: eval $as_var=C; export $as_var
3764: else
3765: $as_unset $as_var
3766: fi
3767: done
3768:
3769: # Required to use basename.
3770: if expr a : '\(a\)' >/dev/null 2>&1; then
3771: as_expr=expr
3772: else
3773: as_expr=false
3774: fi
3775:
3776: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3777: as_basename=basename
3778: else
3779: as_basename=false
3780: fi
1.2 takayama 3781:
3782:
3783: # Name of the executable.
1.3 takayama 3784: as_me=`$as_basename "$0" ||
1.2 takayama 3785: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3786: X"$0" : 'X\(//\)$' \| \
3787: X"$0" : 'X\(/\)$' \| \
3788: . : '\(.\)' 2>/dev/null ||
3789: echo X/"$0" |
3790: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3791: /^X\/\(\/\/\)$/{ s//\1/; q; }
3792: /^X\/\(\/\).*/{ s//\1/; q; }
3793: s/.*/./; q'`
3794:
1.3 takayama 3795:
1.2 takayama 3796: # PATH needs CR, and LINENO needs CR and PATH.
3797: # Avoid depending upon Character Ranges.
3798: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3799: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3800: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3801: as_cr_digits='0123456789'
3802: as_cr_alnum=$as_cr_Letters$as_cr_digits
3803:
3804: # The user is always right.
3805: if test "${PATH_SEPARATOR+set}" != set; then
1.3 takayama 3806: echo "#! /bin/sh" >conf$$.sh
3807: echo "exit 0" >>conf$$.sh
3808: chmod +x conf$$.sh
3809: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1.2 takayama 3810: PATH_SEPARATOR=';'
3811: else
3812: PATH_SEPARATOR=:
3813: fi
1.3 takayama 3814: rm -f conf$$.sh
1.2 takayama 3815: fi
3816:
3817:
3818: as_lineno_1=$LINENO
3819: as_lineno_2=$LINENO
3820: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3821: test "x$as_lineno_1" != "x$as_lineno_2" &&
3822: test "x$as_lineno_3" = "x$as_lineno_2" || {
3823: # Find who we are. Look in the path if we contain no path at all
3824: # relative or not.
3825: case $0 in
3826: *[\\/]* ) as_myself=$0 ;;
3827: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828: for as_dir in $PATH
3829: do
3830: IFS=$as_save_IFS
3831: test -z "$as_dir" && as_dir=.
3832: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3833: done
3834:
3835: ;;
3836: esac
3837: # We did not find ourselves, most probably we were run as `sh COMMAND'
3838: # in which case we are not to be found in the path.
3839: if test "x$as_myself" = x; then
3840: as_myself=$0
3841: fi
3842: if test ! -f "$as_myself"; then
3843: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3844: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3845: { (exit 1); exit 1; }; }
3846: fi
3847: case $CONFIG_SHELL in
3848: '')
3849: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3851: do
3852: IFS=$as_save_IFS
3853: test -z "$as_dir" && as_dir=.
3854: for as_base in sh bash ksh sh5; do
3855: case $as_dir in
3856: /*)
3857: if ("$as_dir/$as_base" -c '
3858: as_lineno_1=$LINENO
3859: as_lineno_2=$LINENO
3860: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3861: test "x$as_lineno_1" != "x$as_lineno_2" &&
3862: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
1.3 takayama 3863: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3864: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
1.2 takayama 3865: CONFIG_SHELL=$as_dir/$as_base
3866: export CONFIG_SHELL
3867: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3868: fi;;
3869: esac
3870: done
3871: done
3872: ;;
3873: esac
3874:
3875: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3876: # uniformly replaced by the line number. The first 'sed' inserts a
3877: # line-number line before each line; the second 'sed' does the real
3878: # work. The second script uses 'N' to pair each line-number line
3879: # with the numbered line, and appends trailing '-' during
3880: # substitution so that $LINENO is not a special case at line end.
3881: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3882: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3883: sed '=' <$as_myself |
3884: sed '
3885: N
3886: s,$,-,
3887: : loop
3888: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3889: t loop
3890: s,-$,,
3891: s,^['$as_cr_digits']*\n,,
3892: ' >$as_me.lineno &&
3893: chmod +x $as_me.lineno ||
3894: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3895: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3896: { (exit 1); exit 1; }; }
3897:
3898: # Don't try to exec as it changes $[0], causing all sort of problems
3899: # (the dirname of $[0] is not the place where we might find the
3900: # original and so on. Autoconf is especially sensible to this).
3901: . ./$as_me.lineno
3902: # Exit status is that of the last command.
3903: exit
3904: }
3905:
3906:
3907: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3908: *c*,-n*) ECHO_N= ECHO_C='
3909: ' ECHO_T=' ' ;;
3910: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3911: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3912: esac
3913:
3914: if expr a : '\(a\)' >/dev/null 2>&1; then
3915: as_expr=expr
3916: else
3917: as_expr=false
3918: fi
3919:
3920: rm -f conf$$ conf$$.exe conf$$.file
3921: echo >conf$$.file
3922: if ln -s conf$$.file conf$$ 2>/dev/null; then
3923: # We could just check for DJGPP; but this test a) works b) is more generic
3924: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3925: if test -f conf$$.exe; then
3926: # Don't use ln at all; we don't have any links
3927: as_ln_s='cp -p'
3928: else
3929: as_ln_s='ln -s'
3930: fi
3931: elif ln conf$$.file conf$$ 2>/dev/null; then
3932: as_ln_s=ln
3933: else
3934: as_ln_s='cp -p'
3935: fi
3936: rm -f conf$$ conf$$.exe conf$$.file
3937:
1.3 takayama 3938: if mkdir -p . 2>/dev/null; then
3939: as_mkdir_p=:
3940: else
3941: test -d ./-p && rmdir ./-p
3942: as_mkdir_p=false
3943: fi
3944:
1.2 takayama 3945: as_executable_p="test -f"
3946:
3947: # Sed expression to map a string onto a valid CPP name.
1.3 takayama 3948: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.2 takayama 3949:
3950: # Sed expression to map a string onto a valid variable name.
1.3 takayama 3951: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.2 takayama 3952:
3953:
3954: # IFS
3955: # We need space, tab and new line, in precisely that order.
3956: as_nl='
3957: '
3958: IFS=" $as_nl"
3959:
3960: # CDPATH.
1.3 takayama 3961: $as_unset CDPATH
1.2 takayama 3962:
3963: exec 6>&1
3964:
3965: # Open the log real soon, to keep \$[0] and so on meaningful, and to
3966: # report actual input values of CONFIG_FILES etc. instead of their
3967: # values after options handling. Logging --version etc. is OK.
3968: exec 5>>config.log
3969: {
3970: echo
3971: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3972: ## Running $as_me. ##
3973: _ASBOX
3974: } >&5
3975: cat >&5 <<_CSEOF
3976:
3977: This file was extended by $as_me, which was
1.3 takayama 3978: generated by GNU Autoconf 2.59. Invocation command line was
1.2 takayama 3979:
3980: CONFIG_FILES = $CONFIG_FILES
3981: CONFIG_HEADERS = $CONFIG_HEADERS
3982: CONFIG_LINKS = $CONFIG_LINKS
3983: CONFIG_COMMANDS = $CONFIG_COMMANDS
3984: $ $0 $@
3985:
3986: _CSEOF
3987: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3988: echo >&5
3989: _ACEOF
3990:
3991: # Files that config.status was made for.
3992: if test -n "$ac_config_files"; then
3993: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3994: fi
3995:
3996: if test -n "$ac_config_headers"; then
3997: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3998: fi
3999:
4000: if test -n "$ac_config_links"; then
4001: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4002: fi
1.1 takayama 4003:
1.2 takayama 4004: if test -n "$ac_config_commands"; then
4005: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4006: fi
4007:
4008: cat >>$CONFIG_STATUS <<\_ACEOF
4009:
4010: ac_cs_usage="\
4011: \`$as_me' instantiates files from templates according to the
4012: current configuration.
4013:
4014: Usage: $0 [OPTIONS] [FILE]...
4015:
4016: -h, --help print this help, then exit
4017: -V, --version print version number, then exit
1.3 takayama 4018: -q, --quiet do not print progress messages
1.2 takayama 4019: -d, --debug don't remove temporary files
4020: --recheck update $as_me by reconfiguring in the same conditions
4021: --file=FILE[:TEMPLATE]
1.3 takayama 4022: instantiate the configuration file FILE
1.2 takayama 4023:
4024: Configuration files:
4025: $config_files
4026:
4027: Report bugs to <bug-autoconf@gnu.org>."
4028: _ACEOF
4029:
4030: cat >>$CONFIG_STATUS <<_ACEOF
4031: ac_cs_version="\\
4032: config.status
1.3 takayama 4033: configured by $0, generated by GNU Autoconf 2.59,
1.2 takayama 4034: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4035:
1.3 takayama 4036: Copyright (C) 2003 Free Software Foundation, Inc.
1.2 takayama 4037: This config.status script is free software; the Free Software Foundation
4038: gives unlimited permission to copy, distribute and modify it."
4039: srcdir=$srcdir
4040: _ACEOF
4041:
4042: cat >>$CONFIG_STATUS <<\_ACEOF
4043: # If no file are specified by the user, then we need to provide default
4044: # value. By we need to know if files were specified by the user.
4045: ac_need_defaults=:
4046: while test $# != 0
1.1 takayama 4047: do
1.2 takayama 4048: case $1 in
4049: --*=*)
4050: ac_option=`expr "x$1" : 'x\([^=]*\)='`
4051: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1.3 takayama 4052: ac_shift=:
4053: ;;
4054: -*)
4055: ac_option=$1
4056: ac_optarg=$2
4057: ac_shift=shift
1.2 takayama 4058: ;;
4059: *) # This is not an option, so the user has probably given explicit
4060: # arguments.
1.3 takayama 4061: ac_option=$1
1.2 takayama 4062: ac_need_defaults=false;;
4063: esac
4064:
1.3 takayama 4065: case $ac_option in
1.2 takayama 4066: # Handling of the options.
4067: _ACEOF
1.3 takayama 4068: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 takayama 4069: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.3 takayama 4070: ac_cs_recheck=: ;;
1.2 takayama 4071: --version | --vers* | -V )
4072: echo "$ac_cs_version"; exit 0 ;;
4073: --he | --h)
4074: # Conflict between --help and --header
4075: { { echo "$as_me:$LINENO: error: ambiguous option: $1
4076: Try \`$0 --help' for more information." >&5
4077: echo "$as_me: error: ambiguous option: $1
4078: Try \`$0 --help' for more information." >&2;}
4079: { (exit 1); exit 1; }; };;
4080: --help | --hel | -h )
4081: echo "$ac_cs_usage"; exit 0 ;;
4082: --debug | --d* | -d )
4083: debug=: ;;
4084: --file | --fil | --fi | --f )
1.3 takayama 4085: $ac_shift
4086: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
1.2 takayama 4087: ac_need_defaults=false;;
4088: --header | --heade | --head | --hea )
1.3 takayama 4089: $ac_shift
4090: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
1.2 takayama 4091: ac_need_defaults=false;;
1.3 takayama 4092: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4093: | -silent | --silent | --silen | --sile | --sil | --si | --s)
4094: ac_cs_silent=: ;;
1.2 takayama 4095:
4096: # This is an error.
4097: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4098: Try \`$0 --help' for more information." >&5
4099: echo "$as_me: error: unrecognized option: $1
4100: Try \`$0 --help' for more information." >&2;}
4101: { (exit 1); exit 1; }; } ;;
4102:
4103: *) ac_config_targets="$ac_config_targets $1" ;;
4104:
1.1 takayama 4105: esac
1.2 takayama 4106: shift
1.1 takayama 4107: done
4108:
1.3 takayama 4109: ac_configure_extra_args=
4110:
4111: if $ac_cs_silent; then
4112: exec 6>/dev/null
4113: ac_configure_extra_args="$ac_configure_extra_args --silent"
4114: fi
4115:
4116: _ACEOF
4117: cat >>$CONFIG_STATUS <<_ACEOF
4118: if \$ac_cs_recheck; then
4119: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4120: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4121: fi
4122:
1.2 takayama 4123: _ACEOF
4124:
4125:
4126:
4127:
1.1 takayama 4128:
1.2 takayama 4129: cat >>$CONFIG_STATUS <<\_ACEOF
4130: for ac_config_target in $ac_config_targets
4131: do
4132: case "$ac_config_target" in
4133: # Handling of arguments.
4134: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4135: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4136: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4137: { (exit 1); exit 1; }; };;
4138: esac
4139: done
4140:
4141: # If the user did not use the arguments to specify the items to instantiate,
4142: # then the envvar interface is used. Set only those that are not.
4143: # We use the long form for the default assignment because of an extremely
4144: # bizarre bug on SunOS 4.1.3.
4145: if $ac_need_defaults; then
4146: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4147: fi
4148:
1.3 takayama 4149: # Have a temporary directory for convenience. Make it in the build tree
4150: # simply because there is no reason to put it here, and in addition,
4151: # creating and moving files from /tmp can sometimes cause problems.
1.2 takayama 4152: # Create a temporary directory, and hook for its removal unless debugging.
4153: $debug ||
4154: {
4155: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4156: trap '{ (exit 1); exit 1; }' 1 2 13 15
4157: }
4158:
4159: # Create a (secure) tmp directory for tmp files.
1.3 takayama 4160:
1.2 takayama 4161: {
1.3 takayama 4162: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1.2 takayama 4163: test -n "$tmp" && test -d "$tmp"
4164: } ||
4165: {
1.3 takayama 4166: tmp=./confstat$$-$RANDOM
1.2 takayama 4167: (umask 077 && mkdir $tmp)
4168: } ||
4169: {
1.3 takayama 4170: echo "$me: cannot create a temporary directory in ." >&2
1.2 takayama 4171: { (exit 1); exit 1; }
4172: }
4173:
4174: _ACEOF
4175:
4176: cat >>$CONFIG_STATUS <<_ACEOF
4177:
4178: #
4179: # CONFIG_FILES section.
4180: #
1.1 takayama 4181:
1.2 takayama 4182: # No need to generate the scripts if there are no CONFIG_FILES.
4183: # This happens for instance when ./config.status config.h
4184: if test -n "\$CONFIG_FILES"; then
4185: # Protect against being on the right side of a sed subst in config.status.
4186: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4187: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4188: s,@SHELL@,$SHELL,;t t
4189: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4190: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4191: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4192: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4193: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4194: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4195: s,@exec_prefix@,$exec_prefix,;t t
4196: s,@prefix@,$prefix,;t t
4197: s,@program_transform_name@,$program_transform_name,;t t
4198: s,@bindir@,$bindir,;t t
4199: s,@sbindir@,$sbindir,;t t
4200: s,@libexecdir@,$libexecdir,;t t
4201: s,@datadir@,$datadir,;t t
4202: s,@sysconfdir@,$sysconfdir,;t t
4203: s,@sharedstatedir@,$sharedstatedir,;t t
4204: s,@localstatedir@,$localstatedir,;t t
4205: s,@libdir@,$libdir,;t t
4206: s,@includedir@,$includedir,;t t
4207: s,@oldincludedir@,$oldincludedir,;t t
4208: s,@infodir@,$infodir,;t t
4209: s,@mandir@,$mandir,;t t
4210: s,@build_alias@,$build_alias,;t t
4211: s,@host_alias@,$host_alias,;t t
4212: s,@target_alias@,$target_alias,;t t
4213: s,@DEFS@,$DEFS,;t t
4214: s,@ECHO_C@,$ECHO_C,;t t
4215: s,@ECHO_N@,$ECHO_N,;t t
4216: s,@ECHO_T@,$ECHO_T,;t t
4217: s,@LIBS@,$LIBS,;t t
4218: s,@CC@,$CC,;t t
4219: s,@CFLAGS@,$CFLAGS,;t t
4220: s,@LDFLAGS@,$LDFLAGS,;t t
4221: s,@CPPFLAGS@,$CPPFLAGS,;t t
4222: s,@ac_ct_CC@,$ac_ct_CC,;t t
4223: s,@EXEEXT@,$EXEEXT,;t t
4224: s,@OBJEXT@,$OBJEXT,;t t
4225: s,@RANLIB@,$RANLIB,;t t
4226: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
1.3 takayama 4227: s,@CFLAG2@,$CFLAG2,;t t
4228: s,@CPP@,$CPP,;t t
4229: s,@EGREP@,$EGREP,;t t
1.4 takayama 4230: s,@CFLAG2p@,$CFLAG2p,;t t
1.3 takayama 4231: s,@LIBOBJS@,$LIBOBJS,;t t
4232: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1.1 takayama 4233: CEOF
4234:
1.2 takayama 4235: _ACEOF
1.1 takayama 4236:
1.2 takayama 4237: cat >>$CONFIG_STATUS <<\_ACEOF
4238: # Split the substitutions into bite-sized pieces for seds with
4239: # small command number limits, like on Digital OSF/1 and HP-UX.
4240: ac_max_sed_lines=48
4241: ac_sed_frag=1 # Number of current file.
4242: ac_beg=1 # First line for current file.
4243: ac_end=$ac_max_sed_lines # Line after last line for current file.
4244: ac_more_lines=:
4245: ac_sed_cmds=
4246: while $ac_more_lines; do
4247: if test $ac_beg -gt 1; then
4248: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4249: else
4250: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4251: fi
4252: if test ! -s $tmp/subs.frag; then
4253: ac_more_lines=false
1.1 takayama 4254: else
1.2 takayama 4255: # The purpose of the label and of the branching condition is to
4256: # speed up the sed processing (if there are no `@' at all, there
4257: # is no need to browse any of the substitutions).
4258: # These are the two extra sed commands mentioned above.
4259: (echo ':t
4260: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4261: if test -z "$ac_sed_cmds"; then
1.3 takayama 4262: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
1.2 takayama 4263: else
1.3 takayama 4264: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
1.2 takayama 4265: fi
4266: ac_sed_frag=`expr $ac_sed_frag + 1`
4267: ac_beg=$ac_end
4268: ac_end=`expr $ac_end + $ac_max_sed_lines`
1.1 takayama 4269: fi
1.2 takayama 4270: done
4271: if test -z "$ac_sed_cmds"; then
4272: ac_sed_cmds=cat
1.1 takayama 4273: fi
1.2 takayama 4274: fi # test -n "$CONFIG_FILES"
4275:
4276: _ACEOF
4277: cat >>$CONFIG_STATUS <<\_ACEOF
4278: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4279: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4280: case $ac_file in
4281: - | *:- | *:-:* ) # input from stdin
1.3 takayama 4282: cat >$tmp/stdin
4283: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4284: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.2 takayama 4285: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.3 takayama 4286: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.2 takayama 4287: * ) ac_file_in=$ac_file.in ;;
4288: esac
4289:
4290: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4291: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4292: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.3 takayama 4293: X"$ac_file" : 'X\(//\)[^/]' \| \
4294: X"$ac_file" : 'X\(//\)$' \| \
4295: X"$ac_file" : 'X\(/\)' \| \
4296: . : '\(.\)' 2>/dev/null ||
1.2 takayama 4297: echo X"$ac_file" |
4298: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4299: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4300: /^X\(\/\/\)$/{ s//\1/; q; }
4301: /^X\(\/\).*/{ s//\1/; q; }
4302: s/.*/./; q'`
1.3 takayama 4303: { if $as_mkdir_p; then
4304: mkdir -p "$ac_dir"
4305: else
4306: as_dir="$ac_dir"
4307: as_dirs=
4308: while test ! -d "$as_dir"; do
4309: as_dirs="$as_dir $as_dirs"
4310: as_dir=`(dirname "$as_dir") 2>/dev/null ||
4311: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4312: X"$as_dir" : 'X\(//\)[^/]' \| \
4313: X"$as_dir" : 'X\(//\)$' \| \
4314: X"$as_dir" : 'X\(/\)' \| \
4315: . : '\(.\)' 2>/dev/null ||
4316: echo X"$as_dir" |
4317: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4318: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4319: /^X\(\/\/\)$/{ s//\1/; q; }
4320: /^X\(\/\).*/{ s//\1/; q; }
4321: s/.*/./; q'`
4322: done
4323: test ! -n "$as_dirs" || mkdir $as_dirs
4324: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4325: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4326: { (exit 1); exit 1; }; }; }
1.2 takayama 4327:
4328: ac_builddir=.
4329:
4330: if test "$ac_dir" != .; then
4331: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4332: # A "../" for each directory in $ac_dir_suffix.
4333: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4334: else
4335: ac_dir_suffix= ac_top_builddir=
1.1 takayama 4336: fi
4337:
1.2 takayama 4338: case $srcdir in
4339: .) # No --srcdir option. We are building in place.
4340: ac_srcdir=.
4341: if test -z "$ac_top_builddir"; then
4342: ac_top_srcdir=.
4343: else
4344: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4345: fi ;;
4346: [\\/]* | ?:[\\/]* ) # Absolute path.
4347: ac_srcdir=$srcdir$ac_dir_suffix;
4348: ac_top_srcdir=$srcdir ;;
4349: *) # Relative path.
4350: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4351: ac_top_srcdir=$ac_top_builddir$srcdir ;;
4352: esac
1.3 takayama 4353:
4354: # Do not use `cd foo && pwd` to compute absolute paths, because
4355: # the directories may not exist.
4356: case `pwd` in
4357: .) ac_abs_builddir="$ac_dir";;
4358: *)
4359: case "$ac_dir" in
4360: .) ac_abs_builddir=`pwd`;;
4361: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4362: *) ac_abs_builddir=`pwd`/"$ac_dir";;
4363: esac;;
4364: esac
4365: case $ac_abs_builddir in
4366: .) ac_abs_top_builddir=${ac_top_builddir}.;;
4367: *)
4368: case ${ac_top_builddir}. in
4369: .) ac_abs_top_builddir=$ac_abs_builddir;;
4370: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4371: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4372: esac;;
4373: esac
4374: case $ac_abs_builddir in
4375: .) ac_abs_srcdir=$ac_srcdir;;
4376: *)
4377: case $ac_srcdir in
4378: .) ac_abs_srcdir=$ac_abs_builddir;;
4379: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4380: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4381: esac;;
4382: esac
4383: case $ac_abs_builddir in
4384: .) ac_abs_top_srcdir=$ac_top_srcdir;;
4385: *)
4386: case $ac_top_srcdir in
4387: .) ac_abs_top_srcdir=$ac_abs_builddir;;
4388: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4389: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4390: esac;;
4391: esac
1.1 takayama 4392:
4393:
4394:
1.2 takayama 4395: if test x"$ac_file" != x-; then
4396: { echo "$as_me:$LINENO: creating $ac_file" >&5
4397: echo "$as_me: creating $ac_file" >&6;}
4398: rm -f "$ac_file"
4399: fi
4400: # Let's still pretend it is `configure' which instantiates (i.e., don't
4401: # use $as_me), people would be surprised to read:
4402: # /* config.h. Generated by config.status. */
4403: if test x"$ac_file" = x-; then
4404: configure_input=
1.1 takayama 4405: else
1.2 takayama 4406: configure_input="$ac_file. "
1.1 takayama 4407: fi
1.2 takayama 4408: configure_input=$configure_input"Generated from `echo $ac_file_in |
1.3 takayama 4409: sed 's,.*/,,'` by configure."
1.1 takayama 4410:
1.2 takayama 4411: # First look for the input files in the build tree, otherwise in the
4412: # src tree.
4413: ac_file_inputs=`IFS=:
4414: for f in $ac_file_in; do
4415: case $f in
4416: -) echo $tmp/stdin ;;
4417: [\\/$]*)
1.3 takayama 4418: # Absolute (can't be DOS-style, as IFS=:)
4419: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.2 takayama 4420: echo "$as_me: error: cannot find input file: $f" >&2;}
4421: { (exit 1); exit 1; }; }
1.3 takayama 4422: echo "$f";;
1.2 takayama 4423: *) # Relative
1.3 takayama 4424: if test -f "$f"; then
4425: # Build tree
4426: echo "$f"
4427: elif test -f "$srcdir/$f"; then
4428: # Source tree
4429: echo "$srcdir/$f"
4430: else
4431: # /dev/null tree
4432: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.2 takayama 4433: echo "$as_me: error: cannot find input file: $f" >&2;}
4434: { (exit 1); exit 1; }; }
1.3 takayama 4435: fi;;
1.2 takayama 4436: esac
4437: done` || { (exit 1); exit 1; }
4438: _ACEOF
4439: cat >>$CONFIG_STATUS <<_ACEOF
4440: sed "$ac_vpsub
4441: $extrasub
4442: _ACEOF
4443: cat >>$CONFIG_STATUS <<\_ACEOF
4444: :t
4445: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4446: s,@configure_input@,$configure_input,;t t
4447: s,@srcdir@,$ac_srcdir,;t t
4448: s,@abs_srcdir@,$ac_abs_srcdir,;t t
4449: s,@top_srcdir@,$ac_top_srcdir,;t t
4450: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4451: s,@builddir@,$ac_builddir,;t t
4452: s,@abs_builddir@,$ac_abs_builddir,;t t
4453: s,@top_builddir@,$ac_top_builddir,;t t
4454: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4455: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4456: rm -f $tmp/stdin
4457: if test x"$ac_file" != x-; then
4458: mv $tmp/out $ac_file
4459: else
4460: cat $tmp/out
4461: rm -f $tmp/out
4462: fi
1.1 takayama 4463:
1.2 takayama 4464: done
4465: _ACEOF
1.1 takayama 4466:
1.2 takayama 4467: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 takayama 4468:
1.2 takayama 4469: { (exit 0); exit 0; }
4470: _ACEOF
4471: chmod +x $CONFIG_STATUS
4472: ac_clean_files=$ac_clean_files_save
1.1 takayama 4473:
4474:
1.2 takayama 4475: # configure is writing to config.log, and then calls config.status.
4476: # config.status does its own redirection, appending to config.log.
4477: # Unfortunately, on DOS this fails, as config.log is still kept open
4478: # by configure, so config.status won't be able to write to it; its
4479: # output is simply discarded. So we exec the FD to /dev/null,
4480: # effectively closing config.log, so it can be properly (re)opened and
4481: # appended to by config.status. When coming back to configure, we
4482: # need to make the FD available again.
4483: if test "$no_create" != yes; then
4484: ac_cs_success=:
1.3 takayama 4485: ac_config_status_args=
4486: test "$silent" = yes &&
4487: ac_config_status_args="$ac_config_status_args --quiet"
1.2 takayama 4488: exec 5>/dev/null
1.3 takayama 4489: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1.2 takayama 4490: exec 5>>config.log
4491: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4492: # would make configure fail if this is the last instruction.
4493: $ac_cs_success || { (exit 1); exit 1; }
4494: fi
1.1 takayama 4495:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>