/[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.29 - (show annotations) (download)
Sun Mar 19 23:32:08 2000 UTC (19 years, 11 months ago) by fabian
Branch: MAIN
Changes since 1.28: +121 -108 lines
1.4 resync, Mar20

1 #! /bin/sh
2
3 # From configure.in Revision: 1.23
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:630: 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:660: 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:711: 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:743: 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 754 "configure"
688 #include "confdefs.h"
689
690 main(){return(0);}
691 EOF
692 if { (eval echo configure:759: \"$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:785: 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:790: 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:799: \"$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:818: 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:864: 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 879 "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:885: \"$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 896 "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:902: \"$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 913 "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:919: \"$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:944: checking for AIX" >&5
878 cat > conftest.$ac_ext <<EOF
879 #line 946 "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:968: 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:990: 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 995 "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:1000: \"$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:1040: 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:1069: 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:1108: 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:1161: 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:1184: 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:1221: 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:1266: 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:1307: 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:1349: 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 bsd_version=`${UNAME} -r | cut -d . -f 1`
1293 case "$bsd_version" in
1294 2)
1295 echo "$ac_t""BSD/OS 2! statically linked modules are the only choice" 1>&6
1296 NEED_DL=0
1297 DEFAULT_MAKE=static
1298 ;;
1299 3)
1300 echo "$ac_t""BSD/OS 3! stuck with an old OS ..." 1>&6
1301 MOD_CC=shlicc
1302 MOD_LD=shlicc
1303 MOD_STRIP="${STRIP} -d"
1304 SHLIB_LD="shlicc -r"
1305 SHLIB_STRIP=touch
1306 cat >> confdefs.h <<\EOF
1307 #define MODULES_OK 1
1308 EOF
1309 ;;
1310 *)
1311 echo "$ac_t""BSD/OS 4+! ok I spose" 1>&6
1312 CFLAGS="$CFLAGS -Wall"
1313 MOD_LD="${CC} "
1314 MOD_STRIP="${STRIP} -d"
1315 SHLIB_LD="${CC} -shared -nostartfiles"
1316 cat >> confdefs.h <<\EOF
1317 #define MODULES_OK 1
1318 EOF
1319 ;;
1320 esac
1321 ;;
1322 CYGWIN*)
1323 echo "$ac_t""Cygwin" 1>&6
1324 NEED_DL=0
1325 DEFAULT_MAKE=static
1326 ;;
1327 HP-UX)
1328 echo "$ac_t""HP-UX, just shoot yourself now" 1>&6
1329 HPUX=yes
1330 MOD_LD="gcc -Wl,-E"
1331 SHLIB_CC="gcc -fPIC"
1332 SHLIB_LD="ld -b"
1333 NEED_DL=0
1334 cat >> confdefs.h <<\EOF
1335 #define MODULES_OK 1
1336 EOF
1337 cat >> confdefs.h <<\EOF
1338 #define HPUX_HACKS 1
1339 EOF
1340 if test "x`${UNAME} -r | cut -d . -f 2`" = "x10"
1341 then
1342 cat >> confdefs.h <<\EOF
1343 #define HPUX10_HACKS 1
1344 EOF
1345 fi
1346 ;;
1347 IRIX)
1348 echo "$ac_t""you are cursed with IRIX" 1>&6
1349 IRIX=yes
1350 SHLIB_STRIP=touch
1351 NEED_DL=0
1352 DEFAULT_MAKE=static
1353 ;;
1354 IRIX64)
1355 echo "$ac_t""IRIX64" 1>&6
1356 IRIX=yes
1357 SHLIB_STRIP=strip
1358 NEED_DL=0
1359 DEFAULT_MAKE=static
1360 ;;
1361 Ultrix)
1362 echo "$ac_t""Ultrix" 1>&6
1363 NEED_DL=0
1364 SHLIB_STRIP=touch
1365 DEFUALT_MAKE=static
1366 ;;
1367 BeOS)
1368 echo "$ac_t""BeOS" 1>&6
1369 NEED_DL=0
1370 SHLIB_STRIP=strip
1371 DEFUALT_MAKE=static
1372 ;;
1373 Linux)
1374 echo "$ac_t""Linux! The choice of the GNU generation" 1>&6
1375 LINUX=yes
1376 CFLAGS="$CFLAGS -Wall"
1377 MOD_LD="${CC}"
1378 SHLIB_LD="${CC} -shared -nostartfiles"
1379 cat >> confdefs.h <<\EOF
1380 #define MODULES_OK 1
1381 EOF
1382 ;;
1383 Lynx)
1384 SHLIB_STRIP=touch
1385 echo "$ac_t""Lynx OS" 1>&6
1386 ;;
1387 OSF1)
1388 echo "$ac_t""OSF..." 1>&6
1389 case `${UNAME} -r | cut -d . -f 1` in
1390 V*)
1391 echo "$ac_t"" Digital OSF" 1>&6
1392 if test "x$AWK" = "xgawk"
1393 then
1394 AWK=awk
1395 fi
1396 MOD_CC=cc
1397 MOD_LD=cc
1398 SHLIB_CC=cc
1399 SHLIB_LD="ld -shared -expect_unresolved '*'"
1400 SHLIB_STRIP=touch
1401 cat >> confdefs.h <<\EOF
1402 #define MODULES_OK 1
1403 EOF
1404 ;;
1405 1.0|1.1|1.2)
1406 echo "$ac_t"" pre 1.3" 1>&6
1407 SHLIB_LD="ld -R -export :"
1408 cat >> confdefs.h <<\EOF
1409 #define MODULES_OK 1
1410 EOF
1411 cat >> confdefs.h <<\EOF
1412 #define OSF1_HACKS 1
1413 EOF
1414 ;;
1415 1.*)
1416 echo "$ac_t"" 1.3+" 1>&6
1417 SHLIB_CC="${CC} -fpic"
1418 SHLIB_LD="ld -shared"
1419 cat >> confdefs.h <<\EOF
1420 #define MODULES_OK 1
1421 EOF
1422 cat >> confdefs.h <<\EOF
1423 #define OSF1_HACKS 1
1424 EOF
1425 ;;
1426 *)
1427 echo "$ac_t"" Some other weird OSF! No modules for you..." 1>&6
1428 NEED_DL=0
1429 DEFAULT_MAKE=static
1430 ;;
1431 esac
1432 cat >> confdefs.h <<\EOF
1433 #define STOP_UAC 1
1434 EOF
1435 ;;
1436 SunOS)
1437 if test "x`${UNAME} -r | cut -d . -f 1`" = "x5"
1438 then
1439 echo "$ac_t""Solaris -- yay" 1>&6
1440 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
1441 else
1442 echo "$ac_t""SunOS -- sigh" 1>&6
1443 SUNOS=yes
1444 SHLIB_LD=ld
1445 SHLIB_STRIP=touch
1446 cat >> confdefs.h <<\EOF
1447 #define DLOPEN_1 1
1448 EOF
1449 fi
1450 MOD_CC="${CC} -fPIC"
1451 SHLIB_CC="${CC} -fPIC"
1452 cat >> confdefs.h <<\EOF
1453 #define MODULES_OK 1
1454 EOF
1455 ;;
1456 *BSD)
1457 echo "$ac_t""FreeBSD/NetBSD/OpenBSD - choose your poison" 1>&6
1458 SHLIB_CC="${CC} -fpic"
1459 SHLIB_LD="ld -Bshareable -x"
1460 cat >> confdefs.h <<\EOF
1461 #define MODULES_OK 1
1462 EOF
1463 ;;
1464 *)
1465 if test -r "/mach"
1466 then
1467 echo "$ac_t""NeXT...We are borg, you will be assimilated" 1>&6
1468 echo "$ac_t""break out the static modules, it's all you'll ever get :P" 1>&6
1469 echo "$ac_t""Hiya DK :P" 1>&6
1470 NEED_DL=0
1471 DEFAULT_MAKE=static
1472 cat >> confdefs.h <<\EOF
1473 #define BORGCUBES 1
1474 EOF
1475 else
1476 if test -r "/cmds"
1477 then
1478 echo "$ac_t""QNX" 1>&6
1479 SHLIB_STRIP=touch
1480 NEED_DL=0
1481 DEFAULT_MAKE=static
1482 else
1483 echo "$ac_t""Something unknown!" 1>&6
1484 echo "$ac_t""If you get dynamic modules to work, be sure to let the devel team know HOW :)" 1>&6
1485 NEED_DL=0
1486 DEFAULT_MAKE=static
1487 fi
1488 fi
1489 ;;
1490 esac
1491
1492
1493 # Checks for system libraries
1494 if test "$IRIX" = "yes"
1495 then
1496 echo "configure: warning: Skipping library tests because they CONFUSE Irix." 1>&2
1497 else
1498 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1499 echo "configure:1566: checking for socket in -lsocket" >&5
1500 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1502 echo $ac_n "(cached) $ac_c" 1>&6
1503 else
1504 ac_save_LIBS="$LIBS"
1505 LIBS="-lsocket $LIBS"
1506 cat > conftest.$ac_ext <<EOF
1507 #line 1574 "configure"
1508 #include "confdefs.h"
1509 /* Override any gcc2 internal prototype to avoid an error. */
1510 /* We use char because int might match the return type of a gcc2
1511 builtin and then its argument prototype would still apply. */
1512 char socket();
1513
1514 int main() {
1515 socket()
1516 ; return 0; }
1517 EOF
1518 if { (eval echo configure:1585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1519 rm -rf conftest*
1520 eval "ac_cv_lib_$ac_lib_var=yes"
1521 else
1522 echo "configure: failed program was:" >&5
1523 cat conftest.$ac_ext >&5
1524 rm -rf conftest*
1525 eval "ac_cv_lib_$ac_lib_var=no"
1526 fi
1527 rm -f conftest*
1528 LIBS="$ac_save_LIBS"
1529
1530 fi
1531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1532 echo "$ac_t""yes" 1>&6
1533 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1534 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1535 cat >> confdefs.h <<EOF
1536 #define $ac_tr_lib 1
1537 EOF
1538
1539 LIBS="-lsocket $LIBS"
1540
1541 else
1542 echo "$ac_t""no" 1>&6
1543 fi
1544
1545 echo $ac_n "checking for connect in -lnsl""... $ac_c" 1>&6
1546 echo "configure:1613: checking for connect in -lnsl" >&5
1547 ac_lib_var=`echo nsl'_'connect | sed 'y%./+-%__p_%'`
1548 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1549 echo $ac_n "(cached) $ac_c" 1>&6
1550 else
1551 ac_save_LIBS="$LIBS"
1552 LIBS="-lnsl $LIBS"
1553 cat > conftest.$ac_ext <<EOF
1554 #line 1621 "configure"
1555 #include "confdefs.h"
1556 /* Override any gcc2 internal prototype to avoid an error. */
1557 /* We use char because int might match the return type of a gcc2
1558 builtin and then its argument prototype would still apply. */
1559 char connect();
1560
1561 int main() {
1562 connect()
1563 ; return 0; }
1564 EOF
1565 if { (eval echo configure:1632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1566 rm -rf conftest*
1567 eval "ac_cv_lib_$ac_lib_var=yes"
1568 else
1569 echo "configure: failed program was:" >&5
1570 cat conftest.$ac_ext >&5
1571 rm -rf conftest*
1572 eval "ac_cv_lib_$ac_lib_var=no"
1573 fi
1574 rm -f conftest*
1575 LIBS="$ac_save_LIBS"
1576
1577 fi
1578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1579 echo "$ac_t""yes" 1>&6
1580 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1581 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1582 cat >> confdefs.h <<EOF
1583 #define $ac_tr_lib 1
1584 EOF
1585
1586 LIBS="-lnsl $LIBS"
1587
1588 else
1589 echo "$ac_t""no" 1>&6
1590 fi
1591
1592 echo $ac_n "checking for gethostbyname in -ldns""... $ac_c" 1>&6
1593 echo "configure:1660: checking for gethostbyname in -ldns" >&5
1594 ac_lib_var=`echo dns'_'gethostbyname | sed 'y%./+-%__p_%'`
1595 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1596 echo $ac_n "(cached) $ac_c" 1>&6
1597 else
1598 ac_save_LIBS="$LIBS"
1599 LIBS="-ldns $LIBS"
1600 cat > conftest.$ac_ext <<EOF
1601 #line 1668 "configure"
1602 #include "confdefs.h"
1603 /* Override any gcc2 internal prototype to avoid an error. */
1604 /* We use char because int might match the return type of a gcc2
1605 builtin and then its argument prototype would still apply. */
1606 char gethostbyname();
1607
1608 int main() {
1609 gethostbyname()
1610 ; return 0; }
1611 EOF
1612 if { (eval echo configure:1679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1613 rm -rf conftest*
1614 eval "ac_cv_lib_$ac_lib_var=yes"
1615 else
1616 echo "configure: failed program was:" >&5
1617 cat conftest.$ac_ext >&5
1618 rm -rf conftest*
1619 eval "ac_cv_lib_$ac_lib_var=no"
1620 fi
1621 rm -f conftest*
1622 LIBS="$ac_save_LIBS"
1623
1624 fi
1625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1626 echo "$ac_t""yes" 1>&6
1627 ac_tr_lib=HAVE_LIB`echo dns | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1628 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1629 cat >> confdefs.h <<EOF
1630 #define $ac_tr_lib 1
1631 EOF
1632
1633 LIBS="-ldns $LIBS"
1634
1635 else
1636 echo "$ac_t""no" 1>&6
1637 fi
1638
1639 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1640 echo "configure:1707: checking for dlopen in -ldl" >&5
1641 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1643 echo $ac_n "(cached) $ac_c" 1>&6
1644 else
1645 ac_save_LIBS="$LIBS"
1646 LIBS="-ldl $LIBS"
1647 cat > conftest.$ac_ext <<EOF
1648 #line 1715 "configure"
1649 #include "confdefs.h"
1650 /* Override any gcc2 internal prototype to avoid an error. */
1651 /* We use char because int might match the return type of a gcc2
1652 builtin and then its argument prototype would still apply. */
1653 char dlopen();
1654
1655 int main() {
1656 dlopen()
1657 ; return 0; }
1658 EOF
1659 if { (eval echo configure:1726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1660 rm -rf conftest*
1661 eval "ac_cv_lib_$ac_lib_var=yes"
1662 else
1663 echo "configure: failed program was:" >&5
1664 cat conftest.$ac_ext >&5
1665 rm -rf conftest*
1666 eval "ac_cv_lib_$ac_lib_var=no"
1667 fi
1668 rm -f conftest*
1669 LIBS="$ac_save_LIBS"
1670
1671 fi
1672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1673 echo "$ac_t""yes" 1>&6
1674 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1675 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1676 cat >> confdefs.h <<EOF
1677 #define $ac_tr_lib 1
1678 EOF
1679
1680 LIBS="-ldl $LIBS"
1681
1682 else
1683 echo "$ac_t""no" 1>&6
1684 fi
1685
1686 # This is needed for Tcl libraries compiled with thread support
1687 echo $ac_n "checking for pthread_mutex_init in -lpthread""... $ac_c" 1>&6
1688 echo "configure:1755: checking for pthread_mutex_init in -lpthread" >&5
1689 ac_lib_var=`echo pthread'_'pthread_mutex_init | sed 'y%./+-%__p_%'`
1690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1691 echo $ac_n "(cached) $ac_c" 1>&6
1692 else
1693 ac_save_LIBS="$LIBS"
1694 LIBS="-lpthread $LIBS"
1695 cat > conftest.$ac_ext <<EOF
1696 #line 1763 "configure"
1697 #include "confdefs.h"
1698 /* Override any gcc2 internal prototype to avoid an error. */
1699 /* We use char because int might match the return type of a gcc2
1700 builtin and then its argument prototype would still apply. */
1701 char pthread_mutex_init();
1702
1703 int main() {
1704 pthread_mutex_init()
1705 ; return 0; }
1706 EOF
1707 if { (eval echo configure:1774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1708 rm -rf conftest*
1709 eval "ac_cv_lib_$ac_lib_var=yes"
1710 else
1711 echo "configure: failed program was:" >&5
1712 cat conftest.$ac_ext >&5
1713 rm -rf conftest*
1714 eval "ac_cv_lib_$ac_lib_var=no"
1715 fi
1716 rm -f conftest*
1717 LIBS="$ac_save_LIBS"
1718
1719 fi
1720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1721 echo "$ac_t""yes" 1>&6
1722 ac_cv_lib_pthread_pthread_mutex_init=yes
1723 else
1724 echo "$ac_t""no" 1>&6
1725 ac_cv_lib_pthread_pthread_mutex_init=no
1726 fi
1727
1728 if test "$SUNOS" = "yes"
1729 then
1730 # For suns without yp or something like that
1731 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
1732 echo "configure:1799: checking for main in -ldl" >&5
1733 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
1734 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1736 else
1737 ac_save_LIBS="$LIBS"
1738 LIBS="-ldl $LIBS"
1739 cat > conftest.$ac_ext <<EOF
1740 #line 1807 "configure"
1741 #include "confdefs.h"
1742
1743 int main() {
1744 main()
1745 ; return 0; }
1746 EOF
1747 if { (eval echo configure:1814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1748 rm -rf conftest*
1749 eval "ac_cv_lib_$ac_lib_var=yes"
1750 else
1751 echo "configure: failed program was:" >&5
1752 cat conftest.$ac_ext >&5
1753 rm -rf conftest*
1754 eval "ac_cv_lib_$ac_lib_var=no"
1755 fi
1756 rm -f conftest*
1757 LIBS="$ac_save_LIBS"
1758
1759 fi
1760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1761 echo "$ac_t""yes" 1>&6
1762 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1763 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1764 cat >> confdefs.h <<EOF
1765 #define $ac_tr_lib 1
1766 EOF
1767
1768 LIBS="-ldl $LIBS"
1769
1770 else
1771 echo "$ac_t""no" 1>&6
1772 fi
1773
1774 else
1775 if test "$HPUX" = "yes"
1776 then
1777 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
1778 echo "configure:1845: checking for shl_load in -ldld" >&5
1779 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
1780 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1781 echo $ac_n "(cached) $ac_c" 1>&6
1782 else
1783 ac_save_LIBS="$LIBS"
1784 LIBS="-ldld $LIBS"
1785 cat > conftest.$ac_ext <<EOF
1786 #line 1853 "configure"
1787 #include "confdefs.h"
1788 /* Override any gcc2 internal prototype to avoid an error. */
1789 /* We use char because int might match the return type of a gcc2
1790 builtin and then its argument prototype would still apply. */
1791 char shl_load();
1792
1793 int main() {
1794 shl_load()
1795 ; return 0; }
1796 EOF
1797 if { (eval echo configure:1864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1798 rm -rf conftest*
1799 eval "ac_cv_lib_$ac_lib_var=yes"
1800 else
1801 echo "configure: failed program was:" >&5
1802 cat conftest.$ac_ext >&5
1803 rm -rf conftest*
1804 eval "ac_cv_lib_$ac_lib_var=no"
1805 fi
1806 rm -f conftest*
1807 LIBS="$ac_save_LIBS"
1808
1809 fi
1810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1811 echo "$ac_t""yes" 1>&6
1812 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1813 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1814 cat >> confdefs.h <<EOF
1815 #define $ac_tr_lib 1
1816 EOF
1817
1818 LIBS="-ldld $LIBS"
1819
1820 else
1821 echo "$ac_t""no" 1>&6
1822 fi
1823
1824 fi
1825 fi
1826 fi
1827
1828
1829 # Checks for header files
1830 ac_header_dirent=no
1831 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1832 do
1833 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1834 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1835 echo "configure:1902: checking for $ac_hdr that defines DIR" >&5
1836 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1837 echo $ac_n "(cached) $ac_c" 1>&6
1838 else
1839 cat > conftest.$ac_ext <<EOF
1840 #line 1907 "configure"
1841 #include "confdefs.h"
1842 #include <sys/types.h>
1843 #include <$ac_hdr>
1844 int main() {
1845 DIR *dirp = 0;
1846 ; return 0; }
1847 EOF
1848 if { (eval echo configure:1915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1849 rm -rf conftest*
1850 eval "ac_cv_header_dirent_$ac_safe=yes"
1851 else
1852 echo "configure: failed program was:" >&5
1853 cat conftest.$ac_ext >&5
1854 rm -rf conftest*
1855 eval "ac_cv_header_dirent_$ac_safe=no"
1856 fi
1857 rm -f conftest*
1858 fi
1859 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1860 echo "$ac_t""yes" 1>&6
1861 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1862 cat >> confdefs.h <<EOF
1863 #define $ac_tr_hdr 1
1864 EOF
1865 ac_header_dirent=$ac_hdr; break
1866 else
1867 echo "$ac_t""no" 1>&6
1868 fi
1869 done
1870 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1871 if test $ac_header_dirent = dirent.h; then
1872 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1873 echo "configure:1940: checking for opendir in -ldir" >&5
1874 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1875 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1876 echo $ac_n "(cached) $ac_c" 1>&6
1877 else
1878 ac_save_LIBS="$LIBS"
1879 LIBS="-ldir $LIBS"
1880 cat > conftest.$ac_ext <<EOF
1881 #line 1948 "configure"
1882 #include "confdefs.h"
1883 /* Override any gcc2 internal prototype to avoid an error. */
1884 /* We use char because int might match the return type of a gcc2
1885 builtin and then its argument prototype would still apply. */
1886 char opendir();
1887
1888 int main() {
1889 opendir()
1890 ; return 0; }
1891 EOF
1892 if { (eval echo configure:1959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1893 rm -rf conftest*
1894 eval "ac_cv_lib_$ac_lib_var=yes"
1895 else
1896 echo "configure: failed program was:" >&5
1897 cat conftest.$ac_ext >&5
1898 rm -rf conftest*
1899 eval "ac_cv_lib_$ac_lib_var=no"
1900 fi
1901 rm -f conftest*
1902 LIBS="$ac_save_LIBS"
1903
1904 fi
1905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1906 echo "$ac_t""yes" 1>&6
1907 LIBS="$LIBS -ldir"
1908 else
1909 echo "$ac_t""no" 1>&6
1910 fi
1911
1912 else
1913 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1914 echo "configure:1981: checking for opendir in -lx" >&5
1915 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1918 else
1919 ac_save_LIBS="$LIBS"
1920 LIBS="-lx $LIBS"
1921 cat > conftest.$ac_ext <<EOF
1922 #line 1989 "configure"
1923 #include "confdefs.h"
1924 /* Override any gcc2 internal prototype to avoid an error. */
1925 /* We use char because int might match the return type of a gcc2
1926 builtin and then its argument prototype would still apply. */
1927 char opendir();
1928
1929 int main() {
1930 opendir()
1931 ; return 0; }
1932 EOF
1933 if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1934 rm -rf conftest*
1935 eval "ac_cv_lib_$ac_lib_var=yes"
1936 else
1937 echo "configure: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
1939 rm -rf conftest*
1940 eval "ac_cv_lib_$ac_lib_var=no"
1941 fi
1942 rm -f conftest*
1943 LIBS="$ac_save_LIBS"
1944
1945 fi
1946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1947 echo "$ac_t""yes" 1>&6
1948 LIBS="$LIBS -lx"
1949 else
1950 echo "$ac_t""no" 1>&6
1951 fi
1952
1953 fi
1954
1955 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1956 echo "configure:2023: checking for sys/wait.h that is POSIX.1 compatible" >&5
1957 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1958 echo $ac_n "(cached) $ac_c" 1>&6
1959 else
1960 cat > conftest.$ac_ext <<EOF
1961 #line 2028 "configure"
1962 #include "confdefs.h"
1963 #include <sys/types.h>
1964 #include <sys/wait.h>
1965 #ifndef WEXITSTATUS
1966 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1967 #endif
1968 #ifndef WIFEXITED
1969 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1970 #endif
1971 int main() {
1972 int s;
1973 wait (&s);
1974 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1975 ; return 0; }
1976 EOF
1977 if { (eval echo configure:2044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1978 rm -rf conftest*
1979 ac_cv_header_sys_wait_h=yes
1980 else
1981 echo "configure: failed program was:" >&5
1982 cat conftest.$ac_ext >&5
1983 rm -rf conftest*
1984 ac_cv_header_sys_wait_h=no
1985 fi
1986 rm -f conftest*
1987 fi
1988
1989 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1990 if test $ac_cv_header_sys_wait_h = yes; then
1991 cat >> confdefs.h <<\EOF
1992 #define HAVE_SYS_WAIT_H 1
1993 EOF
1994
1995 fi
1996
1997 for ac_hdr in sys/time.h
1998 do
1999 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2000 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2001 echo "configure:2068: checking for $ac_hdr" >&5
2002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2004 else
2005 cat > conftest.$ac_ext <<EOF
2006 #line 2073 "configure"
2007 #include "confdefs.h"
2008 #include <$ac_hdr>
2009 EOF
2010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2011 { (eval echo configure:2078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2013 if test -z "$ac_err"; then
2014 rm -rf conftest*
2015 eval "ac_cv_header_$ac_safe=yes"
2016 else
2017 echo "$ac_err" >&5
2018 echo "configure: failed program was:" >&5
2019 cat conftest.$ac_ext >&5
2020 rm -rf conftest*
2021 eval "ac_cv_header_$ac_safe=no"
2022 fi
2023 rm -f conftest*
2024 fi
2025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2026 echo "$ac_t""yes" 1>&6
2027 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2028 cat >> confdefs.h <<EOF
2029 #define $ac_tr_hdr 1
2030 EOF
2031
2032 else
2033 echo "$ac_t""no" 1>&6
2034 fi
2035 done
2036
2037 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2038 echo "configure:2105: checking whether time.h and sys/time.h may both be included" >&5
2039 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2041 else
2042 cat > conftest.$ac_ext <<EOF
2043 #line 2110 "configure"
2044 #include "confdefs.h"
2045 #include <sys/types.h>
2046 #include <sys/time.h>
2047 #include <time.h>
2048 int main() {
2049 struct tm *tp;
2050 ; return 0; }
2051 EOF
2052 if { (eval echo configure:2119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2053 rm -rf conftest*
2054 ac_cv_header_time=yes
2055 else
2056 echo "configure: failed program was:" >&5
2057 cat conftest.$ac_ext >&5
2058 rm -rf conftest*
2059 ac_cv_header_time=no
2060 fi
2061 rm -f conftest*
2062 fi
2063
2064 echo "$ac_t""$ac_cv_header_time" 1>&6
2065 if test $ac_cv_header_time = yes; then
2066 cat >> confdefs.h <<\EOF
2067 #define TIME_WITH_SYS_TIME 1
2068 EOF
2069
2070 fi
2071
2072 for ac_hdr in sys/select.h sys/rusage.h unistd.h dlfcn.h stdarg.h std_args.h strings.h
2073 do
2074 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2075 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2076 echo "configure:2143: checking for $ac_hdr" >&5
2077 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2078 echo $ac_n "(cached) $ac_c" 1>&6
2079 else
2080 cat > conftest.$ac_ext <<EOF
2081 #line 2148 "configure"
2082 #include "confdefs.h"
2083 #include <$ac_hdr>
2084 EOF
2085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2086 { (eval echo configure:2153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2088 if test -z "$ac_err"; then
2089 rm -rf conftest*
2090 eval "ac_cv_header_$ac_safe=yes"
2091 else
2092 echo "$ac_err" >&5
2093 echo "configure: failed program was:" >&5
2094 cat conftest.$ac_ext >&5
2095 rm -rf conftest*
2096 eval "ac_cv_header_$ac_safe=no"
2097 fi
2098 rm -f conftest*
2099 fi
2100 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2101 echo "$ac_t""yes" 1>&6
2102 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2103 cat >> confdefs.h <<EOF
2104 #define $ac_tr_hdr 1
2105 EOF
2106
2107 else
2108 echo "$ac_t""no" 1>&6
2109 fi
2110 done
2111
2112
2113 # Checks for typedefs, structures, and compiler characteristics
2114 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2115 echo "configure:2182: checking for ANSI C header files" >&5
2116 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2118 else
2119 cat > conftest.$ac_ext <<EOF
2120 #line 2187 "configure"
2121 #include "confdefs.h"
2122 #include <stdlib.h>
2123 #include <stdarg.h>
2124 #include <string.h>
2125 #include <float.h>
2126 EOF
2127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2128 { (eval echo configure:2195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2130 if test -z "$ac_err"; then
2131 rm -rf conftest*
2132 ac_cv_header_stdc=yes
2133 else
2134 echo "$ac_err" >&5
2135 echo "configure: failed program was:" >&5
2136 cat conftest.$ac_ext >&5
2137 rm -rf conftest*
2138 ac_cv_header_stdc=no
2139 fi
2140 rm -f conftest*
2141
2142 if test $ac_cv_header_stdc = yes; then
2143 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2144 cat > conftest.$ac_ext <<EOF
2145 #line 2212 "configure"
2146 #include "confdefs.h"
2147 #include <string.h>
2148 EOF
2149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2150 egrep "memchr" >/dev/null 2>&1; then
2151 :
2152 else
2153 rm -rf conftest*
2154 ac_cv_header_stdc=no
2155 fi
2156 rm -f conftest*
2157
2158 fi
2159
2160 if test $ac_cv_header_stdc = yes; then
2161 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2162 cat > conftest.$ac_ext <<EOF
2163 #line 2230 "configure"
2164 #include "confdefs.h"
2165 #include <stdlib.h>
2166 EOF
2167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2168 egrep "free" >/dev/null 2>&1; then
2169 :
2170 else
2171 rm -rf conftest*
2172 ac_cv_header_stdc=no
2173 fi
2174 rm -f conftest*
2175
2176 fi
2177
2178 if test $ac_cv_header_stdc = yes; then
2179 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2180 if test "$cross_compiling" = yes; then
2181 :
2182 else
2183 cat > conftest.$ac_ext <<EOF
2184 #line 2251 "configure"
2185 #include "confdefs.h"
2186 #include <ctype.h>
2187 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2188 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2189 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2190 int main () { int i; for (i = 0; i < 256; i++)
2191 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2192 exit (0); }
2193
2194 EOF
2195 if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2196 then
2197 :
2198 else
2199 echo "configure: failed program was:" >&5
2200 cat conftest.$ac_ext >&5
2201 rm -fr conftest*
2202 ac_cv_header_stdc=no
2203 fi
2204 rm -fr conftest*
2205 fi
2206
2207 fi
2208 fi
2209
2210 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2211 if test $ac_cv_header_stdc = yes; then
2212 cat >> confdefs.h <<\EOF
2213 #define STDC_HEADERS 1
2214 EOF
2215
2216 fi
2217
2218 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2219 echo "configure:2286: checking for pid_t" >&5
2220 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2221 echo $ac_n "(cached) $ac_c" 1>&6
2222 else
2223 cat > conftest.$ac_ext <<EOF
2224 #line 2291 "configure"
2225 #include "confdefs.h"
2226 #include <sys/types.h>
2227 #if STDC_HEADERS
2228 #include <stdlib.h>
2229 #include <stddef.h>
2230 #endif
2231 EOF
2232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2233 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2234 rm -rf conftest*
2235 ac_cv_type_pid_t=yes
2236 else
2237 rm -rf conftest*
2238 ac_cv_type_pid_t=no
2239 fi
2240 rm -f conftest*
2241
2242 fi
2243 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2244 if test $ac_cv_type_pid_t = no; then
2245 cat >> confdefs.h <<\EOF
2246 #define pid_t int
2247 EOF
2248
2249 fi
2250
2251 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2252 echo "configure:2319: checking whether byte ordering is bigendian" >&5
2253 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2255 else
2256 ac_cv_c_bigendian=unknown
2257 # See if sys/param.h defines the BYTE_ORDER macro.
2258 cat > conftest.$ac_ext <<EOF
2259 #line 2326 "configure"
2260 #include "confdefs.h"
2261 #include <sys/types.h>
2262 #include <sys/param.h>
2263 int main() {
2264
2265 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2266 bogus endian macros
2267 #endif
2268 ; return 0; }
2269 EOF
2270 if { (eval echo configure:2337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2271 rm -rf conftest*
2272 # It does; now see whether it defined to BIG_ENDIAN or not.
2273 cat > conftest.$ac_ext <<EOF
2274 #line 2341 "configure"
2275 #include "confdefs.h"
2276 #include <sys/types.h>
2277 #include <sys/param.h>
2278 int main() {
2279
2280 #if BYTE_ORDER != BIG_ENDIAN
2281 not big endian
2282 #endif
2283 ; return 0; }
2284 EOF
2285 if { (eval echo configure:2352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2286 rm -rf conftest*
2287 ac_cv_c_bigendian=yes
2288 else
2289 echo "configure: failed program was:" >&5
2290 cat conftest.$ac_ext >&5
2291 rm -rf conftest*
2292 ac_cv_c_bigendian=no
2293 fi
2294 rm -f conftest*
2295 else
2296 echo "configure: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
2298 fi
2299 rm -f conftest*
2300 if test $ac_cv_c_bigendian = unknown; then
2301 if test "$cross_compiling" = yes; then
2302 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2303 else
2304 cat > conftest.$ac_ext <<EOF
2305 #line 2372 "configure"
2306 #include "confdefs.h"
2307 main () {
2308 /* Are we little or big endian? From Harbison&Steele. */
2309 union
2310 {
2311 long l;
2312 char c[sizeof (long)];
2313 } u;
2314 u.l = 1;
2315 exit (u.c[sizeof (long) - 1] == 1);
2316 }
2317 EOF
2318 if { (eval echo configure:2385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2319 then
2320 ac_cv_c_bigendian=no
2321 else
2322 echo "configure: failed program was:" >&5
2323 cat conftest.$ac_ext >&5
2324 rm -fr conftest*
2325 ac_cv_c_bigendian=yes
2326 fi
2327 rm -fr conftest*
2328 fi
2329
2330 fi
2331 fi
2332
2333 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2334 if test $ac_cv_c_bigendian = yes; then
2335 cat >> confdefs.h <<\EOF
2336 #define WORDS_BIGENDIAN 1
2337 EOF
2338
2339 fi
2340
2341 echo $ac_n "checking for inline""... $ac_c" 1>&6
2342 echo "configure:2409: checking for inline" >&5
2343 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2345 else
2346 ac_cv_c_inline=no
2347 for ac_kw in inline __inline__ __inline; do
2348 cat > conftest.$ac_ext <<EOF
2349 #line 2416 "configure"
2350 #include "confdefs.h"
2351
2352 int main() {
2353 } int $ac_kw foo() {
2354 ; return 0; }
2355 EOF
2356 if { (eval echo configure:2423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2357 rm -rf conftest*
2358 ac_cv_c_inline=$ac_kw; break
2359 else
2360 echo "configure: failed program was:" >&5
2361 cat conftest.$ac_ext >&5
2362 fi
2363 rm -f conftest*
2364 done
2365
2366 fi
2367
2368 echo "$ac_t""$ac_cv_c_inline" 1>&6
2369 case "$ac_cv_c_inline" in
2370 inline | yes) ;;
2371 no) cat >> confdefs.h <<\EOF
2372 #define inline
2373 EOF
2374 ;;
2375 *) cat >> confdefs.h <<EOF
2376 #define inline $ac_cv_c_inline
2377 EOF
2378 ;;
2379 esac
2380
2381 echo $ac_n "checking size of long""... $ac_c" 1>&6
2382 echo "configure:2449: checking size of long" >&5
2383 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2385 else
2386 if test "$cross_compiling" = yes; then
2387 ac_cv_sizeof_long=0
2388 else
2389 cat > conftest.$ac_ext <<EOF
2390 #line 2457 "configure"
2391 #include "confdefs.h"
2392 #include <stdio.h>
2393 main()
2394 {
2395 FILE *f=fopen("conftestval", "w");
2396 if (!f) exit(1);
2397 fprintf(f, "%d\n", sizeof(long));
2398 exit(0);
2399 }
2400 EOF
2401 if { (eval echo configure:2468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2402 then
2403 ac_cv_sizeof_long=`cat conftestval`
2404 else
2405 echo "configure: failed program was:" >&5
2406 cat conftest.$ac_ext >&5
2407 rm -fr conftest*
2408 ac_cv_sizeof_long=0
2409 fi
2410 rm -fr conftest*
2411 fi
2412
2413 fi
2414 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2415 cat >> confdefs.h <<EOF
2416 #define SIZEOF_LONG $ac_cv_sizeof_long
2417 EOF
2418
2419
2420 echo $ac_n "checking size of int""... $ac_c" 1>&6
2421 echo "configure:2488: checking size of int" >&5
2422 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2423 echo $ac_n "(cached) $ac_c" 1>&6
2424 else
2425 if test "$cross_compiling" = yes; then
2426 ac_cv_sizeof_int=0
2427 else
2428 cat > conftest.$ac_ext <<EOF
2429 #line 2496 "configure"
2430 #include "confdefs.h"
2431 #include <stdio.h>
2432 main()
2433 {
2434 FILE *f=fopen("conftestval", "w");
2435 if (!f) exit(1);
2436 fprintf(f, "%d\n", sizeof(int));
2437 exit(0);
2438 }
2439 EOF
2440 if { (eval echo configure:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2441 then
2442 ac_cv_sizeof_int=`cat conftestval`
2443 else
2444 echo "configure: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2446 rm -fr conftest*
2447 ac_cv_sizeof_int=0
2448 fi
2449 rm -fr conftest*
2450 fi
2451
2452 fi
2453 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2454 cat >> confdefs.h <<EOF
2455 #define SIZEOF_INT $ac_cv_sizeof_int
2456 EOF
2457
2458
2459 echo $ac_n "checking size of char""... $ac_c" 1>&6
2460 echo "configure:2527: checking size of char" >&5
2461 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2463 else
2464 if test "$cross_compiling" = yes; then
2465 ac_cv_sizeof_char=0
2466 else
2467 cat > conftest.$ac_ext <<EOF
2468 #line 2535 "configure"
2469 #include "confdefs.h"
2470 #include <stdio.h>
2471 main()
2472 {
2473 FILE *f=fopen("conftestval", "w");
2474 if (!f) exit(1);
2475 fprintf(f, "%d\n", sizeof(char));
2476 exit(0);
2477 }
2478 EOF
2479 if { (eval echo configure:2546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2480 then
2481 ac_cv_sizeof_char=`cat conftestval`
2482 else
2483 echo "configure: failed program was:" >&5
2484 cat conftest.$ac_ext >&5
2485 rm -fr conftest*
2486 ac_cv_sizeof_char=0
2487 fi
2488 rm -fr conftest*
2489 fi
2490
2491 fi
2492 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2493 cat >> confdefs.h <<EOF
2494 #define SIZEOF_CHAR $ac_cv_sizeof_char
2495 EOF
2496
2497
2498 echo $ac_n "checking size of short int""... $ac_c" 1>&6
2499 echo "configure:2566: checking size of short int" >&5
2500 if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2502 else
2503 if test "$cross_compiling" = yes; then
2504 ac_cv_sizeof_short_int=0
2505 else
2506 cat > conftest.$ac_ext <<EOF
2507 #line 2574 "configure"
2508 #include "confdefs.h"
2509 #include <stdio.h>
2510 main()
2511 {
2512 FILE *f=fopen("conftestval", "w");
2513 if (!f) exit(1);
2514 fprintf(f, "%d\n", sizeof(short int));
2515 exit(0);
2516 }
2517 EOF
2518 if { (eval echo configure:2585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2519 then
2520 ac_cv_sizeof_short_int=`cat conftestval`
2521 else
2522 echo "configure: failed program was:" >&5
2523 cat conftest.$ac_ext >&5
2524 rm -fr conftest*
2525 ac_cv_sizeof_short_int=0
2526 fi
2527 rm -fr conftest*
2528 fi
2529
2530 fi
2531 echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6
2532 cat >> confdefs.h <<EOF
2533 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
2534 EOF
2535
2536
2537
2538 # Checks for library functions
2539 for ac_func in clock getrusage setpgid uname sigaction sigemptyset rename strcasecmp getdtablesize bzero random srandom dlopen dprintf snprintf vsnprintf
2540 do
2541 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2542 echo "configure:2609: checking for $ac_func" >&5
2543 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2544 echo $ac_n "(cached) $ac_c" 1>&6
2545 else
2546 cat > conftest.$ac_ext <<EOF
2547 #line 2614 "configure"
2548 #include "confdefs.h"
2549 /* System header to define __stub macros and hopefully few prototypes,
2550 which can conflict with char $ac_func(); below. */
2551 #include <assert.h>
2552 /* Override any gcc2 internal prototype to avoid an error. */
2553 /* We use char because int might match the return type of a gcc2
2554 builtin and then its argument prototype would still apply. */
2555 char $ac_func();
2556
2557 int main() {
2558
2559 /* The GNU C library defines this for functions which it implements
2560 to always fail with ENOSYS. Some functions are actually named
2561 something starting with __ and the normal name is an alias. */
2562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2563 choke me
2564 #else
2565 $ac_func();
2566 #endif
2567
2568 ; return 0; }
2569 EOF
2570 if { (eval echo configure:2637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2571 rm -rf conftest*
2572 eval "ac_cv_func_$ac_func=yes"
2573 else
2574 echo "configure: failed program was:" >&5
2575 cat conftest.$ac_ext >&5
2576 rm -rf conftest*
2577 eval "ac_cv_func_$ac_func=no"
2578 fi
2579 rm -f conftest*
2580 fi
2581
2582 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2583 echo "$ac_t""yes" 1>&6
2584 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2585 cat >> confdefs.h <<EOF
2586 #define $ac_tr_func 1
2587 EOF
2588
2589 else
2590 echo "$ac_t""no" 1>&6
2591 fi
2592 done
2593
2594 for ac_func in vsprintf
2595 do
2596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2597 echo "configure:2664: checking for $ac_func" >&5
2598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2600 else
2601 cat > conftest.$ac_ext <<EOF
2602 #line 2669 "configure"
2603 #include "confdefs.h"
2604 /* System header to define __stub macros and hopefully few prototypes,
2605 which can conflict with char $ac_func(); below. */
2606 #include <assert.h>
2607 /* Override any gcc2 internal prototype to avoid an error. */
2608 /* We use char because int might match the return type of a gcc2
2609 builtin and then its argument prototype would still apply. */
2610 char $ac_func();
2611
2612 int main() {
2613
2614 /* The GNU C library defines this for functions which it implements
2615 to always fail with ENOSYS. Some functions are actually named
2616 something starting with __ and the normal name is an alias. */
2617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2618 choke me
2619 #else
2620 $ac_func();
2621 #endif
2622
2623 ; return 0; }
2624 EOF
2625 if { (eval echo configure:2692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2626 rm -rf conftest*
2627 eval "ac_cv_func_$ac_func=yes"
2628 else
2629 echo "configure: failed program was:" >&5
2630 cat conftest.$ac_ext >&5
2631 rm -rf conftest*
2632 eval "ac_cv_func_$ac_func=no"
2633 fi
2634 rm -f conftest*
2635 fi
2636
2637 if eval "test \"`echo '$ac_cv_func_'$