/[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.27 - (show annotations) (download)
Sun Mar 5 23:22:48 2000 UTC (19 years, 11 months ago) by fabian
Branch: MAIN
Changes since 1.26: +51 -50 lines
configure_fix patch

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