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