/[ascend]/trunk/base/autotools/configure
ViewVC logotype

Annotation of /trunk/base/autotools/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 364 - (hide annotations) (download)
Wed Mar 8 05:23:02 2006 UTC (18 years, 4 months ago) by johnpye
File size: 295712 byte(s)
Fixing up Tcl support... Tk support is still broken
1 aw0a 37 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 johnpye 364 # Generated by GNU Autoconf 2.59.
4 aw0a 37 #
5 johnpye 364 # Copyright (C) 2003 Free Software Foundation, Inc.
6 aw0a 37 # This configure script is free software; the Free Software Foundation
7     # gives unlimited permission to copy, distribute and modify it.
8 johnpye 133 ## --------------------- ##
9     ## M4sh Initialization. ##
10     ## --------------------- ##
11 aw0a 37
12 johnpye 133 # Be Bourne compatible
13     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14     emulate sh
15     NULLCMD=:
16     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17     # is contrary to our usage. Disable this feature.
18     alias -g '${1+"$@"}'='"$@"'
19     elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20     set -o posix
21     fi
22 johnpye 364 DUALCASE=1; export DUALCASE # for MKS sh
23 johnpye 133
24     # Support unset when possible.
25 johnpye 364 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 johnpye 133 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 johnpye 364 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 johnpye 133 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 johnpye 364 test -d ./-p && rmdir ./-p
222 johnpye 133 as_mkdir_p=false
223     fi
224    
225     as_executable_p="test -f"
226    
227     # Sed expression to map a string onto a valid CPP name.
228 johnpye 364 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229 johnpye 133
230     # Sed expression to map a string onto a valid variable name.
231 johnpye 364 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232 johnpye 133
233    
234     # IFS
235     # We need space, tab and new line, in precisely that order.
236     as_nl='
237     '
238     IFS=" $as_nl"
239    
240     # CDPATH.
241     $as_unset CDPATH
242    
243    
244     # Name of the host.
245     # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246     # so uname gets run too.
247     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248    
249     exec 6>&1
250    
251     #
252     # Initializations.
253     #
254 aw0a 37 ac_default_prefix=/usr/local
255 johnpye 133 ac_config_libobj_dir=.
256     cross_compiling=no
257     subdirs=
258     MFLAGS=
259     MAKEFLAGS=
260     SHELL=${CONFIG_SHELL-/bin/sh}
261 aw0a 37
262 johnpye 133 # Maximum number of lines to put in a shell here document.
263     # This variable seems obsolete. It should probably be removed, and
264     # only ac_max_sed_lines should be used.
265     : ${ac_max_here_lines=38}
266 aw0a 37
267 johnpye 133 # Identity of this package.
268     PACKAGE_NAME=
269     PACKAGE_TARNAME=
270     PACKAGE_VERSION=
271     PACKAGE_STRING=
272     PACKAGE_BUGREPORT=
273 aw0a 37
274 johnpye 133 ac_unique_file="../generic/compiler/ascParse.y"
275     # Factoring default headers for most tests.
276     ac_includes_default="\
277     #include <stdio.h>
278     #if HAVE_SYS_TYPES_H
279     # include <sys/types.h>
280     #endif
281     #if HAVE_SYS_STAT_H
282     # include <sys/stat.h>
283     #endif
284     #if STDC_HEADERS
285     # include <stdlib.h>
286     # include <stddef.h>
287     #else
288     # if HAVE_STDLIB_H
289     # include <stdlib.h>
290     # endif
291     #endif
292     #if HAVE_STRING_H
293     # if !STDC_HEADERS && HAVE_MEMORY_H
294     # include <memory.h>
295     # endif
296     # include <string.h>
297     #endif
298     #if HAVE_STRINGS_H
299     # include <strings.h>
300     #endif
301     #if HAVE_INTTYPES_H
302     # include <inttypes.h>
303     #else
304     # if HAVE_STDINT_H
305     # include <stdint.h>
306     # endif
307     #endif
308     #if HAVE_UNISTD_H
309     # include <unistd.h>
310     #endif"
311    
312 johnpye 362 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 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'
313 johnpye 133 ac_subst_files=''
314    
315 aw0a 37 # Initialize some variables set by options.
316 johnpye 133 ac_init_help=
317     ac_init_version=false
318 aw0a 37 # The variables have the same names as the options, with
319     # dashes changed to underlines.
320 johnpye 133 cache_file=/dev/null
321 aw0a 37 exec_prefix=NONE
322     no_create=
323     no_recursion=
324     prefix=NONE
325     program_prefix=NONE
326     program_suffix=NONE
327     program_transform_name=s,x,x,
328     silent=
329     site=
330     srcdir=
331     verbose=
332     x_includes=NONE
333     x_libraries=NONE
334 johnpye 133
335     # Installation directory options.
336     # These are left unexpanded so users can "make install exec_prefix=/foo"
337     # and all the variables that are supposed to be based on exec_prefix
338     # by default will actually change.
339     # Use braces instead of parens because sh, perl, etc. also accept them.
340 aw0a 37 bindir='${exec_prefix}/bin'
341     sbindir='${exec_prefix}/sbin'
342     libexecdir='${exec_prefix}/libexec'
343     datadir='${prefix}/share'
344     sysconfdir='${prefix}/etc'
345     sharedstatedir='${prefix}/com'
346     localstatedir='${prefix}/var'
347     libdir='${exec_prefix}/lib'
348     includedir='${prefix}/include'
349     oldincludedir='/usr/include'
350     infodir='${prefix}/info'
351     mandir='${prefix}/man'
352    
353     ac_prev=
354     for ac_option
355     do
356     # If the previous option needs an argument, assign it.
357     if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361     fi
362    
363 johnpye 133 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 aw0a 37
365     # Accept the important Cygnus configure options, so we can diagnose typos.
366    
367 johnpye 133 case $ac_option in
368 aw0a 37
369     -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 johnpye 133 bindir=$ac_optarg ;;
373 aw0a 37
374     -build | --build | --buil | --bui | --bu)
375 johnpye 133 ac_prev=build_alias ;;
376 aw0a 37 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 johnpye 133 build_alias=$ac_optarg ;;
378 aw0a 37
379     -cache-file | --cache-file | --cache-fil | --cache-fi \
380     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 johnpye 133 cache_file=$ac_optarg ;;
385 aw0a 37
386 johnpye 133 --config-cache | -C)
387     cache_file=config.cache ;;
388    
389 aw0a 37 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391     -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392     | --da=*)
393 johnpye 133 datadir=$ac_optarg ;;
394 aw0a 37
395     -disable-* | --disable-*)
396 johnpye 133 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 aw0a 37 # Reject names that are not valid shell variable names.
398 johnpye 133 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400     { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403 aw0a 37
404     -enable-* | --enable-*)
405 johnpye 133 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 aw0a 37 # Reject names that are not valid shell variable names.
407 johnpye 133 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409     { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 aw0a 37 *) ac_optarg=yes ;;
414     esac
415 johnpye 133 eval "enable_$ac_feature='$ac_optarg'" ;;
416 aw0a 37
417     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419     | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423     | --exec=* | --exe=* | --ex=*)
424 johnpye 133 exec_prefix=$ac_optarg ;;
425 aw0a 37
426     -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429    
430 johnpye 133 -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436 aw0a 37
437     -host | --host | --hos | --ho)
438 johnpye 133 ac_prev=host_alias ;;
439 aw0a 37 -host=* | --host=* | --hos=* | --ho=*)
440 johnpye 133 host_alias=$ac_optarg ;;
441 aw0a 37
442     -includedir | --includedir | --includedi | --included | --include \
443     | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446     | --includ=* | --inclu=* | --incl=* | --inc=*)
447 johnpye 133 includedir=$ac_optarg ;;
448 aw0a 37
449     -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 johnpye 133 infodir=$ac_optarg ;;
453 aw0a 37
454     -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456     -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 johnpye 133 libdir=$ac_optarg ;;
458 aw0a 37
459     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460     | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463     | --libexe=* | --libex=* | --libe=*)
464 johnpye 133 libexecdir=$ac_optarg ;;
465 aw0a 37
466     -localstatedir | --localstatedir | --localstatedi | --localstated \
467     | --localstate | --localstat | --localsta | --localst \
468     | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471     | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472     | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 johnpye 133 localstatedir=$ac_optarg ;;
474 aw0a 37
475     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 johnpye 133 mandir=$ac_optarg ;;
479 aw0a 37
480     -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483    
484     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 johnpye 133 | --no-cr | --no-c | -n)
486 aw0a 37 no_create=yes ;;
487    
488     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491    
492     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494     | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 johnpye 133 oldincludedir=$ac_optarg ;;
500 aw0a 37
501     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 johnpye 133 prefix=$ac_optarg ;;
505 aw0a 37
506     -program-prefix | --program-prefix | --program-prefi | --program-pref \
507     | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509     -program-prefix=* | --program-prefix=* | --program-prefi=* \
510     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 johnpye 133 program_prefix=$ac_optarg ;;
512 aw0a 37
513     -program-suffix | --program-suffix | --program-suffi | --program-suff \
514     | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516     -program-suffix=* | --program-suffix=* | --program-suffi=* \
517     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 johnpye 133 program_suffix=$ac_optarg ;;
519 aw0a 37
520     -program-transform-name | --program-transform-name \
521     | --program-transform-nam | --program-transform-na \
522     | --program-transform-n | --program-transform- \
523     | --program-transform | --program-transfor \
524     | --program-transfo | --program-transf \
525     | --program-trans | --program-tran \
526     | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528     -program-transform-name=* | --program-transform-name=* \
529     | --program-transform-nam=* | --program-transform-na=* \
530     | --program-transform-n=* | --program-transform-=* \
531     | --program-transform=* | --program-transfor=* \
532     | --program-transfo=* | --program-transf=* \
533     | --program-trans=* | --program-tran=* \
534     | --progr-tra=* | --program-tr=* | --program-t=*)
535 johnpye 133 program_transform_name=$ac_optarg ;;
536 aw0a 37
537     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538     | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540    
541     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544     | --sbi=* | --sb=*)
545 johnpye 133 sbindir=$ac_optarg ;;
546 aw0a 37
547     -sharedstatedir | --sharedstatedir | --sharedstatedi \
548     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549     | --sharedst | --shareds | --shared | --share | --shar \
550     | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555     | --sha=* | --sh=*)
556 johnpye 133 sharedstatedir=$ac_optarg ;;
557 aw0a 37
558     -site | --site | --sit)
559     ac_prev=site ;;
560     -site=* | --site=* | --sit=*)
561 johnpye 133 site=$ac_optarg ;;
562 aw0a 37
563     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 johnpye 133 srcdir=$ac_optarg ;;
567 aw0a 37
568     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569     | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 johnpye 133 sysconfdir=$ac_optarg ;;
574 aw0a 37
575     -target | --target | --targe | --targ | --tar | --ta | --t)
576 johnpye 133 ac_prev=target_alias ;;
577 aw0a 37 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 johnpye 133 target_alias=$ac_optarg ;;
579 aw0a 37
580     -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582    
583 johnpye 133 -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585 aw0a 37
586     -with-* | --with-*)
587 johnpye 133 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 aw0a 37 # Reject names that are not valid shell variable names.
589 johnpye 133 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590     { echo "$as_me: error: invalid package name: $ac_package" >&2
591     { (exit 1); exit 1; }; }
592 aw0a 37 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 johnpye 133 case $ac_option in
594     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 aw0a 37 *) ac_optarg=yes ;;
596     esac
597 johnpye 133 eval "with_$ac_package='$ac_optarg'" ;;
598 aw0a 37
599     -without-* | --without-*)
600 johnpye 133 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 aw0a 37 # Reject names that are not valid shell variable names.
602 johnpye 133 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603     { echo "$as_me: error: invalid package name: $ac_package" >&2
604     { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607 aw0a 37
608     --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611    
612     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613     | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 johnpye 133 x_includes=$ac_optarg ;;
618 aw0a 37
619     -x-libraries | --x-libraries | --x-librarie | --x-librari \
620     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 johnpye 133 x_libraries=$ac_optarg ;;
625 aw0a 37
626 johnpye 133 -*) { echo "$as_me: error: unrecognized option: $ac_option
627     Try \`$0 --help' for more information." >&2
628     { (exit 1); exit 1; }; }
629 aw0a 37 ;;
630    
631 johnpye 133 *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635     { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636     { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640    
641 aw0a 37 *)
642 johnpye 133 # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645     echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 aw0a 37 ;;
648    
649     esac
650     done
651    
652     if test -n "$ac_prev"; then
653 johnpye 133 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654     { echo "$as_me: error: missing argument to $ac_option" >&2
655     { (exit 1); exit 1; }; }
656 aw0a 37 fi
657    
658 johnpye 133 # Be sure to have absolute paths.
659     for ac_var in exec_prefix prefix
660     do
661     eval ac_val=$`echo $ac_var`
662     case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665     { (exit 1); exit 1; }; };;
666     esac
667     done
668 aw0a 37
669 johnpye 133 # Be sure to have absolute paths.
670     for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 johnpye 364 localstatedir libdir includedir oldincludedir infodir mandir
672 aw0a 37 do
673 johnpye 133 eval ac_val=$`echo $ac_var`
674     case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677     { (exit 1); exit 1; }; };;
678 aw0a 37 esac
679     done
680    
681 johnpye 133 # There might be people who depend on the old broken behavior: `$host'
682     # used to hold the argument of --host etc.
683     # FIXME: To remove some day.
684     build=$build_alias
685     host=$host_alias
686     target=$target_alias
687 aw0a 37
688 johnpye 133 # FIXME: To remove some day.
689     if test "x$host_alias" != x; then
690     if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694     elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696     fi
697     fi
698 aw0a 37
699 johnpye 133 ac_tool_prefix=
700     test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 aw0a 37
702 johnpye 133 test "$silent" = yes && exec 6>/dev/null
703    
704    
705 aw0a 37 # Find the source files, if location was not specified.
706     if test -z "$srcdir"; then
707     ac_srcdir_defaulted=yes
708     # Try the directory containing this script, then its parent.
709 johnpye 133 ac_confdir=`(dirname "$0") 2>/dev/null ||
710     $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 johnpye 364 X"$0" : 'X\(//\)[^/]' \| \
712     X"$0" : 'X\(//\)$' \| \
713     X"$0" : 'X\(/\)' \| \
714     . : '\(.\)' 2>/dev/null ||
715 johnpye 133 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718     /^X\(\/\/\)$/{ s//\1/; q; }
719     /^X\(\/\).*/{ s//\1/; q; }
720     s/.*/./; q'`
721 aw0a 37 srcdir=$ac_confdir
722     if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724     fi
725     else
726     ac_srcdir_defaulted=no
727     fi
728     if test ! -r $srcdir/$ac_unique_file; then
729     if test "$ac_srcdir_defaulted" = yes; then
730 johnpye 133 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731     { (exit 1); exit 1; }; }
732 aw0a 37 else
733 johnpye 133 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734     { (exit 1); exit 1; }; }
735 aw0a 37 fi
736     fi
737 johnpye 133 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738     { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739     { (exit 1); exit 1; }; }
740     srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741     ac_env_build_alias_set=${build_alias+set}
742     ac_env_build_alias_value=$build_alias
743     ac_cv_env_build_alias_set=${build_alias+set}
744     ac_cv_env_build_alias_value=$build_alias
745     ac_env_host_alias_set=${host_alias+set}
746     ac_env_host_alias_value=$host_alias
747     ac_cv_env_host_alias_set=${host_alias+set}
748     ac_cv_env_host_alias_value=$host_alias
749     ac_env_target_alias_set=${target_alias+set}
750     ac_env_target_alias_value=$target_alias
751     ac_cv_env_target_alias_set=${target_alias+set}
752     ac_cv_env_target_alias_value=$target_alias
753     ac_env_CC_set=${CC+set}
754     ac_env_CC_value=$CC
755     ac_cv_env_CC_set=${CC+set}
756     ac_cv_env_CC_value=$CC
757     ac_env_CFLAGS_set=${CFLAGS+set}
758     ac_env_CFLAGS_value=$CFLAGS
759     ac_cv_env_CFLAGS_set=${CFLAGS+set}
760     ac_cv_env_CFLAGS_value=$CFLAGS
761     ac_env_LDFLAGS_set=${LDFLAGS+set}
762     ac_env_LDFLAGS_value=$LDFLAGS
763     ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764     ac_cv_env_LDFLAGS_value=$LDFLAGS
765     ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766     ac_env_CPPFLAGS_value=$CPPFLAGS
767     ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768     ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769     ac_env_CPP_set=${CPP+set}
770     ac_env_CPP_value=$CPP
771     ac_cv_env_CPP_set=${CPP+set}
772     ac_cv_env_CPP_value=$CPP
773 aw0a 37
774 johnpye 133 #
775     # Report the --help message.
776     #
777     if test "$ac_init_help" = "long"; then
778     # Omit some internal or obsolete options to make the list less imposing.
779     # This message is too long to be a string in the A/UX 3.1 sh.
780     cat <<_ACEOF
781     \`configure' configures this package to adapt to many kinds of systems.
782    
783     Usage: $0 [OPTION]... [VAR=VALUE]...
784    
785     To assign environment variables (e.g., CC, CFLAGS...), specify them as
786     VAR=VALUE. See below for descriptions of some of the useful variables.
787    
788     Defaults for the options are specified in brackets.
789    
790     Configuration:
791     -h, --help display this help and exit
792     --help=short display options specific to this package
793     --help=recursive display the short help of all the included packages
794     -V, --version display version information and exit
795     -q, --quiet, --silent do not print \`checking...' messages
796     --cache-file=FILE cache test results in FILE [disabled]
797     -C, --config-cache alias for \`--cache-file=config.cache'
798     -n, --no-create do not create output files
799     --srcdir=DIR find the sources in DIR [configure dir or \`..']
800    
801     _ACEOF
802    
803     cat <<_ACEOF
804     Installation directories:
805     --prefix=PREFIX install architecture-independent files in PREFIX
806 johnpye 364 [$ac_default_prefix]
807 johnpye 133 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 johnpye 364 [PREFIX]
809 johnpye 133
810     By default, \`make install' will install all the files in
811     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813     for instance \`--prefix=\$HOME'.
814    
815     For better control, use the options below.
816    
817     Fine tuning of the installation directories:
818     --bindir=DIR user executables [EPREFIX/bin]
819     --sbindir=DIR system admin executables [EPREFIX/sbin]
820     --libexecdir=DIR program executables [EPREFIX/libexec]
821     --datadir=DIR read-only architecture-independent data [PREFIX/share]
822     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825     --libdir=DIR object code libraries [EPREFIX/lib]
826     --includedir=DIR C header files [PREFIX/include]
827     --oldincludedir=DIR C header files for non-gcc [/usr/include]
828     --infodir=DIR info documentation [PREFIX/info]
829     --mandir=DIR man documentation [PREFIX/man]
830     _ACEOF
831    
832     cat <<\_ACEOF
833    
834     X features:
835     --x-includes=DIR X include files are in DIR
836     --x-libraries=DIR X library files are in DIR
837    
838     System types:
839     --build=BUILD configure for building on BUILD [guessed]
840     --host=HOST cross-compile to build programs to run on HOST [BUILD]
841     _ACEOF
842     fi
843    
844     if test -n "$ac_init_help"; then
845    
846     cat <<\_ACEOF
847    
848     Optional Features:
849     --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851     --enable-optimization optimize the C code while building ascend
852    
853     Optional Packages:
854     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
855     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
856     --with-x use the X Window System
857 johnpye 332 --without-tcl Disable Tcl
858     --with-tclconfig=path Set location of tclConfig.sh
859     --with-tcl=path Set location of Tcl package
860     --with-tclincl=path Set location of Tcl include directory
861     --with-tcllib=path Set location of Tcl library directory
862 johnpye 133 Fortran compiler and libraries:
863     --with-fortran=F77,F77LIBS
864     The location of your Fortran compiler and its
865     library files. For example, under SunOS:
866     --with-fortran='f77,-L/usr/lang/lib -lF77 -lM77'
867     To specify only the compiler or libraries, leave off
868     whatever is not needed:
869     --with-fortran=',-L/usr/lang/lib -lF77 -lM77'
870     Use '--without-fortran' to not link against
871     any Fortran libraries
872     --with-blas=BLASLIB The full path to the blas library.
873     Use '--with-blas=build' to build the blas library
874     from the sources that come with the distribution.
875     --with-linpack=LPAKLIB The full path to the linpack library.
876     Use '--with-linpack=build' to build the library
877     from the sources that come with the distribution.
878     --with-lsod=LSODLIB The full path to the lsod library.
879     Use '--with-lsod=build' to build the lsod library
880     from the sources that come with the distribution.
881     Generation of Makefiles:
882     --without-tkdir do not generate Makefiles in the TK subdir
883     --without-models do not generate Makefiles in the models subdir
884    
885     Some influential environment variables:
886     CC C compiler command
887     CFLAGS C compiler flags
888     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
889     nonstandard directory <lib dir>
890     CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
891     headers in a nonstandard directory <include dir>
892     CPP C preprocessor
893    
894     Use these variables to override the choices made by `configure' or to help
895     it to find libraries and programs with nonstandard names/locations.
896    
897     _ACEOF
898     fi
899    
900     if test "$ac_init_help" = "recursive"; then
901     # If there are subdirs, report their specific --help.
902     ac_popdir=`pwd`
903     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
904     test -d $ac_dir || continue
905     ac_builddir=.
906    
907     if test "$ac_dir" != .; then
908     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
909     # A "../" for each directory in $ac_dir_suffix.
910     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
911     else
912     ac_dir_suffix= ac_top_builddir=
913     fi
914    
915     case $srcdir in
916     .) # No --srcdir option. We are building in place.
917     ac_srcdir=.
918     if test -z "$ac_top_builddir"; then
919     ac_top_srcdir=.
920     else
921     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
922     fi ;;
923     [\\/]* | ?:[\\/]* ) # Absolute path.
924     ac_srcdir=$srcdir$ac_dir_suffix;
925     ac_top_srcdir=$srcdir ;;
926     *) # Relative path.
927     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
928     ac_top_srcdir=$ac_top_builddir$srcdir ;;
929     esac
930    
931 johnpye 364 # Do not use `cd foo && pwd` to compute absolute paths, because
932     # the directories may not exist.
933     case `pwd` in
934     .) ac_abs_builddir="$ac_dir";;
935     *)
936     case "$ac_dir" in
937     .) ac_abs_builddir=`pwd`;;
938     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
939     *) ac_abs_builddir=`pwd`/"$ac_dir";;
940     esac;;
941     esac
942     case $ac_abs_builddir in
943     .) ac_abs_top_builddir=${ac_top_builddir}.;;
944     *)
945     case ${ac_top_builddir}. in
946     .) ac_abs_top_builddir=$ac_abs_builddir;;
947     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
948     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
949     esac;;
950     esac
951     case $ac_abs_builddir in
952     .) ac_abs_srcdir=$ac_srcdir;;
953     *)
954     case $ac_srcdir in
955     .) ac_abs_srcdir=$ac_abs_builddir;;
956     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
957     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
958     esac;;
959     esac
960     case $ac_abs_builddir in
961     .) ac_abs_top_srcdir=$ac_top_srcdir;;
962     *)
963     case $ac_top_srcdir in
964     .) ac_abs_top_srcdir=$ac_abs_builddir;;
965     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
966     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
967     esac;;
968     esac
969    
970 johnpye 133 cd $ac_dir
971     # Check for guested configure; otherwise get Cygnus style configure.
972     if test -f $ac_srcdir/configure.gnu; then
973     echo
974     $SHELL $ac_srcdir/configure.gnu --help=recursive
975     elif test -f $ac_srcdir/configure; then
976     echo
977     $SHELL $ac_srcdir/configure --help=recursive
978     elif test -f $ac_srcdir/configure.ac ||
979 johnpye 364 test -f $ac_srcdir/configure.in; then
980 johnpye 133 echo
981     $ac_configure --help
982     else
983     echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
984     fi
985     cd $ac_popdir
986     done
987     fi
988    
989     test -n "$ac_init_help" && exit 0
990     if $ac_init_version; then
991     cat <<\_ACEOF
992    
993 johnpye 364 Copyright (C) 2003 Free Software Foundation, Inc.
994 johnpye 133 This configure script is free software; the Free Software Foundation
995     gives unlimited permission to copy, distribute and modify it.
996     _ACEOF
997     exit 0
998     fi
999     exec 5>config.log
1000     cat >&5 <<_ACEOF
1001     This file contains any messages produced by compilers while
1002     running configure, to aid debugging if configure makes a mistake.
1003    
1004     It was created by $as_me, which was
1005 johnpye 364 generated by GNU Autoconf 2.59. Invocation command line was
1006 johnpye 133
1007     $ $0 $@
1008    
1009     _ACEOF
1010     {
1011     cat <<_ASUNAME
1012     ## --------- ##
1013     ## Platform. ##
1014     ## --------- ##
1015    
1016     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021    
1022     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1024    
1025     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1026     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1027     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028     hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1029     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1030     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1031     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1032    
1033     _ASUNAME
1034    
1035     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036     for as_dir in $PATH
1037     do
1038     IFS=$as_save_IFS
1039     test -z "$as_dir" && as_dir=.
1040     echo "PATH: $as_dir"
1041     done
1042    
1043     } >&5
1044    
1045     cat >&5 <<_ACEOF
1046    
1047    
1048     ## ----------- ##
1049     ## Core tests. ##
1050     ## ----------- ##
1051    
1052     _ACEOF
1053    
1054    
1055     # Keep a trace of the command line.
1056     # Strip out --no-create and --no-recursion so they do not pile up.
1057     # Strip out --silent because we don't want to record it for future runs.
1058     # Also quote any args containing shell meta-characters.
1059     # Make two passes to allow for proper duplicate-argument suppression.
1060     ac_configure_args=
1061     ac_configure_args0=
1062     ac_configure_args1=
1063     ac_sep=
1064     ac_must_keep_next=false
1065     for ac_pass in 1 2
1066     do
1067     for ac_arg
1068     do
1069     case $ac_arg in
1070     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072     | -silent | --silent | --silen | --sile | --sil)
1073     continue ;;
1074     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076     esac
1077     case $ac_pass in
1078     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079     2)
1080     ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081     if test $ac_must_keep_next = true; then
1082 johnpye 364 ac_must_keep_next=false # Got value, back to normal.
1083 johnpye 133 else
1084 johnpye 364 case $ac_arg in
1085     *=* | --config-cache | -C | -disable-* | --disable-* \
1086     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088     | -with-* | --with-* | -without-* | --without-* | --x)
1089     case "$ac_configure_args0 " in
1090     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091     esac
1092     ;;
1093     -* ) ac_must_keep_next=true ;;
1094     esac
1095 johnpye 133 fi
1096     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097     # Get rid of the leading space.
1098     ac_sep=" "
1099     ;;
1100     esac
1101     done
1102     done
1103     $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104     $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105    
1106     # When interrupted or exit'd, cleanup temporary files, and complete
1107     # config.log. We remove comments because anyway the quotes in there
1108     # would cause problems or look ugly.
1109     # WARNING: Be sure not to use single quotes in there, as some shells,
1110     # such as our DU 5.0 friend, will then `close' the trap.
1111     trap 'exit_status=$?
1112     # Save into config.log some information that might help in debugging.
1113     {
1114     echo
1115    
1116     cat <<\_ASBOX
1117     ## ---------------- ##
1118     ## Cache variables. ##
1119     ## ---------------- ##
1120     _ASBOX
1121     echo
1122     # The following way of writing the cache mishandles newlines in values,
1123     {
1124     (set) 2>&1 |
1125     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126     *ac_space=\ *)
1127     sed -n \
1128 johnpye 364 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130 johnpye 133 ;;
1131     *)
1132     sed -n \
1133 johnpye 364 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134 johnpye 133 ;;
1135     esac;
1136     }
1137     echo
1138    
1139     cat <<\_ASBOX
1140     ## ----------------- ##
1141     ## Output variables. ##
1142     ## ----------------- ##
1143     _ASBOX
1144     echo
1145     for ac_var in $ac_subst_vars
1146     do
1147     eval ac_val=$`echo $ac_var`
1148     echo "$ac_var='"'"'$ac_val'"'"'"
1149     done | sort
1150     echo
1151    
1152     if test -n "$ac_subst_files"; then
1153     cat <<\_ASBOX
1154     ## ------------- ##
1155     ## Output files. ##
1156     ## ------------- ##
1157     _ASBOX
1158     echo
1159     for ac_var in $ac_subst_files
1160     do
1161     eval ac_val=$`echo $ac_var`
1162 johnpye 364 echo "$ac_var='"'"'$ac_val'"'"'"
1163 johnpye 133 done | sort
1164     echo
1165     fi
1166    
1167     if test -s confdefs.h; then
1168     cat <<\_ASBOX
1169     ## ----------- ##
1170     ## confdefs.h. ##
1171     ## ----------- ##
1172     _ASBOX
1173     echo
1174     sed "/^$/d" confdefs.h | sort
1175     echo
1176     fi
1177     test "$ac_signal" != 0 &&
1178     echo "$as_me: caught signal $ac_signal"
1179     echo "$as_me: exit $exit_status"
1180     } >&5
1181 johnpye 364 rm -f core *.core &&
1182 johnpye 133 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183     exit $exit_status
1184     ' 0
1185     for ac_signal in 1 2 13 15; do
1186     trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187     done
1188     ac_signal=0
1189    
1190     # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191     rm -rf conftest* confdefs.h
1192     # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193     echo >confdefs.h
1194    
1195     # Predefined preprocessor variables.
1196    
1197     cat >>confdefs.h <<_ACEOF
1198     #define PACKAGE_NAME "$PACKAGE_NAME"
1199     _ACEOF
1200    
1201    
1202     cat >>confdefs.h <<_ACEOF
1203     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204     _ACEOF
1205    
1206    
1207     cat >>confdefs.h <<_ACEOF
1208     #define PACKAGE_VERSION "$PACKAGE_VERSION"
1209     _ACEOF
1210    
1211    
1212     cat >>confdefs.h <<_ACEOF
1213     #define PACKAGE_STRING "$PACKAGE_STRING"
1214     _ACEOF
1215    
1216    
1217     cat >>confdefs.h <<_ACEOF
1218     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219     _ACEOF
1220    
1221    
1222     # Let the site file select an alternate cache file if it wants to.
1223 aw0a 37 # Prefer explicitly selected file to automatically selected ones.
1224     if test -z "$CONFIG_SITE"; then
1225     if test "x$prefix" != xNONE; then
1226     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227     else
1228     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229     fi
1230     fi
1231     for ac_site_file in $CONFIG_SITE; do
1232     if test -r "$ac_site_file"; then
1233 johnpye 133 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234     echo "$as_me: loading site script $ac_site_file" >&6;}
1235     sed 's/^/| /' "$ac_site_file" >&5
1236 aw0a 37 . "$ac_site_file"
1237     fi
1238     done
1239    
1240    
1241 johnpye 133 # Check that the precious variables saved in the cache have kept the same
1242     # value.
1243     ac_cache_corrupted=false
1244     for ac_var in `(set) 2>&1 |
1245 johnpye 364 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1246 johnpye 133 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1247     eval ac_new_set=\$ac_env_${ac_var}_set
1248     eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1249     eval ac_new_val="\$ac_env_${ac_var}_value"
1250     case $ac_old_set,$ac_new_set in
1251     set,)
1252     { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1253     echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1254     ac_cache_corrupted=: ;;
1255     ,set)
1256     { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1257     echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1258     ac_cache_corrupted=: ;;
1259     ,);;
1260     *)
1261     if test "x$ac_old_val" != "x$ac_new_val"; then
1262 johnpye 364 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1263 johnpye 133 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1264 johnpye 364 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1265 johnpye 133 echo "$as_me: former value: $ac_old_val" >&2;}
1266 johnpye 364 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1267 johnpye 133 echo "$as_me: current value: $ac_new_val" >&2;}
1268 johnpye 364 ac_cache_corrupted=:
1269 johnpye 133 fi;;
1270     esac
1271     # Pass precious variables to config.status.
1272     if test "$ac_new_set" = set; then
1273     case $ac_new_val in
1274     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1275     ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1276     *) ac_arg=$ac_var=$ac_new_val ;;
1277     esac
1278     case " $ac_configure_args " in
1279     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1280     *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1281     esac
1282     fi
1283     done
1284     if $ac_cache_corrupted; then
1285     { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1286     echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1287     { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1288     echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1289     { (exit 1); exit 1; }; }
1290     fi
1291    
1292 aw0a 37 ac_ext=c
1293     ac_cpp='$CPP $CPPFLAGS'
1294 johnpye 133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1295     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1296     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1297 aw0a 37
1298    
1299    
1300    
1301    
1302 johnpye 133
1303    
1304    
1305    
1306    
1307    
1308    
1309    
1310    
1311    
1312    
1313    
1314    
1315    
1316    
1317    
1318 aw0a 37 #--------------------------------------------------------------------
1319     # CVS Most Recent Revision Data
1320     # Put this data after AC_INIT since we want this information
1321     # to also appear in configure and autoconf, when creating
1322     # configure, strips all comments that appear in configure.in
1323     # before AC_INIT
1324     # $Revision: 1.38 $
1325     # $Date: 2003/11/23 19:36:39 $
1326     # $Author: ballan $
1327     # $Source: /afs/cs.cmu.edu/project/ascend/Repository/configure.in,v $
1328     #--------------------------------------------------------------------
1329    
1330    
1331     #--------------------------------------------------------------------
1332     # Where configure should look for files it needs.
1333     #--------------------------------------------------------------------
1334     ac_aux_dir=
1335     for ac_dir in config $srcdir/config; do
1336     if test -f $ac_dir/install-sh; then
1337     ac_aux_dir=$ac_dir
1338     ac_install_sh="$ac_aux_dir/install-sh -c"
1339     break
1340     elif test -f $ac_dir/install.sh; then
1341     ac_aux_dir=$ac_dir
1342     ac_install_sh="$ac_aux_dir/install.sh -c"
1343     break
1344 johnpye 133 elif test -f $ac_dir/shtool; then
1345     ac_aux_dir=$ac_dir
1346     ac_install_sh="$ac_aux_dir/shtool install -c"
1347     break
1348 aw0a 37 fi
1349     done
1350     if test -z "$ac_aux_dir"; then
1351 johnpye 133 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1352     echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1353     { (exit 1); exit 1; }; }
1354 aw0a 37 fi
1355 johnpye 133 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1356     ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1357     ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1358 aw0a 37
1359    
1360     #--------------------------------------------------------------------
1361     # Set the output variables prefix and exec_prefix that
1362     # determine where things will be installed.
1363     #--------------------------------------------------------------------
1364     if test "${prefix}" = "NONE"; then
1365     prefix=/usr/local
1366     fi
1367     if test "${exec_prefix}" = "NONE"; then
1368     exec_prefix=$prefix
1369     fi
1370    
1371    
1372     #--------------------------------------------------------------------
1373     # For the Fortran support libraries and the TCL/TK libraries
1374     # and header files, we unfortunately need the full path to
1375     # these files. The problem with having the full path is that
1376     # if the user moves the source tree, things will break unless
1377     # the user re-runs configure.
1378     #--------------------------------------------------------------------
1379    
1380     #--------------------------------------------------------------------
1381     ##AWW
1382     ##AWW We put the .o files when compiling into a tree structure
1383     ##AWW relative to the directory in which we currently reside,
1384     ##AWW while the .c and .h files are in a similar tree structure
1385     ##AWW relative to the configure instruction we invoke. This
1386     ##AWW allows one to have separate .o files in their own tree when
1387     ##AWW compiling for different operating systems.
1388     ##AWW
1389     ##AWW Example 1 (same directories)
1390     ##AWW Current directory one is in: /home/me/trunk/base/unixAC213
1391     ##AWW Directory containing configure: /home/me/trunk/base/unixAC213
1392     ##AWW Command to invoke configure: ./configure
1393     ##AWW $ascpwd will be: /home/me/trunk/base/unixAC213
1394     ##AWW $srcdir will be: .
1395     ##AWW
1396     ##AWW Example 2 (different directories, abs path for command)
1397     ##AWW Current directory one is in: /home/me/trunk/base/newTree
1398     ##AWW Directory containing configure: /home/me/trunk/base/unixAC213
1399     ##AWW Command to invoke configure: /home/me/trunk/base/unixAC213/configure
1400     ##AWW $ascpwd will be: /home/me/trunk/base/newTree
1401     ##AWW $srcdir will be: /home/me/trunk/base/unixAC213
1402     ##AWW
1403     ##AWW Example 3 (different directories, rel path for command)
1404     ##AWW Same as Example 2
1405     ##AWW Command to invoke configure: ../unixAC213/configure
1406     ##AWW $ascpwd will be: /home/me/trunk/base/newTree (same as in Example 2)
1407     ##AWW $srcdir will be: ../unixAC213
1408     ##AWW
1409     ##AWW Key elements of the source tree are:
1410     ##AWW code/trunk/trunk/base/unixAC213/configure
1411     ##AWW code/trunk/trunk/base/generic
1412     ##AWW code/trunk/tcltk98
1413     ##AWW where $srcdir is pointing to /home/me/trunk/base/unixAC213, the folder
1414     ##AWW containing "configure"
1415     ##AWW
1416     ##AWW Configure is located at:
1417     ##AWW $srcdir/configure
1418     ##AWW while the .c/.h files one wants are in:
1419     ##AWW $srcdir/../generic/compiler
1420     ##AWW $srcdir/../generic/general
1421     ##AWW $srcdir/../generic/packages
1422     ##AWW $srcdir/../generic/solver
1423     ##AWW $srcdir/../generic/utilities
1424     ##AWW $srcdir/../../tcltk98/generic/interface
1425     ##AWW
1426     ##AWW Each of these directories contain Makefiles and possible
1427     ##AWW need to find .h files in the other directories. For example
1428     ##AWW the include statements are always of the form
1429     ##AWW #include compiler/slv3.h or
1430     ##AWW #include interface/SlvProc.h
1431     ##AWW
1432     ##AWW A safe include path should assume one is a directory with any
1433     ##AWW of these .h and .c files and one needs to find a .h file in
1434 johnpye 133 ##AWW any other of them. The following paths should do it.
1435     ##AWW
1436 aw0a 37 ##AWW If in compiler, general, packages, solver, utilities
1437     ##AWW .. for general, packages, etc
1438     ##AWW ../../../tcltk98/generic for interface
1439     ##AWW If in interface
1440     ##AWW .. for interface
1441     ##AWW ../../../base/generic for compiler, general, ..
1442     ##AWW
1443     #--------------------------------------------------------------------
1444     # The asc_include variable is (directory) path to the ascend4
1445     # SOURCE directory relative to the immediate subdirectories of
1446     # the ascend4 OBJECT directory. --rewrite - not clear.
1447     #AWW To compile a new ASCEND executable, one should move into the
1448     #AWW directory in which one wants the ASCEND object/executable
1449 johnpye 133 #AWW to reside (call this objTree) and from there run
1450 aw0a 37 #AWW ../base/unixAC213/configure.
1451     #AWW In the following code asc_include is set to the path from
1452 johnpye 362 #JP I think that the current recommendation is to install from
1453     #JP run ./configure (ie from this directory)
1454 aw0a 37
1455     ascpwd=`pwd`
1456     fullpathsrcdir=`cd $srcdir ; pwd`
1457    
1458     case "$srcdir" in
1459     .)
1460     asc_include="../$srcdir"
1461     ;;
1462     /*)
1463     asc_include="$srcdir/../generic"
1464     ;;
1465     *)
1466     asc_include="$srcdir/../generic"
1467     ;;
1468     esac
1469    
1470    
1471     #--------------------------------------------------------------------
1472     # Do basic checks to determine
1473     # * if we have `ranlib'
1474     # * if we can create symbolic links
1475     # * if `make' sets the MAKE macro
1476     # * a bsd-compatible `install' program
1477     # If we use the install-sh script that comes with configure,
1478     # prefix it with the current directory so it'll work in
1479     # subdirectories. Unfortunately, it won't work if the user
1480     # moves the source tree.
1481     #--------------------------------------------------------------------
1482 johnpye 133 if test -n "$ac_tool_prefix"; then
1483     # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1484     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1485     echo "$as_me:$LINENO: checking for $ac_word" >&5
1486     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487     if test "${ac_cv_prog_RANLIB+set}" = set; then
1488     echo $ECHO_N "(cached) $ECHO_C" >&6
1489 aw0a 37 else
1490     if test -n "$RANLIB"; then
1491     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1492     else
1493 johnpye 133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494     for as_dir in $PATH
1495     do
1496     IFS=$as_save_IFS
1497     test -z "$as_dir" && as_dir=.
1498     for ac_exec_ext in '' $ac_executable_extensions; do
1499     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502     break 2
1503     fi
1504     done
1505     done
1506    
1507 aw0a 37 fi
1508     fi
1509 johnpye 133 RANLIB=$ac_cv_prog_RANLIB
1510 aw0a 37 if test -n "$RANLIB"; then
1511 johnpye 133 echo "$as_me:$LINENO: result: $RANLIB" >&5
1512     echo "${ECHO_T}$RANLIB" >&6
1513 aw0a 37 else
1514 johnpye 133 echo "$as_me:$LINENO: result: no" >&5
1515     echo "${ECHO_T}no" >&6
1516 aw0a 37 fi
1517    
1518 johnpye 133 fi
1519     if test -z "$ac_cv_prog_RANLIB"; then
1520     ac_ct_RANLIB=$RANLIB
1521     # Extract the first word of "ranlib", so it can be a program name with args.
1522     set dummy ranlib; ac_word=$2
1523     echo "$as_me:$LINENO: checking for $ac_word" >&5
1524     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525     if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1526     echo $ECHO_N "(cached) $ECHO_C" >&6
1527 aw0a 37 else
1528 johnpye 133 if test -n "$ac_ct_RANLIB"; then
1529     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1530 aw0a 37 else
1531 johnpye 133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532     for as_dir in $PATH
1533     do
1534     IFS=$as_save_IFS
1535     test -z "$as_dir" && as_dir=.
1536     for ac_exec_ext in '' $ac_executable_extensions; do
1537     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538     ac_cv_prog_ac_ct_RANLIB="ranlib"
1539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540     break 2
1541     fi
1542     done
1543     done
1544    
1545     test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1546 aw0a 37 fi
1547     fi
1548 johnpye 133 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1549     if test -n "$ac_ct_RANLIB"; then
1550     echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1551     echo "${ECHO_T}$ac_ct_RANLIB" >&6
1552 aw0a 37 else
1553 johnpye 133 echo "$as_me:$LINENO: result: no" >&5
1554     echo "${ECHO_T}no" >&6
1555 aw0a 37 fi
1556    
1557 johnpye 133 RANLIB=$ac_ct_RANLIB
1558 aw0a 37 else
1559 johnpye 133 RANLIB="$ac_cv_prog_RANLIB"
1560     fi
1561    
1562     echo "$as_me:$LINENO: checking whether ln -s works" >&5
1563     echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1564     LN_S=$as_ln_s
1565     if test "$LN_S" = "ln -s"; then
1566     echo "$as_me:$LINENO: result: yes" >&5
1567     echo "${ECHO_T}yes" >&6
1568     else
1569     echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1570     echo "${ECHO_T}no, using $LN_S" >&6
1571     fi
1572    
1573     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1574     echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1575 johnpye 364 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1576 johnpye 133 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1577     echo $ECHO_N "(cached) $ECHO_C" >&6
1578     else
1579     cat >conftest.make <<\_ACEOF
1580 aw0a 37 all:
1581 johnpye 133 @echo 'ac_maketemp="$(MAKE)"'
1582     _ACEOF
1583 aw0a 37 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1584 johnpye 133 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1585 aw0a 37 if test -n "$ac_maketemp"; then
1586     eval ac_cv_prog_make_${ac_make}_set=yes
1587     else
1588     eval ac_cv_prog_make_${ac_make}_set=no
1589     fi
1590 johnpye 133 rm -f conftest.make
1591 aw0a 37 fi
1592     if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1593 johnpye 133 echo "$as_me:$LINENO: result: yes" >&5
1594     echo "${ECHO_T}yes" >&6
1595 aw0a 37 SET_MAKE=
1596     else
1597 johnpye 133 echo "$as_me:$LINENO: result: no" >&5
1598     echo "${ECHO_T}no" >&6
1599 aw0a 37 SET_MAKE="MAKE=${MAKE-make}"
1600     fi
1601    
1602     # Find a good install program. We prefer a C program (faster),
1603     # so one script is as good as another. But avoid the broken or
1604     # incompatible versions:
1605     # SysV /etc/install, /usr/sbin/install
1606     # SunOS /usr/etc/install
1607     # IRIX /sbin/install
1608     # AIX /bin/install
1609 johnpye 133 # AmigaOS /C/install, which installs bootblocks on floppy discs
1610 aw0a 37 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1611     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1612     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1613 johnpye 364 # OS/2's system install, which has a completely different semantic
1614 aw0a 37 # ./install, which can be erroneously created by make from ./install.sh.
1615 johnpye 133 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1616     echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1617 aw0a 37 if test -z "$INSTALL"; then
1618 johnpye 133 if test "${ac_cv_path_install+set}" = set; then
1619     echo $ECHO_N "(cached) $ECHO_C" >&6
1620 aw0a 37 else
1621 johnpye 133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622     for as_dir in $PATH
1623     do
1624     IFS=$as_save_IFS
1625     test -z "$as_dir" && as_dir=.
1626     # Account for people who put trailing slashes in PATH elements.
1627     case $as_dir/ in
1628     ./ | .// | /cC/* | \
1629     /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1630 johnpye 364 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1631 johnpye 133 /usr/ucb/* ) ;;
1632     *)
1633     # OSF1 and SCO ODT 3.0 have their own names for install.
1634     # Don't use installbsd from OSF since it installs stuff as root
1635     # by default.
1636     for ac_prog in ginstall scoinst install; do
1637     for ac_exec_ext in '' $ac_executable_extensions; do
1638 johnpye 364 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1639     if test $ac_prog = install &&
1640     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1641     # AIX install. It has an incompatible calling convention.
1642     :
1643     elif test $ac_prog = install &&
1644     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1645     # program-specific install script used by HP pwplus--don't use.
1646     :
1647     else
1648     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1649     break 3
1650     fi
1651     fi
1652 aw0a 37 done
1653 johnpye 133 done
1654     ;;
1655     esac
1656     done
1657 aw0a 37
1658 johnpye 133
1659 aw0a 37 fi
1660     if test "${ac_cv_path_install+set}" = set; then
1661 johnpye 133 INSTALL=$ac_cv_path_install
1662 aw0a 37 else
1663     # As a last resort, use the slow shell script. We don't cache a
1664     # path for INSTALL within a source directory, because that will
1665     # break other packages using the cache if that directory is
1666     # removed, or if the path is relative.
1667 johnpye 133 INSTALL=$ac_install_sh
1668 aw0a 37 fi
1669     fi
1670 johnpye 133 echo "$as_me:$LINENO: result: $INSTALL" >&5
1671     echo "${ECHO_T}$INSTALL" >&6
1672 aw0a 37
1673     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1674     # It thinks the first close brace ends the variable substitution.
1675     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1676    
1677 johnpye 133 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1678 aw0a 37
1679     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1680    
1681 johnpye 192
1682 aw0a 37 case "X$INSTALL" in
1683     X/*)
1684     ;;
1685     *)
1686     INSTALL="$ascpwd/$INSTALL"
1687     ;;
1688     esac
1689    
1690    
1691     #--------------------------------------------------------------------
1692     # Get the host type for various checks along the way
1693     #--------------------------------------------------------------------
1694 johnpye 133 # Make sure we can run config.sub.
1695     $ac_config_sub sun4 >/dev/null 2>&1 ||
1696     { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1697     echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1698     { (exit 1); exit 1; }; }
1699 ben.allan 41
1700 johnpye 133 echo "$as_me:$LINENO: checking build system type" >&5
1701     echo $ECHO_N "checking build system type... $ECHO_C" >&6
1702     if test "${ac_cv_build+set}" = set; then
1703     echo $ECHO_N "(cached) $ECHO_C" >&6
1704     else
1705     ac_cv_build_alias=$build_alias
1706     test -z "$ac_cv_build_alias" &&
1707     ac_cv_build_alias=`$ac_config_guess`
1708     test -z "$ac_cv_build_alias" &&
1709     { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1710     echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1711     { (exit 1); exit 1; }; }
1712     ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1713     { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1714     echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1715     { (exit 1); exit 1; }; }
1716    
1717 aw0a 37 fi
1718 johnpye 133 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1719     echo "${ECHO_T}$ac_cv_build" >&6
1720     build=$ac_cv_build
1721     build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1722     build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1723     build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1724 aw0a 37
1725    
1726 johnpye 133 echo "$as_me:$LINENO: checking host system type" >&5
1727     echo $ECHO_N "checking host system type... $ECHO_C" >&6
1728     if test "${ac_cv_host+set}" = set; then
1729     echo $ECHO_N "(cached) $ECHO_C" >&6
1730     else
1731     ac_cv_host_alias=$host_alias
1732     test -z "$ac_cv_host_alias" &&
1733     ac_cv_host_alias=$ac_cv_build_alias
1734     ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1735     { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1736     echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1737     { (exit 1); exit 1; }; }
1738 aw0a 37
1739 johnpye 133 fi
1740     echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1741     echo "${ECHO_T}$ac_cv_host" >&6
1742     host=$ac_cv_host
1743     host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1744     host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1745     host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1746 aw0a 37
1747    
1748    
1749     #--------------------------------------------------------------------
1750     # Check for the C compiler: set CC and CFLAGS.
1751     # If the user does NOT specify `--enable-gcc' on the configure
1752     # command command line, set CC to either the envar CC or `cc'.
1753     # Call AC_PROG_CC which will use the value of CC (perhaps set
1754     # immediately above) or will check for `gcc' and then for `cc'
1755     # if `gcc' is not found.
1756     #
1757     # If we are using GCC, then assume it groks ANSI. Otherwise,
1758     # try to compile a small program using ANSI constructs with
1759     # CC. If this fails, try to locate each of the following:
1760     # c89 xlc acc
1761     # and if successful, see if it compiles an ANSI C program.
1762     # (Doing this in a loop would be ideal, but configure caches
1763     # the result of AC_CHECK_PROG and uses the cached value for
1764     # all but the first pass through the loop. This is also the
1765     # reason we have to use a different variable asc_cc1, asc_cc2
1766     # for each call to AC_CHECK_PROG.
1767     #
1768     # If we do not find an ANSI C compiler, print a warning and
1769     # use the first value of CC we tried.
1770     #--------------------------------------------------------------------
1771 johnpye 364 #JP removed the lengthy CC tests, since ANSI C is pretty universal
1772     #JP these days, and GCC can pretty much be assumed if we're using
1773     #JP Autotools.
1774 aw0a 37
1775 johnpye 362 ac_ext=c
1776 johnpye 133 ac_cpp='$CPP $CPPFLAGS'
1777     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1778     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1779     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1780     if test -n "$ac_tool_prefix"; then
1781 johnpye 362 for ac_prog in gcc
1782 johnpye 133 do
1783     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1784     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1785     echo "$as_me:$LINENO: checking for $ac_word" >&5
1786     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787     if test "${ac_cv_prog_CC+set}" = set; then
1788     echo $ECHO_N "(cached) $ECHO_C" >&6
1789     else
1790     if test -n "$CC"; then
1791     ac_cv_prog_CC="$CC" # Let the user override the test.
1792     else
1793     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794     for as_dir in $PATH
1795     do
1796     IFS=$as_save_IFS
1797     test -z "$as_dir" && as_dir=.
1798     for ac_exec_ext in '' $ac_executable_extensions; do
1799     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802     break 2
1803     fi
1804     done
1805     done
1806    
1807     fi
1808     fi
1809     CC=$ac_cv_prog_CC
1810     if test -n "$CC"; then
1811     echo "$as_me:$LINENO: result: $CC" >&5
1812     echo "${ECHO_T}$CC" >&6
1813     else
1814     echo "$as_me:$LINENO: result: no" >&5
1815     echo "${ECHO_T}no" >&6
1816     fi
1817    
1818     test -n "$CC" && break
1819     done
1820     fi
1821     if test -z "$CC"; then
1822     ac_ct_CC=$CC
1823 johnpye 362 for ac_prog in gcc
1824 johnpye 133 do
1825     # Extract the first word of "$ac_prog", so it can be a program name with args.
1826     set dummy $ac_prog; ac_word=$2
1827     echo "$as_me:$LINENO: checking for $ac_word" >&5
1828     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1830     echo $ECHO_N "(cached) $ECHO_C" >&6
1831     else
1832     if test -n "$ac_ct_CC"; then
1833     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1834     else
1835     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836     for as_dir in $PATH
1837     do
1838     IFS=$as_save_IFS
1839     test -z "$as_dir" && as_dir=.
1840     for ac_exec_ext in '' $ac_executable_extensions; do
1841     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842     ac_cv_prog_ac_ct_CC="$ac_prog"
1843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844     break 2
1845     fi
1846     done
1847     done
1848    
1849     fi
1850     fi
1851     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1852     if test -n "$ac_ct_CC"; then
1853     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1854     echo "${ECHO_T}$ac_ct_CC" >&6
1855     else
1856     echo "$as_me:$LINENO: result: no" >&5
1857     echo "${ECHO_T}no" >&6
1858     fi
1859    
1860     test -n "$ac_ct_CC" && break
1861     done
1862    
1863     CC=$ac_ct_CC
1864     fi
1865    
1866    
1867     test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1868     See \`config.log' for more details." >&5
1869     echo "$as_me: error: no acceptable C compiler found in \$PATH
1870     See \`config.log' for more details." >&2;}
1871     { (exit 1); exit 1; }; }
1872    
1873     # Provide some information about the compiler.
1874     echo "$as_me:$LINENO:" \
1875     "checking for C compiler version" >&5
1876     ac_compiler=`set X $ac_compile; echo $2`
1877     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1878     (eval $ac_compiler --version </dev/null >&5) 2>&5
1879     ac_status=$?
1880     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881     (exit $ac_status); }
1882     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1883     (eval $ac_compiler -v </dev/null >&5) 2>&5
1884     ac_status=$?
1885     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886     (exit $ac_status); }
1887     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1888     (eval $ac_compiler -V </dev/null >&5) 2>&5
1889     ac_status=$?
1890     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891     (exit $ac_status); }
1892    
1893     cat >conftest.$ac_ext <<_ACEOF
1894     /* confdefs.h. */
1895     _ACEOF
1896     cat confdefs.h >>conftest.$ac_ext
1897     cat >>conftest.$ac_ext <<_ACEOF
1898     /* end confdefs.h. */
1899    
1900     int
1901     main ()
1902     {
1903    
1904     ;
1905     return 0;
1906     }
1907     _ACEOF
1908     ac_clean_files_save=$ac_clean_files
1909     ac_clean_files="$ac_clean_files a.out a.exe b.out"
1910     # Try to create an executable without -o first, disregard a.out.
1911     # It will help us diagnose broken compilers, and finding out an intuition
1912     # of exeext.
1913 johnpye 364 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1914     echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1915 johnpye 133 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1916     if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1917     (eval $ac_link_default) 2>&5
1918     ac_status=$?
1919     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1920     (exit $ac_status); }; then
1921     # Find the output, starting from the most likely. This scheme is
1922     # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1923     # resort.
1924    
1925     # Be careful to initialize this variable, since it used to be cached.
1926     # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1927     ac_cv_exeext=
1928     # b.out is created by i960 compilers.
1929     for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1930     do
1931     test -f "$ac_file" || continue
1932     case $ac_file in
1933     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1934 johnpye 364 ;;
1935 johnpye 133 conftest.$ac_ext )
1936 johnpye 364 # This is the source file.
1937     ;;
1938 johnpye 133 [ab].out )
1939 johnpye 364 # We found the default executable, but exeext='' is most
1940     # certainly right.
1941     break;;
1942 johnpye 133 *.* )
1943 johnpye 364 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1944     # FIXME: I believe we export ac_cv_exeext for Libtool,
1945     # but it would be cool to find out if it's true. Does anybody
1946     # maintain Libtool? --akim.
1947     export ac_cv_exeext
1948     break;;
1949 johnpye 133 * )
1950 johnpye 364 break;;
1951 johnpye 133 esac
1952     done
1953     else
1954     echo "$as_me: failed program was:" >&5
1955     sed 's/^/| /' conftest.$ac_ext >&5
1956    
1957     { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1958     See \`config.log' for more details." >&5
1959     echo "$as_me: error: C compiler cannot create executables
1960     See \`config.log' for more details." >&2;}
1961     { (exit 77); exit 77; }; }
1962     fi
1963    
1964     ac_exeext=$ac_cv_exeext
1965     echo "$as_me:$LINENO: result: $ac_file" >&5
1966     echo "${ECHO_T}$ac_file" >&6
1967    
1968     # Check the compiler produces executables we can run. If not, either
1969     # the compiler is broken, or we cross compile.
1970     echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1971     echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1972     # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1973     # If not cross compiling, check that we can run a simple program.
1974     if test "$cross_compiling" != yes; then
1975     if { ac_try='./$ac_file'
1976     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1977     (eval $ac_try) 2>&5
1978     ac_status=$?
1979     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980     (exit $ac_status); }; }; then
1981     cross_compiling=no
1982     else
1983     if test "$cross_compiling" = maybe; then
1984     cross_compiling=yes
1985     else
1986     { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1987     If you meant to cross compile, use \`--host'.
1988     See \`config.log' for more details." >&5
1989     echo "$as_me: error: cannot run C compiled programs.
1990     If you meant to cross compile, use \`--host'.
1991     See \`config.log' for more details." >&2;}
1992     { (exit 1); exit 1; }; }
1993     fi
1994     fi
1995     fi
1996     echo "$as_me:$LINENO: result: yes" >&5
1997     echo "${ECHO_T}yes" >&6
1998    
1999     rm -f a.out a.exe conftest$ac_cv_exeext b.out
2000     ac_clean_files=$ac_clean_files_save
2001     # Check the compiler produces executables we can run. If not, either
2002     # the compiler is broken, or we cross compile.
2003     echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2004     echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2005     echo "$as_me:$LINENO: result: $cross_compiling" >&5
2006     echo "${ECHO_T}$cross_compiling" >&6
2007    
2008     echo "$as_me:$LINENO: checking for suffix of executables" >&5
2009     echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2010     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2011     (eval $ac_link) 2>&5
2012     ac_status=$?
2013     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014     (exit $ac_status); }; then
2015     # If both `conftest.exe' and `conftest' are `present' (well, observable)
2016     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2017     # work properly (i.e., refer to `conftest.exe'), while it won't with
2018     # `rm'.
2019     for ac_file in conftest.exe conftest conftest.*; do
2020     test -f "$ac_file" || continue
2021     case $ac_file in
2022     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2023     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2024 johnpye 364 export ac_cv_exeext
2025     break;;
2026 johnpye 133 * ) break;;
2027     esac
2028     done
2029     else
2030     { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2031     See \`config.log' for more details." >&5
2032     echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2033     See \`config.log' for more details." >&2;}
2034     { (exit 1); exit 1; }; }
2035     fi
2036    
2037     rm -f conftest$ac_cv_exeext
2038     echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2039     echo "${ECHO_T}$ac_cv_exeext" >&6
2040    
2041     rm -f conftest.$ac_ext
2042     EXEEXT=$ac_cv_exeext
2043     ac_exeext=$EXEEXT
2044     echo "$as_me:$LINENO: checking for suffix of object files" >&5
2045     echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2046     if test "${ac_cv_objext+set}" = set; then
2047     echo $ECHO_N "(cached) $ECHO_C" >&6
2048     else
2049     cat >conftest.$ac_ext <<_ACEOF
2050     /* confdefs.h. */
2051     _ACEOF
2052     cat confdefs.h >>conftest.$ac_ext
2053     cat >>conftest.$ac_ext <<_ACEOF
2054     /* end confdefs.h. */
2055    
2056     int
2057     main ()
2058     {
2059    
2060     ;
2061     return 0;
2062     }
2063     _ACEOF
2064     rm -f conftest.o conftest.obj
2065     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2066     (eval $ac_compile) 2>&5
2067     ac_status=$?
2068     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069     (exit $ac_status); }; then
2070     for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2071     case $ac_file in
2072     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2073     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2074     break;;
2075     esac
2076     done
2077     else
2078     echo "$as_me: failed program was:" >&5
2079     sed 's/^/| /' conftest.$ac_ext >&5
2080    
2081     { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2082     See \`config.log' for more details." >&5
2083     echo "$as_me: error: cannot compute suffix of object files: cannot compile
2084     See \`config.log' for more details." >&2;}
2085     { (exit 1); exit 1; }; }
2086     fi
2087    
2088     rm -f conftest.$ac_cv_objext conftest.$ac_ext
2089     fi
2090     echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2091     echo "${ECHO_T}$ac_cv_objext" >&6
2092     OBJEXT=$ac_cv_objext
2093     ac_objext=$OBJEXT
2094     echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2095     echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2096     if test "${ac_cv_c_compiler_gnu+set}" = set; then
2097     echo $ECHO_N "(cached) $ECHO_C" >&6
2098     else
2099     cat >conftest.$ac_ext <<_ACEOF
2100     /* confdefs.h. */
2101     _ACEOF
2102     cat confdefs.h >>conftest.$ac_ext
2103     cat >>conftest.$ac_ext <<_ACEOF
2104     /* end confdefs.h. */
2105    
2106     int
2107     main ()
2108     {
2109     #ifndef __GNUC__
2110     choke me
2111     #endif
2112    
2113     ;
2114     return 0;
2115     }
2116     _ACEOF
2117     rm -f conftest.$ac_objext
2118     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2119 johnpye 364 (eval $ac_compile) 2>conftest.er1
2120 johnpye 133 ac_status=$?
2121 johnpye 364 grep -v '^ *+' conftest.er1 >conftest.err
2122     rm -f conftest.er1
2123     cat conftest.err >&5
2124 johnpye 133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125     (exit $ac_status); } &&
2126 johnpye 364 { ac_try='test -z "$ac_c_werror_flag"
2127     || test ! -s conftest.err'
2128 johnpye 133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2129     (eval $ac_try) 2>&5
2130     ac_status=$?
2131     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 johnpye 364 (exit $ac_status); }; } &&
2133     { ac_try='test -s conftest.$ac_objext'
2134     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2135     (eval $ac_try) 2>&5
2136     ac_status=$?
2137     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 johnpye 133 (exit $ac_status); }; }; then
2139     ac_compiler_gnu=yes
2140     else
2141     echo "$as_me: failed program was:" >&5
2142     sed 's/^/| /' conftest.$ac_ext >&5
2143    
2144     ac_compiler_gnu=no
2145     fi
2146 johnpye 364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2147 johnpye 133 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2148    
2149     fi
2150     echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2151     echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2152     GCC=`test $ac_compiler_gnu = yes && echo yes`
2153     ac_test_CFLAGS=${CFLAGS+set}
2154     ac_save_CFLAGS=$CFLAGS
2155     CFLAGS="-g"
2156     echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2157     echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2158     if test "${ac_cv_prog_cc_g+set}" = set; then
2159     echo $ECHO_N "(cached) $ECHO_C" >&6
2160     else
2161     cat >conftest.$ac_ext <<_ACEOF
2162     /* confdefs.h. */
2163     _ACEOF
2164     cat confdefs.h >>conftest.$ac_ext
2165     cat >>conftest.$ac_ext <<_ACEOF
2166     /* end confdefs.h. */
2167    
2168     int
2169     main ()
2170     {
2171    
2172     ;
2173     return 0;
2174     }
2175     _ACEOF
2176     rm -f conftest.$ac_objext
2177     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2178 johnpye 364 (eval $ac_compile) 2>conftest.er1
2179 johnpye 133 ac_status=$?
2180 johnpye 364 grep -v '^ *+' conftest.er1 >conftest.err
2181     rm -f conftest.er1
2182     cat conftest.err >&5
2183 johnpye 133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184     (exit $ac_status); } &&
2185 johnpye 364 { ac_try='test -z "$ac_c_werror_flag"
2186     || test ! -s conftest.err'
2187 johnpye 133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188     (eval $ac_try) 2>&5
2189     ac_status=$?
2190     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 johnpye 364 (exit $ac_status); }; } &&
2192     { ac_try='test -s conftest.$ac_objext'
2193     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194     (eval $ac_try) 2>&5
2195     ac_status=$?
2196     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 johnpye 133 (exit $ac_status); }; }; then
2198     ac_cv_prog_cc_g=yes
2199     else
2200     echo "$as_me: failed program was:" >&5
2201     sed 's/^/| /' conftest.$ac_ext >&5
2202    
2203     ac_cv_prog_cc_g=no
2204     fi
2205 johnpye 364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2206 johnpye 133 fi
2207     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2208     echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2209     if test "$ac_test_CFLAGS" = set; then
2210     CFLAGS=$ac_save_CFLAGS
2211     elif test $ac_cv_prog_cc_g = yes; then
2212     if test "$GCC" = yes; then
2213     CFLAGS="-g -O2"
2214     else
2215     CFLAGS="-g"
2216     fi
2217     else
2218     if test "$GCC" = yes; then
2219     CFLAGS="-O2"
2220     else
2221     CFLAGS=
2222     fi
2223     fi
2224     echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2225     echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2226     if test "${ac_cv_prog_cc_stdc+set}" = set; then
2227     echo $ECHO_N "(cached) $ECHO_C" >&6
2228     else
2229     ac_cv_prog_cc_stdc=no
2230     ac_save_CC=$CC
2231     cat >conftest.$ac_ext <<_ACEOF
2232     /* confdefs.h. */
2233     _ACEOF
2234     cat confdefs.h >>conftest.$ac_ext
2235     cat >>conftest.$ac_ext <<_ACEOF
2236     /* end confdefs.h. */
2237     #include <stdarg.h>
2238     #include <stdio.h>
2239     #include <sys/types.h>
2240     #include <sys/stat.h>
2241     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2242     struct buf { int x; };
2243     FILE * (*rcsopen) (struct buf *, struct stat *, int);
2244     static char *e (p, i)
2245     char **p;
2246     int i;
2247     {
2248     return p[i];
2249     }
2250     static char *f (char * (*g) (char **, int), char **p, ...)
2251     {
2252     char *s;
2253     va_list v;
2254     va_start (v,p);
2255     s = g (p, va_arg (v,int));
2256     va_end (v);
2257     return s;
2258     }
2259 johnpye 364
2260     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2261     function prototypes and stuff, but not '\xHH' hex character constants.
2262     These don't provoke an error unfortunately, instead are silently treated
2263     as 'x'. The following induces an error, until -std1 is added to get
2264     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2265     array size at least. It's necessary to write '\x00'==0 to get something
2266     that's true only with -std1. */
2267     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2268    
2269 johnpye 133 int test (int i, double x);
2270     struct s1 {int (*f) (int a);};
2271     struct s2 {int (*f) (double a);};
2272     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2273     int argc;
2274     char **argv;
2275     int
2276     main ()
2277     {
2278     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2279     ;
2280     return 0;
2281     }
2282     _ACEOF
2283     # Don't try gcc -ansi; that turns off useful extensions and
2284     # breaks some systems' header files.
2285     # AIX -qlanglvl=ansi
2286     # Ultrix and OSF/1 -std1
2287     # HP-UX 10.20 and later -Ae
2288     # HP-UX older versions -Aa -D_HPUX_SOURCE
2289     # SVR4 -Xc -D__EXTENSIONS__
2290     for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2291     do
2292     CC="$ac_save_CC $ac_arg"
2293     rm -f conftest.$ac_objext
2294     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295 johnpye 364 (eval $ac_compile) 2>conftest.er1
2296 johnpye 133 ac_status=$?
2297 johnpye 364 grep -v '^ *+' conftest.er1 >conftest.err
2298     rm -f conftest.er1
2299     cat conftest.err >&5
2300 johnpye 133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301     (exit $ac_status); } &&
2302 johnpye 364 { ac_try='test -z "$ac_c_werror_flag"
2303     || test ! -s conftest.err'
2304 johnpye 133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305     (eval $ac_try) 2>&5
2306     ac_status=$?
2307     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 johnpye 364 (exit $ac_status); }; } &&
2309     { ac_try='test -s conftest.$ac_objext'
2310     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311     (eval $ac_try) 2>&5
2312     ac_status=$?
2313     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 johnpye 133 (exit $ac_status); }; }; then
2315     ac_cv_prog_cc_stdc=$ac_arg
2316     break
2317     else
2318     echo "$as_me: failed program was:" >&5
2319     sed 's/^/| /' conftest.$ac_ext >&5
2320    
2321     fi
2322 johnpye 364 rm -f conftest.err conftest.$ac_objext
2323 johnpye 133 done
2324     rm -f conftest.$ac_ext conftest.$ac_objext
2325     CC=$ac_save_CC
2326    
2327     fi
2328    
2329     case "x$ac_cv_prog_cc_stdc" in
2330     x|xno)
2331     echo "$as_me:$LINENO: result: none needed" >&5
2332     echo "${ECHO_T}none needed" >&6 ;;
2333     *)
2334     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2335     echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2336     CC="$CC $ac_cv_prog_cc_stdc" ;;
2337     esac
2338    
2339     # Some people use a C++ compiler to compile C. Since we use `exit',
2340     # in C++ we need to declare it. In case someone uses the same compiler
2341     # for both compiling C and C++ we need to have the C++ compiler decide
2342     # the declaration of exit, since it's the most demanding environment.
2343     cat >conftest.$ac_ext <<_ACEOF
2344     #ifndef __cplusplus
2345     choke me
2346     #endif
2347     _ACEOF
2348     rm -f conftest.$ac_objext
2349     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350 johnpye 364 (eval $ac_compile) 2>conftest.er1
2351 johnpye 133 ac_status=$?
2352 johnpye 364 grep -v '^ *+' conftest.er1 >conftest.err
2353     rm -f conftest.er1
2354     cat conftest.err >&5
2355 johnpye 133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356     (exit $ac_status); } &&
2357 johnpye 364 { ac_try='test -z "$ac_c_werror_flag"
2358     || test ! -s conftest.err'
2359 johnpye 133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360     (eval $ac_try) 2>&5
2361     ac_status=$?
2362     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 johnpye 364 (exit $ac_status); }; } &&
2364     { ac_try='test -s conftest.$ac_objext'
2365     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366     (eval $ac_try) 2>&5
2367     ac_status=$?
2368     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 johnpye 133 (exit $ac_status); }; }; then
2370     for ac_declaration in \
2371 johnpye 364 '' \
2372 johnpye 133 'extern "C" void std::exit (int) throw (); using std::exit;' \
2373     'extern "C" void std::exit (int); using std::exit;' \
2374     'extern "C" void exit (int) throw ();' \
2375     'extern "C" void exit (int);' \
2376     'void exit (int);'
2377     do
2378     cat >conftest.$ac_ext <<_ACEOF
2379     /* confdefs.h. */
2380     _ACEOF
2381     cat confdefs.h >>conftest.$ac_ext
2382     cat >>conftest.$ac_ext <<_ACEOF
2383     /* end confdefs.h. */
2384 johnpye 364 $ac_declaration
2385 johnpye 348 #include <stdlib.h>
2386 johnpye 133 int
2387     main ()
2388     {
2389     exit (42);
2390     ;
2391     return 0;
2392     }
2393     _ACEOF
2394     rm -f conftest.$ac_objext
2395     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396 johnpye 364 (eval $ac_compile) 2>conftest.er1
2397 johnpye 133 ac_status=$?
2398 johnpye 364 grep -v '^ *+' conftest.er1 >conftest.err
2399     rm -f conftest.er1
2400     cat conftest.err >&5
2401 johnpye 133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402     (exit $ac_status); } &&
2403 johnpye 364 { ac_try='test -z "$ac_c_werror_flag"
2404     || test ! -s conftest.err'
2405 johnpye 133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406     (eval $ac_try) 2>&5
2407     ac_status=$?
2408     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 johnpye 364 (exit $ac_status); }; } &&
2410     { ac_try='test -s conftest.$ac_objext'
2411     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412     (eval $ac_try) 2>&5
2413     ac_status=$?
2414     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 johnpye 133 (exit $ac_status); }; }; then
2416     :
2417     else
2418     echo "$as_me: failed program was:" >&5
2419     sed 's/^/| /' conftest.$ac_ext >&5
2420    
2421     continue
2422     fi
2423 johnpye 364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2424 johnpye 133 cat >conftest.$ac_ext <<_ACEOF
2425     /* confdefs.h. */
2426     _ACEOF
2427     cat confdefs.h >>conftest.$ac_ext
2428     cat >>conftest.$ac_ext <<_ACEOF
2429     /* end confdefs.h. */
2430     $ac_declaration
2431     int
2432     main ()
2433     {
2434     exit (42);
2435     ;
2436     return 0;
2437     }
2438     _ACEOF
2439     rm -f conftest.$ac_objext
2440     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2441 johnpye 364 (eval $ac_compile) 2>conftest.er1
2442 johnpye 133 ac_status=$?
2443 johnpye 364 grep -v '^ *+' conftest.er1 >conftest.err
2444     rm -f conftest.er1
2445     cat conftest.err >&5
2446 johnpye 133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447     (exit $ac_status); } &&
2448 johnpye 364 { ac_try='test -z "$ac_c_werror_flag"
2449     || test ! -s conftest.err'
2450 johnpye 133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451     (eval $ac_try) 2>&5
2452     ac_status=$?
2453     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 johnpye 364 (exit $ac_status); }; } &&
2455     { ac_try='test -s conftest.$ac_objext'
2456     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457     (eval $ac_try) 2>&5
2458     ac_status=$?
2459     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 johnpye 133 (exit $ac_status); }; }; then
2461     break
2462     else
2463     echo "$as_me: failed program was:" >&5
2464     sed 's/^/| /' conftest.$ac_ext >&5
2465    
2466     fi
2467 johnpye 364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2468 johnpye 133 done
2469     rm -f conftest*
2470     if test -n "$ac_declaration"; then
2471     echo '#ifdef __cplusplus' >>confdefs.h
2472     echo $ac_declaration >>confdefs.h
2473     echo '#endif' >>confdefs.h
2474     fi
2475    
2476     else
2477     echo "$as_me: failed program was:" >&5
2478     sed 's/^/| /' conftest.$ac_ext >&5
2479    
2480     fi
2481 johnpye 364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2482 johnpye 133 ac_ext=c
2483     ac_cpp='$CPP $CPPFLAGS'
2484     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2487    
2488    
2489 aw0a 37 #--------------------------------------------------------------------
2490     # Do other misc checks with CC and CFLAGS.
2491     #
2492     # Determine how to run the C preprocessor.
2493     #
2494     # If the user specifies --enable-optimization, remove `-g'
2495     # from CFLAGS, add `-O' to CFLAGS, and define `NDEBUG'. If
2496     # we are not building optimized, check for special libraries
2497     # needed for building a debugging binary (currenly only
2498     # /usr/lib/end.o under HPUX).
2499     #
2500     # Check if we're running on AIX; if so, add `-D_ALL_SOURCE'
2501     # to CFLAGS.
2502     #
2503     # Check if we're running on HPUX; if so, add -D_HPUX_SOURCE'
2504     # to CFLAGS unless the C preprocessor goes it for us.
2505     #--------------------------------------------------------------------
2506    
2507 johnpye 133 ac_ext=c
2508     ac_cpp='$CPP $CPPFLAGS'
2509     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2512     echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2513     echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2514 aw0a 37 # On Suns, sometimes $CPP names a directory.
2515     if test -n "$CPP" && test -d "$CPP"; then
2516     CPP=
2517     fi
2518     if test -z "$CPP"; then
2519 johnpye 133 if test "${ac_cv_prog_CPP+set}" = set; then
2520     echo $ECHO_N "(cached) $ECHO_C" >&6
2521 aw0a 37 else
2522 johnpye 133 # Double quotes because CPP needs to be expanded
2523     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2524     do
2525     ac_preproc_ok=false
2526     for ac_c_preproc_warn_flag in '' yes
2527     do
2528     # Use a header file that comes with gcc, so configuring glibc
2529     # with a fresh cross-compiler works.
2530 johnpye 364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2531     # <limits.h> exists even on freestanding compilers.
2532 aw0a 37 # On the NeXT, cc -E runs the code through the compiler's parser,
2533 johnpye 133 # not just through cpp. "Syntax error" is here to catch this case.
2534     cat >conftest.$ac_ext <<_ACEOF
2535     /* confdefs.h. */
2536     _ACEOF
2537     cat confdefs.h >>conftest.$ac_ext
2538     cat >>conftest.$ac_ext <<_ACEOF
2539     /* end confdefs.h. */
2540 johnpye 364 #ifdef __STDC__
2541     # include <limits.h>
2542     #else
2543     # include <assert.h>
2544     #endif
2545     Syntax error
2546 johnpye 133 _ACEOF
2547     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2548     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2549     ac_status=$?
2550     grep -v '^ *+' conftest.er1 >conftest.err
2551     rm -f conftest.er1
2552     cat conftest.err >&5
2553     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554     (exit $ac_status); } >/dev/null; then
2555     if test -s conftest.err; then
2556     ac_cpp_err=$ac_c_preproc_warn_flag
2557 johnpye 364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2558 johnpye 133 else
2559     ac_cpp_err=
2560     fi
2561 aw0a 37 else
2562 johnpye 133 ac_cpp_err=yes
2563     fi
2564     if test -z "$ac_cpp_err"; then
2565 aw0a 37 :
2566     else
2567 johnpye 133 echo "$as_me: failed program was:" >&5
2568     sed 's/^/| /' conftest.$ac_ext >&5
2569    
2570     # Broken: fails on valid input.
2571     continue
2572     fi
2573     rm -f conftest.err conftest.$ac_ext
2574    
2575     # OK, works on sane cases. Now check whether non-existent headers
2576     # can be detected and how.
2577     cat >conftest.$ac_ext <<_ACEOF
2578     /* confdefs.h. */
2579     _ACEOF
2580     cat confdefs.h >>conftest.$ac_ext
2581     cat >>conftest.$ac_ext <<_ACEOF
2582     /* end confdefs.h. */
2583     #include <ac_nonexistent.h>
2584     _ACEOF
2585     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2586     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2587     ac_status=$?
2588     grep -v '^ *+' conftest.er1 >conftest.err
2589     rm -f conftest.er1
2590     cat conftest.err >&5
2591     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592     (exit $ac_status); } >/dev/null; then
2593     if test -s conftest.err; then
2594     ac_cpp_err=$ac_c_preproc_warn_flag
2595 johnpye 364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2596 johnpye 133 else
2597     ac_cpp_err=
2598     fi
2599 aw0a 37 else
2600 johnpye 133 ac_cpp_err=yes
2601 aw0a 37 fi
2602 johnpye 133 if test -z "$ac_cpp_err"; then
2603     # Broken: success on invalid input.
2604     continue
2605     else
2606     echo "$as_me: failed program was:" >&5
2607     sed 's/^/| /' conftest.$ac_ext >&5
2608    
2609     # Passes both tests.
2610     ac_preproc_ok=:
2611     break
2612 aw0a 37 fi
2613 johnpye 133 rm -f conftest.err conftest.$ac_ext
2614    
2615     done
2616     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2617     rm -f conftest.err conftest.$ac_ext
2618     if $ac_preproc_ok; then
2619     break
2620 aw0a 37 fi
2621 johnpye 133
2622     done
2623     ac_cv_prog_CPP=$CPP
2624    
2625 aw0a 37 fi
2626 johnpye 133 CPP=$ac_cv_prog_CPP
2627 aw0a 37 else
2628 johnpye 133 ac_cv_prog_CPP=$CPP
2629 aw0a 37 fi
2630 johnpye 133 echo "$as_me:$LINENO: result: $CPP" >&5
2631     echo "${ECHO_T}$CPP" >&6
2632     ac_preproc_ok=false
2633     for ac_c_preproc_warn_flag in '' yes
2634     do
2635     # Use a header file that comes with gcc, so configuring glibc
2636     # with a fresh cross-compiler works.
2637 johnpye 364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2638     # <limits.h> exists even on freestanding compilers.
2639 johnpye 133 # On the NeXT, cc -E runs the code through the compiler's parser,
2640     # not just through cpp. "Syntax error" is here to catch this case.
2641     cat >conftest.$ac_ext <<_ACEOF
2642     /* confdefs.h. */
2643     _ACEOF
2644     cat confdefs.h >>conftest.$ac_ext
2645     cat >>conftest.$ac_ext <<_ACEOF
2646     /* end confdefs.h. */
2647 johnpye 364 #ifdef __STDC__
2648     # include <limits.h>
2649     #else
2650     # include <assert.h>
2651     #endif
2652     Syntax error
2653 johnpye 133 _ACEOF
2654     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2655     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2656     ac_status=$?
2657     grep -v '^ *+' conftest.er1 >conftest.err
2658     rm -f conftest.er1
2659     cat conftest.err >&5
2660     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661     (exit $ac_status); } >/dev/null; then
2662     if test -s conftest.err; then
2663     ac_cpp_err=$ac_c_preproc_warn_flag
2664 johnpye 364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2665 johnpye 133 else
2666     ac_cpp_err=
2667     fi
2668     else
2669     ac_cpp_err=yes
2670     fi
2671     if test -z "$ac_cpp_err"; then
2672     :
2673     else
2674     echo "$as_me: failed program was:" >&5
2675     sed 's/^/| /' conftest.$ac_ext >&5
2676 aw0a 37
2677 johnpye 133 # Broken: fails on valid input.
2678     continue
2679     fi
2680     rm -f conftest.err conftest.$ac_ext
2681 aw0a 37
2682 johnpye 133 # OK, works on sane cases. Now check whether non-existent headers
2683     # can be detected and how.
2684     cat >conftest.$ac_ext <<_ACEOF
2685     /* confdefs.h. */
2686     _ACEOF
2687     cat confdefs.h >>conftest.$ac_ext
2688     cat >>conftest.$ac_ext <<_ACEOF
2689     /* end confdefs.h. */
2690     #include <ac_nonexistent.h>
2691     _ACEOF
2692     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2693     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2694     ac_status=$?
2695     grep -v '^ *+' conftest.er1 >conftest.err
2696     rm -f conftest.er1
2697     cat conftest.err >&5
2698     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699     (exit $ac_status); } >/dev/null; then
2700     if test -s conftest.err; then
2701     ac_cpp_err=$ac_c_preproc_warn_flag
2702 johnpye 364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2703 johnpye 133 else
2704     ac_cpp_err=
2705     fi
2706     else
2707     ac_cpp_err=yes
2708     fi
2709     if test -z "$ac_cpp_err"; then
2710     # Broken: success on invalid input.
2711     continue
2712     else
2713     echo "$as_me: failed program was:" >&5
2714     sed 's/^/| /' conftest.$ac_ext >&5
2715    
2716     # Passes both tests.
2717     ac_preproc_ok=:
2718     break
2719     fi
2720     rm -f conftest.err conftest.$ac_ext
2721    
2722     done
2723     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2724     rm -f conftest.err conftest.$ac_ext
2725     if $ac_preproc_ok; then
2726     :
2727     else
2728     { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2729     See \`config.log' for more details." >&5
2730     echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2731     See \`config.log' for more details." >&2;}
2732     { (exit 1); exit 1; }; }
2733     fi
2734    
2735     ac_ext=c
2736     ac_cpp='$CPP $CPPFLAGS'
2737     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740    
2741    
2742 aw0a 37 # Check whether --enable-optimization or --disable-optimization was given.
2743     if test "${enable_optimization+set}" = set; then
2744     enableval="$enable_optimization"
2745     asc_do_opt="$enableval"
2746     else
2747     asc_do_opt=no
2748 johnpye 133 fi;
2749 johnpye 364
2750 aw0a 37 if test "$asc_do_opt" = yes; then
2751     CFLAGS=`echo "-O $CFLAGS " | sed 's/ -g / /g'`
2752 johnpye 133 cat >>confdefs.h <<\_ACEOF
2753 aw0a 37 #define NDEBUG 1
2754 johnpye 133 _ACEOF
2755 aw0a 37
2756     else
2757     # Extract the first word of "end.o", so it can be a program name with args.
2758     set dummy end.o; ac_word=$2
2759 johnpye 133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2760     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2761     if test "${ac_cv_path_DEBUG_LIBS+set}" = set; then
2762     echo $ECHO_N "(cached) $ECHO_C" >&6
2763 aw0a 37 else
2764 johnpye 133 case $DEBUG_LIBS in
2765     [\\/]* | ?:[\\/]*)
2766 aw0a 37 ac_cv_path_DEBUG_LIBS="$DEBUG_LIBS" # Let the user override the test with a path.
2767     ;;
2768     *)
2769 johnpye 133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770     for as_dir in /usr/lib
2771     do
2772     IFS=$as_save_IFS
2773     test -z "$as_dir" && as_dir=.
2774     for ac_exec_ext in '' $ac_executable_extensions; do
2775     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2776     ac_cv_path_DEBUG_LIBS="$as_dir/$ac_word$ac_exec_ext"
2777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778     break 2
2779     fi
2780     done
2781     done
2782    
2783 aw0a 37 ;;
2784     esac
2785     fi
2786 johnpye 133 DEBUG_LIBS=$ac_cv_path_DEBUG_LIBS
2787    
2788 aw0a 37 if test -n "$DEBUG_LIBS"; then
2789 johnpye 133 echo "$as_me:$LINENO: result: $DEBUG_LIBS" >&5
2790     echo "${ECHO_T}$DEBUG_LIBS" >&6
2791 aw0a 37 else
2792 johnpye 133 echo "$as_me:$LINENO: result: no" >&5
2793     echo "${ECHO_T}no" >&6
2794 aw0a 37 fi
2795    
2796     fi
2797    
2798 johnpye 133 echo "$as_me:$LINENO: checking for AIX" >&5
2799     echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2800 aw0a 37
2801 johnpye 362
2802 johnpye 133 echo "$as_me:$LINENO: checking for egrep" >&5
2803     echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2804     if test "${ac_cv_prog_egrep+set}" = set; then
2805     echo $ECHO_N "(cached) $ECHO_C" >&6
2806     else
2807     if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2808     then ac_cv_prog_egrep='grep -E'
2809     else ac_cv_prog_egrep='egrep'
2810     fi
2811     fi
2812     echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2813     echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2814     EGREP=$ac_cv_prog_egrep
2815    
2816    
2817     cat >conftest.$ac_ext <<_ACEOF
2818     /* confdefs.h. */
2819     _ACEOF
2820     cat confdefs.h >>conftest.$ac_ext
2821     cat >>conftest.$ac_ext <<_ACEOF
2822     /* end confdefs.h. */
2823    
2824 aw0a 37 #ifdef _AIX
2825     yes
2826     #endif
2827    
2828 johnpye 133 _ACEOF
2829 aw0a 37 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2830 johnpye 133 $EGREP "yes" >/dev/null 2>&1; then
2831     asc_aix=yes ; cat >>confdefs.h <<\_ACEOF
2832 aw0a 37 #define _ALL_SOURCE 1
2833 johnpye 133 _ACEOF
2834    
2835 aw0a 37 else
2836     asc_aix=no
2837     fi
2838     rm -f conftest*
2839    
2840 johnpye 133 echo "$as_me:$LINENO: result: $asc_aix" >&5
2841     echo "${ECHO_T}$asc_aix" >&6
2842 aw0a 37
2843 johnpye 133 echo "$as_me:$LINENO: checking whether -D_HPUX_SOURCE is needed" >&5
2844     echo $ECHO_N "checking whether -D_HPUX_SOURCE is needed... $ECHO_C" >&6
2845     cat >conftest.$ac_ext <<_ACEOF
2846     /* confdefs.h. */
2847     _ACEOF
2848     cat confdefs.h >>conftest.$ac_ext
2849     cat >>conftest.$ac_ext <<_ACEOF
2850     /* end confdefs.h. */
2851 aw0a 37
2852     #ifdef __hpux
2853     #ifndef _HPUX_SOURCE
2854     yes
2855     #endif
2856     #endif
2857    
2858 johnpye 133 _ACEOF
2859 aw0a 37 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2860 johnpye 133 $EGREP "yes" >/dev/null 2>&1; then
2861     asc_hpux=yes ; cat >>confdefs.h <<\_ACEOF
2862 aw0a 37 #define _HPUX_SOURCE 1
2863 johnpye 133 _ACEOF
2864    
2865 aw0a 37 else
2866     asc_hpux=no
2867     fi
2868     rm -f conftest*
2869    
2870 johnpye 133 echo "$as_me:$LINENO: result: $asc_hpux" >&5
2871     echo "${ECHO_T}$asc_hpux" >&6
2872 aw0a 37
2873     # Check the size of pointers; if cross compiling, assume 32 bit pointers
2874 johnpye 133 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2875     echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2876     if test "${ac_cv_header_stdc+set}" = set; then
2877     echo $ECHO_N "(cached) $ECHO_C" >&6
2878 aw0a 37 else
2879 johnpye 133 cat >conftest.$ac_ext <<_ACEOF
2880     /* confdefs.h. */
2881     _ACEOF
2882     cat confdefs.h >>conftest.$ac_ext
2883     cat >>conftest.$ac_ext <<_ACEOF
2884     /* end confdefs.h. */
2885     #include <stdlib.h>
2886     #include <stdarg.h>
2887     #include <string.h>
2888     #include <float.h>
2889    
2890     int
2891     main ()
2892     {
2893    
2894     ;
2895     return 0;
2896     }
2897     _ACEOF
2898     rm -f conftest.$ac_objext
2899     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2900 johnpye 364 (eval $ac_compile) 2>conftest.er1
2901 johnpye 133 ac_status=$?
2902 johnpye 364 grep -v '^ *+' conftest.er1 >conftest.err
2903     rm -f conftest.er1
2904     cat conftest.err >&5
2905 johnpye 133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906     (exit $ac_status); } &&
2907 johnpye 364 { ac_try='test -z "$ac_c_werror_flag"
2908     || test ! -s conftest.err'
2909 johnpye 133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910     (eval $ac_try) 2>&5
2911     ac_status=$?
2912     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 johnpye 364 (exit $ac_status); }; } &&
2914     { ac_try='test -s conftest.$ac_objext'
2915     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916     (eval $ac_try) 2>&5
2917     ac_status=$?
2918     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 johnpye 133 (exit $ac_status); }; }; then
2920     ac_cv_header_stdc=yes
2921     else
2922     echo "$as_me: failed program was:" >&5
2923     sed 's/^/| /' conftest.$ac_ext >&5
2924    
2925     ac_cv_header_stdc=no
2926     fi
2927 johnpye 364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2928 johnpye 133
2929     if test $ac_cv_header_stdc = yes; then
2930     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2931     cat >conftest.$ac_ext <<_ACEOF
2932     /* confdefs.h. */
2933     _ACEOF
2934     cat confdefs.h >>conftest.$ac_ext
2935     cat >>conftest.$ac_ext <<_ACEOF
2936     /* end confdefs.h. */
2937     #include <string.h>
2938    
2939     _ACEOF
2940     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2941     $EGREP "memchr" >/dev/null 2>&1; then
2942     :
2943     else
2944     ac_cv_header_stdc=no
2945     fi
2946     rm -f conftest*
2947    
2948     fi
2949    
2950     if test $ac_cv_header_stdc = yes; then
2951     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2952     cat >conftest.$ac_ext <<_ACEOF
2953     /* confdefs.h. */
2954     _ACEOF
2955     cat confdefs.h >>conftest.$ac_ext
2956     cat >>conftest.$ac_ext <<_ACEOF
2957     /* end confdefs.h. */
2958     #include <stdlib.h>
2959    
2960     _ACEOF
2961     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2962     $EGREP "free" >/dev/null 2>&1; then
2963     :
2964     else
2965     ac_cv_header_stdc=no
2966     fi
2967     rm -f conftest*
2968    
2969     fi
2970    
2971     if test $ac_cv_header_stdc = yes; then
2972     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2973 aw0a 37 if test "$cross_compiling" = yes; then
2974 johnpye 133 :
2975 aw0a 37 else
2976 johnpye 133 cat >conftest.$ac_ext <<_ACEOF
2977     /* confdefs.h. */
2978     _ACEOF
2979     cat confdefs.h >>conftest.$ac_ext
2980     cat >>conftest.$ac_ext <<_ACEOF
2981     /* end confdefs.h. */
2982     #include <ctype.h>
2983     #if ((' ' & 0x0FF) == 0x020)
2984     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2985     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2986     #else
2987     # define ISLOWER(c) \
2988 johnpye 364 (('a' <= (c) && (c) <= 'i') \
2989     || ('j' <= (c) && (c) <= 'r') \
2990     || ('s' <= (c) && (c) <= 'z'))
2991 johnpye 133 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2992     #endif
2993    
2994     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2995     int
2996     main ()
2997     {
2998     int i;
2999     for (i = 0; i < 256; i++)
3000     if (XOR (islower (i), ISLOWER (i))
3001 johnpye 364 || toupper (i) != TOUPPER (i))
3002 johnpye 133 exit(2);
3003     exit (0);
3004     }
3005     _ACEOF
3006     rm -f conftest$ac_exeext
3007     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3008     (eval $ac_link) 2>&5
3009     ac_status=$?
3010     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3012     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013     (eval $ac_try) 2>&5
3014     ac_status=$?
3015     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016     (exit $ac_status); }; }; then
3017     :
3018     else
3019     echo "$as_me: program exited with status $ac_status" >&5
3020     echo "$as_me: failed program was:" >&5
3021     sed 's/^/| /' conftest.$ac_ext >&5
3022    
3023     ( exit $ac_status )
3024     ac_cv_header_stdc=no
3025     fi
3026 johnpye 364 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3027 johnpye 133 fi
3028     fi
3029     fi
3030     echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3031     echo "${ECHO_T}$ac_cv_header_stdc" >&6
3032     if test $ac_cv_header_stdc = yes; then
3033    
3034     cat >>confdefs.h <<\_ACEOF