Annotation of OpenXM_contrib2/asir2000/configure, Revision 1.20
1.14 noro 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.17 ohara 3: # Generated by GNU Autoconf 2.53.
1.14 noro 4: #
5: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6: # Free Software Foundation, Inc.
7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
1.17 ohara 9:
10: if expr a : '\(a\)' >/dev/null 2>&1; then
11: as_expr=expr
12: else
13: as_expr=false
14: fi
15:
16:
1.14 noro 17: ## --------------------- ##
18: ## M4sh Initialization. ##
19: ## --------------------- ##
20:
21: # Be Bourne compatible
22: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23: emulate sh
24: NULLCMD=:
25: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26: set -o posix
27: fi
28:
1.17 ohara 29: # NLS nuisances.
1.14 noro 30: # Support unset when possible.
31: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32: as_unset=unset
33: else
34: as_unset=false
35: fi
36:
1.17 ohara 37: (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38: { $as_unset LANG || test "${LANG+set}" != set; } ||
39: { LANG=C; export LANG; }
40: (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41: { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42: { LC_ALL=C; export LC_ALL; }
43: (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44: { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45: { LC_TIME=C; export LC_TIME; }
46: (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47: { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48: { LC_CTYPE=C; export LC_CTYPE; }
49: (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50: { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51: { LANGUAGE=C; export LANGUAGE; }
52: (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53: { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54: { LC_COLLATE=C; export LC_COLLATE; }
55: (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56: { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57: { LC_NUMERIC=C; export LC_NUMERIC; }
58: (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59: { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60: { LC_MESSAGES=C; export LC_MESSAGES; }
1.14 noro 61:
62:
63: # Name of the executable.
1.17 ohara 64: as_me=`(basename "$0") 2>/dev/null ||
1.14 noro 65: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66: X"$0" : 'X\(//\)$' \| \
67: X"$0" : 'X\(/\)$' \| \
68: . : '\(.\)' 2>/dev/null ||
69: echo X/"$0" |
70: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71: /^X\/\(\/\/\)$/{ s//\1/; q; }
72: /^X\/\(\/\).*/{ s//\1/; q; }
73: s/.*/./; q'`
74:
75: # PATH needs CR, and LINENO needs CR and PATH.
76: # Avoid depending upon Character Ranges.
77: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80: as_cr_digits='0123456789'
81: as_cr_alnum=$as_cr_Letters$as_cr_digits
82:
83: # The user is always right.
84: if test "${PATH_SEPARATOR+set}" != set; then
1.17 ohara 85: echo "#! /bin/sh" >conftest.sh
86: echo "exit 0" >>conftest.sh
87: chmod +x conftest.sh
88: if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
1.14 noro 89: PATH_SEPARATOR=';'
90: else
91: PATH_SEPARATOR=:
92: fi
1.17 ohara 93: rm -f conftest.sh
1.14 noro 94: fi
95:
96:
97: as_lineno_1=$LINENO
98: as_lineno_2=$LINENO
99: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100: test "x$as_lineno_1" != "x$as_lineno_2" &&
101: test "x$as_lineno_3" = "x$as_lineno_2" || {
102: # Find who we are. Look in the path if we contain no path at all
103: # relative or not.
104: case $0 in
105: *[\\/]* ) as_myself=$0 ;;
106: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107: for as_dir in $PATH
108: do
109: IFS=$as_save_IFS
110: test -z "$as_dir" && as_dir=.
111: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112: done
113:
114: ;;
115: esac
116: # We did not find ourselves, most probably we were run as `sh COMMAND'
117: # in which case we are not to be found in the path.
118: if test "x$as_myself" = x; then
119: as_myself=$0
120: fi
121: if test ! -f "$as_myself"; then
122: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123: { (exit 1); exit 1; }; }
124: fi
125: case $CONFIG_SHELL in
126: '')
127: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129: do
130: IFS=$as_save_IFS
131: test -z "$as_dir" && as_dir=.
132: for as_base in sh bash ksh sh5; do
133: case $as_dir in
134: /*)
135: if ("$as_dir/$as_base" -c '
136: as_lineno_1=$LINENO
137: as_lineno_2=$LINENO
138: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139: test "x$as_lineno_1" != "x$as_lineno_2" &&
140: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141: CONFIG_SHELL=$as_dir/$as_base
142: export CONFIG_SHELL
143: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144: fi;;
145: esac
146: done
147: done
148: ;;
149: esac
150:
151: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152: # uniformly replaced by the line number. The first 'sed' inserts a
153: # line-number line before each line; the second 'sed' does the real
154: # work. The second script uses 'N' to pair each line-number line
155: # with the numbered line, and appends trailing '-' during
156: # substitution so that $LINENO is not a special case at line end.
157: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159: sed '=' <$as_myself |
160: sed '
161: N
162: s,$,-,
163: : loop
164: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165: t loop
166: s,-$,,
167: s,^['$as_cr_digits']*\n,,
168: ' >$as_me.lineno &&
169: chmod +x $as_me.lineno ||
170: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171: { (exit 1); exit 1; }; }
172:
173: # Don't try to exec as it changes $[0], causing all sort of problems
174: # (the dirname of $[0] is not the place where we might find the
175: # original and so on. Autoconf is especially sensible to this).
176: . ./$as_me.lineno
177: # Exit status is that of the last command.
178: exit
179: }
180:
181:
182: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183: *c*,-n*) ECHO_N= ECHO_C='
184: ' ECHO_T=' ' ;;
185: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187: esac
188:
189: if expr a : '\(a\)' >/dev/null 2>&1; then
190: as_expr=expr
191: else
192: as_expr=false
193: fi
194:
195: rm -f conf$$ conf$$.exe conf$$.file
196: echo >conf$$.file
197: if ln -s conf$$.file conf$$ 2>/dev/null; then
198: # We could just check for DJGPP; but this test a) works b) is more generic
199: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200: if test -f conf$$.exe; then
201: # Don't use ln at all; we don't have any links
202: as_ln_s='cp -p'
203: else
204: as_ln_s='ln -s'
205: fi
206: elif ln conf$$.file conf$$ 2>/dev/null; then
207: as_ln_s=ln
208: else
209: as_ln_s='cp -p'
210: fi
211: rm -f conf$$ conf$$.exe conf$$.file
212:
213: as_executable_p="test -f"
214:
215: # Sed expression to map a string onto a valid CPP name.
216: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217:
218: # Sed expression to map a string onto a valid variable name.
219: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220:
221:
222: # IFS
223: # We need space, tab and new line, in precisely that order.
224: as_nl='
225: '
226: IFS=" $as_nl"
227:
228: # CDPATH.
1.17 ohara 229: $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
1.14 noro 230:
231:
232: # Name of the host.
233: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234: # so uname gets run too.
235: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236:
237: exec 6>&1
238:
239: #
240: # Initializations.
241: #
242: ac_default_prefix=/usr/local
243: cross_compiling=no
244: subdirs=
245: MFLAGS=
246: MAKEFLAGS=
247: SHELL=${CONFIG_SHELL-/bin/sh}
248:
249: # Maximum number of lines to put in a shell here document.
250: # This variable seems obsolete. It should probably be removed, and
251: # only ac_max_sed_lines should be used.
252: : ${ac_max_here_lines=38}
253:
254: # Identity of this package.
255: PACKAGE_NAME=
256: PACKAGE_TARNAME=
257: PACKAGE_VERSION=
258: PACKAGE_STRING=
259: PACKAGE_BUGREPORT=
260:
261: ac_unique_file="LICENSE"
262: # Factoring default headers for most tests.
263: ac_includes_default="\
264: #include <stdio.h>
265: #if HAVE_SYS_TYPES_H
266: # include <sys/types.h>
267: #endif
268: #if HAVE_SYS_STAT_H
269: # include <sys/stat.h>
270: #endif
271: #if STDC_HEADERS
272: # include <stdlib.h>
273: # include <stddef.h>
274: #else
275: # if HAVE_STDLIB_H
276: # include <stdlib.h>
277: # endif
278: #endif
279: #if HAVE_STRING_H
280: # if !STDC_HEADERS && HAVE_MEMORY_H
281: # include <memory.h>
282: # endif
283: # include <string.h>
284: #endif
285: #if HAVE_STRINGS_H
286: # include <strings.h>
287: #endif
288: #if HAVE_INTTYPES_H
289: # include <inttypes.h>
290: #else
291: # if HAVE_STDINT_H
292: # include <stdint.h>
293: # endif
294: #endif
295: #if HAVE_UNISTD_H
296: # include <unistd.h>
297: #endif"
298:
299:
300: # Initialize some variables set by options.
301: ac_init_help=
302: ac_init_version=false
303: # The variables have the same names as the options, with
304: # dashes changed to underlines.
305: cache_file=/dev/null
306: exec_prefix=NONE
307: no_create=
308: no_recursion=
309: prefix=NONE
310: program_prefix=NONE
311: program_suffix=NONE
312: program_transform_name=s,x,x,
313: silent=
314: site=
315: srcdir=
316: verbose=
317: x_includes=NONE
318: x_libraries=NONE
319:
320: # Installation directory options.
321: # These are left unexpanded so users can "make install exec_prefix=/foo"
322: # and all the variables that are supposed to be based on exec_prefix
323: # by default will actually change.
324: # Use braces instead of parens because sh, perl, etc. also accept them.
325: bindir='${exec_prefix}/bin'
326: sbindir='${exec_prefix}/sbin'
327: libexecdir='${exec_prefix}/libexec'
328: datadir='${prefix}/share'
329: sysconfdir='${prefix}/etc'
330: sharedstatedir='${prefix}/com'
331: localstatedir='${prefix}/var'
332: libdir='${exec_prefix}/lib'
333: includedir='${prefix}/include'
334: oldincludedir='/usr/include'
335: infodir='${prefix}/info'
336: mandir='${prefix}/man'
337:
338: ac_prev=
339: for ac_option
340: do
341: # If the previous option needs an argument, assign it.
342: if test -n "$ac_prev"; then
343: eval "$ac_prev=\$ac_option"
344: ac_prev=
345: continue
346: fi
347:
348: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349:
350: # Accept the important Cygnus configure options, so we can diagnose typos.
351:
352: case $ac_option in
353:
354: -bindir | --bindir | --bindi | --bind | --bin | --bi)
355: ac_prev=bindir ;;
356: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357: bindir=$ac_optarg ;;
358:
359: -build | --build | --buil | --bui | --bu)
360: ac_prev=build_alias ;;
361: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362: build_alias=$ac_optarg ;;
363:
364: -cache-file | --cache-file | --cache-fil | --cache-fi \
365: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366: ac_prev=cache_file ;;
367: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369: cache_file=$ac_optarg ;;
370:
371: --config-cache | -C)
372: cache_file=config.cache ;;
373:
374: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375: ac_prev=datadir ;;
376: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377: | --da=*)
378: datadir=$ac_optarg ;;
379:
380: -disable-* | --disable-*)
381: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382: # Reject names that are not valid shell variable names.
383: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385: { (exit 1); exit 1; }; }
386: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387: eval "enable_$ac_feature=no" ;;
388:
389: -enable-* | --enable-*)
390: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391: # Reject names that are not valid shell variable names.
392: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394: { (exit 1); exit 1; }; }
395: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396: case $ac_option in
397: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398: *) ac_optarg=yes ;;
399: esac
400: eval "enable_$ac_feature='$ac_optarg'" ;;
401:
402: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404: | --exec | --exe | --ex)
405: ac_prev=exec_prefix ;;
406: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408: | --exec=* | --exe=* | --ex=*)
409: exec_prefix=$ac_optarg ;;
410:
411: -gas | --gas | --ga | --g)
412: # Obsolete; use --with-gas.
413: with_gas=yes ;;
414:
415: -help | --help | --hel | --he | -h)
416: ac_init_help=long ;;
417: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418: ac_init_help=recursive ;;
419: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420: ac_init_help=short ;;
421:
422: -host | --host | --hos | --ho)
423: ac_prev=host_alias ;;
424: -host=* | --host=* | --hos=* | --ho=*)
425: host_alias=$ac_optarg ;;
426:
427: -includedir | --includedir | --includedi | --included | --include \
428: | --includ | --inclu | --incl | --inc)
429: ac_prev=includedir ;;
430: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431: | --includ=* | --inclu=* | --incl=* | --inc=*)
432: includedir=$ac_optarg ;;
433:
434: -infodir | --infodir | --infodi | --infod | --info | --inf)
435: ac_prev=infodir ;;
436: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437: infodir=$ac_optarg ;;
438:
439: -libdir | --libdir | --libdi | --libd)
440: ac_prev=libdir ;;
441: -libdir=* | --libdir=* | --libdi=* | --libd=*)
442: libdir=$ac_optarg ;;
443:
444: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445: | --libexe | --libex | --libe)
446: ac_prev=libexecdir ;;
447: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448: | --libexe=* | --libex=* | --libe=*)
449: libexecdir=$ac_optarg ;;
450:
451: -localstatedir | --localstatedir | --localstatedi | --localstated \
452: | --localstate | --localstat | --localsta | --localst \
453: | --locals | --local | --loca | --loc | --lo)
454: ac_prev=localstatedir ;;
455: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458: localstatedir=$ac_optarg ;;
459:
460: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461: ac_prev=mandir ;;
462: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463: mandir=$ac_optarg ;;
464:
465: -nfp | --nfp | --nf)
466: # Obsolete; use --without-fp.
467: with_fp=no ;;
468:
469: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470: | --no-cr | --no-c | -n)
471: no_create=yes ;;
472:
473: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475: no_recursion=yes ;;
476:
477: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479: | --oldin | --oldi | --old | --ol | --o)
480: ac_prev=oldincludedir ;;
481: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484: oldincludedir=$ac_optarg ;;
485:
486: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487: ac_prev=prefix ;;
488: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489: prefix=$ac_optarg ;;
490:
491: -program-prefix | --program-prefix | --program-prefi | --program-pref \
492: | --program-pre | --program-pr | --program-p)
493: ac_prev=program_prefix ;;
494: -program-prefix=* | --program-prefix=* | --program-prefi=* \
495: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496: program_prefix=$ac_optarg ;;
497:
498: -program-suffix | --program-suffix | --program-suffi | --program-suff \
499: | --program-suf | --program-su | --program-s)
500: ac_prev=program_suffix ;;
501: -program-suffix=* | --program-suffix=* | --program-suffi=* \
502: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503: program_suffix=$ac_optarg ;;
504:
505: -program-transform-name | --program-transform-name \
506: | --program-transform-nam | --program-transform-na \
507: | --program-transform-n | --program-transform- \
508: | --program-transform | --program-transfor \
509: | --program-transfo | --program-transf \
510: | --program-trans | --program-tran \
511: | --progr-tra | --program-tr | --program-t)
512: ac_prev=program_transform_name ;;
513: -program-transform-name=* | --program-transform-name=* \
514: | --program-transform-nam=* | --program-transform-na=* \
515: | --program-transform-n=* | --program-transform-=* \
516: | --program-transform=* | --program-transfor=* \
517: | --program-transfo=* | --program-transf=* \
518: | --program-trans=* | --program-tran=* \
519: | --progr-tra=* | --program-tr=* | --program-t=*)
520: program_transform_name=$ac_optarg ;;
521:
522: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523: | -silent | --silent | --silen | --sile | --sil)
524: silent=yes ;;
525:
526: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527: ac_prev=sbindir ;;
528: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529: | --sbi=* | --sb=*)
530: sbindir=$ac_optarg ;;
531:
532: -sharedstatedir | --sharedstatedir | --sharedstatedi \
533: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534: | --sharedst | --shareds | --shared | --share | --shar \
535: | --sha | --sh)
536: ac_prev=sharedstatedir ;;
537: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540: | --sha=* | --sh=*)
541: sharedstatedir=$ac_optarg ;;
542:
543: -site | --site | --sit)
544: ac_prev=site ;;
545: -site=* | --site=* | --sit=*)
546: site=$ac_optarg ;;
547:
548: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549: ac_prev=srcdir ;;
550: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551: srcdir=$ac_optarg ;;
552:
553: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554: | --syscon | --sysco | --sysc | --sys | --sy)
555: ac_prev=sysconfdir ;;
556: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558: sysconfdir=$ac_optarg ;;
559:
560: -target | --target | --targe | --targ | --tar | --ta | --t)
561: ac_prev=target_alias ;;
562: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563: target_alias=$ac_optarg ;;
564:
565: -v | -verbose | --verbose | --verbos | --verbo | --verb)
566: verbose=yes ;;
567:
568: -version | --version | --versio | --versi | --vers | -V)
569: ac_init_version=: ;;
570:
571: -with-* | --with-*)
572: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573: # Reject names that are not valid shell variable names.
574: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575: { echo "$as_me: error: invalid package name: $ac_package" >&2
576: { (exit 1); exit 1; }; }
577: ac_package=`echo $ac_package| sed 's/-/_/g'`
578: case $ac_option in
579: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580: *) ac_optarg=yes ;;
581: esac
582: eval "with_$ac_package='$ac_optarg'" ;;
583:
584: -without-* | --without-*)
585: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586: # Reject names that are not valid shell variable names.
587: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588: { echo "$as_me: error: invalid package name: $ac_package" >&2
589: { (exit 1); exit 1; }; }
590: ac_package=`echo $ac_package | sed 's/-/_/g'`
591: eval "with_$ac_package=no" ;;
592:
593: --x)
594: # Obsolete; use --with-x.
595: with_x=yes ;;
596:
597: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598: | --x-incl | --x-inc | --x-in | --x-i)
599: ac_prev=x_includes ;;
600: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602: x_includes=$ac_optarg ;;
603:
604: -x-libraries | --x-libraries | --x-librarie | --x-librari \
605: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606: ac_prev=x_libraries ;;
607: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609: x_libraries=$ac_optarg ;;
610:
611: -*) { echo "$as_me: error: unrecognized option: $ac_option
612: Try \`$0 --help' for more information." >&2
613: { (exit 1); exit 1; }; }
614: ;;
615:
616: *=*)
617: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618: # Reject names that are not valid shell variable names.
619: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621: { (exit 1); exit 1; }; }
622: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623: eval "$ac_envvar='$ac_optarg'"
624: export $ac_envvar ;;
625:
626: *)
627: # FIXME: should be removed in autoconf 3.0.
628: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632: ;;
633:
634: esac
635: done
636:
637: if test -n "$ac_prev"; then
638: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639: { echo "$as_me: error: missing argument to $ac_option" >&2
640: { (exit 1); exit 1; }; }
641: fi
642:
643: # Be sure to have absolute paths.
644: for ac_var in exec_prefix prefix
645: do
646: eval ac_val=$`echo $ac_var`
647: case $ac_val in
648: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650: { (exit 1); exit 1; }; };;
651: esac
652: done
653:
654: # Be sure to have absolute paths.
655: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656: localstatedir libdir includedir oldincludedir infodir mandir
657: do
658: eval ac_val=$`echo $ac_var`
659: case $ac_val in
660: [\\/$]* | ?:[\\/]* ) ;;
661: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662: { (exit 1); exit 1; }; };;
663: esac
664: done
665:
666: # There might be people who depend on the old broken behavior: `$host'
667: # used to hold the argument of --host etc.
668: # FIXME: To remove some day.
669: build=$build_alias
670: host=$host_alias
671: target=$target_alias
672:
673: # FIXME: To remove some day.
674: if test "x$host_alias" != x; then
675: if test "x$build_alias" = x; then
676: cross_compiling=maybe
677: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678: If a cross compiler is detected then cross compile mode will be used." >&2
679: elif test "x$build_alias" != "x$host_alias"; then
680: cross_compiling=yes
681: fi
682: fi
683:
684: ac_tool_prefix=
685: test -n "$host_alias" && ac_tool_prefix=$host_alias-
686:
687: test "$silent" = yes && exec 6>/dev/null
688:
689:
690: # Find the source files, if location was not specified.
691: if test -z "$srcdir"; then
692: ac_srcdir_defaulted=yes
693: # Try the directory containing this script, then its parent.
694: ac_confdir=`(dirname "$0") 2>/dev/null ||
695: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696: X"$0" : 'X\(//\)[^/]' \| \
697: X"$0" : 'X\(//\)$' \| \
698: X"$0" : 'X\(/\)' \| \
699: . : '\(.\)' 2>/dev/null ||
700: echo X"$0" |
701: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703: /^X\(\/\/\)$/{ s//\1/; q; }
704: /^X\(\/\).*/{ s//\1/; q; }
705: s/.*/./; q'`
706: srcdir=$ac_confdir
707: if test ! -r $srcdir/$ac_unique_file; then
708: srcdir=..
709: fi
710: else
711: ac_srcdir_defaulted=no
712: fi
713: if test ! -r $srcdir/$ac_unique_file; then
714: if test "$ac_srcdir_defaulted" = yes; then
715: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716: { (exit 1); exit 1; }; }
717: else
718: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719: { (exit 1); exit 1; }; }
720: fi
721: fi
722: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723: ac_env_build_alias_set=${build_alias+set}
724: ac_env_build_alias_value=$build_alias
725: ac_cv_env_build_alias_set=${build_alias+set}
726: ac_cv_env_build_alias_value=$build_alias
727: ac_env_host_alias_set=${host_alias+set}
728: ac_env_host_alias_value=$host_alias
729: ac_cv_env_host_alias_set=${host_alias+set}
730: ac_cv_env_host_alias_value=$host_alias
731: ac_env_target_alias_set=${target_alias+set}
732: ac_env_target_alias_value=$target_alias
733: ac_cv_env_target_alias_set=${target_alias+set}
734: ac_cv_env_target_alias_value=$target_alias
735: ac_env_CC_set=${CC+set}
736: ac_env_CC_value=$CC
737: ac_cv_env_CC_set=${CC+set}
738: ac_cv_env_CC_value=$CC
739: ac_env_CFLAGS_set=${CFLAGS+set}
740: ac_env_CFLAGS_value=$CFLAGS
741: ac_cv_env_CFLAGS_set=${CFLAGS+set}
742: ac_cv_env_CFLAGS_value=$CFLAGS
743: ac_env_LDFLAGS_set=${LDFLAGS+set}
744: ac_env_LDFLAGS_value=$LDFLAGS
745: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746: ac_cv_env_LDFLAGS_value=$LDFLAGS
747: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748: ac_env_CPPFLAGS_value=$CPPFLAGS
749: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751: ac_env_CPP_set=${CPP+set}
752: ac_env_CPP_value=$CPP
753: ac_cv_env_CPP_set=${CPP+set}
754: ac_cv_env_CPP_value=$CPP
755:
756: #
757: # Report the --help message.
758: #
759: if test "$ac_init_help" = "long"; then
760: # Omit some internal or obsolete options to make the list less imposing.
761: # This message is too long to be a string in the A/UX 3.1 sh.
762: cat <<_ACEOF
763: \`configure' configures this package to adapt to many kinds of systems.
764:
765: Usage: $0 [OPTION]... [VAR=VALUE]...
766:
767: To assign environment variables (e.g., CC, CFLAGS...), specify them as
768: VAR=VALUE. See below for descriptions of some of the useful variables.
769:
770: Defaults for the options are specified in brackets.
771:
772: Configuration:
773: -h, --help display this help and exit
774: --help=short display options specific to this package
775: --help=recursive display the short help of all the included packages
776: -V, --version display version information and exit
777: -q, --quiet, --silent do not print \`checking...' messages
778: --cache-file=FILE cache test results in FILE [disabled]
779: -C, --config-cache alias for \`--cache-file=config.cache'
780: -n, --no-create do not create output files
781: --srcdir=DIR find the sources in DIR [configure dir or \`..']
782:
783: _ACEOF
784:
785: cat <<_ACEOF
786: Installation directories:
787: --prefix=PREFIX install architecture-independent files in PREFIX
788: [$ac_default_prefix]
789: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
790: [PREFIX]
791:
792: By default, \`make install' will install all the files in
793: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795: for instance \`--prefix=\$HOME'.
796:
797: For better control, use the options below.
798:
799: Fine tuning of the installation directories:
800: --bindir=DIR user executables [EPREFIX/bin]
801: --sbindir=DIR system admin executables [EPREFIX/sbin]
802: --libexecdir=DIR program executables [EPREFIX/libexec]
803: --datadir=DIR read-only architecture-independent data [PREFIX/share]
804: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807: --libdir=DIR object code libraries [EPREFIX/lib]
808: --includedir=DIR C header files [PREFIX/include]
809: --oldincludedir=DIR C header files for non-gcc [/usr/include]
810: --infodir=DIR info documentation [PREFIX/info]
811: --mandir=DIR man documentation [PREFIX/man]
812: _ACEOF
813:
814: cat <<\_ACEOF
815:
816: Program names:
817: --program-prefix=PREFIX prepend PREFIX to installed program names
818: --program-suffix=SUFFIX append SUFFIX to installed program names
819: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
820:
821: X features:
822: --x-includes=DIR X include files are in DIR
823: --x-libraries=DIR X library files are in DIR
824:
825: System types:
826: --build=BUILD configure for building on BUILD [guessed]
827: --host=HOST cross-compile to build programs to run on HOST [BUILD]
828: --target=TARGET configure for building compilers for TARGET [HOST]
829: _ACEOF
830: fi
831:
832: if test -n "$ac_init_help"; then
833:
834: cat <<\_ACEOF
835:
836: Optional Features:
837: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
838: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
839: --disable-dependency-tracking Speeds up one-time builds
840: --enable-dependency-tracking Do not reject slow dependency extractors
841: --enable-shared enable linking shared libraries. [no]
842: --enable-plot enable plot feature. [no]
843: --enable-interval enable interval feature. [no]
844: --enable-fft-float enable FFT-FLOAT feature. [no]
845:
846: Optional Packages:
847: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
848: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
849: --with-x use the X Window System
850: --with-pari use the PARI library. [no]
851:
852: Some influential environment variables:
853: CC C compiler command
854: CFLAGS C compiler flags
855: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
856: nonstandard directory <lib dir>
857: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
858: headers in a nonstandard directory <include dir>
859: CPP C preprocessor
860:
861: Use these variables to override the choices made by `configure' or to help
862: it to find libraries and programs with nonstandard names/locations.
863:
864: _ACEOF
865: fi
866:
867: if test "$ac_init_help" = "recursive"; then
868: # If there are subdirs, report their specific --help.
869: ac_popdir=`pwd`
870: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
871: test -d $ac_dir || continue
872: ac_builddir=.
873:
874: if test "$ac_dir" != .; then
875: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
876: # A "../" for each directory in $ac_dir_suffix.
877: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
878: else
879: ac_dir_suffix= ac_top_builddir=
880: fi
881:
882: case $srcdir in
883: .) # No --srcdir option. We are building in place.
884: ac_srcdir=.
885: if test -z "$ac_top_builddir"; then
886: ac_top_srcdir=.
887: else
888: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
889: fi ;;
890: [\\/]* | ?:[\\/]* ) # Absolute path.
891: ac_srcdir=$srcdir$ac_dir_suffix;
892: ac_top_srcdir=$srcdir ;;
893: *) # Relative path.
894: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
895: ac_top_srcdir=$ac_top_builddir$srcdir ;;
896: esac
897: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
898: # absolute.
899: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1.17 ohara 900: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1.14 noro 901: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
902: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
903:
904: cd $ac_dir
905: # Check for guested configure; otherwise get Cygnus style configure.
906: if test -f $ac_srcdir/configure.gnu; then
907: echo
908: $SHELL $ac_srcdir/configure.gnu --help=recursive
909: elif test -f $ac_srcdir/configure; then
910: echo
911: $SHELL $ac_srcdir/configure --help=recursive
912: elif test -f $ac_srcdir/configure.ac ||
913: test -f $ac_srcdir/configure.in; then
914: echo
915: $ac_configure --help
916: else
917: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
918: fi
919: cd $ac_popdir
920: done
921: fi
922:
923: test -n "$ac_init_help" && exit 0
924: if $ac_init_version; then
925: cat <<\_ACEOF
926:
927: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
928: Free Software Foundation, Inc.
929: This configure script is free software; the Free Software Foundation
930: gives unlimited permission to copy, distribute and modify it.
931: _ACEOF
932: exit 0
933: fi
934: exec 5>config.log
935: cat >&5 <<_ACEOF
936: This file contains any messages produced by compilers while
937: running configure, to aid debugging if configure makes a mistake.
938:
939: It was created by $as_me, which was
1.17 ohara 940: generated by GNU Autoconf 2.53. Invocation command line was
1.14 noro 941:
942: $ $0 $@
943:
944: _ACEOF
945: {
946: cat <<_ASUNAME
947: ## --------- ##
948: ## Platform. ##
949: ## --------- ##
950:
951: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
952: uname -m = `(uname -m) 2>/dev/null || echo unknown`
953: uname -r = `(uname -r) 2>/dev/null || echo unknown`
954: uname -s = `(uname -s) 2>/dev/null || echo unknown`
955: uname -v = `(uname -v) 2>/dev/null || echo unknown`
956:
957: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
958: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
959:
960: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
961: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
962: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
963: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
964: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
965: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
966: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
967:
968: _ASUNAME
969:
970: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
971: for as_dir in $PATH
972: do
973: IFS=$as_save_IFS
974: test -z "$as_dir" && as_dir=.
975: echo "PATH: $as_dir"
976: done
977:
978: } >&5
979:
980: cat >&5 <<_ACEOF
981:
982:
983: ## ----------- ##
984: ## Core tests. ##
985: ## ----------- ##
986:
987: _ACEOF
988:
989:
990: # Keep a trace of the command line.
991: # Strip out --no-create and --no-recursion so they do not pile up.
992: # Also quote any args containing shell meta-characters.
993: ac_configure_args=
994: ac_sep=
1.17 ohara 995: for ac_arg
1.14 noro 996: do
1.17 ohara 997: case $ac_arg in
998: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999: | --no-cr | --no-c | -n ) continue ;;
1000: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002: continue ;;
1003: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1004: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1005: esac
1006: case " $ac_configure_args " in
1007: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1008: *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1009: ac_sep=" " ;;
1010: esac
1011: # Get rid of the leading space.
1.14 noro 1012: done
1013:
1014: # When interrupted or exit'd, cleanup temporary files, and complete
1015: # config.log. We remove comments because anyway the quotes in there
1016: # would cause problems or look ugly.
1017: # WARNING: Be sure not to use single quotes in there, as some shells,
1018: # such as our DU 5.0 friend, will then `close' the trap.
1019: trap 'exit_status=$?
1020: # Save into config.log some information that might help in debugging.
1021: {
1022: echo
1023: cat <<\_ASBOX
1024: ## ---------------- ##
1025: ## Cache variables. ##
1026: ## ---------------- ##
1027: _ASBOX
1028: echo
1029: # The following way of writing the cache mishandles newlines in values,
1030: {
1031: (set) 2>&1 |
1032: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1033: *ac_space=\ *)
1034: sed -n \
1035: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1036: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1037: ;;
1038: *)
1039: sed -n \
1040: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1041: ;;
1042: esac;
1043: }
1044: echo
1045: if test -s confdefs.h; then
1046: cat <<\_ASBOX
1047: ## ----------- ##
1048: ## confdefs.h. ##
1049: ## ----------- ##
1050: _ASBOX
1051: echo
1.17 ohara 1052: sed "/^$/d" confdefs.h
1.14 noro 1053: echo
1054: fi
1055: test "$ac_signal" != 0 &&
1056: echo "$as_me: caught signal $ac_signal"
1057: echo "$as_me: exit $exit_status"
1058: } >&5
1059: rm -f core core.* *.core &&
1060: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1061: exit $exit_status
1062: ' 0
1063: for ac_signal in 1 2 13 15; do
1064: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1065: done
1066: ac_signal=0
1067:
1068: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1069: rm -rf conftest* confdefs.h
1070: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1071: echo >confdefs.h
1072:
1073: # Predefined preprocessor variables.
1074:
1075: cat >>confdefs.h <<_ACEOF
1076: #define PACKAGE_NAME "$PACKAGE_NAME"
1077: _ACEOF
1078:
1079:
1080: cat >>confdefs.h <<_ACEOF
1081: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1082: _ACEOF
1083:
1084:
1085: cat >>confdefs.h <<_ACEOF
1086: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1087: _ACEOF
1088:
1089:
1090: cat >>confdefs.h <<_ACEOF
1091: #define PACKAGE_STRING "$PACKAGE_STRING"
1092: _ACEOF
1093:
1094:
1095: cat >>confdefs.h <<_ACEOF
1096: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1097: _ACEOF
1098:
1099:
1100: # Let the site file select an alternate cache file if it wants to.
1101: # Prefer explicitly selected file to automatically selected ones.
1102: if test -z "$CONFIG_SITE"; then
1103: if test "x$prefix" != xNONE; then
1104: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1105: else
1106: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1107: fi
1108: fi
1109: for ac_site_file in $CONFIG_SITE; do
1110: if test -r "$ac_site_file"; then
1111: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1112: echo "$as_me: loading site script $ac_site_file" >&6;}
1113: sed 's/^/| /' "$ac_site_file" >&5
1114: . "$ac_site_file"
1115: fi
1116: done
1117:
1118: if test -r "$cache_file"; then
1119: # Some versions of bash will fail to source /dev/null (special
1120: # files actually), so we avoid doing that.
1121: if test -f "$cache_file"; then
1122: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1123: echo "$as_me: loading cache $cache_file" >&6;}
1124: case $cache_file in
1125: [\\/]* | ?:[\\/]* ) . $cache_file;;
1126: *) . ./$cache_file;;
1127: esac
1128: fi
1129: else
1130: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1131: echo "$as_me: creating cache $cache_file" >&6;}
1132: >$cache_file
1133: fi
1134:
1135: # Check that the precious variables saved in the cache have kept the same
1136: # value.
1137: ac_cache_corrupted=false
1138: for ac_var in `(set) 2>&1 |
1139: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1140: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1141: eval ac_new_set=\$ac_env_${ac_var}_set
1142: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1143: eval ac_new_val="\$ac_env_${ac_var}_value"
1144: case $ac_old_set,$ac_new_set in
1145: set,)
1146: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1147: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1148: ac_cache_corrupted=: ;;
1149: ,set)
1150: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1151: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1152: ac_cache_corrupted=: ;;
1153: ,);;
1154: *)
1155: if test "x$ac_old_val" != "x$ac_new_val"; then
1156: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1157: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1158: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1159: echo "$as_me: former value: $ac_old_val" >&2;}
1160: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1161: echo "$as_me: current value: $ac_new_val" >&2;}
1162: ac_cache_corrupted=:
1163: fi;;
1164: esac
1165: # Pass precious variables to config.status.
1166: if test "$ac_new_set" = set; then
1167: case $ac_new_val in
1168: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1169: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1170: *) ac_arg=$ac_var=$ac_new_val ;;
1171: esac
1172: case " $ac_configure_args " in
1173: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1174: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1175: esac
1176: fi
1177: done
1178: if $ac_cache_corrupted; then
1179: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1180: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1181: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1182: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1183: { (exit 1); exit 1; }; }
1184: fi
1185:
1186: ac_ext=c
1187: ac_cpp='$CPP $CPPFLAGS'
1188: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1189: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1190: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1191:
1192:
1193:
1194:
1195:
1196:
1197:
1198:
1199:
1200:
1201:
1202:
1203:
1204:
1205:
1206:
1207:
1208:
1209:
1210: ac_aux_dir=
1211: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1212: if test -f $ac_dir/install-sh; then
1213: ac_aux_dir=$ac_dir
1214: ac_install_sh="$ac_aux_dir/install-sh -c"
1215: break
1216: elif test -f $ac_dir/install.sh; then
1217: ac_aux_dir=$ac_dir
1218: ac_install_sh="$ac_aux_dir/install.sh -c"
1219: break
1220: elif test -f $ac_dir/shtool; then
1221: ac_aux_dir=$ac_dir
1222: ac_install_sh="$ac_aux_dir/shtool install -c"
1223: break
1224: fi
1225: done
1226: if test -z "$ac_aux_dir"; then
1227: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1228: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1229: { (exit 1); exit 1; }; }
1230: fi
1231: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1232: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1233: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1234:
1235: # Find a good install program. We prefer a C program (faster),
1236: # so one script is as good as another. But avoid the broken or
1237: # incompatible versions:
1238: # SysV /etc/install, /usr/sbin/install
1239: # SunOS /usr/etc/install
1240: # IRIX /sbin/install
1241: # AIX /bin/install
1242: # AmigaOS /C/install, which installs bootblocks on floppy discs
1243: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1244: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1245: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1246: # ./install, which can be erroneously created by make from ./install.sh.
1247: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1248: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1249: if test -z "$INSTALL"; then
1250: if test "${ac_cv_path_install+set}" = set; then
1251: echo $ECHO_N "(cached) $ECHO_C" >&6
1252: else
1253: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1254: for as_dir in $PATH
1255: do
1256: IFS=$as_save_IFS
1257: test -z "$as_dir" && as_dir=.
1258: # Account for people who put trailing slashes in PATH elements.
1259: case $as_dir/ in
1260: ./ | .// | /cC/* | \
1261: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1262: /usr/ucb/* ) ;;
1263: *)
1264: # OSF1 and SCO ODT 3.0 have their own names for install.
1265: # Don't use installbsd from OSF since it installs stuff as root
1266: # by default.
1267: for ac_prog in ginstall scoinst install; do
1268: for ac_exec_ext in '' $ac_executable_extensions; do
1269: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1270: if test $ac_prog = install &&
1271: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1272: # AIX install. It has an incompatible calling convention.
1273: :
1274: elif test $ac_prog = install &&
1275: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1276: # program-specific install script used by HP pwplus--don't use.
1277: :
1278: else
1279: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1280: break 3
1281: fi
1282: fi
1283: done
1284: done
1285: ;;
1286: esac
1287: done
1288:
1289:
1290: fi
1291: if test "${ac_cv_path_install+set}" = set; then
1292: INSTALL=$ac_cv_path_install
1293: else
1294: # As a last resort, use the slow shell script. We don't cache a
1295: # path for INSTALL within a source directory, because that will
1296: # break other packages using the cache if that directory is
1297: # removed, or if the path is relative.
1298: INSTALL=$ac_install_sh
1299: fi
1300: fi
1301: echo "$as_me:$LINENO: result: $INSTALL" >&5
1302: echo "${ECHO_T}$INSTALL" >&6
1303:
1304: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1305: # It thinks the first close brace ends the variable substitution.
1306: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1307:
1308: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1309:
1310: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1311:
1312: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1313: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1314: # Just in case
1315: sleep 1
1316: echo timestamp > conftest.file
1317: # Do `set' in a subshell so we don't clobber the current shell's
1318: # arguments. Must try -L first in case configure is actually a
1319: # symlink; some systems play weird games with the mod time of symlinks
1320: # (eg FreeBSD returns the mod time of the symlink's containing
1321: # directory).
1322: if (
1323: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1324: if test "$*" = "X"; then
1325: # -L didn't work.
1326: set X `ls -t $srcdir/configure conftest.file`
1327: fi
1328: rm -f conftest.file
1329: if test "$*" != "X $srcdir/configure conftest.file" \
1330: && test "$*" != "X conftest.file $srcdir/configure"; then
1331:
1332: # If neither matched, then we have a broken ls. This can happen
1333: # if, for instance, CONFIG_SHELL is bash and it inherits a
1334: # broken ls alias from the environment. This has actually
1335: # happened. Such a system could not be considered "sane".
1336: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1337: alias in your environment" >&5
1338: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1339: alias in your environment" >&2;}
1340: { (exit 1); exit 1; }; }
1341: fi
1342:
1343: test "$2" = conftest.file
1344: )
1345: then
1346: # Ok.
1347: :
1348: else
1349: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1350: Check your system clock" >&5
1351: echo "$as_me: error: newly created file is older than distributed files!
1352: Check your system clock" >&2;}
1353: { (exit 1); exit 1; }; }
1354: fi
1355: echo "$as_me:$LINENO: result: yes" >&5
1356: echo "${ECHO_T}yes" >&6
1357: test "$program_prefix" != NONE &&
1358: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1359: # Use a double $ so make ignores it.
1360: test "$program_suffix" != NONE &&
1361: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1362: # Double any \ or $. echo might interpret backslashes.
1363: # By default was `s,x,x', remove it if useless.
1364: cat <<\_ACEOF >conftest.sed
1365: s/[\\$]/&&/g;s/;s,x,x,$//
1366: _ACEOF
1367: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1368: rm conftest.sed
1369:
1370:
1371: # expand $ac_aux_dir to an absolute path
1372: am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1373:
1374: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1375: # Use eval to expand $SHELL
1376: if eval "$MISSING --run true"; then
1377: am_missing_run="$MISSING --run "
1378: else
1379: am_missing_run=
1380: am_backtick='`'
1381: { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1382: echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1383: fi
1384:
1385: for ac_prog in gawk mawk nawk awk
1386: do
1387: # Extract the first word of "$ac_prog", so it can be a program name with args.
1388: set dummy $ac_prog; ac_word=$2
1389: echo "$as_me:$LINENO: checking for $ac_word" >&5
1390: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1391: if test "${ac_cv_prog_AWK+set}" = set; then
1392: echo $ECHO_N "(cached) $ECHO_C" >&6
1393: else
1394: if test -n "$AWK"; then
1395: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1396: else
1397: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1398: for as_dir in $PATH
1399: do
1400: IFS=$as_save_IFS
1401: test -z "$as_dir" && as_dir=.
1402: for ac_exec_ext in '' $ac_executable_extensions; do
1403: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1404: ac_cv_prog_AWK="$ac_prog"
1405: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1406: break 2
1407: fi
1408: done
1409: done
1410:
1411: fi
1412: fi
1413: AWK=$ac_cv_prog_AWK
1414: if test -n "$AWK"; then
1415: echo "$as_me:$LINENO: result: $AWK" >&5
1416: echo "${ECHO_T}$AWK" >&6
1417: else
1418: echo "$as_me:$LINENO: result: no" >&5
1419: echo "${ECHO_T}no" >&6
1420: fi
1421:
1422: test -n "$AWK" && break
1423: done
1424:
1.17 ohara 1425: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1426: echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1.14 noro 1427: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1428: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1429: echo $ECHO_N "(cached) $ECHO_C" >&6
1430: else
1431: cat >conftest.make <<\_ACEOF
1432: all:
1.17 ohara 1433: @echo 'ac_maketemp="${MAKE}"'
1.14 noro 1434: _ACEOF
1435: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1436: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1437: if test -n "$ac_maketemp"; then
1438: eval ac_cv_prog_make_${ac_make}_set=yes
1439: else
1440: eval ac_cv_prog_make_${ac_make}_set=no
1441: fi
1442: rm -f conftest.make
1443: fi
1444: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1445: echo "$as_me:$LINENO: result: yes" >&5
1446: echo "${ECHO_T}yes" >&6
1447: SET_MAKE=
1448: else
1449: echo "$as_me:$LINENO: result: no" >&5
1450: echo "${ECHO_T}no" >&6
1451: SET_MAKE="MAKE=${MAKE-make}"
1452: fi
1453:
1454: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1455: if test "${enable_dependency_tracking+set}" = set; then
1456: enableval="$enable_dependency_tracking"
1457:
1458: fi;
1459: if test "x$enable_dependency_tracking" != xno; then
1460: am_depcomp="$ac_aux_dir/depcomp"
1461: AMDEPBACKSLASH='\'
1462: fi
1463:
1464:
1465: if test "x$enable_dependency_tracking" != xno; then
1466: AMDEP_TRUE=
1467: AMDEP_FALSE='#'
1468: else
1469: AMDEP_TRUE='#'
1470: AMDEP_FALSE=
1471: fi
1472:
1473:
1474:
1475:
1476: rm -f .deps 2>/dev/null
1477: mkdir .deps 2>/dev/null
1478: if test -d .deps; then
1479: DEPDIR=.deps
1480: else
1481: # MS-DOS does not allow filenames that begin with a dot.
1482: DEPDIR=_deps
1483: fi
1484: rmdir .deps 2>/dev/null
1485:
1486:
1487: # test to see if srcdir already configured
1488: if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1489: test -f $srcdir/config.status; then
1490: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1491: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1492: { (exit 1); exit 1; }; }
1493: fi
1494:
1495: # Define the identity of the package.
1496: PACKAGE=asir
1.16 noro 1497: VERSION=20030307
1.14 noro 1498:
1499: cat >>confdefs.h <<_ACEOF
1500: #define PACKAGE "$PACKAGE"
1501: _ACEOF
1502:
1503:
1504: cat >>confdefs.h <<_ACEOF
1505: #define VERSION "$VERSION"
1506: _ACEOF
1507:
1508:
1509: # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1510: # the ones we care about.
1511:
1512: # Autoconf 2.50 always computes EXEEXT. However we need to be
1513: # compatible with 2.13, for now. So we always define EXEEXT, but we
1514: # don't compute it.
1515:
1516: # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1517: # requests that it be used. This is a bit dumb.
1518: : ${OBJEXT=o}
1519:
1520:
1521: # Some tools Automake needs.
1522:
1523: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1524:
1525:
1526: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1527:
1528:
1529: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1530:
1531:
1532: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1533:
1534:
1535: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1536:
1537:
1538: AMTAR=${AMTAR-"${am_missing_run}tar"}
1539:
1540: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1541:
1542: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1543:
1544: # We need awk for the "check" target. The system "awk" is bad on
1545: # some platforms.
1546:
1547:
1548: # Make sure we can run config.sub.
1549: $ac_config_sub sun4 >/dev/null 2>&1 ||
1550: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1551: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1552: { (exit 1); exit 1; }; }
1553:
1554: echo "$as_me:$LINENO: checking build system type" >&5
1555: echo $ECHO_N "checking build system type... $ECHO_C" >&6
1556: if test "${ac_cv_build+set}" = set; then
1557: echo $ECHO_N "(cached) $ECHO_C" >&6
1558: else
1559: ac_cv_build_alias=$build_alias
1560: test -z "$ac_cv_build_alias" &&
1561: ac_cv_build_alias=`$ac_config_guess`
1562: test -z "$ac_cv_build_alias" &&
1563: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1564: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1565: { (exit 1); exit 1; }; }
1566: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1567: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1568: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1569: { (exit 1); exit 1; }; }
1570:
1571: fi
1572: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1573: echo "${ECHO_T}$ac_cv_build" >&6
1574: build=$ac_cv_build
1575: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1576: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1577: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1578:
1579:
1580: echo "$as_me:$LINENO: checking host system type" >&5
1581: echo $ECHO_N "checking host system type... $ECHO_C" >&6
1582: if test "${ac_cv_host+set}" = set; then
1583: echo $ECHO_N "(cached) $ECHO_C" >&6
1584: else
1585: ac_cv_host_alias=$host_alias
1586: test -z "$ac_cv_host_alias" &&
1587: ac_cv_host_alias=$ac_cv_build_alias
1588: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1589: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1590: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1591: { (exit 1); exit 1; }; }
1592:
1593: fi
1594: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1595: echo "${ECHO_T}$ac_cv_host" >&6
1596: host=$ac_cv_host
1597: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1598: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1599: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600:
1601:
1602: echo "$as_me:$LINENO: checking target system type" >&5
1603: echo $ECHO_N "checking target system type... $ECHO_C" >&6
1604: if test "${ac_cv_target+set}" = set; then
1605: echo $ECHO_N "(cached) $ECHO_C" >&6
1606: else
1607: ac_cv_target_alias=$target_alias
1608: test "x$ac_cv_target_alias" = "x" &&
1609: ac_cv_target_alias=$ac_cv_host_alias
1610: ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1611: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1612: echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1613: { (exit 1); exit 1; }; }
1614:
1615: fi
1616: echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1617: echo "${ECHO_T}$ac_cv_target" >&6
1618: target=$ac_cv_target
1619: target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1620: target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1621: target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1622:
1623:
1624: # The aliases save the names the user supplied, while $host etc.
1625: # will get canonicalized.
1626: test -n "$target_alias" &&
1627: test "$program_prefix$program_suffix$program_transform_name" = \
1628: NONENONEs,x,x, &&
1629: program_prefix=${target_alias}-
1630:
1631: ac_ext=c
1632: ac_cpp='$CPP $CPPFLAGS'
1633: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1634: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1635: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1636: if test -n "$ac_tool_prefix"; then
1637: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1638: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1639: echo "$as_me:$LINENO: checking for $ac_word" >&5
1640: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641: if test "${ac_cv_prog_CC+set}" = set; then
1642: echo $ECHO_N "(cached) $ECHO_C" >&6
1643: else
1644: if test -n "$CC"; then
1645: ac_cv_prog_CC="$CC" # Let the user override the test.
1646: else
1647: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648: for as_dir in $PATH
1649: do
1650: IFS=$as_save_IFS
1651: test -z "$as_dir" && as_dir=.
1652: for ac_exec_ext in '' $ac_executable_extensions; do
1653: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1655: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656: break 2
1657: fi
1658: done
1659: done
1660:
1661: fi
1662: fi
1663: CC=$ac_cv_prog_CC
1664: if test -n "$CC"; then
1665: echo "$as_me:$LINENO: result: $CC" >&5
1666: echo "${ECHO_T}$CC" >&6
1667: else
1668: echo "$as_me:$LINENO: result: no" >&5
1669: echo "${ECHO_T}no" >&6
1670: fi
1671:
1672: fi
1673: if test -z "$ac_cv_prog_CC"; then
1674: ac_ct_CC=$CC
1675: # Extract the first word of "gcc", so it can be a program name with args.
1676: set dummy gcc; ac_word=$2
1677: echo "$as_me:$LINENO: checking for $ac_word" >&5
1678: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1679: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1680: echo $ECHO_N "(cached) $ECHO_C" >&6
1681: else
1682: if test -n "$ac_ct_CC"; then
1683: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1684: else
1685: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686: for as_dir in $PATH
1687: do
1688: IFS=$as_save_IFS
1689: test -z "$as_dir" && as_dir=.
1690: for ac_exec_ext in '' $ac_executable_extensions; do
1691: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1692: ac_cv_prog_ac_ct_CC="gcc"
1693: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1694: break 2
1695: fi
1696: done
1697: done
1698:
1699: fi
1700: fi
1701: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1702: if test -n "$ac_ct_CC"; then
1703: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1704: echo "${ECHO_T}$ac_ct_CC" >&6
1705: else
1706: echo "$as_me:$LINENO: result: no" >&5
1707: echo "${ECHO_T}no" >&6
1708: fi
1709:
1710: CC=$ac_ct_CC
1711: else
1712: CC="$ac_cv_prog_CC"
1713: fi
1714:
1715: if test -z "$CC"; then
1716: if test -n "$ac_tool_prefix"; then
1717: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1718: set dummy ${ac_tool_prefix}cc; ac_word=$2
1719: echo "$as_me:$LINENO: checking for $ac_word" >&5
1720: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721: if test "${ac_cv_prog_CC+set}" = set; then
1722: echo $ECHO_N "(cached) $ECHO_C" >&6
1723: else
1724: if test -n "$CC"; then
1725: ac_cv_prog_CC="$CC" # Let the user override the test.
1726: else
1727: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728: for as_dir in $PATH
1729: do
1730: IFS=$as_save_IFS
1731: test -z "$as_dir" && as_dir=.
1732: for ac_exec_ext in '' $ac_executable_extensions; do
1733: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1734: ac_cv_prog_CC="${ac_tool_prefix}cc"
1735: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736: break 2
1737: fi
1738: done
1739: done
1740:
1741: fi
1742: fi
1743: CC=$ac_cv_prog_CC
1744: if test -n "$CC"; then
1745: echo "$as_me:$LINENO: result: $CC" >&5
1746: echo "${ECHO_T}$CC" >&6
1747: else
1748: echo "$as_me:$LINENO: result: no" >&5
1749: echo "${ECHO_T}no" >&6
1750: fi
1751:
1752: fi
1753: if test -z "$ac_cv_prog_CC"; then
1754: ac_ct_CC=$CC
1755: # Extract the first word of "cc", so it can be a program name with args.
1756: set dummy cc; ac_word=$2
1757: echo "$as_me:$LINENO: checking for $ac_word" >&5
1758: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1760: echo $ECHO_N "(cached) $ECHO_C" >&6
1761: else
1762: if test -n "$ac_ct_CC"; then
1763: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1764: else
1765: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1766: for as_dir in $PATH
1767: do
1768: IFS=$as_save_IFS
1769: test -z "$as_dir" && as_dir=.
1770: for ac_exec_ext in '' $ac_executable_extensions; do
1771: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1772: ac_cv_prog_ac_ct_CC="cc"
1773: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1774: break 2
1775: fi
1776: done
1777: done
1778:
1779: fi
1780: fi
1781: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1782: if test -n "$ac_ct_CC"; then
1783: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1784: echo "${ECHO_T}$ac_ct_CC" >&6
1785: else
1786: echo "$as_me:$LINENO: result: no" >&5
1787: echo "${ECHO_T}no" >&6
1788: fi
1789:
1790: CC=$ac_ct_CC
1791: else
1792: CC="$ac_cv_prog_CC"
1793: fi
1794:
1795: fi
1796: if test -z "$CC"; then
1797: # Extract the first word of "cc", so it can be a program name with args.
1798: set dummy cc; ac_word=$2
1799: echo "$as_me:$LINENO: checking for $ac_word" >&5
1800: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1801: if test "${ac_cv_prog_CC+set}" = set; then
1802: echo $ECHO_N "(cached) $ECHO_C" >&6
1803: else
1804: if test -n "$CC"; then
1805: ac_cv_prog_CC="$CC" # Let the user override the test.
1806: else
1807: ac_prog_rejected=no
1808: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809: for as_dir in $PATH
1810: do
1811: IFS=$as_save_IFS
1812: test -z "$as_dir" && as_dir=.
1813: for ac_exec_ext in '' $ac_executable_extensions; do
1814: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1816: ac_prog_rejected=yes
1817: continue
1818: fi
1819: ac_cv_prog_CC="cc"
1820: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821: break 2
1822: fi
1823: done
1824: done
1825:
1826: if test $ac_prog_rejected = yes; then
1827: # We found a bogon in the path, so make sure we never use it.
1828: set dummy $ac_cv_prog_CC
1829: shift
1830: if test $# != 0; then
1831: # We chose a different compiler from the bogus one.
1832: # However, it has the same basename, so the bogon will be chosen
1833: # first if we set CC to just the basename; use the full file name.
1834: shift
1.17 ohara 1835: set dummy "$as_dir/$ac_word" ${1+"$@"}
1836: shift
1837: ac_cv_prog_CC="$@"
1.14 noro 1838: fi
1839: fi
1840: fi
1841: fi
1842: CC=$ac_cv_prog_CC
1843: if test -n "$CC"; then
1844: echo "$as_me:$LINENO: result: $CC" >&5
1845: echo "${ECHO_T}$CC" >&6
1846: else
1847: echo "$as_me:$LINENO: result: no" >&5
1848: echo "${ECHO_T}no" >&6
1849: fi
1850:
1851: fi
1852: if test -z "$CC"; then
1853: if test -n "$ac_tool_prefix"; then
1854: for ac_prog in cl
1855: do
1856: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1857: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1858: echo "$as_me:$LINENO: checking for $ac_word" >&5
1859: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1860: if test "${ac_cv_prog_CC+set}" = set; then
1861: echo $ECHO_N "(cached) $ECHO_C" >&6
1862: else
1863: if test -n "$CC"; then
1864: ac_cv_prog_CC="$CC" # Let the user override the test.
1865: else
1866: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867: for as_dir in $PATH
1868: do
1869: IFS=$as_save_IFS
1870: test -z "$as_dir" && as_dir=.
1871: for ac_exec_ext in '' $ac_executable_extensions; do
1872: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1874: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875: break 2
1876: fi
1877: done
1878: done
1879:
1880: fi
1881: fi
1882: CC=$ac_cv_prog_CC
1883: if test -n "$CC"; then
1884: echo "$as_me:$LINENO: result: $CC" >&5
1885: echo "${ECHO_T}$CC" >&6
1886: else
1887: echo "$as_me:$LINENO: result: no" >&5
1888: echo "${ECHO_T}no" >&6
1889: fi
1890:
1891: test -n "$CC" && break
1892: done
1893: fi
1894: if test -z "$CC"; then
1895: ac_ct_CC=$CC
1896: for ac_prog in cl
1897: do
1898: # Extract the first word of "$ac_prog", so it can be a program name with args.
1899: set dummy $ac_prog; ac_word=$2
1900: echo "$as_me:$LINENO: checking for $ac_word" >&5
1901: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1903: echo $ECHO_N "(cached) $ECHO_C" >&6
1904: else
1905: if test -n "$ac_ct_CC"; then
1906: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1907: else
1908: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909: for as_dir in $PATH
1910: do
1911: IFS=$as_save_IFS
1912: test -z "$as_dir" && as_dir=.
1913: for ac_exec_ext in '' $ac_executable_extensions; do
1914: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915: ac_cv_prog_ac_ct_CC="$ac_prog"
1916: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917: break 2
1918: fi
1919: done
1920: done
1921:
1922: fi
1923: fi
1924: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1925: if test -n "$ac_ct_CC"; then
1926: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1927: echo "${ECHO_T}$ac_ct_CC" >&6
1928: else
1929: echo "$as_me:$LINENO: result: no" >&5
1930: echo "${ECHO_T}no" >&6
1931: fi
1932:
1933: test -n "$ac_ct_CC" && break
1934: done
1935:
1936: CC=$ac_ct_CC
1937: fi
1938:
1939: fi
1940:
1941:
1.17 ohara 1942: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1943: echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1.14 noro 1944: { (exit 1); exit 1; }; }
1945:
1946: # Provide some information about the compiler.
1947: echo "$as_me:$LINENO:" \
1948: "checking for C compiler version" >&5
1949: ac_compiler=`set X $ac_compile; echo $2`
1950: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1951: (eval $ac_compiler --version </dev/null >&5) 2>&5
1952: ac_status=$?
1953: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954: (exit $ac_status); }
1955: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1956: (eval $ac_compiler -v </dev/null >&5) 2>&5
1957: ac_status=$?
1958: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959: (exit $ac_status); }
1960: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1961: (eval $ac_compiler -V </dev/null >&5) 2>&5
1962: ac_status=$?
1963: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964: (exit $ac_status); }
1965:
1966: cat >conftest.$ac_ext <<_ACEOF
1967: #line $LINENO "configure"
1.17 ohara 1968: #include "confdefs.h"
1.14 noro 1969:
1.17 ohara 1970: #ifdef F77_DUMMY_MAIN
1971: # ifdef __cplusplus
1972: extern "C"
1973: # endif
1974: int F77_DUMMY_MAIN() { return 1; }
1975: #endif
1.14 noro 1976: int
1977: main ()
1978: {
1979:
1980: ;
1981: return 0;
1982: }
1983: _ACEOF
1984: ac_clean_files_save=$ac_clean_files
1.17 ohara 1985: ac_clean_files="$ac_clean_files a.out a.exe"
1.14 noro 1986: # Try to create an executable without -o first, disregard a.out.
1987: # It will help us diagnose broken compilers, and finding out an intuition
1988: # of exeext.
1989: echo "$as_me:$LINENO: checking for C compiler default output" >&5
1990: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1991: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1992: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1993: (eval $ac_link_default) 2>&5
1994: ac_status=$?
1995: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996: (exit $ac_status); }; then
1997: # Find the output, starting from the most likely. This scheme is
1998: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1999: # resort.
2000:
2001: # Be careful to initialize this variable, since it used to be cached.
2002: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2003: ac_cv_exeext=
1.17 ohara 2004: for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2005: ls a.out conftest 2>/dev/null;
2006: ls a.* conftest.* 2>/dev/null`; do
1.14 noro 2007: case $ac_file in
1.17 ohara 2008: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2009: a.out ) # We found the default executable, but exeext='' is most
2010: # certainly right.
2011: break;;
2012: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2013: # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2014: export ac_cv_exeext
2015: break;;
2016: * ) break;;
1.14 noro 2017: esac
2018: done
2019: else
2020: echo "$as_me: failed program was:" >&5
1.17 ohara 2021: cat conftest.$ac_ext >&5
2022: { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2023: echo "$as_me: error: C compiler cannot create executables" >&2;}
1.14 noro 2024: { (exit 77); exit 77; }; }
2025: fi
2026:
2027: ac_exeext=$ac_cv_exeext
2028: echo "$as_me:$LINENO: result: $ac_file" >&5
2029: echo "${ECHO_T}$ac_file" >&6
2030:
2031: # Check the compiler produces executables we can run. If not, either
2032: # the compiler is broken, or we cross compile.
2033: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2034: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2035: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2036: # If not cross compiling, check that we can run a simple program.
2037: if test "$cross_compiling" != yes; then
2038: if { ac_try='./$ac_file'
2039: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2040: (eval $ac_try) 2>&5
2041: ac_status=$?
2042: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043: (exit $ac_status); }; }; then
2044: cross_compiling=no
2045: else
2046: if test "$cross_compiling" = maybe; then
2047: cross_compiling=yes
2048: else
2049: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1.17 ohara 2050: If you meant to cross compile, use \`--host'." >&5
1.14 noro 2051: echo "$as_me: error: cannot run C compiled programs.
1.17 ohara 2052: If you meant to cross compile, use \`--host'." >&2;}
1.14 noro 2053: { (exit 1); exit 1; }; }
2054: fi
2055: fi
2056: fi
2057: echo "$as_me:$LINENO: result: yes" >&5
2058: echo "${ECHO_T}yes" >&6
2059:
1.17 ohara 2060: rm -f a.out a.exe conftest$ac_cv_exeext
1.14 noro 2061: ac_clean_files=$ac_clean_files_save
2062: # Check the compiler produces executables we can run. If not, either
2063: # the compiler is broken, or we cross compile.
2064: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2065: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2066: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2067: echo "${ECHO_T}$cross_compiling" >&6
2068:
2069: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2070: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2071: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2072: (eval $ac_link) 2>&5
2073: ac_status=$?
2074: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075: (exit $ac_status); }; then
2076: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2077: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2078: # work properly (i.e., refer to `conftest.exe'), while it won't with
2079: # `rm'.
1.17 ohara 2080: for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1.14 noro 2081: case $ac_file in
1.17 ohara 2082: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1.14 noro 2083: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2084: export ac_cv_exeext
2085: break;;
2086: * ) break;;
2087: esac
2088: done
2089: else
1.17 ohara 2090: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2091: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1.14 noro 2092: { (exit 1); exit 1; }; }
2093: fi
2094:
2095: rm -f conftest$ac_cv_exeext
2096: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2097: echo "${ECHO_T}$ac_cv_exeext" >&6
2098:
2099: rm -f conftest.$ac_ext
2100: EXEEXT=$ac_cv_exeext
2101: ac_exeext=$EXEEXT
2102: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2103: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2104: if test "${ac_cv_objext+set}" = set; then
2105: echo $ECHO_N "(cached) $ECHO_C" >&6
2106: else
2107: cat >conftest.$ac_ext <<_ACEOF
2108: #line $LINENO "configure"
1.17 ohara 2109: #include "confdefs.h"
1.14 noro 2110:
1.17 ohara 2111: #ifdef F77_DUMMY_MAIN
2112: # ifdef __cplusplus
2113: extern "C"
2114: # endif
2115: int F77_DUMMY_MAIN() { return 1; }
2116: #endif
1.14 noro 2117: int
2118: main ()
2119: {
2120:
2121: ;
2122: return 0;
2123: }
2124: _ACEOF
2125: rm -f conftest.o conftest.obj
2126: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2127: (eval $ac_compile) 2>&5
2128: ac_status=$?
2129: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130: (exit $ac_status); }; then
2131: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2132: case $ac_file in
1.17 ohara 2133: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1.14 noro 2134: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2135: break;;
2136: esac
2137: done
2138: else
2139: echo "$as_me: failed program was:" >&5
1.17 ohara 2140: cat conftest.$ac_ext >&5
2141: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2142: echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1.14 noro 2143: { (exit 1); exit 1; }; }
2144: fi
2145:
2146: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2147: fi
2148: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2149: echo "${ECHO_T}$ac_cv_objext" >&6
2150: OBJEXT=$ac_cv_objext
2151: ac_objext=$OBJEXT
2152: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2153: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2154: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2155: echo $ECHO_N "(cached) $ECHO_C" >&6
2156: else
2157: cat >conftest.$ac_ext <<_ACEOF
2158: #line $LINENO "configure"
1.17 ohara 2159: #include "confdefs.h"
1.14 noro 2160:
1.17 ohara 2161: #ifdef F77_DUMMY_MAIN
2162: # ifdef __cplusplus
2163: extern "C"
2164: # endif
2165: int F77_DUMMY_MAIN() { return 1; }
2166: #endif
1.14 noro 2167: int
2168: main ()
2169: {
2170: #ifndef __GNUC__
2171: choke me
2172: #endif
2173:
2174: ;
2175: return 0;
2176: }
2177: _ACEOF
2178: rm -f conftest.$ac_objext
2179: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180: (eval $ac_compile) 2>&5
2181: ac_status=$?
2182: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183: (exit $ac_status); } &&
2184: { ac_try='test -s conftest.$ac_objext'
2185: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186: (eval $ac_try) 2>&5
2187: ac_status=$?
2188: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189: (exit $ac_status); }; }; then
2190: ac_compiler_gnu=yes
2191: else
2192: echo "$as_me: failed program was:" >&5
1.17 ohara 2193: cat conftest.$ac_ext >&5
1.14 noro 2194: ac_compiler_gnu=no
2195: fi
2196: rm -f conftest.$ac_objext conftest.$ac_ext
2197: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2198:
2199: fi
2200: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2201: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2202: GCC=`test $ac_compiler_gnu = yes && echo yes`
2203: ac_test_CFLAGS=${CFLAGS+set}
2204: ac_save_CFLAGS=$CFLAGS
2205: CFLAGS="-g"
2206: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2207: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2208: if test "${ac_cv_prog_cc_g+set}" = set; then
2209: echo $ECHO_N "(cached) $ECHO_C" >&6
2210: else
2211: cat >conftest.$ac_ext <<_ACEOF
2212: #line $LINENO "configure"
1.17 ohara 2213: #include "confdefs.h"
1.14 noro 2214:
1.17 ohara 2215: #ifdef F77_DUMMY_MAIN
2216: # ifdef __cplusplus
2217: extern "C"
2218: # endif
2219: int F77_DUMMY_MAIN() { return 1; }
2220: #endif
1.14 noro 2221: int
2222: main ()
2223: {
2224:
2225: ;
2226: return 0;
2227: }
2228: _ACEOF
2229: rm -f conftest.$ac_objext
2230: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231: (eval $ac_compile) 2>&5
2232: ac_status=$?
2233: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234: (exit $ac_status); } &&
2235: { ac_try='test -s conftest.$ac_objext'
2236: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237: (eval $ac_try) 2>&5
2238: ac_status=$?
2239: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240: (exit $ac_status); }; }; then
2241: ac_cv_prog_cc_g=yes
2242: else
2243: echo "$as_me: failed program was:" >&5
1.17 ohara 2244: cat conftest.$ac_ext >&5
1.14 noro 2245: ac_cv_prog_cc_g=no
2246: fi
2247: rm -f conftest.$ac_objext conftest.$ac_ext
2248: fi
2249: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2250: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2251: if test "$ac_test_CFLAGS" = set; then
2252: CFLAGS=$ac_save_CFLAGS
2253: elif test $ac_cv_prog_cc_g = yes; then
2254: if test "$GCC" = yes; then
2255: CFLAGS="-g -O2"
2256: else
2257: CFLAGS="-g"
2258: fi
2259: else
2260: if test "$GCC" = yes; then
2261: CFLAGS="-O2"
2262: else
2263: CFLAGS=
2264: fi
2265: fi
2266: # Some people use a C++ compiler to compile C. Since we use `exit',
2267: # in C++ we need to declare it. In case someone uses the same compiler
2268: # for both compiling C and C++ we need to have the C++ compiler decide
2269: # the declaration of exit, since it's the most demanding environment.
2270: cat >conftest.$ac_ext <<_ACEOF
2271: #ifndef __cplusplus
2272: choke me
2273: #endif
2274: _ACEOF
2275: rm -f conftest.$ac_objext
2276: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2277: (eval $ac_compile) 2>&5
2278: ac_status=$?
2279: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280: (exit $ac_status); } &&
2281: { ac_try='test -s conftest.$ac_objext'
2282: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283: (eval $ac_try) 2>&5
2284: ac_status=$?
2285: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286: (exit $ac_status); }; }; then
2287: for ac_declaration in \
2288: ''\
2289: '#include <stdlib.h>' \
2290: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2291: 'extern "C" void std::exit (int); using std::exit;' \
2292: 'extern "C" void exit (int) throw ();' \
2293: 'extern "C" void exit (int);' \
2294: 'void exit (int);'
2295: do
2296: cat >conftest.$ac_ext <<_ACEOF
2297: #line $LINENO "configure"
1.17 ohara 2298: #include "confdefs.h"
1.14 noro 2299: #include <stdlib.h>
2300: $ac_declaration
1.17 ohara 2301: #ifdef F77_DUMMY_MAIN
2302: # ifdef __cplusplus
2303: extern "C"
2304: # endif
2305: int F77_DUMMY_MAIN() { return 1; }
2306: #endif
1.14 noro 2307: int
2308: main ()
2309: {
2310: exit (42);
2311: ;
2312: return 0;
2313: }
2314: _ACEOF
2315: rm -f conftest.$ac_objext
2316: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317: (eval $ac_compile) 2>&5
2318: ac_status=$?
2319: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320: (exit $ac_status); } &&
2321: { ac_try='test -s conftest.$ac_objext'
2322: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323: (eval $ac_try) 2>&5
2324: ac_status=$?
2325: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326: (exit $ac_status); }; }; then
2327: :
2328: else
2329: echo "$as_me: failed program was:" >&5
1.17 ohara 2330: cat conftest.$ac_ext >&5
1.14 noro 2331: continue
2332: fi
2333: rm -f conftest.$ac_objext conftest.$ac_ext
2334: cat >conftest.$ac_ext <<_ACEOF
2335: #line $LINENO "configure"
1.17 ohara 2336: #include "confdefs.h"
1.14 noro 2337: $ac_declaration
1.17 ohara 2338: #ifdef F77_DUMMY_MAIN
2339: # ifdef __cplusplus
2340: extern "C"
2341: # endif
2342: int F77_DUMMY_MAIN() { return 1; }
2343: #endif
1.14 noro 2344: int
2345: main ()
2346: {
2347: exit (42);
2348: ;
2349: return 0;
2350: }
2351: _ACEOF
2352: rm -f conftest.$ac_objext
2353: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2354: (eval $ac_compile) 2>&5
2355: ac_status=$?
2356: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357: (exit $ac_status); } &&
2358: { ac_try='test -s conftest.$ac_objext'
2359: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360: (eval $ac_try) 2>&5
2361: ac_status=$?
2362: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363: (exit $ac_status); }; }; then
2364: break
2365: else
2366: echo "$as_me: failed program was:" >&5
1.17 ohara 2367: cat conftest.$ac_ext >&5
1.14 noro 2368: fi
2369: rm -f conftest.$ac_objext conftest.$ac_ext
2370: done
2371: rm -f conftest*
2372: if test -n "$ac_declaration"; then
2373: echo '#ifdef __cplusplus' >>confdefs.h
2374: echo $ac_declaration >>confdefs.h
2375: echo '#endif' >>confdefs.h
2376: fi
2377:
2378: else
2379: echo "$as_me: failed program was:" >&5
1.17 ohara 2380: cat conftest.$ac_ext >&5
1.14 noro 2381: fi
2382: rm -f conftest.$ac_objext conftest.$ac_ext
2383: ac_ext=c
2384: ac_cpp='$CPP $CPPFLAGS'
2385: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2386: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2387: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2388:
1.17 ohara 2389: ac_config_commands="$ac_config_commands default-1"
1.14 noro 2390:
2391: am_make=${MAKE-make}
2392: cat > confinc << 'END'
2393: doit:
2394: @echo done
2395: END
2396: # If we don't find an include directive, just comment out the code.
2397: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2398: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2399: am__include='#'
2400: am__quote=
2401: _am_result=none
2402: # First try GNU make style include.
2403: echo "include confinc" > confmf
2404: # We grep out `Entering directory' and `Leaving directory'
2405: # messages which can occur if `w' ends up in MAKEFLAGS.
2406: # In particular we don't look at `^make:' because GNU make might
2407: # be invoked under some other name (usually "gmake"), in which
2408: # case it prints its new name instead of `make'.
2409: if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2410: am__include=include
2411: am__quote=
2412: _am_result=GNU
2413: fi
2414: # Now try BSD make style include.
2415: if test "$am__include" = "#"; then
2416: echo '.include "confinc"' > confmf
2417: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2418: am__include=.include
2419: am__quote='"'
2420: _am_result=BSD
2421: fi
2422: fi
2423:
2424:
2425: echo "$as_me:$LINENO: result: $_am_result" >&5
2426: echo "${ECHO_T}$_am_result" >&6
2427: rm -f confinc confmf
2428:
2429:
2430: depcc="$CC" am_compiler_list=
2431:
2432: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2433: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2434: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2435: echo $ECHO_N "(cached) $ECHO_C" >&6
2436: else
2437: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2438: # We make a subdir and do the tests there. Otherwise we can end up
2439: # making bogus files that we don't know about and never remove. For
2440: # instance it was reported that on HP-UX the gcc test will end up
2441: # making a dummy file named `D' -- because `-MD' means `put the output
2442: # in D'.
2443: mkdir conftest.dir
2444: # Copy depcomp to subdir because otherwise we won't find it if we're
2445: # using a relative directory.
2446: cp "$am_depcomp" conftest.dir
2447: cd conftest.dir
2448:
2449: am_cv_CC_dependencies_compiler_type=none
2450: if test "$am_compiler_list" = ""; then
2451: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2452: fi
2453: for depmode in $am_compiler_list; do
2454: # We need to recreate these files for each test, as the compiler may
2455: # overwrite some of them when testing with obscure command lines.
2456: # This happens at least with the AIX C compiler.
2457: echo '#include "conftest.h"' > conftest.c
2458: echo 'int i;' > conftest.h
2459: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2460:
2461: case $depmode in
2462: nosideeffect)
2463: # after this tag, mechanisms are not by side-effect, so they'll
2464: # only be used when explicitly requested
2465: if test "x$enable_dependency_tracking" = xyes; then
2466: continue
2467: else
2468: break
2469: fi
2470: ;;
2471: none) break ;;
2472: esac
2473: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2474: # mode. It turns out that the SunPro C++ compiler does not properly
2475: # handle `-M -o', and we need to detect this.
2476: if depmode=$depmode \
2477: source=conftest.c object=conftest.o \
2478: depfile=conftest.Po tmpdepfile=conftest.TPo \
2479: $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2480: grep conftest.h conftest.Po > /dev/null 2>&1 &&
2481: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2482: am_cv_CC_dependencies_compiler_type=$depmode
2483: break
2484: fi
2485: done
2486:
2487: cd ..
2488: rm -rf conftest.dir
2489: else
2490: am_cv_CC_dependencies_compiler_type=none
2491: fi
2492:
2493: fi
2494: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2495: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2496: CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2497:
2498:
2499: # Find a good install program. We prefer a C program (faster),
2500: # so one script is as good as another. But avoid the broken or
2501: # incompatible versions:
2502: # SysV /etc/install, /usr/sbin/install
2503: # SunOS /usr/etc/install
2504: # IRIX /sbin/install
2505: # AIX /bin/install
2506: # AmigaOS /C/install, which installs bootblocks on floppy discs
2507: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2508: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2509: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2510: # ./install, which can be erroneously created by make from ./install.sh.
2511: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2512: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2513: if test -z "$INSTALL"; then
2514: if test "${ac_cv_path_install+set}" = set; then
2515: echo $ECHO_N "(cached) $ECHO_C" >&6
2516: else
2517: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518: for as_dir in $PATH
2519: do
2520: IFS=$as_save_IFS
2521: test -z "$as_dir" && as_dir=.
2522: # Account for people who put trailing slashes in PATH elements.
2523: case $as_dir/ in
2524: ./ | .// | /cC/* | \
2525: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2526: /usr/ucb/* ) ;;
2527: *)
2528: # OSF1 and SCO ODT 3.0 have their own names for install.
2529: # Don't use installbsd from OSF since it installs stuff as root
2530: # by default.
2531: for ac_prog in ginstall scoinst install; do
2532: for ac_exec_ext in '' $ac_executable_extensions; do
2533: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2534: if test $ac_prog = install &&
2535: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2536: # AIX install. It has an incompatible calling convention.
2537: :
2538: elif test $ac_prog = install &&
2539: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2540: # program-specific install script used by HP pwplus--don't use.
2541: :
2542: else
2543: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2544: break 3
2545: fi
2546: fi
2547: done
2548: done
2549: ;;
2550: esac
2551: done
2552:
2553:
2554: fi
2555: if test "${ac_cv_path_install+set}" = set; then
2556: INSTALL=$ac_cv_path_install
2557: else
2558: # As a last resort, use the slow shell script. We don't cache a
2559: # path for INSTALL within a source directory, because that will
2560: # break other packages using the cache if that directory is
2561: # removed, or if the path is relative.
2562: INSTALL=$ac_install_sh
2563: fi
2564: fi
2565: echo "$as_me:$LINENO: result: $INSTALL" >&5
2566: echo "${ECHO_T}$INSTALL" >&6
2567:
2568: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2569: # It thinks the first close brace ends the variable substitution.
2570: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2571:
2572: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2573:
2574: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2575:
2576: echo "$as_me:$LINENO: checking whether ln -s works" >&5
2577: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2578: LN_S=$as_ln_s
2579: if test "$LN_S" = "ln -s"; then
2580: echo "$as_me:$LINENO: result: yes" >&5
2581: echo "${ECHO_T}yes" >&6
2582: else
2583: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2584: echo "${ECHO_T}no, using $LN_S" >&6
2585: fi
2586:
2587: if test -n "$ac_tool_prefix"; then
2588: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2589: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2590: echo "$as_me:$LINENO: checking for $ac_word" >&5
2591: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2592: if test "${ac_cv_prog_RANLIB+set}" = set; then
2593: echo $ECHO_N "(cached) $ECHO_C" >&6
2594: else
2595: if test -n "$RANLIB"; then
2596: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2597: else
2598: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599: for as_dir in $PATH
2600: do
2601: IFS=$as_save_IFS
2602: test -z "$as_dir" && as_dir=.
2603: for ac_exec_ext in '' $ac_executable_extensions; do
2604: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2605: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2606: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607: break 2
2608: fi
2609: done
2610: done
2611:
2612: fi
2613: fi
2614: RANLIB=$ac_cv_prog_RANLIB
2615: if test -n "$RANLIB"; then
2616: echo "$as_me:$LINENO: result: $RANLIB" >&5
2617: echo "${ECHO_T}$RANLIB" >&6
2618: else
2619: echo "$as_me:$LINENO: result: no" >&5
2620: echo "${ECHO_T}no" >&6
2621: fi
2622:
2623: fi
2624: if test -z "$ac_cv_prog_RANLIB"; then
2625: ac_ct_RANLIB=$RANLIB
2626: # Extract the first word of "ranlib", so it can be a program name with args.
2627: set dummy ranlib; ac_word=$2
2628: echo "$as_me:$LINENO: checking for $ac_word" >&5
2629: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2630: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2631: echo $ECHO_N "(cached) $ECHO_C" >&6
2632: else
2633: if test -n "$ac_ct_RANLIB"; then
2634: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2635: else
2636: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637: for as_dir in $PATH
2638: do
2639: IFS=$as_save_IFS
2640: test -z "$as_dir" && as_dir=.
2641: for ac_exec_ext in '' $ac_executable_extensions; do
2642: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2643: ac_cv_prog_ac_ct_RANLIB="ranlib"
2644: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645: break 2
2646: fi
2647: done
2648: done
2649:
2650: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2651: fi
2652: fi
2653: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2654: if test -n "$ac_ct_RANLIB"; then
2655: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2656: echo "${ECHO_T}$ac_ct_RANLIB" >&6
2657: else
2658: echo "$as_me:$LINENO: result: no" >&5
2659: echo "${ECHO_T}no" >&6
2660: fi
2661:
2662: RANLIB=$ac_ct_RANLIB
2663: else
2664: RANLIB="$ac_cv_prog_RANLIB"
2665: fi
2666:
2667: for ac_prog in 'bison -y' byacc
2668: do
2669: # Extract the first word of "$ac_prog", so it can be a program name with args.
2670: set dummy $ac_prog; ac_word=$2
2671: echo "$as_me:$LINENO: checking for $ac_word" >&5
2672: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2673: if test "${ac_cv_prog_YACC+set}" = set; then
2674: echo $ECHO_N "(cached) $ECHO_C" >&6
2675: else
2676: if test -n "$YACC"; then
2677: ac_cv_prog_YACC="$YACC" # Let the user override the test.
2678: else
2679: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680: for as_dir in $PATH
2681: do
2682: IFS=$as_save_IFS
2683: test -z "$as_dir" && as_dir=.
2684: for ac_exec_ext in '' $ac_executable_extensions; do
2685: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686: ac_cv_prog_YACC="$ac_prog"
2687: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688: break 2
2689: fi
2690: done
2691: done
2692:
2693: fi
2694: fi
2695: YACC=$ac_cv_prog_YACC
2696: if test -n "$YACC"; then
2697: echo "$as_me:$LINENO: result: $YACC" >&5
2698: echo "${ECHO_T}$YACC" >&6
2699: else
2700: echo "$as_me:$LINENO: result: no" >&5
2701: echo "${ECHO_T}no" >&6
2702: fi
2703:
2704: test -n "$YACC" && break
2705: done
2706: test -n "$YACC" || YACC="yacc"
2707:
2708:
2709:
2710: ac_ext=c
2711: ac_cpp='$CPP $CPPFLAGS'
2712: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2713: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2714: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2715: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2716: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2717: # On Suns, sometimes $CPP names a directory.
2718: if test -n "$CPP" && test -d "$CPP"; then
2719: CPP=
2720: fi
2721: if test -z "$CPP"; then
2722: if test "${ac_cv_prog_CPP+set}" = set; then
2723: echo $ECHO_N "(cached) $ECHO_C" >&6
2724: else
2725: # Double quotes because CPP needs to be expanded
2726: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2727: do
2728: ac_preproc_ok=false
2729: for ac_c_preproc_warn_flag in '' yes
2730: do
2731: # Use a header file that comes with gcc, so configuring glibc
2732: # with a fresh cross-compiler works.
2733: # On the NeXT, cc -E runs the code through the compiler's parser,
2734: # not just through cpp. "Syntax error" is here to catch this case.
2735: cat >conftest.$ac_ext <<_ACEOF
2736: #line $LINENO "configure"
1.17 ohara 2737: #include "confdefs.h"
2738: #include <assert.h>
1.14 noro 2739: Syntax error
2740: _ACEOF
2741: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2742: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2743: ac_status=$?
1.17 ohara 2744: egrep -v '^ *\+' conftest.er1 >conftest.err
1.14 noro 2745: rm -f conftest.er1
2746: cat conftest.err >&5
2747: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748: (exit $ac_status); } >/dev/null; then
2749: if test -s conftest.err; then
2750: ac_cpp_err=$ac_c_preproc_warn_flag
2751: else
2752: ac_cpp_err=
2753: fi
2754: else
2755: ac_cpp_err=yes
2756: fi
2757: if test -z "$ac_cpp_err"; then
2758: :
2759: else
2760: echo "$as_me: failed program was:" >&5
1.17 ohara 2761: cat conftest.$ac_ext >&5
1.14 noro 2762: # Broken: fails on valid input.
2763: continue
2764: fi
2765: rm -f conftest.err conftest.$ac_ext
2766:
2767: # OK, works on sane cases. Now check whether non-existent headers
2768: # can be detected and how.
2769: cat >conftest.$ac_ext <<_ACEOF
2770: #line $LINENO "configure"
1.17 ohara 2771: #include "confdefs.h"
1.14 noro 2772: #include <ac_nonexistent.h>
2773: _ACEOF
2774: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2775: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2776: ac_status=$?
1.17 ohara 2777: egrep -v '^ *\+' conftest.er1 >conftest.err
1.14 noro 2778: rm -f conftest.er1
2779: cat conftest.err >&5
2780: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781: (exit $ac_status); } >/dev/null; then
2782: if test -s conftest.err; then
2783: ac_cpp_err=$ac_c_preproc_warn_flag
2784: else
2785: ac_cpp_err=
2786: fi
2787: else
2788: ac_cpp_err=yes
2789: fi
2790: if test -z "$ac_cpp_err"; then
2791: # Broken: success on invalid input.
2792: continue
2793: else
2794: echo "$as_me: failed program was:" >&5
1.17 ohara 2795: cat conftest.$ac_ext >&5
1.14 noro 2796: # Passes both tests.
2797: ac_preproc_ok=:
2798: break
2799: fi
2800: rm -f conftest.err conftest.$ac_ext
2801:
2802: done
2803: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2804: rm -f conftest.err conftest.$ac_ext
2805: if $ac_preproc_ok; then
2806: break
2807: fi
2808:
2809: done
2810: ac_cv_prog_CPP=$CPP
2811:
2812: fi
2813: CPP=$ac_cv_prog_CPP
2814: else
2815: ac_cv_prog_CPP=$CPP
2816: fi
2817: echo "$as_me:$LINENO: result: $CPP" >&5
2818: echo "${ECHO_T}$CPP" >&6
2819: ac_preproc_ok=false
2820: for ac_c_preproc_warn_flag in '' yes
2821: do
2822: # Use a header file that comes with gcc, so configuring glibc
2823: # with a fresh cross-compiler works.
2824: # On the NeXT, cc -E runs the code through the compiler's parser,
2825: # not just through cpp. "Syntax error" is here to catch this case.
2826: cat >conftest.$ac_ext <<_ACEOF
2827: #line $LINENO "configure"
1.17 ohara 2828: #include "confdefs.h"
2829: #include <assert.h>
1.14 noro 2830: Syntax error
2831: _ACEOF
2832: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2833: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2834: ac_status=$?
1.17 ohara 2835: egrep -v '^ *\+' conftest.er1 >conftest.err
1.14 noro 2836: rm -f conftest.er1
2837: cat conftest.err >&5
2838: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839: (exit $ac_status); } >/dev/null; then
2840: if test -s conftest.err; then
2841: ac_cpp_err=$ac_c_preproc_warn_flag
2842: else
2843: ac_cpp_err=
2844: fi
2845: else
2846: ac_cpp_err=yes
2847: fi
2848: if test -z "$ac_cpp_err"; then
2849: :
2850: else
2851: echo "$as_me: failed program was:" >&5
1.17 ohara 2852: cat conftest.$ac_ext >&5
1.14 noro 2853: # Broken: fails on valid input.
2854: continue
2855: fi
2856: rm -f conftest.err conftest.$ac_ext
2857:
2858: # OK, works on sane cases. Now check whether non-existent headers
2859: # can be detected and how.
2860: cat >conftest.$ac_ext <<_ACEOF
2861: #line $LINENO "configure"
1.17 ohara 2862: #include "confdefs.h"
1.14 noro 2863: #include <ac_nonexistent.h>
2864: _ACEOF
2865: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2866: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2867: ac_status=$?
1.17 ohara 2868: egrep -v '^ *\+' conftest.er1 >conftest.err
1.14 noro 2869: rm -f conftest.er1
2870: cat conftest.err >&5
2871: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872: (exit $ac_status); } >/dev/null; then
2873: if test -s conftest.err; then
2874: ac_cpp_err=$ac_c_preproc_warn_flag
2875: else
2876: ac_cpp_err=
2877: fi
2878: else
2879: ac_cpp_err=yes
2880: fi
2881: if test -z "$ac_cpp_err"; then
2882: # Broken: success on invalid input.
2883: continue
2884: else
2885: echo "$as_me: failed program was:" >&5
1.17 ohara 2886: cat conftest.$ac_ext >&5
1.14 noro 2887: # Passes both tests.
2888: ac_preproc_ok=:
2889: break
2890: fi
2891: rm -f conftest.err conftest.$ac_ext
2892:
2893: done
2894: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2895: rm -f conftest.err conftest.$ac_ext
2896: if $ac_preproc_ok; then
2897: :
2898: else
1.17 ohara 2899: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2900: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1.14 noro 2901: { (exit 1); exit 1; }; }
2902: fi
2903:
2904: ac_ext=c
2905: ac_cpp='$CPP $CPPFLAGS'
2906: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2907: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2908: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2909:
2910:
2911: echo "$as_me:$LINENO: checking for X" >&5
2912: echo $ECHO_N "checking for X... $ECHO_C" >&6
2913:
2914:
2915: # Check whether --with-x or --without-x was given.
2916: if test "${with_x+set}" = set; then
2917: withval="$with_x"
2918:
2919: fi;
2920: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2921: if test "x$with_x" = xno; then
2922: # The user explicitly disabled X.
2923: have_x=disabled
2924: else
2925: if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2926: # Both variables are already set.
2927: have_x=yes
2928: else
2929: if test "${ac_cv_have_x+set}" = set; then
2930: echo $ECHO_N "(cached) $ECHO_C" >&6
2931: else
2932: # One or both of the vars are not set, and there is no cached value.
2933: ac_x_includes=no ac_x_libraries=no
2934: rm -fr conftest.dir
2935: if mkdir conftest.dir; then
2936: cd conftest.dir
2937: # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2938: cat >Imakefile <<'_ACEOF'
2939: acfindx:
2940: @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2941: _ACEOF
2942: if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2943: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2944: eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2945: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2946: for ac_extension in a so sl; do
2947: if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2948: test -f $ac_im_libdir/libX11.$ac_extension; then
2949: ac_im_usrlibdir=$ac_im_libdir; break
2950: fi
2951: done
2952: # Screen out bogus values from the imake configuration. They are
2953: # bogus both because they are the default anyway, and because
2954: # using them would break gcc on systems where it needs fixed includes.
2955: case $ac_im_incroot in
2956: /usr/include) ;;
2957: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2958: esac
2959: case $ac_im_usrlibdir in
2960: /usr/lib | /lib) ;;
2961: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2962: esac
2963: fi
2964: cd ..
2965: rm -fr conftest.dir
2966: fi
2967:
2968: # Standard set of common directories for X headers.
2969: # Check X11 before X11Rn because it is often a symlink to the current release.
2970: ac_x_header_dirs='
2971: /usr/X11/include
2972: /usr/X11R6/include
2973: /usr/X11R5/include
2974: /usr/X11R4/include
2975:
2976: /usr/include/X11
2977: /usr/include/X11R6
2978: /usr/include/X11R5
2979: /usr/include/X11R4
2980:
2981: /usr/local/X11/include
2982: /usr/local/X11R6/include
2983: /usr/local/X11R5/include
2984: /usr/local/X11R4/include
2985:
2986: /usr/local/include/X11
2987: /usr/local/include/X11R6
2988: /usr/local/include/X11R5
2989: /usr/local/include/X11R4
2990:
2991: /usr/X386/include
2992: /usr/x386/include
2993: /usr/XFree86/include/X11
2994:
2995: /usr/include
2996: /usr/local/include
2997: /usr/unsupported/include
2998: /usr/athena/include
2999: /usr/local/x11r5/include
3000: /usr/lpp/Xamples/include
3001:
3002: /usr/openwin/include
3003: /usr/openwin/share/include'
3004:
3005: if test "$ac_x_includes" = no; then
3006: # Guess where to find include files, by looking for Intrinsic.h.
3007: # First, try using that file with no special directory specified.
3008: cat >conftest.$ac_ext <<_ACEOF
3009: #line $LINENO "configure"
1.17 ohara 3010: #include "confdefs.h"
1.14 noro 3011: #include <X11/Intrinsic.h>
3012: _ACEOF
3013: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3014: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3015: ac_status=$?
1.17 ohara 3016: egrep -v '^ *\+' conftest.er1 >conftest.err
1.14 noro 3017: rm -f conftest.er1
3018: cat conftest.err >&5
3019: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020: (exit $ac_status); } >/dev/null; then
3021: if test -s conftest.err; then
3022: ac_cpp_err=$ac_c_preproc_warn_flag
3023: else
3024: ac_cpp_err=
3025: fi
3026: else
3027: ac_cpp_err=yes
3028: fi
3029: if test -z "$ac_cpp_err"; then
3030: # We can compile using X headers with no special include directory.
3031: ac_x_includes=
3032: else
3033: echo "$as_me: failed program was:" >&5
1.17 ohara 3034: cat conftest.$ac_ext >&5
1.14 noro 3035: for ac_dir in $ac_x_header_dirs; do
3036: if test -r "$ac_dir/X11/Intrinsic.h"; then
3037: ac_x_includes=$ac_dir
3038: break
3039: fi
3040: done
3041: fi
3042: rm -f conftest.err conftest.$ac_ext
3043: fi # $ac_x_includes = no
3044:
3045: if test "$ac_x_libraries" = no; then
3046: # Check for the libraries.
3047: # See if we find them without any special options.
3048: # Don't add to $LIBS permanently.
3049: ac_save_LIBS=$LIBS
3050: LIBS="-lXt $LIBS"
3051: cat >conftest.$ac_ext <<_ACEOF
3052: #line $LINENO "configure"
1.17 ohara 3053: #include "confdefs.h"
1.14 noro 3054: #include <X11/Intrinsic.h>
1.17 ohara 3055: #ifdef F77_DUMMY_MAIN
3056: # ifdef __cplusplus
3057: extern "C"
3058: # endif
3059: int F77_DUMMY_MAIN() { return 1; }
3060: #endif
1.14 noro 3061: int
3062: main ()
3063: {
3064: XtMalloc (0)
3065: ;
3066: return 0;
3067: }
3068: _ACEOF
3069: rm -f conftest.$ac_objext conftest$ac_exeext
3070: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3071: (eval $ac_link) 2>&5
3072: ac_status=$?
3073: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074: (exit $ac_status); } &&
3075: { ac_try='test -s conftest$ac_exeext'
3076: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077: (eval $ac_try) 2>&5
3078: ac_status=$?
3079: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080: (exit $ac_status); }; }; then
3081: LIBS=$ac_save_LIBS
3082: # We can link X programs with no special library path.
3083: ac_x_libraries=
3084: else
3085: echo "$as_me: failed program was:" >&5
1.17 ohara 3086: cat conftest.$ac_ext >&5
1.14 noro 3087: LIBS=$ac_save_LIBS
3088: for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3089: do
3090: # Don't even attempt the hair of trying to link an X program!
3091: for ac_extension in a so sl; do
3092: if test -r $ac_dir/libXt.$ac_extension; then
3093: ac_x_libraries=$ac_dir
3094: break 2
3095: fi
3096: done
3097: done
3098: fi
3099: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3100: fi # $ac_x_libraries = no
3101:
3102: if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3103: # Didn't find X anywhere. Cache the known absence of X.
3104: ac_cv_have_x="have_x=no"
3105: else
3106: # Record where we found X for the cache.
3107: ac_cv_have_x="have_x=yes \
3108: ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3109: fi
3110: fi
3111:
3112: fi
3113: eval "$ac_cv_have_x"
3114: fi # $with_x != no
3115:
3116: if test "$have_x" != yes; then
3117: echo "$as_me:$LINENO: result: $have_x" >&5
3118: echo "${ECHO_T}$have_x" >&6
3119: no_x=yes
3120: else
3121: # If each of the values was on the command line, it overrides each guess.
3122: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3123: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3124: # Update the cache value to reflect the command line values.
3125: ac_cv_have_x="have_x=yes \
3126: ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3127: echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3128: echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3129: fi
3130:
3131: if test "$no_x" = yes; then
3132: # Not all programs may use this symbol, but it does not hurt to define it.
3133:
3134: cat >>confdefs.h <<\_ACEOF
3135: #define X_DISPLAY_MISSING 1
3136: _ACEOF
3137:
3138: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3139: else
3140: if test -n "$x_includes"; then
3141: X_CFLAGS="$X_CFLAGS -I$x_includes"
3142: fi
3143:
3144: # It would also be nice to do this for all -L options, not just this one.
3145: if test -n "$x_libraries"; then
3146: X_LIBS="$X_LIBS -L$x_libraries"
3147: # For Solaris; some versions of Sun CC require a space after -R and
3148: # others require no space. Words are not sufficient . . . .
3149: case `(uname -sr) 2>/dev/null` in
3150: "SunOS 5"*)
3151: echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3152: echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3153: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3154: cat >conftest.$ac_ext <<_ACEOF
3155: #line $LINENO "configure"
1.17 ohara 3156: #include "confdefs.h"
1.14 noro 3157:
1.17 ohara 3158: #ifdef F77_DUMMY_MAIN
3159: # ifdef __cplusplus
3160: extern "C"
3161: # endif
3162: int F77_DUMMY_MAIN() { return 1; }
3163: #endif
1.14 noro 3164: int
3165: main ()
3166: {
3167:
3168: ;
3169: return 0;
3170: }
3171: _ACEOF
3172: rm -f conftest.$ac_objext conftest$ac_exeext
3173: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3174: (eval $ac_link) 2>&5
3175: ac_status=$?
3176: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177: (exit $ac_status); } &&
3178: { ac_try='test -s conftest$ac_exeext'
3179: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180: (eval $ac_try) 2>&5
3181: ac_status=$?
3182: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183: (exit $ac_status); }; }; then
3184: ac_R_nospace=yes
3185: else
3186: echo "$as_me: failed program was:" >&5
1.17 ohara 3187: cat conftest.$ac_ext >&5
1.14 noro 3188: ac_R_nospace=no
3189: fi
3190: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3191: if test $ac_R_nospace = yes; then
3192: echo "$as_me:$LINENO: result: no" >&5
3193: echo "${ECHO_T}no" >&6
3194: X_LIBS="$X_LIBS -R$x_libraries"
3195: else
3196: LIBS="$ac_xsave_LIBS -R $x_libraries"
3197: cat >conftest.$ac_ext <<_ACEOF
3198: #line $LINENO "configure"
1.17 ohara 3199: #include "confdefs.h"
1.14 noro 3200:
1.17 ohara 3201: #ifdef F77_DUMMY_MAIN
3202: # ifdef __cplusplus
3203: extern "C"
3204: # endif
3205: int F77_DUMMY_MAIN() { return 1; }
3206: #endif
1.14 noro 3207: int
3208: main ()
3209: {
3210:
3211: ;
3212: return 0;
3213: }
3214: _ACEOF
3215: rm -f conftest.$ac_objext conftest$ac_exeext
3216: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3217: (eval $ac_link) 2>&5
3218: ac_status=$?
3219: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220: (exit $ac_status); } &&
3221: { ac_try='test -s conftest$ac_exeext'
3222: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3223: (eval $ac_try) 2>&5
3224: ac_status=$?
3225: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226: (exit $ac_status); }; }; then
3227: ac_R_space=yes
3228: else
3229: echo "$as_me: failed program was:" >&5
1.17 ohara 3230: cat conftest.$ac_ext >&5
1.14 noro 3231: ac_R_space=no
3232: fi
3233: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3234: if test $ac_R_space = yes; then
3235: echo "$as_me:$LINENO: result: yes" >&5
3236: echo "${ECHO_T}yes" >&6
3237: X_LIBS="$X_LIBS -R $x_libraries"
3238: else
3239: echo "$as_me:$LINENO: result: neither works" >&5
3240: echo "${ECHO_T}neither works" >&6
3241: fi
3242: fi
3243: LIBS=$ac_xsave_LIBS
3244: esac
3245: fi
3246:
3247: # Check for system-dependent libraries X programs must link with.
3248: # Do this before checking for the system-independent R6 libraries
3249: # (-lICE), since we may need -lsocket or whatever for X linking.
3250:
3251: if test "$ISC" = yes; then
3252: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3253: else
3254: # Martyn Johnson says this is needed for Ultrix, if the X
3255: # libraries were built with DECnet support. And Karl Berry says
3256: # the Alpha needs dnet_stub (dnet does not exist).
3257: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3258: cat >conftest.$ac_ext <<_ACEOF
3259: #line $LINENO "configure"
1.17 ohara 3260: #include "confdefs.h"
1.14 noro 3261:
3262: /* Override any gcc2 internal prototype to avoid an error. */
3263: #ifdef __cplusplus
3264: extern "C"
3265: #endif
3266: /* We use char because int might match the return type of a gcc2
3267: builtin and then its argument prototype would still apply. */
3268: char XOpenDisplay ();
1.17 ohara 3269: #ifdef F77_DUMMY_MAIN
3270: # ifdef __cplusplus
3271: extern "C"
3272: # endif
3273: int F77_DUMMY_MAIN() { return 1; }
3274: #endif
1.14 noro 3275: int
3276: main ()
3277: {
3278: XOpenDisplay ();
3279: ;
3280: return 0;
3281: }
3282: _ACEOF
3283: rm -f conftest.$ac_objext conftest$ac_exeext
3284: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3285: (eval $ac_link) 2>&5
3286: ac_status=$?
3287: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288: (exit $ac_status); } &&
3289: { ac_try='test -s conftest$ac_exeext'
3290: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291: (eval $ac_try) 2>&5
3292: ac_status=$?
3293: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294: (exit $ac_status); }; }; then
3295: :
3296: else
3297: echo "$as_me: failed program was:" >&5
1.17 ohara 3298: cat conftest.$ac_ext >&5
1.14 noro 3299: echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3300: echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3301: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3302: echo $ECHO_N "(cached) $ECHO_C" >&6
3303: else
3304: ac_check_lib_save_LIBS=$LIBS
3305: LIBS="-ldnet $LIBS"
3306: cat >conftest.$ac_ext <<_ACEOF
3307: #line $LINENO "configure"
1.17 ohara 3308: #include "confdefs.h"
1.14 noro 3309:
3310: /* Override any gcc2 internal prototype to avoid an error. */
3311: #ifdef __cplusplus
3312: extern "C"
3313: #endif
3314: /* We use char because int might match the return type of a gcc2
3315: builtin and then its argument prototype would still apply. */
3316: char dnet_ntoa ();
1.17 ohara 3317: #ifdef F77_DUMMY_MAIN
3318: # ifdef __cplusplus
3319: extern "C"
3320: # endif
3321: int F77_DUMMY_MAIN() { return 1; }
3322: #endif
1.14 noro 3323: int
3324: main ()
3325: {
3326: dnet_ntoa ();
3327: ;
3328: return 0;
3329: }
3330: _ACEOF
3331: rm -f conftest.$ac_objext conftest$ac_exeext
3332: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3333: (eval $ac_link) 2>&5
3334: ac_status=$?
3335: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336: (exit $ac_status); } &&
3337: { ac_try='test -s conftest$ac_exeext'
3338: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339: (eval $ac_try) 2>&5
3340: ac_status=$?
3341: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342: (exit $ac_status); }; }; then
3343: ac_cv_lib_dnet_dnet_ntoa=yes
3344: else
3345: echo "$as_me: failed program was:" >&5
1.17 ohara 3346: cat conftest.$ac_ext >&5
1.14 noro 3347: ac_cv_lib_dnet_dnet_ntoa=no
3348: fi
3349: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3350: LIBS=$ac_check_lib_save_LIBS
3351: fi
3352: echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3353: echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3354: if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3355: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3356: fi
3357:
3358: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3359: echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3360: echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3361: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3362: echo $ECHO_N "(cached) $ECHO_C" >&6
3363: else
3364: ac_check_lib_save_LIBS=$LIBS
3365: LIBS="-ldnet_stub $LIBS"
3366: cat >conftest.$ac_ext <<_ACEOF
3367: #line $LINENO "configure"
1.17 ohara 3368: #include "confdefs.h"
1.14 noro 3369:
3370: /* Override any gcc2 internal prototype to avoid an error. */
3371: #ifdef __cplusplus
3372: extern "C"
3373: #endif
3374: /* We use char because int might match the return type of a gcc2
3375: builtin and then its argument prototype would still apply. */
3376: char dnet_ntoa ();
1.17 ohara 3377: #ifdef F77_DUMMY_MAIN
3378: # ifdef __cplusplus
3379: extern "C"
3380: # endif
3381: int F77_DUMMY_MAIN() { return 1; }
3382: #endif
1.14 noro 3383: int
3384: main ()
3385: {
3386: dnet_ntoa ();
3387: ;
3388: return 0;
3389: }
3390: _ACEOF
3391: rm -f conftest.$ac_objext conftest$ac_exeext
3392: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3393: (eval $ac_link) 2>&5
3394: ac_status=$?
3395: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396: (exit $ac_status); } &&
3397: { ac_try='test -s conftest$ac_exeext'
3398: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399: (eval $ac_try) 2>&5
3400: ac_status=$?
3401: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402: (exit $ac_status); }; }; then
3403: ac_cv_lib_dnet_stub_dnet_ntoa=yes
3404: else
3405: echo "$as_me: failed program was:" >&5
1.17 ohara 3406: cat conftest.$ac_ext >&5
1.14 noro 3407: ac_cv_lib_dnet_stub_dnet_ntoa=no
3408: fi
3409: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3410: LIBS=$ac_check_lib_save_LIBS
3411: fi
3412: echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3413: echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3414: if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3415: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3416: fi
3417:
3418: fi
3419: fi
3420: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3421: LIBS="$ac_xsave_LIBS"
3422:
3423: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3424: # to get the SysV transport functions.
3425: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3426: # needs -lnsl.
3427: # The nsl library prevents programs from opening the X display
3428: # on Irix 5.2, according to T.E. Dickey.
3429: # The functions gethostbyname, getservbyname, and inet_addr are
3430: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3431: echo "$as_me:$LINENO: checking for gethostbyname" >&5
3432: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3433: if test "${ac_cv_func_gethostbyname+set}" = set; then
3434: echo $ECHO_N "(cached) $ECHO_C" >&6
3435: else
3436: cat >conftest.$ac_ext <<_ACEOF
3437: #line $LINENO "configure"
1.17 ohara 3438: #include "confdefs.h"
1.14 noro 3439: /* System header to define __stub macros and hopefully few prototypes,
1.17 ohara 3440: which can conflict with char gethostbyname (); below. */
3441: #include <assert.h>
1.14 noro 3442: /* Override any gcc2 internal prototype to avoid an error. */
3443: #ifdef __cplusplus
3444: extern "C"
3445: #endif
3446: /* We use char because int might match the return type of a gcc2
3447: builtin and then its argument prototype would still apply. */
3448: char gethostbyname ();
1.17 ohara 3449: char (*f) ();
3450:
3451: #ifdef F77_DUMMY_MAIN
3452: # ifdef __cplusplus
3453: extern "C"
3454: # endif
3455: int F77_DUMMY_MAIN() { return 1; }
3456: #endif
3457: int
3458: main ()
3459: {
1.14 noro 3460: /* The GNU C library defines this for functions which it implements
3461: to always fail with ENOSYS. Some functions are actually named
3462: something starting with __ and the normal name is an alias. */
3463: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3464: choke me
3465: #else
1.17 ohara 3466: f = gethostbyname;
1.14 noro 3467: #endif
3468:
3469: ;
3470: return 0;
3471: }
3472: _ACEOF
3473: rm -f conftest.$ac_objext conftest$ac_exeext
3474: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3475: (eval $ac_link) 2>&5
3476: ac_status=$?
3477: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478: (exit $ac_status); } &&
3479: { ac_try='test -s conftest$ac_exeext'
3480: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481: (eval $ac_try) 2>&5
3482: ac_status=$?
3483: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484: (exit $ac_status); }; }; then
3485: ac_cv_func_gethostbyname=yes
3486: else
3487: echo "$as_me: failed program was:" >&5
1.17 ohara 3488: cat conftest.$ac_ext >&5
1.14 noro 3489: ac_cv_func_gethostbyname=no
3490: fi
3491: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3492: fi
3493: echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3494: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3495:
3496: if test $ac_cv_func_gethostbyname = no; then
3497: echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3498: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3499: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3500: echo $ECHO_N "(cached) $ECHO_C" >&6
3501: else
3502: ac_check_lib_save_LIBS=$LIBS
3503: LIBS="-lnsl $LIBS"
3504: cat >conftest.$ac_ext <<_ACEOF
3505: #line $LINENO "configure"
1.17 ohara 3506: #include "confdefs.h"
1.14 noro 3507:
3508: /* Override any gcc2 internal prototype to avoid an error. */
3509: #ifdef __cplusplus
3510: extern "C"
3511: #endif
3512: /* We use char because int might match the return type of a gcc2
3513: builtin and then its argument prototype would still apply. */
3514: char gethostbyname ();
1.17 ohara 3515: #ifdef F77_DUMMY_MAIN
3516: # ifdef __cplusplus
3517: extern "C"
3518: # endif
3519: int F77_DUMMY_MAIN() { return 1; }
3520: #endif
1.14 noro 3521: int
3522: main ()
3523: {
3524: gethostbyname ();
3525: ;
3526: return 0;
3527: }
3528: _ACEOF
3529: rm -f conftest.$ac_objext conftest$ac_exeext
3530: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3531: (eval $ac_link) 2>&5
3532: ac_status=$?
3533: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534: (exit $ac_status); } &&
3535: { ac_try='test -s conftest$ac_exeext'
3536: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537: (eval $ac_try) 2>&5
3538: ac_status=$?
3539: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540: (exit $ac_status); }; }; then
3541: ac_cv_lib_nsl_gethostbyname=yes
3542: else
3543: echo "$as_me: failed program was:" >&5
1.17 ohara 3544: cat conftest.$ac_ext >&5
1.14 noro 3545: ac_cv_lib_nsl_gethostbyname=no
3546: fi
3547: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3548: LIBS=$ac_check_lib_save_LIBS
3549: fi
3550: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3551: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3552: if test $ac_cv_lib_nsl_gethostbyname = yes; then
3553: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3554: fi
3555:
3556: if test $ac_cv_lib_nsl_gethostbyname = no; then
3557: echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3558: echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3559: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3560: echo $ECHO_N "(cached) $ECHO_C" >&6
3561: else
3562: ac_check_lib_save_LIBS=$LIBS
3563: LIBS="-lbsd $LIBS"
3564: cat >conftest.$ac_ext <<_ACEOF
3565: #line $LINENO "configure"
1.17 ohara 3566: #include "confdefs.h"
1.14 noro 3567:
3568: /* Override any gcc2 internal prototype to avoid an error. */
3569: #ifdef __cplusplus
3570: extern "C"
3571: #endif
3572: /* We use char because int might match the return type of a gcc2
3573: builtin and then its argument prototype would still apply. */
3574: char gethostbyname ();
1.17 ohara 3575: #ifdef F77_DUMMY_MAIN
3576: # ifdef __cplusplus
3577: extern "C"
3578: # endif
3579: int F77_DUMMY_MAIN() { return 1; }
3580: #endif
1.14 noro 3581: int
3582: main ()
3583: {
3584: gethostbyname ();
3585: ;
3586: return 0;
3587: }
3588: _ACEOF
3589: rm -f conftest.$ac_objext conftest$ac_exeext
3590: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3591: (eval $ac_link) 2>&5
3592: ac_status=$?
3593: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594: (exit $ac_status); } &&
3595: { ac_try='test -s conftest$ac_exeext'
3596: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597: (eval $ac_try) 2>&5
3598: ac_status=$?
3599: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600: (exit $ac_status); }; }; then
3601: ac_cv_lib_bsd_gethostbyname=yes
3602: else
3603: echo "$as_me: failed program was:" >&5
1.17 ohara 3604: cat conftest.$ac_ext >&5
1.14 noro 3605: ac_cv_lib_bsd_gethostbyname=no
3606: fi
3607: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3608: LIBS=$ac_check_lib_save_LIBS
3609: fi
3610: echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3611: echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3612: if test $ac_cv_lib_bsd_gethostbyname = yes; then
3613: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3614: fi
3615:
3616: fi
3617: fi
3618:
3619: # lieder@skyler.mavd.honeywell.com says without -lsocket,
3620: # socket/setsockopt and other routines are undefined under SCO ODT
3621: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3622: # on later versions), says Simon Leinen: it contains gethostby*
1.17 ohara 3623: # variants that don't use the nameserver (or something). -lsocket
1.14 noro 3624: # must be given before -lnsl if both are needed. We assume that
3625: # if connect needs -lnsl, so does gethostbyname.
3626: echo "$as_me:$LINENO: checking for connect" >&5
3627: echo $ECHO_N "checking for connect... $ECHO_C" >&6
3628: if test "${ac_cv_func_connect+set}" = set; then
3629: echo $ECHO_N "(cached) $ECHO_C" >&6
3630: else
3631: cat >conftest.$ac_ext <<_ACEOF
3632: #line $LINENO "configure"
1.17 ohara 3633: #include "confdefs.h"
1.14 noro 3634: /* System header to define __stub macros and hopefully few prototypes,
1.17 ohara 3635: which can conflict with char connect (); below. */
3636: #include <assert.h>
1.14 noro 3637: /* Override any gcc2 internal prototype to avoid an error. */
3638: #ifdef __cplusplus
3639: extern "C"
3640: #endif
3641: /* We use char because int might match the return type of a gcc2
3642: builtin and then its argument prototype would still apply. */
3643: char connect ();
1.17 ohara 3644: char (*f) ();
3645:
3646: #ifdef F77_DUMMY_MAIN
3647: # ifdef __cplusplus
3648: extern "C"
3649: # endif
3650: int F77_DUMMY_MAIN() { return 1; }
3651: #endif
3652: int
3653: main ()
3654: {
1.14 noro 3655: /* The GNU C library defines this for functions which it implements
3656: to always fail with ENOSYS. Some functions are actually named
3657: something starting with __ and the normal name is an alias. */
3658: #if defined (__stub_connect) || defined (__stub___connect)
3659: choke me
3660: #else
1.17 ohara 3661: f = connect;
1.14 noro 3662: #endif
3663:
3664: ;
3665: return 0;
3666: }
3667: _ACEOF
3668: rm -f conftest.$ac_objext conftest$ac_exeext
3669: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3670: (eval $ac_link) 2>&5
3671: ac_status=$?
3672: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673: (exit $ac_status); } &&
3674: { ac_try='test -s conftest$ac_exeext'
3675: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676: (eval $ac_try) 2>&5
3677: ac_status=$?
3678: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679: (exit $ac_status); }; }; then
3680: ac_cv_func_connect=yes
3681: else
3682: echo "$as_me: failed program was:" >&5
1.17 ohara 3683: cat conftest.$ac_ext >&5
1.14 noro 3684: ac_cv_func_connect=no
3685: fi
3686: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3687: fi
3688: echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3689: echo "${ECHO_T}$ac_cv_func_connect" >&6
3690:
3691: if test $ac_cv_func_connect = no; then
3692: echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3693: echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3694: if test "${ac_cv_lib_socket_connect+set}" = set; then
3695: echo $ECHO_N "(cached) $ECHO_C" >&6
3696: else
3697: ac_check_lib_save_LIBS=$LIBS
3698: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3699: cat >conftest.$ac_ext <<_ACEOF
3700: #line $LINENO "configure"
1.17 ohara 3701: #include "confdefs.h"
1.14 noro 3702:
3703: /* Override any gcc2 internal prototype to avoid an error. */
3704: #ifdef __cplusplus
3705: extern "C"
3706: #endif
3707: /* We use char because int might match the return type of a gcc2
3708: builtin and then its argument prototype would still apply. */
3709: char connect ();
1.17 ohara 3710: #ifdef F77_DUMMY_MAIN
3711: # ifdef __cplusplus
3712: extern "C"
3713: # endif
3714: int F77_DUMMY_MAIN() { return 1; }
3715: #endif
1.14 noro 3716: int
3717: main ()
3718: {
3719: connect ();
3720: ;
3721: return 0;
3722: }
3723: _ACEOF
3724: rm -f conftest.$ac_objext conftest$ac_exeext
3725: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3726: (eval $ac_link) 2>&5
3727: ac_status=$?
3728: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729: (exit $ac_status); } &&
3730: { ac_try='test -s conftest$ac_exeext'
3731: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732: (eval $ac_try) 2>&5
3733: ac_status=$?
3734: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735: (exit $ac_status); }; }; then
3736: ac_cv_lib_socket_connect=yes
3737: else
3738: echo "$as_me: failed program was:" >&5
1.17 ohara 3739: cat conftest.$ac_ext >&5
1.14 noro 3740: ac_cv_lib_socket_connect=no
3741: fi
3742: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3743: LIBS=$ac_check_lib_save_LIBS
3744: fi
3745: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3746: echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3747: if test $ac_cv_lib_socket_connect = yes; then
3748: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3749: fi
3750:
3751: fi
3752:
3753: # Guillermo Gomez says -lposix is necessary on A/UX.
3754: echo "$as_me:$LINENO: checking for remove" >&5
3755: echo $ECHO_N "checking for remove... $ECHO_C" >&6
3756: if test "${ac_cv_func_remove+set}" = set; then
3757: echo $ECHO_N "(cached) $ECHO_C" >&6
3758: else
3759: cat >conftest.$ac_ext <<_ACEOF
3760: #line $LINENO "configure"
1.17 ohara 3761: #include "confdefs.h"
1.14 noro 3762: /* System header to define __stub macros and hopefully few prototypes,
1.17 ohara 3763: which can conflict with char remove (); below. */
3764: #include <assert.h>
1.14 noro 3765: /* Override any gcc2 internal prototype to avoid an error. */
3766: #ifdef __cplusplus
3767: extern "C"
3768: #endif
3769: /* We use char because int might match the return type of a gcc2
3770: builtin and then its argument prototype would still apply. */
3771: char remove ();
1.17 ohara 3772: char (*f) ();
3773:
3774: #ifdef F77_DUMMY_MAIN
3775: # ifdef __cplusplus
3776: extern "C"
3777: # endif
3778: int F77_DUMMY_MAIN() { return 1; }
3779: #endif
3780: int
3781: main ()
3782: {
1.14 noro 3783: /* The GNU C library defines this for functions which it implements
3784: to always fail with ENOSYS. Some functions are actually named
3785: something starting with __ and the normal name is an alias. */
3786: #if defined (__stub_remove) || defined (__stub___remove)
3787: choke me
3788: #else
1.17 ohara 3789: f = remove;
1.14 noro 3790: #endif
3791:
3792: ;
3793: return 0;
3794: }
3795: _ACEOF
3796: rm -f conftest.$ac_objext conftest$ac_exeext
3797: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3798: (eval $ac_link) 2>&5
3799: ac_status=$?
3800: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801: (exit $ac_status); } &&
3802: { ac_try='test -s conftest$ac_exeext'
3803: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804: (eval $ac_try) 2>&5
3805: ac_status=$?
3806: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807: (exit $ac_status); }; }; then
3808: ac_cv_func_remove=yes
3809: else
3810: echo "$as_me: failed program was:" >&5
1.17 ohara 3811: cat conftest.$ac_ext >&5
1.14 noro 3812: ac_cv_func_remove=no
3813: fi
3814: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3815: fi
3816: echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3817: echo "${ECHO_T}$ac_cv_func_remove" >&6
3818:
3819: if test $ac_cv_func_remove = no; then
3820: echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3821: echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3822: if test "${ac_cv_lib_posix_remove+set}" = set; then
3823: echo $ECHO_N "(cached) $ECHO_C" >&6
3824: else
3825: ac_check_lib_save_LIBS=$LIBS
3826: LIBS="-lposix $LIBS"
3827: cat >conftest.$ac_ext <<_ACEOF
3828: #line $LINENO "configure"
1.17 ohara 3829: #include "confdefs.h"
1.14 noro 3830:
3831: /* Override any gcc2 internal prototype to avoid an error. */
3832: #ifdef __cplusplus
3833: extern "C"
3834: #endif
3835: /* We use char because int might match the return type of a gcc2
3836: builtin and then its argument prototype would still apply. */
3837: char remove ();
1.17 ohara 3838: #ifdef F77_DUMMY_MAIN
3839: # ifdef __cplusplus
3840: extern "C"
3841: # endif
3842: int F77_DUMMY_MAIN() { return 1; }
3843: #endif
1.14 noro 3844: int
3845: main ()
3846: {
3847: remove ();
3848: ;
3849: return 0;
3850: }
3851: _ACEOF
3852: rm -f conftest.$ac_objext conftest$ac_exeext
3853: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3854: (eval $ac_link) 2>&5
3855: ac_status=$?
3856: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857: (exit $ac_status); } &&
3858: { ac_try='test -s conftest$ac_exeext'
3859: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860: (eval $ac_try) 2>&5
3861: ac_status=$?
3862: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863: (exit $ac_status); }; }; then
3864: ac_cv_lib_posix_remove=yes
3865: else
3866: echo "$as_me: failed program was:" >&5
1.17 ohara 3867: cat conftest.$ac_ext >&5
1.14 noro 3868: ac_cv_lib_posix_remove=no
3869: fi
3870: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3871: LIBS=$ac_check_lib_save_LIBS
3872: fi
3873: echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3874: echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3875: if test $ac_cv_lib_posix_remove = yes; then
3876: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3877: fi
3878:
3879: fi
3880:
3881: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3882: echo "$as_me:$LINENO: checking for shmat" >&5
3883: echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3884: if test "${ac_cv_func_shmat+set}" = set; then
3885: echo $ECHO_N "(cached) $ECHO_C" >&6
3886: else
3887: cat >conftest.$ac_ext <<_ACEOF
3888: #line $LINENO "configure"
1.17 ohara 3889: #include "confdefs.h"
1.14 noro 3890: /* System header to define __stub macros and hopefully few prototypes,
1.17 ohara 3891: which can conflict with char shmat (); below. */
3892: #include <assert.h>
1.14 noro 3893: /* Override any gcc2 internal prototype to avoid an error. */
3894: #ifdef __cplusplus
3895: extern "C"
3896: #endif
3897: /* We use char because int might match the return type of a gcc2
3898: builtin and then its argument prototype would still apply. */
3899: char shmat ();
1.17 ohara 3900: char (*f) ();
3901:
3902: #ifdef F77_DUMMY_MAIN
3903: # ifdef __cplusplus
3904: extern "C"
3905: # endif
3906: int F77_DUMMY_MAIN() { return 1; }
3907: #endif
3908: int
3909: main ()
3910: {
1.14 noro 3911: /* The GNU C library defines this for functions which it implements
3912: to always fail with ENOSYS. Some functions are actually named
3913: something starting with __ and the normal name is an alias. */
3914: #if defined (__stub_shmat) || defined (__stub___shmat)
3915: choke me
3916: #else
1.17 ohara 3917: f = shmat;
1.14 noro 3918: #endif
3919:
3920: ;
3921: return 0;
3922: }
3923: _ACEOF
3924: rm -f conftest.$ac_objext conftest$ac_exeext
3925: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3926: (eval $ac_link) 2>&5
3927: ac_status=$?
3928: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929: (exit $ac_status); } &&
3930: { ac_try='test -s conftest$ac_exeext'
3931: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932: (eval $ac_try) 2>&5
3933: ac_status=$?
3934: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935: (exit $ac_status); }; }; then
3936: ac_cv_func_shmat=yes
3937: else
3938: echo "$as_me: failed program was:" >&5
1.17 ohara 3939: cat conftest.$ac_ext >&5
1.14 noro 3940: ac_cv_func_shmat=no
3941: fi
3942: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3943: fi
3944: echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3945: echo "${ECHO_T}$ac_cv_func_shmat" >&6
3946:
3947: if test $ac_cv_func_shmat = no; then
3948: echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3949: echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3950: if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3951: echo $ECHO_N "(cached) $ECHO_C" >&6
3952: else
3953: ac_check_lib_save_LIBS=$LIBS
3954: LIBS="-lipc $LIBS"
3955: cat >conftest.$ac_ext <<_ACEOF
3956: #line $LINENO "configure"
1.17 ohara 3957: #include "confdefs.h"
1.14 noro 3958:
3959: /* Override any gcc2 internal prototype to avoid an error. */
3960: #ifdef __cplusplus
3961: extern "C"
3962: #endif
3963: /* We use char because int might match the return type of a gcc2
3964: builtin and then its argument prototype would still apply. */
3965: char shmat ();
1.17 ohara 3966: #ifdef F77_DUMMY_MAIN
3967: # ifdef __cplusplus
3968: extern "C"
3969: # endif
3970: int F77_DUMMY_MAIN() { return 1; }
3971: #endif
1.14 noro 3972: int
3973: main ()
3974: {
3975: shmat ();
3976: ;
3977: return 0;
3978: }
3979: _ACEOF
3980: rm -f conftest.$ac_objext conftest$ac_exeext
3981: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3982: (eval $ac_link) 2>&5
3983: ac_status=$?
3984: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985: (exit $ac_status); } &&
3986: { ac_try='test -s conftest$ac_exeext'
3987: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988: (eval $ac_try) 2>&5
3989: ac_status=$?
3990: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991: (exit $ac_status); }; }; then
3992: ac_cv_lib_ipc_shmat=yes
3993: else
3994: echo "$as_me: failed program was:" >&5
1.17 ohara 3995: cat conftest.$ac_ext >&5
1.14 noro 3996: ac_cv_lib_ipc_shmat=no
3997: fi
3998: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3999: LIBS=$ac_check_lib_save_LIBS
4000: fi
4001: echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4002: echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4003: if test $ac_cv_lib_ipc_shmat = yes; then
4004: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4005: fi
4006:
4007: fi
4008: fi
4009:
4010: # Check for libraries that X11R6 Xt/Xaw programs need.
4011: ac_save_LDFLAGS=$LDFLAGS
4012: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4013: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4014: # check for ICE first), but we must link in the order -lSM -lICE or
4015: # we get undefined symbols. So assume we have SM if we have ICE.
4016: # These have to be linked with before -lX11, unlike the other
4017: # libraries we check for below, so use a different variable.
4018: # John Interrante, Karl Berry
4019: echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4020: echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4021: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4022: echo $ECHO_N "(cached) $ECHO_C" >&6
4023: else
4024: ac_check_lib_save_LIBS=$LIBS
4025: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4026: cat >conftest.$ac_ext <<_ACEOF
4027: #line $LINENO "configure"
1.17 ohara 4028: #include "confdefs.h"
1.14 noro 4029:
4030: /* Override any gcc2 internal prototype to avoid an error. */
4031: #ifdef __cplusplus
4032: extern "C"
4033: #endif
4034: /* We use char because int might match the return type of a gcc2
4035: builtin and then its argument prototype would still apply. */
4036: char IceConnectionNumber ();
1.17 ohara 4037: #ifdef F77_DUMMY_MAIN
4038: # ifdef __cplusplus
4039: extern "C"
4040: # endif
4041: int F77_DUMMY_MAIN() { return 1; }
4042: #endif
1.14 noro 4043: int
4044: main ()
4045: {
4046: IceConnectionNumber ();
4047: ;
4048: return 0;
4049: }
4050: _ACEOF
4051: rm -f conftest.$ac_objext conftest$ac_exeext
4052: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4053: (eval $ac_link) 2>&5
4054: ac_status=$?
4055: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056: (exit $ac_status); } &&
4057: { ac_try='test -s conftest$ac_exeext'
4058: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4059: (eval $ac_try) 2>&5
4060: ac_status=$?
4061: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062: (exit $ac_status); }; }; then
4063: ac_cv_lib_ICE_IceConnectionNumber=yes
4064: else
4065: echo "$as_me: failed program was:" >&5
1.17 ohara 4066: cat conftest.$ac_ext >&5
1.14 noro 4067: ac_cv_lib_ICE_IceConnectionNumber=no
4068: fi
4069: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4070: LIBS=$ac_check_lib_save_LIBS
4071: fi
4072: echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4073: echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4074: if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4075: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4076: fi
4077:
4078: LDFLAGS=$ac_save_LDFLAGS
4079:
4080: fi
4081:
4082:
4083: cat >>confdefs.h <<\_ACEOF
4084: #define HMEXT 1
4085: _ACEOF
4086:
4087:
4088: # Check whether --enable-shared or --disable-shared was given.
4089: if test "${enable_shared+set}" = set; then
4090: enableval="$enable_shared"
4091: enable_shared=yes
4092: else
4093: enable_shared=no
4094: fi;
4095:
4096: if test "${enable_shared:=no}" != no ; then
4097: true
4098: fi
4099:
1.17 ohara 4100: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
4101: if test "${ac_cv_prog_cc_g}" = yes; then
4102: CFLAGS="-g -O"
4103: else
4104: CFLAGS="-O"
4105: fi
4106: fi
1.15 noro 4107:
1.14 noro 4108: libasir_postfix=""
4109:
4110: # Check whether --with-pari or --without-pari was given.
4111: if test "${with_pari+set}" = set; then
4112: withval="$with_pari"
4113: with_pari=${withval}
4114: else
4115: with_pari=no
4116: fi;
4117:
4118: if test ${with_pari:=no} != no ; then
4119: libasir_postfix=${libasir_postfix}_pari
1.16 noro 4120: if test ${with_pari} = new ; then
4121: libpari=pari-2.2
4122: else
1.14 noro 4123: libpari=pari
4124: fi
4125: PARIINC='-I${prefix}/include/pari'
4126: if test "${enable_shared}" != yes ; then
4127: PARILIB='${prefix}'"/lib/lib${libpari}.a"
4128: else
4129: PARILIB='-L${prefix}/lib'" -l${libpari}"
4130: fi
4131: cat >>confdefs.h <<\_ACEOF
4132: #define PARI 1
4133: _ACEOF
4134:
1.16 noro 4135: fi
4136:
4137:
4138:
1.14 noro 4139: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4140: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4141: if test "${ac_cv_header_stdc+set}" = set; then
4142: echo $ECHO_N "(cached) $ECHO_C" >&6
4143: else
4144: cat >conftest.$ac_ext <<_ACEOF
4145: #line $LINENO "configure"
1.17 ohara 4146: #include "confdefs.h"
1.14 noro 4147: #include <stdlib.h>
4148: #include <stdarg.h>
4149: #include <string.h>
4150: #include <float.h>
4151:
4152: _ACEOF
1.17 ohara 4153: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4154: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.14 noro 4155: ac_status=$?
1.17 ohara 4156: egrep -v '^ *\+' conftest.er1 >conftest.err
4157: rm -f conftest.er1
4158: cat conftest.err >&5
1.14 noro 4159: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.17 ohara 4160: (exit $ac_status); } >/dev/null; then
4161: if test -s conftest.err; then
4162: ac_cpp_err=$ac_c_preproc_warn_flag
4163: else
4164: ac_cpp_err=
4165: fi
4166: else
4167: ac_cpp_err=yes
4168: fi
4169: if test -z "$ac_cpp_err"; then
1.14 noro 4170: ac_cv_header_stdc=yes
4171: else
4172: echo "$as_me: failed program was:" >&5
1.17 ohara 4173: cat conftest.$ac_ext >&5
4174: ac_cv_header_stdc=no
1.14 noro 4175: fi
1.17 ohara 4176: rm -f conftest.err conftest.$ac_ext
1.14 noro 4177:
4178: if test $ac_cv_header_stdc = yes; then
4179: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4180: cat >conftest.$ac_ext <<_ACEOF
4181: #line $LINENO "configure"
1.17 ohara 4182: #include "confdefs.h"
1.14 noro 4183: #include <string.h>
4184:
4185: _ACEOF
4186: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.17 ohara 4187: egrep "memchr" >/dev/null 2>&1; then
1.14 noro 4188: :
4189: else
4190: ac_cv_header_stdc=no
4191: fi
4192: rm -f conftest*
4193:
4194: fi
4195:
4196: if test $ac_cv_header_stdc = yes; then
4197: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4198: cat >conftest.$ac_ext <<_ACEOF
4199: #line $LINENO "configure"
1.17 ohara 4200: #include "confdefs.h"
1.14 noro 4201: #include <stdlib.h>
4202:
4203: _ACEOF
4204: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.17 ohara 4205: egrep "free" >/dev/null 2>&1; then
1.14 noro 4206: :
4207: else
4208: ac_cv_header_stdc=no
4209: fi
4210: rm -f conftest*
4211:
4212: fi
4213:
4214: if test $ac_cv_header_stdc = yes; then
4215: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4216: if test "$cross_compiling" = yes; then
4217: :
4218: else
4219: cat >conftest.$ac_ext <<_ACEOF
4220: #line $LINENO "configure"
1.17 ohara 4221: #include "confdefs.h"
1.14 noro 4222: #include <ctype.h>
4223: #if ((' ' & 0x0FF) == 0x020)
4224: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4225: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4226: #else
1.17 ohara 4227: # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
1.14 noro 4228: || ('j' <= (c) && (c) <= 'r') \
4229: || ('s' <= (c) && (c) <= 'z'))
4230: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4231: #endif
4232:
4233: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4234: int
4235: main ()
4236: {
4237: int i;
4238: for (i = 0; i < 256; i++)
4239: if (XOR (islower (i), ISLOWER (i))
4240: || toupper (i) != TOUPPER (i))
4241: exit(2);
4242: exit (0);
4243: }
4244: _ACEOF
4245: rm -f conftest$ac_exeext
4246: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4247: (eval $ac_link) 2>&5
4248: ac_status=$?
4249: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4251: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252: (eval $ac_try) 2>&5
4253: ac_status=$?
4254: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255: (exit $ac_status); }; }; then
4256: :
4257: else
4258: echo "$as_me: program exited with status $ac_status" >&5
4259: echo "$as_me: failed program was:" >&5
1.17 ohara 4260: cat conftest.$ac_ext >&5
1.14 noro 4261: ( exit $ac_status )
4262: ac_cv_header_stdc=no
4263: fi
1.17 ohara 4264: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.14 noro 4265: fi
4266: fi
4267: fi
4268: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4269: echo "${ECHO_T}$ac_cv_header_stdc" >&6
4270: if test $ac_cv_header_stdc = yes; then
4271:
4272: cat >>confdefs.h <<\_ACEOF
4273: #define STDC_HEADERS 1
4274: _ACEOF
4275:
4276: fi
4277:
4278: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4279:
1.2 noro 4280:
1.3 noro 4281:
1.14 noro 4282:
4283:
4284:
4285:
4286:
4287:
4288: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4289: inttypes.h stdint.h unistd.h
4290: do
4291: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4292: echo "$as_me:$LINENO: checking for $ac_header" >&5
4293: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4294: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4295: echo $ECHO_N "(cached) $ECHO_C" >&6
4296: else
4297: cat >conftest.$ac_ext <<_ACEOF
4298: #line $LINENO "configure"
1.17 ohara 4299: #include "confdefs.h"
1.14 noro 4300: $ac_includes_default
4301:
4302: #include <$ac_header>
4303: _ACEOF
4304: rm -f conftest.$ac_objext
4305: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306: (eval $ac_compile) 2>&5
4307: ac_status=$?
4308: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309: (exit $ac_status); } &&
4310: { ac_try='test -s conftest.$ac_objext'
4311: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312: (eval $ac_try) 2>&5
4313: ac_status=$?
4314: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315: (exit $ac_status); }; }; then
4316: eval "$as_ac_Header=yes"
4317: else
4318: echo "$as_me: failed program was:" >&5
1.17 ohara 4319: cat conftest.$ac_ext >&5
1.14 noro 4320: eval "$as_ac_Header=no"
4321: fi
4322: rm -f conftest.$ac_objext conftest.$ac_ext
4323: fi
4324: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4325: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4326: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4327: cat >>confdefs.h <<_ACEOF
4328: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4329: _ACEOF
4330:
4331: fi
4332:
4333: done
4334:
4335:
1.18 ohara 4336: echo "$as_me:$LINENO: checking for unsigned long long" >&5
4337: echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
4338: if test "${ac_cv_type_unsigned_long_long+set}" = set; then
4339: echo $ECHO_N "(cached) $ECHO_C" >&6
4340: else
4341: cat >conftest.$ac_ext <<_ACEOF
4342: #line $LINENO "configure"
4343: #include "confdefs.h"
4344: $ac_includes_default
4345: #ifdef F77_DUMMY_MAIN
4346: # ifdef __cplusplus
4347: extern "C"
4348: # endif
4349: int F77_DUMMY_MAIN() { return 1; }
4350: #endif
4351: int
4352: main ()
4353: {
4354: if ((unsigned long long *) 0)
4355: return 0;
4356: if (sizeof (unsigned long long))
4357: return 0;
4358: ;
4359: return 0;
4360: }
4361: _ACEOF
4362: rm -f conftest.$ac_objext
4363: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4364: (eval $ac_compile) 2>&5
4365: ac_status=$?
4366: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367: (exit $ac_status); } &&
4368: { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4374: ac_cv_type_unsigned_long_long=yes
4375: else
4376: echo "$as_me: failed program was:" >&5
4377: cat conftest.$ac_ext >&5
4378: ac_cv_type_unsigned_long_long=no
4379: fi
4380: rm -f conftest.$ac_objext conftest.$ac_ext
4381: fi
4382: echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
4383: echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
4384: if test $ac_cv_type_unsigned_long_long = yes; then
4385:
4386: cat >>confdefs.h <<_ACEOF
4387: #define HAVE_UNSIGNED_LONG_LONG 1
4388: _ACEOF
4389:
4390:
4391: fi
4392:
1.14 noro 4393: echo "$as_me:$LINENO: checking for long" >&5
4394: echo $ECHO_N "checking for long... $ECHO_C" >&6
4395: if test "${ac_cv_type_long+set}" = set; then
4396: echo $ECHO_N "(cached) $ECHO_C" >&6
4397: else
4398: cat >conftest.$ac_ext <<_ACEOF
4399: #line $LINENO "configure"
1.17 ohara 4400: #include "confdefs.h"
1.14 noro 4401: $ac_includes_default
1.17 ohara 4402: #ifdef F77_DUMMY_MAIN
4403: # ifdef __cplusplus
4404: extern "C"
4405: # endif
4406: int F77_DUMMY_MAIN() { return 1; }
4407: #endif
1.14 noro 4408: int
4409: main ()
4410: {
4411: if ((long *) 0)
4412: return 0;
4413: if (sizeof (long))
4414: return 0;
4415: ;
4416: return 0;
4417: }
4418: _ACEOF
4419: rm -f conftest.$ac_objext
4420: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4421: (eval $ac_compile) 2>&5
4422: ac_status=$?
4423: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424: (exit $ac_status); } &&
4425: { ac_try='test -s conftest.$ac_objext'
4426: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427: (eval $ac_try) 2>&5
4428: ac_status=$?
4429: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430: (exit $ac_status); }; }; then
4431: ac_cv_type_long=yes
4432: else
4433: echo "$as_me: failed program was:" >&5
1.17 ohara 4434: cat conftest.$ac_ext >&5
1.14 noro 4435: ac_cv_type_long=no
4436: fi
4437: rm -f conftest.$ac_objext conftest.$ac_ext
4438: fi
4439: echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4440: echo "${ECHO_T}$ac_cv_type_long" >&6
4441:
4442: echo "$as_me:$LINENO: checking size of long" >&5
4443: echo $ECHO_N "checking size of long... $ECHO_C" >&6
4444: if test "${ac_cv_sizeof_long+set}" = set; then
4445: echo $ECHO_N "(cached) $ECHO_C" >&6
4446: else
4447: if test "$ac_cv_type_long" = yes; then
4448: # The cast to unsigned long works around a bug in the HP C Compiler
4449: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4450: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4451: # This bug is HP SR number 8606223364.
4452: if test "$cross_compiling" = yes; then
4453: # Depending upon the size, compute the lo and hi bounds.
4454: cat >conftest.$ac_ext <<_ACEOF
4455: #line $LINENO "configure"
1.17 ohara 4456: #include "confdefs.h"
1.14 noro 4457: $ac_includes_default
1.17 ohara 4458: #ifdef F77_DUMMY_MAIN
4459: # ifdef __cplusplus
4460: extern "C"
4461: # endif
4462: int F77_DUMMY_MAIN() { return 1; }
4463: #endif
1.14 noro 4464: int
4465: main ()
4466: {
4467: static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4468: test_array [0] = 0
4469:
4470: ;
4471: return 0;
4472: }
4473: _ACEOF
4474: rm -f conftest.$ac_objext
4475: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4476: (eval $ac_compile) 2>&5
4477: ac_status=$?
4478: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479: (exit $ac_status); } &&
4480: { ac_try='test -s conftest.$ac_objext'
4481: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482: (eval $ac_try) 2>&5
4483: ac_status=$?
4484: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485: (exit $ac_status); }; }; then
4486: ac_lo=0 ac_mid=0
4487: while :; do
4488: cat >conftest.$ac_ext <<_ACEOF
4489: #line $LINENO "configure"
1.17 ohara 4490: #include "confdefs.h"
1.14 noro 4491: $ac_includes_default
1.17 ohara 4492: #ifdef F77_DUMMY_MAIN
4493: # ifdef __cplusplus
4494: extern "C"
4495: # endif
4496: int F77_DUMMY_MAIN() { return 1; }
4497: #endif
1.14 noro 4498: int
4499: main ()
4500: {
4501: static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4502: test_array [0] = 0
4503:
4504: ;
4505: return 0;
4506: }
4507: _ACEOF
4508: rm -f conftest.$ac_objext
4509: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4510: (eval $ac_compile) 2>&5
4511: ac_status=$?
4512: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513: (exit $ac_status); } &&
4514: { ac_try='test -s conftest.$ac_objext'
4515: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516: (eval $ac_try) 2>&5
4517: ac_status=$?
4518: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519: (exit $ac_status); }; }; then
4520: ac_hi=$ac_mid; break
4521: else
4522: echo "$as_me: failed program was:" >&5
1.17 ohara 4523: cat conftest.$ac_ext >&5
1.14 noro 4524: ac_lo=`expr $ac_mid + 1`
4525: if test $ac_lo -le $ac_mid; then
4526: ac_lo= ac_hi=
4527: break
4528: fi
4529: ac_mid=`expr 2 '*' $ac_mid + 1`
4530: fi
4531: rm -f conftest.$ac_objext conftest.$ac_ext
4532: done
4533: else
4534: echo "$as_me: failed program was:" >&5
1.17 ohara 4535: cat conftest.$ac_ext >&5
1.14 noro 4536: cat >conftest.$ac_ext <<_ACEOF
4537: #line $LINENO "configure"
1.17 ohara 4538: #include "confdefs.h"
1.14 noro 4539: $ac_includes_default
1.17 ohara 4540: #ifdef F77_DUMMY_MAIN
4541: # ifdef __cplusplus
4542: extern "C"
4543: # endif
4544: int F77_DUMMY_MAIN() { return 1; }
4545: #endif
1.14 noro 4546: int
4547: main ()
4548: {
4549: static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4550: test_array [0] = 0
4551:
4552: ;
4553: return 0;
4554: }
4555: _ACEOF
4556: rm -f conftest.$ac_objext
4557: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4558: (eval $ac_compile) 2>&5
4559: ac_status=$?
4560: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561: (exit $ac_status); } &&
4562: { ac_try='test -s conftest.$ac_objext'
4563: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4564: (eval $ac_try) 2>&5
4565: ac_status=$?
4566: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567: (exit $ac_status); }; }; then
4568: ac_hi=-1 ac_mid=-1
4569: while :; do
4570: cat >conftest.$ac_ext <<_ACEOF
4571: #line $LINENO "configure"
1.17 ohara 4572: #include "confdefs.h"
1.14 noro 4573: $ac_includes_default
1.17 ohara 4574: #ifdef F77_DUMMY_MAIN
4575: # ifdef __cplusplus
4576: extern "C"
4577: # endif
4578: int F77_DUMMY_MAIN() { return 1; }
4579: #endif
1.14 noro 4580: int
4581: main ()
4582: {
4583: static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4584: test_array [0] = 0
4585:
4586: ;
4587: return 0;
4588: }
4589: _ACEOF
4590: rm -f conftest.$ac_objext
4591: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4592: (eval $ac_compile) 2>&5
4593: ac_status=$?
4594: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595: (exit $ac_status); } &&
4596: { ac_try='test -s conftest.$ac_objext'
4597: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598: (eval $ac_try) 2>&5
4599: ac_status=$?
4600: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601: (exit $ac_status); }; }; then
4602: ac_lo=$ac_mid; break
4603: else
4604: echo "$as_me: failed program was:" >&5
1.17 ohara 4605: cat conftest.$ac_ext >&5
1.14 noro 4606: ac_hi=`expr '(' $ac_mid ')' - 1`
4607: if test $ac_mid -le $ac_hi; then
4608: ac_lo= ac_hi=
4609: break
4610: fi
4611: ac_mid=`expr 2 '*' $ac_mid`
4612: fi
4613: rm -f conftest.$ac_objext conftest.$ac_ext
4614: done
4615: else
4616: echo "$as_me: failed program was:" >&5
1.17 ohara 4617: cat conftest.$ac_ext >&5
1.14 noro 4618: ac_lo= ac_hi=
4619: fi
4620: rm -f conftest.$ac_objext conftest.$ac_ext
4621: fi
4622: rm -f conftest.$ac_objext conftest.$ac_ext
4623: # Binary search between lo and hi bounds.
4624: while test "x$ac_lo" != "x$ac_hi"; do
4625: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4626: cat >conftest.$ac_ext <<_ACEOF
4627: #line $LINENO "configure"
1.17 ohara 4628: #include "confdefs.h"
1.14 noro 4629: $ac_includes_default
1.17 ohara 4630: #ifdef F77_DUMMY_MAIN
4631: # ifdef __cplusplus
4632: extern "C"
4633: # endif
4634: int F77_DUMMY_MAIN() { return 1; }
4635: #endif
1.14 noro 4636: int
4637: main ()
4638: {
4639: static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4640: test_array [0] = 0
4641:
4642: ;
4643: return 0;
4644: }
4645: _ACEOF
4646: rm -f conftest.$ac_objext
4647: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4648: (eval $ac_compile) 2>&5
4649: ac_status=$?
4650: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651: (exit $ac_status); } &&
4652: { ac_try='test -s conftest.$ac_objext'
4653: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654: (eval $ac_try) 2>&5
4655: ac_status=$?
4656: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657: (exit $ac_status); }; }; then
4658: ac_hi=$ac_mid
4659: else
4660: echo "$as_me: failed program was:" >&5
1.17 ohara 4661: cat conftest.$ac_ext >&5
1.14 noro 4662: ac_lo=`expr '(' $ac_mid ')' + 1`
4663: fi
4664: rm -f conftest.$ac_objext conftest.$ac_ext
4665: done
4666: case $ac_lo in
4667: ?*) ac_cv_sizeof_long=$ac_lo;;
1.17 ohara 4668: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
4669: echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
1.14 noro 4670: { (exit 1); exit 1; }; } ;;
4671: esac
4672: else
4673: if test "$cross_compiling" = yes; then
1.17 ohara 4674: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4675: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
1.14 noro 4676: { (exit 1); exit 1; }; }
4677: else
4678: cat >conftest.$ac_ext <<_ACEOF
4679: #line $LINENO "configure"
1.17 ohara 4680: #include "confdefs.h"
1.14 noro 4681: $ac_includes_default
4682: long longval () { return (long) (sizeof (long)); }
4683: unsigned long ulongval () { return (long) (sizeof (long)); }
4684: #include <stdio.h>
4685: #include <stdlib.h>
1.17 ohara 4686: #ifdef F77_DUMMY_MAIN
4687: # ifdef __cplusplus
4688: extern "C"
4689: # endif
4690: int F77_DUMMY_MAIN() { return 1; }
4691: #endif
1.14 noro 4692: int
4693: main ()
4694: {
4695:
4696: FILE *f = fopen ("conftest.val", "w");
4697: if (! f)
4698: exit (1);
4699: if (((long) (sizeof (long))) < 0)
4700: {
4701: long i = longval ();
4702: if (i != ((long) (sizeof (long))))
4703: exit (1);
4704: fprintf (f, "%ld\n", i);
4705: }
4706: else
4707: {
4708: unsigned long i = ulongval ();
4709: if (i != ((long) (sizeof (long))))
4710: exit (1);
4711: fprintf (f, "%lu\n", i);
4712: }
4713: exit (ferror (f) || fclose (f) != 0);
4714:
4715: ;
4716: return 0;
4717: }
4718: _ACEOF
4719: rm -f conftest$ac_exeext
4720: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4721: (eval $ac_link) 2>&5
4722: ac_status=$?
4723: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4725: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726: (eval $ac_try) 2>&5
4727: ac_status=$?
4728: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729: (exit $ac_status); }; }; then
4730: ac_cv_sizeof_long=`cat conftest.val`
4731: else
4732: echo "$as_me: program exited with status $ac_status" >&5
4733: echo "$as_me: failed program was:" >&5
1.17 ohara 4734: cat conftest.$ac_ext >&5
1.14 noro 4735: ( exit $ac_status )
1.17 ohara 4736: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
4737: echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
1.14 noro 4738: { (exit 1); exit 1; }; }
4739: fi
1.17 ohara 4740: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.14 noro 4741: fi
4742: fi
4743: rm -f conftest.val
4744: else
4745: ac_cv_sizeof_long=0
4746: fi
4747: fi
4748: echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4749: echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4750: cat >>confdefs.h <<_ACEOF
4751: #define SIZEOF_LONG $ac_cv_sizeof_long
4752: _ACEOF
4753:
4754:
1.16 noro 4755: if test SIZEOF_LONG = 8; then
4756: cat >>confdefs.h <<\_ACEOF
1.14 noro 4757: #define LONG_IS_64BIT 1
4758: _ACEOF
4759:
1.16 noro 4760: else
4761: cat >>confdefs.h <<\_ACEOF
1.14 noro 4762: #define LONG_IS_32BIT 1
4763: _ACEOF
4764:
4765: fi
4766: if test "${no_x}" != yes ; then
4767: # Check whether --enable-plot or --disable-plot was given.
4768: if test "${enable_plot+set}" = set; then
4769: enableval="$enable_plot"
4770: enable_plot=yes
4771: else
4772: enable_plot=no
4773: fi;
4774: fi
4775:
4776: if test ${enable_plot:=no} != no ; then
4777: libasir_postfix=${libasir_postfix}_X
4778: cat >>confdefs.h <<\_ACEOF
4779: #define DO_PLOT 1
4780: _ACEOF
4781:
4782: fi
4783:
4784:
4785: if test "$enable_plot" = yes; then
4786: USE_PLOT_TRUE=
4787: USE_PLOT_FALSE='#'
4788: else
4789: USE_PLOT_TRUE='#'
4790: USE_PLOT_FALSE=
4791: fi
4792:
4793: # Check whether --enable-interval or --disable-interval was given.
4794: if test "${enable_interval+set}" = set; then
4795: enableval="$enable_interval"
4796: enable_interval=${enableval}
4797: else
4798: enable_interval=no
4799: fi;
4800:
4801: if test ${enable_interval:=no} != no ; then
4802: libasir_postfix=${libasir_postfix}_itv
4803: cat >>confdefs.h <<\_ACEOF
4804: #define INTERVAL 1
4805: _ACEOF
4806:
4807: if test "${enable_interval}" = debug ; then
4808: cat >>confdefs.h <<\_ACEOF
4809: #define ITVDEBUG 1
4810: _ACEOF
4811:
4812: fi
4813: fi
4814:
4815:
4816: if test "${enable_fep:=no}" != no ; then
4817: cat >>confdefs.h <<\_ACEOF
4818: #define FEP 1
4819: _ACEOF
4820:
4821: FEPLIB="-lreadline -ltermcap"
4822: fi
4823:
4824:
4825: # Check whether --enable-fft-float or --disable-fft-float was given.
4826: if test "${enable_fft_float+set}" = set; then
4827: enableval="$enable_fft_float"
4828: enable_fft_float=yes
4829: else
4830: enable_fft_float=no
4831: fi;
4832:
4833: if test "${enable_fft_float:=no}" != no ; then
4834: cat >>confdefs.h <<\_ACEOF
4835: #define USE_FLOAT 1
4836: _ACEOF
4837:
4838: fi
4839:
4840:
4841: if test "${with_mpi:=no}" != no ; then
4842: MPIINC="-I/opt/FJSVmpi2/include"
4843: MPILIB="-L/opt/FJSVmpi2/lib -lmpi -L/opt/FSUNaprun/lib -lmpl -lemi -lthread"
4844: cat >>confdefs.h <<\_ACEOF
4845: #define MPI 1
4846: _ACEOF
4847:
4848: fi
4849:
4850:
4851:
4852:
4853: if test "${with_lapack:=no}" != no ; then
4854: LAPACKLIB="-llapack -lblas -lI77 -lF77"
4855: cat >>confdefs.h <<\_ACEOF
4856: #define LAPACK 1
4857: _ACEOF
4858:
4859: fi
4860:
4861:
4862:
4863:
4864:
4865: i386_elf_obj=asmi_l.o
4866: i386_aout_obj=asmi.o
4867: sparc_v8_obj="sparc-2.o asm4-2.o edr-2.o"
4868: sparc_v9_obj="sparc-2.o asm5-2.o edr-2.o"
4869: generic_obj=asmalpha.o
4870:
4871: case "${host}" in
1.20 ! ohara 4872: i[3-6]86-*-freebsd[3-9].*)
1.14 noro 4873: asm_obj="${i386_elf_obj}"
1.20 ! ohara 4874: ;;
! 4875: i[3-6]86-*-linux*|x86-*-linux*)
! 4876: asm_obj="${i386_elf_obj}"
! 4877: cat >>confdefs.h <<\_ACEOF
! 4878: #define BSD_SOURCE 1
! 4879: _ACEOF
! 4880:
1.14 noro 4881: ;;
4882: *-*-cygwin*)
4883: asm_obj="${i386_aout_obj}"
4884: ;;
4885: sparc-sun-solaris2.*)
4886: case "`uname -m`" in
4887: sun4[dm]) asm_obj="${sparc_v8_obj}" ;;
4888: sun4u*) asm_obj="${sparc_v9_obj}" ;;
4889: *) asm_obj="${generic_obj}" ;;
4890: esac
4891: cat >>confdefs.h <<\_ACEOF
4892: #define SYSV 1
4893: _ACEOF
4894:
4895: ;;
4896: powerpc-apple-darwin*)
4897: asm_obj="${generic_obj}"
4898: cat >>confdefs.h <<\_ACEOF
4899: #define __DARWIN__ 1
4900: _ACEOF
4901:
1.19 ohara 4902: ;;
4903: arm*-*-linux*)
4904: asm_obj="${generic_obj}"
4905: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
4906: CFLAGS="${CFLAGS} -fsigned-char"
4907: fi
1.14 noro 4908: ;;
4909: *)
4910: asm_obj="${generic_obj}"
4911: ;;
4912: esac
4913:
4914:
4915:
4916: echo "$as_me:$LINENO: checking for socket" >&5
4917: echo $ECHO_N "checking for socket... $ECHO_C" >&6
4918: if test "${ac_cv_func_socket+set}" = set; then
4919: echo $ECHO_N "(cached) $ECHO_C" >&6
4920: else
4921: cat >conftest.$ac_ext <<_ACEOF
4922: #line $LINENO "configure"
1.17 ohara 4923: #include "confdefs.h"
1.14 noro 4924: /* System header to define __stub macros and hopefully few prototypes,
1.17 ohara 4925: which can conflict with char socket (); below. */
4926: #include <assert.h>
1.14 noro 4927: /* Override any gcc2 internal prototype to avoid an error. */
4928: #ifdef __cplusplus
4929: extern "C"
4930: #endif
4931: /* We use char because int might match the return type of a gcc2
4932: builtin and then its argument prototype would still apply. */
4933: char socket ();
1.17 ohara 4934: char (*f) ();
4935:
4936: #ifdef F77_DUMMY_MAIN
4937: # ifdef __cplusplus
4938: extern "C"
4939: # endif
4940: int F77_DUMMY_MAIN() { return 1; }
4941: #endif
4942: int
4943: main ()
4944: {
1.14 noro 4945: /* The GNU C library defines this for functions which it implements
4946: to always fail with ENOSYS. Some functions are actually named
4947: something starting with __ and the normal name is an alias. */
4948: #if defined (__stub_socket) || defined (__stub___socket)
4949: choke me
4950: #else
1.17 ohara 4951: f = socket;
1.14 noro 4952: #endif
4953:
4954: ;
4955: return 0;
4956: }
4957: _ACEOF
4958: rm -f conftest.$ac_objext conftest$ac_exeext
4959: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4960: (eval $ac_link) 2>&5
4961: ac_status=$?
4962: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963: (exit $ac_status); } &&
4964: { ac_try='test -s conftest$ac_exeext'
4965: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966: (eval $ac_try) 2>&5
4967: ac_status=$?
4968: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969: (exit $ac_status); }; }; then
4970: ac_cv_func_socket=yes
4971: else
4972: echo "$as_me: failed program was:" >&5
1.17 ohara 4973: cat conftest.$ac_ext >&5
1.14 noro 4974: ac_cv_func_socket=no
4975: fi
4976: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4977: fi
4978: echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4979: echo "${ECHO_T}$ac_cv_func_socket" >&6
4980: if test $ac_cv_func_socket = yes; then
4981: :
4982: else
4983:
4984: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4985: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4986: if test "${ac_cv_lib_socket_socket+set}" = set; then
4987: echo $ECHO_N "(cached) $ECHO_C" >&6
4988: else
4989: ac_check_lib_save_LIBS=$LIBS
4990: LIBS="-lsocket $LIBS"
4991: cat >conftest.$ac_ext <<_ACEOF
4992: #line $LINENO "configure"
1.17 ohara 4993: #include "confdefs.h"
1.14 noro 4994:
4995: /* Override any gcc2 internal prototype to avoid an error. */
4996: #ifdef __cplusplus
4997: extern "C"
4998: #endif
4999: /* We use char because int might match the return type of a gcc2
5000: builtin and then its argument prototype would still apply. */
5001: char socket ();
1.17 ohara 5002: #ifdef F77_DUMMY_MAIN
5003: # ifdef __cplusplus
5004: extern "C"
5005: # endif
5006: int F77_DUMMY_MAIN() { return 1; }
5007: #endif
1.14 noro 5008: int
5009: main ()
5010: {
5011: socket ();
5012: ;
5013: return 0;
5014: }
5015: _ACEOF
5016: rm -f conftest.$ac_objext conftest$ac_exeext
5017: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5018: (eval $ac_link) 2>&5
5019: ac_status=$?
5020: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021: (exit $ac_status); } &&
5022: { ac_try='test -s conftest$ac_exeext'
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_lib_socket_socket=yes
5029: else
5030: echo "$as_me: failed program was:" >&5
1.17 ohara 5031: cat conftest.$ac_ext >&5
1.14 noro 5032: ac_cv_lib_socket_socket=no
5033: fi
5034: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5035: LIBS=$ac_check_lib_save_LIBS
5036: fi
5037: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5038: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
5039: if test $ac_cv_lib_socket_socket = yes; then
5040: cat >>confdefs.h <<_ACEOF
5041: #define HAVE_LIBSOCKET 1
5042: _ACEOF
5043:
5044: LIBS="-lsocket $LIBS"
5045:
5046: fi
5047:
5048: fi
5049:
5050: echo "$as_me:$LINENO: checking for gethostbyname" >&5
5051: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5052: if test "${ac_cv_func_gethostbyname+set}" = set; then
5053: echo $ECHO_N "(cached) $ECHO_C" >&6
5054: else
5055: cat >conftest.$ac_ext <<_ACEOF
5056: #line $LINENO "configure"
1.17 ohara 5057: #include "confdefs.h"
1.14 noro 5058: /* System header to define __stub macros and hopefully few prototypes,
1.17 ohara 5059: which can conflict with char gethostbyname (); below. */
5060: #include <assert.h>
1.14 noro 5061: /* Override any gcc2 internal prototype to avoid an error. */
5062: #ifdef __cplusplus
5063: extern "C"
5064: #endif
5065: /* We use char because int might match the return type of a gcc2
5066: builtin and then its argument prototype would still apply. */
5067: char gethostbyname ();
1.17 ohara 5068: char (*f) ();
5069:
5070: #ifdef F77_DUMMY_MAIN
5071: # ifdef __cplusplus
5072: extern "C"
5073: # endif
5074: int F77_DUMMY_MAIN() { return 1; }
5075: #endif
5076: int
5077: main ()
5078: {
1.14 noro 5079: /* The GNU C library defines this for functions which it implements
5080: to always fail with ENOSYS. Some functions are actually named
5081: something starting with __ and the normal name is an alias. */
5082: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5083: choke me
5084: #else
1.17 ohara 5085: f = gethostbyname;
1.14 noro 5086: #endif
5087:
5088: ;
5089: return 0;
5090: }
5091: _ACEOF
5092: rm -f conftest.$ac_objext conftest$ac_exeext
5093: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5094: (eval $ac_link) 2>&5
5095: ac_status=$?
5096: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097: (exit $ac_status); } &&
5098: { ac_try='test -s conftest$ac_exeext'
5099: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100: (eval $ac_try) 2>&5
5101: ac_status=$?
5102: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103: (exit $ac_status); }; }; then
5104: ac_cv_func_gethostbyname=yes
5105: else
5106: echo "$as_me: failed program was:" >&5
1.17 ohara 5107: cat conftest.$ac_ext >&5
1.14 noro 5108: ac_cv_func_gethostbyname=no
5109: fi
5110: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5111: fi
5112: echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5113: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5114: if test $ac_cv_func_gethostbyname = yes; then
5115: :
5116: else
5117:
5118: echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5119: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5120: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5121: echo $ECHO_N "(cached) $ECHO_C" >&6
5122: else
5123: ac_check_lib_save_LIBS=$LIBS
5124: LIBS="-lnsl $LIBS"
5125: cat >conftest.$ac_ext <<_ACEOF
5126: #line $LINENO "configure"
1.17 ohara 5127: #include "confdefs.h"
1.14 noro 5128:
5129: /* Override any gcc2 internal prototype to avoid an error. */
5130: #ifdef __cplusplus
5131: extern "C"
5132: #endif
5133: /* We use char because int might match the return type of a gcc2
5134: builtin and then its argument prototype would still apply. */
5135: char gethostbyname ();
1.17 ohara 5136: #ifdef F77_DUMMY_MAIN
5137: # ifdef __cplusplus
5138: extern "C"
5139: # endif
5140: int F77_DUMMY_MAIN() { return 1; }
5141: #endif
1.14 noro 5142: int
5143: main ()
5144: {
5145: gethostbyname ();
5146: ;
5147: return 0;
5148: }
5149: _ACEOF
5150: rm -f conftest.$ac_objext conftest$ac_exeext
5151: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5152: (eval $ac_link) 2>&5
5153: ac_status=$?
5154: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155: (exit $ac_status); } &&
5156: { ac_try='test -s conftest$ac_exeext'
5157: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158: (eval $ac_try) 2>&5
5159: ac_status=$?
5160: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161: (exit $ac_status); }; }; then
5162: ac_cv_lib_nsl_gethostbyname=yes
5163: else
5164: echo "$as_me: failed program was:" >&5
1.17 ohara 5165: cat conftest.$ac_ext >&5
1.14 noro 5166: ac_cv_lib_nsl_gethostbyname=no
5167: fi
5168: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5169: LIBS=$ac_check_lib_save_LIBS
5170: fi
5171: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5172: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5173: if test $ac_cv_lib_nsl_gethostbyname = yes; then
5174: cat >>confdefs.h <<_ACEOF
5175: #define HAVE_LIBNSL 1
5176: _ACEOF
5177:
5178: LIBS="-lnsl $LIBS"
5179:
5180: fi
5181:
5182: fi
5183:
5184:
1.17 ohara 5185: 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 5186: cat >confcache <<\_ACEOF
5187: # This file is a shell script that caches the results of configure
5188: # tests run on this system so they can be shared between configure
5189: # scripts and configure runs, see configure's option --config-cache.
5190: # It is not useful on other systems. If it contains results you don't
5191: # want to keep, you may remove or edit it.
5192: #
5193: # config.status only pays attention to the cache file if you give it
5194: # the --recheck option to rerun configure.
5195: #
1.17 ohara 5196: # `ac_cv_env_foo' variables (set or unset) will be overriden when
1.14 noro 5197: # loading this file, other *unset* `ac_cv_foo' will be assigned the
5198: # following values.
5199:
5200: _ACEOF
5201:
5202: # The following way of writing the cache mishandles newlines in values,
5203: # but we know of no workaround that is simple, portable, and efficient.
5204: # So, don't put newlines in cache variables' values.
5205: # Ultrix sh set writes to stderr and can't be redirected directly,
5206: # and sets the high bit in the cache file unless we assign to the vars.
5207: {
5208: (set) 2>&1 |
5209: case `(ac_space=' '; set | grep ac_space) 2>&1` in
5210: *ac_space=\ *)
5211: # `set' does not quote correctly, so add quotes (double-quote
5212: # substitution turns \\\\ into \\, and sed turns \\ into \).
5213: sed -n \
5214: "s/'/'\\\\''/g;
5215: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5216: ;;
5217: *)
5218: # `set' quotes correctly as required by POSIX, so do not add quotes.
5219: sed -n \
5220: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5221: ;;
5222: esac;
5223: } |
5224: sed '
5225: t clear
5226: : clear
5227: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5228: t end
5229: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5230: : end' >>confcache
1.17 ohara 5231: if cmp -s $cache_file confcache; then :; else
1.14 noro 5232: if test -w $cache_file; then
5233: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5234: cat confcache >$cache_file
5235: else
5236: echo "not updating unwritable cache $cache_file"
5237: fi
5238: fi
5239: rm -f confcache
5240:
5241: test "x$prefix" = xNONE && prefix=$ac_default_prefix
5242: # Let make expand exec_prefix.
5243: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5244:
5245: # VPATH may cause trouble with some makes, so we remove $(srcdir),
5246: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5247: # trailing colons and then remove the whole line if VPATH becomes empty
5248: # (actually we leave an empty line to preserve line numbers).
5249: if test "x$srcdir" = x.; then
5250: ac_vpsub='/^[ ]*VPATH[ ]*=/{
5251: s/:*\$(srcdir):*/:/;
5252: s/:*\${srcdir}:*/:/;
5253: s/:*@srcdir@:*/:/;
5254: s/^\([^=]*=[ ]*\):*/\1/;
5255: s/:*$//;
5256: s/^[^=]*=[ ]*$//;
5257: }'
5258: fi
5259:
5260: # Transform confdefs.h into DEFS.
5261: # Protect against shell expansion while executing Makefile rules.
5262: # Protect against Makefile macro expansion.
5263: #
5264: # If the first sed substitution is executed (which looks for macros that
5265: # take arguments), then we branch to the quote section. Otherwise,
5266: # look for a macro that doesn't take arguments.
5267: cat >confdef2opt.sed <<\_ACEOF
5268: t clear
5269: : clear
5270: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5271: t quote
5272: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5273: t quote
5274: d
5275: : quote
5276: s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
5277: s,\[,\\&,g
5278: s,\],\\&,g
5279: s,\$,$$,g
5280: p
5281: _ACEOF
5282: # We use echo to avoid assuming a particular line-breaking character.
5283: # The extra dot is to prevent the shell from consuming trailing
5284: # line-breaks from the sub-command output. A line-break within
5285: # single-quotes doesn't work because, if this script is created in a
5286: # platform that uses two characters for line-breaks (e.g., DOS), tr
5287: # would break.
5288: ac_LF_and_DOT=`echo; echo .`
5289: DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5290: rm -f confdef2opt.sed
5291:
5292:
5293:
5294: : ${CONFIG_STATUS=./config.status}
5295: ac_clean_files_save=$ac_clean_files
5296: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5297: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5298: echo "$as_me: creating $CONFIG_STATUS" >&6;}
5299: cat >$CONFIG_STATUS <<_ACEOF
5300: #! $SHELL
5301: # Generated by $as_me.
5302: # Run this file to recreate the current configuration.
5303: # Compiler output produced by configure, useful for debugging
5304: # configure, is in config.log if it exists.
5305:
5306: debug=false
5307: SHELL=\${CONFIG_SHELL-$SHELL}
5308: _ACEOF
5309:
5310: cat >>$CONFIG_STATUS <<\_ACEOF
1.17 ohara 5311:
1.14 noro 5312: ## --------------------- ##
5313: ## M4sh Initialization. ##
5314: ## --------------------- ##
5315:
5316: # Be Bourne compatible
5317: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5318: emulate sh
5319: NULLCMD=:
5320: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5321: set -o posix
5322: fi
5323:
1.17 ohara 5324: # NLS nuisances.
1.14 noro 5325: # Support unset when possible.
5326: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5327: as_unset=unset
5328: else
5329: as_unset=false
5330: fi
5331:
1.17 ohara 5332: (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
5333: { $as_unset LANG || test "${LANG+set}" != set; } ||
5334: { LANG=C; export LANG; }
5335: (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
5336: { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
5337: { LC_ALL=C; export LC_ALL; }
5338: (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
5339: { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
5340: { LC_TIME=C; export LC_TIME; }
5341: (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
5342: { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
5343: { LC_CTYPE=C; export LC_CTYPE; }
5344: (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
5345: { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
5346: { LANGUAGE=C; export LANGUAGE; }
5347: (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
5348: { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
5349: { LC_COLLATE=C; export LC_COLLATE; }
5350: (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
5351: { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
5352: { LC_NUMERIC=C; export LC_NUMERIC; }
5353: (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
5354: { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
5355: { LC_MESSAGES=C; export LC_MESSAGES; }
1.14 noro 5356:
5357:
5358: # Name of the executable.
1.17 ohara 5359: as_me=`(basename "$0") 2>/dev/null ||
1.14 noro 5360: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5361: X"$0" : 'X\(//\)$' \| \
5362: X"$0" : 'X\(/\)$' \| \
5363: . : '\(.\)' 2>/dev/null ||
5364: echo X/"$0" |
5365: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5366: /^X\/\(\/\/\)$/{ s//\1/; q; }
5367: /^X\/\(\/\).*/{ s//\1/; q; }
5368: s/.*/./; q'`
5369:
5370: # PATH needs CR, and LINENO needs CR and PATH.
5371: # Avoid depending upon Character Ranges.
5372: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5373: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5374: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5375: as_cr_digits='0123456789'
5376: as_cr_alnum=$as_cr_Letters$as_cr_digits
5377:
5378: # The user is always right.
5379: if test "${PATH_SEPARATOR+set}" != set; then
1.17 ohara 5380: echo "#! /bin/sh" >conftest.sh
5381: echo "exit 0" >>conftest.sh
5382: chmod +x conftest.sh
5383: if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
1.14 noro 5384: PATH_SEPARATOR=';'
5385: else
5386: PATH_SEPARATOR=:
5387: fi
1.17 ohara 5388: rm -f conftest.sh
1.14 noro 5389: fi
5390:
5391:
5392: as_lineno_1=$LINENO
5393: as_lineno_2=$LINENO
5394: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5395: test "x$as_lineno_1" != "x$as_lineno_2" &&
5396: test "x$as_lineno_3" = "x$as_lineno_2" || {
5397: # Find who we are. Look in the path if we contain no path at all
5398: # relative or not.
5399: case $0 in
5400: *[\\/]* ) as_myself=$0 ;;
5401: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402: for as_dir in $PATH
5403: do
5404: IFS=$as_save_IFS
5405: test -z "$as_dir" && as_dir=.
5406: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5407: done
5408:
5409: ;;
5410: esac
5411: # We did not find ourselves, most probably we were run as `sh COMMAND'
5412: # in which case we are not to be found in the path.
5413: if test "x$as_myself" = x; then
5414: as_myself=$0
5415: fi
5416: if test ! -f "$as_myself"; then
5417: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5418: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5419: { (exit 1); exit 1; }; }
5420: fi
5421: case $CONFIG_SHELL in
5422: '')
5423: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.2 noro 5425: do
1.14 noro 5426: IFS=$as_save_IFS
5427: test -z "$as_dir" && as_dir=.
5428: for as_base in sh bash ksh sh5; do
5429: case $as_dir in
5430: /*)
5431: if ("$as_dir/$as_base" -c '
5432: as_lineno_1=$LINENO
5433: as_lineno_2=$LINENO
5434: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5435: test "x$as_lineno_1" != "x$as_lineno_2" &&
5436: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5437: CONFIG_SHELL=$as_dir/$as_base
5438: export CONFIG_SHELL
5439: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5440: fi;;
5441: esac
5442: done
1.2 noro 5443: done
1.14 noro 5444: ;;
5445: esac
1.2 noro 5446:
1.14 noro 5447: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5448: # uniformly replaced by the line number. The first 'sed' inserts a
5449: # line-number line before each line; the second 'sed' does the real
5450: # work. The second script uses 'N' to pair each line-number line
5451: # with the numbered line, and appends trailing '-' during
5452: # substitution so that $LINENO is not a special case at line end.
5453: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5454: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5455: sed '=' <$as_myself |
5456: sed '
5457: N
5458: s,$,-,
5459: : loop
5460: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5461: t loop
5462: s,-$,,
5463: s,^['$as_cr_digits']*\n,,
5464: ' >$as_me.lineno &&
5465: chmod +x $as_me.lineno ||
5466: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5467: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5468: { (exit 1); exit 1; }; }
5469:
5470: # Don't try to exec as it changes $[0], causing all sort of problems
5471: # (the dirname of $[0] is not the place where we might find the
5472: # original and so on. Autoconf is especially sensible to this).
5473: . ./$as_me.lineno
5474: # Exit status is that of the last command.
5475: exit
5476: }
5477:
5478:
5479: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5480: *c*,-n*) ECHO_N= ECHO_C='
5481: ' ECHO_T=' ' ;;
5482: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5483: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5484: esac
1.2 noro 5485:
1.14 noro 5486: if expr a : '\(a\)' >/dev/null 2>&1; then
5487: as_expr=expr
5488: else
5489: as_expr=false
5490: fi
1.2 noro 5491:
1.14 noro 5492: rm -f conf$$ conf$$.exe conf$$.file
5493: echo >conf$$.file
5494: if ln -s conf$$.file conf$$ 2>/dev/null; then
5495: # We could just check for DJGPP; but this test a) works b) is more generic
5496: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5497: if test -f conf$$.exe; then
5498: # Don't use ln at all; we don't have any links
5499: as_ln_s='cp -p'
5500: else
5501: as_ln_s='ln -s'
5502: fi
5503: elif ln conf$$.file conf$$ 2>/dev/null; then
5504: as_ln_s=ln
5505: else
5506: as_ln_s='cp -p'
5507: fi
5508: rm -f conf$$ conf$$.exe conf$$.file
1.2 noro 5509:
1.14 noro 5510: as_executable_p="test -f"
5511:
5512: # Sed expression to map a string onto a valid CPP name.
5513: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5514:
5515: # Sed expression to map a string onto a valid variable name.
5516: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5517:
5518:
5519: # IFS
5520: # We need space, tab and new line, in precisely that order.
5521: as_nl='
5522: '
5523: IFS=" $as_nl"
5524:
5525: # CDPATH.
1.17 ohara 5526: $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
1.14 noro 5527:
5528: exec 6>&1
5529:
5530: # Open the log real soon, to keep \$[0] and so on meaningful, and to
5531: # report actual input values of CONFIG_FILES etc. instead of their
5532: # values after options handling. Logging --version etc. is OK.
5533: exec 5>>config.log
5534: {
5535: echo
5536: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5537: ## Running $as_me. ##
5538: _ASBOX
5539: } >&5
5540: cat >&5 <<_CSEOF
5541:
5542: This file was extended by $as_me, which was
1.17 ohara 5543: generated by GNU Autoconf 2.53. Invocation command line was
1.14 noro 5544:
5545: CONFIG_FILES = $CONFIG_FILES
5546: CONFIG_HEADERS = $CONFIG_HEADERS
5547: CONFIG_LINKS = $CONFIG_LINKS
5548: CONFIG_COMMANDS = $CONFIG_COMMANDS
5549: $ $0 $@
5550:
5551: _CSEOF
5552: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5553: echo >&5
5554: _ACEOF
5555:
5556: # Files that config.status was made for.
5557: if test -n "$ac_config_files"; then
5558: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
1.2 noro 5559: fi
5560:
1.14 noro 5561: if test -n "$ac_config_headers"; then
5562: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
1.1 noro 5563: fi
1.2 noro 5564:
1.14 noro 5565: if test -n "$ac_config_links"; then
5566: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
1.4 saito 5567: fi
5568:
1.14 noro 5569: if test -n "$ac_config_commands"; then
5570: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
1.4 saito 5571: fi
5572:
1.14 noro 5573: cat >>$CONFIG_STATUS <<\_ACEOF
5574:
5575: ac_cs_usage="\
5576: \`$as_me' instantiates files from templates according to the
5577: current configuration.
5578:
5579: Usage: $0 [OPTIONS] [FILE]...
5580:
5581: -h, --help print this help, then exit
5582: -V, --version print version number, then exit
5583: -d, --debug don't remove temporary files
5584: --recheck update $as_me by reconfiguring in the same conditions
5585: --file=FILE[:TEMPLATE]
5586: instantiate the configuration file FILE
1.4 saito 5587:
1.14 noro 5588: Configuration files:
5589: $config_files
5590:
5591: Configuration commands:
5592: $config_commands
5593:
5594: Report bugs to <bug-autoconf@gnu.org>."
5595: _ACEOF
5596:
5597: cat >>$CONFIG_STATUS <<_ACEOF
5598: ac_cs_version="\\
5599: config.status
1.17 ohara 5600: configured by $0, generated by GNU Autoconf 2.53,
1.14 noro 5601: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5602:
5603: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5604: Free Software Foundation, Inc.
5605: This config.status script is free software; the Free Software Foundation
5606: gives unlimited permission to copy, distribute and modify it."
5607: srcdir=$srcdir
5608: INSTALL="$INSTALL"
5609: _ACEOF
5610:
5611: cat >>$CONFIG_STATUS <<\_ACEOF
5612: # If no file are specified by the user, then we need to provide default
5613: # value. By we need to know if files were specified by the user.
5614: ac_need_defaults=:
5615: while test $# != 0
5616: do
5617: case $1 in
5618: --*=*)
5619: ac_option=`expr "x$1" : 'x\([^=]*\)='`
5620: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1.17 ohara 5621: shift
5622: set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5623: shift
1.12 ohara 5624: ;;
1.17 ohara 5625: -*);;
1.14 noro 5626: *) # This is not an option, so the user has probably given explicit
5627: # arguments.
5628: ac_need_defaults=false;;
5629: esac
5630:
1.17 ohara 5631: case $1 in
1.14 noro 5632: # Handling of the options.
5633: _ACEOF
1.17 ohara 5634: cat >>$CONFIG_STATUS <<_ACEOF
5635: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5636: echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5637: exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5638: _ACEOF
1.14 noro 5639: cat >>$CONFIG_STATUS <<\_ACEOF
5640: --version | --vers* | -V )
5641: echo "$ac_cs_version"; exit 0 ;;
5642: --he | --h)
5643: # Conflict between --help and --header
5644: { { echo "$as_me:$LINENO: error: ambiguous option: $1
5645: Try \`$0 --help' for more information." >&5
5646: echo "$as_me: error: ambiguous option: $1
5647: Try \`$0 --help' for more information." >&2;}
5648: { (exit 1); exit 1; }; };;
5649: --help | --hel | -h )
5650: echo "$ac_cs_usage"; exit 0 ;;
5651: --debug | --d* | -d )
5652: debug=: ;;
5653: --file | --fil | --fi | --f )
1.17 ohara 5654: shift
5655: CONFIG_FILES="$CONFIG_FILES $1"
1.14 noro 5656: ac_need_defaults=false;;
5657: --header | --heade | --head | --hea )
1.17 ohara 5658: shift
5659: CONFIG_HEADERS="$CONFIG_HEADERS $1"
1.14 noro 5660: ac_need_defaults=false;;
5661:
5662: # This is an error.
5663: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5664: Try \`$0 --help' for more information." >&5
5665: echo "$as_me: error: unrecognized option: $1
5666: Try \`$0 --help' for more information." >&2;}
5667: { (exit 1); exit 1; }; } ;;
5668:
5669: *) ac_config_targets="$ac_config_targets $1" ;;
5670:
5671: esac
5672: shift
5673: done
5674:
5675: _ACEOF
5676:
5677: cat >>$CONFIG_STATUS <<_ACEOF
5678: #
5679: # INIT-COMMANDS section.
5680: #
5681:
5682: AMDEP_TRUE="$AMDEP_TRUE"
5683: ac_aux_dir="$ac_aux_dir"
5684:
5685: _ACEOF
5686:
5687:
5688:
5689: cat >>$CONFIG_STATUS <<\_ACEOF
5690: for ac_config_target in $ac_config_targets
5691: do
5692: case "$ac_config_target" in
5693: # Handling of arguments.
5694: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5695: "engine/Makefile" ) CONFIG_FILES="$CONFIG_FILES engine/Makefile" ;;
5696: "asm/Makefile" ) CONFIG_FILES="$CONFIG_FILES asm/Makefile" ;;
5697: "builtin/Makefile" ) CONFIG_FILES="$CONFIG_FILES builtin/Makefile" ;;
5698: "fft/Makefile" ) CONFIG_FILES="$CONFIG_FILES fft/Makefile" ;;
5699: "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
5700: "io/Makefile" ) CONFIG_FILES="$CONFIG_FILES io/Makefile" ;;
5701: "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
5702: "parse/Makefile" ) CONFIG_FILES="$CONFIG_FILES parse/Makefile" ;;
5703: "plot/Makefile" ) CONFIG_FILES="$CONFIG_FILES plot/Makefile" ;;
5704: "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
5705: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5706: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5707: { (exit 1); exit 1; }; };;
5708: esac
5709: done
5710:
5711: # If the user did not use the arguments to specify the items to instantiate,
5712: # then the envvar interface is used. Set only those that are not.
5713: # We use the long form for the default assignment because of an extremely
5714: # bizarre bug on SunOS 4.1.3.
5715: if $ac_need_defaults; then
5716: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5717: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5718: fi
5719:
5720: # Create a temporary directory, and hook for its removal unless debugging.
5721: $debug ||
5722: {
5723: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5724: trap '{ (exit 1); exit 1; }' 1 2 13 15
5725: }
5726:
5727: # Create a (secure) tmp directory for tmp files.
1.17 ohara 5728: : ${TMPDIR=/tmp}
1.14 noro 5729: {
1.17 ohara 5730: tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
1.14 noro 5731: test -n "$tmp" && test -d "$tmp"
5732: } ||
5733: {
1.17 ohara 5734: tmp=$TMPDIR/cs$$-$RANDOM
1.14 noro 5735: (umask 077 && mkdir $tmp)
5736: } ||
5737: {
1.17 ohara 5738: echo "$me: cannot create a temporary directory in $TMPDIR" >&2
1.14 noro 5739: { (exit 1); exit 1; }
5740: }
5741:
5742: _ACEOF
5743:
5744: cat >>$CONFIG_STATUS <<_ACEOF
5745:
5746: #
5747: # CONFIG_FILES section.
5748: #
5749:
5750: # No need to generate the scripts if there are no CONFIG_FILES.
5751: # This happens for instance when ./config.status config.h
5752: if test -n "\$CONFIG_FILES"; then
5753: # Protect against being on the right side of a sed subst in config.status.
5754: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5755: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5756: s,@SHELL@,$SHELL,;t t
5757: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5758: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5759: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5760: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5761: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5762: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5763: s,@exec_prefix@,$exec_prefix,;t t
5764: s,@prefix@,$prefix,;t t
5765: s,@program_transform_name@,$program_transform_name,;t t
5766: s,@bindir@,$bindir,;t t
5767: s,@sbindir@,$sbindir,;t t
5768: s,@libexecdir@,$libexecdir,;t t
5769: s,@datadir@,$datadir,;t t
5770: s,@sysconfdir@,$sysconfdir,;t t
5771: s,@sharedstatedir@,$sharedstatedir,;t t
5772: s,@localstatedir@,$localstatedir,;t t
5773: s,@libdir@,$libdir,;t t
5774: s,@includedir@,$includedir,;t t
5775: s,@oldincludedir@,$oldincludedir,;t t
5776: s,@infodir@,$infodir,;t t
5777: s,@mandir@,$mandir,;t t
5778: s,@build_alias@,$build_alias,;t t
5779: s,@host_alias@,$host_alias,;t t
5780: s,@target_alias@,$target_alias,;t t
5781: s,@DEFS@,$DEFS,;t t
5782: s,@ECHO_C@,$ECHO_C,;t t
5783: s,@ECHO_N@,$ECHO_N,;t t
5784: s,@ECHO_T@,$ECHO_T,;t t
5785: s,@LIBS@,$LIBS,;t t
5786: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5787: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5788: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5789: s,@PACKAGE@,$PACKAGE,;t t
5790: s,@VERSION@,$VERSION,;t t
5791: s,@EXEEXT@,$EXEEXT,;t t
5792: s,@OBJEXT@,$OBJEXT,;t t
5793: s,@ACLOCAL@,$ACLOCAL,;t t
5794: s,@AUTOCONF@,$AUTOCONF,;t t
5795: s,@AUTOMAKE@,$AUTOMAKE,;t t
5796: s,@AUTOHEADER@,$AUTOHEADER,;t t
5797: s,@MAKEINFO@,$MAKEINFO,;t t
5798: s,@AMTAR@,$AMTAR,;t t
5799: s,@install_sh@,$install_sh,;t t
5800: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5801: s,@AWK@,$AWK,;t t
5802: s,@SET_MAKE@,$SET_MAKE,;t t
5803: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5804: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5805: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5806: s,@DEPDIR@,$DEPDIR,;t t
5807: s,@build@,$build,;t t
5808: s,@build_cpu@,$build_cpu,;t t
5809: s,@build_vendor@,$build_vendor,;t t
5810: s,@build_os@,$build_os,;t t
5811: s,@host@,$host,;t t
5812: s,@host_cpu@,$host_cpu,;t t
5813: s,@host_vendor@,$host_vendor,;t t
5814: s,@host_os@,$host_os,;t t
5815: s,@target@,$target,;t t
5816: s,@target_cpu@,$target_cpu,;t t
5817: s,@target_vendor@,$target_vendor,;t t
5818: s,@target_os@,$target_os,;t t
5819: s,@CC@,$CC,;t t
5820: s,@CFLAGS@,$CFLAGS,;t t
5821: s,@LDFLAGS@,$LDFLAGS,;t t
5822: s,@CPPFLAGS@,$CPPFLAGS,;t t
5823: s,@ac_ct_CC@,$ac_ct_CC,;t t
5824: s,@am__include@,$am__include,;t t
5825: s,@am__quote@,$am__quote,;t t
5826: s,@CCDEPMODE@,$CCDEPMODE,;t t
5827: s,@LN_S@,$LN_S,;t t
5828: s,@RANLIB@,$RANLIB,;t t
5829: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5830: s,@YACC@,$YACC,;t t
5831: s,@CPP@,$CPP,;t t
5832: s,@X_CFLAGS@,$X_CFLAGS,;t t
5833: s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
5834: s,@X_LIBS@,$X_LIBS,;t t
5835: s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
5836: s,@PARIINC@,$PARIINC,;t t
5837: s,@PARILIB@,$PARILIB,;t t
5838: s,@USE_PLOT_TRUE@,$USE_PLOT_TRUE,;t t
5839: s,@USE_PLOT_FALSE@,$USE_PLOT_FALSE,;t t
5840: s,@FEPLIB@,$FEPLIB,;t t
5841: s,@MPIINC@,$MPIINC,;t t
5842: s,@MPILIB@,$MPILIB,;t t
5843: s,@LAPACKLIB@,$LAPACKLIB,;t t
5844: s,@libasir_postfix@,$libasir_postfix,;t t
5845: s,@asm_obj@,$asm_obj,;t t
5846: CEOF
5847:
5848: _ACEOF
5849:
5850: cat >>$CONFIG_STATUS <<\_ACEOF
5851: # Split the substitutions into bite-sized pieces for seds with
5852: # small command number limits, like on Digital OSF/1 and HP-UX.
5853: ac_max_sed_lines=48
5854: ac_sed_frag=1 # Number of current file.
5855: ac_beg=1 # First line for current file.
5856: ac_end=$ac_max_sed_lines # Line after last line for current file.
5857: ac_more_lines=:
5858: ac_sed_cmds=
5859: while $ac_more_lines; do
5860: if test $ac_beg -gt 1; then
5861: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5862: else
5863: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5864: fi
5865: if test ! -s $tmp/subs.frag; then
5866: ac_more_lines=false
5867: else
5868: # The purpose of the label and of the branching condition is to
5869: # speed up the sed processing (if there are no `@' at all, there
5870: # is no need to browse any of the substitutions).
5871: # These are the two extra sed commands mentioned above.
5872: (echo ':t
5873: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5874: if test -z "$ac_sed_cmds"; then
5875: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5876: else
5877: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5878: fi
5879: ac_sed_frag=`expr $ac_sed_frag + 1`
5880: ac_beg=$ac_end
5881: ac_end=`expr $ac_end + $ac_max_sed_lines`
5882: fi
5883: done
5884: if test -z "$ac_sed_cmds"; then
5885: ac_sed_cmds=cat
5886: fi
5887: fi # test -n "$CONFIG_FILES"
5888:
5889: _ACEOF
5890: cat >>$CONFIG_STATUS <<\_ACEOF
5891: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5892: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5893: case $ac_file in
5894: - | *:- | *:-:* ) # input from stdin
5895: cat >$tmp/stdin
5896: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5897: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5898: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5899: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5900: * ) ac_file_in=$ac_file.in ;;
5901: esac
5902:
5903: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5904: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5905: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5906: X"$ac_file" : 'X\(//\)[^/]' \| \
5907: X"$ac_file" : 'X\(//\)$' \| \
5908: X"$ac_file" : 'X\(/\)' \| \
5909: . : '\(.\)' 2>/dev/null ||
5910: echo X"$ac_file" |
5911: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5912: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5913: /^X\(\/\/\)$/{ s//\1/; q; }
5914: /^X\(\/\).*/{ s//\1/; q; }
5915: s/.*/./; q'`
1.17 ohara 5916: { case "$ac_dir" in
5917: [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5918: *) as_incr_dir=.;;
5919: esac
5920: as_dummy="$ac_dir"
5921: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5922: case $as_mkdir_dir in
5923: # Skip DOS drivespec
5924: ?:) as_incr_dir=$as_mkdir_dir ;;
5925: *)
5926: as_incr_dir=$as_incr_dir/$as_mkdir_dir
5927: test -d "$as_incr_dir" ||
5928: mkdir "$as_incr_dir" ||
5929: { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5930: echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5931: { (exit 1); exit 1; }; }
5932: ;;
5933: esac
5934: done; }
1.14 noro 5935:
5936: ac_builddir=.
5937:
5938: if test "$ac_dir" != .; then
5939: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5940: # A "../" for each directory in $ac_dir_suffix.
5941: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5942: else
5943: ac_dir_suffix= ac_top_builddir=
5944: fi
5945:
5946: case $srcdir in
5947: .) # No --srcdir option. We are building in place.
5948: ac_srcdir=.
5949: if test -z "$ac_top_builddir"; then
5950: ac_top_srcdir=.
5951: else
5952: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5953: fi ;;
5954: [\\/]* | ?:[\\/]* ) # Absolute path.
5955: ac_srcdir=$srcdir$ac_dir_suffix;
5956: ac_top_srcdir=$srcdir ;;
5957: *) # Relative path.
5958: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5959: ac_top_srcdir=$ac_top_builddir$srcdir ;;
5960: esac
5961: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5962: # absolute.
5963: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1.17 ohara 5964: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1.14 noro 5965: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5966: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5967:
5968:
5969: case $INSTALL in
5970: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5971: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5972: esac
5973:
5974: if test x"$ac_file" != x-; then
5975: { echo "$as_me:$LINENO: creating $ac_file" >&5
5976: echo "$as_me: creating $ac_file" >&6;}
5977: rm -f "$ac_file"
5978: fi
5979: # Let's still pretend it is `configure' which instantiates (i.e., don't
5980: # use $as_me), people would be surprised to read:
5981: # /* config.h. Generated by config.status. */
5982: if test x"$ac_file" = x-; then
5983: configure_input=
5984: else
5985: configure_input="$ac_file. "
5986: fi
5987: configure_input=$configure_input"Generated from `echo $ac_file_in |
5988: sed 's,.*/,,'` by configure."
5989:
5990: # First look for the input files in the build tree, otherwise in the
5991: # src tree.
5992: ac_file_inputs=`IFS=:
5993: for f in $ac_file_in; do
5994: case $f in
5995: -) echo $tmp/stdin ;;
5996: [\\/$]*)
5997: # Absolute (can't be DOS-style, as IFS=:)
5998: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5999: echo "$as_me: error: cannot find input file: $f" >&2;}
6000: { (exit 1); exit 1; }; }
6001: echo $f;;
6002: *) # Relative
6003: if test -f "$f"; then
6004: # Build tree
6005: echo $f
6006: elif test -f "$srcdir/$f"; then
6007: # Source tree
6008: echo $srcdir/$f
6009: else
6010: # /dev/null tree
6011: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6012: echo "$as_me: error: cannot find input file: $f" >&2;}
6013: { (exit 1); exit 1; }; }
6014: fi;;
6015: esac
6016: done` || { (exit 1); exit 1; }
6017: _ACEOF
6018: cat >>$CONFIG_STATUS <<_ACEOF
6019: sed "$ac_vpsub
6020: $extrasub
6021: _ACEOF
6022: cat >>$CONFIG_STATUS <<\_ACEOF
6023: :t
6024: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6025: s,@configure_input@,$configure_input,;t t
6026: s,@srcdir@,$ac_srcdir,;t t
6027: s,@abs_srcdir@,$ac_abs_srcdir,;t t
6028: s,@top_srcdir@,$ac_top_srcdir,;t t
6029: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6030: s,@builddir@,$ac_builddir,;t t
6031: s,@abs_builddir@,$ac_abs_builddir,;t t
6032: s,@top_builddir@,$ac_top_builddir,;t t
6033: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6034: s,@INSTALL@,$ac_INSTALL,;t t
6035: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6036: rm -f $tmp/stdin
6037: if test x"$ac_file" != x-; then
6038: mv $tmp/out $ac_file
6039: else
6040: cat $tmp/out
6041: rm -f $tmp/out
6042: fi
6043:
6044: done
6045: _ACEOF
6046: cat >>$CONFIG_STATUS <<\_ACEOF
6047:
6048: #
6049: # CONFIG_COMMANDS section.
6050: #
6051: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6052: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6053: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6054: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6055: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6056: X"$ac_dest" : 'X\(//\)[^/]' \| \
6057: X"$ac_dest" : 'X\(//\)$' \| \
6058: X"$ac_dest" : 'X\(/\)' \| \
6059: . : '\(.\)' 2>/dev/null ||
6060: echo X"$ac_dest" |
6061: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6062: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6063: /^X\(\/\/\)$/{ s//\1/; q; }
6064: /^X\(\/\).*/{ s//\1/; q; }
6065: s/.*/./; q'`
6066: ac_builddir=.
6067:
6068: if test "$ac_dir" != .; then
6069: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6070: # A "../" for each directory in $ac_dir_suffix.
6071: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6072: else
6073: ac_dir_suffix= ac_top_builddir=
6074: fi
6075:
6076: case $srcdir in
6077: .) # No --srcdir option. We are building in place.
6078: ac_srcdir=.
6079: if test -z "$ac_top_builddir"; then
6080: ac_top_srcdir=.
6081: else
6082: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6083: fi ;;
6084: [\\/]* | ?:[\\/]* ) # Absolute path.
6085: ac_srcdir=$srcdir$ac_dir_suffix;
6086: ac_top_srcdir=$srcdir ;;
6087: *) # Relative path.
6088: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6089: ac_top_srcdir=$ac_top_builddir$srcdir ;;
1.12 ohara 6090: esac
1.14 noro 6091: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6092: # absolute.
6093: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1.17 ohara 6094: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1.14 noro 6095: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6096: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6097:
6098:
6099: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6100: echo "$as_me: executing $ac_dest commands" >&6;}
6101: case $ac_dest in
6102: default-1 )
6103: test x"$AMDEP_TRUE" != x"" ||
6104: for mf in $CONFIG_FILES; do
6105: case "$mf" in
6106: Makefile) dirpart=.;;
6107: */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
6108: *) continue;;
6109: esac
6110: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
6111: # Extract the definition of DEP_FILES from the Makefile without
6112: # running `make'.
6113: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
6114: test -z "$DEPDIR" && continue
6115: # When using ansi2knr, U may be empty or an underscore; expand it
6116: U=`sed -n -e '/^U = / s///p' < "$mf"`
6117: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6118: # We invoke sed twice because it is the simplest approach to
6119: # changing $(DEPDIR) to its actual value in the expansion.
6120: for file in `sed -n -e '
6121: /^DEP_FILES = .*\\\\$/ {
6122: s/^DEP_FILES = //
6123: :loop
6124: s/\\\\$//
6125: p
6126: n
6127: /\\\\$/ b loop
6128: p
6129: }
6130: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6131: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6132: # Make sure the directory exists.
6133: test -f "$dirpart/$file" && continue
6134: fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
6135: $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
6136: # echo "creating $dirpart/$file"
6137: echo '# dummy' > "$dirpart/$file"
6138: done
6139: done
6140: ;;
6141: esac
6142: done
6143: _ACEOF
6144:
6145: cat >>$CONFIG_STATUS <<\_ACEOF
6146:
6147: { (exit 0); exit 0; }
6148: _ACEOF
6149: chmod +x $CONFIG_STATUS
6150: ac_clean_files=$ac_clean_files_save
6151:
6152:
6153: # configure is writing to config.log, and then calls config.status.
6154: # config.status does its own redirection, appending to config.log.
6155: # Unfortunately, on DOS this fails, as config.log is still kept open
6156: # by configure, so config.status won't be able to write to it; its
6157: # output is simply discarded. So we exec the FD to /dev/null,
6158: # effectively closing config.log, so it can be properly (re)opened and
6159: # appended to by config.status. When coming back to configure, we
6160: # need to make the FD available again.
6161: if test "$no_create" != yes; then
6162: ac_cs_success=:
6163: exec 5>/dev/null
1.17 ohara 6164: $SHELL $CONFIG_STATUS || ac_cs_success=false
1.14 noro 6165: exec 5>>config.log
6166: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6167: # would make configure fail if this is the last instruction.
6168: $ac_cs_success || { (exit 1); exit 1; }
6169: fi
6170:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>