Annotation of OpenXM_contrib2/asir2000/configure, Revision 1.36
1.14 noro 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.32 noro 3: # Generated by GNU Autoconf 2.59.
1.14 noro 4: #
1.32 noro 5: # Copyright (C) 2003 Free Software Foundation, Inc.
1.14 noro 6: # This configure script is free software; the Free Software Foundation
7: # gives unlimited permission to copy, distribute and modify it.
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.32 noro 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.14 noro 19: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20: set -o posix
21: fi
1.32 noro 22: DUALCASE=1; export DUALCASE # for MKS sh
1.14 noro 23:
24: # Support unset when possible.
1.32 noro 25: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.14 noro 26: as_unset=unset
27: else
28: as_unset=false
29: fi
30:
1.32 noro 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.14 noro 63:
64:
65: # Name of the executable.
1.32 noro 66: as_me=`$as_basename "$0" ||
1.14 noro 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.32 noro 77:
1.14 noro 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.32 noro 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.14 noro 92: PATH_SEPARATOR=';'
93: else
94: PATH_SEPARATOR=:
95: fi
1.32 noro 96: rm -f conf$$.sh
1.14 noro 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.32 noro 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.14 noro 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.32 noro 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.14 noro 225: as_executable_p="test -f"
226:
227: # Sed expression to map a string onto a valid CPP name.
1.32 noro 228: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.14 noro 229:
230: # Sed expression to map a string onto a valid variable name.
1.32 noro 231: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.14 noro 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.32 noro 241: $as_unset CDPATH
1.14 noro 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: #
254: ac_default_prefix=/usr/local
1.32 noro 255: ac_config_libobj_dir=.
1.14 noro 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="LICENSE"
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.35 ohara 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION EXEEXT OBJEXT ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh INSTALL_STRIP_PROGRAM AWK SET_MAKE AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH DEPDIR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC am__include am__quote CCDEPMODE LN_S RANLIB ac_ct_RANLIB YACC CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GC_DISTDIR USE_GC_ZEROPAGE PARIINC PARILIB EGREP XPMLIB USE_PLOT_TRUE USE_PLOT_FALSE FEPLIB MPIINC MPILIB LAPACKLIB libasir_postfix USE_GC_INTERIX USE_GC_SPARC64 asm_obj LIBOBJS LTLIBOBJS'
1.32 noro 313: ac_subst_files=''
1.14 noro 314:
315: # Initialize some variables set by options.
316: ac_init_help=
317: ac_init_version=false
318: # The variables have the same names as the options, with
319: # dashes changed to underlines.
320: cache_file=/dev/null
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
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.
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:
363: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364:
365: # Accept the important Cygnus configure options, so we can diagnose typos.
366:
367: case $ac_option in
368:
369: -bindir | --bindir | --bindi | --bind | --bin | --bi)
370: ac_prev=bindir ;;
371: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372: bindir=$ac_optarg ;;
373:
374: -build | --build | --buil | --bui | --bu)
375: ac_prev=build_alias ;;
376: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377: build_alias=$ac_optarg ;;
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=*)
384: cache_file=$ac_optarg ;;
385:
386: --config-cache | -C)
387: cache_file=config.cache ;;
388:
389: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390: ac_prev=datadir ;;
391: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392: | --da=*)
393: datadir=$ac_optarg ;;
394:
395: -disable-* | --disable-*)
396: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397: # Reject names that are not valid shell variable names.
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" ;;
403:
404: -enable-* | --enable-*)
405: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406: # Reject names that are not valid shell variable names.
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"`;;
413: *) ac_optarg=yes ;;
414: esac
415: eval "enable_$ac_feature='$ac_optarg'" ;;
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=*)
424: exec_prefix=$ac_optarg ;;
425:
426: -gas | --gas | --ga | --g)
427: # Obsolete; use --with-gas.
428: with_gas=yes ;;
429:
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 ;;
436:
437: -host | --host | --hos | --ho)
438: ac_prev=host_alias ;;
439: -host=* | --host=* | --hos=* | --ho=*)
440: host_alias=$ac_optarg ;;
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=*)
447: includedir=$ac_optarg ;;
448:
449: -infodir | --infodir | --infodi | --infod | --info | --inf)
450: ac_prev=infodir ;;
451: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452: infodir=$ac_optarg ;;
453:
454: -libdir | --libdir | --libdi | --libd)
455: ac_prev=libdir ;;
456: -libdir=* | --libdir=* | --libdi=* | --libd=*)
457: libdir=$ac_optarg ;;
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=*)
464: libexecdir=$ac_optarg ;;
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=*)
473: localstatedir=$ac_optarg ;;
474:
475: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476: ac_prev=mandir ;;
477: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478: mandir=$ac_optarg ;;
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 \
485: | --no-cr | --no-c | -n)
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=*)
499: oldincludedir=$ac_optarg ;;
500:
501: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502: ac_prev=prefix ;;
503: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504: prefix=$ac_optarg ;;
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=*)
511: program_prefix=$ac_optarg ;;
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=*)
518: program_suffix=$ac_optarg ;;
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=*)
535: program_transform_name=$ac_optarg ;;
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=*)
545: sbindir=$ac_optarg ;;
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=*)
556: sharedstatedir=$ac_optarg ;;
557:
558: -site | --site | --sit)
559: ac_prev=site ;;
560: -site=* | --site=* | --sit=*)
561: site=$ac_optarg ;;
562:
563: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564: ac_prev=srcdir ;;
565: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566: srcdir=$ac_optarg ;;
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=*)
573: sysconfdir=$ac_optarg ;;
574:
575: -target | --target | --targe | --targ | --tar | --ta | --t)
576: ac_prev=target_alias ;;
577: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578: target_alias=$ac_optarg ;;
579:
580: -v | -verbose | --verbose | --verbos | --verbo | --verb)
581: verbose=yes ;;
582:
583: -version | --version | --versio | --versi | --vers | -V)
584: ac_init_version=: ;;
585:
586: -with-* | --with-*)
587: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588: # Reject names that are not valid shell variable names.
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; }; }
592: ac_package=`echo $ac_package| sed 's/-/_/g'`
593: case $ac_option in
594: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595: *) ac_optarg=yes ;;
596: esac
597: eval "with_$ac_package='$ac_optarg'" ;;
598:
599: -without-* | --without-*)
600: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601: # Reject names that are not valid shell variable names.
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" ;;
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=*)
617: x_includes=$ac_optarg ;;
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=*)
624: x_libraries=$ac_optarg ;;
625:
626: -*) { echo "$as_me: error: unrecognized option: $ac_option
627: Try \`$0 --help' for more information." >&2
628: { (exit 1); exit 1; }; }
629: ;;
630:
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:
641: *)
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}
647: ;;
648:
649: esac
650: done
651:
652: if test -n "$ac_prev"; then
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; }; }
656: fi
657:
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
668:
669: # Be sure to have absolute paths.
670: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1.32 noro 671: localstatedir libdir includedir oldincludedir infodir mandir
1.14 noro 672: do
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; }; };;
678: esac
679: done
680:
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-
701:
702: test "$silent" = yes && exec 6>/dev/null
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.
709: ac_confdir=`(dirname "$0") 2>/dev/null ||
710: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.32 noro 711: X"$0" : 'X\(//\)[^/]' \| \
712: X"$0" : 'X\(//\)$' \| \
713: X"$0" : 'X\(/\)' \| \
714: . : '\(.\)' 2>/dev/null ||
1.14 noro 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'`
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
730: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731: { (exit 1); exit 1; }; }
732: else
733: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734: { (exit 1); exit 1; }; }
735: fi
736: fi
1.32 noro 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.14 noro 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
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
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.32 noro 806: [$ac_default_prefix]
1.14 noro 807: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.32 noro 808: [PREFIX]
1.14 noro 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:
834: Program names:
835: --program-prefix=PREFIX prepend PREFIX to installed program names
836: --program-suffix=SUFFIX append SUFFIX to installed program names
837: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838:
839: X features:
840: --x-includes=DIR X include files are in DIR
841: --x-libraries=DIR X library files are in DIR
842:
843: System types:
844: --build=BUILD configure for building on BUILD [guessed]
845: --host=HOST cross-compile to build programs to run on HOST [BUILD]
846: --target=TARGET configure for building compilers for TARGET [HOST]
847: _ACEOF
848: fi
849:
850: if test -n "$ac_init_help"; then
851:
852: cat <<\_ACEOF
853:
854: Optional Features:
855: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857: --disable-dependency-tracking Speeds up one-time builds
858: --enable-dependency-tracking Do not reject slow dependency extractors
1.22 ohara 859: --enable-maintainer-mode enable make rules and dependencies not useful
860: (and sometimes confusing) to the casual installer
1.14 noro 861: --enable-shared enable linking shared libraries. [no]
1.23 ohara 862: --enable-gc-zeropage enable to avoid the kernel zeropage bug. [no]
1.14 noro 863: --enable-plot enable plot feature. [no]
864: --enable-interval enable interval feature. [no]
865: --enable-fft-float enable FFT-FLOAT feature. [no]
866:
867: Optional Packages:
868: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870: --with-x use the X Window System
1.35 ohara 871: --with-distdir specify the spool for fetching. [no]
1.14 noro 872: --with-pari use the PARI library. [no]
873:
874: Some influential environment variables:
875: CC C compiler command
876: CFLAGS C compiler flags
877: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
878: nonstandard directory <lib dir>
879: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
880: headers in a nonstandard directory <include dir>
881: CPP C preprocessor
882:
883: Use these variables to override the choices made by `configure' or to help
884: it to find libraries and programs with nonstandard names/locations.
885:
886: _ACEOF
887: fi
888:
889: if test "$ac_init_help" = "recursive"; then
890: # If there are subdirs, report their specific --help.
891: ac_popdir=`pwd`
892: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893: test -d $ac_dir || continue
894: ac_builddir=.
895:
896: if test "$ac_dir" != .; then
897: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898: # A "../" for each directory in $ac_dir_suffix.
899: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900: else
901: ac_dir_suffix= ac_top_builddir=
902: fi
903:
904: case $srcdir in
905: .) # No --srcdir option. We are building in place.
906: ac_srcdir=.
907: if test -z "$ac_top_builddir"; then
908: ac_top_srcdir=.
909: else
910: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911: fi ;;
912: [\\/]* | ?:[\\/]* ) # Absolute path.
913: ac_srcdir=$srcdir$ac_dir_suffix;
914: ac_top_srcdir=$srcdir ;;
915: *) # Relative path.
916: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917: ac_top_srcdir=$ac_top_builddir$srcdir ;;
918: esac
1.32 noro 919:
920: # Do not use `cd foo && pwd` to compute absolute paths, because
921: # the directories may not exist.
922: case `pwd` in
923: .) ac_abs_builddir="$ac_dir";;
924: *)
925: case "$ac_dir" in
926: .) ac_abs_builddir=`pwd`;;
927: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928: *) ac_abs_builddir=`pwd`/"$ac_dir";;
929: esac;;
930: esac
931: case $ac_abs_builddir in
932: .) ac_abs_top_builddir=${ac_top_builddir}.;;
933: *)
934: case ${ac_top_builddir}. in
935: .) ac_abs_top_builddir=$ac_abs_builddir;;
936: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
938: esac;;
939: esac
940: case $ac_abs_builddir in
941: .) ac_abs_srcdir=$ac_srcdir;;
942: *)
943: case $ac_srcdir in
944: .) ac_abs_srcdir=$ac_abs_builddir;;
945: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
947: esac;;
948: esac
949: case $ac_abs_builddir in
950: .) ac_abs_top_srcdir=$ac_top_srcdir;;
951: *)
952: case $ac_top_srcdir in
953: .) ac_abs_top_srcdir=$ac_abs_builddir;;
954: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
956: esac;;
957: esac
1.14 noro 958:
959: cd $ac_dir
960: # Check for guested configure; otherwise get Cygnus style configure.
961: if test -f $ac_srcdir/configure.gnu; then
962: echo
963: $SHELL $ac_srcdir/configure.gnu --help=recursive
964: elif test -f $ac_srcdir/configure; then
965: echo
966: $SHELL $ac_srcdir/configure --help=recursive
967: elif test -f $ac_srcdir/configure.ac ||
1.32 noro 968: test -f $ac_srcdir/configure.in; then
1.14 noro 969: echo
970: $ac_configure --help
971: else
972: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973: fi
1.34 ohara 974: cd $ac_popdir
1.14 noro 975: done
976: fi
977:
978: test -n "$ac_init_help" && exit 0
979: if $ac_init_version; then
980: cat <<\_ACEOF
981:
1.32 noro 982: Copyright (C) 2003 Free Software Foundation, Inc.
1.14 noro 983: This configure script is free software; the Free Software Foundation
984: gives unlimited permission to copy, distribute and modify it.
985: _ACEOF
986: exit 0
987: fi
988: exec 5>config.log
989: cat >&5 <<_ACEOF
990: This file contains any messages produced by compilers while
991: running configure, to aid debugging if configure makes a mistake.
992:
993: It was created by $as_me, which was
1.32 noro 994: generated by GNU Autoconf 2.59. Invocation command line was
1.14 noro 995:
996: $ $0 $@
997:
998: _ACEOF
999: {
1000: cat <<_ASUNAME
1001: ## --------- ##
1002: ## Platform. ##
1003: ## --------- ##
1004:
1005: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1010:
1011: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1013:
1014: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1015: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1016: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1018: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1019: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1020: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1021:
1022: _ASUNAME
1023:
1024: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1025: for as_dir in $PATH
1026: do
1027: IFS=$as_save_IFS
1028: test -z "$as_dir" && as_dir=.
1029: echo "PATH: $as_dir"
1030: done
1031:
1032: } >&5
1033:
1034: cat >&5 <<_ACEOF
1035:
1036:
1037: ## ----------- ##
1038: ## Core tests. ##
1039: ## ----------- ##
1040:
1041: _ACEOF
1042:
1043:
1044: # Keep a trace of the command line.
1045: # Strip out --no-create and --no-recursion so they do not pile up.
1.32 noro 1046: # Strip out --silent because we don't want to record it for future runs.
1.14 noro 1047: # Also quote any args containing shell meta-characters.
1.32 noro 1048: # Make two passes to allow for proper duplicate-argument suppression.
1.14 noro 1049: ac_configure_args=
1.32 noro 1050: ac_configure_args0=
1051: ac_configure_args1=
1.14 noro 1052: ac_sep=
1.32 noro 1053: ac_must_keep_next=false
1054: for ac_pass in 1 2
1.14 noro 1055: do
1.32 noro 1056: for ac_arg
1057: do
1058: case $ac_arg in
1059: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061: | -silent | --silent | --silen | --sile | --sil)
1062: continue ;;
1063: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1065: esac
1066: case $ac_pass in
1067: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1068: 2)
1069: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070: if test $ac_must_keep_next = true; then
1071: ac_must_keep_next=false # Got value, back to normal.
1072: else
1073: case $ac_arg in
1074: *=* | --config-cache | -C | -disable-* | --disable-* \
1075: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077: | -with-* | --with-* | -without-* | --without-* | --x)
1078: case "$ac_configure_args0 " in
1079: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1080: esac
1081: ;;
1082: -* ) ac_must_keep_next=true ;;
1083: esac
1084: fi
1085: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086: # Get rid of the leading space.
1087: ac_sep=" "
1088: ;;
1089: esac
1090: done
1.14 noro 1091: done
1.32 noro 1092: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.14 noro 1094:
1095: # When interrupted or exit'd, cleanup temporary files, and complete
1096: # config.log. We remove comments because anyway the quotes in there
1097: # would cause problems or look ugly.
1098: # WARNING: Be sure not to use single quotes in there, as some shells,
1099: # such as our DU 5.0 friend, will then `close' the trap.
1100: trap 'exit_status=$?
1101: # Save into config.log some information that might help in debugging.
1102: {
1103: echo
1.32 noro 1104:
1.14 noro 1105: cat <<\_ASBOX
1106: ## ---------------- ##
1107: ## Cache variables. ##
1108: ## ---------------- ##
1109: _ASBOX
1110: echo
1111: # The following way of writing the cache mishandles newlines in values,
1112: {
1113: (set) 2>&1 |
1114: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1115: *ac_space=\ *)
1116: sed -n \
1.32 noro 1117: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1.14 noro 1119: ;;
1120: *)
1121: sed -n \
1.32 noro 1122: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.14 noro 1123: ;;
1124: esac;
1125: }
1126: echo
1.32 noro 1127:
1128: cat <<\_ASBOX
1129: ## ----------------- ##
1130: ## Output variables. ##
1131: ## ----------------- ##
1132: _ASBOX
1133: echo
1134: for ac_var in $ac_subst_vars
1135: do
1136: eval ac_val=$`echo $ac_var`
1137: echo "$ac_var='"'"'$ac_val'"'"'"
1138: done | sort
1139: echo
1140:
1141: if test -n "$ac_subst_files"; then
1142: cat <<\_ASBOX
1143: ## ------------- ##
1144: ## Output files. ##
1145: ## ------------- ##
1146: _ASBOX
1147: echo
1148: for ac_var in $ac_subst_files
1149: do
1150: eval ac_val=$`echo $ac_var`
1151: echo "$ac_var='"'"'$ac_val'"'"'"
1152: done | sort
1153: echo
1154: fi
1155:
1.14 noro 1156: if test -s confdefs.h; then
1157: cat <<\_ASBOX
1158: ## ----------- ##
1159: ## confdefs.h. ##
1160: ## ----------- ##
1161: _ASBOX
1162: echo
1.32 noro 1163: sed "/^$/d" confdefs.h | sort
1.14 noro 1164: echo
1165: fi
1166: test "$ac_signal" != 0 &&
1167: echo "$as_me: caught signal $ac_signal"
1168: echo "$as_me: exit $exit_status"
1169: } >&5
1.32 noro 1170: rm -f core *.core &&
1.14 noro 1171: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1172: exit $exit_status
1173: ' 0
1174: for ac_signal in 1 2 13 15; do
1175: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1176: done
1177: ac_signal=0
1178:
1179: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1180: rm -rf conftest* confdefs.h
1181: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1182: echo >confdefs.h
1183:
1184: # Predefined preprocessor variables.
1185:
1186: cat >>confdefs.h <<_ACEOF
1187: #define PACKAGE_NAME "$PACKAGE_NAME"
1188: _ACEOF
1189:
1190:
1191: cat >>confdefs.h <<_ACEOF
1192: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1193: _ACEOF
1194:
1195:
1196: cat >>confdefs.h <<_ACEOF
1197: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1198: _ACEOF
1199:
1200:
1201: cat >>confdefs.h <<_ACEOF
1202: #define PACKAGE_STRING "$PACKAGE_STRING"
1203: _ACEOF
1204:
1205:
1206: cat >>confdefs.h <<_ACEOF
1207: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1208: _ACEOF
1209:
1210:
1211: # Let the site file select an alternate cache file if it wants to.
1212: # Prefer explicitly selected file to automatically selected ones.
1213: if test -z "$CONFIG_SITE"; then
1214: if test "x$prefix" != xNONE; then
1215: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1216: else
1217: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1218: fi
1219: fi
1220: for ac_site_file in $CONFIG_SITE; do
1221: if test -r "$ac_site_file"; then
1222: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223: echo "$as_me: loading site script $ac_site_file" >&6;}
1224: sed 's/^/| /' "$ac_site_file" >&5
1225: . "$ac_site_file"
1226: fi
1227: done
1228:
1229: if test -r "$cache_file"; then
1230: # Some versions of bash will fail to source /dev/null (special
1231: # files actually), so we avoid doing that.
1232: if test -f "$cache_file"; then
1233: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234: echo "$as_me: loading cache $cache_file" >&6;}
1235: case $cache_file in
1236: [\\/]* | ?:[\\/]* ) . $cache_file;;
1237: *) . ./$cache_file;;
1238: esac
1239: fi
1240: else
1241: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242: echo "$as_me: creating cache $cache_file" >&6;}
1243: >$cache_file
1244: fi
1245:
1246: # Check that the precious variables saved in the cache have kept the same
1247: # value.
1248: ac_cache_corrupted=false
1249: for ac_var in `(set) 2>&1 |
1.32 noro 1250: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.14 noro 1251: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252: eval ac_new_set=\$ac_env_${ac_var}_set
1253: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254: eval ac_new_val="\$ac_env_${ac_var}_value"
1255: case $ac_old_set,$ac_new_set in
1256: set,)
1257: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259: ac_cache_corrupted=: ;;
1260: ,set)
1261: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263: ac_cache_corrupted=: ;;
1264: ,);;
1265: *)
1266: if test "x$ac_old_val" != "x$ac_new_val"; then
1.32 noro 1267: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.14 noro 1268: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.32 noro 1269: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.14 noro 1270: echo "$as_me: former value: $ac_old_val" >&2;}
1.32 noro 1271: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.14 noro 1272: echo "$as_me: current value: $ac_new_val" >&2;}
1.32 noro 1273: ac_cache_corrupted=:
1.14 noro 1274: fi;;
1275: esac
1276: # Pass precious variables to config.status.
1277: if test "$ac_new_set" = set; then
1278: case $ac_new_val in
1279: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281: *) ac_arg=$ac_var=$ac_new_val ;;
1282: esac
1283: case " $ac_configure_args " in
1284: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1285: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1286: esac
1287: fi
1288: done
1289: if $ac_cache_corrupted; then
1290: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294: { (exit 1); exit 1; }; }
1295: fi
1296:
1297: ac_ext=c
1298: ac_cpp='$CPP $CPPFLAGS'
1299: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302:
1303:
1304:
1305:
1306:
1307:
1308:
1309:
1310:
1311:
1312:
1313:
1314:
1315:
1316:
1317:
1318:
1319:
1320:
1.32 noro 1321:
1.14 noro 1322: ac_aux_dir=
1323: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1324: if test -f $ac_dir/install-sh; then
1325: ac_aux_dir=$ac_dir
1326: ac_install_sh="$ac_aux_dir/install-sh -c"
1327: break
1328: elif test -f $ac_dir/install.sh; then
1329: ac_aux_dir=$ac_dir
1330: ac_install_sh="$ac_aux_dir/install.sh -c"
1331: break
1332: elif test -f $ac_dir/shtool; then
1333: ac_aux_dir=$ac_dir
1334: ac_install_sh="$ac_aux_dir/shtool install -c"
1335: break
1336: fi
1337: done
1338: if test -z "$ac_aux_dir"; then
1339: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1340: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1341: { (exit 1); exit 1; }; }
1342: fi
1343: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1346:
1347: # Find a good install program. We prefer a C program (faster),
1348: # so one script is as good as another. But avoid the broken or
1349: # incompatible versions:
1350: # SysV /etc/install, /usr/sbin/install
1351: # SunOS /usr/etc/install
1352: # IRIX /sbin/install
1353: # AIX /bin/install
1354: # AmigaOS /C/install, which installs bootblocks on floppy discs
1355: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1356: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1357: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.32 noro 1358: # OS/2's system install, which has a completely different semantic
1.14 noro 1359: # ./install, which can be erroneously created by make from ./install.sh.
1360: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1361: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1362: if test -z "$INSTALL"; then
1363: if test "${ac_cv_path_install+set}" = set; then
1364: echo $ECHO_N "(cached) $ECHO_C" >&6
1365: else
1366: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1367: for as_dir in $PATH
1368: do
1369: IFS=$as_save_IFS
1370: test -z "$as_dir" && as_dir=.
1371: # Account for people who put trailing slashes in PATH elements.
1372: case $as_dir/ in
1373: ./ | .// | /cC/* | \
1374: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.32 noro 1375: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.14 noro 1376: /usr/ucb/* ) ;;
1377: *)
1378: # OSF1 and SCO ODT 3.0 have their own names for install.
1379: # Don't use installbsd from OSF since it installs stuff as root
1380: # by default.
1381: for ac_prog in ginstall scoinst install; do
1382: for ac_exec_ext in '' $ac_executable_extensions; do
1.32 noro 1383: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1384: if test $ac_prog = install &&
1385: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1386: # AIX install. It has an incompatible calling convention.
1387: :
1388: elif test $ac_prog = install &&
1389: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1390: # program-specific install script used by HP pwplus--don't use.
1391: :
1392: else
1393: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1394: break 3
1395: fi
1396: fi
1.14 noro 1397: done
1398: done
1399: ;;
1400: esac
1401: done
1402:
1403:
1404: fi
1405: if test "${ac_cv_path_install+set}" = set; then
1406: INSTALL=$ac_cv_path_install
1407: else
1408: # As a last resort, use the slow shell script. We don't cache a
1409: # path for INSTALL within a source directory, because that will
1410: # break other packages using the cache if that directory is
1411: # removed, or if the path is relative.
1412: INSTALL=$ac_install_sh
1413: fi
1414: fi
1415: echo "$as_me:$LINENO: result: $INSTALL" >&5
1416: echo "${ECHO_T}$INSTALL" >&6
1417:
1418: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1419: # It thinks the first close brace ends the variable substitution.
1420: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1421:
1422: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1423:
1424: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1425:
1426: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1427: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1428: # Just in case
1429: sleep 1
1430: echo timestamp > conftest.file
1431: # Do `set' in a subshell so we don't clobber the current shell's
1432: # arguments. Must try -L first in case configure is actually a
1433: # symlink; some systems play weird games with the mod time of symlinks
1434: # (eg FreeBSD returns the mod time of the symlink's containing
1435: # directory).
1436: if (
1437: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1438: if test "$*" = "X"; then
1439: # -L didn't work.
1440: set X `ls -t $srcdir/configure conftest.file`
1441: fi
1442: rm -f conftest.file
1443: if test "$*" != "X $srcdir/configure conftest.file" \
1444: && test "$*" != "X conftest.file $srcdir/configure"; then
1445:
1446: # If neither matched, then we have a broken ls. This can happen
1447: # if, for instance, CONFIG_SHELL is bash and it inherits a
1448: # broken ls alias from the environment. This has actually
1449: # happened. Such a system could not be considered "sane".
1450: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1451: alias in your environment" >&5
1452: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1453: alias in your environment" >&2;}
1454: { (exit 1); exit 1; }; }
1455: fi
1456:
1457: test "$2" = conftest.file
1458: )
1459: then
1460: # Ok.
1461: :
1462: else
1463: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1464: Check your system clock" >&5
1465: echo "$as_me: error: newly created file is older than distributed files!
1466: Check your system clock" >&2;}
1467: { (exit 1); exit 1; }; }
1468: fi
1469: echo "$as_me:$LINENO: result: yes" >&5
1470: echo "${ECHO_T}yes" >&6
1471: test "$program_prefix" != NONE &&
1472: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1473: # Use a double $ so make ignores it.
1474: test "$program_suffix" != NONE &&
1475: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1476: # Double any \ or $. echo might interpret backslashes.
1477: # By default was `s,x,x', remove it if useless.
1478: cat <<\_ACEOF >conftest.sed
1479: s/[\\$]/&&/g;s/;s,x,x,$//
1480: _ACEOF
1481: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1482: rm conftest.sed
1483:
1484:
1485: # expand $ac_aux_dir to an absolute path
1486: am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1487:
1488: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1489: # Use eval to expand $SHELL
1490: if eval "$MISSING --run true"; then
1491: am_missing_run="$MISSING --run "
1492: else
1493: am_missing_run=
1494: am_backtick='`'
1495: { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1496: echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1497: fi
1498:
1499: for ac_prog in gawk mawk nawk awk
1500: do
1501: # Extract the first word of "$ac_prog", so it can be a program name with args.
1502: set dummy $ac_prog; ac_word=$2
1503: echo "$as_me:$LINENO: checking for $ac_word" >&5
1504: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1505: if test "${ac_cv_prog_AWK+set}" = set; then
1506: echo $ECHO_N "(cached) $ECHO_C" >&6
1507: else
1508: if test -n "$AWK"; then
1509: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1510: else
1511: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512: for as_dir in $PATH
1513: do
1514: IFS=$as_save_IFS
1515: test -z "$as_dir" && as_dir=.
1516: for ac_exec_ext in '' $ac_executable_extensions; do
1517: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1518: ac_cv_prog_AWK="$ac_prog"
1519: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1520: break 2
1521: fi
1522: done
1523: done
1524:
1525: fi
1526: fi
1527: AWK=$ac_cv_prog_AWK
1528: if test -n "$AWK"; then
1529: echo "$as_me:$LINENO: result: $AWK" >&5
1530: echo "${ECHO_T}$AWK" >&6
1531: else
1532: echo "$as_me:$LINENO: result: no" >&5
1533: echo "${ECHO_T}no" >&6
1534: fi
1535:
1536: test -n "$AWK" && break
1537: done
1538:
1.32 noro 1539: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1540: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1541: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.14 noro 1542: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1543: echo $ECHO_N "(cached) $ECHO_C" >&6
1544: else
1545: cat >conftest.make <<\_ACEOF
1546: all:
1.32 noro 1547: @echo 'ac_maketemp="$(MAKE)"'
1.14 noro 1548: _ACEOF
1549: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1550: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1551: if test -n "$ac_maketemp"; then
1552: eval ac_cv_prog_make_${ac_make}_set=yes
1553: else
1554: eval ac_cv_prog_make_${ac_make}_set=no
1555: fi
1556: rm -f conftest.make
1557: fi
1558: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1559: echo "$as_me:$LINENO: result: yes" >&5
1560: echo "${ECHO_T}yes" >&6
1561: SET_MAKE=
1562: else
1563: echo "$as_me:$LINENO: result: no" >&5
1564: echo "${ECHO_T}no" >&6
1565: SET_MAKE="MAKE=${MAKE-make}"
1566: fi
1567:
1568: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1569: if test "${enable_dependency_tracking+set}" = set; then
1570: enableval="$enable_dependency_tracking"
1571:
1572: fi;
1573: if test "x$enable_dependency_tracking" != xno; then
1574: am_depcomp="$ac_aux_dir/depcomp"
1575: AMDEPBACKSLASH='\'
1576: fi
1577:
1578:
1579: if test "x$enable_dependency_tracking" != xno; then
1580: AMDEP_TRUE=
1581: AMDEP_FALSE='#'
1582: else
1583: AMDEP_TRUE='#'
1584: AMDEP_FALSE=
1585: fi
1586:
1587:
1588:
1589:
1590: rm -f .deps 2>/dev/null
1591: mkdir .deps 2>/dev/null
1592: if test -d .deps; then
1593: DEPDIR=.deps
1594: else
1595: # MS-DOS does not allow filenames that begin with a dot.
1596: DEPDIR=_deps
1597: fi
1598: rmdir .deps 2>/dev/null
1599:
1600:
1601: # test to see if srcdir already configured
1602: if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1603: test -f $srcdir/config.status; then
1604: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1605: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1606: { (exit 1); exit 1; }; }
1607: fi
1608:
1609: # Define the identity of the package.
1610: PACKAGE=asir
1.16 noro 1611: VERSION=20030307
1.14 noro 1612:
1613: cat >>confdefs.h <<_ACEOF
1614: #define PACKAGE "$PACKAGE"
1615: _ACEOF
1616:
1617:
1618: cat >>confdefs.h <<_ACEOF
1619: #define VERSION "$VERSION"
1620: _ACEOF
1621:
1622:
1623: # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1624: # the ones we care about.
1625:
1626: # Autoconf 2.50 always computes EXEEXT. However we need to be
1627: # compatible with 2.13, for now. So we always define EXEEXT, but we
1628: # don't compute it.
1629:
1630: # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1631: # requests that it be used. This is a bit dumb.
1632: : ${OBJEXT=o}
1633:
1634:
1635: # Some tools Automake needs.
1636:
1637: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1638:
1639:
1640: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1641:
1642:
1643: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1644:
1645:
1646: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1647:
1648:
1649: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1650:
1651:
1652: AMTAR=${AMTAR-"${am_missing_run}tar"}
1653:
1654: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1655:
1656: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1657:
1658: # We need awk for the "check" target. The system "awk" is bad on
1659: # some platforms.
1660:
1.22 ohara 1661: echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1662: echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1663: # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1664: if test "${enable_maintainer_mode+set}" = set; then
1665: enableval="$enable_maintainer_mode"
1666: USE_MAINTAINER_MODE=$enableval
1667: else
1668: USE_MAINTAINER_MODE=no
1669: fi;
1670: echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1671: echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1672:
1673:
1674: if test $USE_MAINTAINER_MODE = yes; then
1675: MAINTAINER_MODE_TRUE=
1676: MAINTAINER_MODE_FALSE='#'
1677: else
1678: MAINTAINER_MODE_TRUE='#'
1679: MAINTAINER_MODE_FALSE=
1680: fi
1681: MAINT=$MAINTAINER_MODE_TRUE
1682:
1683:
1684:
1.14 noro 1685: # Make sure we can run config.sub.
1686: $ac_config_sub sun4 >/dev/null 2>&1 ||
1687: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1688: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1689: { (exit 1); exit 1; }; }
1690:
1691: echo "$as_me:$LINENO: checking build system type" >&5
1692: echo $ECHO_N "checking build system type... $ECHO_C" >&6
1693: if test "${ac_cv_build+set}" = set; then
1694: echo $ECHO_N "(cached) $ECHO_C" >&6
1695: else
1696: ac_cv_build_alias=$build_alias
1697: test -z "$ac_cv_build_alias" &&
1698: ac_cv_build_alias=`$ac_config_guess`
1699: test -z "$ac_cv_build_alias" &&
1700: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1701: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1702: { (exit 1); exit 1; }; }
1703: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1704: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1705: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1706: { (exit 1); exit 1; }; }
1707:
1708: fi
1709: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1710: echo "${ECHO_T}$ac_cv_build" >&6
1711: build=$ac_cv_build
1712: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1713: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1714: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1715:
1716:
1717: echo "$as_me:$LINENO: checking host system type" >&5
1718: echo $ECHO_N "checking host system type... $ECHO_C" >&6
1719: if test "${ac_cv_host+set}" = set; then
1720: echo $ECHO_N "(cached) $ECHO_C" >&6
1721: else
1722: ac_cv_host_alias=$host_alias
1723: test -z "$ac_cv_host_alias" &&
1724: ac_cv_host_alias=$ac_cv_build_alias
1725: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1726: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1727: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1728: { (exit 1); exit 1; }; }
1729:
1730: fi
1731: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1732: echo "${ECHO_T}$ac_cv_host" >&6
1733: host=$ac_cv_host
1734: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1735: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1736: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1737:
1738:
1739: echo "$as_me:$LINENO: checking target system type" >&5
1740: echo $ECHO_N "checking target system type... $ECHO_C" >&6
1741: if test "${ac_cv_target+set}" = set; then
1742: echo $ECHO_N "(cached) $ECHO_C" >&6
1743: else
1744: ac_cv_target_alias=$target_alias
1745: test "x$ac_cv_target_alias" = "x" &&
1746: ac_cv_target_alias=$ac_cv_host_alias
1747: ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1748: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1749: echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1750: { (exit 1); exit 1; }; }
1751:
1752: fi
1753: echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1754: echo "${ECHO_T}$ac_cv_target" >&6
1755: target=$ac_cv_target
1756: target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1757: target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1758: target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1759:
1760:
1761: # The aliases save the names the user supplied, while $host etc.
1762: # will get canonicalized.
1763: test -n "$target_alias" &&
1764: test "$program_prefix$program_suffix$program_transform_name" = \
1765: NONENONEs,x,x, &&
1766: program_prefix=${target_alias}-
1767:
1768: ac_ext=c
1769: ac_cpp='$CPP $CPPFLAGS'
1770: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1771: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1772: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1773: if test -n "$ac_tool_prefix"; then
1774: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1775: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1776: echo "$as_me:$LINENO: checking for $ac_word" >&5
1777: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778: if test "${ac_cv_prog_CC+set}" = set; then
1779: echo $ECHO_N "(cached) $ECHO_C" >&6
1780: else
1781: if test -n "$CC"; then
1782: ac_cv_prog_CC="$CC" # Let the user override the test.
1783: else
1784: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785: for as_dir in $PATH
1786: do
1787: IFS=$as_save_IFS
1788: test -z "$as_dir" && as_dir=.
1789: for ac_exec_ext in '' $ac_executable_extensions; do
1790: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1791: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1792: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1793: break 2
1794: fi
1795: done
1796: done
1797:
1798: fi
1799: fi
1800: CC=$ac_cv_prog_CC
1801: if test -n "$CC"; then
1802: echo "$as_me:$LINENO: result: $CC" >&5
1803: echo "${ECHO_T}$CC" >&6
1804: else
1805: echo "$as_me:$LINENO: result: no" >&5
1806: echo "${ECHO_T}no" >&6
1807: fi
1808:
1809: fi
1810: if test -z "$ac_cv_prog_CC"; then
1811: ac_ct_CC=$CC
1812: # Extract the first word of "gcc", so it can be a program name with args.
1813: set dummy gcc; ac_word=$2
1814: echo "$as_me:$LINENO: checking for $ac_word" >&5
1815: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1817: echo $ECHO_N "(cached) $ECHO_C" >&6
1818: else
1819: if test -n "$ac_ct_CC"; then
1820: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1821: else
1822: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823: for as_dir in $PATH
1824: do
1825: IFS=$as_save_IFS
1826: test -z "$as_dir" && as_dir=.
1827: for ac_exec_ext in '' $ac_executable_extensions; do
1828: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829: ac_cv_prog_ac_ct_CC="gcc"
1830: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831: break 2
1832: fi
1833: done
1834: done
1835:
1836: fi
1837: fi
1838: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1839: if test -n "$ac_ct_CC"; then
1840: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1841: echo "${ECHO_T}$ac_ct_CC" >&6
1842: else
1843: echo "$as_me:$LINENO: result: no" >&5
1844: echo "${ECHO_T}no" >&6
1845: fi
1846:
1847: CC=$ac_ct_CC
1848: else
1849: CC="$ac_cv_prog_CC"
1850: fi
1851:
1852: if test -z "$CC"; then
1853: if test -n "$ac_tool_prefix"; then
1854: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1855: set dummy ${ac_tool_prefix}cc; ac_word=$2
1856: echo "$as_me:$LINENO: checking for $ac_word" >&5
1857: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858: if test "${ac_cv_prog_CC+set}" = set; then
1859: echo $ECHO_N "(cached) $ECHO_C" >&6
1860: else
1861: if test -n "$CC"; then
1862: ac_cv_prog_CC="$CC" # Let the user override the test.
1863: else
1864: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865: for as_dir in $PATH
1866: do
1867: IFS=$as_save_IFS
1868: test -z "$as_dir" && as_dir=.
1869: for ac_exec_ext in '' $ac_executable_extensions; do
1870: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871: ac_cv_prog_CC="${ac_tool_prefix}cc"
1872: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873: break 2
1874: fi
1875: done
1876: done
1877:
1878: fi
1879: fi
1880: CC=$ac_cv_prog_CC
1881: if test -n "$CC"; then
1882: echo "$as_me:$LINENO: result: $CC" >&5
1883: echo "${ECHO_T}$CC" >&6
1884: else
1885: echo "$as_me:$LINENO: result: no" >&5
1886: echo "${ECHO_T}no" >&6
1887: fi
1888:
1889: fi
1890: if test -z "$ac_cv_prog_CC"; then
1891: ac_ct_CC=$CC
1892: # Extract the first word of "cc", so it can be a program name with args.
1893: set dummy cc; ac_word=$2
1894: echo "$as_me:$LINENO: checking for $ac_word" >&5
1895: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1896: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1897: echo $ECHO_N "(cached) $ECHO_C" >&6
1898: else
1899: if test -n "$ac_ct_CC"; then
1900: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1901: else
1902: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903: for as_dir in $PATH
1904: do
1905: IFS=$as_save_IFS
1906: test -z "$as_dir" && as_dir=.
1907: for ac_exec_ext in '' $ac_executable_extensions; do
1908: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909: ac_cv_prog_ac_ct_CC="cc"
1910: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911: break 2
1912: fi
1913: done
1914: done
1915:
1916: fi
1917: fi
1918: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1919: if test -n "$ac_ct_CC"; then
1920: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1921: echo "${ECHO_T}$ac_ct_CC" >&6
1922: else
1923: echo "$as_me:$LINENO: result: no" >&5
1924: echo "${ECHO_T}no" >&6
1925: fi
1926:
1927: CC=$ac_ct_CC
1928: else
1929: CC="$ac_cv_prog_CC"
1930: fi
1931:
1932: fi
1933: if test -z "$CC"; then
1934: # Extract the first word of "cc", so it can be a program name with args.
1935: set dummy cc; ac_word=$2
1936: echo "$as_me:$LINENO: checking for $ac_word" >&5
1937: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938: if test "${ac_cv_prog_CC+set}" = set; then
1939: echo $ECHO_N "(cached) $ECHO_C" >&6
1940: else
1941: if test -n "$CC"; then
1942: ac_cv_prog_CC="$CC" # Let the user override the test.
1943: else
1944: ac_prog_rejected=no
1945: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946: for as_dir in $PATH
1947: do
1948: IFS=$as_save_IFS
1949: test -z "$as_dir" && as_dir=.
1950: for ac_exec_ext in '' $ac_executable_extensions; do
1951: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1953: ac_prog_rejected=yes
1954: continue
1955: fi
1956: ac_cv_prog_CC="cc"
1957: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1958: break 2
1959: fi
1960: done
1961: done
1962:
1963: if test $ac_prog_rejected = yes; then
1964: # We found a bogon in the path, so make sure we never use it.
1965: set dummy $ac_cv_prog_CC
1966: shift
1967: if test $# != 0; then
1968: # We chose a different compiler from the bogus one.
1969: # However, it has the same basename, so the bogon will be chosen
1970: # first if we set CC to just the basename; use the full file name.
1971: shift
1.32 noro 1972: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.14 noro 1973: fi
1974: fi
1975: fi
1976: fi
1977: CC=$ac_cv_prog_CC
1978: if test -n "$CC"; then
1979: echo "$as_me:$LINENO: result: $CC" >&5
1980: echo "${ECHO_T}$CC" >&6
1981: else
1982: echo "$as_me:$LINENO: result: no" >&5
1983: echo "${ECHO_T}no" >&6
1984: fi
1985:
1986: fi
1987: if test -z "$CC"; then
1988: if test -n "$ac_tool_prefix"; then
1989: for ac_prog in cl
1990: do
1991: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1992: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1993: echo "$as_me:$LINENO: checking for $ac_word" >&5
1994: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995: if test "${ac_cv_prog_CC+set}" = set; then
1996: echo $ECHO_N "(cached) $ECHO_C" >&6
1997: else
1998: if test -n "$CC"; then
1999: ac_cv_prog_CC="$CC" # Let the user override the test.
2000: else
2001: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002: for as_dir in $PATH
2003: do
2004: IFS=$as_save_IFS
2005: test -z "$as_dir" && as_dir=.
2006: for ac_exec_ext in '' $ac_executable_extensions; do
2007: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2009: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010: break 2
2011: fi
2012: done
2013: done
2014:
2015: fi
2016: fi
2017: CC=$ac_cv_prog_CC
2018: if test -n "$CC"; then
2019: echo "$as_me:$LINENO: result: $CC" >&5
2020: echo "${ECHO_T}$CC" >&6
2021: else
2022: echo "$as_me:$LINENO: result: no" >&5
2023: echo "${ECHO_T}no" >&6
2024: fi
2025:
2026: test -n "$CC" && break
2027: done
2028: fi
2029: if test -z "$CC"; then
2030: ac_ct_CC=$CC
2031: for ac_prog in cl
2032: do
2033: # Extract the first word of "$ac_prog", so it can be a program name with args.
2034: set dummy $ac_prog; ac_word=$2
2035: echo "$as_me:$LINENO: checking for $ac_word" >&5
2036: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2038: echo $ECHO_N "(cached) $ECHO_C" >&6
2039: else
2040: if test -n "$ac_ct_CC"; then
2041: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2042: else
2043: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044: for as_dir in $PATH
2045: do
2046: IFS=$as_save_IFS
2047: test -z "$as_dir" && as_dir=.
2048: for ac_exec_ext in '' $ac_executable_extensions; do
2049: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050: ac_cv_prog_ac_ct_CC="$ac_prog"
2051: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052: break 2
2053: fi
2054: done
2055: done
2056:
2057: fi
2058: fi
2059: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2060: if test -n "$ac_ct_CC"; then
2061: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2062: echo "${ECHO_T}$ac_ct_CC" >&6
2063: else
2064: echo "$as_me:$LINENO: result: no" >&5
2065: echo "${ECHO_T}no" >&6
2066: fi
2067:
2068: test -n "$ac_ct_CC" && break
2069: done
2070:
2071: CC=$ac_ct_CC
2072: fi
2073:
2074: fi
2075:
2076:
1.32 noro 2077: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2078: See \`config.log' for more details." >&5
2079: echo "$as_me: error: no acceptable C compiler found in \$PATH
2080: See \`config.log' for more details." >&2;}
1.14 noro 2081: { (exit 1); exit 1; }; }
2082:
2083: # Provide some information about the compiler.
2084: echo "$as_me:$LINENO:" \
2085: "checking for C compiler version" >&5
2086: ac_compiler=`set X $ac_compile; echo $2`
2087: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2088: (eval $ac_compiler --version </dev/null >&5) 2>&5
2089: ac_status=$?
2090: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091: (exit $ac_status); }
2092: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2093: (eval $ac_compiler -v </dev/null >&5) 2>&5
2094: ac_status=$?
2095: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096: (exit $ac_status); }
2097: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2098: (eval $ac_compiler -V </dev/null >&5) 2>&5
2099: ac_status=$?
2100: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101: (exit $ac_status); }
2102:
2103: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 2104: /* confdefs.h. */
2105: _ACEOF
2106: cat confdefs.h >>conftest.$ac_ext
2107: cat >>conftest.$ac_ext <<_ACEOF
2108: /* end confdefs.h. */
1.14 noro 2109:
2110: int
2111: main ()
2112: {
2113:
2114: ;
2115: return 0;
2116: }
2117: _ACEOF
2118: ac_clean_files_save=$ac_clean_files
1.32 noro 2119: ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.14 noro 2120: # Try to create an executable without -o first, disregard a.out.
2121: # It will help us diagnose broken compilers, and finding out an intuition
2122: # of exeext.
1.32 noro 2123: echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2124: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1.14 noro 2125: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2126: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2127: (eval $ac_link_default) 2>&5
2128: ac_status=$?
2129: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130: (exit $ac_status); }; then
2131: # Find the output, starting from the most likely. This scheme is
2132: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2133: # resort.
2134:
2135: # Be careful to initialize this variable, since it used to be cached.
2136: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2137: ac_cv_exeext=
1.32 noro 2138: # b.out is created by i960 compilers.
2139: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2140: do
2141: test -f "$ac_file" || continue
1.14 noro 2142: case $ac_file in
1.32 noro 2143: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2144: ;;
2145: conftest.$ac_ext )
2146: # This is the source file.
2147: ;;
2148: [ab].out )
2149: # We found the default executable, but exeext='' is most
2150: # certainly right.
2151: break;;
2152: *.* )
2153: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2154: # FIXME: I believe we export ac_cv_exeext for Libtool,
2155: # but it would be cool to find out if it's true. Does anybody
2156: # maintain Libtool? --akim.
2157: export ac_cv_exeext
2158: break;;
2159: * )
2160: break;;
1.14 noro 2161: esac
2162: done
2163: else
2164: echo "$as_me: failed program was:" >&5
1.32 noro 2165: sed 's/^/| /' conftest.$ac_ext >&5
2166:
2167: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2168: See \`config.log' for more details." >&5
2169: echo "$as_me: error: C compiler cannot create executables
2170: See \`config.log' for more details." >&2;}
1.14 noro 2171: { (exit 77); exit 77; }; }
2172: fi
2173:
2174: ac_exeext=$ac_cv_exeext
2175: echo "$as_me:$LINENO: result: $ac_file" >&5
2176: echo "${ECHO_T}$ac_file" >&6
2177:
2178: # Check the compiler produces executables we can run. If not, either
2179: # the compiler is broken, or we cross compile.
2180: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2181: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2182: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2183: # If not cross compiling, check that we can run a simple program.
2184: if test "$cross_compiling" != yes; then
2185: if { ac_try='./$ac_file'
2186: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187: (eval $ac_try) 2>&5
2188: ac_status=$?
2189: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190: (exit $ac_status); }; }; then
2191: cross_compiling=no
2192: else
2193: if test "$cross_compiling" = maybe; then
2194: cross_compiling=yes
2195: else
2196: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1.32 noro 2197: If you meant to cross compile, use \`--host'.
2198: See \`config.log' for more details." >&5
1.14 noro 2199: echo "$as_me: error: cannot run C compiled programs.
1.32 noro 2200: If you meant to cross compile, use \`--host'.
2201: See \`config.log' for more details." >&2;}
1.14 noro 2202: { (exit 1); exit 1; }; }
2203: fi
2204: fi
2205: fi
2206: echo "$as_me:$LINENO: result: yes" >&5
2207: echo "${ECHO_T}yes" >&6
2208:
1.32 noro 2209: rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.14 noro 2210: ac_clean_files=$ac_clean_files_save
2211: # Check the compiler produces executables we can run. If not, either
2212: # the compiler is broken, or we cross compile.
2213: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2214: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2215: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2216: echo "${ECHO_T}$cross_compiling" >&6
2217:
2218: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2219: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2220: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2221: (eval $ac_link) 2>&5
2222: ac_status=$?
2223: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224: (exit $ac_status); }; then
2225: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2226: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2227: # work properly (i.e., refer to `conftest.exe'), while it won't with
2228: # `rm'.
1.32 noro 2229: for ac_file in conftest.exe conftest conftest.*; do
2230: test -f "$ac_file" || continue
1.14 noro 2231: case $ac_file in
1.32 noro 2232: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1.14 noro 2233: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.32 noro 2234: export ac_cv_exeext
2235: break;;
1.14 noro 2236: * ) break;;
2237: esac
2238: done
2239: else
1.32 noro 2240: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2241: See \`config.log' for more details." >&5
2242: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2243: See \`config.log' for more details." >&2;}
1.14 noro 2244: { (exit 1); exit 1; }; }
2245: fi
2246:
2247: rm -f conftest$ac_cv_exeext
2248: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2249: echo "${ECHO_T}$ac_cv_exeext" >&6
2250:
2251: rm -f conftest.$ac_ext
2252: EXEEXT=$ac_cv_exeext
2253: ac_exeext=$EXEEXT
2254: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2255: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2256: if test "${ac_cv_objext+set}" = set; then
2257: echo $ECHO_N "(cached) $ECHO_C" >&6
2258: else
2259: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 2260: /* confdefs.h. */
2261: _ACEOF
2262: cat confdefs.h >>conftest.$ac_ext
2263: cat >>conftest.$ac_ext <<_ACEOF
2264: /* end confdefs.h. */
1.14 noro 2265:
2266: int
2267: main ()
2268: {
2269:
2270: ;
2271: return 0;
2272: }
2273: _ACEOF
2274: rm -f conftest.o conftest.obj
2275: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2276: (eval $ac_compile) 2>&5
2277: ac_status=$?
2278: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279: (exit $ac_status); }; then
2280: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2281: case $ac_file in
1.32 noro 2282: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1.14 noro 2283: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2284: break;;
2285: esac
2286: done
2287: else
2288: echo "$as_me: failed program was:" >&5
1.32 noro 2289: sed 's/^/| /' conftest.$ac_ext >&5
2290:
2291: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2292: See \`config.log' for more details." >&5
2293: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2294: See \`config.log' for more details." >&2;}
1.14 noro 2295: { (exit 1); exit 1; }; }
2296: fi
2297:
2298: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2299: fi
2300: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2301: echo "${ECHO_T}$ac_cv_objext" >&6
2302: OBJEXT=$ac_cv_objext
2303: ac_objext=$OBJEXT
2304: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2305: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2306: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2307: echo $ECHO_N "(cached) $ECHO_C" >&6
2308: else
2309: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 2310: /* confdefs.h. */
2311: _ACEOF
2312: cat confdefs.h >>conftest.$ac_ext
2313: cat >>conftest.$ac_ext <<_ACEOF
2314: /* end confdefs.h. */
1.14 noro 2315:
2316: int
2317: main ()
2318: {
2319: #ifndef __GNUC__
2320: choke me
2321: #endif
2322:
2323: ;
2324: return 0;
2325: }
2326: _ACEOF
2327: rm -f conftest.$ac_objext
2328: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.32 noro 2329: (eval $ac_compile) 2>conftest.er1
1.14 noro 2330: ac_status=$?
1.32 noro 2331: grep -v '^ *+' conftest.er1 >conftest.err
2332: rm -f conftest.er1
2333: cat conftest.err >&5
1.14 noro 2334: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335: (exit $ac_status); } &&
1.34 ohara 2336: { ac_try='test -z "$ac_c_werror_flag"
2337: || test ! -s conftest.err'
1.32 noro 2338: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339: (eval $ac_try) 2>&5
2340: ac_status=$?
2341: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342: (exit $ac_status); }; } &&
2343: { ac_try='test -s conftest.$ac_objext'
1.14 noro 2344: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345: (eval $ac_try) 2>&5
2346: ac_status=$?
2347: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348: (exit $ac_status); }; }; then
2349: ac_compiler_gnu=yes
2350: else
2351: echo "$as_me: failed program was:" >&5
1.32 noro 2352: sed 's/^/| /' conftest.$ac_ext >&5
2353:
1.14 noro 2354: ac_compiler_gnu=no
2355: fi
1.32 noro 2356: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 2357: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2358:
2359: fi
2360: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2361: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2362: GCC=`test $ac_compiler_gnu = yes && echo yes`
2363: ac_test_CFLAGS=${CFLAGS+set}
2364: ac_save_CFLAGS=$CFLAGS
2365: CFLAGS="-g"
2366: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2367: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2368: if test "${ac_cv_prog_cc_g+set}" = set; then
2369: echo $ECHO_N "(cached) $ECHO_C" >&6
2370: else
2371: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 2372: /* confdefs.h. */
2373: _ACEOF
2374: cat confdefs.h >>conftest.$ac_ext
2375: cat >>conftest.$ac_ext <<_ACEOF
2376: /* end confdefs.h. */
1.14 noro 2377:
2378: int
2379: main ()
2380: {
2381:
2382: ;
2383: return 0;
2384: }
2385: _ACEOF
2386: rm -f conftest.$ac_objext
2387: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.32 noro 2388: (eval $ac_compile) 2>conftest.er1
1.14 noro 2389: ac_status=$?
1.32 noro 2390: grep -v '^ *+' conftest.er1 >conftest.err
2391: rm -f conftest.er1
2392: cat conftest.err >&5
1.14 noro 2393: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394: (exit $ac_status); } &&
1.34 ohara 2395: { ac_try='test -z "$ac_c_werror_flag"
2396: || test ! -s conftest.err'
1.32 noro 2397: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398: (eval $ac_try) 2>&5
2399: ac_status=$?
2400: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401: (exit $ac_status); }; } &&
2402: { ac_try='test -s conftest.$ac_objext'
1.14 noro 2403: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404: (eval $ac_try) 2>&5
2405: ac_status=$?
2406: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407: (exit $ac_status); }; }; then
2408: ac_cv_prog_cc_g=yes
2409: else
2410: echo "$as_me: failed program was:" >&5
1.32 noro 2411: sed 's/^/| /' conftest.$ac_ext >&5
2412:
1.14 noro 2413: ac_cv_prog_cc_g=no
2414: fi
1.32 noro 2415: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 2416: fi
2417: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2418: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2419: if test "$ac_test_CFLAGS" = set; then
2420: CFLAGS=$ac_save_CFLAGS
2421: elif test $ac_cv_prog_cc_g = yes; then
2422: if test "$GCC" = yes; then
2423: CFLAGS="-g -O2"
2424: else
2425: CFLAGS="-g"
2426: fi
2427: else
2428: if test "$GCC" = yes; then
2429: CFLAGS="-O2"
2430: else
2431: CFLAGS=
2432: fi
2433: fi
1.32 noro 2434: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2435: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2436: if test "${ac_cv_prog_cc_stdc+set}" = set; then
2437: echo $ECHO_N "(cached) $ECHO_C" >&6
2438: else
2439: ac_cv_prog_cc_stdc=no
2440: ac_save_CC=$CC
2441: cat >conftest.$ac_ext <<_ACEOF
2442: /* confdefs.h. */
2443: _ACEOF
2444: cat confdefs.h >>conftest.$ac_ext
2445: cat >>conftest.$ac_ext <<_ACEOF
2446: /* end confdefs.h. */
2447: #include <stdarg.h>
2448: #include <stdio.h>
2449: #include <sys/types.h>
2450: #include <sys/stat.h>
2451: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2452: struct buf { int x; };
2453: FILE * (*rcsopen) (struct buf *, struct stat *, int);
2454: static char *e (p, i)
2455: char **p;
2456: int i;
2457: {
2458: return p[i];
2459: }
2460: static char *f (char * (*g) (char **, int), char **p, ...)
2461: {
2462: char *s;
2463: va_list v;
2464: va_start (v,p);
2465: s = g (p, va_arg (v,int));
2466: va_end (v);
2467: return s;
2468: }
2469:
2470: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2471: function prototypes and stuff, but not '\xHH' hex character constants.
2472: These don't provoke an error unfortunately, instead are silently treated
2473: as 'x'. The following induces an error, until -std1 is added to get
2474: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2475: array size at least. It's necessary to write '\x00'==0 to get something
2476: that's true only with -std1. */
2477: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2478:
2479: int test (int i, double x);
2480: struct s1 {int (*f) (int a);};
2481: struct s2 {int (*f) (double a);};
2482: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2483: int argc;
2484: char **argv;
2485: int
2486: main ()
2487: {
2488: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2489: ;
2490: return 0;
2491: }
2492: _ACEOF
2493: # Don't try gcc -ansi; that turns off useful extensions and
2494: # breaks some systems' header files.
2495: # AIX -qlanglvl=ansi
2496: # Ultrix and OSF/1 -std1
2497: # HP-UX 10.20 and later -Ae
2498: # HP-UX older versions -Aa -D_HPUX_SOURCE
2499: # SVR4 -Xc -D__EXTENSIONS__
2500: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2501: do
2502: CC="$ac_save_CC $ac_arg"
2503: rm -f conftest.$ac_objext
2504: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505: (eval $ac_compile) 2>conftest.er1
2506: ac_status=$?
2507: grep -v '^ *+' conftest.er1 >conftest.err
2508: rm -f conftest.er1
2509: cat conftest.err >&5
2510: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511: (exit $ac_status); } &&
1.34 ohara 2512: { ac_try='test -z "$ac_c_werror_flag"
2513: || test ! -s conftest.err'
1.32 noro 2514: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515: (eval $ac_try) 2>&5
2516: ac_status=$?
2517: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518: (exit $ac_status); }; } &&
2519: { ac_try='test -s conftest.$ac_objext'
2520: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521: (eval $ac_try) 2>&5
2522: ac_status=$?
2523: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524: (exit $ac_status); }; }; then
2525: ac_cv_prog_cc_stdc=$ac_arg
2526: break
2527: else
2528: echo "$as_me: failed program was:" >&5
2529: sed 's/^/| /' conftest.$ac_ext >&5
2530:
2531: fi
2532: rm -f conftest.err conftest.$ac_objext
2533: done
2534: rm -f conftest.$ac_ext conftest.$ac_objext
2535: CC=$ac_save_CC
2536:
2537: fi
2538:
2539: case "x$ac_cv_prog_cc_stdc" in
2540: x|xno)
2541: echo "$as_me:$LINENO: result: none needed" >&5
2542: echo "${ECHO_T}none needed" >&6 ;;
2543: *)
2544: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2545: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2546: CC="$CC $ac_cv_prog_cc_stdc" ;;
2547: esac
2548:
1.14 noro 2549: # Some people use a C++ compiler to compile C. Since we use `exit',
2550: # in C++ we need to declare it. In case someone uses the same compiler
2551: # for both compiling C and C++ we need to have the C++ compiler decide
2552: # the declaration of exit, since it's the most demanding environment.
2553: cat >conftest.$ac_ext <<_ACEOF
2554: #ifndef __cplusplus
2555: choke me
2556: #endif
2557: _ACEOF
2558: rm -f conftest.$ac_objext
2559: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.32 noro 2560: (eval $ac_compile) 2>conftest.er1
1.14 noro 2561: ac_status=$?
1.32 noro 2562: grep -v '^ *+' conftest.er1 >conftest.err
2563: rm -f conftest.er1
2564: cat conftest.err >&5
1.14 noro 2565: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566: (exit $ac_status); } &&
1.34 ohara 2567: { ac_try='test -z "$ac_c_werror_flag"
2568: || test ! -s conftest.err'
1.32 noro 2569: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570: (eval $ac_try) 2>&5
2571: ac_status=$?
2572: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573: (exit $ac_status); }; } &&
2574: { ac_try='test -s conftest.$ac_objext'
1.14 noro 2575: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576: (eval $ac_try) 2>&5
2577: ac_status=$?
2578: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579: (exit $ac_status); }; }; then
2580: for ac_declaration in \
1.32 noro 2581: '' \
1.14 noro 2582: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2583: 'extern "C" void std::exit (int); using std::exit;' \
2584: 'extern "C" void exit (int) throw ();' \
2585: 'extern "C" void exit (int);' \
2586: 'void exit (int);'
2587: do
2588: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 2589: /* confdefs.h. */
2590: _ACEOF
2591: cat confdefs.h >>conftest.$ac_ext
2592: cat >>conftest.$ac_ext <<_ACEOF
2593: /* end confdefs.h. */
2594: $ac_declaration
1.14 noro 2595: #include <stdlib.h>
2596: int
2597: main ()
2598: {
2599: exit (42);
2600: ;
2601: return 0;
2602: }
2603: _ACEOF
2604: rm -f conftest.$ac_objext
2605: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.32 noro 2606: (eval $ac_compile) 2>conftest.er1
1.14 noro 2607: ac_status=$?
1.32 noro 2608: grep -v '^ *+' conftest.er1 >conftest.err
2609: rm -f conftest.er1
2610: cat conftest.err >&5
1.14 noro 2611: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612: (exit $ac_status); } &&
1.34 ohara 2613: { ac_try='test -z "$ac_c_werror_flag"
2614: || test ! -s conftest.err'
1.32 noro 2615: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616: (eval $ac_try) 2>&5
2617: ac_status=$?
2618: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619: (exit $ac_status); }; } &&
2620: { ac_try='test -s conftest.$ac_objext'
1.14 noro 2621: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622: (eval $ac_try) 2>&5
2623: ac_status=$?
2624: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625: (exit $ac_status); }; }; then
2626: :
2627: else
2628: echo "$as_me: failed program was:" >&5
1.32 noro 2629: sed 's/^/| /' conftest.$ac_ext >&5
2630:
1.14 noro 2631: continue
2632: fi
1.32 noro 2633: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 2634: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 2635: /* confdefs.h. */
2636: _ACEOF
2637: cat confdefs.h >>conftest.$ac_ext
2638: cat >>conftest.$ac_ext <<_ACEOF
2639: /* end confdefs.h. */
1.14 noro 2640: $ac_declaration
2641: int
2642: main ()
2643: {
2644: exit (42);
2645: ;
2646: return 0;
2647: }
2648: _ACEOF
2649: rm -f conftest.$ac_objext
2650: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.32 noro 2651: (eval $ac_compile) 2>conftest.er1
1.14 noro 2652: ac_status=$?
1.32 noro 2653: grep -v '^ *+' conftest.er1 >conftest.err
2654: rm -f conftest.er1
2655: cat conftest.err >&5
1.14 noro 2656: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657: (exit $ac_status); } &&
1.34 ohara 2658: { ac_try='test -z "$ac_c_werror_flag"
2659: || test ! -s conftest.err'
1.32 noro 2660: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661: (eval $ac_try) 2>&5
2662: ac_status=$?
2663: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664: (exit $ac_status); }; } &&
2665: { ac_try='test -s conftest.$ac_objext'
1.14 noro 2666: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667: (eval $ac_try) 2>&5
2668: ac_status=$?
2669: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670: (exit $ac_status); }; }; then
2671: break
2672: else
2673: echo "$as_me: failed program was:" >&5
1.32 noro 2674: sed 's/^/| /' conftest.$ac_ext >&5
2675:
1.14 noro 2676: fi
1.32 noro 2677: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 2678: done
2679: rm -f conftest*
2680: if test -n "$ac_declaration"; then
2681: echo '#ifdef __cplusplus' >>confdefs.h
2682: echo $ac_declaration >>confdefs.h
2683: echo '#endif' >>confdefs.h
2684: fi
2685:
2686: else
2687: echo "$as_me: failed program was:" >&5
1.32 noro 2688: sed 's/^/| /' conftest.$ac_ext >&5
2689:
1.14 noro 2690: fi
1.32 noro 2691: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 2692: ac_ext=c
2693: ac_cpp='$CPP $CPPFLAGS'
2694: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2695: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2696: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2697:
1.32 noro 2698: ac_config_commands="$ac_config_commands default-1"
1.14 noro 2699:
2700: am_make=${MAKE-make}
2701: cat > confinc << 'END'
2702: doit:
2703: @echo done
2704: END
2705: # If we don't find an include directive, just comment out the code.
2706: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2707: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2708: am__include='#'
2709: am__quote=
2710: _am_result=none
2711: # First try GNU make style include.
2712: echo "include confinc" > confmf
2713: # We grep out `Entering directory' and `Leaving directory'
2714: # messages which can occur if `w' ends up in MAKEFLAGS.
2715: # In particular we don't look at `^make:' because GNU make might
2716: # be invoked under some other name (usually "gmake"), in which
2717: # case it prints its new name instead of `make'.
2718: if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2719: am__include=include
2720: am__quote=
2721: _am_result=GNU
2722: fi
2723: # Now try BSD make style include.
2724: if test "$am__include" = "#"; then
2725: echo '.include "confinc"' > confmf
2726: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2727: am__include=.include
2728: am__quote='"'
2729: _am_result=BSD
2730: fi
2731: fi
2732:
2733:
2734: echo "$as_me:$LINENO: result: $_am_result" >&5
2735: echo "${ECHO_T}$_am_result" >&6
2736: rm -f confinc confmf
2737:
2738:
2739: depcc="$CC" am_compiler_list=
2740:
2741: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2742: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2743: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2744: echo $ECHO_N "(cached) $ECHO_C" >&6
2745: else
2746: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2747: # We make a subdir and do the tests there. Otherwise we can end up
2748: # making bogus files that we don't know about and never remove. For
2749: # instance it was reported that on HP-UX the gcc test will end up
2750: # making a dummy file named `D' -- because `-MD' means `put the output
2751: # in D'.
2752: mkdir conftest.dir
2753: # Copy depcomp to subdir because otherwise we won't find it if we're
2754: # using a relative directory.
2755: cp "$am_depcomp" conftest.dir
2756: cd conftest.dir
2757:
2758: am_cv_CC_dependencies_compiler_type=none
2759: if test "$am_compiler_list" = ""; then
2760: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2761: fi
2762: for depmode in $am_compiler_list; do
2763: # We need to recreate these files for each test, as the compiler may
2764: # overwrite some of them when testing with obscure command lines.
2765: # This happens at least with the AIX C compiler.
2766: echo '#include "conftest.h"' > conftest.c
2767: echo 'int i;' > conftest.h
2768: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2769:
2770: case $depmode in
2771: nosideeffect)
2772: # after this tag, mechanisms are not by side-effect, so they'll
2773: # only be used when explicitly requested
2774: if test "x$enable_dependency_tracking" = xyes; then
2775: continue
2776: else
2777: break
2778: fi
2779: ;;
2780: none) break ;;
2781: esac
2782: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2783: # mode. It turns out that the SunPro C++ compiler does not properly
2784: # handle `-M -o', and we need to detect this.
2785: if depmode=$depmode \
2786: source=conftest.c object=conftest.o \
2787: depfile=conftest.Po tmpdepfile=conftest.TPo \
2788: $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2789: grep conftest.h conftest.Po > /dev/null 2>&1 &&
2790: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2791: am_cv_CC_dependencies_compiler_type=$depmode
2792: break
2793: fi
2794: done
2795:
2796: cd ..
2797: rm -rf conftest.dir
2798: else
2799: am_cv_CC_dependencies_compiler_type=none
2800: fi
2801:
2802: fi
2803: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2804: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2805: CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2806:
2807:
2808: # Find a good install program. We prefer a C program (faster),
2809: # so one script is as good as another. But avoid the broken or
2810: # incompatible versions:
2811: # SysV /etc/install, /usr/sbin/install
2812: # SunOS /usr/etc/install
2813: # IRIX /sbin/install
2814: # AIX /bin/install
2815: # AmigaOS /C/install, which installs bootblocks on floppy discs
2816: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2817: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2818: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.32 noro 2819: # OS/2's system install, which has a completely different semantic
1.14 noro 2820: # ./install, which can be erroneously created by make from ./install.sh.
2821: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2822: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2823: if test -z "$INSTALL"; then
2824: if test "${ac_cv_path_install+set}" = set; then
2825: echo $ECHO_N "(cached) $ECHO_C" >&6
2826: else
2827: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828: for as_dir in $PATH
2829: do
2830: IFS=$as_save_IFS
2831: test -z "$as_dir" && as_dir=.
2832: # Account for people who put trailing slashes in PATH elements.
2833: case $as_dir/ in
2834: ./ | .// | /cC/* | \
2835: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.32 noro 2836: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.14 noro 2837: /usr/ucb/* ) ;;
2838: *)
2839: # OSF1 and SCO ODT 3.0 have their own names for install.
2840: # Don't use installbsd from OSF since it installs stuff as root
2841: # by default.
2842: for ac_prog in ginstall scoinst install; do
2843: for ac_exec_ext in '' $ac_executable_extensions; do
1.32 noro 2844: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2845: if test $ac_prog = install &&
2846: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2847: # AIX install. It has an incompatible calling convention.
2848: :
2849: elif test $ac_prog = install &&
2850: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2851: # program-specific install script used by HP pwplus--don't use.
2852: :
2853: else
2854: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2855: break 3
2856: fi
2857: fi
1.14 noro 2858: done
2859: done
2860: ;;
2861: esac
2862: done
2863:
2864:
2865: fi
2866: if test "${ac_cv_path_install+set}" = set; then
2867: INSTALL=$ac_cv_path_install
2868: else
2869: # As a last resort, use the slow shell script. We don't cache a
2870: # path for INSTALL within a source directory, because that will
2871: # break other packages using the cache if that directory is
2872: # removed, or if the path is relative.
2873: INSTALL=$ac_install_sh
2874: fi
2875: fi
2876: echo "$as_me:$LINENO: result: $INSTALL" >&5
2877: echo "${ECHO_T}$INSTALL" >&6
2878:
2879: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2880: # It thinks the first close brace ends the variable substitution.
2881: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2882:
2883: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2884:
2885: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2886:
2887: echo "$as_me:$LINENO: checking whether ln -s works" >&5
2888: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2889: LN_S=$as_ln_s
2890: if test "$LN_S" = "ln -s"; then
2891: echo "$as_me:$LINENO: result: yes" >&5
2892: echo "${ECHO_T}yes" >&6
2893: else
2894: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2895: echo "${ECHO_T}no, using $LN_S" >&6
2896: fi
2897:
2898: if test -n "$ac_tool_prefix"; then
2899: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2900: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2901: echo "$as_me:$LINENO: checking for $ac_word" >&5
2902: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2903: if test "${ac_cv_prog_RANLIB+set}" = set; then
2904: echo $ECHO_N "(cached) $ECHO_C" >&6
2905: else
2906: if test -n "$RANLIB"; then
2907: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2908: else
2909: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910: for as_dir in $PATH
2911: do
2912: IFS=$as_save_IFS
2913: test -z "$as_dir" && as_dir=.
2914: for ac_exec_ext in '' $ac_executable_extensions; do
2915: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2916: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2917: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2918: break 2
2919: fi
2920: done
2921: done
2922:
2923: fi
2924: fi
2925: RANLIB=$ac_cv_prog_RANLIB
2926: if test -n "$RANLIB"; then
2927: echo "$as_me:$LINENO: result: $RANLIB" >&5
2928: echo "${ECHO_T}$RANLIB" >&6
2929: else
2930: echo "$as_me:$LINENO: result: no" >&5
2931: echo "${ECHO_T}no" >&6
2932: fi
2933:
2934: fi
2935: if test -z "$ac_cv_prog_RANLIB"; then
2936: ac_ct_RANLIB=$RANLIB
2937: # Extract the first word of "ranlib", so it can be a program name with args.
2938: set dummy ranlib; ac_word=$2
2939: echo "$as_me:$LINENO: checking for $ac_word" >&5
2940: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2941: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2942: echo $ECHO_N "(cached) $ECHO_C" >&6
2943: else
2944: if test -n "$ac_ct_RANLIB"; then
2945: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2946: else
2947: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948: for as_dir in $PATH
2949: do
2950: IFS=$as_save_IFS
2951: test -z "$as_dir" && as_dir=.
2952: for ac_exec_ext in '' $ac_executable_extensions; do
2953: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954: ac_cv_prog_ac_ct_RANLIB="ranlib"
2955: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2956: break 2
2957: fi
2958: done
2959: done
2960:
2961: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2962: fi
2963: fi
2964: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2965: if test -n "$ac_ct_RANLIB"; then
2966: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2967: echo "${ECHO_T}$ac_ct_RANLIB" >&6
2968: else
2969: echo "$as_me:$LINENO: result: no" >&5
2970: echo "${ECHO_T}no" >&6
2971: fi
2972:
2973: RANLIB=$ac_ct_RANLIB
2974: else
2975: RANLIB="$ac_cv_prog_RANLIB"
2976: fi
2977:
2978: for ac_prog in 'bison -y' byacc
2979: do
2980: # Extract the first word of "$ac_prog", so it can be a program name with args.
2981: set dummy $ac_prog; ac_word=$2
2982: echo "$as_me:$LINENO: checking for $ac_word" >&5
2983: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2984: if test "${ac_cv_prog_YACC+set}" = set; then
2985: echo $ECHO_N "(cached) $ECHO_C" >&6
2986: else
2987: if test -n "$YACC"; then
2988: ac_cv_prog_YACC="$YACC" # Let the user override the test.
2989: else
2990: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991: for as_dir in $PATH
2992: do
2993: IFS=$as_save_IFS
2994: test -z "$as_dir" && as_dir=.
2995: for ac_exec_ext in '' $ac_executable_extensions; do
2996: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997: ac_cv_prog_YACC="$ac_prog"
2998: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2999: break 2
3000: fi
3001: done
3002: done
3003:
3004: fi
3005: fi
3006: YACC=$ac_cv_prog_YACC
3007: if test -n "$YACC"; then
3008: echo "$as_me:$LINENO: result: $YACC" >&5
3009: echo "${ECHO_T}$YACC" >&6
3010: else
3011: echo "$as_me:$LINENO: result: no" >&5
3012: echo "${ECHO_T}no" >&6
3013: fi
3014:
3015: test -n "$YACC" && break
3016: done
3017: test -n "$YACC" || YACC="yacc"
3018:
3019:
3020:
3021: ac_ext=c
3022: ac_cpp='$CPP $CPPFLAGS'
3023: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3026: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3027: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3028: # On Suns, sometimes $CPP names a directory.
3029: if test -n "$CPP" && test -d "$CPP"; then
3030: CPP=
3031: fi
3032: if test -z "$CPP"; then
3033: if test "${ac_cv_prog_CPP+set}" = set; then
3034: echo $ECHO_N "(cached) $ECHO_C" >&6
3035: else
3036: # Double quotes because CPP needs to be expanded
3037: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3038: do
3039: ac_preproc_ok=false
3040: for ac_c_preproc_warn_flag in '' yes
3041: do
3042: # Use a header file that comes with gcc, so configuring glibc
3043: # with a fresh cross-compiler works.
1.32 noro 3044: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3045: # <limits.h> exists even on freestanding compilers.
1.14 noro 3046: # On the NeXT, cc -E runs the code through the compiler's parser,
3047: # not just through cpp. "Syntax error" is here to catch this case.
3048: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 3049: /* confdefs.h. */
3050: _ACEOF
3051: cat confdefs.h >>conftest.$ac_ext
3052: cat >>conftest.$ac_ext <<_ACEOF
3053: /* end confdefs.h. */
3054: #ifdef __STDC__
3055: # include <limits.h>
3056: #else
3057: # include <assert.h>
3058: #endif
3059: Syntax error
1.14 noro 3060: _ACEOF
3061: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3062: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3063: ac_status=$?
1.32 noro 3064: grep -v '^ *+' conftest.er1 >conftest.err
1.14 noro 3065: rm -f conftest.er1
3066: cat conftest.err >&5
3067: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068: (exit $ac_status); } >/dev/null; then
3069: if test -s conftest.err; then
3070: ac_cpp_err=$ac_c_preproc_warn_flag
1.32 noro 3071: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.14 noro 3072: else
3073: ac_cpp_err=
3074: fi
3075: else
3076: ac_cpp_err=yes
3077: fi
3078: if test -z "$ac_cpp_err"; then
3079: :
3080: else
3081: echo "$as_me: failed program was:" >&5
1.32 noro 3082: sed 's/^/| /' conftest.$ac_ext >&5
3083:
1.14 noro 3084: # Broken: fails on valid input.
3085: continue
3086: fi
3087: rm -f conftest.err conftest.$ac_ext
3088:
3089: # OK, works on sane cases. Now check whether non-existent headers
3090: # can be detected and how.
3091: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 3092: /* confdefs.h. */
3093: _ACEOF
3094: cat confdefs.h >>conftest.$ac_ext
3095: cat >>conftest.$ac_ext <<_ACEOF
3096: /* end confdefs.h. */
1.14 noro 3097: #include <ac_nonexistent.h>
3098: _ACEOF
3099: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3100: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3101: ac_status=$?
1.32 noro 3102: grep -v '^ *+' conftest.er1 >conftest.err
1.14 noro 3103: rm -f conftest.er1
3104: cat conftest.err >&5
3105: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106: (exit $ac_status); } >/dev/null; then
3107: if test -s conftest.err; then
3108: ac_cpp_err=$ac_c_preproc_warn_flag
1.32 noro 3109: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.14 noro 3110: else
3111: ac_cpp_err=
3112: fi
3113: else
3114: ac_cpp_err=yes
3115: fi
3116: if test -z "$ac_cpp_err"; then
3117: # Broken: success on invalid input.
3118: continue
3119: else
3120: echo "$as_me: failed program was:" >&5
1.32 noro 3121: sed 's/^/| /' conftest.$ac_ext >&5
3122:
1.14 noro 3123: # Passes both tests.
3124: ac_preproc_ok=:
3125: break
3126: fi
3127: rm -f conftest.err conftest.$ac_ext
3128:
3129: done
3130: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3131: rm -f conftest.err conftest.$ac_ext
3132: if $ac_preproc_ok; then
3133: break
3134: fi
3135:
3136: done
3137: ac_cv_prog_CPP=$CPP
3138:
3139: fi
3140: CPP=$ac_cv_prog_CPP
3141: else
3142: ac_cv_prog_CPP=$CPP
3143: fi
3144: echo "$as_me:$LINENO: result: $CPP" >&5
3145: echo "${ECHO_T}$CPP" >&6
3146: ac_preproc_ok=false
3147: for ac_c_preproc_warn_flag in '' yes
3148: do
3149: # Use a header file that comes with gcc, so configuring glibc
3150: # with a fresh cross-compiler works.
1.32 noro 3151: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3152: # <limits.h> exists even on freestanding compilers.
1.14 noro 3153: # On the NeXT, cc -E runs the code through the compiler's parser,
3154: # not just through cpp. "Syntax error" is here to catch this case.
3155: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 3156: /* confdefs.h. */
3157: _ACEOF
3158: cat confdefs.h >>conftest.$ac_ext
3159: cat >>conftest.$ac_ext <<_ACEOF
3160: /* end confdefs.h. */
3161: #ifdef __STDC__
3162: # include <limits.h>
3163: #else
3164: # include <assert.h>
3165: #endif
3166: Syntax error
1.14 noro 3167: _ACEOF
3168: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3169: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3170: ac_status=$?
1.32 noro 3171: grep -v '^ *+' conftest.er1 >conftest.err
1.14 noro 3172: rm -f conftest.er1
3173: cat conftest.err >&5
3174: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175: (exit $ac_status); } >/dev/null; then
3176: if test -s conftest.err; then
3177: ac_cpp_err=$ac_c_preproc_warn_flag
1.32 noro 3178: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.14 noro 3179: else
3180: ac_cpp_err=
3181: fi
3182: else
3183: ac_cpp_err=yes
3184: fi
3185: if test -z "$ac_cpp_err"; then
3186: :
3187: else
3188: echo "$as_me: failed program was:" >&5
1.32 noro 3189: sed 's/^/| /' conftest.$ac_ext >&5
3190:
1.14 noro 3191: # Broken: fails on valid input.
3192: continue
3193: fi
3194: rm -f conftest.err conftest.$ac_ext
3195:
3196: # OK, works on sane cases. Now check whether non-existent headers
3197: # can be detected and how.
3198: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 3199: /* confdefs.h. */
3200: _ACEOF
3201: cat confdefs.h >>conftest.$ac_ext
3202: cat >>conftest.$ac_ext <<_ACEOF
3203: /* end confdefs.h. */
1.14 noro 3204: #include <ac_nonexistent.h>
3205: _ACEOF
3206: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3207: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3208: ac_status=$?
1.32 noro 3209: grep -v '^ *+' conftest.er1 >conftest.err
1.14 noro 3210: rm -f conftest.er1
3211: cat conftest.err >&5
3212: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213: (exit $ac_status); } >/dev/null; then
3214: if test -s conftest.err; then
3215: ac_cpp_err=$ac_c_preproc_warn_flag
1.32 noro 3216: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.14 noro 3217: else
3218: ac_cpp_err=
3219: fi
3220: else
3221: ac_cpp_err=yes
3222: fi
3223: if test -z "$ac_cpp_err"; then
3224: # Broken: success on invalid input.
3225: continue
3226: else
3227: echo "$as_me: failed program was:" >&5
1.32 noro 3228: sed 's/^/| /' conftest.$ac_ext >&5
3229:
1.14 noro 3230: # Passes both tests.
3231: ac_preproc_ok=:
3232: break
3233: fi
3234: rm -f conftest.err conftest.$ac_ext
3235:
3236: done
3237: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3238: rm -f conftest.err conftest.$ac_ext
3239: if $ac_preproc_ok; then
3240: :
3241: else
1.32 noro 3242: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3243: See \`config.log' for more details." >&5
3244: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3245: See \`config.log' for more details." >&2;}
1.14 noro 3246: { (exit 1); exit 1; }; }
3247: fi
3248:
3249: ac_ext=c
3250: ac_cpp='$CPP $CPPFLAGS'
3251: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3252: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3253: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3254:
3255:
1.34 ohara 3256: echo "$as_me:$LINENO: checking for X" >&5
1.14 noro 3257: echo $ECHO_N "checking for X... $ECHO_C" >&6
3258:
3259:
3260: # Check whether --with-x or --without-x was given.
3261: if test "${with_x+set}" = set; then
3262: withval="$with_x"
3263:
3264: fi;
3265: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3266: if test "x$with_x" = xno; then
3267: # The user explicitly disabled X.
3268: have_x=disabled
3269: else
3270: if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3271: # Both variables are already set.
3272: have_x=yes
3273: else
3274: if test "${ac_cv_have_x+set}" = set; then
3275: echo $ECHO_N "(cached) $ECHO_C" >&6
3276: else
3277: # One or both of the vars are not set, and there is no cached value.
3278: ac_x_includes=no ac_x_libraries=no
3279: rm -fr conftest.dir
3280: if mkdir conftest.dir; then
3281: cd conftest.dir
3282: # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3283: cat >Imakefile <<'_ACEOF'
3284: acfindx:
3285: @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3286: _ACEOF
3287: if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3288: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3289: eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3290: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3291: for ac_extension in a so sl; do
3292: if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1.32 noro 3293: test -f $ac_im_libdir/libX11.$ac_extension; then
3294: ac_im_usrlibdir=$ac_im_libdir; break
1.14 noro 3295: fi
3296: done
3297: # Screen out bogus values from the imake configuration. They are
3298: # bogus both because they are the default anyway, and because
3299: # using them would break gcc on systems where it needs fixed includes.
3300: case $ac_im_incroot in
3301: /usr/include) ;;
3302: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3303: esac
3304: case $ac_im_usrlibdir in
3305: /usr/lib | /lib) ;;
3306: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3307: esac
3308: fi
3309: cd ..
3310: rm -fr conftest.dir
3311: fi
3312:
3313: # Standard set of common directories for X headers.
3314: # Check X11 before X11Rn because it is often a symlink to the current release.
3315: ac_x_header_dirs='
3316: /usr/X11/include
3317: /usr/X11R6/include
3318: /usr/X11R5/include
3319: /usr/X11R4/include
3320:
3321: /usr/include/X11
3322: /usr/include/X11R6
3323: /usr/include/X11R5
3324: /usr/include/X11R4
3325:
3326: /usr/local/X11/include
3327: /usr/local/X11R6/include
3328: /usr/local/X11R5/include
3329: /usr/local/X11R4/include
3330:
3331: /usr/local/include/X11
3332: /usr/local/include/X11R6
3333: /usr/local/include/X11R5
3334: /usr/local/include/X11R4
3335:
3336: /usr/X386/include
3337: /usr/x386/include
3338: /usr/XFree86/include/X11
3339:
3340: /usr/include
3341: /usr/local/include
3342: /usr/unsupported/include
3343: /usr/athena/include
3344: /usr/local/x11r5/include
3345: /usr/lpp/Xamples/include
3346:
3347: /usr/openwin/include
3348: /usr/openwin/share/include'
3349:
3350: if test "$ac_x_includes" = no; then
1.34 ohara 3351: # Guess where to find include files, by looking for Intrinsic.h.
1.14 noro 3352: # First, try using that file with no special directory specified.
3353: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 3354: /* confdefs.h. */
3355: _ACEOF
3356: cat confdefs.h >>conftest.$ac_ext
3357: cat >>conftest.$ac_ext <<_ACEOF
3358: /* end confdefs.h. */
1.14 noro 3359: #include <X11/Intrinsic.h>
3360: _ACEOF
3361: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3362: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3363: ac_status=$?
1.32 noro 3364: grep -v '^ *+' conftest.er1 >conftest.err
1.14 noro 3365: rm -f conftest.er1
3366: cat conftest.err >&5
3367: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368: (exit $ac_status); } >/dev/null; then
3369: if test -s conftest.err; then
3370: ac_cpp_err=$ac_c_preproc_warn_flag
1.32 noro 3371: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.14 noro 3372: else
3373: ac_cpp_err=
3374: fi
3375: else
3376: ac_cpp_err=yes
3377: fi
3378: if test -z "$ac_cpp_err"; then
3379: # We can compile using X headers with no special include directory.
3380: ac_x_includes=
3381: else
3382: echo "$as_me: failed program was:" >&5
1.32 noro 3383: sed 's/^/| /' conftest.$ac_ext >&5
3384:
1.14 noro 3385: for ac_dir in $ac_x_header_dirs; do
3386: if test -r "$ac_dir/X11/Intrinsic.h"; then
3387: ac_x_includes=$ac_dir
3388: break
3389: fi
3390: done
3391: fi
3392: rm -f conftest.err conftest.$ac_ext
3393: fi # $ac_x_includes = no
3394:
3395: if test "$ac_x_libraries" = no; then
3396: # Check for the libraries.
3397: # See if we find them without any special options.
3398: # Don't add to $LIBS permanently.
3399: ac_save_LIBS=$LIBS
3400: LIBS="-lXt $LIBS"
3401: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 3402: /* confdefs.h. */
3403: _ACEOF
3404: cat confdefs.h >>conftest.$ac_ext
3405: cat >>conftest.$ac_ext <<_ACEOF
3406: /* end confdefs.h. */
1.14 noro 3407: #include <X11/Intrinsic.h>
3408: int
3409: main ()
3410: {
3411: XtMalloc (0)
3412: ;
3413: return 0;
3414: }
3415: _ACEOF
3416: rm -f conftest.$ac_objext conftest$ac_exeext
3417: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.32 noro 3418: (eval $ac_link) 2>conftest.er1
1.14 noro 3419: ac_status=$?
1.32 noro 3420: grep -v '^ *+' conftest.er1 >conftest.err
3421: rm -f conftest.er1
3422: cat conftest.err >&5
1.14 noro 3423: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424: (exit $ac_status); } &&
1.34 ohara 3425: { ac_try='test -z "$ac_c_werror_flag"
3426: || test ! -s conftest.err'
1.32 noro 3427: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428: (eval $ac_try) 2>&5
3429: ac_status=$?
3430: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431: (exit $ac_status); }; } &&
3432: { ac_try='test -s conftest$ac_exeext'
1.14 noro 3433: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434: (eval $ac_try) 2>&5
3435: ac_status=$?
3436: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437: (exit $ac_status); }; }; then
3438: LIBS=$ac_save_LIBS
3439: # We can link X programs with no special library path.
3440: ac_x_libraries=
3441: else
3442: echo "$as_me: failed program was:" >&5
1.32 noro 3443: sed 's/^/| /' conftest.$ac_ext >&5
3444:
1.14 noro 3445: LIBS=$ac_save_LIBS
3446: for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3447: do
3448: # Don't even attempt the hair of trying to link an X program!
3449: for ac_extension in a so sl; do
3450: if test -r $ac_dir/libXt.$ac_extension; then
3451: ac_x_libraries=$ac_dir
3452: break 2
3453: fi
3454: done
3455: done
3456: fi
1.32 noro 3457: rm -f conftest.err conftest.$ac_objext \
3458: conftest$ac_exeext conftest.$ac_ext
1.14 noro 3459: fi # $ac_x_libraries = no
3460:
3461: if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3462: # Didn't find X anywhere. Cache the known absence of X.
3463: ac_cv_have_x="have_x=no"
3464: else
3465: # Record where we found X for the cache.
3466: ac_cv_have_x="have_x=yes \
1.32 noro 3467: ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1.14 noro 3468: fi
3469: fi
3470:
3471: fi
3472: eval "$ac_cv_have_x"
3473: fi # $with_x != no
3474:
3475: if test "$have_x" != yes; then
3476: echo "$as_me:$LINENO: result: $have_x" >&5
3477: echo "${ECHO_T}$have_x" >&6
3478: no_x=yes
3479: else
3480: # If each of the values was on the command line, it overrides each guess.
3481: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3482: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3483: # Update the cache value to reflect the command line values.
3484: ac_cv_have_x="have_x=yes \
3485: ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1.34 ohara 3486: echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3487: echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
1.14 noro 3488: fi
3489:
3490: if test "$no_x" = yes; then
3491: # Not all programs may use this symbol, but it does not hurt to define it.
3492:
3493: cat >>confdefs.h <<\_ACEOF
3494: #define X_DISPLAY_MISSING 1
3495: _ACEOF
3496:
3497: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3498: else
3499: if test -n "$x_includes"; then
3500: X_CFLAGS="$X_CFLAGS -I$x_includes"
3501: fi
3502:
3503: # It would also be nice to do this for all -L options, not just this one.
3504: if test -n "$x_libraries"; then
3505: X_LIBS="$X_LIBS -L$x_libraries"
3506: # For Solaris; some versions of Sun CC require a space after -R and
3507: # others require no space. Words are not sufficient . . . .
3508: case `(uname -sr) 2>/dev/null` in
3509: "SunOS 5"*)
3510: echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3511: echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3512: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3513: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 3514: /* confdefs.h. */
3515: _ACEOF
3516: cat confdefs.h >>conftest.$ac_ext
3517: cat >>conftest.$ac_ext <<_ACEOF
3518: /* end confdefs.h. */
1.14 noro 3519:
3520: int
3521: main ()
3522: {
3523:
3524: ;
3525: return 0;
3526: }
3527: _ACEOF
3528: rm -f conftest.$ac_objext conftest$ac_exeext
3529: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.32 noro 3530: (eval $ac_link) 2>conftest.er1
1.14 noro 3531: ac_status=$?
1.32 noro 3532: grep -v '^ *+' conftest.er1 >conftest.err
3533: rm -f conftest.er1
3534: cat conftest.err >&5
1.14 noro 3535: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536: (exit $ac_status); } &&
1.34 ohara 3537: { ac_try='test -z "$ac_c_werror_flag"
3538: || test ! -s conftest.err'
1.32 noro 3539: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540: (eval $ac_try) 2>&5
3541: ac_status=$?
3542: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543: (exit $ac_status); }; } &&
3544: { ac_try='test -s conftest$ac_exeext'
1.14 noro 3545: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546: (eval $ac_try) 2>&5
3547: ac_status=$?
3548: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549: (exit $ac_status); }; }; then
3550: ac_R_nospace=yes
3551: else
3552: echo "$as_me: failed program was:" >&5
1.32 noro 3553: sed 's/^/| /' conftest.$ac_ext >&5
3554:
1.14 noro 3555: ac_R_nospace=no
3556: fi
1.32 noro 3557: rm -f conftest.err conftest.$ac_objext \
3558: conftest$ac_exeext conftest.$ac_ext
1.14 noro 3559: if test $ac_R_nospace = yes; then
3560: echo "$as_me:$LINENO: result: no" >&5
3561: echo "${ECHO_T}no" >&6
3562: X_LIBS="$X_LIBS -R$x_libraries"
3563: else
3564: LIBS="$ac_xsave_LIBS -R $x_libraries"
3565: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 3566: /* confdefs.h. */
3567: _ACEOF
3568: cat confdefs.h >>conftest.$ac_ext
3569: cat >>conftest.$ac_ext <<_ACEOF
3570: /* end confdefs.h. */
1.14 noro 3571:
3572: int
3573: main ()
3574: {
3575:
3576: ;
3577: return 0;
3578: }
3579: _ACEOF
3580: rm -f conftest.$ac_objext conftest$ac_exeext
3581: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.32 noro 3582: (eval $ac_link) 2>conftest.er1
1.14 noro 3583: ac_status=$?
1.32 noro 3584: grep -v '^ *+' conftest.er1 >conftest.err
3585: rm -f conftest.er1
3586: cat conftest.err >&5
1.14 noro 3587: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588: (exit $ac_status); } &&
1.34 ohara 3589: { ac_try='test -z "$ac_c_werror_flag"
3590: || test ! -s conftest.err'
1.32 noro 3591: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592: (eval $ac_try) 2>&5
3593: ac_status=$?
3594: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595: (exit $ac_status); }; } &&
3596: { ac_try='test -s conftest$ac_exeext'
1.14 noro 3597: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598: (eval $ac_try) 2>&5
3599: ac_status=$?
3600: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601: (exit $ac_status); }; }; then
3602: ac_R_space=yes
3603: else
3604: echo "$as_me: failed program was:" >&5
1.32 noro 3605: sed 's/^/| /' conftest.$ac_ext >&5
3606:
1.14 noro 3607: ac_R_space=no
3608: fi
1.32 noro 3609: rm -f conftest.err conftest.$ac_objext \
3610: conftest$ac_exeext conftest.$ac_ext
1.14 noro 3611: if test $ac_R_space = yes; then
3612: echo "$as_me:$LINENO: result: yes" >&5
3613: echo "${ECHO_T}yes" >&6
3614: X_LIBS="$X_LIBS -R $x_libraries"
3615: else
3616: echo "$as_me:$LINENO: result: neither works" >&5
3617: echo "${ECHO_T}neither works" >&6
3618: fi
3619: fi
3620: LIBS=$ac_xsave_LIBS
3621: esac
3622: fi
3623:
3624: # Check for system-dependent libraries X programs must link with.
3625: # Do this before checking for the system-independent R6 libraries
3626: # (-lICE), since we may need -lsocket or whatever for X linking.
3627:
3628: if test "$ISC" = yes; then
3629: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3630: else
3631: # Martyn Johnson says this is needed for Ultrix, if the X
3632: # libraries were built with DECnet support. And Karl Berry says
3633: # the Alpha needs dnet_stub (dnet does not exist).
3634: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3635: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 3636: /* confdefs.h. */
3637: _ACEOF
3638: cat confdefs.h >>conftest.$ac_ext
3639: cat >>conftest.$ac_ext <<_ACEOF
3640: /* end confdefs.h. */
1.14 noro 3641:
3642: /* Override any gcc2 internal prototype to avoid an error. */
3643: #ifdef __cplusplus
3644: extern "C"
3645: #endif
3646: /* We use char because int might match the return type of a gcc2
3647: builtin and then its argument prototype would still apply. */
3648: char XOpenDisplay ();
3649: int
3650: main ()
3651: {
3652: XOpenDisplay ();
3653: ;
3654: return 0;
3655: }
3656: _ACEOF
3657: rm -f conftest.$ac_objext conftest$ac_exeext
3658: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.32 noro 3659: (eval $ac_link) 2>conftest.er1
1.14 noro 3660: ac_status=$?
1.32 noro 3661: grep -v '^ *+' conftest.er1 >conftest.err
3662: rm -f conftest.er1
3663: cat conftest.err >&5
1.14 noro 3664: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665: (exit $ac_status); } &&
1.34 ohara 3666: { ac_try='test -z "$ac_c_werror_flag"
3667: || test ! -s conftest.err'
1.32 noro 3668: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669: (eval $ac_try) 2>&5
3670: ac_status=$?
3671: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672: (exit $ac_status); }; } &&
3673: { ac_try='test -s conftest$ac_exeext'
1.14 noro 3674: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675: (eval $ac_try) 2>&5
3676: ac_status=$?
3677: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678: (exit $ac_status); }; }; then
3679: :
3680: else
3681: echo "$as_me: failed program was:" >&5
1.32 noro 3682: sed 's/^/| /' conftest.$ac_ext >&5
3683:
1.14 noro 3684: echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3685: echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3686: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3687: echo $ECHO_N "(cached) $ECHO_C" >&6
3688: else
3689: ac_check_lib_save_LIBS=$LIBS
3690: LIBS="-ldnet $LIBS"
3691: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 3692: /* confdefs.h. */
3693: _ACEOF
3694: cat confdefs.h >>conftest.$ac_ext
3695: cat >>conftest.$ac_ext <<_ACEOF
3696: /* end confdefs.h. */
1.14 noro 3697:
3698: /* Override any gcc2 internal prototype to avoid an error. */
3699: #ifdef __cplusplus
3700: extern "C"
3701: #endif
3702: /* We use char because int might match the return type of a gcc2
3703: builtin and then its argument prototype would still apply. */
3704: char dnet_ntoa ();
3705: int
3706: main ()
3707: {
3708: dnet_ntoa ();
3709: ;
3710: return 0;
3711: }
3712: _ACEOF
3713: rm -f conftest.$ac_objext conftest$ac_exeext
3714: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.32 noro 3715: (eval $ac_link) 2>conftest.er1
1.14 noro 3716: ac_status=$?
1.32 noro 3717: grep -v '^ *+' conftest.er1 >conftest.err
3718: rm -f conftest.er1
3719: cat conftest.err >&5
1.14 noro 3720: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721: (exit $ac_status); } &&
1.34 ohara 3722: { ac_try='test -z "$ac_c_werror_flag"
3723: || test ! -s conftest.err'
1.32 noro 3724: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725: (eval $ac_try) 2>&5
3726: ac_status=$?
3727: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728: (exit $ac_status); }; } &&
3729: { ac_try='test -s conftest$ac_exeext'
1.14 noro 3730: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731: (eval $ac_try) 2>&5
3732: ac_status=$?
3733: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734: (exit $ac_status); }; }; then
3735: ac_cv_lib_dnet_dnet_ntoa=yes
3736: else
3737: echo "$as_me: failed program was:" >&5
1.32 noro 3738: sed 's/^/| /' conftest.$ac_ext >&5
3739:
1.14 noro 3740: ac_cv_lib_dnet_dnet_ntoa=no
3741: fi
1.32 noro 3742: rm -f conftest.err conftest.$ac_objext \
3743: conftest$ac_exeext conftest.$ac_ext
1.14 noro 3744: LIBS=$ac_check_lib_save_LIBS
3745: fi
3746: echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3747: echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3748: if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3749: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3750: fi
3751:
3752: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3753: echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3754: echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3755: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3756: echo $ECHO_N "(cached) $ECHO_C" >&6
3757: else
3758: ac_check_lib_save_LIBS=$LIBS
3759: LIBS="-ldnet_stub $LIBS"
3760: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 3761: /* confdefs.h. */
3762: _ACEOF
3763: cat confdefs.h >>conftest.$ac_ext
3764: cat >>conftest.$ac_ext <<_ACEOF
3765: /* end confdefs.h. */
1.14 noro 3766:
3767: /* Override any gcc2 internal prototype to avoid an error. */
3768: #ifdef __cplusplus
3769: extern "C"
3770: #endif
3771: /* We use char because int might match the return type of a gcc2
3772: builtin and then its argument prototype would still apply. */
3773: char dnet_ntoa ();
3774: int
3775: main ()
3776: {
3777: dnet_ntoa ();
3778: ;
3779: return 0;
3780: }
3781: _ACEOF
3782: rm -f conftest.$ac_objext conftest$ac_exeext
3783: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.32 noro 3784: (eval $ac_link) 2>conftest.er1
1.14 noro 3785: ac_status=$?
1.32 noro 3786: grep -v '^ *+' conftest.er1 >conftest.err
3787: rm -f conftest.er1
3788: cat conftest.err >&5
1.14 noro 3789: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790: (exit $ac_status); } &&
1.34 ohara 3791: { ac_try='test -z "$ac_c_werror_flag"
3792: || test ! -s conftest.err'
1.32 noro 3793: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794: (eval $ac_try) 2>&5
3795: ac_status=$?
3796: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797: (exit $ac_status); }; } &&
3798: { ac_try='test -s conftest$ac_exeext'
1.14 noro 3799: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800: (eval $ac_try) 2>&5
3801: ac_status=$?
3802: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803: (exit $ac_status); }; }; then
3804: ac_cv_lib_dnet_stub_dnet_ntoa=yes
3805: else
3806: echo "$as_me: failed program was:" >&5
1.32 noro 3807: sed 's/^/| /' conftest.$ac_ext >&5
3808:
1.14 noro 3809: ac_cv_lib_dnet_stub_dnet_ntoa=no
3810: fi
1.32 noro 3811: rm -f conftest.err conftest.$ac_objext \
3812: conftest$ac_exeext conftest.$ac_ext
1.14 noro 3813: LIBS=$ac_check_lib_save_LIBS
3814: fi
3815: echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3816: echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3817: if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3818: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3819: fi
3820:
3821: fi
3822: fi
1.32 noro 3823: rm -f conftest.err conftest.$ac_objext \
3824: conftest$ac_exeext conftest.$ac_ext
1.14 noro 3825: LIBS="$ac_xsave_LIBS"
3826:
3827: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3828: # to get the SysV transport functions.
3829: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3830: # needs -lnsl.
3831: # The nsl library prevents programs from opening the X display
3832: # on Irix 5.2, according to T.E. Dickey.
3833: # The functions gethostbyname, getservbyname, and inet_addr are
3834: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3835: echo "$as_me:$LINENO: checking for gethostbyname" >&5
3836: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3837: if test "${ac_cv_func_gethostbyname+set}" = set; then
3838: echo $ECHO_N "(cached) $ECHO_C" >&6
3839: else
3840: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 3841: /* confdefs.h. */
3842: _ACEOF
3843: cat confdefs.h >>conftest.$ac_ext
3844: cat >>conftest.$ac_ext <<_ACEOF
3845: /* end confdefs.h. */
3846: /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3847: For example, HP-UX 11i <limits.h> declares gettimeofday. */
3848: #define gethostbyname innocuous_gethostbyname
3849:
1.14 noro 3850: /* System header to define __stub macros and hopefully few prototypes,
1.32 noro 3851: which can conflict with char gethostbyname (); below.
3852: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3853: <limits.h> exists even on freestanding compilers. */
3854:
3855: #ifdef __STDC__
3856: # include <limits.h>
3857: #else
3858: # include <assert.h>
3859: #endif
3860:
3861: #undef gethostbyname
3862:
1.14 noro 3863: /* Override any gcc2 internal prototype to avoid an error. */
3864: #ifdef __cplusplus
3865: extern "C"
1.32 noro 3866: {
1.14 noro 3867: #endif
3868: /* We use char because int might match the return type of a gcc2
3869: builtin and then its argument prototype would still apply. */
3870: char gethostbyname ();
3871: /* The GNU C library defines this for functions which it implements
3872: to always fail with ENOSYS. Some functions are actually named
3873: something starting with __ and the normal name is an alias. */
3874: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3875: choke me
3876: #else
1.32 noro 3877: char (*f) () = gethostbyname;
3878: #endif
3879: #ifdef __cplusplus
3880: }
1.14 noro 3881: #endif
3882:
1.32 noro 3883: int
3884: main ()
3885: {
3886: return f != gethostbyname;
1.14 noro 3887: ;
3888: return 0;
3889: }
3890: _ACEOF
3891: rm -f conftest.$ac_objext conftest$ac_exeext
3892: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.32 noro 3893: (eval $ac_link) 2>conftest.er1
1.14 noro 3894: ac_status=$?
1.32 noro 3895: grep -v '^ *+' conftest.er1 >conftest.err
3896: rm -f conftest.er1
3897: cat conftest.err >&5
1.14 noro 3898: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899: (exit $ac_status); } &&
1.34 ohara 3900: { ac_try='test -z "$ac_c_werror_flag"
3901: || test ! -s conftest.err'
1.32 noro 3902: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3903: (eval $ac_try) 2>&5
3904: ac_status=$?
3905: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906: (exit $ac_status); }; } &&
3907: { ac_try='test -s conftest$ac_exeext'
1.14 noro 3908: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909: (eval $ac_try) 2>&5
3910: ac_status=$?
3911: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912: (exit $ac_status); }; }; then
3913: ac_cv_func_gethostbyname=yes
3914: else
3915: echo "$as_me: failed program was:" >&5
1.32 noro 3916: sed 's/^/| /' conftest.$ac_ext >&5
3917:
1.14 noro 3918: ac_cv_func_gethostbyname=no
3919: fi
1.32 noro 3920: rm -f conftest.err conftest.$ac_objext \
3921: conftest$ac_exeext conftest.$ac_ext
1.14 noro 3922: fi
3923: echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3924: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3925:
3926: if test $ac_cv_func_gethostbyname = no; then
3927: echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3928: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3929: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3930: echo $ECHO_N "(cached) $ECHO_C" >&6
3931: else
3932: ac_check_lib_save_LIBS=$LIBS
3933: LIBS="-lnsl $LIBS"
3934: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 3935: /* confdefs.h. */
3936: _ACEOF
3937: cat confdefs.h >>conftest.$ac_ext
3938: cat >>conftest.$ac_ext <<_ACEOF
3939: /* end confdefs.h. */
1.14 noro 3940:
3941: /* Override any gcc2 internal prototype to avoid an error. */
3942: #ifdef __cplusplus
3943: extern "C"
3944: #endif
3945: /* We use char because int might match the return type of a gcc2
3946: builtin and then its argument prototype would still apply. */
3947: char gethostbyname ();
3948: int
3949: main ()
3950: {
3951: gethostbyname ();
3952: ;
3953: return 0;
3954: }
3955: _ACEOF
3956: rm -f conftest.$ac_objext conftest$ac_exeext
3957: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.32 noro 3958: (eval $ac_link) 2>conftest.er1
1.14 noro 3959: ac_status=$?
1.32 noro 3960: grep -v '^ *+' conftest.er1 >conftest.err
3961: rm -f conftest.er1
3962: cat conftest.err >&5
1.14 noro 3963: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964: (exit $ac_status); } &&
1.34 ohara 3965: { ac_try='test -z "$ac_c_werror_flag"
3966: || test ! -s conftest.err'
1.32 noro 3967: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968: (eval $ac_try) 2>&5
3969: ac_status=$?
3970: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971: (exit $ac_status); }; } &&
3972: { ac_try='test -s conftest$ac_exeext'
1.14 noro 3973: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974: (eval $ac_try) 2>&5
3975: ac_status=$?
3976: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977: (exit $ac_status); }; }; then
3978: ac_cv_lib_nsl_gethostbyname=yes
3979: else
3980: echo "$as_me: failed program was:" >&5
1.32 noro 3981: sed 's/^/| /' conftest.$ac_ext >&5
3982:
1.14 noro 3983: ac_cv_lib_nsl_gethostbyname=no
3984: fi
1.32 noro 3985: rm -f conftest.err conftest.$ac_objext \
3986: conftest$ac_exeext conftest.$ac_ext
1.14 noro 3987: LIBS=$ac_check_lib_save_LIBS
3988: fi
3989: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3990: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3991: if test $ac_cv_lib_nsl_gethostbyname = yes; then
3992: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3993: fi
3994:
3995: if test $ac_cv_lib_nsl_gethostbyname = no; then
1.32 noro 3996: echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
1.14 noro 3997: echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3998: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3999: echo $ECHO_N "(cached) $ECHO_C" >&6
4000: else
4001: ac_check_lib_save_LIBS=$LIBS
4002: LIBS="-lbsd $LIBS"
4003: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4004: /* confdefs.h. */
4005: _ACEOF
4006: cat confdefs.h >>conftest.$ac_ext
4007: cat >>conftest.$ac_ext <<_ACEOF
4008: /* end confdefs.h. */
1.14 noro 4009:
4010: /* Override any gcc2 internal prototype to avoid an error. */
4011: #ifdef __cplusplus
4012: extern "C"
4013: #endif
4014: /* We use char because int might match the return type of a gcc2
4015: builtin and then its argument prototype would still apply. */
4016: char gethostbyname ();
4017: int
4018: main ()
4019: {
4020: gethostbyname ();
4021: ;
4022: return 0;
4023: }
4024: _ACEOF
4025: rm -f conftest.$ac_objext conftest$ac_exeext
4026: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.32 noro 4027: (eval $ac_link) 2>conftest.er1
1.14 noro 4028: ac_status=$?
1.32 noro 4029: grep -v '^ *+' conftest.er1 >conftest.err
4030: rm -f conftest.er1
4031: cat conftest.err >&5
1.14 noro 4032: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033: (exit $ac_status); } &&
1.34 ohara 4034: { ac_try='test -z "$ac_c_werror_flag"
4035: || test ! -s conftest.err'
1.32 noro 4036: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037: (eval $ac_try) 2>&5
4038: ac_status=$?
4039: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040: (exit $ac_status); }; } &&
4041: { ac_try='test -s conftest$ac_exeext'
1.14 noro 4042: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043: (eval $ac_try) 2>&5
4044: ac_status=$?
4045: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046: (exit $ac_status); }; }; then
4047: ac_cv_lib_bsd_gethostbyname=yes
4048: else
4049: echo "$as_me: failed program was:" >&5
1.32 noro 4050: sed 's/^/| /' conftest.$ac_ext >&5
4051:
1.14 noro 4052: ac_cv_lib_bsd_gethostbyname=no
4053: fi
1.32 noro 4054: rm -f conftest.err conftest.$ac_objext \
4055: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4056: LIBS=$ac_check_lib_save_LIBS
4057: fi
4058: echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4059: echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4060: if test $ac_cv_lib_bsd_gethostbyname = yes; then
4061: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4062: fi
4063:
4064: fi
4065: fi
4066:
4067: # lieder@skyler.mavd.honeywell.com says without -lsocket,
4068: # socket/setsockopt and other routines are undefined under SCO ODT
4069: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4070: # on later versions), says Simon Leinen: it contains gethostby*
1.32 noro 4071: # variants that don't use the name server (or something). -lsocket
1.14 noro 4072: # must be given before -lnsl if both are needed. We assume that
4073: # if connect needs -lnsl, so does gethostbyname.
4074: echo "$as_me:$LINENO: checking for connect" >&5
4075: echo $ECHO_N "checking for connect... $ECHO_C" >&6
4076: if test "${ac_cv_func_connect+set}" = set; then
4077: echo $ECHO_N "(cached) $ECHO_C" >&6
4078: else
4079: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4080: /* confdefs.h. */
4081: _ACEOF
4082: cat confdefs.h >>conftest.$ac_ext
4083: cat >>conftest.$ac_ext <<_ACEOF
4084: /* end confdefs.h. */
4085: /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4086: For example, HP-UX 11i <limits.h> declares gettimeofday. */
4087: #define connect innocuous_connect
4088:
1.14 noro 4089: /* System header to define __stub macros and hopefully few prototypes,
1.32 noro 4090: which can conflict with char connect (); below.
4091: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4092: <limits.h> exists even on freestanding compilers. */
4093:
4094: #ifdef __STDC__
4095: # include <limits.h>
4096: #else
4097: # include <assert.h>
4098: #endif
4099:
4100: #undef connect
4101:
1.14 noro 4102: /* Override any gcc2 internal prototype to avoid an error. */
4103: #ifdef __cplusplus
4104: extern "C"
1.32 noro 4105: {
1.14 noro 4106: #endif
4107: /* We use char because int might match the return type of a gcc2
4108: builtin and then its argument prototype would still apply. */
4109: char connect ();
4110: /* The GNU C library defines this for functions which it implements
4111: to always fail with ENOSYS. Some functions are actually named
4112: something starting with __ and the normal name is an alias. */
4113: #if defined (__stub_connect) || defined (__stub___connect)
4114: choke me
4115: #else
1.32 noro 4116: char (*f) () = connect;
4117: #endif
4118: #ifdef __cplusplus
4119: }
1.14 noro 4120: #endif
4121:
1.32 noro 4122: int
4123: main ()
4124: {
4125: return f != connect;
1.14 noro 4126: ;
4127: return 0;
4128: }
4129: _ACEOF
4130: rm -f conftest.$ac_objext conftest$ac_exeext
4131: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.32 noro 4132: (eval $ac_link) 2>conftest.er1
1.14 noro 4133: ac_status=$?
1.32 noro 4134: grep -v '^ *+' conftest.er1 >conftest.err
4135: rm -f conftest.er1
4136: cat conftest.err >&5
1.14 noro 4137: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138: (exit $ac_status); } &&
1.34 ohara 4139: { ac_try='test -z "$ac_c_werror_flag"
4140: || test ! -s conftest.err'
1.32 noro 4141: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142: (eval $ac_try) 2>&5
4143: ac_status=$?
4144: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145: (exit $ac_status); }; } &&
4146: { ac_try='test -s conftest$ac_exeext'
1.14 noro 4147: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148: (eval $ac_try) 2>&5
4149: ac_status=$?
4150: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151: (exit $ac_status); }; }; then
4152: ac_cv_func_connect=yes
4153: else
4154: echo "$as_me: failed program was:" >&5
1.32 noro 4155: sed 's/^/| /' conftest.$ac_ext >&5
4156:
1.14 noro 4157: ac_cv_func_connect=no
4158: fi
1.32 noro 4159: rm -f conftest.err conftest.$ac_objext \
4160: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4161: fi
4162: echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4163: echo "${ECHO_T}$ac_cv_func_connect" >&6
4164:
4165: if test $ac_cv_func_connect = no; then
4166: echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4167: echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4168: if test "${ac_cv_lib_socket_connect+set}" = set; then
4169: echo $ECHO_N "(cached) $ECHO_C" >&6
4170: else
4171: ac_check_lib_save_LIBS=$LIBS
4172: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4173: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4174: /* confdefs.h. */
4175: _ACEOF
4176: cat confdefs.h >>conftest.$ac_ext
4177: cat >>conftest.$ac_ext <<_ACEOF
4178: /* end confdefs.h. */
1.14 noro 4179:
4180: /* Override any gcc2 internal prototype to avoid an error. */
4181: #ifdef __cplusplus
4182: extern "C"
4183: #endif
4184: /* We use char because int might match the return type of a gcc2
4185: builtin and then its argument prototype would still apply. */
4186: char connect ();
4187: int
4188: main ()
4189: {
4190: connect ();
4191: ;
4192: return 0;
4193: }
4194: _ACEOF
4195: rm -f conftest.$ac_objext conftest$ac_exeext
4196: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.32 noro 4197: (eval $ac_link) 2>conftest.er1
1.14 noro 4198: ac_status=$?
1.32 noro 4199: grep -v '^ *+' conftest.er1 >conftest.err
4200: rm -f conftest.er1
4201: cat conftest.err >&5
1.14 noro 4202: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203: (exit $ac_status); } &&
1.34 ohara 4204: { ac_try='test -z "$ac_c_werror_flag"
4205: || test ! -s conftest.err'
1.32 noro 4206: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207: (eval $ac_try) 2>&5
4208: ac_status=$?
4209: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210: (exit $ac_status); }; } &&
4211: { ac_try='test -s conftest$ac_exeext'
1.14 noro 4212: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213: (eval $ac_try) 2>&5
4214: ac_status=$?
4215: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216: (exit $ac_status); }; }; then
4217: ac_cv_lib_socket_connect=yes
4218: else
4219: echo "$as_me: failed program was:" >&5
1.32 noro 4220: sed 's/^/| /' conftest.$ac_ext >&5
4221:
1.14 noro 4222: ac_cv_lib_socket_connect=no
4223: fi
1.32 noro 4224: rm -f conftest.err conftest.$ac_objext \
4225: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4226: LIBS=$ac_check_lib_save_LIBS
4227: fi
4228: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4229: echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4230: if test $ac_cv_lib_socket_connect = yes; then
4231: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4232: fi
4233:
4234: fi
4235:
4236: # Guillermo Gomez says -lposix is necessary on A/UX.
4237: echo "$as_me:$LINENO: checking for remove" >&5
4238: echo $ECHO_N "checking for remove... $ECHO_C" >&6
4239: if test "${ac_cv_func_remove+set}" = set; then
4240: echo $ECHO_N "(cached) $ECHO_C" >&6
4241: else
4242: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4243: /* confdefs.h. */
4244: _ACEOF
4245: cat confdefs.h >>conftest.$ac_ext
4246: cat >>conftest.$ac_ext <<_ACEOF
4247: /* end confdefs.h. */
4248: /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4249: For example, HP-UX 11i <limits.h> declares gettimeofday. */
4250: #define remove innocuous_remove
4251:
1.14 noro 4252: /* System header to define __stub macros and hopefully few prototypes,
1.32 noro 4253: which can conflict with char remove (); below.
4254: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4255: <limits.h> exists even on freestanding compilers. */
4256:
4257: #ifdef __STDC__
4258: # include <limits.h>
4259: #else
4260: # include <assert.h>
4261: #endif
4262:
4263: #undef remove
4264:
1.14 noro 4265: /* Override any gcc2 internal prototype to avoid an error. */
4266: #ifdef __cplusplus
4267: extern "C"
1.32 noro 4268: {
1.14 noro 4269: #endif
4270: /* We use char because int might match the return type of a gcc2
4271: builtin and then its argument prototype would still apply. */
4272: char remove ();
4273: /* The GNU C library defines this for functions which it implements
4274: to always fail with ENOSYS. Some functions are actually named
4275: something starting with __ and the normal name is an alias. */
4276: #if defined (__stub_remove) || defined (__stub___remove)
4277: choke me
4278: #else
1.32 noro 4279: char (*f) () = remove;
4280: #endif
4281: #ifdef __cplusplus
4282: }
1.14 noro 4283: #endif
4284:
1.32 noro 4285: int
4286: main ()
4287: {
4288: return f != remove;
1.14 noro 4289: ;
4290: return 0;
4291: }
4292: _ACEOF
4293: rm -f conftest.$ac_objext conftest$ac_exeext
4294: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.32 noro 4295: (eval $ac_link) 2>conftest.er1
1.14 noro 4296: ac_status=$?
1.32 noro 4297: grep -v '^ *+' conftest.er1 >conftest.err
4298: rm -f conftest.er1
4299: cat conftest.err >&5
1.14 noro 4300: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301: (exit $ac_status); } &&
1.34 ohara 4302: { ac_try='test -z "$ac_c_werror_flag"
4303: || test ! -s conftest.err'
1.32 noro 4304: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305: (eval $ac_try) 2>&5
4306: ac_status=$?
4307: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308: (exit $ac_status); }; } &&
4309: { ac_try='test -s conftest$ac_exeext'
1.14 noro 4310: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4311: (eval $ac_try) 2>&5
4312: ac_status=$?
4313: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314: (exit $ac_status); }; }; then
4315: ac_cv_func_remove=yes
4316: else
4317: echo "$as_me: failed program was:" >&5
1.32 noro 4318: sed 's/^/| /' conftest.$ac_ext >&5
4319:
1.14 noro 4320: ac_cv_func_remove=no
4321: fi
1.32 noro 4322: rm -f conftest.err conftest.$ac_objext \
4323: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4324: fi
4325: echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4326: echo "${ECHO_T}$ac_cv_func_remove" >&6
4327:
4328: if test $ac_cv_func_remove = no; then
4329: echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4330: echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4331: if test "${ac_cv_lib_posix_remove+set}" = set; then
4332: echo $ECHO_N "(cached) $ECHO_C" >&6
4333: else
4334: ac_check_lib_save_LIBS=$LIBS
4335: LIBS="-lposix $LIBS"
4336: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4337: /* confdefs.h. */
4338: _ACEOF
4339: cat confdefs.h >>conftest.$ac_ext
4340: cat >>conftest.$ac_ext <<_ACEOF
4341: /* end confdefs.h. */
1.14 noro 4342:
4343: /* Override any gcc2 internal prototype to avoid an error. */
4344: #ifdef __cplusplus
4345: extern "C"
4346: #endif
4347: /* We use char because int might match the return type of a gcc2
4348: builtin and then its argument prototype would still apply. */
4349: char remove ();
4350: int
4351: main ()
4352: {
4353: remove ();
4354: ;
4355: return 0;
4356: }
4357: _ACEOF
4358: rm -f conftest.$ac_objext conftest$ac_exeext
4359: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.32 noro 4360: (eval $ac_link) 2>conftest.er1
1.14 noro 4361: ac_status=$?
1.32 noro 4362: grep -v '^ *+' conftest.er1 >conftest.err
4363: rm -f conftest.er1
4364: cat conftest.err >&5
1.14 noro 4365: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366: (exit $ac_status); } &&
1.34 ohara 4367: { ac_try='test -z "$ac_c_werror_flag"
4368: || test ! -s conftest.err'
1.32 noro 4369: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370: (eval $ac_try) 2>&5
4371: ac_status=$?
4372: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373: (exit $ac_status); }; } &&
4374: { ac_try='test -s conftest$ac_exeext'
1.14 noro 4375: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376: (eval $ac_try) 2>&5
4377: ac_status=$?
4378: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379: (exit $ac_status); }; }; then
4380: ac_cv_lib_posix_remove=yes
4381: else
4382: echo "$as_me: failed program was:" >&5
1.32 noro 4383: sed 's/^/| /' conftest.$ac_ext >&5
4384:
1.14 noro 4385: ac_cv_lib_posix_remove=no
4386: fi
1.32 noro 4387: rm -f conftest.err conftest.$ac_objext \
4388: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4389: LIBS=$ac_check_lib_save_LIBS
4390: fi
4391: echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4392: echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4393: if test $ac_cv_lib_posix_remove = yes; then
4394: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4395: fi
4396:
4397: fi
4398:
4399: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4400: echo "$as_me:$LINENO: checking for shmat" >&5
4401: echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4402: if test "${ac_cv_func_shmat+set}" = set; then
4403: echo $ECHO_N "(cached) $ECHO_C" >&6
4404: else
4405: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4406: /* confdefs.h. */
4407: _ACEOF
4408: cat confdefs.h >>conftest.$ac_ext
4409: cat >>conftest.$ac_ext <<_ACEOF
4410: /* end confdefs.h. */
4411: /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4412: For example, HP-UX 11i <limits.h> declares gettimeofday. */
4413: #define shmat innocuous_shmat
4414:
1.14 noro 4415: /* System header to define __stub macros and hopefully few prototypes,
1.32 noro 4416: which can conflict with char shmat (); below.
4417: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4418: <limits.h> exists even on freestanding compilers. */
4419:
4420: #ifdef __STDC__
4421: # include <limits.h>
4422: #else
4423: # include <assert.h>
4424: #endif
4425:
4426: #undef shmat
4427:
1.14 noro 4428: /* Override any gcc2 internal prototype to avoid an error. */
4429: #ifdef __cplusplus
4430: extern "C"
1.32 noro 4431: {
1.14 noro 4432: #endif
4433: /* We use char because int might match the return type of a gcc2
4434: builtin and then its argument prototype would still apply. */
4435: char shmat ();
4436: /* The GNU C library defines this for functions which it implements
4437: to always fail with ENOSYS. Some functions are actually named
4438: something starting with __ and the normal name is an alias. */
4439: #if defined (__stub_shmat) || defined (__stub___shmat)
4440: choke me
4441: #else
1.32 noro 4442: char (*f) () = shmat;
4443: #endif
4444: #ifdef __cplusplus
4445: }
1.14 noro 4446: #endif
4447:
1.32 noro 4448: int
4449: main ()
4450: {
4451: return f != shmat;
1.14 noro 4452: ;
4453: return 0;
4454: }
4455: _ACEOF
4456: rm -f conftest.$ac_objext conftest$ac_exeext
4457: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.32 noro 4458: (eval $ac_link) 2>conftest.er1
1.14 noro 4459: ac_status=$?
1.32 noro 4460: grep -v '^ *+' conftest.er1 >conftest.err
4461: rm -f conftest.er1
4462: cat conftest.err >&5
1.14 noro 4463: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464: (exit $ac_status); } &&
1.34 ohara 4465: { ac_try='test -z "$ac_c_werror_flag"
4466: || test ! -s conftest.err'
1.32 noro 4467: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468: (eval $ac_try) 2>&5
4469: ac_status=$?
4470: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471: (exit $ac_status); }; } &&
4472: { ac_try='test -s conftest$ac_exeext'
1.14 noro 4473: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474: (eval $ac_try) 2>&5
4475: ac_status=$?
4476: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477: (exit $ac_status); }; }; then
4478: ac_cv_func_shmat=yes
4479: else
4480: echo "$as_me: failed program was:" >&5
1.32 noro 4481: sed 's/^/| /' conftest.$ac_ext >&5
4482:
1.14 noro 4483: ac_cv_func_shmat=no
4484: fi
1.32 noro 4485: rm -f conftest.err conftest.$ac_objext \
4486: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4487: fi
4488: echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4489: echo "${ECHO_T}$ac_cv_func_shmat" >&6
4490:
4491: if test $ac_cv_func_shmat = no; then
4492: echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4493: echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4494: if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4495: echo $ECHO_N "(cached) $ECHO_C" >&6
4496: else
4497: ac_check_lib_save_LIBS=$LIBS
4498: LIBS="-lipc $LIBS"
4499: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4500: /* confdefs.h. */
4501: _ACEOF
4502: cat confdefs.h >>conftest.$ac_ext
4503: cat >>conftest.$ac_ext <<_ACEOF
4504: /* end confdefs.h. */
1.14 noro 4505:
4506: /* Override any gcc2 internal prototype to avoid an error. */
4507: #ifdef __cplusplus
4508: extern "C"
4509: #endif
4510: /* We use char because int might match the return type of a gcc2
4511: builtin and then its argument prototype would still apply. */
4512: char shmat ();
4513: int
4514: main ()
4515: {
4516: shmat ();
4517: ;
4518: return 0;
4519: }
4520: _ACEOF
4521: rm -f conftest.$ac_objext conftest$ac_exeext
4522: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.32 noro 4523: (eval $ac_link) 2>conftest.er1
1.14 noro 4524: ac_status=$?
1.32 noro 4525: grep -v '^ *+' conftest.er1 >conftest.err
4526: rm -f conftest.er1
4527: cat conftest.err >&5
1.14 noro 4528: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529: (exit $ac_status); } &&
1.34 ohara 4530: { ac_try='test -z "$ac_c_werror_flag"
4531: || test ! -s conftest.err'
1.32 noro 4532: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533: (eval $ac_try) 2>&5
4534: ac_status=$?
4535: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536: (exit $ac_status); }; } &&
4537: { ac_try='test -s conftest$ac_exeext'
1.14 noro 4538: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539: (eval $ac_try) 2>&5
4540: ac_status=$?
4541: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542: (exit $ac_status); }; }; then
4543: ac_cv_lib_ipc_shmat=yes
4544: else
4545: echo "$as_me: failed program was:" >&5
1.32 noro 4546: sed 's/^/| /' conftest.$ac_ext >&5
4547:
1.14 noro 4548: ac_cv_lib_ipc_shmat=no
4549: fi
1.32 noro 4550: rm -f conftest.err conftest.$ac_objext \
4551: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4552: LIBS=$ac_check_lib_save_LIBS
4553: fi
4554: echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4555: echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4556: if test $ac_cv_lib_ipc_shmat = yes; then
4557: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4558: fi
4559:
4560: fi
4561: fi
4562:
4563: # Check for libraries that X11R6 Xt/Xaw programs need.
4564: ac_save_LDFLAGS=$LDFLAGS
4565: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4566: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4567: # check for ICE first), but we must link in the order -lSM -lICE or
4568: # we get undefined symbols. So assume we have SM if we have ICE.
4569: # These have to be linked with before -lX11, unlike the other
4570: # libraries we check for below, so use a different variable.
4571: # John Interrante, Karl Berry
4572: echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4573: echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4574: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4575: echo $ECHO_N "(cached) $ECHO_C" >&6
4576: else
4577: ac_check_lib_save_LIBS=$LIBS
4578: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4579: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4580: /* confdefs.h. */
4581: _ACEOF
4582: cat confdefs.h >>conftest.$ac_ext
4583: cat >>conftest.$ac_ext <<_ACEOF
4584: /* end confdefs.h. */
1.14 noro 4585:
4586: /* Override any gcc2 internal prototype to avoid an error. */
4587: #ifdef __cplusplus
4588: extern "C"
4589: #endif
4590: /* We use char because int might match the return type of a gcc2
4591: builtin and then its argument prototype would still apply. */
4592: char IceConnectionNumber ();
4593: int
4594: main ()
4595: {
4596: IceConnectionNumber ();
4597: ;
4598: return 0;
4599: }
4600: _ACEOF
4601: rm -f conftest.$ac_objext conftest$ac_exeext
4602: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.32 noro 4603: (eval $ac_link) 2>conftest.er1
1.14 noro 4604: ac_status=$?
1.32 noro 4605: grep -v '^ *+' conftest.er1 >conftest.err
4606: rm -f conftest.er1
4607: cat conftest.err >&5
1.14 noro 4608: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609: (exit $ac_status); } &&
1.34 ohara 4610: { ac_try='test -z "$ac_c_werror_flag"
4611: || test ! -s conftest.err'
1.32 noro 4612: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613: (eval $ac_try) 2>&5
4614: ac_status=$?
4615: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616: (exit $ac_status); }; } &&
4617: { ac_try='test -s conftest$ac_exeext'
1.14 noro 4618: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619: (eval $ac_try) 2>&5
4620: ac_status=$?
4621: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622: (exit $ac_status); }; }; then
4623: ac_cv_lib_ICE_IceConnectionNumber=yes
4624: else
4625: echo "$as_me: failed program was:" >&5
1.32 noro 4626: sed 's/^/| /' conftest.$ac_ext >&5
4627:
1.14 noro 4628: ac_cv_lib_ICE_IceConnectionNumber=no
4629: fi
1.32 noro 4630: rm -f conftest.err conftest.$ac_objext \
4631: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4632: LIBS=$ac_check_lib_save_LIBS
4633: fi
4634: echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4635: echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4636: if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4637: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4638: fi
4639:
4640: LDFLAGS=$ac_save_LDFLAGS
4641:
4642: fi
4643:
4644:
4645: cat >>confdefs.h <<\_ACEOF
4646: #define HMEXT 1
4647: _ACEOF
4648:
4649:
4650: # Check whether --enable-shared or --disable-shared was given.
4651: if test "${enable_shared+set}" = set; then
4652: enableval="$enable_shared"
4653: enable_shared=yes
4654: else
4655: enable_shared=no
4656: fi;
4657:
4658: if test "${enable_shared:=no}" != no ; then
4659: true
4660: fi
4661:
1.17 ohara 4662: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
4663: if test "${ac_cv_prog_cc_g}" = yes; then
4664: CFLAGS="-g -O"
4665: else
4666: CFLAGS="-O"
4667: fi
1.29 ohara 4668: elif test `basename ./"${CC}"` = "icc" ; then
4669: CFLAGS="-g -O"
1.17 ohara 4670: fi
1.15 noro 4671:
1.35 ohara 4672:
4673: # Check whether --with-distdir or --without-distdir was given.
4674: if test "${with_distdir+set}" = set; then
4675: withval="$with_distdir"
4676: with_distdir=${withval}
4677: else
4678: with_distdir=no
4679: fi;
4680: GC_DISTDIR='${prefix}/../OpenXM_dist'
4681: if test ${with_distdir:=no} != no -a ${with_distdir} != yes ; then
4682: GC_DISTDIR=${with_distdir}
4683: fi
4684:
4685:
1.23 ohara 4686: # Check whether --enable-gc-zeropage or --disable-gc-zeropage was given.
4687: if test "${enable_gc_zeropage+set}" = set; then
4688: enableval="$enable_gc_zeropage"
4689: enable_gc_zeropage=yes
4690: else
4691: enable_gc_zeropage=no
4692: fi;
4693:
4694: if test "${enable_gc_zeropage:=no}" != no ; then
4695: USE_GC_ZEROPAGE="yes"
4696: fi
4697:
4698:
1.14 noro 4699: libasir_postfix=""
4700:
4701: # Check whether --with-pari or --without-pari was given.
4702: if test "${with_pari+set}" = set; then
4703: withval="$with_pari"
4704: with_pari=${withval}
4705: else
4706: with_pari=no
4707: fi;
4708:
4709: if test ${with_pari:=no} != no ; then
4710: libasir_postfix=${libasir_postfix}_pari
1.16 noro 4711: if test ${with_pari} = new ; then
4712: libpari=pari-2.2
4713: else
1.14 noro 4714: libpari=pari
4715: fi
4716: PARIINC='-I${prefix}/include/pari'
4717: if test "${enable_shared}" != yes ; then
4718: PARILIB='${prefix}'"/lib/lib${libpari}.a"
4719: else
4720: PARILIB='-L${prefix}/lib'" -l${libpari}"
4721: fi
4722: cat >>confdefs.h <<\_ACEOF
4723: #define PARI 1
4724: _ACEOF
4725:
1.16 noro 4726: fi
4727:
4728:
4729:
1.32 noro 4730: echo "$as_me:$LINENO: checking for egrep" >&5
4731: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4732: if test "${ac_cv_prog_egrep+set}" = set; then
4733: echo $ECHO_N "(cached) $ECHO_C" >&6
4734: else
4735: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4736: then ac_cv_prog_egrep='grep -E'
4737: else ac_cv_prog_egrep='egrep'
4738: fi
4739: fi
4740: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4741: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4742: EGREP=$ac_cv_prog_egrep
4743:
4744:
1.14 noro 4745: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4746: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4747: if test "${ac_cv_header_stdc+set}" = set; then
4748: echo $ECHO_N "(cached) $ECHO_C" >&6
4749: else
4750: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4751: /* confdefs.h. */
4752: _ACEOF
4753: cat confdefs.h >>conftest.$ac_ext
4754: cat >>conftest.$ac_ext <<_ACEOF
4755: /* end confdefs.h. */
1.14 noro 4756: #include <stdlib.h>
4757: #include <stdarg.h>
4758: #include <string.h>
4759: #include <float.h>
4760:
1.32 noro 4761: int
4762: main ()
4763: {
4764:
4765: ;
4766: return 0;
4767: }
1.14 noro 4768: _ACEOF
1.32 noro 4769: rm -f conftest.$ac_objext
4770: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771: (eval $ac_compile) 2>conftest.er1
1.14 noro 4772: ac_status=$?
1.32 noro 4773: grep -v '^ *+' conftest.er1 >conftest.err
1.17 ohara 4774: rm -f conftest.er1
4775: cat conftest.err >&5
1.14 noro 4776: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.32 noro 4777: (exit $ac_status); } &&
1.34 ohara 4778: { ac_try='test -z "$ac_c_werror_flag"
4779: || test ! -s conftest.err'
1.32 noro 4780: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781: (eval $ac_try) 2>&5
4782: ac_status=$?
4783: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784: (exit $ac_status); }; } &&
4785: { ac_try='test -s conftest.$ac_objext'
4786: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787: (eval $ac_try) 2>&5
4788: ac_status=$?
4789: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790: (exit $ac_status); }; }; then
1.14 noro 4791: ac_cv_header_stdc=yes
4792: else
4793: echo "$as_me: failed program was:" >&5
1.32 noro 4794: sed 's/^/| /' conftest.$ac_ext >&5
4795:
4796: ac_cv_header_stdc=no
1.14 noro 4797: fi
1.32 noro 4798: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 4799:
4800: if test $ac_cv_header_stdc = yes; then
4801: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4802: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4803: /* confdefs.h. */
4804: _ACEOF
4805: cat confdefs.h >>conftest.$ac_ext
4806: cat >>conftest.$ac_ext <<_ACEOF
4807: /* end confdefs.h. */
1.14 noro 4808: #include <string.h>
4809:
4810: _ACEOF
4811: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.32 noro 4812: $EGREP "memchr" >/dev/null 2>&1; then
1.14 noro 4813: :
4814: else
4815: ac_cv_header_stdc=no
4816: fi
4817: rm -f conftest*
4818:
4819: fi
4820:
4821: if test $ac_cv_header_stdc = yes; then
4822: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4823: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4824: /* confdefs.h. */
4825: _ACEOF
4826: cat confdefs.h >>conftest.$ac_ext
4827: cat >>conftest.$ac_ext <<_ACEOF
4828: /* end confdefs.h. */
1.14 noro 4829: #include <stdlib.h>
4830:
4831: _ACEOF
4832: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.32 noro 4833: $EGREP "free" >/dev/null 2>&1; then
1.14 noro 4834: :
4835: else
4836: ac_cv_header_stdc=no
4837: fi
4838: rm -f conftest*
4839:
4840: fi
4841:
4842: if test $ac_cv_header_stdc = yes; then
4843: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4844: if test "$cross_compiling" = yes; then
4845: :
4846: else
4847: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4848: /* confdefs.h. */
4849: _ACEOF
4850: cat confdefs.h >>conftest.$ac_ext
4851: cat >>conftest.$ac_ext <<_ACEOF
4852: /* end confdefs.h. */
1.14 noro 4853: #include <ctype.h>
4854: #if ((' ' & 0x0FF) == 0x020)
4855: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4856: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4857: #else
1.32 noro 4858: # define ISLOWER(c) \
4859: (('a' <= (c) && (c) <= 'i') \
4860: || ('j' <= (c) && (c) <= 'r') \
4861: || ('s' <= (c) && (c) <= 'z'))
1.14 noro 4862: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4863: #endif
4864:
4865: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4866: int
4867: main ()
4868: {
4869: int i;
4870: for (i = 0; i < 256; i++)
4871: if (XOR (islower (i), ISLOWER (i))
1.32 noro 4872: || toupper (i) != TOUPPER (i))
1.14 noro 4873: exit(2);
4874: exit (0);
4875: }
4876: _ACEOF
4877: rm -f conftest$ac_exeext
4878: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4879: (eval $ac_link) 2>&5
4880: ac_status=$?
4881: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4883: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884: (eval $ac_try) 2>&5
4885: ac_status=$?
4886: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887: (exit $ac_status); }; }; then
4888: :
4889: else
4890: echo "$as_me: program exited with status $ac_status" >&5
4891: echo "$as_me: failed program was:" >&5
1.32 noro 4892: sed 's/^/| /' conftest.$ac_ext >&5
4893:
1.14 noro 4894: ( exit $ac_status )
4895: ac_cv_header_stdc=no
4896: fi
1.32 noro 4897: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.14 noro 4898: fi
4899: fi
4900: fi
4901: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4902: echo "${ECHO_T}$ac_cv_header_stdc" >&6
4903: if test $ac_cv_header_stdc = yes; then
4904:
4905: cat >>confdefs.h <<\_ACEOF
4906: #define STDC_HEADERS 1
4907: _ACEOF
4908:
4909: fi
4910:
4911: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4912:
1.2 noro 4913:
1.3 noro 4914:
1.14 noro 4915:
4916:
4917:
4918:
4919:
4920:
4921: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
1.32 noro 4922: inttypes.h stdint.h unistd.h
1.14 noro 4923: do
4924: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4925: echo "$as_me:$LINENO: checking for $ac_header" >&5
4926: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4927: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4928: echo $ECHO_N "(cached) $ECHO_C" >&6
4929: else
4930: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4931: /* confdefs.h. */
4932: _ACEOF
4933: cat confdefs.h >>conftest.$ac_ext
4934: cat >>conftest.$ac_ext <<_ACEOF
4935: /* end confdefs.h. */
1.14 noro 4936: $ac_includes_default
4937:
4938: #include <$ac_header>
4939: _ACEOF
4940: rm -f conftest.$ac_objext
4941: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.32 noro 4942: (eval $ac_compile) 2>conftest.er1
1.14 noro 4943: ac_status=$?
1.32 noro 4944: grep -v '^ *+' conftest.er1 >conftest.err
4945: rm -f conftest.er1
4946: cat conftest.err >&5
1.14 noro 4947: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948: (exit $ac_status); } &&
1.34 ohara 4949: { ac_try='test -z "$ac_c_werror_flag"
4950: || test ! -s conftest.err'
1.32 noro 4951: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952: (eval $ac_try) 2>&5
4953: ac_status=$?
4954: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955: (exit $ac_status); }; } &&
4956: { ac_try='test -s conftest.$ac_objext'
1.14 noro 4957: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958: (eval $ac_try) 2>&5
4959: ac_status=$?
4960: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961: (exit $ac_status); }; }; then
4962: eval "$as_ac_Header=yes"
4963: else
4964: echo "$as_me: failed program was:" >&5
1.32 noro 4965: sed 's/^/| /' conftest.$ac_ext >&5
4966:
1.14 noro 4967: eval "$as_ac_Header=no"
4968: fi
1.32 noro 4969: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 4970: fi
4971: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4972: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4973: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4974: cat >>confdefs.h <<_ACEOF
4975: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4976: _ACEOF
4977:
4978: fi
4979:
4980: done
4981:
4982:
1.18 ohara 4983: echo "$as_me:$LINENO: checking for unsigned long long" >&5
4984: echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
4985: if test "${ac_cv_type_unsigned_long_long+set}" = set; then
4986: echo $ECHO_N "(cached) $ECHO_C" >&6
4987: else
4988: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4989: /* confdefs.h. */
4990: _ACEOF
4991: cat confdefs.h >>conftest.$ac_ext
4992: cat >>conftest.$ac_ext <<_ACEOF
4993: /* end confdefs.h. */
1.18 ohara 4994: $ac_includes_default
4995: int
4996: main ()
4997: {
4998: if ((unsigned long long *) 0)
4999: return 0;
5000: if (sizeof (unsigned long long))
5001: return 0;
5002: ;
5003: return 0;
5004: }
5005: _ACEOF
5006: rm -f conftest.$ac_objext
5007: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.32 noro 5008: (eval $ac_compile) 2>conftest.er1
1.18 ohara 5009: ac_status=$?
1.32 noro 5010: grep -v '^ *+' conftest.er1 >conftest.err
5011: rm -f conftest.er1
5012: cat conftest.err >&5
1.18 ohara 5013: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014: (exit $ac_status); } &&
1.34 ohara 5015: { ac_try='test -z "$ac_c_werror_flag"
5016: || test ! -s conftest.err'
1.32 noro 5017: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018: (eval $ac_try) 2>&5
5019: ac_status=$?
5020: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021: (exit $ac_status); }; } &&
5022: { ac_try='test -s conftest.$ac_objext'
1.18 ohara 5023: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024: (eval $ac_try) 2>&5
5025: ac_status=$?
5026: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027: (exit $ac_status); }; }; then
5028: ac_cv_type_unsigned_long_long=yes
5029: else
5030: echo "$as_me: failed program was:" >&5
1.32 noro 5031: sed 's/^/| /' conftest.$ac_ext >&5
5032:
1.18 ohara 5033: ac_cv_type_unsigned_long_long=no
5034: fi
1.32 noro 5035: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.18 ohara 5036: fi
5037: echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5038: echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5039: if test $ac_cv_type_unsigned_long_long = yes; then
5040:
5041: cat >>confdefs.h <<_ACEOF
5042: #define HAVE_UNSIGNED_LONG_LONG 1
5043: _ACEOF
5044:
5045:
5046: fi
5047:
1.14 noro 5048: echo "$as_me:$LINENO: checking for long" >&5
5049: echo $ECHO_N "checking for long... $ECHO_C" >&6
5050: if test "${ac_cv_type_long+set}" = set; then
5051: echo $ECHO_N "(cached) $ECHO_C" >&6
5052: else
5053: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 5054: /* confdefs.h. */
5055: _ACEOF
5056: cat confdefs.h >>conftest.$ac_ext
5057: cat >>conftest.$ac_ext <<_ACEOF
5058: /* end confdefs.h. */
1.14 noro 5059: $ac_includes_default
5060: int
5061: main ()
5062: {
5063: if ((long *) 0)
5064: return 0;
5065: if (sizeof (long))
5066: return 0;
5067: ;
5068: return 0;
5069: }
5070: _ACEOF
5071: rm -f conftest.$ac_objext
5072: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.32 noro 5073: (eval $ac_compile) 2>conftest.er1
1.14 noro 5074: ac_status=$?
1.32 noro 5075: grep -v '^ *+' conftest.er1 >conftest.err
5076: rm -f conftest.er1
5077: cat conftest.err >&5
1.14 noro 5078: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079: (exit $ac_status); } &&
1.34 ohara 5080: { ac_try='test -z "$ac_c_werror_flag"
5081: || test ! -s conftest.err'
1.32 noro 5082: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083: (eval $ac_try) 2>&5
5084: ac_status=$?
5085: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086: (exit $ac_status); }; } &&
5087: { ac_try='test -s conftest.$ac_objext'
1.14 noro 5088: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089: (eval $ac_try) 2>&5
5090: ac_status=$?
5091: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092: (exit $ac_status); }; }; then
5093: ac_cv_type_long=yes
5094: else
5095: echo "$as_me: failed program was:" >&5
1.32 noro 5096: sed 's/^/| /' conftest.$ac_ext >&5
5097:
1.14 noro 5098: ac_cv_type_long=no
5099: fi
1.32 noro 5100: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 5101: fi
5102: echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5103: echo "${ECHO_T}$ac_cv_type_long" >&6
5104:
5105: echo "$as_me:$LINENO: checking size of long" >&5
5106: echo $ECHO_N "checking size of long... $ECHO_C" >&6
5107: if test "${ac_cv_sizeof_long+set}" = set; then
5108: echo $ECHO_N "(cached) $ECHO_C" >&6
5109: else
5110: if test "$ac_cv_type_long" = yes; then
5111: # The cast to unsigned long works around a bug in the HP C Compiler
5112: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5113: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5114: # This bug is HP SR number 8606223364.
5115: if test "$cross_compiling" = yes; then
5116: # Depending upon the size, compute the lo and hi bounds.
5117: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 5118: /* confdefs.h. */
5119: _ACEOF
5120: cat confdefs.h >>conftest.$ac_ext
5121: cat >>conftest.$ac_ext <<_ACEOF
5122: /* end confdefs.h. */
1.14 noro 5123: $ac_includes_default
5124: int
5125: main ()
5126: {
5127: static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5128: test_array [0] = 0
5129:
5130: ;
5131: return 0;
5132: }
5133: _ACEOF
5134: rm -f conftest.$ac_objext
5135: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.32 noro 5136: (eval $ac_compile) 2>conftest.er1
1.14 noro 5137: ac_status=$?
1.32 noro 5138: grep -v '^ *+' conftest.er1 >conftest.err
5139: rm -f conftest.er1
5140: cat conftest.err >&5
1.14 noro 5141: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142: (exit $ac_status); } &&
1.34 ohara 5143: { ac_try='test -z "$ac_c_werror_flag"
5144: || test ! -s conftest.err'
1.32 noro 5145: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146: (eval $ac_try) 2>&5
5147: ac_status=$?
5148: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149: (exit $ac_status); }; } &&
5150: { ac_try='test -s conftest.$ac_objext'
1.14 noro 5151: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5152: (eval $ac_try) 2>&5
5153: ac_status=$?
5154: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155: (exit $ac_status); }; }; then
5156: ac_lo=0 ac_mid=0
5157: while :; do
5158: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 5159: /* confdefs.h. */
5160: _ACEOF
5161: cat confdefs.h >>conftest.$ac_ext
5162: cat >>conftest.$ac_ext <<_ACEOF
5163: /* end confdefs.h. */
1.14 noro 5164: $ac_includes_default
5165: int
5166: main ()
5167: {
5168: static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5169: test_array [0] = 0
5170:
5171: ;
5172: return 0;
5173: }
5174: _ACEOF
5175: rm -f conftest.$ac_objext
5176: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.32 noro 5177: (eval $ac_compile) 2>conftest.er1
1.14 noro 5178: ac_status=$?
1.32 noro 5179: grep -v '^ *+' conftest.er1 >conftest.err
5180: rm -f conftest.er1
5181: cat conftest.err >&5
1.14 noro 5182: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183: (exit $ac_status); } &&
1.34 ohara 5184: { ac_try='test -z "$ac_c_werror_flag"
5185: || test ! -s conftest.err'
1.32 noro 5186: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187: (eval $ac_try) 2>&5
5188: ac_status=$?
5189: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190: (exit $ac_status); }; } &&
5191: { ac_try='test -s conftest.$ac_objext'
1.14 noro 5192: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193: (eval $ac_try) 2>&5
5194: ac_status=$?
5195: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196: (exit $ac_status); }; }; then
5197: ac_hi=$ac_mid; break
5198: else
5199: echo "$as_me: failed program was:" >&5
1.32 noro 5200: sed 's/^/| /' conftest.$ac_ext >&5
5201:
1.14 noro 5202: ac_lo=`expr $ac_mid + 1`
1.32 noro 5203: if test $ac_lo -le $ac_mid; then
5204: ac_lo= ac_hi=
5205: break
5206: fi
5207: ac_mid=`expr 2 '*' $ac_mid + 1`
1.14 noro 5208: fi
1.32 noro 5209: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 5210: done
5211: else
5212: echo "$as_me: failed program was:" >&5
1.32 noro 5213: sed 's/^/| /' conftest.$ac_ext >&5
5214:
1.14 noro 5215: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 5216: /* confdefs.h. */
5217: _ACEOF
5218: cat confdefs.h >>conftest.$ac_ext
5219: cat >>conftest.$ac_ext <<_ACEOF
5220: /* end confdefs.h. */
1.14 noro 5221: $ac_includes_default
5222: int
5223: main ()
5224: {
5225: static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5226: test_array [0] = 0
5227:
5228: ;
5229: return 0;
5230: }
5231: _ACEOF
5232: rm -f conftest.$ac_objext
5233: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.32 noro 5234: (eval $ac_compile) 2>conftest.er1
1.14 noro 5235: ac_status=$?
1.32 noro 5236: grep -v '^ *+' conftest.er1 >conftest.err
5237: rm -f conftest.er1
5238: cat conftest.err >&5
1.14 noro 5239: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240: (exit $ac_status); } &&
1.34 ohara 5241: { ac_try='test -z "$ac_c_werror_flag"
5242: || test ! -s conftest.err'
1.32 noro 5243: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244: (eval $ac_try) 2>&5
5245: ac_status=$?
5246: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247: (exit $ac_status); }; } &&
5248: { ac_try='test -s conftest.$ac_objext'
1.14 noro 5249: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250: (eval $ac_try) 2>&5
5251: ac_status=$?
5252: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253: (exit $ac_status); }; }; then
5254: ac_hi=-1 ac_mid=-1
5255: while :; do
5256: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 5257: /* confdefs.h. */
5258: _ACEOF
5259: cat confdefs.h >>conftest.$ac_ext
5260: cat >>conftest.$ac_ext <<_ACEOF
5261: /* end confdefs.h. */
1.14 noro 5262: $ac_includes_default
5263: int
5264: main ()
5265: {
5266: static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5267: test_array [0] = 0
5268:
5269: ;
5270: return 0;
5271: }
5272: _ACEOF
5273: rm -f conftest.$ac_objext
5274: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.32 noro 5275: (eval $ac_compile) 2>conftest.er1
1.14 noro 5276: ac_status=$?
1.32 noro 5277: grep -v '^ *+' conftest.er1 >conftest.err
5278: rm -f conftest.er1
5279: cat conftest.err >&5
1.14 noro 5280: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281: (exit $ac_status); } &&
1.34 ohara 5282: { ac_try='test -z "$ac_c_werror_flag"
5283: || test ! -s conftest.err'
1.32 noro 5284: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285: (eval $ac_try) 2>&5
5286: ac_status=$?
5287: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288: (exit $ac_status); }; } &&
5289: { ac_try='test -s conftest.$ac_objext'
1.14 noro 5290: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291: (eval $ac_try) 2>&5
5292: ac_status=$?
5293: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294: (exit $ac_status); }; }; then
5295: ac_lo=$ac_mid; break
5296: else
5297: echo "$as_me: failed program was:" >&5
1.32 noro 5298: sed 's/^/| /' conftest.$ac_ext >&5
5299:
1.14 noro 5300: ac_hi=`expr '(' $ac_mid ')' - 1`
1.32 noro 5301: if test $ac_mid -le $ac_hi; then
5302: ac_lo= ac_hi=
5303: break
5304: fi
5305: ac_mid=`expr 2 '*' $ac_mid`
1.14 noro 5306: fi
1.32 noro 5307: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 5308: done
5309: else
5310: echo "$as_me: failed program was:" >&5
1.32 noro 5311: sed 's/^/| /' conftest.$ac_ext >&5
5312:
1.14 noro 5313: ac_lo= ac_hi=
5314: fi
1.32 noro 5315: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 5316: fi
1.32 noro 5317: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 5318: # Binary search between lo and hi bounds.
5319: while test "x$ac_lo" != "x$ac_hi"; do
5320: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5321: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 5322: /* confdefs.h. */
5323: _ACEOF
5324: cat confdefs.h >>conftest.$ac_ext
5325: cat >>conftest.$ac_ext <<_ACEOF
5326: /* end confdefs.h. */
1.14 noro 5327: $ac_includes_default
5328: int
5329: main ()
5330: {
5331: static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5332: test_array [0] = 0
5333:
5334: ;
5335: return 0;
5336: }
5337: _ACEOF
5338: rm -f conftest.$ac_objext
5339: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.32 noro 5340: (eval $ac_compile) 2>conftest.er1
1.14 noro 5341: ac_status=$?
1.32 noro 5342: grep -v '^ *+' conftest.er1 >conftest.err
5343: rm -f conftest.er1
5344: cat conftest.err >&5
1.14 noro 5345: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346: (exit $ac_status); } &&
1.34 ohara 5347: { ac_try='test -z "$ac_c_werror_flag"
5348: || test ! -s conftest.err'
1.32 noro 5349: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350: (eval $ac_try) 2>&5
5351: ac_status=$?
5352: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353: (exit $ac_status); }; } &&
5354: { ac_try='test -s conftest.$ac_objext'
1.14 noro 5355: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356: (eval $ac_try) 2>&5
5357: ac_status=$?
5358: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359: (exit $ac_status); }; }; then
5360: ac_hi=$ac_mid
5361: else
5362: echo "$as_me: failed program was:" >&5
1.32 noro 5363: sed 's/^/| /' conftest.$ac_ext >&5
5364:
1.14 noro 5365: ac_lo=`expr '(' $ac_mid ')' + 1`
5366: fi
1.32 noro 5367: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 5368: done
5369: case $ac_lo in
5370: ?*) ac_cv_sizeof_long=$ac_lo;;
1.32 noro 5371: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5372: See \`config.log' for more details." >&5
5373: echo "$as_me: error: cannot compute sizeof (long), 77
5374: See \`config.log' for more details." >&2;}
1.14 noro 5375: { (exit 1); exit 1; }; } ;;
5376: esac
5377: else
5378: if test "$cross_compiling" = yes; then
1.34 ohara 5379: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5380: See \`config.log' for more details." >&5
5381: echo "$as_me: error: cannot run test program while cross compiling
5382: See \`config.log' for more details." >&2;}
1.14 noro 5383: { (exit 1); exit 1; }; }
5384: else
5385: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 5386: /* confdefs.h. */
5387: _ACEOF
5388: cat confdefs.h >>conftest.$ac_ext
5389: cat >>conftest.$ac_ext <<_ACEOF
5390: /* end confdefs.h. */
1.14 noro 5391: $ac_includes_default
5392: long longval () { return (long) (sizeof (long)); }
5393: unsigned long ulongval () { return (long) (sizeof (long)); }
5394: #include <stdio.h>
5395: #include <stdlib.h>
5396: int
5397: main ()
5398: {
5399:
5400: FILE *f = fopen ("conftest.val", "w");
5401: if (! f)
5402: exit (1);
5403: if (((long) (sizeof (long))) < 0)
5404: {
5405: long i = longval ();
5406: if (i != ((long) (sizeof (long))))
5407: exit (1);
5408: fprintf (f, "%ld\n", i);
5409: }
5410: else
5411: {
5412: unsigned long i = ulongval ();
5413: if (i != ((long) (sizeof (long))))
5414: exit (1);
5415: fprintf (f, "%lu\n", i);
5416: }
5417: exit (ferror (f) || fclose (f) != 0);
5418:
5419: ;
5420: return 0;
5421: }
5422: _ACEOF
5423: rm -f conftest$ac_exeext
5424: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5425: (eval $ac_link) 2>&5
5426: ac_status=$?
5427: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5429: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430: (eval $ac_try) 2>&5
5431: ac_status=$?
5432: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433: (exit $ac_status); }; }; then
5434: ac_cv_sizeof_long=`cat conftest.val`
5435: else
5436: echo "$as_me: program exited with status $ac_status" >&5
5437: echo "$as_me: failed program was:" >&5
1.32 noro 5438: sed 's/^/| /' conftest.$ac_ext >&5
5439:
1.14 noro 5440: ( exit $ac_status )
1.32 noro 5441: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5442: See \`config.log' for more details." >&5
5443: echo "$as_me: error: cannot compute sizeof (long), 77
5444: See \`config.log' for more details." >&2;}
1.14 noro 5445: { (exit 1); exit 1; }; }
5446: fi
1.32 noro 5447: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.14 noro 5448: fi
5449: fi
5450: rm -f conftest.val
5451: else
5452: ac_cv_sizeof_long=0
5453: fi
5454: fi
5455: echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5456: echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5457: cat >>confdefs.h <<_ACEOF
5458: #define SIZEOF_LONG $ac_cv_sizeof_long
5459: _ACEOF
5460:
5461:
1.26 noro 5462: if test "${ac_cv_sizeof_long}" = 8; then
1.16 noro 5463: cat >>confdefs.h <<\_ACEOF
1.14 noro 5464: #define LONG_IS_64BIT 1
5465: _ACEOF
5466:
1.16 noro 5467: else
5468: cat >>confdefs.h <<\_ACEOF
1.14 noro 5469: #define LONG_IS_32BIT 1
5470: _ACEOF
5471:
5472: fi
5473: if test "${no_x}" != yes ; then
1.25 ohara 5474: if test -f "${x_libraries}/libXpm.a" -o -f "${x_libraries}/libXpm.dll.a" ; then
1.21 ohara 5475: XPMLIB="-lXpm"
5476: fi
1.14 noro 5477: # Check whether --enable-plot or --disable-plot was given.
5478: if test "${enable_plot+set}" = set; then
5479: enableval="$enable_plot"
5480: enable_plot=yes
5481: else
5482: enable_plot=no
5483: fi;
5484: fi
5485:
1.21 ohara 5486:
1.14 noro 5487: if test ${enable_plot:=no} != no ; then
5488: libasir_postfix=${libasir_postfix}_X
5489: cat >>confdefs.h <<\_ACEOF
5490: #define DO_PLOT 1
5491: _ACEOF
5492:
5493: fi
5494:
5495:
5496: if test "$enable_plot" = yes; then
5497: USE_PLOT_TRUE=
5498: USE_PLOT_FALSE='#'
5499: else
5500: USE_PLOT_TRUE='#'
5501: USE_PLOT_FALSE=
5502: fi
5503:
5504: # Check whether --enable-interval or --disable-interval was given.
5505: if test "${enable_interval+set}" = set; then
5506: enableval="$enable_interval"
5507: enable_interval=${enableval}
5508: else
5509: enable_interval=no
5510: fi;
5511:
5512: if test ${enable_interval:=no} != no ; then
5513: libasir_postfix=${libasir_postfix}_itv
5514: cat >>confdefs.h <<\_ACEOF
5515: #define INTERVAL 1
5516: _ACEOF
5517:
5518: if test "${enable_interval}" = debug ; then
5519: cat >>confdefs.h <<\_ACEOF
5520: #define ITVDEBUG 1
5521: _ACEOF
5522:
5523: fi
5524: fi
5525:
5526:
5527: if test "${enable_fep:=no}" != no ; then
5528: cat >>confdefs.h <<\_ACEOF
5529: #define FEP 1
5530: _ACEOF
5531:
5532: FEPLIB="-lreadline -ltermcap"
5533: fi
5534:
5535:
5536: # Check whether --enable-fft-float or --disable-fft-float was given.
5537: if test "${enable_fft_float+set}" = set; then
5538: enableval="$enable_fft_float"
5539: enable_fft_float=yes
5540: else
5541: enable_fft_float=no
5542: fi;
5543:
5544: if test "${enable_fft_float:=no}" != no ; then
5545: cat >>confdefs.h <<\_ACEOF
5546: #define USE_FLOAT 1
5547: _ACEOF
5548:
5549: fi
5550:
5551:
5552: if test "${with_mpi:=no}" != no ; then
5553: MPIINC="-I/opt/FJSVmpi2/include"
5554: MPILIB="-L/opt/FJSVmpi2/lib -lmpi -L/opt/FSUNaprun/lib -lmpl -lemi -lthread"
5555: cat >>confdefs.h <<\_ACEOF
5556: #define MPI 1
5557: _ACEOF
5558:
5559: fi
5560:
5561:
5562:
5563:
5564: if test "${with_lapack:=no}" != no ; then
1.33 noro 5565: LAPACKLIB="-llapack -lblas -lg2c"
1.14 noro 5566: cat >>confdefs.h <<\_ACEOF
5567: #define LAPACK 1
5568: _ACEOF
5569:
5570: fi
5571:
5572:
5573:
5574:
5575:
5576: i386_elf_obj=asmi_l.o
5577: i386_aout_obj=asmi.o
5578: sparc_v8_obj="sparc-2.o asm4-2.o edr-2.o"
1.30 noro 5579: sparc_v9_obj=asmalpha.o
1.14 noro 5580: generic_obj=asmalpha.o
5581:
5582: case "${host}" in
1.20 ohara 5583: i[3-6]86-*-freebsd[3-9].*)
1.14 noro 5584: asm_obj="${i386_elf_obj}"
1.20 ohara 5585: ;;
5586: i[3-6]86-*-linux*|x86-*-linux*)
5587: asm_obj="${i386_elf_obj}"
5588: cat >>confdefs.h <<\_ACEOF
1.24 ohara 5589: #define _BSD_SOURCE 1
1.20 ohara 5590: _ACEOF
5591:
1.14 noro 5592: ;;
5593: *-*-cygwin*)
5594: asm_obj="${i386_aout_obj}"
5595: ;;
1.27 ohara 5596: i[3-6]86-*-interix*)
1.28 ohara 5597: asm_obj="${i386_aout_obj}"
5598: USE_GC_INTERIX="yes"
5599:
1.27 ohara 5600: cat >>confdefs.h <<\_ACEOF
5601: #define _ALL_SOURCE 1
5602: _ACEOF
5603:
5604: ;;
1.14 noro 5605: sparc-sun-solaris2.*)
5606: case "`uname -m`" in
5607: sun4[dm]) asm_obj="${sparc_v8_obj}" ;;
1.31 ohara 5608: sun4u*) asm_obj="${sparc_v9_obj}"
5609: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
5610: CFLAGS="${CFLAGS} -m64"
5611: fi
5612:
5613: ;;
1.14 noro 5614: *) asm_obj="${generic_obj}" ;;
5615: esac
5616: cat >>confdefs.h <<\_ACEOF
5617: #define SYSV 1
5618: _ACEOF
5619:
5620: ;;
1.36 ! ohara 5621: *-apple-darwin*)
1.14 noro 5622: asm_obj="${generic_obj}"
5623: cat >>confdefs.h <<\_ACEOF
5624: #define __DARWIN__ 1
5625: _ACEOF
5626:
1.19 ohara 5627: ;;
5628: arm*-*-linux*)
5629: asm_obj="${generic_obj}"
5630: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
5631: CFLAGS="${CFLAGS} -fsigned-char"
5632: fi
1.14 noro 5633: ;;
5634: *)
5635: asm_obj="${generic_obj}"
5636: ;;
5637: esac
5638:
5639:
5640:
5641: echo "$as_me:$LINENO: checking for socket" >&5
5642: echo $ECHO_N "checking for socket... $ECHO_C" >&6
5643: if test "${ac_cv_func_socket+set}" = set; then
5644: echo $ECHO_N "(cached) $ECHO_C" >&6
5645: else
5646: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 5647: /* confdefs.h. */
5648: _ACEOF
5649: cat confdefs.h >>conftest.$ac_ext
5650: cat >>conftest.$ac_ext <<_ACEOF
5651: /* end confdefs.h. */
5652: /* Define socket to an innocuous variant, in case <limits.h> declares socket.
5653: For example, HP-UX 11i <limits.h> declares gettimeofday. */
5654: #define socket innocuous_socket
5655:
1.14 noro 5656: /* System header to define __stub macros and hopefully few prototypes,
1.32 noro 5657: which can conflict with char socket (); below.
5658: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5659: <limits.h> exists even on freestanding compilers. */
5660:
5661: #ifdef __STDC__
5662: # include <limits.h>
5663: #else
5664: # include <assert.h>
5665: #endif
5666:
5667: #undef socket
5668:
1.14 noro 5669: /* Override any gcc2 internal prototype to avoid an error. */
5670: #ifdef __cplusplus
5671: extern "C"
1.32 noro 5672: {
1.14 noro 5673: #endif
5674: /* We use char because int might match the return type of a gcc2
5675: builtin and then its argument prototype would still apply. */
5676: char socket ();
5677: /* The GNU C library defines this for functions which it implements
5678: to always fail with ENOSYS. Some functions are actually named
5679: something starting with __ and the normal name is an alias. */
5680: #if defined (__stub_socket) || defined (__stub___socket)
5681: choke me
5682: #else
1.32 noro 5683: char (*f) () = socket;
5684: #endif
5685: #ifdef __cplusplus
5686: }
1.14 noro 5687: #endif
5688:
1.32 noro 5689: int
5690: main ()
5691: {
5692: return f != socket;
1.14 noro 5693: ;
5694: return 0;
5695: }
5696: _ACEOF
5697: rm -f conftest.$ac_objext conftest$ac_exeext
5698: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.32 noro 5699: (eval $ac_link) 2>conftest.er1
1.14 noro 5700: ac_status=$?
1.32 noro 5701: grep -v '^ *+' conftest.er1 >conftest.err
5702: rm -f conftest.er1
5703: cat conftest.err >&5
1.14 noro 5704: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705: (exit $ac_status); } &&
1.34 ohara 5706: { ac_try='test -z "$ac_c_werror_flag"
5707: || test ! -s conftest.err'
1.32 noro 5708: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709: (eval $ac_try) 2>&5
5710: ac_status=$?
5711: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712: (exit $ac_status); }; } &&
5713: { ac_try='test -s conftest$ac_exeext'
1.14 noro 5714: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715: (eval $ac_try) 2>&5
5716: ac_status=$?
5717: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718: (exit $ac_status); }; }; then
5719: ac_cv_func_socket=yes
5720: else
5721: echo "$as_me: failed program was:" >&5
1.32 noro 5722: sed 's/^/| /' conftest.$ac_ext >&5
5723:
1.14 noro 5724: ac_cv_func_socket=no
5725: fi
1.32 noro 5726: rm -f conftest.err conftest.$ac_objext \
5727: conftest$ac_exeext conftest.$ac_ext
1.14 noro 5728: fi
5729: echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
5730: echo "${ECHO_T}$ac_cv_func_socket" >&6
5731: if test $ac_cv_func_socket = yes; then
5732: :
5733: else
5734:
5735: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5736: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
5737: if test "${ac_cv_lib_socket_socket+set}" = set; then
5738: echo $ECHO_N "(cached) $ECHO_C" >&6
5739: else
5740: ac_check_lib_save_LIBS=$LIBS
5741: LIBS="-lsocket $LIBS"
5742: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 5743: /* confdefs.h. */
5744: _ACEOF
5745: cat confdefs.h >>conftest.$ac_ext
5746: cat >>conftest.$ac_ext <<_ACEOF
5747: /* end confdefs.h. */
1.14 noro 5748:
5749: /* Override any gcc2 internal prototype to avoid an error. */
5750: #ifdef __cplusplus
5751: extern "C"
5752: #endif
5753: /* We use char because int might match the return type of a gcc2
5754: builtin and then its argument prototype would still apply. */
5755: char socket ();
5756: int
5757: main ()
5758: {
5759: socket ();
5760: ;
5761: return 0;
5762: }
5763: _ACEOF
5764: rm -f conftest.$ac_objext conftest$ac_exeext
5765: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.32 noro 5766: (eval $ac_link) 2>conftest.er1
1.14 noro 5767: ac_status=$?
1.32 noro 5768: grep -v '^ *+' conftest.er1 >conftest.err
5769: rm -f conftest.er1
5770: cat conftest.err >&5
1.14 noro 5771: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772: (exit $ac_status); } &&
1.34 ohara 5773: { ac_try='test -z "$ac_c_werror_flag"
5774: || test ! -s conftest.err'
1.32 noro 5775: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776: (eval $ac_try) 2>&5
5777: ac_status=$?
5778: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779: (exit $ac_status); }; } &&
5780: { ac_try='test -s conftest$ac_exeext'
1.14 noro 5781: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782: (eval $ac_try) 2>&5
5783: ac_status=$?
5784: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785: (exit $ac_status); }; }; then
5786: ac_cv_lib_socket_socket=yes
5787: else
5788: echo "$as_me: failed program was:" >&5
1.32 noro 5789: sed 's/^/| /' conftest.$ac_ext >&5
5790:
1.14 noro 5791: ac_cv_lib_socket_socket=no
5792: fi
1.32 noro 5793: rm -f conftest.err conftest.$ac_objext \
5794: conftest$ac_exeext conftest.$ac_ext
1.14 noro 5795: LIBS=$ac_check_lib_save_LIBS
5796: fi
5797: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5798: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
5799: if test $ac_cv_lib_socket_socket = yes; then
5800: cat >>confdefs.h <<_ACEOF
5801: #define HAVE_LIBSOCKET 1
5802: _ACEOF
5803:
5804: LIBS="-lsocket $LIBS"
5805:
5806: fi
5807:
5808: fi
5809:
5810: echo "$as_me:$LINENO: checking for gethostbyname" >&5
5811: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5812: if test "${ac_cv_func_gethostbyname+set}" = set; then
5813: echo $ECHO_N "(cached) $ECHO_C" >&6
5814: else
5815: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 5816: /* confdefs.h. */
5817: _ACEOF
5818: cat confdefs.h >>conftest.$ac_ext
5819: cat >>conftest.$ac_ext <<_ACEOF
5820: /* end confdefs.h. */
5821: /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5822: For example, HP-UX 11i <limits.h> declares gettimeofday. */
5823: #define gethostbyname innocuous_gethostbyname
5824:
1.14 noro 5825: /* System header to define __stub macros and hopefully few prototypes,
1.32 noro 5826: which can conflict with char gethostbyname (); below.
5827: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5828: <limits.h> exists even on freestanding compilers. */
5829:
5830: #ifdef __STDC__
5831: # include <limits.h>
5832: #else
5833: # include <assert.h>
5834: #endif
5835:
5836: #undef gethostbyname
5837:
1.14 noro 5838: /* Override any gcc2 internal prototype to avoid an error. */
5839: #ifdef __cplusplus
5840: extern "C"
1.32 noro 5841: {
1.14 noro 5842: #endif
5843: /* We use char because int might match the return type of a gcc2
5844: builtin and then its argument prototype would still apply. */
5845: char gethostbyname ();
5846: /* The GNU C library defines this for functions which it implements
5847: to always fail with ENOSYS. Some functions are actually named
5848: something starting with __ and the normal name is an alias. */
5849: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5850: choke me
5851: #else
1.32 noro 5852: char (*f) () = gethostbyname;
5853: #endif
5854: #ifdef __cplusplus
5855: }
1.14 noro 5856: #endif
5857:
1.32 noro 5858: int
5859: main ()
5860: {
5861: return f != gethostbyname;
1.14 noro 5862: ;
5863: return 0;
5864: }
5865: _ACEOF
5866: rm -f conftest.$ac_objext conftest$ac_exeext
5867: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.32 noro 5868: (eval $ac_link) 2>conftest.er1
1.14 noro 5869: ac_status=$?
1.32 noro 5870: grep -v '^ *+' conftest.er1 >conftest.err
5871: rm -f conftest.er1
5872: cat conftest.err >&5
1.14 noro 5873: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874: (exit $ac_status); } &&
1.34 ohara 5875: { ac_try='test -z "$ac_c_werror_flag"
5876: || test ! -s conftest.err'
1.32 noro 5877: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878: (eval $ac_try) 2>&5
5879: ac_status=$?
5880: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881: (exit $ac_status); }; } &&
5882: { ac_try='test -s conftest$ac_exeext'
1.14 noro 5883: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884: (eval $ac_try) 2>&5
5885: ac_status=$?
5886: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887: (exit $ac_status); }; }; then
5888: ac_cv_func_gethostbyname=yes
5889: else
5890: echo "$as_me: failed program was:" >&5
1.32 noro 5891: sed 's/^/| /' conftest.$ac_ext >&5
5892:
1.14 noro 5893: ac_cv_func_gethostbyname=no
5894: fi
1.32 noro 5895: rm -f conftest.err conftest.$ac_objext \
5896: conftest$ac_exeext conftest.$ac_ext
1.14 noro 5897: fi
5898: echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5899: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5900: if test $ac_cv_func_gethostbyname = yes; then
5901: :
5902: else
5903:
5904: echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5905: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5906: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5907: echo $ECHO_N "(cached) $ECHO_C" >&6
5908: else
5909: ac_check_lib_save_LIBS=$LIBS
5910: LIBS="-lnsl $LIBS"
5911: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 5912: /* confdefs.h. */
5913: _ACEOF
5914: cat confdefs.h >>conftest.$ac_ext
5915: cat >>conftest.$ac_ext <<_ACEOF
5916: /* end confdefs.h. */
1.14 noro 5917:
5918: /* Override any gcc2 internal prototype to avoid an error. */
5919: #ifdef __cplusplus
5920: extern "C"
5921: #endif
5922: /* We use char because int might match the return type of a gcc2
5923: builtin and then its argument prototype would still apply. */
5924: char gethostbyname ();
5925: int
5926: main ()
5927: {
5928: gethostbyname ();
5929: ;
5930: return 0;
5931: }
5932: _ACEOF
5933: rm -f conftest.$ac_objext conftest$ac_exeext
5934: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.32 noro 5935: (eval $ac_link) 2>conftest.er1
1.14 noro 5936: ac_status=$?
1.32 noro 5937: grep -v '^ *+' conftest.er1 >conftest.err
5938: rm -f conftest.er1
5939: cat conftest.err >&5
1.14 noro 5940: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941: (exit $ac_status); } &&
1.34 ohara 5942: { ac_try='test -z "$ac_c_werror_flag"
5943: || test ! -s conftest.err'
1.32 noro 5944: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945: (eval $ac_try) 2>&5
5946: ac_status=$?
5947: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948: (exit $ac_status); }; } &&
5949: { ac_try='test -s conftest$ac_exeext'
1.14 noro 5950: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951: (eval $ac_try) 2>&5
5952: ac_status=$?
5953: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954: (exit $ac_status); }; }; then
5955: ac_cv_lib_nsl_gethostbyname=yes
5956: else
5957: echo "$as_me: failed program was:" >&5
1.32 noro 5958: sed 's/^/| /' conftest.$ac_ext >&5
5959:
1.14 noro 5960: ac_cv_lib_nsl_gethostbyname=no
5961: fi
1.32 noro 5962: rm -f conftest.err conftest.$ac_objext \
5963: conftest$ac_exeext conftest.$ac_ext
1.14 noro 5964: LIBS=$ac_check_lib_save_LIBS
5965: fi
5966: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5967: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5968: if test $ac_cv_lib_nsl_gethostbyname = yes; then
5969: cat >>confdefs.h <<_ACEOF
5970: #define HAVE_LIBNSL 1
5971: _ACEOF
5972:
5973: LIBS="-lnsl $LIBS"
5974:
5975: fi
5976:
5977: fi
5978:
5979:
1.32 noro 5980: ac_config_files="$ac_config_files Makefile engine/Makefile asm/Makefile builtin/Makefile fft/Makefile include/Makefile io/Makefile lib/Makefile parse/Makefile plot/Makefile"
1.14 noro 5981: cat >confcache <<\_ACEOF
5982: # This file is a shell script that caches the results of configure
5983: # tests run on this system so they can be shared between configure
5984: # scripts and configure runs, see configure's option --config-cache.
5985: # It is not useful on other systems. If it contains results you don't
5986: # want to keep, you may remove or edit it.
5987: #
5988: # config.status only pays attention to the cache file if you give it
5989: # the --recheck option to rerun configure.
5990: #
1.32 noro 5991: # `ac_cv_env_foo' variables (set or unset) will be overridden when
1.14 noro 5992: # loading this file, other *unset* `ac_cv_foo' will be assigned the
5993: # following values.
5994:
5995: _ACEOF
5996:
5997: # The following way of writing the cache mishandles newlines in values,
5998: # but we know of no workaround that is simple, portable, and efficient.
5999: # So, don't put newlines in cache variables' values.
6000: # Ultrix sh set writes to stderr and can't be redirected directly,
6001: # and sets the high bit in the cache file unless we assign to the vars.
6002: {
6003: (set) 2>&1 |
6004: case `(ac_space=' '; set | grep ac_space) 2>&1` in
6005: *ac_space=\ *)
6006: # `set' does not quote correctly, so add quotes (double-quote
6007: # substitution turns \\\\ into \\, and sed turns \\ into \).
6008: sed -n \
1.32 noro 6009: "s/'/'\\\\''/g;
6010: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.14 noro 6011: ;;
6012: *)
6013: # `set' quotes correctly as required by POSIX, so do not add quotes.
6014: sed -n \
1.32 noro 6015: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.14 noro 6016: ;;
6017: esac;
6018: } |
6019: sed '
6020: t clear
6021: : clear
6022: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6023: t end
6024: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6025: : end' >>confcache
1.32 noro 6026: if diff $cache_file confcache >/dev/null 2>&1; then :; else
1.14 noro 6027: if test -w $cache_file; then
6028: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6029: cat confcache >$cache_file
6030: else
6031: echo "not updating unwritable cache $cache_file"
6032: fi
6033: fi
6034: rm -f confcache
6035:
6036: test "x$prefix" = xNONE && prefix=$ac_default_prefix
6037: # Let make expand exec_prefix.
6038: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6039:
6040: # VPATH may cause trouble with some makes, so we remove $(srcdir),
6041: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6042: # trailing colons and then remove the whole line if VPATH becomes empty
6043: # (actually we leave an empty line to preserve line numbers).
6044: if test "x$srcdir" = x.; then
1.32 noro 6045: ac_vpsub='/^[ ]*VPATH[ ]*=/{
1.14 noro 6046: s/:*\$(srcdir):*/:/;
6047: s/:*\${srcdir}:*/:/;
6048: s/:*@srcdir@:*/:/;
1.32 noro 6049: s/^\([^=]*=[ ]*\):*/\1/;
1.14 noro 6050: s/:*$//;
1.32 noro 6051: s/^[^=]*=[ ]*$//;
1.14 noro 6052: }'
6053: fi
6054:
6055: # Transform confdefs.h into DEFS.
6056: # Protect against shell expansion while executing Makefile rules.
6057: # Protect against Makefile macro expansion.
6058: #
6059: # If the first sed substitution is executed (which looks for macros that
6060: # take arguments), then we branch to the quote section. Otherwise,
6061: # look for a macro that doesn't take arguments.
6062: cat >confdef2opt.sed <<\_ACEOF
6063: t clear
6064: : clear
1.32 noro 6065: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
1.14 noro 6066: t quote
1.32 noro 6067: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
1.14 noro 6068: t quote
6069: d
6070: : quote
1.32 noro 6071: s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
1.14 noro 6072: s,\[,\\&,g
6073: s,\],\\&,g
6074: s,\$,$$,g
6075: p
6076: _ACEOF
6077: # We use echo to avoid assuming a particular line-breaking character.
6078: # The extra dot is to prevent the shell from consuming trailing
6079: # line-breaks from the sub-command output. A line-break within
6080: # single-quotes doesn't work because, if this script is created in a
6081: # platform that uses two characters for line-breaks (e.g., DOS), tr
6082: # would break.
6083: ac_LF_and_DOT=`echo; echo .`
6084: DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6085: rm -f confdef2opt.sed
6086:
6087:
1.32 noro 6088: ac_libobjs=
6089: ac_ltlibobjs=
6090: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6091: # 1. Remove the extension, and $U if already installed.
6092: ac_i=`echo "$ac_i" |
6093: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6094: # 2. Add them.
6095: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6096: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6097: done
6098: LIBOBJS=$ac_libobjs
6099:
6100: LTLIBOBJS=$ac_ltlibobjs
6101:
6102:
1.14 noro 6103:
6104: : ${CONFIG_STATUS=./config.status}
6105: ac_clean_files_save=$ac_clean_files
6106: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6107: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6108: echo "$as_me: creating $CONFIG_STATUS" >&6;}
6109: cat >$CONFIG_STATUS <<_ACEOF
6110: #! $SHELL
6111: # Generated by $as_me.
6112: # Run this file to recreate the current configuration.
6113: # Compiler output produced by configure, useful for debugging
6114: # configure, is in config.log if it exists.
6115:
6116: debug=false
1.32 noro 6117: ac_cs_recheck=false
6118: ac_cs_silent=false
1.14 noro 6119: SHELL=\${CONFIG_SHELL-$SHELL}
6120: _ACEOF
6121:
6122: cat >>$CONFIG_STATUS <<\_ACEOF
6123: ## --------------------- ##
6124: ## M4sh Initialization. ##
6125: ## --------------------- ##
6126:
6127: # Be Bourne compatible
6128: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6129: emulate sh
6130: NULLCMD=:
1.32 noro 6131: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6132: # is contrary to our usage. Disable this feature.
6133: alias -g '${1+"$@"}'='"$@"'
1.14 noro 6134: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6135: set -o posix
6136: fi
1.32 noro 6137: DUALCASE=1; export DUALCASE # for MKS sh
1.14 noro 6138:
6139: # Support unset when possible.
1.32 noro 6140: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.14 noro 6141: as_unset=unset
6142: else
6143: as_unset=false
6144: fi
6145:
1.32 noro 6146:
6147: # Work around bugs in pre-3.0 UWIN ksh.
6148: $as_unset ENV MAIL MAILPATH
6149: PS1='$ '
6150: PS2='> '
6151: PS4='+ '
6152:
6153: # NLS nuisances.
6154: for as_var in \
6155: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6156: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6157: LC_TELEPHONE LC_TIME
6158: do
6159: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6160: eval $as_var=C; export $as_var
6161: else
6162: $as_unset $as_var
6163: fi
6164: done
6165:
6166: # Required to use basename.
6167: if expr a : '\(a\)' >/dev/null 2>&1; then
6168: as_expr=expr
6169: else
6170: as_expr=false
6171: fi
6172:
6173: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6174: as_basename=basename
6175: else
6176: as_basename=false
6177: fi
1.14 noro 6178:
6179:
6180: # Name of the executable.
1.32 noro 6181: as_me=`$as_basename "$0" ||
1.14 noro 6182: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6183: X"$0" : 'X\(//\)$' \| \
6184: X"$0" : 'X\(/\)$' \| \
6185: . : '\(.\)' 2>/dev/null ||
6186: echo X/"$0" |
6187: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6188: /^X\/\(\/\/\)$/{ s//\1/; q; }
6189: /^X\/\(\/\).*/{ s//\1/; q; }
6190: s/.*/./; q'`
6191:
1.32 noro 6192:
1.14 noro 6193: # PATH needs CR, and LINENO needs CR and PATH.
6194: # Avoid depending upon Character Ranges.
6195: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6196: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6197: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6198: as_cr_digits='0123456789'
6199: as_cr_alnum=$as_cr_Letters$as_cr_digits
6200:
6201: # The user is always right.
6202: if test "${PATH_SEPARATOR+set}" != set; then
1.32 noro 6203: echo "#! /bin/sh" >conf$$.sh
6204: echo "exit 0" >>conf$$.sh
6205: chmod +x conf$$.sh
6206: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1.14 noro 6207: PATH_SEPARATOR=';'
6208: else
6209: PATH_SEPARATOR=:
6210: fi
1.32 noro 6211: rm -f conf$$.sh
1.14 noro 6212: fi
6213:
6214:
6215: as_lineno_1=$LINENO
6216: as_lineno_2=$LINENO
6217: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6218: test "x$as_lineno_1" != "x$as_lineno_2" &&
6219: test "x$as_lineno_3" = "x$as_lineno_2" || {
6220: # Find who we are. Look in the path if we contain no path at all
6221: # relative or not.
6222: case $0 in
6223: *[\\/]* ) as_myself=$0 ;;
6224: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225: for as_dir in $PATH
6226: do
6227: IFS=$as_save_IFS
6228: test -z "$as_dir" && as_dir=.
6229: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6230: done
6231:
6232: ;;
6233: esac
6234: # We did not find ourselves, most probably we were run as `sh COMMAND'
6235: # in which case we are not to be found in the path.
6236: if test "x$as_myself" = x; then
6237: as_myself=$0
6238: fi
6239: if test ! -f "$as_myself"; then
6240: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6241: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6242: { (exit 1); exit 1; }; }
6243: fi
6244: case $CONFIG_SHELL in
6245: '')
6246: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.2 noro 6248: do
1.14 noro 6249: IFS=$as_save_IFS
6250: test -z "$as_dir" && as_dir=.
6251: for as_base in sh bash ksh sh5; do
6252: case $as_dir in
6253: /*)
6254: if ("$as_dir/$as_base" -c '
6255: as_lineno_1=$LINENO
6256: as_lineno_2=$LINENO
6257: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6258: test "x$as_lineno_1" != "x$as_lineno_2" &&
6259: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
1.32 noro 6260: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6261: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
1.14 noro 6262: CONFIG_SHELL=$as_dir/$as_base
6263: export CONFIG_SHELL
6264: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6265: fi;;
6266: esac
6267: done
1.2 noro 6268: done
1.14 noro 6269: ;;
6270: esac
1.2 noro 6271:
1.14 noro 6272: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6273: # uniformly replaced by the line number. The first 'sed' inserts a
6274: # line-number line before each line; the second 'sed' does the real
6275: # work. The second script uses 'N' to pair each line-number line
6276: # with the numbered line, and appends trailing '-' during
6277: # substitution so that $LINENO is not a special case at line end.
6278: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6279: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6280: sed '=' <$as_myself |
6281: sed '
6282: N
6283: s,$,-,
6284: : loop
6285: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6286: t loop
6287: s,-$,,
6288: s,^['$as_cr_digits']*\n,,
6289: ' >$as_me.lineno &&
6290: chmod +x $as_me.lineno ||
6291: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6292: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6293: { (exit 1); exit 1; }; }
6294:
6295: # Don't try to exec as it changes $[0], causing all sort of problems
6296: # (the dirname of $[0] is not the place where we might find the
6297: # original and so on. Autoconf is especially sensible to this).
6298: . ./$as_me.lineno
6299: # Exit status is that of the last command.
6300: exit
6301: }
6302:
6303:
6304: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6305: *c*,-n*) ECHO_N= ECHO_C='
6306: ' ECHO_T=' ' ;;
6307: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6308: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6309: esac
1.2 noro 6310:
1.14 noro 6311: if expr a : '\(a\)' >/dev/null 2>&1; then
6312: as_expr=expr
6313: else
6314: as_expr=false
6315: fi
1.2 noro 6316:
1.14 noro 6317: rm -f conf$$ conf$$.exe conf$$.file
6318: echo >conf$$.file
6319: if ln -s conf$$.file conf$$ 2>/dev/null; then
6320: # We could just check for DJGPP; but this test a) works b) is more generic
6321: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6322: if test -f conf$$.exe; then
6323: # Don't use ln at all; we don't have any links
6324: as_ln_s='cp -p'
6325: else
6326: as_ln_s='ln -s'
6327: fi
6328: elif ln conf$$.file conf$$ 2>/dev/null; then
6329: as_ln_s=ln
6330: else
6331: as_ln_s='cp -p'
6332: fi
6333: rm -f conf$$ conf$$.exe conf$$.file
1.2 noro 6334:
1.32 noro 6335: if mkdir -p . 2>/dev/null; then
6336: as_mkdir_p=:
6337: else
6338: test -d ./-p && rmdir ./-p
6339: as_mkdir_p=false
6340: fi
6341:
1.14 noro 6342: as_executable_p="test -f"
6343:
6344: # Sed expression to map a string onto a valid CPP name.
1.32 noro 6345: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.14 noro 6346:
6347: # Sed expression to map a string onto a valid variable name.
1.32 noro 6348: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.14 noro 6349:
6350:
6351: # IFS
6352: # We need space, tab and new line, in precisely that order.
6353: as_nl='
6354: '
6355: IFS=" $as_nl"
6356:
6357: # CDPATH.
1.32 noro 6358: $as_unset CDPATH
1.14 noro 6359:
6360: exec 6>&1
6361:
6362: # Open the log real soon, to keep \$[0] and so on meaningful, and to
6363: # report actual input values of CONFIG_FILES etc. instead of their
6364: # values after options handling. Logging --version etc. is OK.
6365: exec 5>>config.log
6366: {
6367: echo
6368: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6369: ## Running $as_me. ##
6370: _ASBOX
6371: } >&5
6372: cat >&5 <<_CSEOF
6373:
6374: This file was extended by $as_me, which was
1.32 noro 6375: generated by GNU Autoconf 2.59. Invocation command line was
1.14 noro 6376:
6377: CONFIG_FILES = $CONFIG_FILES
6378: CONFIG_HEADERS = $CONFIG_HEADERS
6379: CONFIG_LINKS = $CONFIG_LINKS
6380: CONFIG_COMMANDS = $CONFIG_COMMANDS
6381: $ $0 $@
6382:
6383: _CSEOF
6384: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6385: echo >&5
6386: _ACEOF
6387:
6388: # Files that config.status was made for.
6389: if test -n "$ac_config_files"; then
6390: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
1.2 noro 6391: fi
6392:
1.14 noro 6393: if test -n "$ac_config_headers"; then
6394: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
1.1 noro 6395: fi
1.2 noro 6396:
1.14 noro 6397: if test -n "$ac_config_links"; then
6398: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
1.4 saito 6399: fi
6400:
1.14 noro 6401: if test -n "$ac_config_commands"; then
6402: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
1.4 saito 6403: fi
6404:
1.14 noro 6405: cat >>$CONFIG_STATUS <<\_ACEOF
6406:
6407: ac_cs_usage="\
6408: \`$as_me' instantiates files from templates according to the
6409: current configuration.
6410:
6411: Usage: $0 [OPTIONS] [FILE]...
6412:
6413: -h, --help print this help, then exit
6414: -V, --version print version number, then exit
1.32 noro 6415: -q, --quiet do not print progress messages
1.14 noro 6416: -d, --debug don't remove temporary files
6417: --recheck update $as_me by reconfiguring in the same conditions
6418: --file=FILE[:TEMPLATE]
1.32 noro 6419: instantiate the configuration file FILE
1.4 saito 6420:
1.14 noro 6421: Configuration files:
6422: $config_files
6423:
6424: Configuration commands:
6425: $config_commands
6426:
6427: Report bugs to <bug-autoconf@gnu.org>."
6428: _ACEOF
6429:
6430: cat >>$CONFIG_STATUS <<_ACEOF
6431: ac_cs_version="\\
6432: config.status
1.32 noro 6433: configured by $0, generated by GNU Autoconf 2.59,
1.14 noro 6434: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6435:
1.32 noro 6436: Copyright (C) 2003 Free Software Foundation, Inc.
1.14 noro 6437: This config.status script is free software; the Free Software Foundation
6438: gives unlimited permission to copy, distribute and modify it."
6439: srcdir=$srcdir
6440: INSTALL="$INSTALL"
6441: _ACEOF
6442:
6443: cat >>$CONFIG_STATUS <<\_ACEOF
6444: # If no file are specified by the user, then we need to provide default
6445: # value. By we need to know if files were specified by the user.
6446: ac_need_defaults=:
6447: while test $# != 0
6448: do
6449: case $1 in
6450: --*=*)
6451: ac_option=`expr "x$1" : 'x\([^=]*\)='`
6452: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1.32 noro 6453: ac_shift=:
6454: ;;
6455: -*)
6456: ac_option=$1
6457: ac_optarg=$2
6458: ac_shift=shift
1.12 ohara 6459: ;;
1.14 noro 6460: *) # This is not an option, so the user has probably given explicit
6461: # arguments.
1.32 noro 6462: ac_option=$1
1.14 noro 6463: ac_need_defaults=false;;
6464: esac
6465:
1.32 noro 6466: case $ac_option in
1.14 noro 6467: # Handling of the options.
6468: _ACEOF
1.32 noro 6469: cat >>$CONFIG_STATUS <<\_ACEOF
1.17 ohara 6470: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.32 noro 6471: ac_cs_recheck=: ;;
1.14 noro 6472: --version | --vers* | -V )
6473: echo "$ac_cs_version"; exit 0 ;;
6474: --he | --h)
6475: # Conflict between --help and --header
6476: { { echo "$as_me:$LINENO: error: ambiguous option: $1
6477: Try \`$0 --help' for more information." >&5
6478: echo "$as_me: error: ambiguous option: $1
6479: Try \`$0 --help' for more information." >&2;}
6480: { (exit 1); exit 1; }; };;
6481: --help | --hel | -h )
6482: echo "$ac_cs_usage"; exit 0 ;;
6483: --debug | --d* | -d )
6484: debug=: ;;
6485: --file | --fil | --fi | --f )
1.32 noro 6486: $ac_shift
6487: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
1.14 noro 6488: ac_need_defaults=false;;
6489: --header | --heade | --head | --hea )
1.32 noro 6490: $ac_shift
6491: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
1.14 noro 6492: ac_need_defaults=false;;
1.32 noro 6493: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6494: | -silent | --silent | --silen | --sile | --sil | --si | --s)
6495: ac_cs_silent=: ;;
1.14 noro 6496:
6497: # This is an error.
6498: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6499: Try \`$0 --help' for more information." >&5
6500: echo "$as_me: error: unrecognized option: $1
6501: Try \`$0 --help' for more information." >&2;}
6502: { (exit 1); exit 1; }; } ;;
6503:
6504: *) ac_config_targets="$ac_config_targets $1" ;;
6505:
6506: esac
6507: shift
6508: done
6509:
1.32 noro 6510: ac_configure_extra_args=
6511:
6512: if $ac_cs_silent; then
6513: exec 6>/dev/null
6514: ac_configure_extra_args="$ac_configure_extra_args --silent"
6515: fi
6516:
6517: _ACEOF
6518: cat >>$CONFIG_STATUS <<_ACEOF
6519: if \$ac_cs_recheck; then
6520: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6521: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6522: fi
6523:
1.14 noro 6524: _ACEOF
6525:
6526: cat >>$CONFIG_STATUS <<_ACEOF
6527: #
6528: # INIT-COMMANDS section.
6529: #
6530:
6531: AMDEP_TRUE="$AMDEP_TRUE"
6532: ac_aux_dir="$ac_aux_dir"
6533:
6534: _ACEOF
6535:
6536:
6537:
6538: cat >>$CONFIG_STATUS <<\_ACEOF
6539: for ac_config_target in $ac_config_targets
6540: do
6541: case "$ac_config_target" in
6542: # Handling of arguments.
6543: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6544: "engine/Makefile" ) CONFIG_FILES="$CONFIG_FILES engine/Makefile" ;;
6545: "asm/Makefile" ) CONFIG_FILES="$CONFIG_FILES asm/Makefile" ;;
6546: "builtin/Makefile" ) CONFIG_FILES="$CONFIG_FILES builtin/Makefile" ;;
6547: "fft/Makefile" ) CONFIG_FILES="$CONFIG_FILES fft/Makefile" ;;
6548: "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
6549: "io/Makefile" ) CONFIG_FILES="$CONFIG_FILES io/Makefile" ;;
6550: "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
6551: "parse/Makefile" ) CONFIG_FILES="$CONFIG_FILES parse/Makefile" ;;
6552: "plot/Makefile" ) CONFIG_FILES="$CONFIG_FILES plot/Makefile" ;;
6553: "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6554: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6555: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6556: { (exit 1); exit 1; }; };;
6557: esac
6558: done
6559:
6560: # If the user did not use the arguments to specify the items to instantiate,
6561: # then the envvar interface is used. Set only those that are not.
6562: # We use the long form for the default assignment because of an extremely
6563: # bizarre bug on SunOS 4.1.3.
6564: if $ac_need_defaults; then
6565: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6566: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6567: fi
6568:
1.32 noro 6569: # Have a temporary directory for convenience. Make it in the build tree
6570: # simply because there is no reason to put it here, and in addition,
6571: # creating and moving files from /tmp can sometimes cause problems.
1.14 noro 6572: # Create a temporary directory, and hook for its removal unless debugging.
6573: $debug ||
6574: {
6575: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6576: trap '{ (exit 1); exit 1; }' 1 2 13 15
6577: }
6578:
6579: # Create a (secure) tmp directory for tmp files.
1.32 noro 6580:
1.14 noro 6581: {
1.32 noro 6582: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1.14 noro 6583: test -n "$tmp" && test -d "$tmp"
6584: } ||
6585: {
1.32 noro 6586: tmp=./confstat$$-$RANDOM
1.14 noro 6587: (umask 077 && mkdir $tmp)
6588: } ||
6589: {
1.32 noro 6590: echo "$me: cannot create a temporary directory in ." >&2
1.14 noro 6591: { (exit 1); exit 1; }
6592: }
6593:
6594: _ACEOF
6595:
6596: cat >>$CONFIG_STATUS <<_ACEOF
6597:
6598: #
6599: # CONFIG_FILES section.
6600: #
6601:
6602: # No need to generate the scripts if there are no CONFIG_FILES.
6603: # This happens for instance when ./config.status config.h
6604: if test -n "\$CONFIG_FILES"; then
6605: # Protect against being on the right side of a sed subst in config.status.
6606: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6607: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6608: s,@SHELL@,$SHELL,;t t
6609: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6610: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6611: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6612: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6613: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6614: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6615: s,@exec_prefix@,$exec_prefix,;t t
6616: s,@prefix@,$prefix,;t t
6617: s,@program_transform_name@,$program_transform_name,;t t
6618: s,@bindir@,$bindir,;t t
6619: s,@sbindir@,$sbindir,;t t
6620: s,@libexecdir@,$libexecdir,;t t
6621: s,@datadir@,$datadir,;t t
6622: s,@sysconfdir@,$sysconfdir,;t t
6623: s,@sharedstatedir@,$sharedstatedir,;t t
6624: s,@localstatedir@,$localstatedir,;t t
6625: s,@libdir@,$libdir,;t t
6626: s,@includedir@,$includedir,;t t
6627: s,@oldincludedir@,$oldincludedir,;t t
6628: s,@infodir@,$infodir,;t t
6629: s,@mandir@,$mandir,;t t
6630: s,@build_alias@,$build_alias,;t t
6631: s,@host_alias@,$host_alias,;t t
6632: s,@target_alias@,$target_alias,;t t
6633: s,@DEFS@,$DEFS,;t t
6634: s,@ECHO_C@,$ECHO_C,;t t
6635: s,@ECHO_N@,$ECHO_N,;t t
6636: s,@ECHO_T@,$ECHO_T,;t t
6637: s,@LIBS@,$LIBS,;t t
6638: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6639: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6640: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6641: s,@PACKAGE@,$PACKAGE,;t t
6642: s,@VERSION@,$VERSION,;t t
6643: s,@EXEEXT@,$EXEEXT,;t t
6644: s,@OBJEXT@,$OBJEXT,;t t
6645: s,@ACLOCAL@,$ACLOCAL,;t t
6646: s,@AUTOCONF@,$AUTOCONF,;t t
6647: s,@AUTOMAKE@,$AUTOMAKE,;t t
6648: s,@AUTOHEADER@,$AUTOHEADER,;t t
6649: s,@MAKEINFO@,$MAKEINFO,;t t
6650: s,@AMTAR@,$AMTAR,;t t
6651: s,@install_sh@,$install_sh,;t t
6652: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6653: s,@AWK@,$AWK,;t t
6654: s,@SET_MAKE@,$SET_MAKE,;t t
6655: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6656: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6657: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6658: s,@DEPDIR@,$DEPDIR,;t t
1.22 ohara 6659: s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6660: s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6661: s,@MAINT@,$MAINT,;t t
1.14 noro 6662: s,@build@,$build,;t t
6663: s,@build_cpu@,$build_cpu,;t t
6664: s,@build_vendor@,$build_vendor,;t t
6665: s,@build_os@,$build_os,;t t
6666: s,@host@,$host,;t t
6667: s,@host_cpu@,$host_cpu,;t t
6668: s,@host_vendor@,$host_vendor,;t t
6669: s,@host_os@,$host_os,;t t
6670: s,@target@,$target,;t t
6671: s,@target_cpu@,$target_cpu,;t t
6672: s,@target_vendor@,$target_vendor,;t t
6673: s,@target_os@,$target_os,;t t
6674: s,@CC@,$CC,;t t
6675: s,@CFLAGS@,$CFLAGS,;t t
6676: s,@LDFLAGS@,$LDFLAGS,;t t
6677: s,@CPPFLAGS@,$CPPFLAGS,;t t
6678: s,@ac_ct_CC@,$ac_ct_CC,;t t
6679: s,@am__include@,$am__include,;t t
6680: s,@am__quote@,$am__quote,;t t
6681: s,@CCDEPMODE@,$CCDEPMODE,;t t
6682: s,@LN_S@,$LN_S,;t t
6683: s,@RANLIB@,$RANLIB,;t t
6684: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6685: s,@YACC@,$YACC,;t t
6686: s,@CPP@,$CPP,;t t
6687: s,@X_CFLAGS@,$X_CFLAGS,;t t
6688: s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
6689: s,@X_LIBS@,$X_LIBS,;t t
6690: s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
1.35 ohara 6691: s,@GC_DISTDIR@,$GC_DISTDIR,;t t
1.23 ohara 6692: s,@USE_GC_ZEROPAGE@,$USE_GC_ZEROPAGE,;t t
1.14 noro 6693: s,@PARIINC@,$PARIINC,;t t
6694: s,@PARILIB@,$PARILIB,;t t
1.32 noro 6695: s,@EGREP@,$EGREP,;t t
1.21 ohara 6696: s,@XPMLIB@,$XPMLIB,;t t
1.14 noro 6697: s,@USE_PLOT_TRUE@,$USE_PLOT_TRUE,;t t
6698: s,@USE_PLOT_FALSE@,$USE_PLOT_FALSE,;t t
6699: s,@FEPLIB@,$FEPLIB,;t t
6700: s,@MPIINC@,$MPIINC,;t t
6701: s,@MPILIB@,$MPILIB,;t t
6702: s,@LAPACKLIB@,$LAPACKLIB,;t t
6703: s,@libasir_postfix@,$libasir_postfix,;t t
1.28 ohara 6704: s,@USE_GC_INTERIX@,$USE_GC_INTERIX,;t t
1.31 ohara 6705: s,@USE_GC_SPARC64@,$USE_GC_SPARC64,;t t
1.14 noro 6706: s,@asm_obj@,$asm_obj,;t t
1.32 noro 6707: s,@LIBOBJS@,$LIBOBJS,;t t
6708: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1.14 noro 6709: CEOF
6710:
6711: _ACEOF
6712:
6713: cat >>$CONFIG_STATUS <<\_ACEOF
6714: # Split the substitutions into bite-sized pieces for seds with
6715: # small command number limits, like on Digital OSF/1 and HP-UX.
6716: ac_max_sed_lines=48
6717: ac_sed_frag=1 # Number of current file.
6718: ac_beg=1 # First line for current file.
6719: ac_end=$ac_max_sed_lines # Line after last line for current file.
6720: ac_more_lines=:
6721: ac_sed_cmds=
6722: while $ac_more_lines; do
6723: if test $ac_beg -gt 1; then
6724: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6725: else
6726: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6727: fi
6728: if test ! -s $tmp/subs.frag; then
6729: ac_more_lines=false
6730: else
6731: # The purpose of the label and of the branching condition is to
6732: # speed up the sed processing (if there are no `@' at all, there
6733: # is no need to browse any of the substitutions).
6734: # These are the two extra sed commands mentioned above.
6735: (echo ':t
6736: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6737: if test -z "$ac_sed_cmds"; then
1.32 noro 6738: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
1.14 noro 6739: else
1.32 noro 6740: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
1.14 noro 6741: fi
6742: ac_sed_frag=`expr $ac_sed_frag + 1`
6743: ac_beg=$ac_end
6744: ac_end=`expr $ac_end + $ac_max_sed_lines`
6745: fi
6746: done
6747: if test -z "$ac_sed_cmds"; then
6748: ac_sed_cmds=cat
6749: fi
6750: fi # test -n "$CONFIG_FILES"
6751:
6752: _ACEOF
6753: cat >>$CONFIG_STATUS <<\_ACEOF
6754: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6755: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6756: case $ac_file in
6757: - | *:- | *:-:* ) # input from stdin
1.32 noro 6758: cat >$tmp/stdin
6759: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6760: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.14 noro 6761: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.32 noro 6762: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.14 noro 6763: * ) ac_file_in=$ac_file.in ;;
6764: esac
6765:
6766: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6767: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6768: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.32 noro 6769: X"$ac_file" : 'X\(//\)[^/]' \| \
6770: X"$ac_file" : 'X\(//\)$' \| \
6771: X"$ac_file" : 'X\(/\)' \| \
6772: . : '\(.\)' 2>/dev/null ||
1.14 noro 6773: echo X"$ac_file" |
6774: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6775: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6776: /^X\(\/\/\)$/{ s//\1/; q; }
6777: /^X\(\/\).*/{ s//\1/; q; }
6778: s/.*/./; q'`
1.32 noro 6779: { if $as_mkdir_p; then
6780: mkdir -p "$ac_dir"
6781: else
6782: as_dir="$ac_dir"
6783: as_dirs=
6784: while test ! -d "$as_dir"; do
6785: as_dirs="$as_dir $as_dirs"
6786: as_dir=`(dirname "$as_dir") 2>/dev/null ||
6787: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6788: X"$as_dir" : 'X\(//\)[^/]' \| \
6789: X"$as_dir" : 'X\(//\)$' \| \
6790: X"$as_dir" : 'X\(/\)' \| \
6791: . : '\(.\)' 2>/dev/null ||
6792: echo X"$as_dir" |
6793: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6794: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6795: /^X\(\/\/\)$/{ s//\1/; q; }
6796: /^X\(\/\).*/{ s//\1/; q; }
6797: s/.*/./; q'`
6798: done
6799: test ! -n "$as_dirs" || mkdir $as_dirs
6800: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6801: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6802: { (exit 1); exit 1; }; }; }
1.14 noro 6803:
6804: ac_builddir=.
6805:
6806: if test "$ac_dir" != .; then
6807: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6808: # A "../" for each directory in $ac_dir_suffix.
6809: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6810: else
6811: ac_dir_suffix= ac_top_builddir=
6812: fi
6813:
6814: case $srcdir in
6815: .) # No --srcdir option. We are building in place.
6816: ac_srcdir=.
6817: if test -z "$ac_top_builddir"; then
6818: ac_top_srcdir=.
6819: else
6820: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6821: fi ;;
6822: [\\/]* | ?:[\\/]* ) # Absolute path.
6823: ac_srcdir=$srcdir$ac_dir_suffix;
6824: ac_top_srcdir=$srcdir ;;
6825: *) # Relative path.
6826: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6827: ac_top_srcdir=$ac_top_builddir$srcdir ;;
6828: esac
1.32 noro 6829:
6830: # Do not use `cd foo && pwd` to compute absolute paths, because
6831: # the directories may not exist.
6832: case `pwd` in
6833: .) ac_abs_builddir="$ac_dir";;
6834: *)
6835: case "$ac_dir" in
6836: .) ac_abs_builddir=`pwd`;;
6837: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6838: *) ac_abs_builddir=`pwd`/"$ac_dir";;
6839: esac;;
6840: esac
6841: case $ac_abs_builddir in
6842: .) ac_abs_top_builddir=${ac_top_builddir}.;;
6843: *)
6844: case ${ac_top_builddir}. in
6845: .) ac_abs_top_builddir=$ac_abs_builddir;;
6846: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6847: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6848: esac;;
6849: esac
6850: case $ac_abs_builddir in
6851: .) ac_abs_srcdir=$ac_srcdir;;
6852: *)
6853: case $ac_srcdir in
6854: .) ac_abs_srcdir=$ac_abs_builddir;;
6855: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6856: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6857: esac;;
6858: esac
6859: case $ac_abs_builddir in
6860: .) ac_abs_top_srcdir=$ac_top_srcdir;;
6861: *)
6862: case $ac_top_srcdir in
6863: .) ac_abs_top_srcdir=$ac_abs_builddir;;
6864: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6865: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6866: esac;;
6867: esac
1.14 noro 6868:
6869:
6870: case $INSTALL in
6871: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6872: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6873: esac
6874:
1.34 ohara 6875: if test x"$ac_file" != x-; then
6876: { echo "$as_me:$LINENO: creating $ac_file" >&5
6877: echo "$as_me: creating $ac_file" >&6;}
6878: rm -f "$ac_file"
6879: fi
1.14 noro 6880: # Let's still pretend it is `configure' which instantiates (i.e., don't
6881: # use $as_me), people would be surprised to read:
6882: # /* config.h. Generated by config.status. */
6883: if test x"$ac_file" = x-; then
6884: configure_input=
6885: else
6886: configure_input="$ac_file. "
6887: fi
6888: configure_input=$configure_input"Generated from `echo $ac_file_in |
1.32 noro 6889: sed 's,.*/,,'` by configure."
1.14 noro 6890:
6891: # First look for the input files in the build tree, otherwise in the
6892: # src tree.
6893: ac_file_inputs=`IFS=:
6894: for f in $ac_file_in; do
6895: case $f in
6896: -) echo $tmp/stdin ;;
6897: [\\/$]*)
1.32 noro 6898: # Absolute (can't be DOS-style, as IFS=:)
6899: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.14 noro 6900: echo "$as_me: error: cannot find input file: $f" >&2;}
6901: { (exit 1); exit 1; }; }
1.32 noro 6902: echo "$f";;
1.14 noro 6903: *) # Relative
1.32 noro 6904: if test -f "$f"; then
6905: # Build tree
6906: echo "$f"
6907: elif test -f "$srcdir/$f"; then
6908: # Source tree
6909: echo "$srcdir/$f"
6910: else
6911: # /dev/null tree
6912: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.14 noro 6913: echo "$as_me: error: cannot find input file: $f" >&2;}
6914: { (exit 1); exit 1; }; }
1.32 noro 6915: fi;;
1.14 noro 6916: esac
6917: done` || { (exit 1); exit 1; }
6918: _ACEOF
6919: cat >>$CONFIG_STATUS <<_ACEOF
6920: sed "$ac_vpsub
6921: $extrasub
6922: _ACEOF
6923: cat >>$CONFIG_STATUS <<\_ACEOF
6924: :t
6925: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6926: s,@configure_input@,$configure_input,;t t
6927: s,@srcdir@,$ac_srcdir,;t t
6928: s,@abs_srcdir@,$ac_abs_srcdir,;t t
6929: s,@top_srcdir@,$ac_top_srcdir,;t t
6930: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6931: s,@builddir@,$ac_builddir,;t t
6932: s,@abs_builddir@,$ac_abs_builddir,;t t
6933: s,@top_builddir@,$ac_top_builddir,;t t
6934: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6935: s,@INSTALL@,$ac_INSTALL,;t t
6936: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6937: rm -f $tmp/stdin
6938: if test x"$ac_file" != x-; then
6939: mv $tmp/out $ac_file
6940: else
6941: cat $tmp/out
6942: rm -f $tmp/out
6943: fi
6944:
6945: done
6946: _ACEOF
6947: cat >>$CONFIG_STATUS <<\_ACEOF
6948:
6949: #
6950: # CONFIG_COMMANDS section.
6951: #
6952: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6953: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6954: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6955: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6956: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.32 noro 6957: X"$ac_dest" : 'X\(//\)[^/]' \| \
6958: X"$ac_dest" : 'X\(//\)$' \| \
6959: X"$ac_dest" : 'X\(/\)' \| \
6960: . : '\(.\)' 2>/dev/null ||
1.14 noro 6961: echo X"$ac_dest" |
6962: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6963: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6964: /^X\(\/\/\)$/{ s//\1/; q; }
6965: /^X\(\/\).*/{ s//\1/; q; }
6966: s/.*/./; q'`
1.32 noro 6967: { if $as_mkdir_p; then
6968: mkdir -p "$ac_dir"
6969: else
6970: as_dir="$ac_dir"
6971: as_dirs=
6972: while test ! -d "$as_dir"; do
6973: as_dirs="$as_dir $as_dirs"
6974: as_dir=`(dirname "$as_dir") 2>/dev/null ||
6975: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6976: X"$as_dir" : 'X\(//\)[^/]' \| \
6977: X"$as_dir" : 'X\(//\)$' \| \
6978: X"$as_dir" : 'X\(/\)' \| \
6979: . : '\(.\)' 2>/dev/null ||
6980: echo X"$as_dir" |
6981: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6982: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6983: /^X\(\/\/\)$/{ s//\1/; q; }
6984: /^X\(\/\).*/{ s//\1/; q; }
6985: s/.*/./; q'`
6986: done
6987: test ! -n "$as_dirs" || mkdir $as_dirs
6988: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6989: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6990: { (exit 1); exit 1; }; }; }
6991:
1.14 noro 6992: ac_builddir=.
6993:
6994: if test "$ac_dir" != .; then
6995: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6996: # A "../" for each directory in $ac_dir_suffix.
6997: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6998: else
6999: ac_dir_suffix= ac_top_builddir=
7000: fi
7001:
7002: case $srcdir in
7003: .) # No --srcdir option. We are building in place.
7004: ac_srcdir=.
7005: if test -z "$ac_top_builddir"; then
7006: ac_top_srcdir=.
7007: else
7008: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7009: fi ;;
7010: [\\/]* | ?:[\\/]* ) # Absolute path.
7011: ac_srcdir=$srcdir$ac_dir_suffix;
7012: ac_top_srcdir=$srcdir ;;
7013: *) # Relative path.
7014: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7015: ac_top_srcdir=$ac_top_builddir$srcdir ;;
1.12 ohara 7016: esac
1.32 noro 7017:
7018: # Do not use `cd foo && pwd` to compute absolute paths, because
7019: # the directories may not exist.
7020: case `pwd` in
7021: .) ac_abs_builddir="$ac_dir";;
7022: *)
7023: case "$ac_dir" in
7024: .) ac_abs_builddir=`pwd`;;
7025: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7026: *) ac_abs_builddir=`pwd`/"$ac_dir";;
7027: esac;;
7028: esac
7029: case $ac_abs_builddir in
7030: .) ac_abs_top_builddir=${ac_top_builddir}.;;
7031: *)
7032: case ${ac_top_builddir}. in
7033: .) ac_abs_top_builddir=$ac_abs_builddir;;
7034: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7035: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7036: esac;;
7037: esac
7038: case $ac_abs_builddir in
7039: .) ac_abs_srcdir=$ac_srcdir;;
7040: *)
7041: case $ac_srcdir in
7042: .) ac_abs_srcdir=$ac_abs_builddir;;
7043: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7044: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7045: esac;;
7046: esac
7047: case $ac_abs_builddir in
7048: .) ac_abs_top_srcdir=$ac_top_srcdir;;
7049: *)
7050: case $ac_top_srcdir in
7051: .) ac_abs_top_srcdir=$ac_abs_builddir;;
7052: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7053: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7054: esac;;
7055: esac
1.14 noro 7056:
7057:
7058: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7059: echo "$as_me: executing $ac_dest commands" >&6;}
7060: case $ac_dest in
7061: default-1 )
7062: test x"$AMDEP_TRUE" != x"" ||
7063: for mf in $CONFIG_FILES; do
7064: case "$mf" in
7065: Makefile) dirpart=.;;
7066: */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
7067: *) continue;;
7068: esac
7069: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7070: # Extract the definition of DEP_FILES from the Makefile without
7071: # running `make'.
7072: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
7073: test -z "$DEPDIR" && continue
7074: # When using ansi2knr, U may be empty or an underscore; expand it
7075: U=`sed -n -e '/^U = / s///p' < "$mf"`
7076: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7077: # We invoke sed twice because it is the simplest approach to
7078: # changing $(DEPDIR) to its actual value in the expansion.
7079: for file in `sed -n -e '
7080: /^DEP_FILES = .*\\\\$/ {
7081: s/^DEP_FILES = //
7082: :loop
7083: s/\\\\$//
7084: p
7085: n
7086: /\\\\$/ b loop
7087: p
7088: }
7089: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7090: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7091: # Make sure the directory exists.
7092: test -f "$dirpart/$file" && continue
7093: fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
7094: $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
7095: # echo "creating $dirpart/$file"
7096: echo '# dummy' > "$dirpart/$file"
7097: done
7098: done
7099: ;;
7100: esac
7101: done
7102: _ACEOF
7103:
7104: cat >>$CONFIG_STATUS <<\_ACEOF
7105:
7106: { (exit 0); exit 0; }
7107: _ACEOF
7108: chmod +x $CONFIG_STATUS
7109: ac_clean_files=$ac_clean_files_save
7110:
7111:
7112: # configure is writing to config.log, and then calls config.status.
7113: # config.status does its own redirection, appending to config.log.
7114: # Unfortunately, on DOS this fails, as config.log is still kept open
7115: # by configure, so config.status won't be able to write to it; its
7116: # output is simply discarded. So we exec the FD to /dev/null,
7117: # effectively closing config.log, so it can be properly (re)opened and
7118: # appended to by config.status. When coming back to configure, we
7119: # need to make the FD available again.
7120: if test "$no_create" != yes; then
7121: ac_cs_success=:
1.32 noro 7122: ac_config_status_args=
7123: test "$silent" = yes &&
7124: ac_config_status_args="$ac_config_status_args --quiet"
1.14 noro 7125: exec 5>/dev/null
1.32 noro 7126: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1.14 noro 7127: exec 5>>config.log
7128: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7129: # would make configure fail if this is the last instruction.
7130: $ac_cs_success || { (exit 1); exit 1; }
7131: fi
7132:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>