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

Contents of /eggdrop1.9/configure

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


Revision 1.74 - (show annotations) (download)
Mon Aug 13 21:50:16 2001 UTC (18 years, 2 months ago) by ite
Branch: MAIN
CVS Tags: HEAD
Changes since 1.73: +0 -0 lines
FILE REMOVED
Removed needless config stuff. See previous patch.

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