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

Contents of /eggdrop1.6/configure

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


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