/[cvs]/eggdrop1.6/configure
ViewVC logotype

Annotation of /eggdrop1.6/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.102 - (hide annotations) (download)
Thu Dec 4 05:57:10 2003 UTC (16 years, 2 months ago) by wcc
Branch: MAIN
Changes since 1.101: +10 -2 lines
* Fixed head -1 problem.

1 segfault 1.1 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 wcc 1.98 # Generated by GNU Autoconf 2.54.
4 segfault 1.1 #
5 wcc 1.83 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 guppy 1.72 # Free Software Foundation, Inc.
7 segfault 1.1 # This configure script is free software; the Free Software Foundation
8     # gives unlimited permission to copy, distribute and modify it.
9 wcc 1.82 ## --------------------- ##
10     ## M4sh Initialization. ##
11     ## --------------------- ##
12    
13 guppy 1.72 # Be Bourne compatible
14     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15     emulate sh
16     NULLCMD=:
17 wcc 1.83 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18     # is contrary to our usage. Disable this feature.
19     alias -g '${1+"$@"}'='"$@"'
20 guppy 1.72 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21     set -o posix
22     fi
23    
24 wcc 1.83 # Support unset when possible.
25     if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26     as_unset=unset
27     else
28     as_unset=false
29     fi
30    
31    
32     # Work around bugs in pre-3.0 UWIN ksh.
33     $as_unset ENV MAIL MAILPATH
34     PS1='$ '
35     PS2='> '
36     PS4='+ '
37    
38     # NLS nuisances.
39 wcc 1.98 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
40 wcc 1.83 do
41     if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42     eval $as_var=C; export $as_var
43     else
44     $as_unset $as_var
45     fi
46     done
47    
48     # Required to use basename.
49     if expr a : '\(a\)' >/dev/null 2>&1; then
50     as_expr=expr
51     else
52     as_expr=false
53     fi
54    
55     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56     as_basename=basename
57     else
58     as_basename=false
59     fi
60    
61    
62 guppy 1.72 # Name of the executable.
63 wcc 1.83 as_me=`$as_basename "$0" ||
64     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65     X"$0" : 'X\(//\)$' \| \
66     X"$0" : 'X\(/\)$' \| \
67     . : '\(.\)' 2>/dev/null ||
68     echo X/"$0" |
69     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70     /^X\/\(\/\/\)$/{ s//\1/; q; }
71     /^X\/\(\/\).*/{ s//\1/; q; }
72     s/.*/./; q'`
73    
74    
75     # PATH needs CR, and LINENO needs CR and PATH.
76     # Avoid depending upon Character Ranges.
77     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80     as_cr_digits='0123456789'
81     as_cr_alnum=$as_cr_Letters$as_cr_digits
82    
83     # The user is always right.
84     if test "${PATH_SEPARATOR+set}" != set; then
85 wcc 1.98 echo "#! /bin/sh" >conftest.sh
86     echo "exit 0" >>conftest.sh
87     chmod +x conftest.sh
88     if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
89 wcc 1.83 PATH_SEPARATOR=';'
90     else
91     PATH_SEPARATOR=:
92     fi
93 wcc 1.98 rm -f conftest.sh
94 wcc 1.83 fi
95    
96    
97     as_lineno_1=$LINENO
98     as_lineno_2=$LINENO
99     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100     test "x$as_lineno_1" != "x$as_lineno_2" &&
101     test "x$as_lineno_3" = "x$as_lineno_2" || {
102     # Find who we are. Look in the path if we contain no path at all
103     # relative or not.
104     case $0 in
105     *[\\/]* ) as_myself=$0 ;;
106     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107     for as_dir in $PATH
108     do
109     IFS=$as_save_IFS
110     test -z "$as_dir" && as_dir=.
111     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112     done
113    
114     ;;
115     esac
116     # We did not find ourselves, most probably we were run as `sh COMMAND'
117     # in which case we are not to be found in the path.
118     if test "x$as_myself" = x; then
119     as_myself=$0
120     fi
121     if test ! -f "$as_myself"; then
122     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123     { (exit 1); exit 1; }; }
124     fi
125     case $CONFIG_SHELL in
126     '')
127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129     do
130     IFS=$as_save_IFS
131     test -z "$as_dir" && as_dir=.
132     for as_base in sh bash ksh sh5; do
133     case $as_dir in
134     /*)
135     if ("$as_dir/$as_base" -c '
136     as_lineno_1=$LINENO
137     as_lineno_2=$LINENO
138     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139     test "x$as_lineno_1" != "x$as_lineno_2" &&
140     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143     CONFIG_SHELL=$as_dir/$as_base
144     export CONFIG_SHELL
145     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146     fi;;
147     esac
148     done
149     done
150     ;;
151     esac
152    
153     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154     # uniformly replaced by the line number. The first 'sed' inserts a
155     # line-number line before each line; the second 'sed' does the real
156     # work. The second script uses 'N' to pair each line-number line
157     # with the numbered line, and appends trailing '-' during
158     # substitution so that $LINENO is not a special case at line end.
159     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161     sed '=' <$as_myself |
162     sed '
163     N
164     s,$,-,
165     : loop
166     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167     t loop
168     s,-$,,
169     s,^['$as_cr_digits']*\n,,
170     ' >$as_me.lineno &&
171     chmod +x $as_me.lineno ||
172     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173     { (exit 1); exit 1; }; }
174    
175     # Don't try to exec as it changes $[0], causing all sort of problems
176     # (the dirname of $[0] is not the place where we might find the
177     # original and so on. Autoconf is especially sensible to this).
178     . ./$as_me.lineno
179     # Exit status is that of the last command.
180     exit
181     }
182    
183    
184     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185     *c*,-n*) ECHO_N= ECHO_C='
186     ' ECHO_T=' ' ;;
187     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189     esac
190 guppy 1.72
191     if expr a : '\(a\)' >/dev/null 2>&1; then
192     as_expr=expr
193     else
194     as_expr=false
195     fi
196    
197     rm -f conf$$ conf$$.exe conf$$.file
198     echo >conf$$.file
199     if ln -s conf$$.file conf$$ 2>/dev/null; then
200     # We could just check for DJGPP; but this test a) works b) is more generic
201     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202     if test -f conf$$.exe; then
203     # Don't use ln at all; we don't have any links
204     as_ln_s='cp -p'
205     else
206     as_ln_s='ln -s'
207     fi
208     elif ln conf$$.file conf$$ 2>/dev/null; then
209     as_ln_s=ln
210     else
211     as_ln_s='cp -p'
212     fi
213     rm -f conf$$ conf$$.exe conf$$.file
214    
215 wcc 1.83 if mkdir -p . 2>/dev/null; then
216     as_mkdir_p=:
217     else
218     as_mkdir_p=false
219     fi
220    
221 guppy 1.72 as_executable_p="test -f"
222    
223 wcc 1.83 # Sed expression to map a string onto a valid CPP name.
224     as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
225    
226     # Sed expression to map a string onto a valid variable name.
227     as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
228 guppy 1.72
229    
230     # IFS
231     # We need space, tab and new line, in precisely that order.
232     as_nl='
233     '
234     IFS=" $as_nl"
235    
236     # CDPATH.
237 wcc 1.83 $as_unset CDPATH
238    
239 guppy 1.72
240     # Name of the host.
241     # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242     # so uname gets run too.
243     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
244    
245     exec 6>&1
246    
247     #
248     # Initializations.
249     #
250 segfault 1.1 ac_default_prefix=/usr/local
251 wcc 1.83 ac_config_libobj_dir=.
252 guppy 1.72 cross_compiling=no
253     subdirs=
254 wcc 1.83 MFLAGS=
255     MAKEFLAGS=
256 guppy 1.72 SHELL=${CONFIG_SHELL-/bin/sh}
257    
258     # Maximum number of lines to put in a shell here document.
259     # This variable seems obsolete. It should probably be removed, and
260     # only ac_max_sed_lines should be used.
261     : ${ac_max_here_lines=38}
262    
263 wcc 1.83 # Identity of this package.
264     PACKAGE_NAME=
265     PACKAGE_TARNAME=
266     PACKAGE_VERSION=
267     PACKAGE_STRING=
268     PACKAGE_BUGREPORT=
269    
270 guppy 1.72 ac_unique_file="src/eggdrop.h"
271 fabian 1.14 ac_default_prefix=\${HOME}/eggdrop
272 guppy 1.72 # Factoring default headers for most tests.
273     ac_includes_default="\
274     #include <stdio.h>
275     #if HAVE_SYS_TYPES_H
276     # include <sys/types.h>
277     #endif
278     #if HAVE_SYS_STAT_H
279     # include <sys/stat.h>
280     #endif
281     #if STDC_HEADERS
282     # include <stdlib.h>
283     # include <stddef.h>
284     #else
285     # if HAVE_STDLIB_H
286     # include <stdlib.h>
287     # endif
288     #endif
289     #if HAVE_STRING_H
290     # if !STDC_HEADERS && HAVE_MEMORY_H
291     # include <memory.h>
292     # endif
293     # include <string.h>
294     #endif
295     #if HAVE_STRINGS_H
296     # include <strings.h>
297     #endif
298     #if HAVE_INTTYPES_H
299     # include <inttypes.h>
300     #else
301     # if HAVE_STDINT_H
302     # include <stdint.h>
303     # endif
304     #endif
305     #if HAVE_UNISTD_H
306     # include <unistd.h>
307     #endif"
308 segfault 1.1
309 wcc 1.99 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 egg_ac_parameters CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP SET_MAKE RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S STRIP AWK BASENAME UNAME MOD_LD MOD_CC MOD_STRIP SHLIB_LD SHLIB_CC SHLIB_STRIP DEFAULT_MAKE MOD_EXT EGGEXEC TCLLIB TCLLIBFN TCLINC TCLINCFN TCL_REQS TCL_LIBS EGGVERSION DEST MOD_UPDIR LIBOBJS LTLIBOBJS'
310 wcc 1.83 ac_subst_files=''
311    
312 segfault 1.1 # Initialize some variables set by options.
313 guppy 1.72 ac_init_help=
314     ac_init_version=false
315 segfault 1.1 # The variables have the same names as the options, with
316     # dashes changed to underlines.
317 guppy 1.72 cache_file=/dev/null
318 segfault 1.1 exec_prefix=NONE
319     no_create=
320     no_recursion=
321     prefix=NONE
322     program_prefix=NONE
323     program_suffix=NONE
324     program_transform_name=s,x,x,
325     silent=
326     site=
327     srcdir=
328     verbose=
329     x_includes=NONE
330     x_libraries=NONE
331 guppy 1.72
332     # Installation directory options.
333     # These are left unexpanded so users can "make install exec_prefix=/foo"
334     # and all the variables that are supposed to be based on exec_prefix
335     # by default will actually change.
336     # Use braces instead of parens because sh, perl, etc. also accept them.
337 segfault 1.1 bindir='${exec_prefix}/bin'
338     sbindir='${exec_prefix}/sbin'
339     libexecdir='${exec_prefix}/libexec'
340     datadir='${prefix}/share'
341     sysconfdir='${prefix}/etc'
342     sharedstatedir='${prefix}/com'
343     localstatedir='${prefix}/var'
344     libdir='${exec_prefix}/lib'
345     includedir='${prefix}/include'
346     oldincludedir='/usr/include'
347     infodir='${prefix}/info'
348     mandir='${prefix}/man'
349    
350     ac_prev=
351     for ac_option
352     do
353     # If the previous option needs an argument, assign it.
354     if test -n "$ac_prev"; then
355     eval "$ac_prev=\$ac_option"
356     ac_prev=
357     continue
358     fi
359    
360 guppy 1.72 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
361 segfault 1.1
362     # Accept the important Cygnus configure options, so we can diagnose typos.
363    
364 guppy 1.72 case $ac_option in
365 segfault 1.1
366     -bindir | --bindir | --bindi | --bind | --bin | --bi)
367     ac_prev=bindir ;;
368     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
369 guppy 1.72 bindir=$ac_optarg ;;
370 segfault 1.1
371     -build | --build | --buil | --bui | --bu)
372 guppy 1.72 ac_prev=build_alias ;;
373 segfault 1.1 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
374 guppy 1.72 build_alias=$ac_optarg ;;
375 segfault 1.1
376     -cache-file | --cache-file | --cache-fil | --cache-fi \
377     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
378     ac_prev=cache_file ;;
379     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
380     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
381 guppy 1.72 cache_file=$ac_optarg ;;
382    
383     --config-cache | -C)
384     cache_file=config.cache ;;
385 segfault 1.1
386     -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
387     ac_prev=datadir ;;
388     -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
389     | --da=*)
390 guppy 1.72 datadir=$ac_optarg ;;
391 segfault 1.1
392     -disable-* | --disable-*)
393 guppy 1.72 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
394 segfault 1.1 # Reject names that are not valid shell variable names.
395 guppy 1.72 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
396     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
397     { (exit 1); exit 1; }; }
398     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
399     eval "enable_$ac_feature=no" ;;
400 segfault 1.1
401     -enable-* | --enable-*)
402 guppy 1.72 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
403 segfault 1.1 # Reject names that are not valid shell variable names.
404 guppy 1.72 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406     { (exit 1); exit 1; }; }
407     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408     case $ac_option in
409     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
410 segfault 1.1 *) ac_optarg=yes ;;
411     esac
412 guppy 1.72 eval "enable_$ac_feature='$ac_optarg'" ;;
413 segfault 1.1
414     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
415     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
416     | --exec | --exe | --ex)
417     ac_prev=exec_prefix ;;
418     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
419     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
420     | --exec=* | --exe=* | --ex=*)
421 guppy 1.72 exec_prefix=$ac_optarg ;;
422 segfault 1.1
423     -gas | --gas | --ga | --g)
424     # Obsolete; use --with-gas.
425     with_gas=yes ;;
426    
427 guppy 1.72 -help | --help | --hel | --he | -h)
428     ac_init_help=long ;;
429     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
430     ac_init_help=recursive ;;
431     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
432     ac_init_help=short ;;
433 segfault 1.1
434     -host | --host | --hos | --ho)
435 guppy 1.72 ac_prev=host_alias ;;
436 segfault 1.1 -host=* | --host=* | --hos=* | --ho=*)
437 guppy 1.72 host_alias=$ac_optarg ;;
438 segfault 1.1
439     -includedir | --includedir | --includedi | --included | --include \
440     | --includ | --inclu | --incl | --inc)
441     ac_prev=includedir ;;
442     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
443     | --includ=* | --inclu=* | --incl=* | --inc=*)
444 guppy 1.72 includedir=$ac_optarg ;;
445 segfault 1.1
446     -infodir | --infodir | --infodi | --infod | --info | --inf)
447     ac_prev=infodir ;;
448     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
449 guppy 1.72 infodir=$ac_optarg ;;
450 segfault 1.1
451     -libdir | --libdir | --libdi | --libd)
452     ac_prev=libdir ;;
453     -libdir=* | --libdir=* | --libdi=* | --libd=*)
454 guppy 1.72 libdir=$ac_optarg ;;
455 segfault 1.1
456     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
457     | --libexe | --libex | --libe)
458     ac_prev=libexecdir ;;
459     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
460     | --libexe=* | --libex=* | --libe=*)
461 guppy 1.72 libexecdir=$ac_optarg ;;
462 segfault 1.1
463     -localstatedir | --localstatedir | --localstatedi | --localstated \
464     | --localstate | --localstat | --localsta | --localst \
465     | --locals | --local | --loca | --loc | --lo)
466     ac_prev=localstatedir ;;
467     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
468     | --localstate=* | --localstat=* | --localsta=* | --localst=* \
469     | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
470 guppy 1.72 localstatedir=$ac_optarg ;;
471 segfault 1.1
472     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
473     ac_prev=mandir ;;
474     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
475 guppy 1.72 mandir=$ac_optarg ;;
476 segfault 1.1
477     -nfp | --nfp | --nf)
478     # Obsolete; use --without-fp.
479     with_fp=no ;;
480    
481     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 wcc 1.83 | --no-cr | --no-c | -n)
483 segfault 1.1 no_create=yes ;;
484    
485     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
486     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
487     no_recursion=yes ;;
488    
489     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
490     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
491     | --oldin | --oldi | --old | --ol | --o)
492     ac_prev=oldincludedir ;;
493     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
494     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
495     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
496 guppy 1.72 oldincludedir=$ac_optarg ;;
497 segfault 1.1
498     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
499     ac_prev=prefix ;;
500     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
501 guppy 1.72 prefix=$ac_optarg ;;
502 segfault 1.1
503     -program-prefix | --program-prefix | --program-prefi | --program-pref \
504     | --program-pre | --program-pr | --program-p)
505     ac_prev=program_prefix ;;
506     -program-prefix=* | --program-prefix=* | --program-prefi=* \
507     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
508 guppy 1.72 program_prefix=$ac_optarg ;;
509 segfault 1.1
510     -program-suffix | --program-suffix | --program-suffi | --program-suff \
511     | --program-suf | --program-su | --program-s)
512     ac_prev=program_suffix ;;
513     -program-suffix=* | --program-suffix=* | --program-suffi=* \
514     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
515 guppy 1.72 program_suffix=$ac_optarg ;;
516 segfault 1.1
517     -program-transform-name | --program-transform-name \
518     | --program-transform-nam | --program-transform-na \
519     | --program-transform-n | --program-transform- \
520     | --program-transform | --program-transfor \
521     | --program-transfo | --program-transf \
522     | --program-trans | --program-tran \
523     | --progr-tra | --program-tr | --program-t)
524     ac_prev=program_transform_name ;;
525     -program-transform-name=* | --program-transform-name=* \
526     | --program-transform-nam=* | --program-transform-na=* \
527     | --program-transform-n=* | --program-transform-=* \
528     | --program-transform=* | --program-transfor=* \
529     | --program-transfo=* | --program-transf=* \
530     | --program-trans=* | --program-tran=* \
531     | --progr-tra=* | --program-tr=* | --program-t=*)
532 guppy 1.72 program_transform_name=$ac_optarg ;;
533 segfault 1.1
534     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
535     | -silent | --silent | --silen | --sile | --sil)
536     silent=yes ;;
537    
538     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
539     ac_prev=sbindir ;;
540     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
541     | --sbi=* | --sb=*)
542 guppy 1.72 sbindir=$ac_optarg ;;
543 segfault 1.1
544     -sharedstatedir | --sharedstatedir | --sharedstatedi \
545     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
546     | --sharedst | --shareds | --shared | --share | --shar \
547     | --sha | --sh)
548     ac_prev=sharedstatedir ;;
549     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
550     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
551     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
552     | --sha=* | --sh=*)
553 guppy 1.72 sharedstatedir=$ac_optarg ;;
554 segfault 1.1
555     -site | --site | --sit)
556     ac_prev=site ;;
557     -site=* | --site=* | --sit=*)
558 guppy 1.72 site=$ac_optarg ;;
559 segfault 1.1
560     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
561     ac_prev=srcdir ;;
562     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
563 guppy 1.72 srcdir=$ac_optarg ;;
564 segfault 1.1
565     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
566     | --syscon | --sysco | --sysc | --sys | --sy)
567     ac_prev=sysconfdir ;;
568     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
569     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
570 guppy 1.72 sysconfdir=$ac_optarg ;;
571 segfault 1.1
572     -target | --target | --targe | --targ | --tar | --ta | --t)
573 guppy 1.72 ac_prev=target_alias ;;
574 segfault 1.1 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
575 guppy 1.72 target_alias=$ac_optarg ;;
576 segfault 1.1
577     -v | -verbose | --verbose | --verbos | --verbo | --verb)
578     verbose=yes ;;
579    
580 guppy 1.72 -version | --version | --versio | --versi | --vers | -V)
581     ac_init_version=: ;;
582 segfault 1.1
583     -with-* | --with-*)
584 guppy 1.72 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
585 segfault 1.1 # Reject names that are not valid shell variable names.
586 guppy 1.72 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
587     { echo "$as_me: error: invalid package name: $ac_package" >&2
588     { (exit 1); exit 1; }; }
589 segfault 1.1 ac_package=`echo $ac_package| sed 's/-/_/g'`
590 guppy 1.72 case $ac_option in
591     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
592 segfault 1.1 *) ac_optarg=yes ;;
593     esac
594 guppy 1.72 eval "with_$ac_package='$ac_optarg'" ;;
595 segfault 1.1
596     -without-* | --without-*)
597 guppy 1.72 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
598 segfault 1.1 # Reject names that are not valid shell variable names.
599 guppy 1.72 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
600     { echo "$as_me: error: invalid package name: $ac_package" >&2
601     { (exit 1); exit 1; }; }
602     ac_package=`echo $ac_package | sed 's/-/_/g'`
603     eval "with_$ac_package=no" ;;
604 segfault 1.1
605     --x)
606     # Obsolete; use --with-x.
607     with_x=yes ;;
608    
609     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
610     | --x-incl | --x-inc | --x-in | --x-i)
611     ac_prev=x_includes ;;
612     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
613     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
614 guppy 1.72 x_includes=$ac_optarg ;;
615 segfault 1.1
616     -x-libraries | --x-libraries | --x-librarie | --x-librari \
617     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
618     ac_prev=x_libraries ;;
619     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
620     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
621 guppy 1.72 x_libraries=$ac_optarg ;;
622 segfault 1.1
623 guppy 1.72 -*) { echo "$as_me: error: unrecognized option: $ac_option
624     Try \`$0 --help' for more information." >&2
625     { (exit 1); exit 1; }; }
626 segfault 1.1 ;;
627    
628 guppy 1.72 *=*)
629     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
630     # Reject names that are not valid shell variable names.
631     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
632     { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
633     { (exit 1); exit 1; }; }
634     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
635     eval "$ac_envvar='$ac_optarg'"
636     export $ac_envvar ;;
637    
638 segfault 1.1 *)
639 guppy 1.72 # FIXME: should be removed in autoconf 3.0.
640     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
641     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
642     echo "$as_me: WARNING: invalid host type: $ac_option" >&2
643     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
644 segfault 1.1 ;;
645    
646     esac
647     done
648    
649     if test -n "$ac_prev"; then
650 guppy 1.72 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
651     { echo "$as_me: error: missing argument to $ac_option" >&2
652     { (exit 1); exit 1; }; }
653 segfault 1.1 fi
654    
655 guppy 1.72 # Be sure to have absolute paths.
656     for ac_var in exec_prefix prefix
657     do
658     eval ac_val=$`echo $ac_var`
659     case $ac_val in
660     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
661 wcc 1.83 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 guppy 1.72 { (exit 1); exit 1; }; };;
663     esac
664     done
665 segfault 1.1
666 guppy 1.72 # Be sure to have absolute paths.
667     for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
668     localstatedir libdir includedir oldincludedir infodir mandir
669 segfault 1.1 do
670 guppy 1.72 eval ac_val=$`echo $ac_var`
671     case $ac_val in
672     [\\/$]* | ?:[\\/]* ) ;;
673 wcc 1.83 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
674 guppy 1.72 { (exit 1); exit 1; }; };;
675 segfault 1.1 esac
676     done
677    
678 guppy 1.72 # There might be people who depend on the old broken behavior: `$host'
679     # used to hold the argument of --host etc.
680 wcc 1.83 # FIXME: To remove some day.
681 guppy 1.72 build=$build_alias
682     host=$host_alias
683     target=$target_alias
684    
685 wcc 1.83 # FIXME: To remove some day.
686 guppy 1.72 if test "x$host_alias" != x; then
687     if test "x$build_alias" = x; then
688     cross_compiling=maybe
689     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
690     If a cross compiler is detected then cross compile mode will be used." >&2
691     elif test "x$build_alias" != "x$host_alias"; then
692     cross_compiling=yes
693     fi
694     fi
695 segfault 1.1
696 guppy 1.72 ac_tool_prefix=
697     test -n "$host_alias" && ac_tool_prefix=$host_alias-
698 segfault 1.1
699 guppy 1.72 test "$silent" = yes && exec 6>/dev/null
700 segfault 1.1
701 wcc 1.83
702 segfault 1.1 # Find the source files, if location was not specified.
703     if test -z "$srcdir"; then
704     ac_srcdir_defaulted=yes
705     # Try the directory containing this script, then its parent.
706 wcc 1.83 ac_confdir=`(dirname "$0") 2>/dev/null ||
707     $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
708     X"$0" : 'X\(//\)[^/]' \| \
709     X"$0" : 'X\(//\)$' \| \
710     X"$0" : 'X\(/\)' \| \
711     . : '\(.\)' 2>/dev/null ||
712     echo X"$0" |
713     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
714     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
715     /^X\(\/\/\)$/{ s//\1/; q; }
716     /^X\(\/\).*/{ s//\1/; q; }
717     s/.*/./; q'`
718 segfault 1.1 srcdir=$ac_confdir
719     if test ! -r $srcdir/$ac_unique_file; then
720     srcdir=..
721     fi
722     else
723     ac_srcdir_defaulted=no
724     fi
725     if test ! -r $srcdir/$ac_unique_file; then
726     if test "$ac_srcdir_defaulted" = yes; then
727 wcc 1.82 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
728 guppy 1.72 { (exit 1); exit 1; }; }
729 segfault 1.1 else
730 wcc 1.82 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
731 guppy 1.72 { (exit 1); exit 1; }; }
732 segfault 1.1 fi
733     fi
734 wcc 1.83 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
735     { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
736     { (exit 1); exit 1; }; }
737 guppy 1.72 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
738     ac_env_build_alias_set=${build_alias+set}
739     ac_env_build_alias_value=$build_alias
740     ac_cv_env_build_alias_set=${build_alias+set}
741     ac_cv_env_build_alias_value=$build_alias
742     ac_env_host_alias_set=${host_alias+set}
743     ac_env_host_alias_value=$host_alias
744     ac_cv_env_host_alias_set=${host_alias+set}
745     ac_cv_env_host_alias_value=$host_alias
746     ac_env_target_alias_set=${target_alias+set}
747     ac_env_target_alias_value=$target_alias
748     ac_cv_env_target_alias_set=${target_alias+set}
749     ac_cv_env_target_alias_value=$target_alias
750     ac_env_CC_set=${CC+set}
751     ac_env_CC_value=$CC
752     ac_cv_env_CC_set=${CC+set}
753     ac_cv_env_CC_value=$CC
754     ac_env_CFLAGS_set=${CFLAGS+set}
755     ac_env_CFLAGS_value=$CFLAGS
756     ac_cv_env_CFLAGS_set=${CFLAGS+set}
757     ac_cv_env_CFLAGS_value=$CFLAGS
758     ac_env_LDFLAGS_set=${LDFLAGS+set}
759     ac_env_LDFLAGS_value=$LDFLAGS
760     ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
761     ac_cv_env_LDFLAGS_value=$LDFLAGS
762     ac_env_CPPFLAGS_set=${CPPFLAGS+set}
763     ac_env_CPPFLAGS_value=$CPPFLAGS
764     ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
765     ac_cv_env_CPPFLAGS_value=$CPPFLAGS
766     ac_env_CPP_set=${CPP+set}
767     ac_env_CPP_value=$CPP
768     ac_cv_env_CPP_set=${CPP+set}
769     ac_cv_env_CPP_value=$CPP
770    
771     #
772     # Report the --help message.
773     #
774     if test "$ac_init_help" = "long"; then
775     # Omit some internal or obsolete options to make the list less imposing.
776     # This message is too long to be a string in the A/UX 3.1 sh.
777 wcc 1.82 cat <<_ACEOF
778 guppy 1.72 \`configure' configures this package to adapt to many kinds of systems.
779    
780     Usage: $0 [OPTION]... [VAR=VALUE]...
781    
782     To assign environment variables (e.g., CC, CFLAGS...), specify them as
783     VAR=VALUE. See below for descriptions of some of the useful variables.
784    
785     Defaults for the options are specified in brackets.
786    
787     Configuration:
788     -h, --help display this help and exit
789     --help=short display options specific to this package
790     --help=recursive display the short help of all the included packages
791     -V, --version display version information and exit
792     -q, --quiet, --silent do not print \`checking...' messages
793     --cache-file=FILE cache test results in FILE [disabled]
794     -C, --config-cache alias for \`--cache-file=config.cache'
795     -n, --no-create do not create output files
796     --srcdir=DIR find the sources in DIR [configure dir or \`..']
797    
798 wcc 1.82 _ACEOF
799 guppy 1.72
800 wcc 1.82 cat <<_ACEOF
801 guppy 1.72 Installation directories:
802     --prefix=PREFIX install architecture-independent files in PREFIX
803     [$ac_default_prefix]
804     --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
805     [PREFIX]
806    
807     By default, \`make install' will install all the files in
808     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
809     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
810     for instance \`--prefix=\$HOME'.
811    
812     For better control, use the options below.
813    
814     Fine tuning of the installation directories:
815     --bindir=DIR user executables [EPREFIX/bin]
816     --sbindir=DIR system admin executables [EPREFIX/sbin]
817     --libexecdir=DIR program executables [EPREFIX/libexec]
818     --datadir=DIR read-only architecture-independent data [PREFIX/share]
819     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
820     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
821     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
822     --libdir=DIR object code libraries [EPREFIX/lib]
823     --includedir=DIR C header files [PREFIX/include]
824     --oldincludedir=DIR C header files for non-gcc [/usr/include]
825     --infodir=DIR info documentation [PREFIX/info]
826     --mandir=DIR man documentation [PREFIX/man]
827 wcc 1.82 _ACEOF
828 guppy 1.72
829 wcc 1.82 cat <<\_ACEOF
830     _ACEOF
831 guppy 1.72 fi
832    
833     if test -n "$ac_init_help"; then
834    
835 wcc 1.82 cat <<\_ACEOF
836 guppy 1.72
837     Optional Features:
838     --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
839     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
840 stdarg 1.96 --enable-strip enable stripping of executables
841 wcc 1.92 --disable-cc-optimization disable -O2 cflag
842 wcc 1.93 --disable-tcl-threads disable threaded Tcl support if detected
843 guppy 1.72
844     Optional Packages:
845     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
846     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
847     --with-tcllib=PATH full path to Tcl library
848     --with-tclinc=PATH full path to Tcl header
849    
850     Some influential environment variables:
851     CC C compiler command
852     CFLAGS C compiler flags
853     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
854     nonstandard directory <lib dir>
855     CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
856     headers in a nonstandard directory <include dir>
857     CPP C preprocessor
858    
859     Use these variables to override the choices made by `configure' or to help
860     it to find libraries and programs with nonstandard names/locations.
861    
862 wcc 1.82 _ACEOF
863 guppy 1.72 fi
864    
865     if test "$ac_init_help" = "recursive"; then
866     # If there are subdirs, report their specific --help.
867     ac_popdir=`pwd`
868 wcc 1.82 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
869 wcc 1.83 test -d $ac_dir || continue
870     ac_builddir=.
871    
872     if test "$ac_dir" != .; then
873     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
874 wcc 1.82 # A "../" for each directory in $ac_dir_suffix.
875 wcc 1.83 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
876 wcc 1.82 else
877     ac_dir_suffix= ac_top_builddir=
878     fi
879    
880     case $srcdir in
881     .) # No --srcdir option. We are building in place.
882     ac_srcdir=.
883     if test -z "$ac_top_builddir"; then
884     ac_top_srcdir=.
885     else
886     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
887     fi ;;
888     [\\/]* | ?:[\\/]* ) # Absolute path.
889     ac_srcdir=$srcdir$ac_dir_suffix;
890     ac_top_srcdir=$srcdir ;;
891     *) # Relative path.
892     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
893     ac_top_srcdir=$ac_top_builddir$srcdir ;;
894     esac
895 wcc 1.83 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
896     # absolute.
897     ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
898     ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
899     ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
900     ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
901 guppy 1.72
902 wcc 1.83 cd $ac_dir
903 guppy 1.72 # Check for guested configure; otherwise get Cygnus style configure.
904 wcc 1.82 if test -f $ac_srcdir/configure.gnu; then
905 guppy 1.72 echo
906 wcc 1.82 $SHELL $ac_srcdir/configure.gnu --help=recursive
907     elif test -f $ac_srcdir/configure; then
908 guppy 1.72 echo
909 wcc 1.82 $SHELL $ac_srcdir/configure --help=recursive
910     elif test -f $ac_srcdir/configure.ac ||
911     test -f $ac_srcdir/configure.in; then
912 guppy 1.72 echo
913     $ac_configure --help
914     else
915 wcc 1.82 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
916 guppy 1.72 fi
917     cd $ac_popdir
918     done
919     fi
920    
921     test -n "$ac_init_help" && exit 0
922     if $ac_init_version; then
923 wcc 1.82 cat <<\_ACEOF
924 guppy 1.72
925 wcc 1.83 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
926 guppy 1.72 Free Software Foundation, Inc.
927     This configure script is free software; the Free Software Foundation
928     gives unlimited permission to copy, distribute and modify it.
929 wcc 1.82 _ACEOF
930 guppy 1.72 exit 0
931     fi
932     exec 5>config.log
933 wcc 1.82 cat >&5 <<_ACEOF
934 guppy 1.72 This file contains any messages produced by compilers while
935     running configure, to aid debugging if configure makes a mistake.
936    
937     It was created by $as_me, which was
938 wcc 1.98 generated by GNU Autoconf 2.54. Invocation command line was
939 guppy 1.72
940     $ $0 $@
941    
942 wcc 1.82 _ACEOF
943 guppy 1.72 {
944     cat <<_ASUNAME
945 wcc 1.82 ## --------- ##
946     ## Platform. ##
947     ## --------- ##
948 guppy 1.72
949     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
950     uname -m = `(uname -m) 2>/dev/null || echo unknown`
951     uname -r = `(uname -r) 2>/dev/null || echo unknown`
952     uname -s = `(uname -s) 2>/dev/null || echo unknown`
953     uname -v = `(uname -v) 2>/dev/null || echo unknown`
954    
955     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
956     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
957    
958     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
959     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
960     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
961     hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
962     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
963     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
964     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
965    
966 wcc 1.83 _ASUNAME
967    
968     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
969     for as_dir in $PATH
970     do
971     IFS=$as_save_IFS
972     test -z "$as_dir" && as_dir=.
973     echo "PATH: $as_dir"
974     done
975 guppy 1.72
976     } >&5
977    
978 wcc 1.82 cat >&5 <<_ACEOF
979 wcc 1.83
980    
981 wcc 1.82 ## ----------- ##
982     ## Core tests. ##
983     ## ----------- ##
984 guppy 1.72
985 wcc 1.82 _ACEOF
986 guppy 1.72
987 wcc 1.83
988 guppy 1.72 # Keep a trace of the command line.
989     # Strip out --no-create and --no-recursion so they do not pile up.
990     # Also quote any args containing shell meta-characters.
991     ac_configure_args=
992     ac_sep=
993 wcc 1.98 for ac_arg
994 guppy 1.72 do
995 wcc 1.98 case $ac_arg in
996     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997     | --no-cr | --no-c | -n ) continue ;;
998     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000     continue ;;
1001     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1002     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1003     esac
1004     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1005     # Get rid of the leading space.
1006     ac_sep=" "
1007 guppy 1.72 done
1008    
1009     # When interrupted or exit'd, cleanup temporary files, and complete
1010     # config.log. We remove comments because anyway the quotes in there
1011     # would cause problems or look ugly.
1012 wcc 1.82 # WARNING: Be sure not to use single quotes in there, as some shells,
1013     # such as our DU 5.0 friend, will then `close' the trap.
1014 guppy 1.72 trap 'exit_status=$?
1015     # Save into config.log some information that might help in debugging.
1016 wcc 1.82 {
1017     echo
1018 wcc 1.83
1019 wcc 1.82 cat <<\_ASBOX
1020     ## ---------------- ##
1021     ## Cache variables. ##
1022     ## ---------------- ##
1023     _ASBOX
1024     echo
1025     # The following way of writing the cache mishandles newlines in values,
1026 guppy 1.72 {
1027     (set) 2>&1 |
1028     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1029     *ac_space=\ *)
1030     sed -n \
1031     "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1032     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1033     ;;
1034     *)
1035     sed -n \
1036     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1037     ;;
1038     esac;
1039 wcc 1.82 }
1040     echo
1041 wcc 1.83
1042     cat <<\_ASBOX
1043     ## ----------------- ##
1044     ## Output variables. ##
1045     ## ----------------- ##
1046     _ASBOX
1047     echo
1048     for ac_var in $ac_subst_vars
1049     do
1050     eval ac_val=$`echo $ac_var`
1051     echo "$ac_var='"'"'$ac_val'"'"'"
1052     done | sort
1053     echo
1054    
1055     if test -n "$ac_subst_files"; then
1056     cat <<\_ASBOX
1057     ## ------------- ##
1058     ## Output files. ##
1059     ## ------------- ##
1060     _ASBOX
1061     echo
1062     for ac_var in $ac_subst_files
1063     do
1064     eval ac_val=$`echo $ac_var`
1065     echo "$ac_var='"'"'$ac_val'"'"'"
1066     done | sort
1067     echo
1068     fi
1069    
1070 wcc 1.82 if test -s confdefs.h; then
1071     cat <<\_ASBOX
1072     ## ----------- ##
1073     ## confdefs.h. ##
1074     ## ----------- ##
1075     _ASBOX
1076     echo
1077 wcc 1.83 sed "/^$/d" confdefs.h | sort
1078 wcc 1.82 echo
1079     fi
1080     test "$ac_signal" != 0 &&
1081     echo "$as_me: caught signal $ac_signal"
1082     echo "$as_me: exit $exit_status"
1083     } >&5
1084 wcc 1.83 rm -f core core.* *.core &&
1085     rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1086 guppy 1.72 exit $exit_status
1087     ' 0
1088     for ac_signal in 1 2 13 15; do
1089     trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1090     done
1091     ac_signal=0
1092    
1093     # confdefs.h avoids OS command line length limits that DEFS can exceed.
1094     rm -rf conftest* confdefs.h
1095     # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1096     echo >confdefs.h
1097 segfault 1.1
1098 wcc 1.83 # Predefined preprocessor variables.
1099    
1100     cat >>confdefs.h <<_ACEOF
1101     #define PACKAGE_NAME "$PACKAGE_NAME"
1102     _ACEOF
1103    
1104    
1105     cat >>confdefs.h <<_ACEOF
1106     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1107     _ACEOF
1108    
1109    
1110     cat >>confdefs.h <<_ACEOF
1111     #define PACKAGE_VERSION "$PACKAGE_VERSION"
1112     _ACEOF
1113    
1114    
1115     cat >>confdefs.h <<_ACEOF
1116     #define PACKAGE_STRING "$PACKAGE_STRING"
1117     _ACEOF
1118    
1119    
1120     cat >>confdefs.h <<_ACEOF
1121     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1122     _ACEOF
1123    
1124    
1125 guppy 1.72 # Let the site file select an alternate cache file if it wants to.
1126 segfault 1.1 # Prefer explicitly selected file to automatically selected ones.
1127     if test -z "$CONFIG_SITE"; then
1128     if test "x$prefix" != xNONE; then
1129     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1130     else
1131     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1132     fi
1133     fi
1134     for ac_site_file in $CONFIG_SITE; do
1135     if test -r "$ac_site_file"; then
1136 wcc 1.83 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1137 guppy 1.72 echo "$as_me: loading site script $ac_site_file" >&6;}
1138 wcc 1.82 sed 's/^/| /' "$ac_site_file" >&5
1139 segfault 1.1 . "$ac_site_file"
1140     fi
1141     done
1142    
1143     if test -r "$cache_file"; then
1144 guppy 1.72 # Some versions of bash will fail to source /dev/null (special
1145     # files actually), so we avoid doing that.
1146     if test -f "$cache_file"; then
1147 wcc 1.83 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1148 guppy 1.72 echo "$as_me: loading cache $cache_file" >&6;}
1149     case $cache_file in
1150     [\\/]* | ?:[\\/]* ) . $cache_file;;
1151     *) . ./$cache_file;;
1152     esac
1153     fi
1154 segfault 1.1 else
1155 wcc 1.83 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1156 guppy 1.72 echo "$as_me: creating cache $cache_file" >&6;}
1157     >$cache_file
1158     fi
1159    
1160     # Check that the precious variables saved in the cache have kept the same
1161     # value.
1162     ac_cache_corrupted=false
1163     for ac_var in `(set) 2>&1 |
1164     sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1165     eval ac_old_set=\$ac_cv_env_${ac_var}_set
1166     eval ac_new_set=\$ac_env_${ac_var}_set
1167     eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1168     eval ac_new_val="\$ac_env_${ac_var}_value"
1169     case $ac_old_set,$ac_new_set in
1170     set,)
1171 wcc 1.83 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1172 guppy 1.72 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1173     ac_cache_corrupted=: ;;
1174     ,set)
1175 wcc 1.83 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1176 guppy 1.72 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1177     ac_cache_corrupted=: ;;
1178     ,);;
1179     *)
1180     if test "x$ac_old_val" != "x$ac_new_val"; then
1181 wcc 1.83 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1182 guppy 1.72 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1183 wcc 1.83 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1184 guppy 1.72 echo "$as_me: former value: $ac_old_val" >&2;}
1185 wcc 1.83 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1186 guppy 1.72 echo "$as_me: current value: $ac_new_val" >&2;}
1187     ac_cache_corrupted=:
1188     fi;;
1189     esac
1190 wcc 1.83 # Pass precious variables to config.status.
1191 guppy 1.72 if test "$ac_new_set" = set; then
1192     case $ac_new_val in
1193     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1194 wcc 1.83 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1195     *) ac_arg=$ac_var=$ac_new_val ;;
1196     esac
1197     case " $ac_configure_args " in
1198     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1199     *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1200 guppy 1.72 esac
1201     fi
1202     done
1203     if $ac_cache_corrupted; then
1204 wcc 1.83 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1205 guppy 1.72 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1206 wcc 1.83 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1207 guppy 1.72 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1208     { (exit 1); exit 1; }; }
1209 segfault 1.1 fi
1210    
1211     ac_ext=c
1212     ac_cpp='$CPP $CPPFLAGS'
1213 guppy 1.72 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1214     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1215     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1216    
1217 wcc 1.83
1218    
1219    
1220    
1221    
1222    
1223    
1224    
1225    
1226    
1227    
1228    
1229    
1230    
1231    
1232    
1233    
1234 segfault 1.1
1235 fabian 1.27 ac_aux_dir=
1236     for ac_dir in misc $srcdir/misc; do
1237     if test -f $ac_dir/install-sh; then
1238     ac_aux_dir=$ac_dir
1239     ac_install_sh="$ac_aux_dir/install-sh -c"
1240     break
1241     elif test -f $ac_dir/install.sh; then
1242     ac_aux_dir=$ac_dir
1243     ac_install_sh="$ac_aux_dir/install.sh -c"
1244     break
1245 guppy 1.72 elif test -f $ac_dir/shtool; then
1246     ac_aux_dir=$ac_dir
1247     ac_install_sh="$ac_aux_dir/shtool install -c"
1248     break
1249 fabian 1.27 fi
1250     done
1251     if test -z "$ac_aux_dir"; then
1252 wcc 1.83 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in misc $srcdir/misc" >&5
1253 guppy 1.72 echo "$as_me: error: cannot find install-sh or install.sh in misc $srcdir/misc" >&2;}
1254     { (exit 1); exit 1; }; }
1255     fi
1256     ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1257     ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1258     ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1259    
1260    
1261 wcc 1.83 ac_config_headers="$ac_config_headers config.h"
1262    
1263    
1264     echo "$as_me:$LINENO: result: " >&5
1265 guppy 1.72 echo "${ECHO_T}" >&6
1266 wcc 1.83 echo "$as_me:$LINENO: result: This is Eggdrop's GNU configure script." >&5
1267 wcc 1.78 echo "${ECHO_T}This is Eggdrop's GNU configure script." >&6
1268 wcc 1.83 echo "$as_me:$LINENO: result: It's going to run a bunch of strange tests to hopefully" >&5
1269 guppy 1.72 echo "${ECHO_T}It's going to run a bunch of strange tests to hopefully" >&6
1270 wcc 1.83 echo "$as_me:$LINENO: result: make your compile work without much twiddling." >&5
1271 guppy 1.72 echo "${ECHO_T}make your compile work without much twiddling." >&6
1272 wcc 1.83 echo "$as_me:$LINENO: result: " >&5
1273 guppy 1.72 echo "${ECHO_T}" >&6
1274    
1275     # Remove --cache-file and --srcdir arguments so they do not pile up.
1276     egg_ac_parameters=
1277     ac_prev=
1278     for ac_arg in $ac_configure_args; do
1279     if test -n "$ac_prev"; then
1280     ac_prev=
1281     continue
1282     fi
1283     case $ac_arg in
1284     -cache-file | --cache-file | --cache-fil | --cache-fi \
1285     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1286     ac_prev=cache_file ;;
1287     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1288     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
1289     | --c=*)
1290     ;;
1291     --config-cache | -C)
1292     ;;
1293     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1294     ac_prev=srcdir ;;
1295     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1296     ;;
1297     *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
1298     esac
1299     done
1300 fabian 1.27
1301 wcc 1.83
1302    
1303 guppy 1.72 # Setup build environment
1304     ac_ext=c
1305     ac_cpp='$CPP $CPPFLAGS'
1306     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1307     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1308     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309     if test -n "$ac_tool_prefix"; then
1310     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1311     set dummy ${ac_tool_prefix}gcc; ac_word=$2
1312 wcc 1.83 echo "$as_me:$LINENO: checking for $ac_word" >&5
1313 guppy 1.72 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1314     if test "${ac_cv_prog_CC+set}" = set; then
1315     echo $ECHO_N "(cached) $ECHO_C" >&6
1316     else
1317     if test -n "$CC"; then
1318     ac_cv_prog_CC="$CC" # Let the user override the test.
1319     else
1320 wcc 1.83 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1321     for as_dir in $PATH
1322     do
1323     IFS=$as_save_IFS
1324     test -z "$as_dir" && as_dir=.
1325     for ac_exec_ext in '' $ac_executable_extensions; do
1326     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1327     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1329     break 2
1330     fi
1331     done
1332 guppy 1.72 done
1333 fabian 1.14
1334 guppy 1.72 fi
1335     fi
1336     CC=$ac_cv_prog_CC
1337     if test -n "$CC"; then
1338 wcc 1.83 echo "$as_me:$LINENO: result: $CC" >&5
1339 guppy 1.72 echo "${ECHO_T}$CC" >&6
1340     else
1341 wcc 1.83 echo "$as_me:$LINENO: result: no" >&5
1342 guppy 1.72 echo "${ECHO_T}no" >&6
1343     fi
1344 segfault 1.1
1345 guppy 1.72 fi
1346     if test -z "$ac_cv_prog_CC"; then
1347     ac_ct_CC=$CC
1348     # Extract the first word of "gcc", so it can be a program name with args.
1349     set dummy gcc; ac_word=$2
1350 wcc 1.83 echo "$as_me:$LINENO: checking for $ac_word" >&5
1351 guppy 1.72 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1352     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1353     echo $ECHO_N "(cached) $ECHO_C" >&6
1354     else
1355     if test -n "$ac_ct_CC"; then
1356     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1357     else
1358 wcc 1.83 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1359     for as_dir in $PATH
1360     do
1361     IFS=$as_save_IFS
1362     test -z "$as_dir" && as_dir=.
1363     for ac_exec_ext in '' $ac_executable_extensions; do
1364     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1365     ac_cv_prog_ac_ct_CC="gcc"
1366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1367     break 2
1368     fi
1369     done
1370 guppy 1.72 done
1371 segfault 1.1
1372 guppy 1.72 fi
1373     fi
1374     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1375     if test -n "$ac_ct_CC"; then
1376 wcc 1.83 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1377 guppy 1.72 echo "${ECHO_T}$ac_ct_CC" >&6
1378     else
1379 wcc 1.83 echo "$as_me:$LINENO: result: no" >&5
1380 guppy 1.72 echo "${ECHO_T}no" >&6
1381     fi
1382 fabian 1.3
1383 guppy 1.72 CC=$ac_ct_CC
1384     else
1385     CC="$ac_cv_prog_CC"
1386     fi
1387 fabian 1.14
1388 guppy 1.72 if test -z "$CC"; then
1389     if test -n "$ac_tool_prefix"; then
1390     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1391     set dummy ${ac_tool_prefix}cc; ac_word=$2
1392 wcc 1.83 echo "$as_me:$LINENO: checking for $ac_word" >&5
1393 guppy 1.72 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1394     if test "${ac_cv_prog_CC+set}" = set; then
1395     echo $ECHO_N "(cached) $ECHO_C" >&6
1396 segfault 1.1 else
1397     if test -n "$CC"; then
1398     ac_cv_prog_CC="$CC" # Let the user override the test.
1399     else
1400 wcc 1.83 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1401     for as_dir in $PATH
1402     do
1403     IFS=$as_save_IFS
1404     test -z "$as_dir" && as_dir=.
1405     for ac_exec_ext in '' $ac_executable_extensions; do
1406     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1407     ac_cv_prog_CC="${ac_tool_prefix}cc"
1408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1409     break 2
1410     fi
1411     done
1412 guppy 1.72 done
1413    
1414 segfault 1.1 fi
1415     fi
1416 guppy 1.72 CC=$ac_cv_prog_CC
1417 segfault 1.1 if test -n "$CC"; then
1418 wcc 1.83 echo "$as_me:$LINENO: result: $CC" >&5
1419 guppy 1.72 echo "${ECHO_T}$CC" >&6
1420     else
1421 wcc 1.83 echo "$as_me:$LINENO: result: no" >&5
1422 guppy 1.72 echo "${ECHO_T}no" >&6
1423     fi
1424    
1425     fi
1426     if test -z "$ac_cv_prog_CC"; then
1427     ac_ct_CC=$CC
1428     # Extract the first word of "cc", so it can be a program name with args.
1429     set dummy cc; ac_word=$2
1430 wcc 1.83 echo "$as_me:$LINENO: checking for $ac_word" >&5
1431 guppy 1.72 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1432     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1433     echo $ECHO_N "(cached) $ECHO_C" >&6
1434     else
1435     if test -n "$ac_ct_CC"; then
1436     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1437     else
1438 wcc 1.83 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439     for as_dir in $PATH
1440     do
1441     IFS=$as_save_IFS
1442     test -z "$as_dir" && as_dir=.
1443     for ac_exec_ext in '' $ac_executable_extensions; do
1444     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1445     ac_cv_prog_ac_ct_CC="cc"
1446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1447     break 2
1448     fi
1449     done
1450 guppy 1.72 done
1451    
1452     fi
1453     fi
1454     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1455     if test -n "$ac_ct_CC"; then
1456 wcc 1.83 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1457 guppy 1.72 echo "${ECHO_T}$ac_ct_CC" >&6
1458     else
1459 wcc 1.83 echo "$as_me:$LINENO: result: no" >&5
1460 guppy 1.72 echo "${ECHO_T}no" >&6
1461     fi
1462    
1463     CC=$ac_ct_CC
1464 segfault 1.1 else
1465 guppy 1.72 CC="$ac_cv_prog_CC"
1466 segfault 1.1 fi
1467    
1468 guppy 1.72 fi
1469 segfault 1.1 if test -z "$CC"; then
1470     # Extract the first word of "cc", so it can be a program name with args.
1471     set dummy cc; ac_word=$2
1472 wcc 1.83 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 guppy 1.72 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474     if test "${ac_cv_prog_CC+set}" = set; then
1475     echo $ECHO_N "(cached) $ECHO_C" >&6
1476 segfault 1.1 else
1477     if test -n "$CC"; then
1478     ac_cv_prog_CC="$CC" # Let the user override the test.
1479     else
1480     ac_prog_rejected=no
1481 wcc 1.83 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482     for as_dir in $PATH
1483     do
1484     IFS=$as_save_IFS
1485     test -z "$as_dir" && as_dir=.
1486     for ac_exec_ext in '' $ac_executable_extensions; do
1487     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1489     ac_prog_rejected=yes
1490     continue
1491     fi
1492     ac_cv_prog_CC="cc"
1493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1494     break 2
1495     fi
1496     done
1497 guppy 1.72 done
1498    
1499 segfault 1.1 if test $ac_prog_rejected = yes; then
1500     # We found a bogon in the path, so make sure we never use it.
1501     set dummy $ac_cv_prog_CC
1502     shift
1503 guppy 1.72 if test $# != 0; then
1504 segfault 1.1 # We chose a different compiler from the bogus one.
1505     # However, it has the same basename, so the bogon will be chosen
1506     # first if we set CC to just the basename; use the full file name.
1507     shift
1508 wcc 1.83 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1509 segfault 1.1 fi
1510     fi
1511     fi
1512     fi
1513 guppy 1.72 CC=$ac_cv_prog_CC
1514 segfault 1.1 if test -n "$CC"; then
1515 wcc 1.83 echo "$as_me:$LINENO: result: $CC" >&5
1516 guppy 1.72 echo "${ECHO_T}$CC" >&6
1517 segfault 1.1 else
1518 wcc 1.83 echo "$as_me:$LINENO: result: no" >&5
1519 guppy 1.72 echo "${ECHO_T}no" >&6
1520 segfault 1.1 fi
1521    
1522 guppy 1.72 fi
1523     if test -z "$CC"; then
1524     if test -n "$ac_tool_prefix"; then
1525     for ac_prog in cl
1526     do
1527     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1528     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1529 wcc 1.83 echo "$as_me:$LINENO: checking for $ac_word" >&5
1530 guppy 1.72 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531     if test "${ac_cv_prog_CC+set}" = set; then
1532     echo $ECHO_N "(cached) $ECHO_C" >&6
1533 segfault 1.1 else
1534     if test -n "$CC"; then
1535     ac_cv_prog_CC="$CC" # Let the user override the test.
1536     else
1537 wcc 1.83 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538     for as_dir in $PATH
1539     do
1540     IFS=$as_save_IFS
1541     test -z "$as_dir" && as_dir=.
1542     for ac_exec_ext in '' $ac_executable_extensions; do
1543     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1546     break 2
1547     fi
1548     done
1549 guppy 1.72 done
1550    
1551 segfault 1.1 fi
1552     fi
1553 guppy 1.72 CC=$ac_cv_prog_CC
1554 segfault 1.1 if test -n "$CC"; then
1555 wcc 1.83 echo "$as_me:$LINENO: result: $CC" >&5
1556 guppy 1.72 echo "${ECHO_T}$CC" >&6
1557 segfault 1.1 else
1558 wcc 1.83 echo "$as_me:$LINENO: result: no" >&5
1559 guppy 1.72 echo "${ECHO_T}no" >&6
1560 segfault 1.1 fi
1561 guppy 1.72
1562     test -n "$CC" && break
1563     done
1564 segfault 1.1 fi
1565 guppy 1.72 if test -z "$CC"; then
1566     ac_ct_CC=$CC
1567     for ac_prog in cl
1568     do
1569     # Extract the first word of "$ac_prog", so it can be a program name with args.
1570     set dummy $ac_prog; ac_word=$2
1571 wcc 1.83 echo "$as_me:$LINENO: checking for $ac_word" >&5
1572 guppy 1.72 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1573     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1574     echo $ECHO_N "(cached) $ECHO_C" >&6
1575     else
1576     if test -n "$ac_ct_CC"; then
1577     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1578     else
1579 wcc 1.83 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580     for as_dir in $PATH
1581     do
1582     IFS=$as_save_IFS
1583     test -z "$as_dir" && as_dir=.
1584     for ac_exec_ext in '' $ac_executable_extensions; do
1585     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1586     ac_cv_prog_ac_ct_CC="$ac_prog"
1587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1588     break 2
1589     fi
1590     done
1591 guppy 1.72 done
1592 segfault 1.1
1593     fi
1594 guppy 1.72 fi
1595     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1596     if test -n "$ac_ct_CC"; then
1597 wcc 1.83 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1598 guppy 1.72 echo "${ECHO_T}$ac_ct_CC" >&6
1599 segfault 1.1 else
1600 wcc 1.83 echo "$as_me:$LINENO: result: no" >&5
1601 guppy 1.72 echo "${ECHO_T}no" >&6
1602 segfault 1.1 fi
1603    
1604 guppy 1.72 test -n "$ac_ct_CC" && break
1605     done
1606 segfault 1.1
1607 guppy 1.72 CC=$ac_ct_CC
1608 segfault 1.1 fi
1609    
1610 guppy 1.72 fi
1611    
1612 wcc 1.83
1613 wcc 1.98 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1614     echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1615 guppy 1.72 { (exit 1); exit 1; }; }
1616    
1617     # Provide some information about the compiler.
1618 wcc 1.83 echo "$as_me:$LINENO:" \
1619 guppy 1.72 "checking for C compiler version" >&5
1620     ac_compiler=`set X $ac_compile; echo $2`
1621 wcc 1.83 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1622 guppy 1.72 (eval $ac_compiler --version </dev/null >&5) 2>&5
1623     ac_status=$?
1624 wcc 1.83 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1625 guppy 1.72 (exit $ac_status); }
1626 wcc 1.83 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1627 guppy 1.72 (eval $ac_compiler -v </dev/null >&5) 2>&5
1628     ac_status=$?
1629 wcc 1.83 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1630 guppy 1.72 (exit $ac_status); }
1631 wcc 1.83 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1632 guppy 1.72 (eval $ac_compiler -V </dev/null >&5) 2>&5
1633     ac_status=$?
1634 wcc 1.83 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1635 guppy 1.72 (exit $ac_status); }
1636    
1637     cat >conftest.$ac_ext <<_ACEOF
1638 wcc 1.83 #line $LINENO "configure"
1639 wcc 1.98 #include "confdefs.h"
1640 guppy 1.72
1641     int
1642     main ()
1643     {
1644    
1645     ;
1646     return 0;
1647     }
1648     _ACEOF
1649     ac_clean_files_save=$ac_clean_files
1650 wcc 1.98 ac_clean_files="$ac_clean_files a.out a.exe"
1651 guppy 1.72 # Try to create an executable without -o first, disregard a.out.
1652     # It will help us diagnose broken compilers, and finding out an intuition
1653     # of exeext.
1654 wcc 1.83 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1655 guppy 1.72 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1656     ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1657 wcc 1.83 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1658 guppy 1.72 (eval $ac_link_default) 2>&5
1659     ac_status=$?
1660 wcc 1.83 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1661 guppy 1.72 (exit $ac_status); }; then
1662     # Find the output, starting from the most likely. This scheme is
1663     # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1664     # resort.
1665 wcc 1.83
1666     # Be careful to initialize this variable, since it used to be cached.
1667     # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1668     ac_cv_exeext=
1669 wcc 1.98 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1670 wcc 1.83 test -f "$ac_file" || continue
1671 guppy 1.72 case $ac_file in
1672 wcc 1.98 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1673     a.out ) # We found the default executable, but exeext='' is most
1674     # certainly right.
1675     break;;
1676     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1677     # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1678     export ac_cv_exeext
1679     break;;
1680     * ) break;;
1681 guppy 1.72 esac
1682     done
1683     else
1684     echo "$as_me: failed program was:" >&5
1685 wcc 1.98 cat conftest.$ac_ext >&5
1686 wcc 1.83 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1687 wcc 1.98 check \`config.log' for details." >&5
1688 wcc 1.83 echo "$as_me: error: C compiler cannot create executables
1689 wcc 1.98 check \`config.log' for details." >&2;}
1690 guppy 1.72 { (exit 77); exit 77; }; }
1691     fi
1692    
1693     ac_exeext=$ac_cv_exeext
1694 wcc 1.83 echo "$as_me:$LINENO: result: $ac_file" >&5
1695 guppy 1.72 echo "${ECHO_T}$ac_file" >&6
1696    
1697     # Check the compiler produces executables we can run. If not, either
1698     # the compiler is broken, or we cross compile.
1699 wcc 1.83 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1700 guppy 1.72 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1701     # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1702     # If not cross compiling, check that we can run a simple program.
1703     if test "$cross_compiling" != yes; then
1704     if { ac_try='./$ac_file'
1705 wcc 1.83 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1706 guppy 1.72 (eval $ac_try) 2>&5
1707     ac_status=$?
1708 wcc 1.83 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1709 guppy 1.72 (exit $ac_status); }; }; then
1710     cross_compiling=no
1711     else
1712     if test "$cross_compiling" = maybe; then
1713     cross_compiling=yes
1714     else
1715 wcc 1.83 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1716 wcc 1.98 If you meant to cross compile, use \`--host'." >&5
1717 guppy 1.72 echo "$as_me: error: cannot run C compiled programs.
1718 wcc 1.98 If you meant to cross compile, use \`--host'." >&2;}
1719 guppy 1.72 { (exit 1); exit 1; }; }
1720     fi
1721     fi
1722     fi
1723 wcc 1.83 echo "$as_me:$LINENO: result: yes" >&5
1724 guppy 1.72 echo "${ECHO_T}yes" >&6
1725    
1726 wcc 1.98 rm -f a.out a.exe conftest$ac_cv_exeext
1727 guppy 1.72 ac_clean_files=$ac_clean_files_save
1728     # Check the compiler produces executables we can run. If not, either
1729     # the compiler is broken, or we cross compile.
1730 wcc 1.83 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1731 guppy 1.72 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1732 wcc 1.83 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1733 guppy 1.72 echo "${ECHO_T}$cross_compiling" >&6
1734    
1735 wcc 1.83 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1736     echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1737     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1738 guppy 1.72 (eval $ac_link) 2>&5
1739     ac_status=$?
1740 wcc 1.83 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1741 guppy 1.72 (exit $ac_status); }; then
1742     # If both `conftest.exe' and `conftest' are `present' (well, observable)
1743     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1744     # work properly (i.e., refer to `conftest.exe'), while it won't with
1745     # `rm'.
1746 wcc 1.83 for ac_file in conftest.exe conftest conftest.*; do
1747     test -f "$ac_file" || continue
1748 guppy 1.72 case $ac_file in
1749 wcc 1.83 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1750 guppy 1.72 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1751     export ac_cv_exeext
1752     break;;
1753     * ) break;;
1754     esac
1755     done
1756     else
1757 wcc 1.98 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1758     echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1759 guppy 1.72 { (exit 1); exit 1; }; }
1760     fi
1761    
1762     rm -f conftest$ac_cv_exeext
1763 wcc 1.83 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1764 guppy 1.72 echo "${ECHO_T}$ac_cv_exeext" >&6
1765    
1766     rm -f conftest.$ac_ext
1767     EXEEXT=$ac_cv_exeext
1768     ac_exeext=$EXEEXT
1769 wcc 1.83 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1770     echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1771 guppy 1.72 if test "${ac_cv_objext+set}" = set; then
1772     echo $ECHO_N "(cached) $ECHO_C" >&6
1773     else
1774     cat >conftest.$ac_ext <<_ACEOF
1775 wcc 1.83 #line $LINENO "configure"
1776 wcc 1.98 #include "confdefs.h"
1777 guppy 1.72
1778     int
1779     main ()
1780     {
1781    
1782     ;
1783     return 0;
1784     }
1785     _ACEOF
1786     rm -f conftest.o conftest.obj
1787 wcc 1.83 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1788 guppy 1.72 (eval $ac_compile) 2>&5
1789     ac_status=$?
1790 wcc 1.83 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 guppy 1.72 (exit $ac_status); }; then
1792     for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1793     case $ac_file in
1794 wcc 1.83 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1795 guppy 1.72 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1796     break;;
1797     esac
1798     done
1799 segfault 1.1 else
1800 guppy 1.72 echo "$as_me: failed program was:" >&5
1801 wcc 1.98 cat conftest.$ac_ext >&5
1802     { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1803     echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1804 guppy 1.72 { (exit 1); exit 1; }; }
1805     fi
1806    
1807     rm -f conftest.$ac_cv_objext conftest.$ac_ext
1808     fi
1809 wcc 1.83 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1810 guppy 1.72 echo "${ECHO_T}$ac_cv_objext" >&6
1811     OBJEXT=$ac_cv_objext
1812     ac_objext=$OBJEXT
1813 wcc 1.83 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1814 guppy 1.72 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1815     if test "${ac_cv_c_compiler_gnu+set}" = set; then
1816     echo $ECHO_N "(cached) $ECHO_C" >&6
1817     else
1818     cat >conftest.$ac_ext <<_ACEOF
1819 wcc 1.83 #line $LINENO "configure"
1820 wcc 1.98 #include "confdefs.h"
1821 guppy 1.72
1822     int
1823     main ()
1824     {
1825     #ifndef __GNUC__
1826     choke me
1827     #endif
1828    
1829     ;
1830     return 0;
1831     }
1832     _ACEOF
1833     rm -f conftest.$ac_objext
1834 wcc 1.83 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1835 guppy 1.72 (eval $ac_compile) 2>&5
1836     ac_status=$?
1837 wcc 1.83 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838 guppy 1.72 (exit $ac_status); } &&
1839     { ac_try='test -s conftest.$ac_objext'
1840 wcc 1.83 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1841 guppy 1.72 (eval $ac_try) 2>&5
1842     ac_status=$?
1843 wcc 1.83 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844 guppy 1.72 (exit $ac_status); }; }; then
1845     ac_compiler_gnu=yes
1846     else
1847     echo "$as_me: failed program was:" >&5
1848 wcc 1.98 cat conftest.$ac_ext >&5
1849 guppy 1.72 ac_compiler_gnu=no
1850     fi
1851     rm -f conftest.$ac_objext conftest.$ac_ext
1852     ac_cv_c_compiler_gnu=$ac_compiler_gnu
1853    
1854     fi
1855 wcc 1.83 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1856 guppy 1.72 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1857     GCC=`test $ac_compiler_gnu = yes && echo yes`
1858     ac_test_CFLAGS=${CFLAGS+set}
1859     ac_save_CFLAGS=$CFLAGS
1860     CFLAGS="-g"
1861 wcc 1.83 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1862 guppy 1.72 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1863     if test "${ac_cv_prog_cc_g+set}" = set; then
1864     echo $ECHO_N "(cached) $ECHO_C" >&6
1865     else
1866     cat >conftest.$ac_ext <<_ACEOF
1867 wcc 1.83 #line $LINENO "configure"
1868 wcc 1.98 #include "confdefs.h"
1869 guppy 1.72
1870     int
1871     main ()
1872     {
1873    
1874     ;
1875     return 0;
1876     }
1877     _ACEOF
1878     rm -f conftest.$ac_objext
1879 wcc 1.83 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1880 guppy 1.72 (eval $ac_compile) 2>&5
1881     ac_status=$?
1882 wcc 1.83 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 guppy 1.72 (exit $ac_status); } &&
1884     { ac_try='test -s conftest.$ac_objext'
1885 wcc 1.83 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1886 guppy 1.72 (eval $ac_try) 2>&5
1887     ac_status=$?
1888 wcc 1.83 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 guppy 1.72 (exit $ac_status); }; }; then
1890 segfault 1.1 ac_cv_prog_cc_g=yes
1891     else
1892 guppy 1.72 echo "$as_me: failed program was:" >&5
1893 wcc 1.98 cat conftest.$ac_ext >&5
1894 guppy 1.72 ac_cv_prog_cc_g=no
1895 segfault 1.1 fi
1896 guppy 1.72 rm -f conftest.$ac_objext conftest.$ac_ext
1897 segfault 1.1 fi
1898 wcc 1.83 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1899 guppy 1.72 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1900 segfault 1.1 if test "$ac_test_CFLAGS" = set; then
1901 guppy 1.72 CFLAGS=$ac_save_CFLAGS
1902 segfault 1.1 elif test $ac_cv_prog_cc_g = yes; then
1903     if test "$GCC" = yes; then
1904     CFLAGS="-g -O2"
1905     else
1906     CFLAGS="-g"
1907     fi
1908     else
1909     if test "$GCC" = yes; then
1910     CFLAGS="-O2"
1911     else
1912     CFLAGS=
1913     fi
1914     fi
1915 wcc 1.83 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1916     echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1917     if test "${ac_cv_prog_cc_stdc+set}" = set; then
1918     echo $ECHO_N "(cached) $ECHO_C" >&6
1919     else
1920     ac_cv_prog_cc_stdc=no
1921     ac_save_CC=$CC
1922     cat >conftest.$ac_ext <<_ACEOF
1923     #line $LINENO "configure"
1924 wcc 1.98 #include "confdefs.h"
1925 wcc 1.83 #include <stdarg.h>
1926     #include <stdio.h>
1927     #include <sys/types.h>
1928     #include <sys/stat.h>
1929     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1930     struct buf { int x; };
1931     FILE * (*rcsopen) (struct buf *, struct stat *, int);
1932     static char *e (p, i)
1933     char **p;
1934     int i;
1935     {
1936     return p[i];
1937     }
1938     static char *f (char * (*g) (char **, int), char **p, ...)
1939     {
1940     char *s;
1941     va_list v;
1942     va_start (v,p);
1943     s = g (p, va_arg (v,int));
1944     va_end (v);
1945     return s;
1946     }
1947     int test (int i, double x);
1948     struct s1 {int (*f) (int a);};
1949     struct s2 {int (*f) (double a);};
1950     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1951     int argc;
1952     char **argv;
1953     int
1954     main ()
1955     {
1956     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1957     ;
1958     return 0;
1959     }
1960     _ACEOF
1961     # Don't try gcc -ansi; that turns off useful extensions and
1962     # breaks some systems' header files.
1963     # AIX -qlanglvl=ansi
1964     # Ultrix and OSF/1 -std1
1965     # HP-UX 10.20 and later -Ae
1966     # HP-UX older versions -Aa -D_HPUX_SOURCE
1967     # SVR4 -Xc -D__EXTENSIONS__
1968     for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1969     do
1970     CC="$ac_save_CC $ac_arg"
1971     rm -f conftest.$ac_objext
1972     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1973     (eval $ac_compile) 2>&5
1974     ac_status=$?
1975     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976     (exit $ac_status); } &&
1977     { ac_try='test -s conftest.$ac_objext'
1978     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1979     (eval $ac_try) 2>&5
1980     ac_status=$?
1981     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982     (exit $ac_status); }; }; then
1983     ac_cv_prog_cc_stdc=$ac_arg
1984     break
1985     else
1986     echo "$as_me: failed program was:" >&5
1987 wcc 1.98 cat conftest.$ac_ext >&5
1988 wcc 1.83 fi
1989     rm -f conftest.$ac_objext
1990     done
1991     rm -f conftest.$ac_ext conftest.$ac_objext
1992     CC=$ac_save_CC
1993    
1994     fi
1995    
1996     case "x$ac_cv_prog_cc_stdc" in
1997     x|xno)
1998     echo "$as_me:$LINENO: result: none needed" >&5
1999     echo "${ECHO_T}none needed" >&6 ;;
2000     *)
2001     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2002     echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2003     CC="$CC $ac_cv_prog_cc_stdc" ;;
2004     esac
2005    
2006 guppy 1.72 # Some people use a C++ compiler to compile C. Since we use `exit',
2007     # in C++ we need to declare it. In case someone uses the same compiler
2008     # for both compiling C and C++ we need to have the C++ compiler decide
2009     # the declaration of exit, since it's the most demanding environment.
2010     cat >conftest.$ac_ext <<_ACEOF
2011     #ifndef __cplusplus
2012     choke me
2013     #endif
2014     _ACEOF
2015     rm -f conftest.$ac_objext
2016 wcc 1.83 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2017 guppy 1.72 (eval $ac_compile) 2>&5
2018     ac_status=$?
2019 wcc 1.83 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020 guppy 1.72 (exit $ac_status); } &&
2021     { ac_try='test -s conftest.$ac_objext'
2022 wcc 1.83 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2023 guppy 1.72 (eval $ac_try) 2>&5
2024     ac_status=$?
2025 wcc 1.83 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 guppy 1.72 (exit $ac_status); }; }; then
2027     for ac_declaration in \
2028     ''\
2029     '#include <stdlib.h>' \
2030     'extern "C" void std::exit (int) throw (); using std::exit;' \
2031     'extern "C" void std::exit (int); using std::exit;' \
2032     'extern "C" void exit (int) throw ();' \
2033     'extern "C" void exit (int);' \
2034     'void exit (int);'
2035     do
2036     cat >conftest.$ac_ext <<_ACEOF
2037 wcc 1.83 #line $LINENO "configure"
2038 wcc 1.98 #include "confdefs.h"
2039 guppy 1.72 #include <stdlib.h>
2040     $ac_declaration
2041     int
2042     main ()
2043     {
2044     exit (42);
2045     ;
2046     return 0;
2047     }
2048     _ACEOF
2049     rm -f conftest.$ac_objext
2050 wcc 1.83 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2051 guppy 1.72 (eval $ac_compile) 2>&5
2052     ac_status=$?
2053 wcc 1.83 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 guppy 1.72 (exit $ac_status); } &&
2055     { ac_try='test -s conftest.$ac_objext'
2056 wcc 1.83 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057 guppy 1.72 (eval $ac_try) 2>&5
2058     ac_status=$?
2059 wcc 1.83 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 guppy 1.72 (exit $ac_status); }; }; then
2061     :
2062     else
2063     echo "$as_me: failed program was:" >&5
2064 wcc 1.98 cat conftest.$ac_ext >&5
2065 guppy 1.72 continue
2066     fi
2067     rm -f conftest.$ac_objext conftest.$ac_ext
2068     cat >conftest.$ac_ext <<_ACEOF
2069 wcc 1.83 #line $LINENO "configure"
2070 wcc 1.98 #include "confdefs.h"
2071 guppy 1.72 $ac_declaration
2072     int
2073     main ()
2074     {
2075     exit (42);
2076     ;
2077     return 0;
2078     }
2079     _ACEOF
2080     rm -f conftest.$ac_objext
2081 wcc 1.83 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082 guppy 1.72 (eval $ac_compile) 2>&5
2083     ac_status=$?
2084 wcc 1.83 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 guppy 1.72 (exit $ac_status); } &&
2086     { ac_try='test -s conftest.$ac_objext'
2087 wcc 1.83 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088 guppy 1.72 (eval $ac_try) 2>&5
2089     ac_status=$?
2090 wcc 1.83 echo "$as_me:$LINENO: \$?