Annotation of parser3/configure, revision 1.59
1.1 paf 1: #! /bin/sh
2:
3: # Guess values for system-dependent variables and create Makefiles.
4: # Generated automatically using autoconf version 2.13
5: # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6: #
7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
9:
10: # Defaults:
11: ac_help=
12: ac_default_prefix=/usr/local
13: # Any additions from configure.in:
14: ac_help="$ac_help
15: --disable-string-origins to switch off string origin tracking"
16: ac_help="$ac_help
1.13 paf 17: --disable-execs to disable any execs
18: (file::exec, file::cgi, unix mail:send)"
19: ac_help="$ac_help
1.16 paf 20: --disable-foreign-group-files to disable read and executing
21: files belonging to group other then effective"
1.14 paf 22: ac_help="$ac_help
1.17 paf 23: --with-charsets=CHARSET[,CHARSET,...] Enables charsets in root config (windows-1251,
24: windows-1250 windows-1257 koi8-r; Default is windows-1251)"
25: ac_help="$ac_help
26: --with-mysql-client=mysqlclientlib?withparams
27: MySQL client dynamic library to root config"
28: ac_help="$ac_help
29: --with-pgsql-client=pgsqlclientlib?withparams
30: PgSQL client dynamic library to root config"
31: ac_help="$ac_help
32: --with-oracle-client=oracleclientlib?withparams
33: Oracle client dynamic library"
34: ac_help="$ac_help
1.7 paf 35: --with-pathlink=LKEY put dynamic libraries paths to binary
1.1 paf 36: using linker key (-R, -rpath-link)"
37: ac_help="$ac_help
1.59 ! paf 38: --with-link-stdcpp=PATH to directory with libstdc++
! 39: --without-link-stdcpp to disable libstdc++ linkage,
! 40: if you belive you do not need one"
! 41: ac_help="$ac_help
1.38 paf 42: --with-sjlj-exceptions enable simple 'throw' from dynamic library"
1.37 paf 43: ac_help="$ac_help
1.7 paf 44: --with-glib-config=FILE FILE is glib library
45: configuration file (search for glib*-config)"
46: ac_help="$ac_help
1.10 paf 47: --with-shared-xml=D D is the directory where
48: Gnome XML libraries are installed (shared libs)"
49: ac_help="$ac_help
50: --with-static-xml=D D is the directory where
51: Gnome XML libraries are installed (static libs)"
1.12 paf 52: ac_help="$ac_help
1.29 paf 53: --with-shared-mailreceive=D is the directory where
54: Gnome MIME library is installed (shared lib)"
55: ac_help="$ac_help
56: --with-static-mailreceive=D is the directory where
57: Gnome MIME library is installed (static lib)"
58: ac_help="$ac_help
1.16 paf 59: \"--with-sendmail=COMMAND\" forces this command to send mail.
60: example: \"--with-sendmail=/usr/sbin/sendmail -t\"
61: (makes parser ignore user-defined sendmail commands)"
62: ac_help="$ac_help
1.12 paf 63: --with-apache13=D D is the Apache13 source distribution directory
64: builds library for apache_module using that dir
65: (do not add /src)"
1.1 paf 66:
67: # Initialize some variables set by options.
68: # The variables have the same names as the options, with
69: # dashes changed to underlines.
70: build=NONE
71: cache_file=./config.cache
72: exec_prefix=NONE
73: host=NONE
74: no_create=
75: nonopt=NONE
76: no_recursion=
77: prefix=NONE
78: program_prefix=NONE
79: program_suffix=NONE
80: program_transform_name=s,x,x,
81: silent=
82: site=
83: srcdir=
84: target=NONE
85: verbose=
86: x_includes=NONE
87: x_libraries=NONE
88: bindir='${exec_prefix}/bin'
89: sbindir='${exec_prefix}/sbin'
90: libexecdir='${exec_prefix}/libexec'
91: datadir='${prefix}/share'
92: sysconfdir='${prefix}/etc'
93: sharedstatedir='${prefix}/com'
94: localstatedir='${prefix}/var'
95: libdir='${exec_prefix}/lib'
96: includedir='${prefix}/include'
97: oldincludedir='/usr/include'
98: infodir='${prefix}/info'
99: mandir='${prefix}/man'
100:
101: # Initialize some other variables.
102: subdirs=
103: MFLAGS= MAKEFLAGS=
104: SHELL=${CONFIG_SHELL-/bin/sh}
105: # Maximum number of lines to put in a shell here document.
106: ac_max_here_lines=12
107:
108: ac_prev=
109: for ac_option
110: do
111:
112: # If the previous option needs an argument, assign it.
113: if test -n "$ac_prev"; then
114: eval "$ac_prev=\$ac_option"
115: ac_prev=
116: continue
117: fi
118:
119: case "$ac_option" in
120: -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
121: *) ac_optarg= ;;
122: esac
123:
124: # Accept the important Cygnus configure options, so we can diagnose typos.
125:
126: case "$ac_option" in
127:
128: -bindir | --bindir | --bindi | --bind | --bin | --bi)
129: ac_prev=bindir ;;
130: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
131: bindir="$ac_optarg" ;;
132:
133: -build | --build | --buil | --bui | --bu)
134: ac_prev=build ;;
135: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
136: build="$ac_optarg" ;;
137:
138: -cache-file | --cache-file | --cache-fil | --cache-fi \
139: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
140: ac_prev=cache_file ;;
141: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
142: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
143: cache_file="$ac_optarg" ;;
144:
145: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
146: ac_prev=datadir ;;
147: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
148: | --da=*)
149: datadir="$ac_optarg" ;;
150:
151: -disable-* | --disable-*)
152: ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
153: # Reject names that are not valid shell variable names.
154: if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156: fi
157: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
158: eval "enable_${ac_feature}=no" ;;
159:
160: -enable-* | --enable-*)
161: ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162: # Reject names that are not valid shell variable names.
163: if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165: fi
166: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167: case "$ac_option" in
168: *=*) ;;
169: *) ac_optarg=yes ;;
170: esac
171: eval "enable_${ac_feature}='$ac_optarg'" ;;
172:
173: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
174: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
175: | --exec | --exe | --ex)
176: ac_prev=exec_prefix ;;
177: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
178: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
179: | --exec=* | --exe=* | --ex=*)
180: exec_prefix="$ac_optarg" ;;
181:
182: -gas | --gas | --ga | --g)
183: # Obsolete; use --with-gas.
184: with_gas=yes ;;
185:
186: -help | --help | --hel | --he)
187: # Omit some internal or obsolete options to make the list less imposing.
188: # This message is too long to be a string in the A/UX 3.1 sh.
189: cat << EOF
190: Usage: configure [options] [host]
191: Options: [defaults in brackets after descriptions]
192: Configuration:
193: --cache-file=FILE cache test results in FILE
194: --help print this message
195: --no-create do not create output files
196: --quiet, --silent do not print \`checking...' messages
197: --version print the version of autoconf that created configure
198: Directory and file names:
199: --prefix=PREFIX install architecture-independent files in PREFIX
200: [$ac_default_prefix]
201: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
202: [same as prefix]
203: --bindir=DIR user executables in DIR [EPREFIX/bin]
204: --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
205: --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
206: --datadir=DIR read-only architecture-independent data in DIR
207: [PREFIX/share]
208: --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
209: --sharedstatedir=DIR modifiable architecture-independent data in DIR
210: [PREFIX/com]
211: --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
212: --libdir=DIR object code libraries in DIR [EPREFIX/lib]
213: --includedir=DIR C header files in DIR [PREFIX/include]
214: --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
215: --infodir=DIR info documentation in DIR [PREFIX/info]
216: --mandir=DIR man documentation in DIR [PREFIX/man]
217: --srcdir=DIR find the sources in DIR [configure dir or ..]
218: --program-prefix=PREFIX prepend PREFIX to installed program names
219: --program-suffix=SUFFIX append SUFFIX to installed program names
220: --program-transform-name=PROGRAM
221: run sed PROGRAM on installed program names
222: EOF
223: cat << EOF
224: Host type:
225: --build=BUILD configure for building on BUILD [BUILD=HOST]
226: --host=HOST configure for HOST [guessed]
227: --target=TARGET configure for TARGET [TARGET=HOST]
228: Features and packages:
229: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
230: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
231: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
232: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
233: --x-includes=DIR X include files are in DIR
234: --x-libraries=DIR X library files are in DIR
235: EOF
236: if test -n "$ac_help"; then
237: echo "--enable and --with options recognized:$ac_help"
238: fi
239: exit 0 ;;
240:
241: -host | --host | --hos | --ho)
242: ac_prev=host ;;
243: -host=* | --host=* | --hos=* | --ho=*)
244: host="$ac_optarg" ;;
245:
246: -includedir | --includedir | --includedi | --included | --include \
247: | --includ | --inclu | --incl | --inc)
248: ac_prev=includedir ;;
249: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
250: | --includ=* | --inclu=* | --incl=* | --inc=*)
251: includedir="$ac_optarg" ;;
252:
253: -infodir | --infodir | --infodi | --infod | --info | --inf)
254: ac_prev=infodir ;;
255: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
256: infodir="$ac_optarg" ;;
257:
258: -libdir | --libdir | --libdi | --libd)
259: ac_prev=libdir ;;
260: -libdir=* | --libdir=* | --libdi=* | --libd=*)
261: libdir="$ac_optarg" ;;
262:
263: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
264: | --libexe | --libex | --libe)
265: ac_prev=libexecdir ;;
266: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
267: | --libexe=* | --libex=* | --libe=*)
268: libexecdir="$ac_optarg" ;;
269:
270: -localstatedir | --localstatedir | --localstatedi | --localstated \
271: | --localstate | --localstat | --localsta | --localst \
272: | --locals | --local | --loca | --loc | --lo)
273: ac_prev=localstatedir ;;
274: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
275: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
276: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
277: localstatedir="$ac_optarg" ;;
278:
279: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
280: ac_prev=mandir ;;
281: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282: mandir="$ac_optarg" ;;
283:
284: -nfp | --nfp | --nf)
285: # Obsolete; use --without-fp.
286: with_fp=no ;;
287:
288: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
289: | --no-cr | --no-c)
290: no_create=yes ;;
291:
292: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
293: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294: no_recursion=yes ;;
295:
296: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
297: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
298: | --oldin | --oldi | --old | --ol | --o)
299: ac_prev=oldincludedir ;;
300: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
301: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
302: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
303: oldincludedir="$ac_optarg" ;;
304:
305: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
306: ac_prev=prefix ;;
307: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308: prefix="$ac_optarg" ;;
309:
310: -program-prefix | --program-prefix | --program-prefi | --program-pref \
311: | --program-pre | --program-pr | --program-p)
312: ac_prev=program_prefix ;;
313: -program-prefix=* | --program-prefix=* | --program-prefi=* \
314: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
315: program_prefix="$ac_optarg" ;;
316:
317: -program-suffix | --program-suffix | --program-suffi | --program-suff \
318: | --program-suf | --program-su | --program-s)
319: ac_prev=program_suffix ;;
320: -program-suffix=* | --program-suffix=* | --program-suffi=* \
321: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
322: program_suffix="$ac_optarg" ;;
323:
324: -program-transform-name | --program-transform-name \
325: | --program-transform-nam | --program-transform-na \
326: | --program-transform-n | --program-transform- \
327: | --program-transform | --program-transfor \
328: | --program-transfo | --program-transf \
329: | --program-trans | --program-tran \
330: | --progr-tra | --program-tr | --program-t)
331: ac_prev=program_transform_name ;;
332: -program-transform-name=* | --program-transform-name=* \
333: | --program-transform-nam=* | --program-transform-na=* \
334: | --program-transform-n=* | --program-transform-=* \
335: | --program-transform=* | --program-transfor=* \
336: | --program-transfo=* | --program-transf=* \
337: | --program-trans=* | --program-tran=* \
338: | --progr-tra=* | --program-tr=* | --program-t=*)
339: program_transform_name="$ac_optarg" ;;
340:
341: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
342: | -silent | --silent | --silen | --sile | --sil)
343: silent=yes ;;
344:
345: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
346: ac_prev=sbindir ;;
347: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
348: | --sbi=* | --sb=*)
349: sbindir="$ac_optarg" ;;
350:
351: -sharedstatedir | --sharedstatedir | --sharedstatedi \
352: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
353: | --sharedst | --shareds | --shared | --share | --shar \
354: | --sha | --sh)
355: ac_prev=sharedstatedir ;;
356: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
357: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
358: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
359: | --sha=* | --sh=*)
360: sharedstatedir="$ac_optarg" ;;
361:
362: -site | --site | --sit)
363: ac_prev=site ;;
364: -site=* | --site=* | --sit=*)
365: site="$ac_optarg" ;;
366:
367: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
368: ac_prev=srcdir ;;
369: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370: srcdir="$ac_optarg" ;;
371:
372: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
373: | --syscon | --sysco | --sysc | --sys | --sy)
374: ac_prev=sysconfdir ;;
375: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
376: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
377: sysconfdir="$ac_optarg" ;;
378:
379: -target | --target | --targe | --targ | --tar | --ta | --t)
380: ac_prev=target ;;
381: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
382: target="$ac_optarg" ;;
383:
384: -v | -verbose | --verbose | --verbos | --verbo | --verb)
385: verbose=yes ;;
386:
387: -version | --version | --versio | --versi | --vers)
388: echo "configure generated by autoconf version 2.13"
389: exit 0 ;;
390:
391: -with-* | --with-*)
392: ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
393: # Reject names that are not valid shell variable names.
394: if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
395: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396: fi
397: ac_package=`echo $ac_package| sed 's/-/_/g'`
398: case "$ac_option" in
399: *=*) ;;
400: *) ac_optarg=yes ;;
401: esac
402: eval "with_${ac_package}='$ac_optarg'" ;;
403:
404: -without-* | --without-*)
405: ac_package=`echo $ac_option|sed -e 's/-*without-//'`
406: # Reject names that are not valid shell variable names.
407: if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
408: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409: fi
410: ac_package=`echo $ac_package| sed 's/-/_/g'`
411: eval "with_${ac_package}=no" ;;
412:
413: --x)
414: # Obsolete; use --with-x.
415: with_x=yes ;;
416:
417: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
418: | --x-incl | --x-inc | --x-in | --x-i)
419: ac_prev=x_includes ;;
420: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
421: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
422: x_includes="$ac_optarg" ;;
423:
424: -x-libraries | --x-libraries | --x-librarie | --x-librari \
425: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
426: ac_prev=x_libraries ;;
427: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
428: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
429: x_libraries="$ac_optarg" ;;
430:
431: -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
432: ;;
433:
434: *)
435: if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
436: echo "configure: warning: $ac_option: invalid host type" 1>&2
437: fi
438: if test "x$nonopt" != xNONE; then
439: { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
440: fi
441: nonopt="$ac_option"
442: ;;
443:
444: esac
445: done
446:
447: if test -n "$ac_prev"; then
448: { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
449: fi
450:
451: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
452:
453: # File descriptor usage:
454: # 0 standard input
455: # 1 file creation
456: # 2 errors and warnings
457: # 3 some systems may open it to /dev/tty
458: # 4 used on the Kubota Titan
459: # 6 checking for... messages and results
460: # 5 compiler messages saved in config.log
461: if test "$silent" = yes; then
462: exec 6>/dev/null
463: else
464: exec 6>&1
465: fi
466: exec 5>./config.log
467:
468: echo "\
469: This file contains any messages produced by compilers while
470: running configure, to aid debugging if configure makes a mistake.
471: " 1>&5
472:
473: # Strip out --no-create and --no-recursion so they do not pile up.
474: # Also quote any args containing shell metacharacters.
475: ac_configure_args=
476: for ac_arg
477: do
478: case "$ac_arg" in
479: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
480: | --no-cr | --no-c) ;;
481: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
482: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
483: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
484: ac_configure_args="$ac_configure_args '$ac_arg'" ;;
485: *) ac_configure_args="$ac_configure_args $ac_arg" ;;
486: esac
487: done
488:
489: # NLS nuisances.
490: # Only set these to C if already set. These must not be set unconditionally
491: # because not all systems understand e.g. LANG=C (notably SCO).
492: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
493: # Non-C LC_CTYPE values break the ctype check.
494: if test "${LANG+set}" = set; then LANG=C; export LANG; fi
495: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
496: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
497: if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
498:
499: # confdefs.h avoids OS command line length limits that DEFS can exceed.
500: rm -rf conftest* confdefs.h
501: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
502: echo > confdefs.h
503:
504: # A filename unique to this package, relative to the directory that
505: # configure is in, which we can look for to find out if srcdir is correct.
506: ac_unique_file=README
507:
508: # Find the source files, if location was not specified.
509: if test -z "$srcdir"; then
510: ac_srcdir_defaulted=yes
511: # Try the directory containing this script, then its parent.
512: ac_prog=$0
513: ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
514: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
515: srcdir=$ac_confdir
516: if test ! -r $srcdir/$ac_unique_file; then
517: srcdir=..
518: fi
519: else
520: ac_srcdir_defaulted=no
521: fi
522: if test ! -r $srcdir/$ac_unique_file; then
523: if test "$ac_srcdir_defaulted" = yes; then
524: { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
525: else
526: { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
527: fi
528: fi
529: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
530:
531: # Prefer explicitly selected file to automatically selected ones.
532: if test -z "$CONFIG_SITE"; then
533: if test "x$prefix" != xNONE; then
534: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
535: else
536: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
537: fi
538: fi
539: for ac_site_file in $CONFIG_SITE; do
540: if test -r "$ac_site_file"; then
541: echo "loading site script $ac_site_file"
542: . "$ac_site_file"
543: fi
544: done
545:
546: if test -r "$cache_file"; then
547: echo "loading cache $cache_file"
548: . $cache_file
549: else
550: echo "creating cache $cache_file"
551: > $cache_file
552: fi
553:
554: ac_ext=c
555: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
556: ac_cpp='$CPP $CPPFLAGS'
557: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
558: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
559: cross_compiling=$ac_cv_prog_cc_cross
560:
561: ac_exeext=
562: ac_objext=o
563: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
564: # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
565: if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
566: ac_n= ac_c='
567: ' ac_t=' '
568: else
569: ac_n=-n ac_c= ac_t=
570: fi
571: else
572: ac_n= ac_c='\c' ac_t=
573: fi
574:
575:
576: ac_aux_dir=
577: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
578: if test -f $ac_dir/install-sh; then
579: ac_aux_dir=$ac_dir
580: ac_install_sh="$ac_aux_dir/install-sh -c"
581: break
582: elif test -f $ac_dir/install.sh; then
583: ac_aux_dir=$ac_dir
584: ac_install_sh="$ac_aux_dir/install.sh -c"
585: break
586: fi
587: done
588: if test -z "$ac_aux_dir"; then
589: { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
590: fi
591: ac_config_guess=$ac_aux_dir/config.guess
592: ac_config_sub=$ac_aux_dir/config.sub
593: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
594:
595: # Find a good install program. We prefer a C program (faster),
596: # so one script is as good as another. But avoid the broken or
597: # incompatible versions:
598: # SysV /etc/install, /usr/sbin/install
599: # SunOS /usr/etc/install
600: # IRIX /sbin/install
601: # AIX /bin/install
602: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
603: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
604: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
605: # ./install, which can be erroneously created by make from ./install.sh.
606: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.59 ! paf 607: echo "configure:608: checking for a BSD compatible install" >&5
1.1 paf 608: if test -z "$INSTALL"; then
609: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
610: echo $ac_n "(cached) $ac_c" 1>&6
611: else
612: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
613: for ac_dir in $PATH; do
614: # Account for people who put trailing slashes in PATH elements.
615: case "$ac_dir/" in
616: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
617: *)
618: # OSF1 and SCO ODT 3.0 have their own names for install.
619: # Don't use installbsd from OSF since it installs stuff as root
620: # by default.
621: for ac_prog in ginstall scoinst install; do
622: if test -f $ac_dir/$ac_prog; then
623: if test $ac_prog = install &&
624: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
625: # AIX install. It has an incompatible calling convention.
626: :
627: else
628: ac_cv_path_install="$ac_dir/$ac_prog -c"
629: break 2
630: fi
631: fi
632: done
633: ;;
634: esac
635: done
636: IFS="$ac_save_IFS"
637:
638: fi
639: if test "${ac_cv_path_install+set}" = set; then
640: INSTALL="$ac_cv_path_install"
641: else
642: # As a last resort, use the slow shell script. We don't cache a
643: # path for INSTALL within a source directory, because that will
644: # break other packages using the cache if that directory is
645: # removed, or if the path is relative.
646: INSTALL="$ac_install_sh"
647: fi
648: fi
649: echo "$ac_t""$INSTALL" 1>&6
650:
651: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
652: # It thinks the first close brace ends the variable substitution.
653: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
654:
655: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
656:
657: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
658:
659: echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1.59 ! paf 660: echo "configure:661: checking whether build environment is sane" >&5
1.1 paf 661: # Just in case
662: sleep 1
663: echo timestamp > conftestfile
664: # Do `set' in a subshell so we don't clobber the current shell's
665: # arguments. Must try -L first in case configure is actually a
666: # symlink; some systems play weird games with the mod time of symlinks
667: # (eg FreeBSD returns the mod time of the symlink's containing
668: # directory).
669: if (
670: set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
671: if test "$*" = "X"; then
672: # -L didn't work.
673: set X `ls -t $srcdir/configure conftestfile`
674: fi
675: if test "$*" != "X $srcdir/configure conftestfile" \
676: && test "$*" != "X conftestfile $srcdir/configure"; then
677:
678: # If neither matched, then we have a broken ls. This can happen
679: # if, for instance, CONFIG_SHELL is bash and it inherits a
680: # broken ls alias from the environment. This has actually
681: # happened. Such a system could not be considered "sane".
682: { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
683: alias in your environment" 1>&2; exit 1; }
684: fi
685:
686: test "$2" = conftestfile
687: )
688: then
689: # Ok.
690: :
691: else
692: { echo "configure: error: newly created file is older than distributed files!
693: Check your system clock" 1>&2; exit 1; }
694: fi
695: rm -f conftest*
696: echo "$ac_t""yes" 1>&6
697: if test "$program_transform_name" = s,x,x,; then
698: program_transform_name=
699: else
700: # Double any \ or $. echo might interpret backslashes.
701: cat <<\EOF_SED > conftestsed
702: s,\\,\\\\,g; s,\$,$$,g
703: EOF_SED
704: program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
705: rm -f conftestsed
706: fi
707: test "$program_prefix" != NONE &&
708: program_transform_name="s,^,${program_prefix},; $program_transform_name"
709: # Use a double $ so make ignores it.
710: test "$program_suffix" != NONE &&
711: program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
712:
713: # sed with no file args requires a program.
714: test "$program_transform_name" = "" && program_transform_name="s,x,x,"
715:
716: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1.59 ! paf 717: echo "configure:718: checking whether ${MAKE-make} sets \${MAKE}" >&5
1.1 paf 718: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
719: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
720: echo $ac_n "(cached) $ac_c" 1>&6
721: else
722: cat > conftestmake <<\EOF
723: all:
724: @echo 'ac_maketemp="${MAKE}"'
725: EOF
726: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
727: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
728: if test -n "$ac_maketemp"; then
729: eval ac_cv_prog_make_${ac_make}_set=yes
730: else
731: eval ac_cv_prog_make_${ac_make}_set=no
732: fi
733: rm -f conftestmake
734: fi
735: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
736: echo "$ac_t""yes" 1>&6
737: SET_MAKE=
738: else
739: echo "$ac_t""no" 1>&6
740: SET_MAKE="MAKE=${MAKE-make}"
741: fi
742:
743:
744: PACKAGE=parser
745:
1.35 paf 746: VERSION=3.0.HEAD
1.1 paf 747:
748: if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
749: { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
750: fi
751:
752:
753:
754: missing_dir=`cd $ac_aux_dir && pwd`
755: echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1.59 ! paf 756: echo "configure:757: checking for working aclocal" >&5
1.1 paf 757: # Run test in a subshell; some versions of sh will print an error if
758: # an executable is not found, even if stderr is redirected.
759: # Redirect stdin to placate older versions of autoconf. Sigh.
760: if (aclocal --version) < /dev/null > /dev/null 2>&1; then
761: ACLOCAL=aclocal
762: echo "$ac_t""found" 1>&6
763: else
764: ACLOCAL="$missing_dir/missing aclocal"
765: echo "$ac_t""missing" 1>&6
766: fi
767:
768: echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1.59 ! paf 769: echo "configure:770: checking for working autoconf" >&5
1.1 paf 770: # Run test in a subshell; some versions of sh will print an error if
771: # an executable is not found, even if stderr is redirected.
772: # Redirect stdin to placate older versions of autoconf. Sigh.
773: if (autoconf --version) < /dev/null > /dev/null 2>&1; then
774: AUTOCONF=autoconf
775: echo "$ac_t""found" 1>&6
776: else
777: AUTOCONF="$missing_dir/missing autoconf"
778: echo "$ac_t""missing" 1>&6
779: fi
780:
781: echo $ac_n "checking for working automake""... $ac_c" 1>&6
1.59 ! paf 782: echo "configure:783: checking for working automake" >&5
1.1 paf 783: # Run test in a subshell; some versions of sh will print an error if
784: # an executable is not found, even if stderr is redirected.
785: # Redirect stdin to placate older versions of autoconf. Sigh.
786: if (automake --version) < /dev/null > /dev/null 2>&1; then
787: AUTOMAKE=automake
788: echo "$ac_t""found" 1>&6
789: else
790: AUTOMAKE="$missing_dir/missing automake"
791: echo "$ac_t""missing" 1>&6
792: fi
793:
794: echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1.59 ! paf 795: echo "configure:796: checking for working autoheader" >&5
1.1 paf 796: # Run test in a subshell; some versions of sh will print an error if
797: # an executable is not found, even if stderr is redirected.
798: # Redirect stdin to placate older versions of autoconf. Sigh.
799: if (autoheader --version) < /dev/null > /dev/null 2>&1; then
800: AUTOHEADER=autoheader
801: echo "$ac_t""found" 1>&6
802: else
803: AUTOHEADER="$missing_dir/missing autoheader"
804: echo "$ac_t""missing" 1>&6
805: fi
806:
807: echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1.59 ! paf 808: echo "configure:809: checking for working makeinfo" >&5
1.1 paf 809: # Run test in a subshell; some versions of sh will print an error if
810: # an executable is not found, even if stderr is redirected.
811: # Redirect stdin to placate older versions of autoconf. Sigh.
812: if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
813: MAKEINFO=makeinfo
814: echo "$ac_t""found" 1>&6
815: else
816: MAKEINFO="$missing_dir/missing makeinfo"
817: echo "$ac_t""missing" 1>&6
818: fi
819:
820:
821:
1.12 paf 822: P3S=`cd $srcdir/src ; pwd`
1.1 paf 823:
824:
825: PARSER_VERSION=$VERSION
1.6 paf 826: echo "/* automatically generated by configure */" > $srcdir/src/include/pa_version.h.new
827: echo "/* edit configure.in to change version number */" >> $srcdir/src/include/pa_version.h.new
828: echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> $srcdir/src/include/pa_version.h.new
829: cmp $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h >/dev/null 2>&1
1.1 paf 830: if test $? -ne 0 ; then
1.6 paf 831: rm -f $srcdir/src/include/pa_version.h && mv $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h && \
832: echo Updated $srcdir/src/include/pa_version.h
1.1 paf 833: else
1.6 paf 834: rm -f $srcdir/src/include/pa_version.h.new
1.1 paf 835: fi
836:
1.41 paf 837:
838: # Make sure we can run config.sub.
839: if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
840: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
841: fi
842:
843: echo $ac_n "checking host system type""... $ac_c" 1>&6
1.59 ! paf 844: echo "configure:845: checking host system type" >&5
1.41 paf 845:
846: host_alias=$host
847: case "$host_alias" in
848: NONE)
849: case $nonopt in
850: NONE)
851: if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
852: else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
853: fi ;;
854: *) host_alias=$nonopt ;;
855: esac ;;
856: esac
857:
858: host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
859: host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
860: host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
861: host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
862: echo "$ac_t""$host" 1>&6
863:
864:
865:
1.1 paf 866: # Find a good install program. We prefer a C program (faster),
867: # so one script is as good as another. But avoid the broken or
868: # incompatible versions:
869: # SysV /etc/install, /usr/sbin/install
870: # SunOS /usr/etc/install
871: # IRIX /sbin/install
872: # AIX /bin/install
873: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
874: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
875: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
876: # ./install, which can be erroneously created by make from ./install.sh.
877: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.59 ! paf 878: echo "configure:879: checking for a BSD compatible install" >&5
1.1 paf 879: if test -z "$INSTALL"; then
880: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
881: echo $ac_n "(cached) $ac_c" 1>&6
882: else
883: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
884: for ac_dir in $PATH; do
885: # Account for people who put trailing slashes in PATH elements.
886: case "$ac_dir/" in
887: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
888: *)
889: # OSF1 and SCO ODT 3.0 have their own names for install.
890: # Don't use installbsd from OSF since it installs stuff as root
891: # by default.
892: for ac_prog in ginstall scoinst install; do
893: if test -f $ac_dir/$ac_prog; then
894: if test $ac_prog = install &&
895: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
896: # AIX install. It has an incompatible calling convention.
897: :
898: else
899: ac_cv_path_install="$ac_dir/$ac_prog -c"
900: break 2
901: fi
902: fi
903: done
904: ;;
905: esac
906: done
907: IFS="$ac_save_IFS"
908:
909: fi
910: if test "${ac_cv_path_install+set}" = set; then
911: INSTALL="$ac_cv_path_install"
912: else
913: # As a last resort, use the slow shell script. We don't cache a
914: # path for INSTALL within a source directory, because that will
915: # break other packages using the cache if that directory is
916: # removed, or if the path is relative.
917: INSTALL="$ac_install_sh"
918: fi
919: fi
920: echo "$ac_t""$INSTALL" 1>&6
921:
922: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
923: # It thinks the first close brace ends the variable substitution.
924: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
925:
926: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
927:
928: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
929:
1.41 paf 930: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1.59 ! paf 931: echo "configure:932: checking whether ${MAKE-make} sets \${MAKE}" >&5
1.41 paf 932: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
933: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
934: echo $ac_n "(cached) $ac_c" 1>&6
935: else
936: cat > conftestmake <<\EOF
937: all:
938: @echo 'ac_maketemp="${MAKE}"'
939: EOF
940: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
941: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
942: if test -n "$ac_maketemp"; then
943: eval ac_cv_prog_make_${ac_make}_set=yes
944: else
945: eval ac_cv_prog_make_${ac_make}_set=no
946: fi
947: rm -f conftestmake
948: fi
949: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
950: echo "$ac_t""yes" 1>&6
951: SET_MAKE=
952: else
953: echo "$ac_t""no" 1>&6
954: SET_MAKE="MAKE=${MAKE-make}"
955: fi
956:
957: # Extract the first word of "ranlib", so it can be a program name with args.
958: set dummy ranlib; ac_word=$2
959: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.59 ! paf 960: echo "configure:961: checking for $ac_word" >&5
1.41 paf 961: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
962: echo $ac_n "(cached) $ac_c" 1>&6
963: else
964: if test -n "$RANLIB"; then
965: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
966: else
967: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
968: ac_dummy="$PATH"
969: for ac_dir in $ac_dummy; do
970: test -z "$ac_dir" && ac_dir=.
971: if test -f $ac_dir/$ac_word; then
972: ac_cv_prog_RANLIB="ranlib"
973: break
974: fi
975: done
976: IFS="$ac_save_ifs"
977: test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
978: fi
979: fi
980: RANLIB="$ac_cv_prog_RANLIB"
981: if test -n "$RANLIB"; then
982: echo "$ac_t""$RANLIB" 1>&6
983: else
984: echo "$ac_t""no" 1>&6
985: fi
986:
987: for ac_prog in mawk gawk nawk awk
988: do
989: # Extract the first word of "$ac_prog", so it can be a program name with args.
990: set dummy $ac_prog; ac_word=$2
991: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.59 ! paf 992: echo "configure:993: checking for $ac_word" >&5
1.41 paf 993: if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
994: echo $ac_n "(cached) $ac_c" 1>&6
995: else
996: if test -n "$AWK"; then
997: ac_cv_prog_AWK="$AWK" # Let the user override the test.
998: else
999: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1000: ac_dummy="$PATH"
1001: for ac_dir in $ac_dummy; do
1002: test -z "$ac_dir" && ac_dir=.
1003: if test -f $ac_dir/$ac_word; then
1004: ac_cv_prog_AWK="$ac_prog"
1005: break
1006: fi
1007: done
1008: IFS="$ac_save_ifs"
1009: fi
1010: fi
1011: AWK="$ac_cv_prog_AWK"
1012: if test -n "$AWK"; then
1013: echo "$ac_t""$AWK" 1>&6
1014: else
1015: echo "$ac_t""no" 1>&6
1016: fi
1017:
1018: test -n "$AWK" && break
1019: done
1020:
1021:
1022: for ac_prog in 'bison -y' byacc
1023: do
1024: # Extract the first word of "$ac_prog", so it can be a program name with args.
1025: set dummy $ac_prog; ac_word=$2
1026: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.59 ! paf 1027: echo "configure:1028: checking for $ac_word" >&5
1.41 paf 1028: if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1029: echo $ac_n "(cached) $ac_c" 1>&6
1030: else
1031: if test -n "$YACC"; then
1032: ac_cv_prog_YACC="$YACC" # Let the user override the test.
1033: else
1034: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1035: ac_dummy="$PATH"
1036: for ac_dir in $ac_dummy; do
1037: test -z "$ac_dir" && ac_dir=.
1038: if test -f $ac_dir/$ac_word; then
1039: ac_cv_prog_YACC="$ac_prog"
1040: break
1041: fi
1042: done
1043: IFS="$ac_save_ifs"
1044: fi
1045: fi
1046: YACC="$ac_cv_prog_YACC"
1047: if test -n "$YACC"; then
1048: echo "$ac_t""$YACC" 1>&6
1049: else
1050: echo "$ac_t""no" 1>&6
1051: fi
1052:
1053: test -n "$YACC" && break
1054: done
1055: test -n "$YACC" || YACC="yacc"
1056:
1057: if test "$YACC" != "bison -y"; then
1058: echo "configure: warning: to regenerate Parser grammar YOU WOULD NEED BISON" 1>&2
1059: else
1060: echo $ac_n "checking bison version""... $ac_c" 1>&6
1.59 ! paf 1061: echo "configure:1062: checking bison version" >&5
1.41 paf 1062: oldIFS=$IFS; IFS=.
1063: set `bison -V | sed -e 's/^GNU Bison version //'`
1064: IFS=$oldIFS
1065: if test "$1" = "1" -a "$2" -lt "25"; then
1066: echo "configure: warning: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." 1>&2
1067: fi
1068: echo "$ac_t""$1.$2 (ok)" 1>&6
1069: fi
1070:
1.1 paf 1071: # Extract the first word of "gcc", so it can be a program name with args.
1072: set dummy gcc; ac_word=$2
1073: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.59 ! paf 1074: echo "configure:1075: checking for $ac_word" >&5
1.1 paf 1075: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1076: echo $ac_n "(cached) $ac_c" 1>&6
1077: else
1078: if test -n "$CC"; then
1079: ac_cv_prog_CC="$CC" # Let the user override the test.
1080: else
1081: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1082: ac_dummy="$PATH"
1083: for ac_dir in $ac_dummy; do
1084: test -z "$ac_dir" && ac_dir=.
1085: if test -f $ac_dir/$ac_word; then
1086: ac_cv_prog_CC="gcc"
1087: break
1088: fi
1089: done
1090: IFS="$ac_save_ifs"
1091: fi
1092: fi
1093: CC="$ac_cv_prog_CC"
1094: if test -n "$CC"; then
1095: echo "$ac_t""$CC" 1>&6
1096: else
1097: echo "$ac_t""no" 1>&6
1098: fi
1099:
1100: if test -z "$CC"; then
1101: # Extract the first word of "cc", so it can be a program name with args.
1102: set dummy cc; ac_word=$2
1103: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.59 ! paf 1104: echo "configure:1105: checking for $ac_word" >&5
1.1 paf 1105: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1106: echo $ac_n "(cached) $ac_c" 1>&6
1107: else
1108: if test -n "$CC"; then
1109: ac_cv_prog_CC="$CC" # Let the user override the test.
1110: else
1111: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1112: ac_prog_rejected=no
1113: ac_dummy="$PATH"
1114: for ac_dir in $ac_dummy; do
1115: test -z "$ac_dir" && ac_dir=.
1116: if test -f $ac_dir/$ac_word; then
1117: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1118: ac_prog_rejected=yes
1119: continue
1120: fi
1121: ac_cv_prog_CC="cc"
1122: break
1123: fi
1124: done
1125: IFS="$ac_save_ifs"
1126: if test $ac_prog_rejected = yes; then
1127: # We found a bogon in the path, so make sure we never use it.
1128: set dummy $ac_cv_prog_CC
1129: shift
1130: if test $# -gt 0; then
1131: # We chose a different compiler from the bogus one.
1132: # However, it has the same basename, so the bogon will be chosen
1133: # first if we set CC to just the basename; use the full file name.
1134: shift
1135: set dummy "$ac_dir/$ac_word" "$@"
1136: shift
1137: ac_cv_prog_CC="$@"
1138: fi
1139: fi
1140: fi
1141: fi
1142: CC="$ac_cv_prog_CC"
1143: if test -n "$CC"; then
1144: echo "$ac_t""$CC" 1>&6
1145: else
1146: echo "$ac_t""no" 1>&6
1147: fi
1148:
1149: if test -z "$CC"; then
1150: case "`uname -s`" in
1151: *win32* | *WIN32*)
1152: # Extract the first word of "cl", so it can be a program name with args.
1153: set dummy cl; ac_word=$2
1154: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.59 ! paf 1155: echo "configure:1156: checking for $ac_word" >&5
1.1 paf 1156: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1157: echo $ac_n "(cached) $ac_c" 1>&6
1158: else
1159: if test -n "$CC"; then
1160: ac_cv_prog_CC="$CC" # Let the user override the test.
1161: else
1162: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1163: ac_dummy="$PATH"
1164: for ac_dir in $ac_dummy; do
1165: test -z "$ac_dir" && ac_dir=.
1166: if test -f $ac_dir/$ac_word; then
1167: ac_cv_prog_CC="cl"
1168: break
1169: fi
1170: done
1171: IFS="$ac_save_ifs"
1172: fi
1173: fi
1174: CC="$ac_cv_prog_CC"
1175: if test -n "$CC"; then
1176: echo "$ac_t""$CC" 1>&6
1177: else
1178: echo "$ac_t""no" 1>&6
1179: fi
1180: ;;
1181: esac
1182: fi
1183: test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1184: fi
1185:
1186: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.59 ! paf 1187: echo "configure:1188: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1.1 paf 1188:
1189: ac_ext=c
1190: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1191: ac_cpp='$CPP $CPPFLAGS'
1192: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1193: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1194: cross_compiling=$ac_cv_prog_cc_cross
1195:
1196: cat > conftest.$ac_ext << EOF
1197:
1.59 ! paf 1198: #line 1199 "configure"
1.1 paf 1199: #include "confdefs.h"
1200:
1201: main(){return(0);}
1202: EOF
1.59 ! paf 1203: if { (eval echo configure:1204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 1204: ac_cv_prog_cc_works=yes
1205: # If we can't run a trivial program, we are probably using a cross compiler.
1206: if (./conftest; exit) 2>/dev/null; then
1207: ac_cv_prog_cc_cross=no
1208: else
1209: ac_cv_prog_cc_cross=yes
1210: fi
1211: else
1212: echo "configure: failed program was:" >&5
1213: cat conftest.$ac_ext >&5
1214: ac_cv_prog_cc_works=no
1215: fi
1216: rm -fr conftest*
1217: ac_ext=c
1218: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1219: ac_cpp='$CPP $CPPFLAGS'
1220: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1221: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1222: cross_compiling=$ac_cv_prog_cc_cross
1223:
1224: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1225: if test $ac_cv_prog_cc_works = no; then
1226: { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1227: fi
1228: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.59 ! paf 1229: echo "configure:1230: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1 paf 1230: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1231: cross_compiling=$ac_cv_prog_cc_cross
1232:
1233: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1.59 ! paf 1234: echo "configure:1235: checking whether we are using GNU C" >&5
1.1 paf 1235: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1236: echo $ac_n "(cached) $ac_c" 1>&6
1237: else
1238: cat > conftest.c <<EOF
1239: #ifdef __GNUC__
1240: yes;
1241: #endif
1242: EOF
1.59 ! paf 1243: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1 paf 1244: ac_cv_prog_gcc=yes
1245: else
1246: ac_cv_prog_gcc=no
1247: fi
1248: fi
1249:
1250: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1251:
1252: if test $ac_cv_prog_gcc = yes; then
1253: GCC=yes
1254: else
1255: GCC=
1256: fi
1257:
1258: ac_test_CFLAGS="${CFLAGS+set}"
1259: ac_save_CFLAGS="$CFLAGS"
1260: CFLAGS=
1261: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1.59 ! paf 1262: echo "configure:1263: checking whether ${CC-cc} accepts -g" >&5
1.1 paf 1263: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1264: echo $ac_n "(cached) $ac_c" 1>&6
1265: else
1266: echo 'void f(){}' > conftest.c
1267: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1268: ac_cv_prog_cc_g=yes
1269: else
1270: ac_cv_prog_cc_g=no
1271: fi
1272: rm -f conftest*
1273:
1274: fi
1275:
1276: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1277: if test "$ac_test_CFLAGS" = set; then
1278: CFLAGS="$ac_save_CFLAGS"
1279: elif test $ac_cv_prog_cc_g = yes; then
1280: if test "$GCC" = yes; then
1281: CFLAGS="-g -O2"
1282: else
1283: CFLAGS="-g"
1284: fi
1285: else
1286: if test "$GCC" = yes; then
1287: CFLAGS="-O2"
1288: else
1289: CFLAGS=
1290: fi
1291: fi
1292:
1293: ac_ext=c
1294: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1295: ac_cpp='$CPP $CPPFLAGS'
1296: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1297: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1298: cross_compiling=$ac_cv_prog_cc_cross
1299: echo $ac_n "checking for inline""... $ac_c" 1>&6
1.59 ! paf 1300: echo "configure:1301: checking for inline" >&5
1.1 paf 1301: if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1302: echo $ac_n "(cached) $ac_c" 1>&6
1303: else
1304: ac_cv_c_inline=no
1305: for ac_kw in inline __inline__ __inline; do
1306: cat > conftest.$ac_ext <<EOF
1.59 ! paf 1307: #line 1308 "configure"
1.1 paf 1308: #include "confdefs.h"
1309:
1310: int main() {
1311: } $ac_kw foo() {
1312: ; return 0; }
1313: EOF
1.59 ! paf 1314: if { (eval echo configure:1315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 paf 1315: rm -rf conftest*
1316: ac_cv_c_inline=$ac_kw; break
1317: else
1318: echo "configure: failed program was:" >&5
1319: cat conftest.$ac_ext >&5
1320: fi
1321: rm -f conftest*
1322: done
1323:
1324: fi
1325:
1326: echo "$ac_t""$ac_cv_c_inline" 1>&6
1327: case "$ac_cv_c_inline" in
1328: inline | yes) ;;
1329: no) cat >> confdefs.h <<\EOF
1330: #define inline
1331: EOF
1332: ;;
1333: *) cat >> confdefs.h <<EOF
1334: #define inline $ac_cv_c_inline
1335: EOF
1336: ;;
1337: esac
1338:
1339: for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1340: do
1341: # Extract the first word of "$ac_prog", so it can be a program name with args.
1342: set dummy $ac_prog; ac_word=$2
1343: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.59 ! paf 1344: echo "configure:1345: checking for $ac_word" >&5
1.1 paf 1345: if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1346: echo $ac_n "(cached) $ac_c" 1>&6
1347: else
1348: if test -n "$CXX"; then
1349: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1350: else
1351: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1352: ac_dummy="$PATH"
1353: for ac_dir in $ac_dummy; do
1354: test -z "$ac_dir" && ac_dir=.
1355: if test -f $ac_dir/$ac_word; then
1356: ac_cv_prog_CXX="$ac_prog"
1357: break
1358: fi
1359: done
1360: IFS="$ac_save_ifs"
1361: fi
1362: fi
1363: CXX="$ac_cv_prog_CXX"
1364: if test -n "$CXX"; then
1365: echo "$ac_t""$CXX" 1>&6
1366: else
1367: echo "$ac_t""no" 1>&6
1368: fi
1369:
1370: test -n "$CXX" && break
1371: done
1372: test -n "$CXX" || CXX="gcc"
1373:
1374:
1375: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.59 ! paf 1376: echo "configure:1377: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1.1 paf 1377:
1378: ac_ext=C
1379: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1380: ac_cpp='$CXXCPP $CPPFLAGS'
1381: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1382: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1383: cross_compiling=$ac_cv_prog_cxx_cross
1384:
1385: cat > conftest.$ac_ext << EOF
1386:
1.59 ! paf 1387: #line 1388 "configure"
1.1 paf 1388: #include "confdefs.h"
1389:
1390: int main(){return(0);}
1391: EOF
1.59 ! paf 1392: if { (eval echo configure:1393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 1393: ac_cv_prog_cxx_works=yes
1394: # If we can't run a trivial program, we are probably using a cross compiler.
1395: if (./conftest; exit) 2>/dev/null; then
1396: ac_cv_prog_cxx_cross=no
1397: else
1398: ac_cv_prog_cxx_cross=yes
1399: fi
1400: else
1401: echo "configure: failed program was:" >&5
1402: cat conftest.$ac_ext >&5
1403: ac_cv_prog_cxx_works=no
1404: fi
1405: rm -fr conftest*
1406: ac_ext=c
1407: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1408: ac_cpp='$CPP $CPPFLAGS'
1409: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1410: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1411: cross_compiling=$ac_cv_prog_cc_cross
1412:
1413: echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1414: if test $ac_cv_prog_cxx_works = no; then
1415: { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1416: fi
1417: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.59 ! paf 1418: echo "configure:1419: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1 paf 1419: echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1420: cross_compiling=$ac_cv_prog_cxx_cross
1421:
1422: echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1.59 ! paf 1423: echo "configure:1424: checking whether we are using GNU C++" >&5
1.1 paf 1424: if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1425: echo $ac_n "(cached) $ac_c" 1>&6
1426: else
1427: cat > conftest.C <<EOF
1428: #ifdef __GNUC__
1429: yes;
1430: #endif
1431: EOF
1.59 ! paf 1432: if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1 paf 1433: ac_cv_prog_gxx=yes
1434: else
1435: ac_cv_prog_gxx=no
1436: fi
1437: fi
1438:
1439: echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1440:
1441: if test $ac_cv_prog_gxx = yes; then
1442: GXX=yes
1443: else
1444: GXX=
1445: fi
1446:
1447: ac_test_CXXFLAGS="${CXXFLAGS+set}"
1448: ac_save_CXXFLAGS="$CXXFLAGS"
1449: CXXFLAGS=
1450: echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1.59 ! paf 1451: echo "configure:1452: checking whether ${CXX-g++} accepts -g" >&5
1.1 paf 1452: if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1453: echo $ac_n "(cached) $ac_c" 1>&6
1454: else
1455: echo 'void f(){}' > conftest.cc
1456: if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1457: ac_cv_prog_cxx_g=yes
1458: else
1459: ac_cv_prog_cxx_g=no
1460: fi
1461: rm -f conftest*
1462:
1463: fi
1464:
1465: echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1466: if test "$ac_test_CXXFLAGS" = set; then
1467: CXXFLAGS="$ac_save_CXXFLAGS"
1468: elif test $ac_cv_prog_cxx_g = yes; then
1469: if test "$GXX" = yes; then
1470: CXXFLAGS="-g -O2"
1471: else
1472: CXXFLAGS="-g"
1473: fi
1474: else
1475: if test "$GXX" = yes; then
1476: CXXFLAGS="-O2"
1477: else
1478: CXXFLAGS=
1479: fi
1480: fi
1481:
1482: ac_ext=C
1483: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1484: ac_cpp='$CXXCPP $CPPFLAGS'
1485: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1486: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1487: cross_compiling=$ac_cv_prog_cxx_cross
1488:
1489:
1490:
1491: # Check whether --enable-string-origins or --disable-string-origins was given.
1492: if test "${enable_string_origins+set}" = set; then
1493: enableval="$enable_string_origins"
1494:
1495: if test "$enableval" = "no"; then
1.14 paf 1496: echo "configure: warning: disabling string origin tracking" 1>&2
1.1 paf 1497: cat >> confdefs.h <<\EOF
1498: #define NO_STRING_ORIGIN
1499: EOF
1500:
1501: fi
1502:
1503:
1504: fi
1505:
1506:
1.13 paf 1507: # Check whether --enable-execs or --disable-execs was given.
1508: if test "${enable_execs+set}" = set; then
1509: enableval="$enable_execs"
1510:
1511: if test "$enableval" = "no"; then
1.14 paf 1512: echo "configure: warning: disabling file execs" 1>&2
1.13 paf 1513: cat >> confdefs.h <<\EOF
1514: #define NO_PA_EXECS
1515: EOF
1516:
1517: fi
1518:
1519:
1520: fi
1521:
1522:
1.14 paf 1523: # Check whether --enable-foreign-group-files or --disable-foreign-group-files was given.
1524: if test "${enable_foreign_group_files+set}" = set; then
1525: enableval="$enable_foreign_group_files"
1526:
1527: if test "$enableval" = "no"; then
1528: echo "configure: warning: disabling reading of files belonging to group other then effective" 1>&2
1529: cat >> confdefs.h <<\EOF
1530: #define NO_FOREIGN_GROUP_FILES
1531: EOF
1532:
1533: fi
1534:
1535:
1536: fi
1537:
1.18 paf 1538: srccharsetsdir=$srcdir/etc/parser3.charsets
1.17 paf 1539: CHARSETS_REQUESTED="windows-1251"
1540: # Check whether --with-charsets or --without-charsets was given.
1541: if test "${with_charsets+set}" = set; then
1542: withval="$with_charsets"
1543: CHARSETS_REQUESTED=`echo $withval | sed -e 's/,/ /g'`
1544: fi
1545:
1546:
1.18 paf 1547: # Checking whether all requested charsets have corresponding .cfg files
1548: for c in $CHARSETS_REQUESTED; do
1549: if test \! -f $srccharsetsdir/$c.cfg; then
1550: { echo "configure: error: bad charset requested "$c" - file $srccharsetsdir/$c.cfg not found" 1>&2; exit 1; }
1551: fi
1552: done
1.17 paf 1553:
1.18 paf 1554: # Switching on commentcharset_XXX='#'
1.17 paf 1555:
1556:
1557: commentcharset_windows1251='#'
1.18 paf 1558: for c in $CHARSETS_REQUESTED; do
1.17 paf 1559: if test "windows-1251" = "$c"; then
1.18 paf 1560: echo "configure: warning: Enabling charset windows-1251" 1>&2
1561: commentcharset_windows1251=
1.17 paf 1562: fi
1563: done
1564:
1565:
1566:
1567: commentcharset_windows1250='#'
1.18 paf 1568: for c in $CHARSETS_REQUESTED; do
1.17 paf 1569: if test "windows-1250" = "$c"; then
1.18 paf 1570: echo "configure: warning: Enabling charset windows-1250" 1>&2
1571: commentcharset_windows1250=
1.17 paf 1572: fi
1573: done
1574:
1575:
1576:
1577: commentcharset_windows1257='#'
1.18 paf 1578: for c in $CHARSETS_REQUESTED; do
1.17 paf 1579: if test "windows-1257" = "$c"; then
1.18 paf 1580: echo "configure: warning: Enabling charset windows-1257" 1>&2
1581: commentcharset_windows1257=
1.17 paf 1582: fi
1583: done
1584:
1585:
1586:
1587: commentcharset_koi8r='#'
1.18 paf 1588: for c in $CHARSETS_REQUESTED; do
1.17 paf 1589: if test "koi8-r" = "$c"; then
1.18 paf 1590: echo "configure: warning: Enabling charset koi8-r" 1>&2
1591: commentcharset_koi8r=
1.17 paf 1592: fi
1593: done
1594:
1595:
1596:
1597:
1.40 paf 1598: echo $ac_n "checking for dynamic-link library extension""... $ac_c" 1>&6
1.59 ! paf 1599: echo "configure:1600: checking for dynamic-link library extension" >&5
1.40 paf 1600: case "$host_os" in
1601: hpux9* | hpux10* | hpux11*)
1602: dll_extension=sl
1603: ;;
1604: cygwin)
1605: dll_extension=dll
1606: ;;
1607: *)
1608: dll_extension=so
1609: esac
1610: echo "$ac_t""$dll_extension" 1>&6
1611:
1612:
1.17 paf 1613: # Check whether --with-mysql-client or --without-mysql-client was given.
1614: if test "${with_mysql_client+set}" = set; then
1615: withval="$with_mysql_client"
1616: mysql_client=$withval
1617:
1618: else
1619: echo $ac_n "checking for mysql client""... $ac_c" 1>&6
1.59 ! paf 1620: echo "configure:1621: checking for mysql client" >&5
1.17 paf 1621: for lib in \
1.40 paf 1622: /usr/local/lib/mysql/libmysqlclient.$dll_extension \
1623: /usr/local/lib/libmysqlclient.$dll_extension \
1624: /usr/lib/libmysqlclient.$dll_extension; do
1.17 paf 1625: if test -f $lib; then mysql_client=$lib; fi
1626: done
1627:
1628: if test -z "$mysql_client"; then
1629: mysql_client="-configure could not guess-"
1630: echo "configure: warning: could not guess mysql client" 1>&2
1631: else
1632: echo "$ac_t""$mysql_client" 1>&6
1633: fi
1634:
1635:
1636: fi
1637:
1638:
1639:
1640: # Check whether --with-pgsql-client or --without-pgsql-client was given.
1641: if test "${with_pgsql_client+set}" = set; then
1642: withval="$with_pgsql_client"
1643: mysql_client=$withval
1644:
1645: else
1646: echo $ac_n "checking for pgsql client""... $ac_c" 1>&6
1.59 ! paf 1647: echo "configure:1648: checking for pgsql client" >&5
1.17 paf 1648: for lib in \
1.40 paf 1649: /usr/local/pgsql/lib/libpq.$dll_extension \
1650: /usr/local/lib/libpq.$dll_extension \
1651: /usr/lib/libpq.$dll_extension; do
1.17 paf 1652: if test -f $lib; then pgsql_client=$lib; fi
1653: done
1654:
1655: if test -z "$pgsql_client"; then
1656: pgsql_client="-configure could not guess-"
1657: echo "configure: warning: could not guess pgsql client" 1>&2
1658: else
1659: echo "$ac_t""$pgsql_client" 1>&6
1660: fi
1661:
1662:
1663: fi
1664:
1665:
1666:
1667: # Check whether --with-oracle-client or --without-oracle-client was given.
1668: if test "${with_oracle_client+set}" = set; then
1669: withval="$with_oracle_client"
1670: oracle_client=$withval
1671:
1672: else
1673: echo $ac_n "checking for oracle client""... $ac_c" 1>&6
1.59 ! paf 1674: echo "configure:1675: checking for oracle client" >&5
1.40 paf 1675: lib=$ORACLE_HOME/lib/libclntsh.$dll_extension
1.17 paf 1676: if test -f $lib; then oracle_client=$lib; fi
1677:
1678: if test -z "$oracle_client"; then
1679: oracle_client="-configure could not guess-"
1680: echo "configure: warning: could not guess oracle client" 1>&2
1681: else
1682: oracle_client="$oracle_client?ORACLE_HOME=$ORACLE_HOME&ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data"
1683: echo "$ac_t""$oracle_client" 1>&6
1684: fi
1685:
1686:
1687: fi
1688:
1689:
1690:
1691:
1.14 paf 1692:
1.1 paf 1693: # Check whether --with-pathlink or --without-pathlink was given.
1694: if test "${with_pathlink+set}" = set; then
1695: withval="$with_pathlink"
1696: LD_PATHLINK=$withval
1697:
1698: fi
1699:
1.59 ! paf 1700: # Check whether --with-link-stdcpp or --without-link-stdcpp was given.
! 1701: if test "${with_link_stdcpp+set}" = set; then
! 1702: withval="$with_link_stdcpp"
! 1703:
! 1704: LIBSTDCPP_PATH=$withval
! 1705: if test "$LIBSTDCPP_PATH" = "no"; then
! 1706: echo "configure: warning: disabling libstdc++ linkage" 1>&2
! 1707: else
! 1708: if test -z "$LD_PATHLINK"; then
! 1709: { echo "configure: error: when using --with-link-stdcpp one must specify --with-pathlink" 1>&2; exit 1; }
! 1710: fi
! 1711: LIBS="$LIBS -Wl,$LD_PATHLINK -Wl,$LIBSTDCPP_PATH"
! 1712: fi
! 1713:
! 1714: else
! 1715: #pseudo path, meaning still link libstdcpp. value needed to trick next _CONDITIONAL
! 1716: LIBSTDCPP_PATH=" "
! 1717:
! 1718: fi
! 1719:
! 1720:
! 1721:
! 1722: if test "$LIBSTDCPP_PATH" = "no"; then
! 1723: DO_NOT_LINK_LIBSTDCPP_TRUE=
! 1724: DO_NOT_LINK_LIBSTDCPP_FALSE='#'
! 1725: else
! 1726: DO_NOT_LINK_LIBSTDCPP_TRUE='#'
! 1727: DO_NOT_LINK_LIBSTDCPP_FALSE=
! 1728: fi
! 1729:
! 1730:
! 1731:
1.37 paf 1732: # Check whether --with-sjlj-exceptions or --without-sjlj-exceptions was given.
1733: if test "${with_sjlj_exceptions+set}" = set; then
1734: withval="$with_sjlj_exceptions"
1735: cat >> confdefs.h <<\EOF
1736: #define PA_WITH_SJLJ_EXCEPTIONS
1737: EOF
1738:
1739:
1740: fi
1741:
1.1 paf 1742:
1.15 paf 1743:
1.7 paf 1744: # Check whether --with-glib-config or --without-glib-config was given.
1745: if test "${with_glib_config+set}" = set; then
1746: withval="$with_glib_config"
1747: GLIB_CONFIG=$withval
1748:
1749: fi
1750:
1751:
1.10 paf 1752: # Check whether --with-shared-xml or --without-shared-xml was given.
1753: if test "${with_shared_xml+set}" = set; then
1754: withval="$with_shared_xml"
1.1 paf 1755:
1756: GNOME_XML=$withval
1.11 paf 1757: XMLBIN="$GNOME_XML/bin"
1758: XMLINC="$GNOME_XML/include"
1759: XMLLIB="$GNOME_XML/lib"
1.1 paf 1760:
1.11 paf 1761: if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
1.1 paf 1762: { echo "configure: error: $GNOME_XML does not seem to be valid Gnome installation directory" 1>&2; exit 1; }
1763: fi
1764:
1765: cat >> confdefs.h <<\EOF
1766: #define XML
1767: EOF
1768:
1769:
1.11 paf 1770: LIBXML2_SO_NAME=`cd $XMLLIB ; ls libxml2.?? libxml2.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1771: LIBGDOME_SO_NAME=`cd $XMLLIB ; ls libgdome.?? libgdome.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1772: LIBXSLT_SO_NAME=`cd $XMLLIB ; ls libxslt.?? libxslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1773: LIBEXSLT_SO_NAME=`cd $XMLLIB ; ls libexslt.?? libexslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1.7 paf 1774:
1775: if test -z "$GLIB_CONFIG"; then
1.11 paf 1776: GLIB_CONFIG=$XMLBIN/glib-config
1.7 paf 1777: if test \! -x $GLIB_CONFIG; then
1778: GLIB_CONFIG=glib-config
1779: fi
1.1 paf 1780: fi
1781: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1782: GLIB_LIBS=`$GLIB_CONFIG --libs`
1783:
1.11 paf 1784: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libgdome -I$XMLINC/libxml2"
1785: XML_LIBS="$GLIB_LIBS -L$XMLLIB -l$LIBXML2_SO_NAME -l$LIBGDOME_SO_NAME -l$LIBXSLT_SO_NAME -l$LIBEXSLT_SO_NAME"
1.1 paf 1786: if test \! -z "$LD_PATHLINK"; then
1.11 paf 1787: XML_LIBS="$XML_LIBS -Wl,$LD_PATHLINK -Wl,$XMLLIB"
1.1 paf 1788: fi
1789:
1790: fi
1791:
1.10 paf 1792: # Check whether --with-static-xml or --without-static-xml was given.
1793: if test "${with_static_xml+set}" = set; then
1794: withval="$with_static_xml"
1795:
1796: GNOME_XML=$withval
1.11 paf 1797: XMLBIN="$GNOME_XML/bin"
1798: XMLINC="$GNOME_XML/include"
1799: XMLLIB="$GNOME_XML/lib"
1.10 paf 1800:
1.11 paf 1801: if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
1.10 paf 1802: { echo "configure: error: $GNOME_XML does not seem to be valid Gnome installation directory" 1>&2; exit 1; }
1803: fi
1804:
1805: cat >> confdefs.h <<\EOF
1806: #define XML
1807: EOF
1808:
1809:
1810: if test -z "$GLIB_CONFIG"; then
1.11 paf 1811: GLIB_CONFIG=$XMLBIN/glib-config
1.10 paf 1812: if test \! -x $GLIB_CONFIG; then
1813: GLIB_CONFIG=glib-config
1814: fi
1815: fi
1816: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1817:
1.11 paf 1818: GLIB_DIR=`$GLIB_CONFIG --libs | sed 's/.*-L\([^ ]*\).*/\1/'`
1819: GLIB_NAME=`$GLIB_CONFIG --libs | sed 's/.*-l\([^ ]*\).*/\1/'`
1820: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libgdome -I$XMLINC/libxml2"
1821: XML_LIBS="$XMLLIB/libgdome.a $XMLLIB/libxslt.a $XMLLIB/libexslt.a $XMLLIB/libxml2.a $GLIB_DIR/lib$GLIB_NAME.a"
1.10 paf 1822:
1823: fi
1824:
1825:
1.1 paf 1826:
1827:
1.29 paf 1828: # Check whether --with-shared-mailreceive or --without-shared-mailreceive was given.
1829: if test "${with_shared_mailreceive+set}" = set; then
1830: withval="$with_shared_mailreceive"
1831:
1832: GNOME_MIME=$withval
1833: MIMEBIN="$GNOME_MIME/bin"
1834: MIMEINC="$GNOME_MIME/include"
1835: MIMELIB="$GNOME_MIME/lib"
1836:
1837: if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
1838: { echo "configure: error: $GNOME_MIME does not seem to be valid Gnome installation directory" 1>&2; exit 1; }
1839: fi
1840:
1841: cat >> confdefs.h <<\EOF
1842: #define WITH_MAILRECEIVE
1843: EOF
1844:
1845:
1846: LIBMIME_SO_NAME=`cd $MIMELIB ; ls libgmime.?? libgmime.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1847:
1848: if test -z "$GLIB_CONFIG"; then
1849: GLIB_CONFIG=$MIMEBIN/glib-config
1850: if test \! -x $GLIB_CONFIG; then
1851: GLIB_CONFIG=glib-config
1852: fi
1853: fi
1854: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1855: GLIB_LIBS=`$GLIB_CONFIG --libs`
1856:
1857: MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
1858: MIME_LIBS="$GLIB_LIBS -L$MIMELIB -l$LIBMIME_SO_NAME"
1859: if test \! -z "$LD_PATHLINK"; then
1860: MIME_LIBS="$MIME_LIBS -Wl,$LD_PATHLINK -Wl,$MIMELIB"
1861: fi
1862:
1863: fi
1864:
1865: # Check whether --with-static-mailreceive or --without-static-mailreceive was given.
1866: if test "${with_static_mailreceive+set}" = set; then
1867: withval="$with_static_mailreceive"
1868:
1869: GNOME_MIME=$withval
1870: MIMEBIN="$GNOME_MIME/bin"
1871: MIMEINC="$GNOME_MIME/include"
1872: MIMELIB="$GNOME_MIME/lib"
1873:
1874: if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
1875: { echo "configure: error: $GNOME_MIME does not seem to be valid Gnome installation directory" 1>&2; exit 1; }
1876: fi
1877:
1878: cat >> confdefs.h <<\EOF
1879: #define WITH_MAILRECEIVE
1880: EOF
1881:
1882:
1883: if test -z "$GLIB_CONFIG"; then
1884: GLIB_CONFIG=$MIMEBIN/glib-config
1885: if test \! -x $GLIB_CONFIG; then
1886: GLIB_CONFIG=glib-config
1887: fi
1888: fi
1889: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1890:
1891: GLIB_DIR=`$GLIB_CONFIG --libs | sed 's/.*-L\([^ ]*\).*/\1/'`
1892: GLIB_NAME=`$GLIB_CONFIG --libs | sed 's/.*-l\([^ ]*\).*/\1/'`
1893: MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
1894: MIME_LIBS="$MIMELIB/libgmime.a $GLIB_DIR/lib$GLIB_NAME.a"
1895:
1896: fi
1897:
1898:
1899:
1900:
1.16 paf 1901:
1902: # Check whether --with-sendmail or --without-sendmail was given.
1903: if test "${with_sendmail+set}" = set; then
1904: withval="$with_sendmail"
1905: cat >> confdefs.h <<EOF
1906: #define PA_FORCED_SENDMAIL "$withval"
1907: EOF
1908:
1909:
1910: fi
1911:
1912:
1913:
1.12 paf 1914: # Check whether --with-apache13 or --without-apache13 was given.
1915: if test "${with_apache13+set}" = set; then
1916: withval="$with_apache13"
1917: APACHE13=$withval
1918: if test \! -f "$APACHE13/src/include/httpd.h"; then
1919: { echo "configure: error: $APACHE13 does not seem to be valid Apache13 source distribution directory" 1>&2; exit 1; }
1920: fi
1921:
1922: fi
1923:
1924:
1925:
1926:
1927: if test -n "$APACHE13"; then
1928: COMPILE_APACHE13_MODULE_TRUE=
1929: COMPILE_APACHE13_MODULE_FALSE='#'
1930: else
1931: COMPILE_APACHE13_MODULE_TRUE='#'
1932: COMPILE_APACHE13_MODULE_FALSE=
1933: fi
1934:
1935:
1.54 paf 1936: case "$enable_ltdl_convenience" in
1937: no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1938: "") enable_ltdl_convenience=yes
1939: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1940: esac
1941: LIBLTDL='${top_builddir}/'src/lib/ltdl/libltdlc.a
1942: INCLTDL='-I${top_srcdir}/'src/lib/ltdl
1.1 paf 1943:
1944:
1945:
1946:
1.54 paf 1947: subdirs="src/lib/ltdl"
1.8 paf 1948:
1949: LIBADD_DL=
1950: echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1.59 ! paf 1951: echo "configure:1952: checking for dlopen in -ldl" >&5
1.8 paf 1952: ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1953: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1954: echo $ac_n "(cached) $ac_c" 1>&6
1.1 paf 1955: else
1.8 paf 1956: ac_save_LIBS="$LIBS"
1957: LIBS="-ldl $LIBS"
1958: cat > conftest.$ac_ext <<EOF
1.59 ! paf 1959: #line 1960 "configure"
1.8 paf 1960: #include "confdefs.h"
1961: /* Override any gcc2 internal prototype to avoid an error. */
1962: #ifdef __cplusplus
1963: extern "C"
1964: #endif
1965: /* We use char because int might match the return type of a gcc2
1966: builtin and then its argument prototype would still apply. */
1967: char dlopen();
1.1 paf 1968:
1.8 paf 1969: int main() {
1970: dlopen()
1971: ; return 0; }
1972: EOF
1.59 ! paf 1973: if { (eval echo configure:1974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 1974: rm -rf conftest*
1975: eval "ac_cv_lib_$ac_lib_var=yes"
1.1 paf 1976: else
1.8 paf 1977: echo "configure: failed program was:" >&5
1978: cat conftest.$ac_ext >&5
1979: rm -rf conftest*
1980: eval "ac_cv_lib_$ac_lib_var=no"
1.1 paf 1981: fi
1.8 paf 1982: rm -f conftest*
1983: LIBS="$ac_save_LIBS"
1.1 paf 1984:
1.8 paf 1985: fi
1986: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1987: echo "$ac_t""yes" 1>&6
1988: cat >> confdefs.h <<\EOF
1989: #define HAVE_LIBDL 1
1990: EOF
1991: LIBADD_DL="-ldl"
1992: else
1993: echo "$ac_t""no" 1>&6
1994: echo $ac_n "checking for dlopen""... $ac_c" 1>&6
1.59 ! paf 1995: echo "configure:1996: checking for dlopen" >&5
1.8 paf 1996: if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
1997: echo $ac_n "(cached) $ac_c" 1>&6
1.1 paf 1998: else
1.8 paf 1999: cat > conftest.$ac_ext <<EOF
1.59 ! paf 2000: #line 2001 "configure"
1.8 paf 2001: #include "confdefs.h"
2002: /* System header to define __stub macros and hopefully few prototypes,
2003: which can conflict with char dlopen(); below. */
2004: #include <assert.h>
2005: /* Override any gcc2 internal prototype to avoid an error. */
2006: #ifdef __cplusplus
2007: extern "C"
2008: #endif
2009: /* We use char because int might match the return type of a gcc2
2010: builtin and then its argument prototype would still apply. */
2011: char dlopen();
1.1 paf 2012:
1.8 paf 2013: int main() {
1.1 paf 2014:
1.8 paf 2015: /* The GNU C library defines this for functions which it implements
2016: to always fail with ENOSYS. Some functions are actually named
2017: something starting with __ and the normal name is an alias. */
2018: #if defined (__stub_dlopen) || defined (__stub___dlopen)
2019: choke me
2020: #else
2021: dlopen();
2022: #endif
1.1 paf 2023:
1.8 paf 2024: ; return 0; }
2025: EOF
1.59 ! paf 2026: if { (eval echo configure:2027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 2027: rm -rf conftest*
2028: eval "ac_cv_func_dlopen=yes"
1.1 paf 2029: else
1.8 paf 2030: echo "configure: failed program was:" >&5
2031: cat conftest.$ac_ext >&5
2032: rm -rf conftest*
2033: eval "ac_cv_func_dlopen=no"
1.1 paf 2034: fi
1.8 paf 2035: rm -f conftest*
1.1 paf 2036: fi
2037:
1.8 paf 2038: if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
2039: echo "$ac_t""yes" 1>&6
2040: cat >> confdefs.h <<\EOF
2041: #define HAVE_LIBDL 1
2042: EOF
2043:
1.1 paf 2044: else
2045: echo "$ac_t""no" 1>&6
2046: fi
1.8 paf 2047:
2048: fi
2049:
2050: echo $ac_n "checking for shl_load""... $ac_c" 1>&6
1.59 ! paf 2051: echo "configure:2052: checking for shl_load" >&5
1.8 paf 2052: if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
1.1 paf 2053: echo $ac_n "(cached) $ac_c" 1>&6
2054: else
1.8 paf 2055: cat > conftest.$ac_ext <<EOF
1.59 ! paf 2056: #line 2057 "configure"
1.8 paf 2057: #include "confdefs.h"
2058: /* System header to define __stub macros and hopefully few prototypes,
2059: which can conflict with char shl_load(); below. */
2060: #include <assert.h>
2061: /* Override any gcc2 internal prototype to avoid an error. */
2062: #ifdef __cplusplus
2063: extern "C"
2064: #endif
2065: /* We use char because int might match the return type of a gcc2
2066: builtin and then its argument prototype would still apply. */
2067: char shl_load();
1.1 paf 2068:
1.8 paf 2069: int main() {
1.1 paf 2070:
1.8 paf 2071: /* The GNU C library defines this for functions which it implements
2072: to always fail with ENOSYS. Some functions are actually named
2073: something starting with __ and the normal name is an alias. */
2074: #if defined (__stub_shl_load) || defined (__stub___shl_load)
2075: choke me
2076: #else
2077: shl_load();
2078: #endif
1.1 paf 2079:
1.8 paf 2080: ; return 0; }
2081: EOF
1.59 ! paf 2082: if { (eval echo configure:2083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 2083: rm -rf conftest*
2084: eval "ac_cv_func_shl_load=yes"
1.1 paf 2085: else
1.8 paf 2086: echo "configure: failed program was:" >&5
2087: cat conftest.$ac_ext >&5
2088: rm -rf conftest*
2089: eval "ac_cv_func_shl_load=no"
1.1 paf 2090: fi
1.8 paf 2091: rm -f conftest*
1.1 paf 2092: fi
2093:
1.8 paf 2094: if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
2095: echo "$ac_t""yes" 1>&6
2096: cat >> confdefs.h <<\EOF
2097: #define HAVE_SHL_LOAD 1
2098: EOF
1.1 paf 2099:
1.8 paf 2100: else
2101: echo "$ac_t""no" 1>&6
2102: echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
1.59 ! paf 2103: echo "configure:2104: checking for shl_load in -ldld" >&5
1.8 paf 2104: ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
2105: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1.1 paf 2106: echo $ac_n "(cached) $ac_c" 1>&6
2107: else
1.8 paf 2108: ac_save_LIBS="$LIBS"
2109: LIBS="-ldld $LIBS"
2110: cat > conftest.$ac_ext <<EOF
1.59 ! paf 2111: #line 2112 "configure"
1.8 paf 2112: #include "confdefs.h"
2113: /* Override any gcc2 internal prototype to avoid an error. */
2114: #ifdef __cplusplus
2115: extern "C"
2116: #endif
2117: /* We use char because int might match the return type of a gcc2
2118: builtin and then its argument prototype would still apply. */
2119: char shl_load();
2120:
2121: int main() {
2122: shl_load()
2123: ; return 0; }
2124: EOF
1.59 ! paf 2125: if { (eval echo configure:2126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 2126: rm -rf conftest*
2127: eval "ac_cv_lib_$ac_lib_var=yes"
1.1 paf 2128: else
1.8 paf 2129: echo "configure: failed program was:" >&5
2130: cat conftest.$ac_ext >&5
2131: rm -rf conftest*
2132: eval "ac_cv_lib_$ac_lib_var=no"
1.1 paf 2133: fi
1.8 paf 2134: rm -f conftest*
2135: LIBS="$ac_save_LIBS"
2136:
1.1 paf 2137: fi
1.8 paf 2138: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1.1 paf 2139: echo "$ac_t""yes" 1>&6
1.8 paf 2140: cat >> confdefs.h <<\EOF
2141: #define HAVE_SHL_LOAD 1
2142: EOF
2143: LIBADD_DL="$LIBADD_DL -ldld"
1.1 paf 2144: else
2145: echo "$ac_t""no" 1>&6
2146: fi
2147:
1.8 paf 2148: fi
1.1 paf 2149:
1.8 paf 2150: echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
1.59 ! paf 2151: echo "configure:2152: checking for dld_link in -ldld" >&5
1.8 paf 2152: ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
2153: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2154: echo $ac_n "(cached) $ac_c" 1>&6
2155: else
2156: ac_save_LIBS="$LIBS"
2157: LIBS="-ldld $LIBS"
2158: cat > conftest.$ac_ext <<EOF
1.59 ! paf 2159: #line 2160 "configure"
1.8 paf 2160: #include "confdefs.h"
2161: /* Override any gcc2 internal prototype to avoid an error. */
2162: #ifdef __cplusplus
2163: extern "C"
2164: #endif
2165: /* We use char because int might match the return type of a gcc2
2166: builtin and then its argument prototype would still apply. */
2167: char dld_link();
1.1 paf 2168:
1.8 paf 2169: int main() {
2170: dld_link()
2171: ; return 0; }
2172: EOF
1.59 ! paf 2173: if { (eval echo configure:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 2174: rm -rf conftest*
2175: eval "ac_cv_lib_$ac_lib_var=yes"
2176: else
2177: echo "configure: failed program was:" >&5
2178: cat conftest.$ac_ext >&5
2179: rm -rf conftest*
2180: eval "ac_cv_lib_$ac_lib_var=no"
2181: fi
2182: rm -f conftest*
2183: LIBS="$ac_save_LIBS"
1.1 paf 2184:
1.8 paf 2185: fi
2186: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2187: echo "$ac_t""yes" 1>&6
2188: cat >> confdefs.h <<\EOF
2189: #define HAVE_DLD 1
2190: EOF
2191: test "x$ac_cv_lib_dld_shl_load" = yes || LIBADD_DL="$LIBADD_DL -ldld"
2192: else
2193: echo "$ac_t""no" 1>&6
1.1 paf 2194: fi
2195:
2196:
2197:
1.8 paf 2198: if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
2199: LIBS_SAVE="$LIBS"
2200: LIBS="$LIBS $LIBADD_DL"
2201: for ac_func in dlerror
2202: do
2203: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.59 ! paf 2204: echo "configure:2205: checking for $ac_func" >&5
1.8 paf 2205: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1.1 paf 2206: echo $ac_n "(cached) $ac_c" 1>&6
2207: else
2208: cat > conftest.$ac_ext <<EOF
1.59 ! paf 2209: #line 2210 "configure"
1.1 paf 2210: #include "confdefs.h"
1.8 paf 2211: /* System header to define __stub macros and hopefully few prototypes,
2212: which can conflict with char $ac_func(); below. */
2213: #include <assert.h>
2214: /* Override any gcc2 internal prototype to avoid an error. */
2215: #ifdef __cplusplus
2216: extern "C"
2217: #endif
2218: /* We use char because int might match the return type of a gcc2
2219: builtin and then its argument prototype would still apply. */
2220: char $ac_func();
1.1 paf 2221:
2222: int main() {
2223:
1.8 paf 2224: /* The GNU C library defines this for functions which it implements
2225: to always fail with ENOSYS. Some functions are actually named
2226: something starting with __ and the normal name is an alias. */
2227: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2228: choke me
2229: #else
2230: $ac_func();
2231: #endif
2232:
1.1 paf 2233: ; return 0; }
2234: EOF
1.59 ! paf 2235: if { (eval echo configure:2236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2236: rm -rf conftest*
1.8 paf 2237: eval "ac_cv_func_$ac_func=yes"
1.1 paf 2238: else
2239: echo "configure: failed program was:" >&5
2240: cat conftest.$ac_ext >&5
2241: rm -rf conftest*
1.8 paf 2242: eval "ac_cv_func_$ac_func=no"
1.1 paf 2243: fi
2244: rm -f conftest*
2245: fi
2246:
1.8 paf 2247: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2248: echo "$ac_t""yes" 1>&6
2249: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2250: cat >> confdefs.h <<EOF
2251: #define $ac_tr_func 1
1.1 paf 2252: EOF
1.8 paf 2253:
1.1 paf 2254: else
1.8 paf 2255: echo "$ac_t""no" 1>&6
1.1 paf 2256: fi
1.8 paf 2257: done
1.1 paf 2258:
1.8 paf 2259: LIBS="$LIBS_SAVE"
1.1 paf 2260: fi
2261:
2262:
2263: echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1.59 ! paf 2264: echo "configure:2265: checking how to run the C++ preprocessor" >&5
1.1 paf 2265: if test -z "$CXXCPP"; then
2266: if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2267: echo $ac_n "(cached) $ac_c" 1>&6
2268: else
2269: ac_ext=C
2270: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2271: ac_cpp='$CXXCPP $CPPFLAGS'
2272: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2273: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2274: cross_compiling=$ac_cv_prog_cxx_cross
2275: CXXCPP="${CXX-g++} -E"
2276: cat > conftest.$ac_ext <<EOF
1.59 ! paf 2277: #line 2278 "configure"
1.1 paf 2278: #include "confdefs.h"
2279: #include <stdlib.h>
2280: EOF
2281: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.59 ! paf 2282: { (eval echo configure:2283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 paf 2283: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2284: if test -z "$ac_err"; then
2285: :
2286: else
2287: echo "$ac_err" >&5
2288: echo "configure: failed program was:" >&5
2289: cat conftest.$ac_ext >&5
2290: rm -rf conftest*
2291: CXXCPP=/lib/cpp
2292: fi
2293: rm -f conftest*
2294: ac_cv_prog_CXXCPP="$CXXCPP"
2295: ac_ext=C
2296: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2297: ac_cpp='$CXXCPP $CPPFLAGS'
2298: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2299: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2300: cross_compiling=$ac_cv_prog_cxx_cross
2301: fi
2302: fi
2303: CXXCPP="$ac_cv_prog_CXXCPP"
2304: echo "$ac_t""$CXXCPP" 1>&6
2305:
2306: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1.59 ! paf 2307: echo "configure:2308: checking for ANSI C header files" >&5
1.1 paf 2308: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2309: echo $ac_n "(cached) $ac_c" 1>&6
2310: else
2311: cat > conftest.$ac_ext <<EOF
1.59 ! paf 2312: #line 2313 "configure"
1.1 paf 2313: #include "confdefs.h"
2314: #include <stdlib.h>
2315: #include <stdarg.h>
2316: #include <string.h>
2317: #include <float.h>
2318: EOF
2319: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.59 ! paf 2320: { (eval echo configure:2321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 paf 2321: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2322: if test -z "$ac_err"; then
2323: rm -rf conftest*
2324: ac_cv_header_stdc=yes
2325: else
2326: echo "$ac_err" >&5
2327: echo "configure: failed program was:" >&5
2328: cat conftest.$ac_ext >&5
2329: rm -rf conftest*
2330: ac_cv_header_stdc=no
2331: fi
2332: rm -f conftest*
2333:
2334: if test $ac_cv_header_stdc = yes; then
2335: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2336: cat > conftest.$ac_ext <<EOF
1.59 ! paf 2337: #line 2338 "configure"
1.1 paf 2338: #include "confdefs.h"
2339: #include <string.h>
2340: EOF
2341: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2342: egrep "memchr" >/dev/null 2>&1; then
2343: :
2344: else
2345: rm -rf conftest*
2346: ac_cv_header_stdc=no
2347: fi
2348: rm -f conftest*
2349:
2350: fi
2351:
2352: if test $ac_cv_header_stdc = yes; then
2353: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2354: cat > conftest.$ac_ext <<EOF
1.59 ! paf 2355: #line 2356 "configure"
1.1 paf 2356: #include "confdefs.h"
2357: #include <stdlib.h>
2358: EOF
2359: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2360: egrep "free" >/dev/null 2>&1; then
2361: :
2362: else
2363: rm -rf conftest*
2364: ac_cv_header_stdc=no
2365: fi
2366: rm -f conftest*
2367:
2368: fi
2369:
2370: if test $ac_cv_header_stdc = yes; then
2371: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2372: if test "$cross_compiling" = yes; then
2373: :
2374: else
2375: cat > conftest.$ac_ext <<EOF
1.59 ! paf 2376: #line 2377 "configure"
1.1 paf 2377: #include "confdefs.h"
2378: #ifdef __cplusplus
2379: extern "C" void exit(int);
2380: #endif
2381: #include <ctype.h>
2382: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2383: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2384: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2385: int main () { int i; for (i = 0; i < 256; i++)
2386: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2387: exit (0); }
2388:
2389: EOF
1.59 ! paf 2390: if { (eval echo configure:2391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1 paf 2391: then
2392: :
2393: else
2394: echo "configure: failed program was:" >&5
2395: cat conftest.$ac_ext >&5
2396: rm -fr conftest*
2397: ac_cv_header_stdc=no
2398: fi
2399: rm -fr conftest*
2400: fi
2401:
2402: fi
2403: fi
2404:
2405: echo "$ac_t""$ac_cv_header_stdc" 1>&6
2406: if test $ac_cv_header_stdc = yes; then
2407: cat >> confdefs.h <<\EOF
2408: #define STDC_HEADERS 1
2409: EOF
2410:
2411: fi
2412:
2413: echo $ac_n "checking for size_t""... $ac_c" 1>&6
1.59 ! paf 2414: echo "configure:2415: checking for size_t" >&5
1.1 paf 2415: if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2416: echo $ac_n "(cached) $ac_c" 1>&6
2417: else
2418: cat > conftest.$ac_ext <<EOF
1.59 ! paf 2419: #line 2420 "configure"
1.1 paf 2420: #include "confdefs.h"
2421: #include <sys/types.h>
2422: #if STDC_HEADERS
2423: #include <stdlib.h>
2424: #include <stddef.h>
2425: #endif
2426: EOF
2427: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2428: egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2429: rm -rf conftest*
2430: ac_cv_type_size_t=yes
2431: else
2432: rm -rf conftest*
2433: ac_cv_type_size_t=no
2434: fi
2435: rm -f conftest*
2436:
2437: fi
2438: echo "$ac_t""$ac_cv_type_size_t" 1>&6
2439: if test $ac_cv_type_size_t = no; then
2440: cat >> confdefs.h <<\EOF
2441: #define size_t unsigned
2442: EOF
2443:
2444: fi
2445:
1.30 paf 2446: echo $ac_n "checking for off_t""... $ac_c" 1>&6
1.59 ! paf 2447: echo "configure:2448: checking for off_t" >&5
1.30 paf 2448: if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2449: echo $ac_n "(cached) $ac_c" 1>&6
2450: else
2451: cat > conftest.$ac_ext <<EOF
1.59 ! paf 2452: #line 2453 "configure"
1.30 paf 2453: #include "confdefs.h"
2454: #include <sys/types.h>
2455: #if STDC_HEADERS
2456: #include <stdlib.h>
2457: #include <stddef.h>
2458: #endif
2459: EOF
2460: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2461: egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2462: rm -rf conftest*
2463: ac_cv_type_off_t=yes
2464: else
2465: rm -rf conftest*
2466: ac_cv_type_off_t=no
2467: fi
2468: rm -f conftest*
2469:
2470: fi
2471: echo "$ac_t""$ac_cv_type_off_t" 1>&6
2472: if test $ac_cv_type_off_t = no; then
2473: cat >> confdefs.h <<\EOF
2474: #define off_t long
2475: EOF
2476:
2477: fi
2478:
2479: echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
1.59 ! paf 2480: echo "configure:2481: checking for ssize_t" >&5
1.30 paf 2481: if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2482: echo $ac_n "(cached) $ac_c" 1>&6
2483: else
2484: cat > conftest.$ac_ext <<EOF
1.59 ! paf 2485: #line 2486 "configure"
1.30 paf 2486: #include "confdefs.h"
2487: #include <sys/types.h>
2488: #if STDC_HEADERS
2489: #include <stdlib.h>
2490: #include <stddef.h>
2491: #endif
2492: EOF
2493: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2494: egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2495: rm -rf conftest*
2496: ac_cv_type_ssize_t=yes
2497: else
2498: rm -rf conftest*
2499: ac_cv_type_ssize_t=no
2500: fi
2501: rm -f conftest*
2502:
2503: fi
2504: echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2505: if test $ac_cv_type_ssize_t = no; then
2506: cat >> confdefs.h <<\EOF
2507: #define ssize_t int
2508: EOF
2509:
2510: fi
2511:
2512:
1.1 paf 2513:
2514:
1.8 paf 2515: echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1.59 ! paf 2516: echo "configure:2517: checking whether time.h and sys/time.h may both be included" >&5
1.8 paf 2517: if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2518: echo $ac_n "(cached) $ac_c" 1>&6
2519: else
2520: cat > conftest.$ac_ext <<EOF
1.59 ! paf 2521: #line 2522 "configure"
1.8 paf 2522: #include "confdefs.h"
2523: #include <sys/types.h>
2524: #include <sys/time.h>
2525: #include <time.h>
2526: int main() {
2527: struct tm *tp;
2528: ; return 0; }
2529: EOF
1.59 ! paf 2530: if { (eval echo configure:2531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.8 paf 2531: rm -rf conftest*
2532: ac_cv_header_time=yes
2533: else
2534: echo "configure: failed program was:" >&5
2535: cat conftest.$ac_ext >&5
2536: rm -rf conftest*
2537: ac_cv_header_time=no
2538: fi
2539: rm -f conftest*
2540: fi
2541:
2542: echo "$ac_t""$ac_cv_header_time" 1>&6
2543: if test $ac_cv_header_time = yes; then
2544: cat >> confdefs.h <<\EOF
2545: #define TIME_WITH_SYS_TIME 1
2546: EOF
2547:
2548: fi
2549:
2550:
1.51 paf 2551: for ac_hdr in signal.h \
2552: unistd.h \
1.1 paf 2553: process.h \
2554: stddef.h \
2555: stdarg.h \
2556: fcntl.h \
2557: sys/stat.h \
2558: io.h \
2559: stdio.h \
2560: errno.h \
2561: ctype.h \
2562: math.h \
1.31 paf 2563: crypt.h \
1.3 paf 2564: time.h sys/time.h \
1.1 paf 2565: stdlib.h \
2566: string.h \
2567: direct.h \
2568: setjmp.h \
2569: memory.h \
2570: new \
2571: sys/file.h \
2572: sys/locking.h \
1.3 paf 2573: sys/types.h \
2574: sys/select.h \
1.39 paf 2575: sys/resource.h \
1.52 paf 2576: winsock.h \
2577: sys/socket.h \
2578: netinet/in.h \
2579: arpa/inet.h \
2580: netdb.h
1.1 paf 2581:
2582: do
2583: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2584: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.59 ! paf 2585: echo "configure:2586: checking for $ac_hdr" >&5
1.1 paf 2586: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2587: echo $ac_n "(cached) $ac_c" 1>&6
2588: else
2589: cat > conftest.$ac_ext <<EOF
1.59 ! paf 2590: #line 2591 "configure"
1.1 paf 2591: #include "confdefs.h"
2592: #include <$ac_hdr>
2593: EOF
2594: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.59 ! paf 2595: { (eval echo configure:2596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 paf 2596: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2597: if test -z "$ac_err"; then
2598: rm -rf conftest*
2599: eval "ac_cv_header_$ac_safe=yes"
2600: else
2601: echo "$ac_err" >&5
2602: echo "configure: failed program was:" >&5
2603: cat conftest.$ac_ext >&5
2604: rm -rf conftest*
2605: eval "ac_cv_header_$ac_safe=no"
2606: fi
2607: rm -f conftest*
2608: fi
2609: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2610: echo "$ac_t""yes" 1>&6
2611: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2612: cat >> confdefs.h <<EOF
2613: #define $ac_tr_hdr 1
2614: EOF
2615:
2616: else
2617: echo "$ac_t""no" 1>&6
2618: fi
2619: done
2620:
2621:
2622:
2623: case "$host" in
2624: *-sunos5.6* | *-solaris2.6*)
2625: echo $ac_n "checking for main in -lxnet""... $ac_c" 1>&6
1.59 ! paf 2626: echo "configure:2627: checking for main in -lxnet" >&5
1.1 paf 2627: ac_lib_var=`echo xnet'_'main | sed 'y%./+-%__p_%'`
2628: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2629: echo $ac_n "(cached) $ac_c" 1>&6
2630: else
2631: ac_save_LIBS="$LIBS"
2632: LIBS="-lxnet $LIBS"
2633: cat > conftest.$ac_ext <<EOF
1.59 ! paf 2634: #line 2635 "configure"
1.1 paf 2635: #include "confdefs.h"
2636:
2637: int main() {
2638: main()
2639: ; return 0; }
2640: EOF
1.59 ! paf 2641: if { (eval echo configure:2642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2642: rm -rf conftest*
2643: eval "ac_cv_lib_$ac_lib_var=yes"
2644: else
2645: echo "configure: failed program was:" >&5
2646: cat conftest.$ac_ext >&5
2647: rm -rf conftest*
2648: eval "ac_cv_lib_$ac_lib_var=no"
2649: fi
2650: rm -f conftest*
2651: LIBS="$ac_save_LIBS"
2652:
2653: fi
2654: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2655: echo "$ac_t""yes" 1>&6
2656: ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2657: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2658: cat >> confdefs.h <<EOF
2659: #define $ac_tr_lib 1
2660: EOF
2661:
2662: LIBS="-lxnet $LIBS"
2663:
2664: else
2665: echo "$ac_t""no" 1>&6
2666: fi
2667:
2668: ;;
2669: *-sunos5* | *-solaris2*)
2670: echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1.59 ! paf 2671: echo "configure:2672: checking for main in -lsocket" >&5
1.1 paf 2672: ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2673: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2674: echo $ac_n "(cached) $ac_c" 1>&6
2675: else
2676: ac_save_LIBS="$LIBS"
2677: LIBS="-lsocket $LIBS"
2678: cat > conftest.$ac_ext <<EOF
1.59 ! paf 2679: #line 2680 "configure"
1.1 paf 2680: #include "confdefs.h"
2681:
2682: int main() {
2683: main()
2684: ; return 0; }
2685: EOF
1.59 ! paf 2686: if { (eval echo configure:2687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2687: rm -rf conftest*
2688: eval "ac_cv_lib_$ac_lib_var=yes"
2689: else
2690: echo "configure: failed program was:" >&5
2691: cat conftest.$ac_ext >&5
2692: rm -rf conftest*
2693: eval "ac_cv_lib_$ac_lib_var=no"
2694: fi
2695: rm -f conftest*
2696: LIBS="$ac_save_LIBS"
2697:
2698: fi
2699: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2700: echo "$ac_t""yes" 1>&6
2701: ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2702: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2703: cat >> confdefs.h <<EOF
2704: #define $ac_tr_lib 1
2705: EOF
2706:
2707: LIBS="-lsocket $LIBS"
2708:
2709: else
2710: echo "$ac_t""no" 1>&6
2711: fi
2712:
2713: echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1.59 ! paf 2714: echo "configure:2715: checking for main in -lnsl" >&5
1.1 paf 2715: ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2716: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2717: echo $ac_n "(cached) $ac_c" 1>&6
2718: else
2719: ac_save_LIBS="$LIBS"
2720: LIBS="-lnsl $LIBS"
2721: cat > conftest.$ac_ext <<EOF
1.59 ! paf 2722: #line 2723 "configure"
1.1 paf 2723: #include "confdefs.h"
2724:
2725: int main() {
2726: main()
2727: ; return 0; }
2728: EOF
1.59 ! paf 2729: if { (eval echo configure:2730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2730: rm -rf conftest*
2731: eval "ac_cv_lib_$ac_lib_var=yes"
2732: else
2733: echo "configure: failed program was:" >&5
2734: cat conftest.$ac_ext >&5
2735: rm -rf conftest*
2736: eval "ac_cv_lib_$ac_lib_var=no"
2737: fi
2738: rm -f conftest*
2739: LIBS="$ac_save_LIBS"
2740:
2741: fi
2742: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2743: echo "$ac_t""yes" 1>&6
2744: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2745: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2746: cat >> confdefs.h <<EOF
2747: #define $ac_tr_lib 1
2748: EOF
2749:
2750: LIBS="-lnsl $LIBS"
2751:
2752: else
2753: echo "$ac_t""no" 1>&6
2754: fi
2755:
2756: ;;
2757: *-nec-sysv4*)
2758: echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1.59 ! paf 2759: echo "configure:2760: checking for gethostbyname in -lnsl" >&5
1.1 paf 2760: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2761: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2762: echo $ac_n "(cached) $ac_c" 1>&6
2763: else
2764: ac_save_LIBS="$LIBS"
2765: LIBS="-lnsl $LIBS"
2766: cat > conftest.$ac_ext <<EOF
1.59 ! paf 2767: #line 2768 "configure"
1.1 paf 2768: #include "confdefs.h"
2769: /* Override any gcc2 internal prototype to avoid an error. */
2770: #ifdef __cplusplus
2771: extern "C"
2772: #endif
2773: /* We use char because int might match the return type of a gcc2
2774: builtin and then its argument prototype would still apply. */
2775: char gethostbyname();
2776:
2777: int main() {
2778: gethostbyname()
2779: ; return 0; }
2780: EOF
1.59 ! paf 2781: if { (eval echo configure:2782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2782: rm -rf conftest*
2783: eval "ac_cv_lib_$ac_lib_var=yes"
2784: else
2785: echo "configure: failed program was:" >&5
2786: cat conftest.$ac_ext >&5
2787: rm -rf conftest*
2788: eval "ac_cv_lib_$ac_lib_var=no"
2789: fi
2790: rm -f conftest*
2791: LIBS="$ac_save_LIBS"
2792:
2793: fi
2794: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2795: echo "$ac_t""yes" 1>&6
2796: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2797: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2798: cat >> confdefs.h <<EOF
2799: #define $ac_tr_lib 1
2800: EOF
2801:
2802: LIBS="-lnsl $LIBS"
2803:
2804: else
2805: echo "$ac_t""no" 1>&6
2806: fi
2807:
2808: echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1.59 ! paf 2809: echo "configure:2810: checking for socket in -lsocket" >&5
1.1 paf 2810: ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2811: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2812: echo $ac_n "(cached) $ac_c" 1>&6
2813: else
2814: ac_save_LIBS="$LIBS"
2815: LIBS="-lsocket $LIBS"
2816: cat > conftest.$ac_ext <<EOF
1.59 ! paf 2817: #line 2818 "configure"
1.1 paf 2818: #include "confdefs.h"
2819: /* Override any gcc2 internal prototype to avoid an error. */
2820: #ifdef __cplusplus
2821: extern "C"
2822: #endif
2823: /* We use char because int might match the return type of a gcc2
2824: builtin and then its argument prototype would still apply. */
2825: char socket();
2826:
2827: int main() {
2828: socket()
2829: ; return 0; }
2830: EOF
1.59 ! paf 2831: if { (eval echo configure:2832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2832: rm -rf conftest*
2833: eval "ac_cv_lib_$ac_lib_var=yes"
2834: else
2835: echo "configure: failed program was:" >&5
2836: cat conftest.$ac_ext >&5
2837: rm -rf conftest*
2838: eval "ac_cv_lib_$ac_lib_var=no"
2839: fi
2840: rm -f conftest*
2841: LIBS="$ac_save_LIBS"
2842:
2843: fi
2844: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2845: echo "$ac_t""yes" 1>&6
2846: ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2847: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2848: cat >> confdefs.h <<EOF
2849: #define $ac_tr_lib 1
2850: EOF
2851:
2852: LIBS="-lsocket $LIBS"
2853:
2854: else
2855: echo "$ac_t""no" 1>&6
2856: fi
2857:
2858: ;;
2859: *-cygwin*)
2860: cat >> confdefs.h <<\EOF
2861: #define WIN32
2862: EOF
2863:
2864: echo $ac_n "checking for socket in -lwsock32""... $ac_c" 1>&6
1.59 ! paf 2865: echo "configure:2866: checking for socket in -lwsock32" >&5
1.1 paf 2866: ac_lib_var=`echo wsock32'_'socket | sed 'y%./+-%__p_%'`
2867: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2868: echo $ac_n "(cached) $ac_c" 1>&6
2869: else
2870: ac_save_LIBS="$LIBS"
2871: LIBS="-lwsock32 $LIBS"
2872: cat > conftest.$ac_ext <<EOF
1.59 ! paf 2873: #line 2874 "configure"
1.1 paf 2874: #include "confdefs.h"
2875: /* Override any gcc2 internal prototype to avoid an error. */
2876: #ifdef __cplusplus
2877: extern "C"
2878: #endif
2879: /* We use char because int might match the return type of a gcc2
2880: builtin and then its argument prototype would still apply. */
2881: char socket();
2882:
2883: int main() {
2884: socket()
2885: ; return 0; }
2886: EOF
1.59 ! paf 2887: if { (eval echo configure:2888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2888: rm -rf conftest*
2889: eval "ac_cv_lib_$ac_lib_var=yes"
2890: else
2891: echo "configure: failed program was:" >&5
2892: cat conftest.$ac_ext >&5
2893: rm -rf conftest*
2894: eval "ac_cv_lib_$ac_lib_var=no"
2895: fi
2896: rm -f conftest*
2897: LIBS="$ac_save_LIBS"
2898:
2899: fi
2900: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2901: echo "$ac_t""yes" 1>&6
2902: ac_tr_lib=HAVE_LIB`echo wsock32 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2903: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2904: cat >> confdefs.h <<EOF
2905: #define $ac_tr_lib 1
2906: EOF
2907:
2908: LIBS="-lwsock32 $LIBS"
2909:
2910: else
2911: echo "$ac_t""no" 1>&6
2912: fi
2913:
2914: ;;
1.22 paf 2915: # never tested this, only theoretically by letter from demos about parser2 build
1.23 paf 2916: *-hpux*)
1.22 paf 2917: echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1.59 ! paf 2918: echo "configure:2919: checking for main in -lnsl" >&5
1.22 paf 2919: ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2920: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2921: echo $ac_n "(cached) $ac_c" 1>&6
2922: else
2923: ac_save_LIBS="$LIBS"
2924: LIBS="-lnsl $LIBS"
2925: cat > conftest.$ac_ext <<EOF
1.59 ! paf 2926: #line 2927 "configure"
1.22 paf 2927: #include "confdefs.h"
2928:
2929: int main() {
2930: main()
2931: ; return 0; }
2932: EOF
1.59 ! paf 2933: if { (eval echo configure:2934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.22 paf 2934: rm -rf conftest*
2935: eval "ac_cv_lib_$ac_lib_var=yes"
2936: else
2937: echo "configure: failed program was:" >&5
2938: cat conftest.$ac_ext >&5
2939: rm -rf conftest*
2940: eval "ac_cv_lib_$ac_lib_var=no"
2941: fi
2942: rm -f conftest*
2943: LIBS="$ac_save_LIBS"
2944:
2945: fi
2946: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2947: echo "$ac_t""yes" 1>&6
2948: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2949: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2950: cat >> confdefs.h <<EOF
2951: #define $ac_tr_lib 1
2952: EOF
2953:
2954: LIBS="-lnsl $LIBS"
2955:
2956: else
2957: echo "$ac_t""no" 1>&6
2958: fi
2959:
2960: ;;
1.1 paf 2961: esac
2962:
2963: echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1.59 ! paf 2964: echo "configure:2965: checking for sin in -lm" >&5
1.1 paf 2965: ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
2966: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2967: echo $ac_n "(cached) $ac_c" 1>&6
2968: else
2969: ac_save_LIBS="$LIBS"
2970: LIBS="-lm $LIBS"
2971: cat > conftest.$ac_ext <<EOF
1.59 ! paf 2972: #line 2973 "configure"
1.1 paf 2973: #include "confdefs.h"
2974: /* Override any gcc2 internal prototype to avoid an error. */
2975: #ifdef __cplusplus
2976: extern "C"
2977: #endif
2978: /* We use char because int might match the return type of a gcc2
2979: builtin and then its argument prototype would still apply. */
2980: char sin();
2981:
2982: int main() {
2983: sin()
2984: ; return 0; }
2985: EOF
1.59 ! paf 2986: if { (eval echo configure:2987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2987: rm -rf conftest*
2988: eval "ac_cv_lib_$ac_lib_var=yes"
2989: else
2990: echo "configure: failed program was:" >&5
2991: cat conftest.$ac_ext >&5
2992: rm -rf conftest*
2993: eval "ac_cv_lib_$ac_lib_var=no"
2994: fi
2995: rm -f conftest*
2996: LIBS="$ac_save_LIBS"
2997:
2998: fi
2999: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3000: echo "$ac_t""yes" 1>&6
3001: ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3002: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3003: cat >> confdefs.h <<EOF
3004: #define $ac_tr_lib 1
3005: EOF
3006:
3007: LIBS="-lm $LIBS"
3008:
3009: else
3010: echo "$ac_t""no" 1>&6
3011: fi
3012:
3013:
1.31 paf 3014: echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1.59 ! paf 3015: echo "configure:3016: checking for crypt in -lcrypt" >&5
1.31 paf 3016: ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3017: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3018: echo $ac_n "(cached) $ac_c" 1>&6
3019: else
3020: ac_save_LIBS="$LIBS"
3021: LIBS="-lcrypt $LIBS"
3022: cat > conftest.$ac_ext <<EOF
1.59 ! paf 3023: #line 3024 "configure"
1.31 paf 3024: #include "confdefs.h"
3025: /* Override any gcc2 internal prototype to avoid an error. */
3026: #ifdef __cplusplus
3027: extern "C"
3028: #endif
3029: /* We use char because int might match the return type of a gcc2
3030: builtin and then its argument prototype would still apply. */
3031: char crypt();
3032:
3033: int main() {
3034: crypt()
3035: ; return 0; }
3036: EOF
1.59 ! paf 3037: if { (eval echo configure:3038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.31 paf 3038: rm -rf conftest*
3039: eval "ac_cv_lib_$ac_lib_var=yes"
3040: else
3041: echo "configure: failed program was:" >&5
3042: cat conftest.$ac_ext >&5
3043: rm -rf conftest*
3044: eval "ac_cv_lib_$ac_lib_var=no"
3045: fi
3046: rm -f conftest*
3047: LIBS="$ac_save_LIBS"
3048:
3049: fi
3050: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3051: echo "$ac_t""yes" 1>&6
3052: ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3053: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3054: cat >> confdefs.h <<EOF
3055: #define $ac_tr_lib 1
3056: EOF
3057:
3058: LIBS="-lcrypt $LIBS"
3059:
3060: else
3061: echo "$ac_t""no" 1>&6
3062: fi
3063:
3064:
1.1 paf 3065:
3066: for ac_func in trunc \
3067: round \
3068: sign \
3069: flock \
3070: _locking \
1.5 paf 3071: fcntl \
1.3 paf 3072: lockf \
1.56 paf 3073: ftruncate \
1.31 paf 3074: getrusage \
1.49 paf 3075: gettimeofday \
1.52 paf 3076: crypt \
3077: sigsetjmp siglongjmp
1.1 paf 3078:
3079: do
3080: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.59 ! paf 3081: echo "configure:3082: checking for $ac_func" >&5
1.1 paf 3082: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3083: echo $ac_n "(cached) $ac_c" 1>&6
3084: else
3085: cat > conftest.$ac_ext <<EOF
1.59 ! paf 3086: #line 3087 "configure"
1.1 paf 3087: #include "confdefs.h"
3088: /* System header to define __stub macros and hopefully few prototypes,
3089: which can conflict with char $ac_func(); below. */
3090: #include <assert.h>
3091: /* Override any gcc2 internal prototype to avoid an error. */
3092: #ifdef __cplusplus
3093: extern "C"
3094: #endif
3095: /* We use char because int might match the return type of a gcc2
3096: builtin and then its argument prototype would still apply. */
3097: char $ac_func();
3098:
3099: int main() {
3100:
3101: /* The GNU C library defines this for functions which it implements
3102: to always fail with ENOSYS. Some functions are actually named
3103: something starting with __ and the normal name is an alias. */
3104: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3105: choke me
3106: #else
3107: $ac_func();
3108: #endif
3109:
3110: ; return 0; }
3111: EOF
1.59 ! paf 3112: if { (eval echo configure:3113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 3113: rm -rf conftest*
3114: eval "ac_cv_func_$ac_func=yes"
3115: else
3116: echo "configure: failed program was:" >&5
3117: cat conftest.$ac_ext >&5
3118: rm -rf conftest*
3119: eval "ac_cv_func_$ac_func=no"
3120: fi
3121: rm -f conftest*
3122: fi
3123:
3124: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3125: echo "$ac_t""yes" 1>&6
3126: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3127: cat >> confdefs.h <<EOF
3128: #define $ac_tr_func 1
3129: EOF
3130:
3131: else
3132: echo "$ac_t""no" 1>&6
3133: fi
3134: done
3135:
3136:
1.3 paf 3137:
3138: for ac_func in qsort
3139: do
3140: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.59 ! paf 3141: echo "configure:3142: checking for $ac_func" >&5
1.3 paf 3142: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3143: echo $ac_n "(cached) $ac_c" 1>&6
3144: else
3145: cat > conftest.$ac_ext <<EOF
1.59 ! paf 3146: #line 3147 "configure"
1.3 paf 3147: #include "confdefs.h"
3148: /* System header to define __stub macros and hopefully few prototypes,
3149: which can conflict with char $ac_func(); below. */
3150: #include <assert.h>
3151: /* Override any gcc2 internal prototype to avoid an error. */
3152: #ifdef __cplusplus
3153: extern "C"
3154: #endif
3155: /* We use char because int might match the return type of a gcc2
3156: builtin and then its argument prototype would still apply. */
3157: char $ac_func();
3158:
3159: int main() {
3160:
3161: /* The GNU C library defines this for functions which it implements
3162: to always fail with ENOSYS. Some functions are actually named
3163: something starting with __ and the normal name is an alias. */
3164: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3165: choke me
3166: #else
3167: $ac_func();
3168: #endif
3169:
3170: ; return 0; }
3171: EOF
1.59 ! paf 3172: if { (eval echo configure:3173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.3 paf 3173: rm -rf conftest*
3174: eval "ac_cv_func_$ac_func=yes"
3175: else
3176: echo "configure: failed program was:" >&5
3177: cat conftest.$ac_ext >&5
3178: rm -rf conftest*
3179: eval "ac_cv_func_$ac_func=no"
3180: fi
3181: rm -f conftest*
3182: fi
3183:
3184: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3185: echo "$ac_t""yes" 1>&6
3186: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3187: cat >> confdefs.h <<EOF
3188: #define $ac_tr_func 1
3189: EOF
3190:
3191: else
3192: echo "$ac_t""no" 1>&6
3193: { echo "configure: error: No qsort library function." 1>&2; exit 1; }
3194: fi
3195: done
3196:
3197: for ac_func in select
3198: do
3199: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.59 ! paf 3200: echo "configure:3201: checking for $ac_func" >&5
1.3 paf 3201: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3202: echo $ac_n "(cached) $ac_c" 1>&6
3203: else
3204: cat > conftest.$ac_ext <<EOF
1.59 ! paf 3205: #line 3206 "configure"
1.3 paf 3206: #include "confdefs.h"
3207: /* System header to define __stub macros and hopefully few prototypes,
3208: which can conflict with char $ac_func(); below. */
3209: #include <assert.h>
3210: /* Override any gcc2 internal prototype to avoid an error. */
3211: #ifdef __cplusplus
3212: extern "C"
3213: #endif
3214: /* We use char because int might match the return type of a gcc2
3215: builtin and then its argument prototype would still apply. */
3216: char $ac_func();
3217:
3218: int main() {
3219:
3220: /* The GNU C library defines this for functions which it implements
3221: to always fail with ENOSYS. Some functions are actually named
3222: something starting with __ and the normal name is an alias. */
3223: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3224: choke me
3225: #else
3226: $ac_func();
3227: #endif
3228:
3229: ; return 0; }
3230: EOF
1.59 ! paf 3231: if { (eval echo configure:3232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.3 paf 3232: rm -rf conftest*
3233: eval "ac_cv_func_$ac_func=yes"
3234: else
3235: echo "configure: failed program was:" >&5
3236: cat conftest.$ac_ext >&5
3237: rm -rf conftest*
3238: eval "ac_cv_func_$ac_func=no"
3239: fi
3240: rm -f conftest*
3241: fi
3242:
3243: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3244: echo "$ac_t""yes" 1>&6
3245: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3246: cat >> confdefs.h <<EOF
3247: #define $ac_tr_func 1
3248: EOF
3249:
3250: else
3251: echo "$ac_t""no" 1>&6
3252: { echo "configure: error: No select library function." 1>&2; exit 1; }
3253: fi
3254: done
3255:
3256:
1.47 paf 3257:
3258: echo $ac_n "checking for timezone variable""... $ac_c" 1>&6
1.59 ! paf 3259: echo "configure:3260: checking for timezone variable" >&5
1.47 paf 3260: cat > conftest.$ac_ext <<EOF
1.59 ! paf 3261: #line 3262 "configure"
1.47 paf 3262: #include "confdefs.h"
3263: #include <time.h>
3264: int main() {
3265:
3266: time_t test=timezone;
3267:
3268: ; return 0; }
3269: EOF
1.59 ! paf 3270: if { (eval echo configure:3271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.47 paf 3271: rm -rf conftest*
3272: cat >> confdefs.h <<\EOF
3273: #define HAVE_TIMEZONE 1
3274: EOF
3275:
3276: echo "$ac_t""yes" 1>&6
3277: else
3278: echo "configure: failed program was:" >&5
3279: cat conftest.$ac_ext >&5
3280: rm -rf conftest*
3281: echo "$ac_t""no" 1>&6
3282: fi
3283: rm -f conftest*
3284:
3285: echo $ac_n "checking for daylight variable""... $ac_c" 1>&6
1.59 ! paf 3286: echo "configure:3287: checking for daylight variable" >&5
1.47 paf 3287: cat > conftest.$ac_ext <<EOF
1.59 ! paf 3288: #line 3289 "configure"
1.47 paf 3289: #include "confdefs.h"
3290: #include <time.h>
3291: int main() {
3292:
3293: int test=daylight;
3294:
3295: ; return 0; }
3296: EOF
1.59 ! paf 3297: if { (eval echo configure:3298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.47 paf 3298: rm -rf conftest*
3299: cat >> confdefs.h <<\EOF
3300: #define HAVE_DAYLIGHT 1
3301: EOF
3302:
3303: echo "$ac_t""yes" 1>&6
3304: else
3305: echo "configure: failed program was:" >&5
3306: cat conftest.$ac_ext >&5
3307: rm -rf conftest*
3308: echo "$ac_t""no" 1>&6
3309: fi
3310: rm -f conftest*
3311:
3312: echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
1.59 ! paf 3313: echo "configure:3314: checking for tm_gmtoff in struct tm" >&5
1.47 paf 3314: cat > conftest.$ac_ext <<EOF
1.59 ! paf 3315: #line 3316 "configure"
1.47 paf 3316: #include "confdefs.h"
3317: #include <time.h>
3318: int main() {
3319: struct tm tm;
3320: tm.tm_gmtoff=0;
3321:
3322: ; return 0; }
3323: EOF
1.59 ! paf 3324: if { (eval echo configure:3325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.47 paf 3325: rm -rf conftest*
3326: cat >> confdefs.h <<\EOF
3327: #define HAVE_TM_GMTOFF 1
3328: EOF
3329:
3330: echo "$ac_t""yes" 1>&6
3331: else
3332: echo "configure: failed program was:" >&5
3333: cat conftest.$ac_ext >&5
3334: rm -rf conftest*
3335: echo "$ac_t""no" 1>&6
3336: fi
3337: rm -f conftest*
3338:
3339: echo $ac_n "checking for tm_tzadj in struct tm""... $ac_c" 1>&6
1.59 ! paf 3340: echo "configure:3341: checking for tm_tzadj in struct tm" >&5
1.47 paf 3341: cat > conftest.$ac_ext <<EOF
1.59 ! paf 3342: #line 3343 "configure"
1.47 paf 3343: #include "confdefs.h"
3344: #include <time.h>
3345: int main() {
3346: struct tm tm;
3347: tm.tm_tzadj=0;
3348:
3349: ; return 0; }
3350: EOF
1.59 ! paf 3351: if { (eval echo configure:3352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.47 paf 3352: rm -rf conftest*
3353: cat >> confdefs.h <<\EOF
3354: #define HAVE_TM_TZADJ 1
3355: EOF
3356:
3357: echo "$ac_t""yes" 1>&6
3358: else
3359: echo "configure: failed program was:" >&5
3360: cat conftest.$ac_ext >&5
3361: rm -rf conftest*
3362: echo "$ac_t""no" 1>&6
3363: fi
3364: rm -f conftest*
3365:
3366:
1.1 paf 3367: echo $ac_n "checking whether compiler supports pragma pack""... $ac_c" 1>&6
1.59 ! paf 3368: echo "configure:3369: checking whether compiler supports pragma pack" >&5
1.1 paf 3369: cat > conftest.$ac_ext <<EOF
1.59 ! paf 3370: #line 3371 "configure"
1.1 paf 3371: #include "confdefs.h"
3372: #pragma pack(1)
1.25 paf 3373: struct _1_byte {
1.1 paf 3374: char c;
1.25 paf 3375: };
1.1 paf 3376: #pragma pack()
1.25 paf 3377:
3378: int main() {
1.1 paf 3379:
3380: ; return 0; }
3381: EOF
1.59 ! paf 3382: if { (eval echo configure:3383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 paf 3383: rm -rf conftest*
3384:
3385: echo "$ac_t""yes" 1>&6
3386: cat >> confdefs.h <<\EOF
3387: #define HAVE_PRAGMA_PACK
3388: EOF
3389:
3390:
3391: else
3392: echo "configure: failed program was:" >&5
3393: cat conftest.$ac_ext >&5
3394: rm -rf conftest*
3395: echo "$ac_t""no" 1>&6
3396:
3397: fi
3398: rm -f conftest*
3399:
3400: echo $ac_n "checking for set_new_handler""... $ac_c" 1>&6
1.59 ! paf 3401: echo "configure:3402: checking for set_new_handler" >&5
1.1 paf 3402: cat > conftest.$ac_ext <<EOF
1.59 ! paf 3403: #line 3404 "configure"
1.1 paf 3404: #include "confdefs.h"
3405: #ifdef HAVE_NEW
3406: #include <new>
3407: #endif
3408: void failed_new() {}
3409:
3410: int main() {
3411: std::set_new_handler(failed_new);
3412:
3413: ; return 0; }
3414: EOF
1.59 ! paf 3415: if { (eval echo configure:3416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 paf 3416: rm -rf conftest*
3417:
3418: echo "$ac_t""yes" 1>&6
3419: cat >> confdefs.h <<\EOF
3420: #define HAVE_SET_NEW_HANDLER
3421: EOF
3422:
3423:
3424: else
3425: echo "configure: failed program was:" >&5
3426: cat conftest.$ac_ext >&5
3427: rm -rf conftest*
3428: echo "$ac_t""no" 1>&6
3429:
3430: fi
3431: rm -f conftest*
3432:
3433:
3434:
1.15 paf 3435:
1.8 paf 3436: APACHE_LIBS="$LIBS $LIBADD_DL"
1.1 paf 3437:
3438:
3439:
3440:
3441: # expand apostrophed
1.4 paf 3442: e_prefix=$prefix
3443: test "x$e_prefix" = xNONE && e_prefix=$ac_default_prefix
3444:
1.1 paf 3445: e_sysconfdir=$sysconfdir
1.4 paf 3446: test "$e_sysconfdir" = "\${prefix}/etc" && e_sysconfdir="${e_prefix}/etc"
1.1 paf 3447:
3448:
3449: charsetsdir=$e_sysconfdir/parser3.charsets
3450:
3451:
3452: # expand apostrophed
3453: e_libdir=$libdir
3454: if test "$e_libdir" = "\${exec_prefix}/lib"; then
3455:
3456: # Let make expand exec_prefix.
3457: e_exec_prefix=$exec_prefix
1.10 paf 3458: test "x$e_exec_prefix" = xNONE && e_exec_prefix=$e_prefix
1.1 paf 3459:
3460: # expand apostrophed
3461: test "$e_libdir" = "\${exec_prefix}/lib" && e_libdir="${e_exec_prefix}/lib"
3462: fi
3463:
3464: sqldriversdir=$e_libdir
3465:
3466:
3467:
3468:
3469:
3470:
3471:
3472: trap '' 1 2 15
3473: cat > confcache <<\EOF
3474: # This file is a shell script that caches the results of configure
3475: # tests run on this system so they can be shared between configure
3476: # scripts and configure runs. It is not useful on other systems.
3477: # If it contains results you don't want to keep, you may remove or edit it.
3478: #
3479: # By default, configure uses ./config.cache as the cache file,
3480: # creating it if it does not exist already. You can give configure
3481: # the --cache-file=FILE option to use a different cache file; that is
3482: # what configure does when it calls configure scripts in
3483: # subdirectories, so they share the cache.
3484: # Giving --cache-file=/dev/null disables caching, for debugging configure.
3485: # config.status only pays attention to the cache file if you give it the
3486: # --recheck option to rerun configure.
3487: #
3488: EOF
3489: # The following way of writing the cache mishandles newlines in values,
3490: # but we know of no workaround that is simple, portable, and efficient.
3491: # So, don't put newlines in cache variables' values.
3492: # Ultrix sh set writes to stderr and can't be redirected directly,
3493: # and sets the high bit in the cache file unless we assign to the vars.
3494: (set) 2>&1 |
3495: case `(ac_space=' '; set | grep ac_space) 2>&1` in
3496: *ac_space=\ *)
3497: # `set' does not quote correctly, so add quotes (double-quote substitution
3498: # turns \\\\ into \\, and sed turns \\ into \).
3499: sed -n \
3500: -e "s/'/'\\\\''/g" \
3501: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3502: ;;
3503: *)
3504: # `set' quotes correctly as required by POSIX, so do not add quotes.
3505: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3506: ;;
3507: esac >> confcache
3508: if cmp -s $cache_file confcache; then
3509: :
3510: else
3511: if test -w $cache_file; then
3512: echo "updating cache $cache_file"
3513: cat confcache > $cache_file
3514: else
3515: echo "not updating unwritable cache $cache_file"
3516: fi
3517: fi
3518: rm -f confcache
3519:
3520: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3521:
3522: test "x$prefix" = xNONE && prefix=$ac_default_prefix
3523: # Let make expand exec_prefix.
3524: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3525:
3526: # Any assignment to VPATH causes Sun make to only execute
3527: # the first set of double-colon rules, so remove it if not needed.
3528: # If there is a colon in the path, we need to keep it.
3529: if test "x$srcdir" = x.; then
3530: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3531: fi
3532:
3533: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3534:
3535: DEFS=-DHAVE_CONFIG_H
3536:
3537: # Without the "./", some shells look in PATH for config.status.
3538: : ${CONFIG_STATUS=./config.status}
3539:
3540: echo creating $CONFIG_STATUS
3541: rm -f $CONFIG_STATUS
3542: cat > $CONFIG_STATUS <<EOF
3543: #! /bin/sh
3544: # Generated automatically by configure.
3545: # Run this file to recreate the current configuration.
3546: # This directory was configured as follows,
3547: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3548: #
3549: # $0 $ac_configure_args
3550: #
3551: # Compiler output produced by configure, useful for debugging
3552: # configure, is in ./config.log if it exists.
3553:
3554: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3555: for ac_option
3556: do
3557: case "\$ac_option" in
3558: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3559: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3560: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3561: -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3562: echo "$CONFIG_STATUS generated by autoconf version 2.13"
3563: exit 0 ;;
3564: -help | --help | --hel | --he | --h)
3565: echo "\$ac_cs_usage"; exit 0 ;;
3566: *) echo "\$ac_cs_usage"; exit 1 ;;
3567: esac
3568: done
3569:
3570: ac_given_srcdir=$srcdir
3571: ac_given_INSTALL="$INSTALL"
3572:
1.54 paf 3573: trap 'rm -fr `echo "Makefile src/Makefile src/types/Makefile src/classes/Makefile src/classes/gd/Makefile src/classes/smtp/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/lib/Makefile src/lib/ltdl/Makefile src/lib/pcre/Makefile src/lib/md5/Makefile src/lib/patches/Makefile src/targets/Makefile src/targets/cgi/Makefile src/targets/apache13/Makefile src/targets/apache13/hook/Makefile src/targets/apache13/p3runConfigure src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile bin/Makefile bin/auto.p.dist src/include/pa_config_auto.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1.1 paf 3574: EOF
3575: cat >> $CONFIG_STATUS <<EOF
3576:
3577: # Protect against being on the right side of a sed subst in config.status.
3578: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3579: s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3580: $ac_vpsub
3581: $extrasub
3582: s%@SHELL@%$SHELL%g
3583: s%@CFLAGS@%$CFLAGS%g
3584: s%@CPPFLAGS@%$CPPFLAGS%g
3585: s%@CXXFLAGS@%$CXXFLAGS%g
3586: s%@FFLAGS@%$FFLAGS%g
3587: s%@DEFS@%$DEFS%g
3588: s%@LDFLAGS@%$LDFLAGS%g
3589: s%@LIBS@%$LIBS%g
3590: s%@exec_prefix@%$exec_prefix%g
3591: s%@prefix@%$prefix%g
3592: s%@program_transform_name@%$program_transform_name%g
3593: s%@bindir@%$bindir%g
3594: s%@sbindir@%$sbindir%g
3595: s%@libexecdir@%$libexecdir%g
3596: s%@datadir@%$datadir%g
3597: s%@sysconfdir@%$sysconfdir%g
3598: s%@sharedstatedir@%$sharedstatedir%g
3599: s%@localstatedir@%$localstatedir%g
3600: s%@libdir@%$libdir%g
3601: s%@includedir@%$includedir%g
3602: s%@oldincludedir@%$oldincludedir%g
3603: s%@infodir@%$infodir%g
3604: s%@mandir@%$mandir%g
3605: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3606: s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3607: s%@INSTALL_DATA@%$INSTALL_DATA%g
3608: s%@PACKAGE@%$PACKAGE%g
3609: s%@VERSION@%$VERSION%g
3610: s%@ACLOCAL@%$ACLOCAL%g
3611: s%@AUTOCONF@%$AUTOCONF%g
3612: s%@AUTOMAKE@%$AUTOMAKE%g
3613: s%@AUTOHEADER@%$AUTOHEADER%g
3614: s%@MAKEINFO@%$MAKEINFO%g
3615: s%@SET_MAKE@%$SET_MAKE%g
3616: s%@P3S@%$P3S%g
1.41 paf 3617: s%@host@%$host%g
3618: s%@host_alias@%$host_alias%g
3619: s%@host_cpu@%$host_cpu%g
3620: s%@host_vendor@%$host_vendor%g
3621: s%@host_os@%$host_os%g
3622: s%@RANLIB@%$RANLIB%g
3623: s%@AWK@%$AWK%g
3624: s%@YACC@%$YACC%g
1.1 paf 3625: s%@CC@%$CC%g
3626: s%@CXX@%$CXX%g
1.17 paf 3627: s%@commentcharset_windows1251@%$commentcharset_windows1251%g
3628: s%@commentcharset_windows1250@%$commentcharset_windows1250%g
3629: s%@commentcharset_windows1257@%$commentcharset_windows1257%g
3630: s%@commentcharset_koi8r@%$commentcharset_koi8r%g
1.40 paf 3631: s%@dll_extension@%$dll_extension%g
1.17 paf 3632: s%@mysql_client@%$mysql_client%g
3633: s%@pgsql_client@%$pgsql_client%g
3634: s%@oracle_client@%$oracle_client%g
1.59 ! paf 3635: s%@DO_NOT_LINK_LIBSTDCPP_TRUE@%$DO_NOT_LINK_LIBSTDCPP_TRUE%g
! 3636: s%@DO_NOT_LINK_LIBSTDCPP_FALSE@%$DO_NOT_LINK_LIBSTDCPP_FALSE%g
1.12 paf 3637: s%@XML_INCLUDES@%$XML_INCLUDES%g
3638: s%@XML_LIBS@%$XML_LIBS%g
1.29 paf 3639: s%@MIME_INCLUDES@%$MIME_INCLUDES%g
3640: s%@MIME_LIBS@%$MIME_LIBS%g
1.1 paf 3641: s%@APACHE13@%$APACHE13%g
3642: s%@COMPILE_APACHE13_MODULE_TRUE@%$COMPILE_APACHE13_MODULE_TRUE%g
3643: s%@COMPILE_APACHE13_MODULE_FALSE@%$COMPILE_APACHE13_MODULE_FALSE%g
3644: s%@INCLTDL@%$INCLTDL%g
3645: s%@LIBLTDL@%$LIBLTDL%g
1.8 paf 3646: s%@subdirs@%$subdirs%g
1.1 paf 3647: s%@LIBADD_DL@%$LIBADD_DL%g
3648: s%@CXXCPP@%$CXXCPP%g
3649: s%@APACHE_LIBS@%$APACHE_LIBS%g
3650: s%@charsetsdir@%$charsetsdir%g
3651: s%@sqldriversdir@%$sqldriversdir%g
3652:
3653: CEOF
3654: EOF
3655:
3656: cat >> $CONFIG_STATUS <<\EOF
3657:
3658: # Split the substitutions into bite-sized pieces for seds with
3659: # small command number limits, like on Digital OSF/1 and HP-UX.
3660: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3661: ac_file=1 # Number of current file.
3662: ac_beg=1 # First line for current file.
3663: ac_end=$ac_max_sed_cmds # Line after last line for current file.
3664: ac_more_lines=:
3665: ac_sed_cmds=""
3666: while $ac_more_lines; do
3667: if test $ac_beg -gt 1; then
3668: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3669: else
3670: sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3671: fi
3672: if test ! -s conftest.s$ac_file; then
3673: ac_more_lines=false
3674: rm -f conftest.s$ac_file
3675: else
3676: if test -z "$ac_sed_cmds"; then
3677: ac_sed_cmds="sed -f conftest.s$ac_file"
3678: else
3679: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3680: fi
3681: ac_file=`expr $ac_file + 1`
3682: ac_beg=$ac_end
3683: ac_end=`expr $ac_end + $ac_max_sed_cmds`
3684: fi
3685: done
3686: if test -z "$ac_sed_cmds"; then
3687: ac_sed_cmds=cat
3688: fi
3689: EOF
3690:
3691: cat >> $CONFIG_STATUS <<EOF
3692:
1.54 paf 3693: CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile src/types/Makefile src/classes/Makefile src/classes/gd/Makefile src/classes/smtp/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/lib/Makefile src/lib/ltdl/Makefile src/lib/pcre/Makefile src/lib/md5/Makefile src/lib/patches/Makefile src/targets/Makefile src/targets/cgi/Makefile src/targets/apache13/Makefile src/targets/apache13/hook/Makefile src/targets/apache13/p3runConfigure src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile bin/Makefile bin/auto.p.dist"}
1.1 paf 3694: EOF
3695: cat >> $CONFIG_STATUS <<\EOF
3696: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3697: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3698: case "$ac_file" in
3699: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3700: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3701: *) ac_file_in="${ac_file}.in" ;;
3702: esac
3703:
3704: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3705:
3706: # Remove last slash and all that follows it. Not all systems have dirname.
3707: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3708: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3709: # The file is in a subdirectory.
3710: test ! -d "$ac_dir" && mkdir "$ac_dir"
3711: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3712: # A "../" for each directory in $ac_dir_suffix.
3713: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3714: else
3715: ac_dir_suffix= ac_dots=
3716: fi
3717:
3718: case "$ac_given_srcdir" in
3719: .) srcdir=.
3720: if test -z "$ac_dots"; then top_srcdir=.
3721: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3722: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3723: *) # Relative path.
3724: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3725: top_srcdir="$ac_dots$ac_given_srcdir" ;;
3726: esac
3727:
3728: case "$ac_given_INSTALL" in
3729: [/$]*) INSTALL="$ac_given_INSTALL" ;;
3730: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3731: esac
3732:
3733: echo creating "$ac_file"
3734: rm -f "$ac_file"
3735: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3736: case "$ac_file" in
3737: *Makefile*) ac_comsub="1i\\
3738: # $configure_input" ;;
3739: *) ac_comsub= ;;
3740: esac
3741:
3742: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3743: sed -e "$ac_comsub
3744: s%@configure_input@%$configure_input%g
3745: s%@srcdir@%$srcdir%g
3746: s%@top_srcdir@%$top_srcdir%g
3747: s%@INSTALL@%$INSTALL%g
3748: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3749: fi; done
3750: rm -f conftest.s*
3751:
3752: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3753: # NAME is the cpp macro being defined and VALUE is the value it is being given.
3754: #
3755: # ac_d sets the value in "#define NAME VALUE" lines.
3756: ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3757: ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3758: ac_dC='\3'
3759: ac_dD='%g'
3760: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3761: ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3762: ac_uB='\([ ]\)%\1#\2define\3'
3763: ac_uC=' '
3764: ac_uD='\4%g'
3765: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3766: ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3767: ac_eB='$%\1#\2define\3'
3768: ac_eC=' '
3769: ac_eD='%g'
3770:
3771: if test "${CONFIG_HEADERS+set}" != set; then
3772: EOF
3773: cat >> $CONFIG_STATUS <<EOF
3774: CONFIG_HEADERS="src/include/pa_config_auto.h"
3775: EOF
3776: cat >> $CONFIG_STATUS <<\EOF
3777: fi
3778: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3779: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3780: case "$ac_file" in
3781: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3782: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3783: *) ac_file_in="${ac_file}.in" ;;
3784: esac
3785:
3786: echo creating $ac_file
3787:
3788: rm -f conftest.frag conftest.in conftest.out
3789: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3790: cat $ac_file_inputs > conftest.in
3791:
3792: EOF
3793:
3794: # Transform confdefs.h into a sed script conftest.vals that substitutes
3795: # the proper values into config.h.in to produce config.h. And first:
3796: # Protect against being on the right side of a sed subst in config.status.
3797: # Protect against being in an unquoted here document in config.status.
3798: rm -f conftest.vals
3799: cat > conftest.hdr <<\EOF
3800: s/[\\&%]/\\&/g
3801: s%[\\$`]%\\&%g
3802: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3803: s%ac_d%ac_u%gp
3804: s%ac_u%ac_e%gp
3805: EOF
3806: sed -n -f conftest.hdr confdefs.h > conftest.vals
3807: rm -f conftest.hdr
3808:
3809: # This sed command replaces #undef with comments. This is necessary, for
3810: # example, in the case of _POSIX_SOURCE, which is predefined and required
3811: # on some systems where configure will not decide to define it.
3812: cat >> conftest.vals <<\EOF
3813: s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3814: EOF
3815:
3816: # Break up conftest.vals because some shells have a limit on
3817: # the size of here documents, and old seds have small limits too.
3818:
3819: rm -f conftest.tail
3820: while :
3821: do
3822: ac_lines=`grep -c . conftest.vals`
3823: # grep -c gives empty output for an empty file on some AIX systems.
3824: if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3825: # Write a limited-size here document to conftest.frag.
3826: echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3827: sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3828: echo 'CEOF
3829: sed -f conftest.frag conftest.in > conftest.out
3830: rm -f conftest.in
3831: mv conftest.out conftest.in
3832: ' >> $CONFIG_STATUS
3833: sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3834: rm -f conftest.vals
3835: mv conftest.tail conftest.vals
3836: done
3837: rm -f conftest.vals
3838:
3839: cat >> $CONFIG_STATUS <<\EOF
3840: rm -f conftest.frag conftest.h
3841: echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3842: cat conftest.in >> conftest.h
3843: rm -f conftest.in
3844: if cmp -s $ac_file conftest.h 2>/dev/null; then
3845: echo "$ac_file is unchanged"
3846: rm -f conftest.h
3847: else
3848: # Remove last slash and all that follows it. Not all systems have dirname.
3849: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3850: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3851: # The file is in a subdirectory.
3852: test ! -d "$ac_dir" && mkdir "$ac_dir"
3853: fi
3854: rm -f $ac_file
3855: mv conftest.h $ac_file
3856: fi
3857: fi; done
3858:
3859: EOF
3860: cat >> $CONFIG_STATUS <<EOF
3861:
3862:
3863: EOF
3864: cat >> $CONFIG_STATUS <<\EOF
3865: test -z "$CONFIG_HEADERS" || echo timestamp > src/include/stamp-h
3866:
3867: exit 0
3868: EOF
3869: chmod +x $CONFIG_STATUS
3870: rm -fr confdefs* $ac_clean_files
3871: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3872:
3873: if test "$no_recursion" != yes; then
3874:
3875: # Remove --cache-file and --srcdir arguments so they do not pile up.
3876: ac_sub_configure_args=
3877: ac_prev=
3878: for ac_arg in $ac_configure_args; do
3879: if test -n "$ac_prev"; then
3880: ac_prev=
3881: continue
3882: fi
3883: case "$ac_arg" in
3884: -cache-file | --cache-file | --cache-fil | --cache-fi \
3885: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3886: ac_prev=cache_file ;;
3887: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3888: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3889: ;;
3890: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3891: ac_prev=srcdir ;;
3892: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3893: ;;
3894: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3895: esac
3896: done
3897:
1.54 paf 3898: for ac_config_dir in src/lib/ltdl; do
1.1 paf 3899:
3900: # Do not complain, so a configure script can configure whichever
3901: # parts of a large source tree are present.
3902: if test ! -d $srcdir/$ac_config_dir; then
3903: continue
3904: fi
3905:
3906: echo configuring in $ac_config_dir
3907:
3908: case "$srcdir" in
3909: .) ;;
3910: *)
3911: if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3912: else
3913: { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3914: fi
3915: ;;
3916: esac
3917:
3918: ac_popdir=`pwd`
3919: cd $ac_config_dir
3920:
3921: # A "../" for each directory in /$ac_config_dir.
3922: ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3923:
3924: case "$srcdir" in
3925: .) # No --srcdir option. We are building in place.
3926: ac_sub_srcdir=$srcdir ;;
3927: /*) # Absolute path.
3928: ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3929: *) # Relative path.
3930: ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3931: esac
3932:
3933: # Check for guested configure; otherwise get Cygnus style configure.
3934: if test -f $ac_sub_srcdir/configure; then
3935: ac_sub_configure=$ac_sub_srcdir/configure
3936: elif test -f $ac_sub_srcdir/configure.in; then
3937: ac_sub_configure=$ac_configure
3938: else
3939: echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3940: ac_sub_configure=
3941: fi
3942:
3943: # The recursion is here.
3944: if test -n "$ac_sub_configure"; then
3945:
3946: # Make the cache file name correct relative to the subdirectory.
3947: case "$cache_file" in
3948: /*) ac_sub_cache_file=$cache_file ;;
3949: *) # Relative path.
3950: ac_sub_cache_file="$ac_dots$cache_file" ;;
3951: esac
3952: case "$ac_given_INSTALL" in
3953: [/$]*) INSTALL="$ac_given_INSTALL" ;;
3954: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3955: esac
3956:
3957: echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3958: # The eval makes quoting arguments work.
3959: if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3960: then :
3961: else
3962: { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3963: fi
3964: fi
3965:
3966: cd $ac_popdir
3967: done
3968: fi
3969:
E-mail: