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

Annotation of /eggdrop1.4/configure

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


Revision 1.57 - (hide annotations) (download)
Mon Aug 7 16:23:43 2000 UTC (19 years, 4 months ago) by guppy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.56: +142 -101 lines
fabian's patches

1 segfault 1.1 #! /bin/sh
2    
3 per 1.47 # From configure.in Revision
4 guppy 1.53 # Guess values for system-dependent variables and create Makefiles.
5 segfault 1.1 # Generated automatically using autoconf version 2.13
6     # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7     #
8     # This configure script is free software; the Free Software Foundation
9     # gives unlimited permission to copy, distribute and modify it.
10    
11     # Defaults:
12     ac_help=
13     ac_default_prefix=/usr/local
14     # Any additions from configure.in:
15 guppy 1.42 ac_default_prefix=\${HOME}/eggdrop
16 segfault 1.1 ac_help="$ac_help
17     --with-tcllib=PATH full path to tcl library"
18     ac_help="$ac_help
19     --with-tclinc=PATH full path to tcl header"
20    
21     # Initialize some variables set by options.
22     # The variables have the same names as the options, with
23     # dashes changed to underlines.
24     build=NONE
25     cache_file=./config.cache
26     exec_prefix=NONE
27     host=NONE
28     no_create=
29     nonopt=NONE
30     no_recursion=
31     prefix=NONE
32     program_prefix=NONE
33     program_suffix=NONE
34     program_transform_name=s,x,x,
35     silent=
36     site=
37     srcdir=
38     target=NONE
39     verbose=
40     x_includes=NONE
41     x_libraries=NONE
42     bindir='${exec_prefix}/bin'
43     sbindir='${exec_prefix}/sbin'
44     libexecdir='${exec_prefix}/libexec'
45     datadir='${prefix}/share'
46     sysconfdir='${prefix}/etc'
47     sharedstatedir='${prefix}/com'
48     localstatedir='${prefix}/var'
49     libdir='${exec_prefix}/lib'
50     includedir='${prefix}/include'
51     oldincludedir='/usr/include'
52     infodir='${prefix}/info'
53     mandir='${prefix}/man'
54    
55     # Initialize some other variables.
56     subdirs=
57     MFLAGS= MAKEFLAGS=
58     SHELL=${CONFIG_SHELL-/bin/sh}
59     # Maximum number of lines to put in a shell here document.
60     ac_max_here_lines=12
61    
62     ac_prev=
63     for ac_option
64     do
65    
66     # If the previous option needs an argument, assign it.
67     if test -n "$ac_prev"; then
68     eval "$ac_prev=\$ac_option"
69     ac_prev=
70     continue
71     fi
72    
73     case "$ac_option" in
74     -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
75     *) ac_optarg= ;;
76     esac
77    
78     # Accept the important Cygnus configure options, so we can diagnose typos.
79    
80     case "$ac_option" in
81    
82     -bindir | --bindir | --bindi | --bind | --bin | --bi)
83     ac_prev=bindir ;;
84     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
85     bindir="$ac_optarg" ;;
86    
87     -build | --build | --buil | --bui | --bu)
88     ac_prev=build ;;
89     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
90     build="$ac_optarg" ;;
91    
92     -cache-file | --cache-file | --cache-fil | --cache-fi \
93     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
94     ac_prev=cache_file ;;
95     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
96     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
97     cache_file="$ac_optarg" ;;
98    
99     -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
100     ac_prev=datadir ;;
101     -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
102     | --da=*)
103     datadir="$ac_optarg" ;;
104    
105     -disable-* | --disable-*)
106     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
107     # Reject names that are not valid shell variable names.
108     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
109     { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
110     fi
111     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
112     eval "enable_${ac_feature}=no" ;;
113    
114     -enable-* | --enable-*)
115     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
116     # Reject names that are not valid shell variable names.
117     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
118     { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119     fi
120     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121     case "$ac_option" in
122     *=*) ;;
123     *) ac_optarg=yes ;;
124     esac
125     eval "enable_${ac_feature}='$ac_optarg'" ;;
126    
127     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
128     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
129     | --exec | --exe | --ex)
130     ac_prev=exec_prefix ;;
131     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
132     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
133     | --exec=* | --exe=* | --ex=*)
134     exec_prefix="$ac_optarg" ;;
135    
136     -gas | --gas | --ga | --g)
137     # Obsolete; use --with-gas.
138     with_gas=yes ;;
139    
140     -help | --help | --hel | --he)
141     # Omit some internal or obsolete options to make the list less imposing.
142     # This message is too long to be a string in the A/UX 3.1 sh.
143     cat << EOF
144     Usage: configure [options] [host]
145     Options: [defaults in brackets after descriptions]
146     Configuration:
147     --cache-file=FILE cache test results in FILE
148     --help print this message
149     --no-create do not create output files
150     --quiet, --silent do not print \`checking...' messages
151     --version print the version of autoconf that created configure
152     Directory and file names:
153     --prefix=PREFIX install architecture-independent files in PREFIX
154     [$ac_default_prefix]
155     --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
156     [same as prefix]
157     --bindir=DIR user executables in DIR [EPREFIX/bin]
158     --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
159     --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
160     --datadir=DIR read-only architecture-independent data in DIR
161     [PREFIX/share]
162     --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
163     --sharedstatedir=DIR modifiable architecture-independent data in DIR
164     [PREFIX/com]
165     --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
166     --libdir=DIR object code libraries in DIR [EPREFIX/lib]
167     --includedir=DIR C header files in DIR [PREFIX/include]
168     --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
169     --infodir=DIR info documentation in DIR [PREFIX/info]
170     --mandir=DIR man documentation in DIR [PREFIX/man]
171     --srcdir=DIR find the sources in DIR [configure dir or ..]
172     --program-prefix=PREFIX prepend PREFIX to installed program names
173     --program-suffix=SUFFIX append SUFFIX to installed program names
174     --program-transform-name=PROGRAM
175     run sed PROGRAM on installed program names
176     EOF
177     cat << EOF
178     Host type:
179     --build=BUILD configure for building on BUILD [BUILD=HOST]
180     --host=HOST configure for HOST [guessed]
181     --target=TARGET configure for TARGET [TARGET=HOST]
182     Features and packages:
183     --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
184     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
185     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
186     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
187     --x-includes=DIR X include files are in DIR
188     --x-libraries=DIR X library files are in DIR
189     EOF
190     if test -n "$ac_help"; then
191     echo "--enable and --with options recognized:$ac_help"
192     fi
193     exit 0 ;;
194    
195     -host | --host | --hos | --ho)
196     ac_prev=host ;;
197     -host=* | --host=* | --hos=* | --ho=*)
198     host="$ac_optarg" ;;
199    
200     -includedir | --includedir | --includedi | --included | --include \
201     | --includ | --inclu | --incl | --inc)
202     ac_prev=includedir ;;
203     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
204     | --includ=* | --inclu=* | --incl=* | --inc=*)
205     includedir="$ac_optarg" ;;
206    
207     -infodir | --infodir | --infodi | --infod | --info | --inf)
208     ac_prev=infodir ;;
209     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
210     infodir="$ac_optarg" ;;
211    
212     -libdir | --libdir | --libdi | --libd)
213     ac_prev=libdir ;;
214     -libdir=* | --libdir=* | --libdi=* | --libd=*)
215     libdir="$ac_optarg" ;;
216    
217     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
218     | --libexe | --libex | --libe)
219     ac_prev=libexecdir ;;
220     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
221     | --libexe=* | --libex=* | --libe=*)
222     libexecdir="$ac_optarg" ;;
223    
224     -localstatedir | --localstatedir | --localstatedi | --localstated \
225     | --localstate | --localstat | --localsta | --localst \
226     | --locals | --local | --loca | --loc | --lo)
227     ac_prev=localstatedir ;;
228     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
229     | --localstate=* | --localstat=* | --localsta=* | --localst=* \
230     | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
231     localstatedir="$ac_optarg" ;;
232    
233     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
234     ac_prev=mandir ;;
235     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
236     mandir="$ac_optarg" ;;
237    
238     -nfp | --nfp | --nf)
239     # Obsolete; use --without-fp.
240     with_fp=no ;;
241    
242     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
243     | --no-cr | --no-c)
244     no_create=yes ;;
245    
246     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
247     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
248     no_recursion=yes ;;
249    
250     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
251     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
252     | --oldin | --oldi | --old | --ol | --o)
253     ac_prev=oldincludedir ;;
254     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
255     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
256     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
257     oldincludedir="$ac_optarg" ;;
258    
259     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
260     ac_prev=prefix ;;
261     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
262     prefix="$ac_optarg" ;;
263    
264     -program-prefix | --program-prefix | --program-prefi | --program-pref \
265     | --program-pre | --program-pr | --program-p)
266     ac_prev=program_prefix ;;
267     -program-prefix=* | --program-prefix=* | --program-prefi=* \
268     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
269     program_prefix="$ac_optarg" ;;
270    
271     -program-suffix | --program-suffix | --program-suffi | --program-suff \
272     | --program-suf | --program-su | --program-s)
273     ac_prev=program_suffix ;;
274     -program-suffix=* | --program-suffix=* | --program-suffi=* \
275     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
276     program_suffix="$ac_optarg" ;;
277    
278     -program-transform-name | --program-transform-name \
279     | --program-transform-nam | --program-transform-na \
280     | --program-transform-n | --program-transform- \
281     | --program-transform | --program-transfor \
282     | --program-transfo | --program-transf \
283     | --program-trans | --program-tran \
284     | --progr-tra | --program-tr | --program-t)
285     ac_prev=program_transform_name ;;
286     -program-transform-name=* | --program-transform-name=* \
287     | --program-transform-nam=* | --program-transform-na=* \
288     | --program-transform-n=* | --program-transform-=* \
289     | --program-transform=* | --program-transfor=* \
290     | --program-transfo=* | --program-transf=* \
291     | --program-trans=* | --program-tran=* \
292     | --progr-tra=* | --program-tr=* | --program-t=*)
293     program_transform_name="$ac_optarg" ;;
294    
295     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
296     | -silent | --silent | --silen | --sile | --sil)
297     silent=yes ;;
298    
299     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
300     ac_prev=sbindir ;;
301     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
302     | --sbi=* | --sb=*)
303     sbindir="$ac_optarg" ;;
304    
305     -sharedstatedir | --sharedstatedir | --sharedstatedi \
306     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
307     | --sharedst | --shareds | --shared | --share | --shar \
308     | --sha | --sh)
309     ac_prev=sharedstatedir ;;
310     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
311     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
312     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
313     | --sha=* | --sh=*)
314     sharedstatedir="$ac_optarg" ;;
315    
316     -site | --site | --sit)
317     ac_prev=site ;;
318     -site=* | --site=* | --sit=*)
319     site="$ac_optarg" ;;
320    
321     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
322     ac_prev=srcdir ;;
323     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
324     srcdir="$ac_optarg" ;;
325    
326     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
327     | --syscon | --sysco | --sysc | --sys | --sy)
328     ac_prev=sysconfdir ;;
329     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
330     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
331     sysconfdir="$ac_optarg" ;;
332    
333     -target | --target | --targe | --targ | --tar | --ta | --t)
334     ac_prev=target ;;
335     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
336     target="$ac_optarg" ;;
337    
338     -v | -verbose | --verbose | --verbos | --verbo | --verb)
339     verbose=yes ;;
340    
341     -version | --version | --versio | --versi | --vers)
342     echo "configure generated by autoconf version 2.13"
343     exit 0 ;;
344    
345     -with-* | --with-*)
346     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
347     # Reject names that are not valid shell variable names.
348     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
349     { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
350     fi
351     ac_package=`echo $ac_package| sed 's/-/_/g'`
352     case "$ac_option" in
353     *=*) ;;
354     *) ac_optarg=yes ;;
355     esac
356     eval "with_${ac_package}='$ac_optarg'" ;;
357    
358     -without-* | --without-*)
359     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
360     # Reject names that are not valid shell variable names.
361     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
362     { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363     fi
364     ac_package=`echo $ac_package| sed 's/-/_/g'`
365     eval "with_${ac_package}=no" ;;
366    
367     --x)
368     # Obsolete; use --with-x.
369     with_x=yes ;;
370    
371     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
372     | --x-incl | --x-inc | --x-in | --x-i)
373     ac_prev=x_includes ;;
374     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
375     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
376     x_includes="$ac_optarg" ;;
377    
378     -x-libraries | --x-libraries | --x-librarie | --x-librari \
379     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
380     ac_prev=x_libraries ;;
381     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
382     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
383     x_libraries="$ac_optarg" ;;
384    
385     -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
386     ;;
387    
388     *)
389     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
390     echo "configure: warning: $ac_option: invalid host type" 1>&2
391     fi
392     if test "x$nonopt" != xNONE; then
393     { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
394     fi
395     nonopt="$ac_option"
396     ;;
397    
398     esac
399     done
400    
401     if test -n "$ac_prev"; then
402     { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
403     fi
404    
405     trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
406    
407     # File descriptor usage:
408     # 0 standard input
409     # 1 file creation
410     # 2 errors and warnings
411     # 3 some systems may open it to /dev/tty
412     # 4 used on the Kubota Titan
413     # 6 checking for... messages and results
414     # 5 compiler messages saved in config.log
415     if test "$silent" = yes; then
416     exec 6>/dev/null
417     else
418     exec 6>&1
419     fi
420     exec 5>./config.log
421    
422     echo "\
423     This file contains any messages produced by compilers while
424     running configure, to aid debugging if configure makes a mistake.
425     " 1>&5
426    
427     # Strip out --no-create and --no-recursion so they do not pile up.
428     # Also quote any args containing shell metacharacters.
429     ac_configure_args=
430     for ac_arg
431     do
432     case "$ac_arg" in
433     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
434     | --no-cr | --no-c) ;;
435     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
436     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
437     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
438     ac_configure_args="$ac_configure_args '$ac_arg'" ;;
439     *) ac_configure_args="$ac_configure_args $ac_arg" ;;
440     esac
441     done
442    
443     # NLS nuisances.
444     # Only set these to C if already set. These must not be set unconditionally
445     # because not all systems understand e.g. LANG=C (notably SCO).
446     # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
447     # Non-C LC_CTYPE values break the ctype check.
448     if test "${LANG+set}" = set; then LANG=C; export LANG; fi
449     if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
450     if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
451     if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
452    
453     # confdefs.h avoids OS command line length limits that DEFS can exceed.
454     rm -rf conftest* confdefs.h
455     # AIX cpp loses on an empty file, so make sure it contains at least a newline.
456     echo > confdefs.h
457    
458     # A filename unique to this package, relative to the directory that
459     # configure is in, which we can look for to find out if srcdir is correct.
460     ac_unique_file=eggdrop.conf.dist
461    
462     # Find the source files, if location was not specified.
463     if test -z "$srcdir"; then
464     ac_srcdir_defaulted=yes
465     # Try the directory containing this script, then its parent.
466     ac_prog=$0
467     ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
468     test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
469     srcdir=$ac_confdir
470     if test ! -r $srcdir/$ac_unique_file; then
471     srcdir=..
472     fi
473     else
474     ac_srcdir_defaulted=no
475     fi
476     if test ! -r $srcdir/$ac_unique_file; then
477     if test "$ac_srcdir_defaulted" = yes; then
478     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
479     else
480     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
481     fi
482     fi
483     srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
484    
485     # Prefer explicitly selected file to automatically selected ones.
486     if test -z "$CONFIG_SITE"; then
487     if test "x$prefix" != xNONE; then
488     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
489     else
490     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
491     fi
492     fi
493     for ac_site_file in $CONFIG_SITE; do
494     if test -r "$ac_site_file"; then
495     echo "loading site script $ac_site_file"
496     . "$ac_site_file"
497     fi
498     done
499    
500     if test -r "$cache_file"; then
501     echo "loading cache $cache_file"
502     . $cache_file
503     else
504     echo "creating cache $cache_file"
505     > $cache_file
506     fi
507    
508     ac_ext=c
509     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
510     ac_cpp='$CPP $CPPFLAGS'
511     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
512     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
513     cross_compiling=$ac_cv_prog_cc_cross
514    
515     ac_exeext=
516     ac_objext=o
517     if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
518     # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
519     if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
520     ac_n= ac_c='
521     ' ac_t=' '
522     else
523     ac_n=-n ac_c= ac_t=
524     fi
525     else
526     ac_n= ac_c='\c' ac_t=
527     fi
528    
529    
530 guppy 1.42
531 segfault 1.1
532    
533 arthur2 1.23 echo "$ac_t""" 1>&6
534     echo "$ac_t""This is eggdrop's GNU configure script." 1>&6
535     echo "$ac_t""It's going to run a bunch of strange tests to hopefully" 1>&6
536     echo "$ac_t""make your compile work without much twiddling." 1>&6
537     echo "$ac_t""" 1>&6
538 segfault 1.1
539 guppy 1.42
540     # Setup build environment
541 segfault 1.1 # Extract the first word of "gcc", so it can be a program name with args.
542     set dummy gcc; ac_word=$2
543     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
544 guppy 1.46 echo "configure:545: checking for $ac_word" >&5
545 segfault 1.1 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
546     echo $ac_n "(cached) $ac_c" 1>&6
547     else
548     if test -n "$CC"; then
549     ac_cv_prog_CC="$CC" # Let the user override the test.
550     else
551     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
552     ac_dummy="$PATH"
553     for ac_dir in $ac_dummy; do
554     test -z "$ac_dir" && ac_dir=.
555     if test -f $ac_dir/$ac_word; then
556     ac_cv_prog_CC="gcc"
557     break
558     fi
559     done
560     IFS="$ac_save_ifs"
561     fi
562     fi
563     CC="$ac_cv_prog_CC"
564     if test -n "$CC"; then
565     echo "$ac_t""$CC" 1>&6
566     else
567     echo "$ac_t""no" 1>&6
568     fi
569    
570     if test -z "$CC"; then
571     # Extract the first word of "cc", so it can be a program name with args.
572     set dummy cc; ac_word=$2
573     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
574 guppy 1.46 echo "configure:575: checking for $ac_word" >&5
575 segfault 1.1 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
576     echo $ac_n "(cached) $ac_c" 1>&6
577     else
578     if test -n "$CC"; then
579     ac_cv_prog_CC="$CC" # Let the user override the test.
580     else
581     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
582     ac_prog_rejected=no
583     ac_dummy="$PATH"
584     for ac_dir in $ac_dummy; do
585     test -z "$ac_dir" && ac_dir=.
586     if test -f $ac_dir/$ac_word; then
587     if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
588     ac_prog_rejected=yes
589     continue
590     fi
591     ac_cv_prog_CC="cc"
592     break
593     fi
594     done
595     IFS="$ac_save_ifs"
596     if test $ac_prog_rejected = yes; then
597     # We found a bogon in the path, so make sure we never use it.
598     set dummy $ac_cv_prog_CC
599     shift
600     if test $# -gt 0; then
601     # We chose a different compiler from the bogus one.
602     # However, it has the same basename, so the bogon will be chosen
603     # first if we set CC to just the basename; use the full file name.
604     shift
605     set dummy "$ac_dir/$ac_word" "$@"
606     shift
607     ac_cv_prog_CC="$@"
608     fi
609     fi
610     fi
611     fi
612     CC="$ac_cv_prog_CC"
613     if test -n "$CC"; then
614     echo "$ac_t""$CC" 1>&6
615     else
616     echo "$ac_t""no" 1>&6
617     fi
618    
619     if test -z "$CC"; then
620     case "`uname -s`" in
621     *win32* | *WIN32*)
622     # Extract the first word of "cl", so it can be a program name with args.
623     set dummy cl; ac_word=$2
624     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
625 guppy 1.46 echo "configure:626: checking for $ac_word" >&5
626 segfault 1.1 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
627     echo $ac_n "(cached) $ac_c" 1>&6
628     else
629     if test -n "$CC"; then
630     ac_cv_prog_CC="$CC" # Let the user override the test.
631     else
632     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
633     ac_dummy="$PATH"
634     for ac_dir in $ac_dummy; do
635     test -z "$ac_dir" && ac_dir=.
636     if test -f $ac_dir/$ac_word; then
637     ac_cv_prog_CC="cl"
638     break
639     fi
640     done
641     IFS="$ac_save_ifs"
642     fi
643     fi
644     CC="$ac_cv_prog_CC"
645     if test -n "$CC"; then
646     echo "$ac_t""$CC" 1>&6
647     else
648     echo "$ac_t""no" 1>&6
649     fi
650     ;;
651     esac
652     fi
653     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
654     fi
655    
656     echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
657 guppy 1.46 echo "configure:658: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
658 segfault 1.1
659     ac_ext=c
660     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
661     ac_cpp='$CPP $CPPFLAGS'
662     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
663     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
664     cross_compiling=$ac_cv_prog_cc_cross
665    
666     cat > conftest.$ac_ext << EOF
667    
668 guppy 1.46 #line 669 "configure"
669 segfault 1.1 #include "confdefs.h"
670    
671     main(){return(0);}
672     EOF
673 guppy 1.46 if { (eval echo configure:674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
674 segfault 1.1 ac_cv_prog_cc_works=yes
675     # If we can't run a trivial program, we are probably using a cross compiler.
676     if (./conftest; exit) 2>/dev/null; then
677     ac_cv_prog_cc_cross=no
678     else
679     ac_cv_prog_cc_cross=yes
680     fi
681     else
682     echo "configure: failed program was:" >&5
683     cat conftest.$ac_ext >&5
684     ac_cv_prog_cc_works=no
685     fi
686     rm -fr conftest*
687     ac_ext=c
688     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
689     ac_cpp='$CPP $CPPFLAGS'
690     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
691     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
692     cross_compiling=$ac_cv_prog_cc_cross
693    
694     echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
695     if test $ac_cv_prog_cc_works = no; then
696     { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
697     fi
698     echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
699 guppy 1.46 echo "configure:700: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
700 segfault 1.1 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
701     cross_compiling=$ac_cv_prog_cc_cross
702    
703     echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
704 guppy 1.46 echo "configure:705: checking whether we are using GNU C" >&5
705 segfault 1.1 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
706     echo $ac_n "(cached) $ac_c" 1>&6
707     else
708     cat > conftest.c <<EOF
709     #ifdef __GNUC__
710     yes;
711     #endif
712     EOF
713 guppy 1.46 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
714 segfault 1.1 ac_cv_prog_gcc=yes
715     else
716     ac_cv_prog_gcc=no
717     fi
718     fi
719    
720     echo "$ac_t""$ac_cv_prog_gcc" 1>&6
721    
722     if test $ac_cv_prog_gcc = yes; then
723     GCC=yes
724     else
725     GCC=
726     fi
727    
728     ac_test_CFLAGS="${CFLAGS+set}"
729     ac_save_CFLAGS="$CFLAGS"
730     CFLAGS=
731     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
732 guppy 1.46 echo "configure:733: checking whether ${CC-cc} accepts -g" >&5
733 segfault 1.1 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
734     echo $ac_n "(cached) $ac_c" 1>&6
735     else
736     echo 'void f(){}' > conftest.c
737     if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
738     ac_cv_prog_cc_g=yes
739     else
740     ac_cv_prog_cc_g=no
741     fi
742     rm -f conftest*
743    
744     fi
745    
746     echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
747     if test "$ac_test_CFLAGS" = set; then
748     CFLAGS="$ac_save_CFLAGS"
749     elif test $ac_cv_prog_cc_g = yes; then
750     if test "$GCC" = yes; then
751     CFLAGS="-g -O2"
752     else
753     CFLAGS="-g"
754     fi
755     else
756     if test "$GCC" = yes; then
757     CFLAGS="-O2"
758     else
759     CFLAGS=
760     fi
761     fi
762    
763 guppy 1.42 if test "x${cross_compiling}" = "x"
764 guppy 1.21 then
765 arthur2 1.23 cat << 'EOF' >&2
766     configure: error:
767    
768     This system does not appear to have a working C compiler.
769     A working C compiler is required to compile eggdrop.
770    
771     EOF
772 guppy 1.21 exit 1
773     fi
774    
775 guppy 1.42
776     # Crazy machines
777 segfault 1.1 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
778 guppy 1.46 echo "configure:779: checking how to run the C preprocessor" >&5
779 segfault 1.1 # On Suns, sometimes $CPP names a directory.
780     if test -n "$CPP" && test -d "$CPP"; then
781     CPP=
782     fi
783     if test -z "$CPP"; then
784     if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
785     echo $ac_n "(cached) $ac_c" 1>&6
786     else
787     # This must be in double quotes, not single quotes, because CPP may get
788     # substituted into the Makefile and "${CC-cc}" will confuse make.
789     CPP="${CC-cc} -E"
790     # On the NeXT, cc -E runs the code through the compiler's parser,
791     # not just through cpp.
792     cat > conftest.$ac_ext <<EOF
793 guppy 1.46 #line 794 "configure"
794 segfault 1.1 #include "confdefs.h"
795     #include <assert.h>
796     Syntax Error
797     EOF
798     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
799 guppy 1.46 { (eval echo configure:800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
800 segfault 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
801     if test -z "$ac_err"; then
802     :
803     else
804     echo "$ac_err" >&5
805     echo "configure: failed program was:" >&5
806     cat conftest.$ac_ext >&5
807     rm -rf conftest*
808     CPP="${CC-cc} -E -traditional-cpp"
809     cat > conftest.$ac_ext <<EOF
810 guppy 1.46 #line 811 "configure"
811 segfault 1.1 #include "confdefs.h"
812     #include <assert.h>
813     Syntax Error
814     EOF
815     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
816 guppy 1.46 { (eval echo configure:817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
817 segfault 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
818     if test -z "$ac_err"; then
819     :
820     else
821     echo "$ac_err" >&5
822     echo "configure: failed program was:" >&5
823     cat conftest.$ac_ext >&5
824     rm -rf conftest*
825     CPP="${CC-cc} -nologo -E"
826     cat > conftest.$ac_ext <<EOF
827 guppy 1.46 #line 828 "configure"
828 segfault 1.1 #include "confdefs.h"
829     #include <assert.h>
830     Syntax Error
831     EOF
832     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
833 guppy 1.46 { (eval echo configure:834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
834 segfault 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
835     if test -z "$ac_err"; then
836     :
837     else
838     echo "$ac_err" >&5
839     echo "configure: failed program was:" >&5
840     cat conftest.$ac_ext >&5
841     rm -rf conftest*
842     CPP=/lib/cpp
843     fi
844     rm -f conftest*
845     fi
846     rm -f conftest*
847     fi
848     rm -f conftest*
849     ac_cv_prog_CPP="$CPP"
850     fi
851     CPP="$ac_cv_prog_CPP"
852     else
853     ac_cv_prog_CPP="$CPP"
854     fi
855     echo "$ac_t""$CPP" 1>&6
856    
857     echo $ac_n "checking for AIX""... $ac_c" 1>&6
858 guppy 1.46 echo "configure:859: checking for AIX" >&5
859 segfault 1.1 cat > conftest.$ac_ext <<EOF
860 guppy 1.46 #line 861 "configure"
861 segfault 1.1 #include "confdefs.h"
862     #ifdef _AIX
863     yes
864     #endif
865    
866     EOF
867     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
868     egrep "yes" >/dev/null 2>&1; then
869     rm -rf conftest*
870     echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
871     #define _ALL_SOURCE 1
872     EOF
873    
874     else
875     rm -rf conftest*
876     echo "$ac_t""no" 1>&6
877     fi
878     rm -f conftest*
879    
880    
881     echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
882 guppy 1.46 echo "configure:883: checking for POSIXized ISC" >&5
883 segfault 1.1 if test -d /etc/conf/kconfig.d &&
884     grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
885     then
886     echo "$ac_t""yes" 1>&6
887     ISC=yes # If later tests want to check for ISC.
888     cat >> confdefs.h <<\EOF
889     #define _POSIX_SOURCE 1
890     EOF
891    
892     if test "$GCC" = yes; then
893     CC="$CC -posix"
894     else
895     CC="$CC -Xp"
896     fi
897     else
898     echo "$ac_t""no" 1>&6
899     ISC=
900     fi
901    
902     ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
903     echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
904 guppy 1.46 echo "configure:905: checking for minix/config.h" >&5
905 segfault 1.1 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
906     echo $ac_n "(cached) $ac_c" 1>&6
907     else
908     cat > conftest.$ac_ext <<EOF
909 guppy 1.46 #line 910 "configure"
910 segfault 1.1 #include "confdefs.h"
911     #include <minix/config.h>
912     EOF
913     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
914 guppy 1.46 { (eval echo configure:915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
915 segfault 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
916     if test -z "$ac_err"; then
917     rm -rf conftest*
918     eval "ac_cv_header_$ac_safe=yes"
919     else
920     echo "$ac_err" >&5
921     echo "configure: failed program was:" >&5
922     cat conftest.$ac_ext >&5
923     rm -rf conftest*
924     eval "ac_cv_header_$ac_safe=no"
925     fi
926     rm -f conftest*
927     fi
928     if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
929     echo "$ac_t""yes" 1>&6
930     MINIX=yes
931     else
932     echo "$ac_t""no" 1>&6
933     MINIX=
934     fi
935    
936     if test "$MINIX" = yes; then
937     cat >> confdefs.h <<\EOF
938     #define _POSIX_SOURCE 1
939     EOF
940    
941     cat >> confdefs.h <<\EOF
942     #define _POSIX_1_SOURCE 2
943     EOF
944    
945     cat >> confdefs.h <<\EOF
946     #define _MINIX 1
947     EOF
948    
949     fi
950    
951    
952 guppy 1.42 # Checks for programs
953 arthur2 1.24 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
954 guppy 1.46 echo "configure:955: checking whether ${MAKE-make} sets \${MAKE}" >&5
955 arthur2 1.24 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
956     if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
957     echo $ac_n "(cached) $ac_c" 1>&6
958     else
959     cat > conftestmake <<\EOF
960     all:
961     @echo 'ac_maketemp="${MAKE}"'
962     EOF
963     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
964     eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
965     if test -n "$ac_maketemp"; then
966     eval ac_cv_prog_make_${ac_make}_set=yes
967     else
968     eval ac_cv_prog_make_${ac_make}_set=no
969     fi
970     rm -f conftestmake
971     fi
972     if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
973     echo "$ac_t""yes" 1>&6
974     SET_MAKE=
975     else
976     echo "$ac_t""no" 1>&6
977     SET_MAKE="MAKE=${MAKE-make}"
978     fi
979    
980 guppy 1.20 # Extract the first word of "ranlib", so it can be a program name with args.
981     set dummy ranlib; ac_word=$2
982     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
983 guppy 1.46 echo "configure:984: checking for $ac_word" >&5
984 guppy 1.20 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
985     echo $ac_n "(cached) $ac_c" 1>&6
986     else
987     if test -n "$RANLIB"; then
988     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
989     else
990     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
991     ac_dummy="$PATH"
992     for ac_dir in $ac_dummy; do
993     test -z "$ac_dir" && ac_dir=.
994     if test -f $ac_dir/$ac_word; then
995     ac_cv_prog_RANLIB="ranlib"
996     break
997     fi
998     done
999     IFS="$ac_save_ifs"
1000     test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1001     fi
1002     fi
1003     RANLIB="$ac_cv_prog_RANLIB"
1004     if test -n "$RANLIB"; then
1005     echo "$ac_t""$RANLIB" 1>&6
1006     else
1007     echo "$ac_t""no" 1>&6
1008     fi
1009    
1010 arthur2 1.24 ac_aux_dir=
1011     for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1012     if test -f $ac_dir/install-sh; then
1013     ac_aux_dir=$ac_dir
1014     ac_install_sh="$ac_aux_dir/install-sh -c"
1015     break
1016     elif test -f $ac_dir/install.sh; then
1017     ac_aux_dir=$ac_dir
1018     ac_install_sh="$ac_aux_dir/install.sh -c"
1019     break
1020     fi
1021     done
1022     if test -z "$ac_aux_dir"; then
1023     { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1024     fi
1025     ac_config_guess=$ac_aux_dir/config.guess
1026     ac_config_sub=$ac_aux_dir/config.sub
1027     ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1028    
1029     # Find a good install program. We prefer a C program (faster),
1030     # so one script is as good as another. But avoid the broken or
1031     # incompatible versions:
1032     # SysV /etc/install, /usr/sbin/install
1033     # SunOS /usr/etc/install
1034     # IRIX /sbin/install
1035     # AIX /bin/install
1036     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1037     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1038     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1039     # ./install, which can be erroneously created by make from ./install.sh.
1040     echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1041 guppy 1.46 echo "configure:1042: checking for a BSD compatible install" >&5
1042 arthur2 1.24 if test -z "$INSTALL"; then
1043     if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1044     echo $ac_n "(cached) $ac_c" 1>&6
1045     else
1046     IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1047     for ac_dir in $PATH; do
1048     # Account for people who put trailing slashes in PATH elements.
1049     case "$ac_dir/" in
1050     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1051     *)
1052     # OSF1 and SCO ODT 3.0 have their own names for install.
1053     # Don't use installbsd from OSF since it installs stuff as root
1054     # by default.
1055     for ac_prog in ginstall scoinst install; do
1056     if test -f $ac_dir/$ac_prog; then
1057     if test $ac_prog = install &&
1058     grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1059     # AIX install. It has an incompatible calling convention.
1060     :
1061     else
1062     ac_cv_path_install="$ac_dir/$ac_prog -c"
1063     break 2
1064     fi
1065     fi
1066     done
1067     ;;
1068     esac
1069     done
1070     IFS="$ac_save_IFS"
1071    
1072     fi
1073     if test "${ac_cv_path_install+set}" = set; then
1074     INSTALL="$ac_cv_path_install"
1075     else
1076     # As a last resort, use the slow shell script. We don't cache a
1077     # path for INSTALL within a source directory, because that will
1078     # break other packages using the cache if that directory is
1079     # removed, or if the path is relative.
1080     INSTALL="$ac_install_sh"
1081     fi
1082     fi
1083     echo "$ac_t""$INSTALL" 1>&6
1084    
1085     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1086     # It thinks the first close brace ends the variable substitution.
1087     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1088    
1089     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1090    
1091     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1092    
1093     echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1094 guppy 1.46 echo "configure:1095: checking whether ln -s works" >&5
1095 arthur2 1.24 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1096     echo $ac_n "(cached) $ac_c" 1>&6
1097     else
1098     rm -f conftestdata
1099     if ln -s X conftestdata 2>/dev/null
1100     then
1101     rm -f conftestdata
1102     ac_cv_prog_LN_S="ln -s"
1103     else
1104     ac_cv_prog_LN_S=ln
1105     fi
1106     fi
1107     LN_S="$ac_cv_prog_LN_S"
1108     if test "$ac_cv_prog_LN_S" = "ln -s"; then
1109     echo "$ac_t""yes" 1>&6
1110     else
1111     echo "$ac_t""no" 1>&6
1112     fi
1113    
1114 segfault 1.1 # Extract the first word of "strip", so it can be a program name with args.
1115     set dummy strip; ac_word=$2
1116     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1117 guppy 1.46 echo "configure:1118: checking for $ac_word" >&5
1118 segfault 1.1 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1119     echo $ac_n "(cached) $ac_c" 1>&6
1120     else
1121     if test -n "$STRIP"; then
1122     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1123     else
1124     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1125     ac_dummy="$PATH"
1126     for ac_dir in $ac_dummy; do
1127     test -z "$ac_dir" && ac_dir=.
1128     if test -f $ac_dir/$ac_word; then
1129     ac_cv_prog_STRIP="strip"
1130     break
1131     fi
1132     done
1133     IFS="$ac_save_ifs"
1134     fi
1135     fi
1136     STRIP="$ac_cv_prog_STRIP"
1137     if test -n "$STRIP"; then
1138     echo "$ac_t""$STRIP" 1>&6
1139     else
1140     echo "$ac_t""no" 1>&6
1141     fi
1142    
1143 guppy 1.43 if test "x${STRIP}" = "x"
1144     then
1145     STRIP=touch
1146 segfault 1.1 fi
1147    
1148 guppy 1.42 # awk is needed for Tcl library and header checks, and eggdrop version subst
1149 guppy 1.50 for ac_prog in gawk mawk nawk awk
1150 guppy 1.21 do
1151     # Extract the first word of "$ac_prog", so it can be a program name with args.
1152     set dummy $ac_prog; ac_word=$2
1153     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1154 guppy 1.46 echo "configure:1155: checking for $ac_word" >&5
1155 guppy 1.21 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1156     echo $ac_n "(cached) $ac_c" 1>&6
1157     else
1158     if test -n "$AWK"; then
1159     ac_cv_prog_AWK="$AWK" # Let the user override the test.
1160     else
1161     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1162     ac_dummy="$PATH"
1163     for ac_dir in $ac_dummy; do
1164     test -z "$ac_dir" && ac_dir=.
1165     if test -f $ac_dir/$ac_word; then
1166     ac_cv_prog_AWK="$ac_prog"
1167     break
1168     fi
1169     done
1170     IFS="$ac_save_ifs"
1171     fi
1172     fi
1173     AWK="$ac_cv_prog_AWK"
1174     if test -n "$AWK"; then
1175     echo "$ac_t""$AWK" 1>&6
1176     else
1177     echo "$ac_t""no" 1>&6
1178     fi
1179    
1180     test -n "$AWK" && break
1181     done
1182    
1183     if test "x${AWK}" = "x"
1184     then
1185 arthur2 1.23 cat << 'EOF' >&2
1186     configure: error:
1187    
1188     This system seems to lack a working 'awk' command.
1189     A working 'awk' command is required to compile eggdrop.
1190    
1191     EOF
1192     exit 1
1193 guppy 1.21 fi
1194    
1195 guppy 1.42 # basename is needed for Tcl library and header checks
1196 guppy 1.20 # Extract the first word of "basename", so it can be a program name with args.
1197     set dummy basename; ac_word=$2
1198     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1199 guppy 1.46 echo "configure:1200: checking for $ac_word" >&5
1200 guppy 1.20 if eval "test \"`echo '$''{'ac_cv_prog_BASENAME'+set}'`\" = set"; then
1201     echo $ac_n "(cached) $ac_c" 1>&6
1202     else
1203     if test -n "$BASENAME"; then
1204     ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
1205     else
1206     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1207     ac_dummy="$PATH"
1208     for ac_dir in $ac_dummy; do
1209     test -z "$ac_dir" && ac_dir=.
1210     if test -f $ac_dir/$ac_word; then
1211     ac_cv_prog_BASENAME="basename"
1212     break
1213     fi
1214     done
1215     IFS="$ac_save_ifs"
1216     fi
1217     fi
1218     BASENAME="$ac_cv_prog_BASENAME"
1219     if test -n "$BASENAME"; then
1220     echo "$ac_t""$BASENAME" 1>&6
1221     else
1222     echo "$ac_t""no" 1>&6
1223     fi
1224 segfault 1.1
1225 guppy 1.21 if test "x${BASENAME}" = "x"
1226     then
1227 arthur2 1.23 cat << 'EOF' >&2
1228     configure: error:
1229    
1230     This system seems to lack a working 'basename' command.
1231     A working 'basename' command is required to compile eggdrop.
1232    
1233     EOF
1234     exit 1
1235 guppy 1.21 fi
1236    
1237 guppy 1.43 # Extract the first word of "uname", so it can be a program name with args.
1238     set dummy uname; ac_word=$2
1239     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1240 guppy 1.46 echo "configure:1241: checking for $ac_word" >&5
1241 guppy 1.43 if eval "test \"`echo '$''{'ac_cv_prog_UNAME'+set}'`\" = set"; then
1242     echo $ac_n "(cached) $ac_c" 1>&6
1243     else
1244     if test -n "$UNAME"; then
1245     ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
1246     else
1247     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1248     ac_dummy="$PATH"
1249     for ac_dir in $ac_dummy; do
1250     test -z "$ac_dir" && ac_dir=.
1251     if test -f $ac_dir/$ac_word; then
1252     ac_cv_prog_UNAME="uname"
1253     break
1254     fi
1255     done
1256     IFS="$ac_save_ifs"
1257     fi
1258     fi
1259     UNAME="$ac_cv_prog_UNAME"
1260     if test -n "$UNAME"; then
1261     echo "$ac_t""$UNAME" 1>&6
1262     else
1263     echo "$ac_t""no" 1>&6
1264     fi
1265    
1266 arthur2 1.24
1267 guppy 1.42 # Test the os and set the module linking settings
1268 arthur2 1.24 LINUX=no
1269 segfault 1.1 IRIX=no
1270 arthur2 1.24 SUNOS=no
1271     HPUX=no
1272     MOD_CC="${CC}"
1273     MOD_LD="${CC}"
1274     MOD_STRIP="${STRIP}"
1275 segfault 1.1 SHLIB_CC="${CC}"
1276     SHLIB_LD="${CC}"
1277     SHLIB_STRIP="${STRIP}"
1278 arthur2 1.24 NEED_DL=1
1279     DEFAULT_MAKE=eggdrop
1280 guppy 1.42
1281 segfault 1.1 echo $ac_n "checking your OS""... $ac_c" 1>&6
1282 guppy 1.46 echo "configure:1283: checking your OS" >&5
1283 guppy 1.42 if eval "test \"`echo '$''{'egg_cv_var_system'+set}'`\" = set"
1284     then
1285     echo $ac_n "(cached) $ac_c" 1>&6
1286     else
1287     eval "egg_cv_var_system=`${UNAME}`"
1288     fi
1289    
1290     case "$egg_cv_var_system" in
1291 segfault 1.1 BSD/OS)
1292 guppy 1.52 bsd_version=`${UNAME} -r | cut -d . -f 1`
1293     case "$bsd_version" in
1294     2)
1295     echo "$ac_t""BSD/OS 2 statically linked modules are the only choice" 1>&6
1296 arthur2 1.24 NEED_DL=0
1297 segfault 1.1 DEFAULT_MAKE=static
1298 guppy 1.52 ;;
1299     3)
1300     echo "$ac_t""BSD/OS 3 stuck with an old OS ..." 1>&6
1301 arthur2 1.24 MOD_CC=shlicc
1302     MOD_LD=shlicc
1303     MOD_STRIP="${STRIP} -d"
1304 segfault 1.1 SHLIB_LD="shlicc -r"
1305 arthur2 1.23 SHLIB_STRIP=touch
1306 segfault 1.1 cat >> confdefs.h <<\EOF
1307     #define MODULES_OK 1
1308     EOF
1309 guppy 1.52 ;;
1310     *)
1311     echo "$ac_t""BSD/OS 4+ Eat your heart out Linux!" 1>&6
1312     CFLAGS="$CFLAGS -Wall"
1313     MOD_LD="${CC} "
1314     MOD_STRIP="${STRIP} -d"
1315     SHLIB_LD="${CC} -shared -nostartfiles"
1316     cat >> confdefs.h <<\EOF
1317     #define MODULES_OK 1
1318     EOF
1319     ;;
1320     esac
1321 segfault 1.1 ;;
1322 guppy 1.27 CYGWIN*)
1323     echo "$ac_t""Cygwin" 1>&6
1324     NEED_DL=0
1325     DEFAULT_MAKE=static
1326     ;;
1327     HP-UX)
1328     echo "$ac_t""HP-UX, just shoot yourself now" 1>&6
1329     HPUX=yes
1330 guppy 1.54 MOD_LD="gcc -fPIC -shared"
1331 guppy 1.27 SHLIB_CC="gcc -fPIC"
1332     SHLIB_LD="ld -b"
1333     NEED_DL=0
1334 segfault 1.1 cat >> confdefs.h <<\EOF
1335     #define MODULES_OK 1
1336     EOF
1337 guppy 1.27 cat >> confdefs.h <<\EOF
1338     #define HPUX_HACKS 1
1339     EOF
1340     if test "x`${UNAME} -r | cut -d . -f 2`" = "x10"
1341 segfault 1.1 then
1342 guppy 1.42 cat >> confdefs.h <<\EOF
1343 guppy 1.27 #define HPUX10_HACKS 1
1344     EOF
1345 segfault 1.1 fi
1346 guppy 1.27 ;;
1347     IRIX)
1348     echo "$ac_t""you are cursed with IRIX" 1>&6
1349     IRIX=yes
1350     SHLIB_STRIP=touch
1351     NEED_DL=0
1352     DEFAULT_MAKE=static
1353     ;;
1354     IRIX64)
1355     echo "$ac_t""IRIX64" 1>&6
1356 guppy 1.31 IRIX=yes
1357     SHLIB_STRIP=strip
1358 guppy 1.27 NEED_DL=0
1359     DEFAULT_MAKE=static
1360     ;;
1361 guppy 1.50 Ultrix)
1362     echo "$ac_t""Ultrix" 1>&6
1363     NEED_DL=0
1364     SHLIB_STRIP=touch
1365     DEFUALT_MAKE=static
1366 guppy 1.57 SHELL=/bin/sh5
1367 guppy 1.50 ;;
1368     BeOS)
1369     echo "$ac_t""BeOS" 1>&6
1370     NEED_DL=0
1371     SHLIB_STRIP=strip
1372     DEFUALT_MAKE=static
1373     ;;
1374 guppy 1.27 Linux)
1375     echo "$ac_t""Linux! The choice of the GNU generation" 1>&6
1376     LINUX=yes
1377     CFLAGS="$CFLAGS -Wall"
1378     MOD_LD="${CC}"
1379     SHLIB_LD="${CC} -shared -nostartfiles"
1380 segfault 1.1 cat >> confdefs.h <<\EOF
1381     #define MODULES_OK 1
1382     EOF
1383     ;;
1384 guppy 1.27 Lynx)
1385     SHLIB_STRIP=touch
1386     echo "$ac_t""Lynx OS" 1>&6
1387     ;;
1388 segfault 1.1 OSF1)
1389     echo "$ac_t""OSF..." 1>&6
1390 guppy 1.20 case `${UNAME} -r | cut -d . -f 1` in
1391 segfault 1.1 V*)
1392 guppy 1.42 echo "$ac_t"" Digital OSF" 1>&6
1393     if test "x$AWK" = "xgawk"
1394     then
1395     AWK=awk
1396     fi
1397     MOD_CC=cc
1398     MOD_LD=cc
1399     SHLIB_CC=cc
1400 guppy 1.55 SHLIB_LD="ld -shared -expect_unresolved \"'*'\""
1401 guppy 1.42 SHLIB_STRIP=touch
1402     cat >> confdefs.h <<\EOF
1403 segfault 1.1 #define MODULES_OK 1
1404     EOF
1405 guppy 1.42 ;;
1406 segfault 1.1 1.0|1.1|1.2)
1407 guppy 1.42 echo "$ac_t"" pre 1.3" 1>&6
1408     SHLIB_LD="ld -R -export :"
1409     cat >> confdefs.h <<\EOF
1410 arthur2 1.24 #define MODULES_OK 1
1411 segfault 1.1 EOF
1412 guppy 1.42 cat >> confdefs.h <<\EOF
1413 arthur2 1.24 #define OSF1_HACKS 1
1414 segfault 1.1 EOF
1415 guppy 1.42 ;;
1416 segfault 1.1 1.*)
1417 guppy 1.42 echo "$ac_t"" 1.3+" 1>&6
1418     SHLIB_CC="${CC} -fpic"
1419     SHLIB_LD="ld -shared"
1420     cat >> confdefs.h <<\EOF
1421 arthur2 1.24 #define MODULES_OK 1
1422 segfault 1.1 EOF
1423 guppy 1.42 cat >> confdefs.h <<\EOF
1424 arthur2 1.24 #define OSF1_HACKS 1
1425 segfault 1.1 EOF
1426 guppy 1.42 ;;
1427 segfault 1.1 *)
1428 guppy 1.42 echo "$ac_t"" Some other weird OSF! No modules for you..." 1>&6
1429     NEED_DL=0
1430     DEFAULT_MAKE=static
1431     ;;
1432 segfault 1.1 esac
1433     cat >> confdefs.h <<\EOF
1434     #define STOP_UAC 1
1435     EOF
1436     ;;
1437 guppy 1.27 SunOS)
1438     if test "x`${UNAME} -r | cut -d . -f 1`" = "x5"
1439     then
1440     echo "$ac_t""Solaris -- yay" 1>&6
1441     SHLIB_LD="/usr/ccs/bin/ld -G -z text"
1442     else
1443     echo "$ac_t""SunOS -- sigh" 1>&6
1444     SUNOS=yes
1445     SHLIB_LD=ld
1446     SHLIB_STRIP=touch
1447 guppy 1.30 cat >> confdefs.h <<\EOF
1448     #define DLOPEN_1 1
1449     EOF
1450 guppy 1.27 fi
1451     MOD_CC="${CC} -fPIC"
1452     SHLIB_CC="${CC} -fPIC"
1453 arthur2 1.24 cat >> confdefs.h <<\EOF
1454     #define MODULES_OK 1
1455 segfault 1.1 EOF
1456 guppy 1.27 ;;
1457     *BSD)
1458     echo "$ac_t""FreeBSD/NetBSD/OpenBSD - choose your poison" 1>&6
1459     SHLIB_CC="${CC} -fpic"
1460     SHLIB_LD="ld -Bshareable -x"
1461 segfault 1.1 cat >> confdefs.h <<\EOF
1462 guppy 1.27 #define MODULES_OK 1
1463 segfault 1.1 EOF
1464     ;;
1465     *)
1466 guppy 1.15 if test -r "/mach"
1467 segfault 1.1 then
1468 guppy 1.11 echo "$ac_t""NeXT...We are borg, you will be assimilated" 1>&6
1469     echo "$ac_t""break out the static modules, it's all you'll ever get :P" 1>&6
1470 segfault 1.1 echo "$ac_t""Hiya DK :P" 1>&6
1471 guppy 1.31 NEED_DL=0
1472     DEFAULT_MAKE=static
1473 segfault 1.1 cat >> confdefs.h <<\EOF
1474     #define BORGCUBES 1
1475     EOF
1476     else
1477 guppy 1.31 if test -r "/cmds"
1478     then
1479 guppy 1.42 echo "$ac_t""QNX" 1>&6
1480     SHLIB_STRIP=touch
1481     NEED_DL=0
1482     DEFAULT_MAKE=static
1483 guppy 1.31 else
1484 guppy 1.42 echo "$ac_t""Something unknown!" 1>&6
1485     echo "$ac_t""If you get dynamic modules to work, be sure to let the devel team know HOW :)" 1>&6
1486     NEED_DL=0
1487     DEFAULT_MAKE=static
1488 guppy 1.31 fi
1489 segfault 1.1 fi
1490     ;;
1491     esac
1492    
1493 guppy 1.42
1494     # Checks for system libraries
1495 arthur2 1.19 if test "$IRIX" = "yes"
1496 segfault 1.1 then
1497 arthur2 1.24 echo "configure: warning: Skipping library tests because they CONFUSE Irix." 1>&2
1498 segfault 1.1 else
1499     echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1500 guppy 1.57 echo "configure:1501: checking for socket in -lsocket" >&5
1501 segfault 1.1 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1502     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1503     echo $ac_n "(cached) $ac_c" 1>&6
1504     else
1505     ac_save_LIBS="$LIBS"
1506     LIBS="-lsocket $LIBS"
1507     cat > conftest.$ac_ext <<EOF
1508 guppy 1.57 #line 1509 "configure"
1509 segfault 1.1 #include "confdefs.h"
1510     /* Override any gcc2 internal prototype to avoid an error. */
1511     /* We use char because int might match the return type of a gcc2
1512     builtin and then its argument prototype would still apply. */
1513     char socket();
1514    
1515     int main() {
1516     socket()
1517     ; return 0; }
1518     EOF
1519 guppy 1.57 if { (eval echo configure:1520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1520 segfault 1.1 rm -rf conftest*
1521     eval "ac_cv_lib_$ac_lib_var=yes"
1522     else
1523     echo "configure: failed program was:" >&5
1524     cat conftest.$ac_ext >&5
1525     rm -rf conftest*
1526     eval "ac_cv_lib_$ac_lib_var=no"
1527     fi
1528     rm -f conftest*
1529     LIBS="$ac_save_LIBS"
1530    
1531     fi
1532     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1533     echo "$ac_t""yes" 1>&6
1534     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1535     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1536     cat >> confdefs.h <<EOF
1537     #define $ac_tr_lib 1
1538     EOF
1539    
1540     LIBS="-lsocket $LIBS"
1541    
1542     else
1543     echo "$ac_t""no" 1>&6
1544     fi
1545    
1546     echo $ac_n "checking for connect in -lnsl""... $ac_c" 1>&6
1547 guppy 1.57 echo "configure:1548: checking for connect in -lnsl" >&5
1548 segfault 1.1 ac_lib_var=`echo nsl'_'connect | sed 'y%./+-%__p_%'`
1549     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1550     echo $ac_n "(cached) $ac_c" 1>&6
1551     else
1552     ac_save_LIBS="$LIBS"
1553     LIBS="-lnsl $LIBS"
1554     cat > conftest.$ac_ext <<EOF
1555 guppy 1.57 #line 1556 "configure"
1556 segfault 1.1 #include "confdefs.h"
1557     /* Override any gcc2 internal prototype to avoid an error. */
1558     /* We use char because int might match the return type of a gcc2
1559     builtin and then its argument prototype would still apply. */
1560     char connect();
1561    
1562     int main() {
1563     connect()
1564     ; return 0; }
1565     EOF
1566 guppy 1.57 if { (eval echo configure:1567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1567 segfault 1.1 rm -rf conftest*
1568     eval "ac_cv_lib_$ac_lib_var=yes"
1569     else
1570     echo "configure: failed program was:" >&5
1571     cat conftest.$ac_ext >&5
1572     rm -rf conftest*
1573     eval "ac_cv_lib_$ac_lib_var=no"
1574     fi
1575     rm -f conftest*
1576     LIBS="$ac_save_LIBS"
1577    
1578     fi
1579     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1580     echo "$ac_t""yes" 1>&6
1581     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1582     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1583     cat >> confdefs.h <<EOF
1584     #define $ac_tr_lib 1
1585     EOF
1586    
1587     LIBS="-lnsl $LIBS"
1588    
1589     else
1590     echo "$ac_t""no" 1>&6
1591     fi
1592    
1593     echo $ac_n "checking for gethostbyname in -ldns""... $ac_c" 1>&6
1594 guppy 1.57 echo "configure:1595: checking for gethostbyname in -ldns" >&5
1595 segfault 1.1 ac_lib_var=`echo dns'_'gethostbyname | sed 'y%./+-%__p_%'`
1596     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1597     echo $ac_n "(cached) $ac_c" 1>&6
1598     else
1599     ac_save_LIBS="$LIBS"
1600     LIBS="-ldns $LIBS"
1601     cat > conftest.$ac_ext <<EOF
1602 guppy 1.57 #line 1603 "configure"
1603 segfault 1.1 #include "confdefs.h"
1604     /* Override any gcc2 internal prototype to avoid an error. */
1605     /* We use char because int might match the return type of a gcc2
1606     builtin and then its argument prototype would still apply. */
1607     char gethostbyname();
1608    
1609     int main() {
1610     gethostbyname()
1611     ; return 0; }
1612     EOF
1613 guppy 1.57 if { (eval echo configure:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1614 segfault 1.1 rm -rf conftest*
1615     eval "ac_cv_lib_$ac_lib_var=yes"
1616     else
1617     echo "configure: failed program was:" >&5
1618     cat conftest.$ac_ext >&5
1619     rm -rf conftest*
1620     eval "ac_cv_lib_$ac_lib_var=no"
1621     fi
1622     rm -f conftest*
1623     LIBS="$ac_save_LIBS"
1624    
1625     fi
1626     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1627     echo "$ac_t""yes" 1>&6
1628     ac_tr_lib=HAVE_LIB`echo dns | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1629     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1630     cat >> confdefs.h <<EOF
1631     #define $ac_tr_lib 1
1632     EOF
1633    
1634     LIBS="-ldns $LIBS"
1635    
1636     else
1637     echo "$ac_t""no" 1>&6
1638     fi
1639    
1640     echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1641 guppy 1.57 echo "configure:1642: checking for dlopen in -ldl" >&5
1642 segfault 1.1 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1643     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1644     echo $ac_n "(cached) $ac_c" 1>&6
1645     else
1646     ac_save_LIBS="$LIBS"
1647     LIBS="-ldl $LIBS"
1648     cat > conftest.$ac_ext <<EOF
1649 guppy 1.57 #line 1650 "configure"
1650 segfault 1.1 #include "confdefs.h"
1651     /* Override any gcc2 internal prototype to avoid an error. */
1652     /* We use char because int might match the return type of a gcc2
1653     builtin and then its argument prototype would still apply. */
1654     char dlopen();
1655    
1656     int main() {
1657     dlopen()
1658     ; return 0; }
1659     EOF
1660 guppy 1.57 if { (eval echo configure:1661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1661 segfault 1.1 rm -rf conftest*
1662     eval "ac_cv_lib_$ac_lib_var=yes"
1663     else
1664     echo "configure: failed program was:" >&5
1665     cat conftest.$ac_ext >&5
1666     rm -rf conftest*
1667     eval "ac_cv_lib_$ac_lib_var=no"
1668     fi
1669     rm -f conftest*
1670     LIBS="$ac_save_LIBS"
1671    
1672     fi
1673     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1674     echo "$ac_t""yes" 1>&6
1675     ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1676     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1677     cat >> confdefs.h <<EOF
1678     #define $ac_tr_lib 1
1679     EOF
1680    
1681     LIBS="-ldl $LIBS"
1682    
1683     else
1684     echo "$ac_t""no" 1>&6
1685     fi
1686    
1687 guppy 1.57 echo $ac_n "checking for tan in -lm""... $ac_c" 1>&6
1688     echo "configure:1689: checking for tan in -lm" >&5
1689     ac_lib_var=`echo m'_'tan | sed 'y%./+-%__p_%'`
1690     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1691     echo $ac_n "(cached) $ac_c" 1>&6
1692     else
1693     ac_save_LIBS="$LIBS"
1694     LIBS="-lm $LIBS"
1695     cat > conftest.$ac_ext <<EOF
1696     #line 1697 "configure"
1697     #include "confdefs.h"
1698     /* Override any gcc2 internal prototype to avoid an error. */
1699     /* We use char because int might match the return type of a gcc2
1700     builtin and then its argument prototype would still apply. */
1701     char tan();
1702    
1703     int main() {
1704     tan()
1705     ; return 0; }
1706     EOF
1707     if { (eval echo configure:1708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1708     rm -rf conftest*
1709     eval "ac_cv_lib_$ac_lib_var=yes"
1710     else
1711     echo "configure: failed program was:" >&5
1712     cat conftest.$ac_ext >&5
1713     rm -rf conftest*
1714     eval "ac_cv_lib_$ac_lib_var=no"
1715     fi
1716     rm -f conftest*
1717     LIBS="$ac_save_LIBS"
1718    
1719     fi
1720     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1721     echo "$ac_t""yes" 1>&6
1722     EGG_MATH_LIB="-lm"
1723     else
1724     echo "$ac_t""no" 1>&6
1725     fi
1726    
1727 guppy 1.42 # This is needed for Tcl libraries compiled with thread support
1728 guppy 1.38 echo $ac_n "checking for pthread_mutex_init in -lpthread""... $ac_c" 1>&6
1729 guppy 1.57 echo "configure:1730: checking for pthread_mutex_init in -lpthread" >&5
1730 guppy 1.38 ac_lib_var=`echo pthread'_'pthread_mutex_init | sed 'y%./+-%__p_%'`
1731 guppy 1.32 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1732     echo $ac_n "(cached) $ac_c" 1>&6
1733     else
1734     ac_save_LIBS="$LIBS"
1735     LIBS="-lpthread $LIBS"
1736     cat > conftest.$ac_ext <<EOF
1737 guppy 1.57 #line 1738 "configure"
1738 guppy 1.32 #include "confdefs.h"
1739     /* Override any gcc2 internal prototype to avoid an error. */
1740     /* We use char because int might match the return type of a gcc2
1741     builtin and then its argument prototype would still apply. */
1742 guppy 1.38 char pthread_mutex_init();
1743 guppy 1.32
1744     int main() {
1745 guppy 1.38 pthread_mutex_init()
1746 guppy 1.32 ; return 0; }
1747     EOF
1748 guppy 1.57 if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1749 guppy 1.32 rm -rf conftest*
1750     eval "ac_cv_lib_$ac_lib_var=yes"
1751     else
1752     echo "configure: failed program was:" >&5
1753     cat conftest.$ac_ext >&5
1754     rm -rf conftest*
1755     eval "ac_cv_lib_$ac_lib_var=no"
1756     fi
1757     rm -f conftest*
1758     LIBS="$ac_save_LIBS"
1759    
1760     fi
1761     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1762     echo "$ac_t""yes" 1>&6
1763 guppy 1.38 ac_cv_lib_pthread_pthread_mutex_init=yes
1764 guppy 1.32 else
1765     echo "$ac_t""no" 1>&6
1766 guppy 1.38 ac_cv_lib_pthread_pthread_mutex_init=no
1767 guppy 1.32 fi
1768    
1769 arthur2 1.24 if test "$SUNOS" = "yes"
1770 segfault 1.1 then
1771 guppy 1.42 # For suns without yp or something like that
1772     echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
1773 guppy 1.57 echo "configure:1774: checking for main in -ldl" >&5
1774 segfault 1.1 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
1775     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1776     echo $ac_n "(cached) $ac_c" 1>&6
1777     else
1778     ac_save_LIBS="$LIBS"
1779     LIBS="-ldl $LIBS"
1780     cat > conftest.$ac_ext <<EOF
1781 guppy 1.57 #line 1782 "configure"
1782 segfault 1.1 #include "confdefs.h"
1783    
1784     int main() {
1785     main()
1786     ; return 0; }
1787     EOF
1788 guppy 1.57 if { (eval echo configure:1789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1789 segfault 1.1 rm -rf conftest*
1790     eval "ac_cv_lib_$ac_lib_var=yes"
1791     else
1792     echo "configure: failed program was:" >&5
1793     cat conftest.$ac_ext >&5
1794     rm -rf conftest*
1795     eval "ac_cv_lib_$ac_lib_var=no"
1796     fi
1797     rm -f conftest*
1798     LIBS="$ac_save_LIBS"
1799    
1800     fi
1801     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1802     echo "$ac_t""yes" 1>&6
1803     ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1804     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1805     cat >> confdefs.h <<EOF
1806     #define $ac_tr_lib 1
1807     EOF
1808    
1809     LIBS="-ldl $LIBS"
1810    
1811     else
1812     echo "$ac_t""no" 1>&6
1813     fi
1814    
1815 arthur2 1.24 else
1816     if test "$HPUX" = "yes"
1817     then
1818     echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
1819 guppy 1.57 echo "configure:1820: checking for shl_load in -ldld" >&5
1820 arthur2 1.24 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
1821     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1822 segfault 1.1 echo $ac_n "(cached) $ac_c" 1>&6
1823     else
1824 arthur2 1.24 ac_save_LIBS="$LIBS"
1825     LIBS="-ldld $LIBS"
1826 segfault 1.1 cat > conftest.$ac_ext <<EOF
1827 guppy 1.57 #line 1828 "configure"
1828 segfault 1.1 #include "confdefs.h"
1829 arthur2 1.24 /* Override any gcc2 internal prototype to avoid an error. */
1830     /* We use char because int might match the return type of a gcc2
1831     builtin and then its argument prototype would still apply. */
1832     char shl_load();
1833    
1834 segfault 1.1 int main() {
1835 arthur2 1.24 shl_load()
1836 segfault 1.1 ; return 0; }
1837     EOF
1838 guppy 1.57 if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1839 segfault 1.1 rm -rf conftest*
1840 arthur2 1.24 eval "ac_cv_lib_$ac_lib_var=yes"
1841     else
1842     echo "configure: failed program was:" >&5
1843     cat conftest.$ac_ext >&5
1844 segfault 1.1 rm -rf conftest*
1845 arthur2 1.24 eval "ac_cv_lib_$ac_lib_var=no"
1846 segfault 1.1 fi
1847     rm -f conftest*
1848 arthur2 1.24 LIBS="$ac_save_LIBS"
1849 segfault 1.1
1850     fi
1851 arthur2 1.24 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1852     echo "$ac_t""yes" 1>&6
1853     ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1854     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1855     cat >> confdefs.h <<EOF
1856     #define $ac_tr_lib 1
1857 segfault 1.1 EOF
1858    
1859 arthur2 1.24 LIBS="-ldld $LIBS"
1860 segfault 1.1
1861     else
1862 arthur2 1.24 echo "$ac_t""no" 1>&6
1863 segfault 1.1 fi
1864    
1865 arthur2 1.24 fi
1866     fi
1867 segfault 1.1 fi
1868    
1869 guppy 1.42
1870     # Checks for header files
1871 segfault 1.1 ac_header_dirent=no
1872     for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1873     do
1874     ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1875     echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1876 guppy 1.57 echo "configure:1877: checking for $ac_hdr that defines DIR" >&5
1877 segfault 1.1 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1878     echo $ac_n "(cached) $ac_c" 1>&6
1879     else
1880     cat > conftest.$ac_ext <<EOF
1881 guppy 1.57 #line 1882 "configure"
1882 segfault 1.1 #include "confdefs.h"
1883     #include <sys/types.h>
1884     #include <$ac_hdr>
1885     int main() {
1886     DIR *dirp = 0;
1887     ; return 0; }
1888     EOF
1889 guppy 1.57 if { (eval echo configure:1890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1890 segfault 1.1 rm -rf conftest*
1891     eval "ac_cv_header_dirent_$ac_safe=yes"
1892     else
1893     echo "configure: failed program was:" >&5
1894     cat conftest.$ac_ext >&5
1895     rm -rf conftest*
1896     eval "ac_cv_header_dirent_$ac_safe=no"
1897     fi
1898     rm -f conftest*
1899     fi
1900     if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1901     echo "$ac_t""yes" 1>&6
1902     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1903     cat >> confdefs.h <<EOF
1904     #define $ac_tr_hdr 1
1905     EOF
1906     ac_header_dirent=$ac_hdr; break
1907     else
1908     echo "$ac_t""no" 1>&6
1909     fi
1910     done
1911     # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1912     if test $ac_header_dirent = dirent.h; then
1913     echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1914 guppy 1.57 echo "configure:1915: checking for opendir in -ldir" >&5
1915 segfault 1.1 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1916     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1917     echo $ac_n "(cached) $ac_c" 1>&6
1918     else
1919     ac_save_LIBS="$LIBS"
1920     LIBS="-ldir $LIBS"
1921     cat > conftest.$ac_ext <<EOF
1922 guppy 1.57 #line 1923 "configure"
1923 segfault 1.1 #include "confdefs.h"
1924     /* Override any gcc2 internal prototype to avoid an error. */
1925     /* We use char because int might match the return type of a gcc2
1926     builtin and then its argument prototype would still apply. */
1927     char opendir();
1928    
1929     int main() {
1930     opendir()
1931     ; return 0; }
1932     EOF
1933 guppy 1.57 if { (eval echo configure:1934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1934 segfault 1.1 rm -rf conftest*
1935     eval "ac_cv_lib_$ac_lib_var=yes"
1936     else
1937     echo "configure: failed program was:" >&5
1938     cat conftest.$ac_ext >&5
1939     rm -rf conftest*
1940     eval "ac_cv_lib_$ac_lib_var=no"
1941     fi
1942     rm -f conftest*
1943     LIBS="$ac_save_LIBS"
1944    
1945     fi
1946     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1947     echo "$ac_t""yes" 1>&6
1948     LIBS="$LIBS -ldir"
1949     else
1950     echo "$ac_t""no" 1>&6
1951     fi
1952    
1953     else
1954     echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1955 guppy 1.57 echo "configure:1956: checking for opendir in -lx" >&5
1956 segfault 1.1 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1957     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1958     echo $ac_n "(cached) $ac_c" 1>&6
1959     else
1960     ac_save_LIBS="$LIBS"
1961     LIBS="-lx $LIBS"
1962     cat > conftest.$ac_ext <<EOF
1963 guppy 1.57 #line 1964 "configure"
1964 segfault 1.1 #include "confdefs.h"
1965     /* Override any gcc2 internal prototype to avoid an error. */
1966     /* We use char because int might match the return type of a gcc2
1967     builtin and then its argument prototype would still apply. */
1968     char opendir();
1969    
1970     int main() {
1971     opendir()
1972     ; return 0; }
1973     EOF
1974 guppy 1.57 if { (eval echo configure:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1975 segfault 1.1 rm -rf conftest*
1976     eval "ac_cv_lib_$ac_lib_var=yes"
1977     else
1978     echo "configure: failed program was:" >&5
1979     cat conftest.$ac_ext >&5
1980     rm -rf conftest*
1981     eval "ac_cv_lib_$ac_lib_var=no"
1982     fi
1983     rm -f conftest*
1984     LIBS="$ac_save_LIBS"
1985    
1986     fi
1987     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1988     echo "$ac_t""yes" 1>&6
1989     LIBS="$LIBS -lx"
1990     else
1991     echo "$ac_t""no" 1>&6
1992     fi
1993    
1994     fi
1995    
1996     echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1997 guppy 1.57 echo "configure:1998: checking for sys/wait.h that is POSIX.1 compatible" >&5
1998 segfault 1.1 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1999     echo $ac_n "(cached) $ac_c" 1>&6
2000     else
2001     cat > conftest.$ac_ext <<EOF
2002 guppy 1.57 #line 2003 "configure"
2003 segfault 1.1 #include "confdefs.h"
2004     #include <sys/types.h>
2005     #include <sys/wait.h>
2006     #ifndef WEXITSTATUS
2007     #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2008     #endif
2009     #ifndef WIFEXITED
2010     #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2011     #endif
2012     int main() {
2013     int s;
2014     wait (&s);
2015     s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2016     ; return 0; }
2017     EOF
2018 guppy 1.57 if { (eval echo configure:2019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2019 segfault 1.1 rm -rf conftest*
2020     ac_cv_header_sys_wait_h=yes
2021     else
2022     echo "configure: failed program was:" >&5
2023     cat conftest.$ac_ext >&5
2024     rm -rf conftest*
2025     ac_cv_header_sys_wait_h=no
2026     fi
2027     rm -f conftest*
2028     fi
2029    
2030     echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2031     if test $ac_cv_header_sys_wait_h = yes; then
2032     cat >> confdefs.h <<\EOF
2033     #define HAVE_SYS_WAIT_H 1
2034     EOF
2035    
2036     fi
2037    
2038 arthur2 1.24 for ac_hdr in sys/time.h
2039 segfault 1.1 do
2040     ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2041     echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2042 guppy 1.57 echo "configure:2043: checking for $ac_hdr" >&5
2043 segfault 1.1 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2044     echo $ac_n "(cached) $ac_c" 1>&6
2045     else
2046     cat > conftest.$ac_ext <<EOF
2047 guppy 1.57 #line 2048 "configure"
2048 segfault 1.1 #include "confdefs.h"
2049     #include <$ac_hdr>
2050     EOF
2051     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2052 guppy 1.57 { (eval echo configure:2053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2053 arthur2 1.24 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2054     if test -z "$ac_err"; then
2055     rm -rf conftest*
2056     eval "ac_cv_header_$ac_safe=yes"
2057     else
2058     echo "$ac_err" >&5
2059     echo "configure: failed program was:" >&5
2060     cat conftest.$ac_ext >&5
2061     rm -rf conftest*
2062     eval "ac_cv_header_$ac_safe=no"
2063     fi
2064     rm -f conftest*
2065     fi
2066     if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2067     echo "$ac_t""yes" 1>&6
2068     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2069     cat >> confdefs.h <<EOF
2070     #define $ac_tr_hdr 1
2071     EOF
2072    
2073     else
2074     echo "$ac_t""no" 1>&6
2075     fi
2076     done
2077    
2078     echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2079 guppy 1.57 echo "configure:2080: checking whether time.h and sys/time.h may both be included" >&5
2080 arthur2 1.24 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2081     echo $ac_n "(cached) $ac_c" 1>&6
2082     else
2083     cat > conftest.$ac_ext <<EOF
2084 guppy 1.57 #line 2085 "configure"
2085 arthur2 1.24 #include "confdefs.h"
2086     #include <sys/types.h>
2087     #include <sys/time.h>
2088     #include <time.h>
2089     int main() {
2090     struct tm *tp;
2091     ; return 0; }
2092     EOF
2093 guppy 1.57 if { (eval echo configure:2094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2094 arthur2 1.24 rm -rf conftest*
2095     ac_cv_header_time=yes
2096     else
2097     echo "configure: failed program was:" >&5
2098