Annotation of parser3/src/sql/oracle/configure, revision 1.5
1.1 parser 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
1.5 ! parser 15: --with-oracleoci_inc[=DIR] DIR is the Oracle OCI includes directory"
! 16: ac_help="$ac_help
! 17: --with-oraclepublic_inc[=DIR] DIR is the Oracle public includes directory"
! 18: ac_help="$ac_help
1.1 parser 19: --enable-shared[=PKGS] build shared libraries [default=yes]"
20: ac_help="$ac_help
21: --enable-static[=PKGS] build static libraries [default=yes]"
22: ac_help="$ac_help
23: --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
24: ac_help="$ac_help
25: --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
26: ac_help="$ac_help
27: --disable-libtool-lock avoid locking (might break parallel builds)"
28:
29: # Initialize some variables set by options.
30: # The variables have the same names as the options, with
31: # dashes changed to underlines.
32: build=NONE
33: cache_file=./config.cache
34: exec_prefix=NONE
35: host=NONE
36: no_create=
37: nonopt=NONE
38: no_recursion=
39: prefix=NONE
40: program_prefix=NONE
41: program_suffix=NONE
42: program_transform_name=s,x,x,
43: silent=
44: site=
45: srcdir=
46: target=NONE
47: verbose=
48: x_includes=NONE
49: x_libraries=NONE
50: bindir='${exec_prefix}/bin'
51: sbindir='${exec_prefix}/sbin'
52: libexecdir='${exec_prefix}/libexec'
53: datadir='${prefix}/share'
54: sysconfdir='${prefix}/etc'
55: sharedstatedir='${prefix}/com'
56: localstatedir='${prefix}/var'
57: libdir='${exec_prefix}/lib'
58: includedir='${prefix}/include'
59: oldincludedir='/usr/include'
60: infodir='${prefix}/info'
61: mandir='${prefix}/man'
62:
63: # Initialize some other variables.
64: subdirs=
65: MFLAGS= MAKEFLAGS=
66: SHELL=${CONFIG_SHELL-/bin/sh}
67: # Maximum number of lines to put in a shell here document.
68: ac_max_here_lines=12
69:
70: ac_prev=
71: for ac_option
72: do
73:
74: # If the previous option needs an argument, assign it.
75: if test -n "$ac_prev"; then
76: eval "$ac_prev=\$ac_option"
77: ac_prev=
78: continue
79: fi
80:
81: case "$ac_option" in
82: -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
83: *) ac_optarg= ;;
84: esac
85:
86: # Accept the important Cygnus configure options, so we can diagnose typos.
87:
88: case "$ac_option" in
89:
90: -bindir | --bindir | --bindi | --bind | --bin | --bi)
91: ac_prev=bindir ;;
92: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
93: bindir="$ac_optarg" ;;
94:
95: -build | --build | --buil | --bui | --bu)
96: ac_prev=build ;;
97: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
98: build="$ac_optarg" ;;
99:
100: -cache-file | --cache-file | --cache-fil | --cache-fi \
101: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
102: ac_prev=cache_file ;;
103: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
104: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
105: cache_file="$ac_optarg" ;;
106:
107: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
108: ac_prev=datadir ;;
109: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
110: | --da=*)
111: datadir="$ac_optarg" ;;
112:
113: -disable-* | --disable-*)
114: ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
115: # Reject names that are not valid shell variable names.
116: if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
117: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118: fi
119: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
120: eval "enable_${ac_feature}=no" ;;
121:
122: -enable-* | --enable-*)
123: ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
124: # Reject names that are not valid shell variable names.
125: if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
126: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127: fi
128: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129: case "$ac_option" in
130: *=*) ;;
131: *) ac_optarg=yes ;;
132: esac
133: eval "enable_${ac_feature}='$ac_optarg'" ;;
134:
135: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
136: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
137: | --exec | --exe | --ex)
138: ac_prev=exec_prefix ;;
139: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
140: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
141: | --exec=* | --exe=* | --ex=*)
142: exec_prefix="$ac_optarg" ;;
143:
144: -gas | --gas | --ga | --g)
145: # Obsolete; use --with-gas.
146: with_gas=yes ;;
147:
148: -help | --help | --hel | --he)
149: # Omit some internal or obsolete options to make the list less imposing.
150: # This message is too long to be a string in the A/UX 3.1 sh.
151: cat << EOF
152: Usage: configure [options] [host]
153: Options: [defaults in brackets after descriptions]
154: Configuration:
155: --cache-file=FILE cache test results in FILE
156: --help print this message
157: --no-create do not create output files
158: --quiet, --silent do not print \`checking...' messages
159: --version print the version of autoconf that created configure
160: Directory and file names:
161: --prefix=PREFIX install architecture-independent files in PREFIX
162: [$ac_default_prefix]
163: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
164: [same as prefix]
165: --bindir=DIR user executables in DIR [EPREFIX/bin]
166: --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
167: --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
168: --datadir=DIR read-only architecture-independent data in DIR
169: [PREFIX/share]
170: --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
171: --sharedstatedir=DIR modifiable architecture-independent data in DIR
172: [PREFIX/com]
173: --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
174: --libdir=DIR object code libraries in DIR [EPREFIX/lib]
175: --includedir=DIR C header files in DIR [PREFIX/include]
176: --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
177: --infodir=DIR info documentation in DIR [PREFIX/info]
178: --mandir=DIR man documentation in DIR [PREFIX/man]
179: --srcdir=DIR find the sources in DIR [configure dir or ..]
180: --program-prefix=PREFIX prepend PREFIX to installed program names
181: --program-suffix=SUFFIX append SUFFIX to installed program names
182: --program-transform-name=PROGRAM
183: run sed PROGRAM on installed program names
184: EOF
185: cat << EOF
186: Host type:
187: --build=BUILD configure for building on BUILD [BUILD=HOST]
188: --host=HOST configure for HOST [guessed]
189: --target=TARGET configure for TARGET [TARGET=HOST]
190: Features and packages:
191: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
192: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
193: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
194: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
195: --x-includes=DIR X include files are in DIR
196: --x-libraries=DIR X library files are in DIR
197: EOF
198: if test -n "$ac_help"; then
199: echo "--enable and --with options recognized:$ac_help"
200: fi
201: exit 0 ;;
202:
203: -host | --host | --hos | --ho)
204: ac_prev=host ;;
205: -host=* | --host=* | --hos=* | --ho=*)
206: host="$ac_optarg" ;;
207:
208: -includedir | --includedir | --includedi | --included | --include \
209: | --includ | --inclu | --incl | --inc)
210: ac_prev=includedir ;;
211: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
212: | --includ=* | --inclu=* | --incl=* | --inc=*)
213: includedir="$ac_optarg" ;;
214:
215: -infodir | --infodir | --infodi | --infod | --info | --inf)
216: ac_prev=infodir ;;
217: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
218: infodir="$ac_optarg" ;;
219:
220: -libdir | --libdir | --libdi | --libd)
221: ac_prev=libdir ;;
222: -libdir=* | --libdir=* | --libdi=* | --libd=*)
223: libdir="$ac_optarg" ;;
224:
225: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
226: | --libexe | --libex | --libe)
227: ac_prev=libexecdir ;;
228: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
229: | --libexe=* | --libex=* | --libe=*)
230: libexecdir="$ac_optarg" ;;
231:
232: -localstatedir | --localstatedir | --localstatedi | --localstated \
233: | --localstate | --localstat | --localsta | --localst \
234: | --locals | --local | --loca | --loc | --lo)
235: ac_prev=localstatedir ;;
236: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
237: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
238: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
239: localstatedir="$ac_optarg" ;;
240:
241: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
242: ac_prev=mandir ;;
243: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
244: mandir="$ac_optarg" ;;
245:
246: -nfp | --nfp | --nf)
247: # Obsolete; use --without-fp.
248: with_fp=no ;;
249:
250: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
251: | --no-cr | --no-c)
252: no_create=yes ;;
253:
254: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
255: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
256: no_recursion=yes ;;
257:
258: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
259: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
260: | --oldin | --oldi | --old | --ol | --o)
261: ac_prev=oldincludedir ;;
262: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
263: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
264: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
265: oldincludedir="$ac_optarg" ;;
266:
267: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
268: ac_prev=prefix ;;
269: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
270: prefix="$ac_optarg" ;;
271:
272: -program-prefix | --program-prefix | --program-prefi | --program-pref \
273: | --program-pre | --program-pr | --program-p)
274: ac_prev=program_prefix ;;
275: -program-prefix=* | --program-prefix=* | --program-prefi=* \
276: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
277: program_prefix="$ac_optarg" ;;
278:
279: -program-suffix | --program-suffix | --program-suffi | --program-suff \
280: | --program-suf | --program-su | --program-s)
281: ac_prev=program_suffix ;;
282: -program-suffix=* | --program-suffix=* | --program-suffi=* \
283: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
284: program_suffix="$ac_optarg" ;;
285:
286: -program-transform-name | --program-transform-name \
287: | --program-transform-nam | --program-transform-na \
288: | --program-transform-n | --program-transform- \
289: | --program-transform | --program-transfor \
290: | --program-transfo | --program-transf \
291: | --program-trans | --program-tran \
292: | --progr-tra | --program-tr | --program-t)
293: ac_prev=program_transform_name ;;
294: -program-transform-name=* | --program-transform-name=* \
295: | --program-transform-nam=* | --program-transform-na=* \
296: | --program-transform-n=* | --program-transform-=* \
297: | --program-transform=* | --program-transfor=* \
298: | --program-transfo=* | --program-transf=* \
299: | --program-trans=* | --program-tran=* \
300: | --progr-tra=* | --program-tr=* | --program-t=*)
301: program_transform_name="$ac_optarg" ;;
302:
303: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
304: | -silent | --silent | --silen | --sile | --sil)
305: silent=yes ;;
306:
307: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
308: ac_prev=sbindir ;;
309: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
310: | --sbi=* | --sb=*)
311: sbindir="$ac_optarg" ;;
312:
313: -sharedstatedir | --sharedstatedir | --sharedstatedi \
314: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
315: | --sharedst | --shareds | --shared | --share | --shar \
316: | --sha | --sh)
317: ac_prev=sharedstatedir ;;
318: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
319: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
320: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
321: | --sha=* | --sh=*)
322: sharedstatedir="$ac_optarg" ;;
323:
324: -site | --site | --sit)
325: ac_prev=site ;;
326: -site=* | --site=* | --sit=*)
327: site="$ac_optarg" ;;
328:
329: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
330: ac_prev=srcdir ;;
331: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
332: srcdir="$ac_optarg" ;;
333:
334: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
335: | --syscon | --sysco | --sysc | --sys | --sy)
336: ac_prev=sysconfdir ;;
337: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
338: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
339: sysconfdir="$ac_optarg" ;;
340:
341: -target | --target | --targe | --targ | --tar | --ta | --t)
342: ac_prev=target ;;
343: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
344: target="$ac_optarg" ;;
345:
346: -v | -verbose | --verbose | --verbos | --verbo | --verb)
347: verbose=yes ;;
348:
349: -version | --version | --versio | --versi | --vers)
350: echo "configure generated by autoconf version 2.13"
351: exit 0 ;;
352:
353: -with-* | --with-*)
354: ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
355: # Reject names that are not valid shell variable names.
356: if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
357: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358: fi
359: ac_package=`echo $ac_package| sed 's/-/_/g'`
360: case "$ac_option" in
361: *=*) ;;
362: *) ac_optarg=yes ;;
363: esac
364: eval "with_${ac_package}='$ac_optarg'" ;;
365:
366: -without-* | --without-*)
367: ac_package=`echo $ac_option|sed -e 's/-*without-//'`
368: # Reject names that are not valid shell variable names.
369: if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
370: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371: fi
372: ac_package=`echo $ac_package| sed 's/-/_/g'`
373: eval "with_${ac_package}=no" ;;
374:
375: --x)
376: # Obsolete; use --with-x.
377: with_x=yes ;;
378:
379: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
380: | --x-incl | --x-inc | --x-in | --x-i)
381: ac_prev=x_includes ;;
382: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
383: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
384: x_includes="$ac_optarg" ;;
385:
386: -x-libraries | --x-libraries | --x-librarie | --x-librari \
387: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
388: ac_prev=x_libraries ;;
389: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
390: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
391: x_libraries="$ac_optarg" ;;
392:
393: -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
394: ;;
395:
396: *)
397: if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
398: echo "configure: warning: $ac_option: invalid host type" 1>&2
399: fi
400: if test "x$nonopt" != xNONE; then
401: { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
402: fi
403: nonopt="$ac_option"
404: ;;
405:
406: esac
407: done
408:
409: if test -n "$ac_prev"; then
410: { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
411: fi
412:
413: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
414:
415: # File descriptor usage:
416: # 0 standard input
417: # 1 file creation
418: # 2 errors and warnings
419: # 3 some systems may open it to /dev/tty
420: # 4 used on the Kubota Titan
421: # 6 checking for... messages and results
422: # 5 compiler messages saved in config.log
423: if test "$silent" = yes; then
424: exec 6>/dev/null
425: else
426: exec 6>&1
427: fi
428: exec 5>./config.log
429:
430: echo "\
431: This file contains any messages produced by compilers while
432: running configure, to aid debugging if configure makes a mistake.
433: " 1>&5
434:
435: # Strip out --no-create and --no-recursion so they do not pile up.
436: # Also quote any args containing shell metacharacters.
437: ac_configure_args=
438: for ac_arg
439: do
440: case "$ac_arg" in
441: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
442: | --no-cr | --no-c) ;;
443: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
444: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
445: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
446: ac_configure_args="$ac_configure_args '$ac_arg'" ;;
447: *) ac_configure_args="$ac_configure_args $ac_arg" ;;
448: esac
449: done
450:
451: # NLS nuisances.
452: # Only set these to C if already set. These must not be set unconditionally
453: # because not all systems understand e.g. LANG=C (notably SCO).
454: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
455: # Non-C LC_CTYPE values break the ctype check.
456: if test "${LANG+set}" = set; then LANG=C; export LANG; fi
457: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
458: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
459: if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
460:
461: # confdefs.h avoids OS command line length limits that DEFS can exceed.
462: rm -rf conftest* confdefs.h
463: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
464: echo > confdefs.h
465:
466: # A filename unique to this package, relative to the directory that
467: # configure is in, which we can look for to find out if srcdir is correct.
1.2 parser 468: ac_unique_file=parser3oracle.C
1.1 parser 469:
470: # Find the source files, if location was not specified.
471: if test -z "$srcdir"; then
472: ac_srcdir_defaulted=yes
473: # Try the directory containing this script, then its parent.
474: ac_prog=$0
475: ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
476: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
477: srcdir=$ac_confdir
478: if test ! -r $srcdir/$ac_unique_file; then
479: srcdir=..
480: fi
481: else
482: ac_srcdir_defaulted=no
483: fi
484: if test ! -r $srcdir/$ac_unique_file; then
485: if test "$ac_srcdir_defaulted" = yes; then
486: { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
487: else
488: { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
489: fi
490: fi
491: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
492:
493: # Prefer explicitly selected file to automatically selected ones.
494: if test -z "$CONFIG_SITE"; then
495: if test "x$prefix" != xNONE; then
496: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
497: else
498: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
499: fi
500: fi
501: for ac_site_file in $CONFIG_SITE; do
502: if test -r "$ac_site_file"; then
503: echo "loading site script $ac_site_file"
504: . "$ac_site_file"
505: fi
506: done
507:
508: if test -r "$cache_file"; then
509: echo "loading cache $cache_file"
510: . $cache_file
511: else
512: echo "creating cache $cache_file"
513: > $cache_file
514: fi
515:
516: ac_ext=c
517: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
518: ac_cpp='$CPP $CPPFLAGS'
519: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
520: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
521: cross_compiling=$ac_cv_prog_cc_cross
522:
523: ac_exeext=
524: ac_objext=o
525: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
526: # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
527: if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
528: ac_n= ac_c='
529: ' ac_t=' '
530: else
531: ac_n=-n ac_c= ac_t=
532: fi
533: else
534: ac_n= ac_c='\c' ac_t=
535: fi
536:
537:
538: ac_aux_dir=
539: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
540: if test -f $ac_dir/install-sh; then
541: ac_aux_dir=$ac_dir
542: ac_install_sh="$ac_aux_dir/install-sh -c"
543: break
544: elif test -f $ac_dir/install.sh; then
545: ac_aux_dir=$ac_dir
546: ac_install_sh="$ac_aux_dir/install.sh -c"
547: break
548: fi
549: done
550: if test -z "$ac_aux_dir"; then
551: { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
552: fi
553: ac_config_guess=$ac_aux_dir/config.guess
554: ac_config_sub=$ac_aux_dir/config.sub
555: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
556:
557: # Find a good install program. We prefer a C program (faster),
558: # so one script is as good as another. But avoid the broken or
559: # incompatible versions:
560: # SysV /etc/install, /usr/sbin/install
561: # SunOS /usr/etc/install
562: # IRIX /sbin/install
563: # AIX /bin/install
564: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
565: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
566: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
567: # ./install, which can be erroneously created by make from ./install.sh.
568: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.3 parser 569: echo "configure:570: checking for a BSD compatible install" >&5
1.1 parser 570: if test -z "$INSTALL"; then
571: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
572: echo $ac_n "(cached) $ac_c" 1>&6
573: else
574: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
575: for ac_dir in $PATH; do
576: # Account for people who put trailing slashes in PATH elements.
577: case "$ac_dir/" in
578: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
579: *)
580: # OSF1 and SCO ODT 3.0 have their own names for install.
581: # Don't use installbsd from OSF since it installs stuff as root
582: # by default.
583: for ac_prog in ginstall scoinst install; do
584: if test -f $ac_dir/$ac_prog; then
585: if test $ac_prog = install &&
586: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
587: # AIX install. It has an incompatible calling convention.
588: :
589: else
590: ac_cv_path_install="$ac_dir/$ac_prog -c"
591: break 2
592: fi
593: fi
594: done
595: ;;
596: esac
597: done
598: IFS="$ac_save_IFS"
599:
600: fi
601: if test "${ac_cv_path_install+set}" = set; then
602: INSTALL="$ac_cv_path_install"
603: else
604: # As a last resort, use the slow shell script. We don't cache a
605: # path for INSTALL within a source directory, because that will
606: # break other packages using the cache if that directory is
607: # removed, or if the path is relative.
608: INSTALL="$ac_install_sh"
609: fi
610: fi
611: echo "$ac_t""$INSTALL" 1>&6
612:
613: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
614: # It thinks the first close brace ends the variable substitution.
615: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
616:
617: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
618:
619: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
620:
621: echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1.3 parser 622: echo "configure:623: checking whether build environment is sane" >&5
1.1 parser 623: # Just in case
624: sleep 1
625: echo timestamp > conftestfile
626: # Do `set' in a subshell so we don't clobber the current shell's
627: # arguments. Must try -L first in case configure is actually a
628: # symlink; some systems play weird games with the mod time of symlinks
629: # (eg FreeBSD returns the mod time of the symlink's containing
630: # directory).
631: if (
632: set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
633: if test "$*" = "X"; then
634: # -L didn't work.
635: set X `ls -t $srcdir/configure conftestfile`
636: fi
637: if test "$*" != "X $srcdir/configure conftestfile" \
638: && test "$*" != "X conftestfile $srcdir/configure"; then
639:
640: # If neither matched, then we have a broken ls. This can happen
641: # if, for instance, CONFIG_SHELL is bash and it inherits a
642: # broken ls alias from the environment. This has actually
643: # happened. Such a system could not be considered "sane".
644: { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
645: alias in your environment" 1>&2; exit 1; }
646: fi
647:
648: test "$2" = conftestfile
649: )
650: then
651: # Ok.
652: :
653: else
654: { echo "configure: error: newly created file is older than distributed files!
655: Check your system clock" 1>&2; exit 1; }
656: fi
657: rm -f conftest*
658: echo "$ac_t""yes" 1>&6
659: if test "$program_transform_name" = s,x,x,; then
660: program_transform_name=
661: else
662: # Double any \ or $. echo might interpret backslashes.
663: cat <<\EOF_SED > conftestsed
664: s,\\,\\\\,g; s,\$,$$,g
665: EOF_SED
666: program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
667: rm -f conftestsed
668: fi
669: test "$program_prefix" != NONE &&
670: program_transform_name="s,^,${program_prefix},; $program_transform_name"
671: # Use a double $ so make ignores it.
672: test "$program_suffix" != NONE &&
673: program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
674:
675: # sed with no file args requires a program.
676: test "$program_transform_name" = "" && program_transform_name="s,x,x,"
677:
678: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1.3 parser 679: echo "configure:680: checking whether ${MAKE-make} sets \${MAKE}" >&5
1.1 parser 680: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
681: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
682: echo $ac_n "(cached) $ac_c" 1>&6
683: else
684: cat > conftestmake <<\EOF
685: all:
686: @echo 'ac_maketemp="${MAKE}"'
687: EOF
688: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
689: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
690: if test -n "$ac_maketemp"; then
691: eval ac_cv_prog_make_${ac_make}_set=yes
692: else
693: eval ac_cv_prog_make_${ac_make}_set=no
694: fi
695: rm -f conftestmake
696: fi
697: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698: echo "$ac_t""yes" 1>&6
699: SET_MAKE=
700: else
701: echo "$ac_t""no" 1>&6
702: SET_MAKE="MAKE=${MAKE-make}"
703: fi
704:
705:
1.2 parser 706: PACKAGE=parser3oracleclient
1.1 parser 707:
708: VERSION=3.0g
709:
710: if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
711: { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
712: fi
713:
714:
715:
716: missing_dir=`cd $ac_aux_dir && pwd`
717: echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1.3 parser 718: echo "configure:719: checking for working aclocal" >&5
1.1 parser 719: # Run test in a subshell; some versions of sh will print an error if
720: # an executable is not found, even if stderr is redirected.
721: # Redirect stdin to placate older versions of autoconf. Sigh.
722: if (aclocal --version) < /dev/null > /dev/null 2>&1; then
723: ACLOCAL=aclocal
724: echo "$ac_t""found" 1>&6
725: else
726: ACLOCAL="$missing_dir/missing aclocal"
727: echo "$ac_t""missing" 1>&6
728: fi
729:
730: echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1.3 parser 731: echo "configure:732: checking for working autoconf" >&5
1.1 parser 732: # Run test in a subshell; some versions of sh will print an error if
733: # an executable is not found, even if stderr is redirected.
734: # Redirect stdin to placate older versions of autoconf. Sigh.
735: if (autoconf --version) < /dev/null > /dev/null 2>&1; then
736: AUTOCONF=autoconf
737: echo "$ac_t""found" 1>&6
738: else
739: AUTOCONF="$missing_dir/missing autoconf"
740: echo "$ac_t""missing" 1>&6
741: fi
742:
743: echo $ac_n "checking for working automake""... $ac_c" 1>&6
1.3 parser 744: echo "configure:745: checking for working automake" >&5
1.1 parser 745: # Run test in a subshell; some versions of sh will print an error if
746: # an executable is not found, even if stderr is redirected.
747: # Redirect stdin to placate older versions of autoconf. Sigh.
748: if (automake --version) < /dev/null > /dev/null 2>&1; then
749: AUTOMAKE=automake
750: echo "$ac_t""found" 1>&6
751: else
752: AUTOMAKE="$missing_dir/missing automake"
753: echo "$ac_t""missing" 1>&6
754: fi
755:
756: echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1.3 parser 757: echo "configure:758: checking for working autoheader" >&5
1.1 parser 758: # Run test in a subshell; some versions of sh will print an error if
759: # an executable is not found, even if stderr is redirected.
760: # Redirect stdin to placate older versions of autoconf. Sigh.
761: if (autoheader --version) < /dev/null > /dev/null 2>&1; then
762: AUTOHEADER=autoheader
763: echo "$ac_t""found" 1>&6
764: else
765: AUTOHEADER="$missing_dir/missing autoheader"
766: echo "$ac_t""missing" 1>&6
767: fi
768:
769: echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1.3 parser 770: echo "configure:771: checking for working makeinfo" >&5
1.1 parser 771: # Run test in a subshell; some versions of sh will print an error if
772: # an executable is not found, even if stderr is redirected.
773: # Redirect stdin to placate older versions of autoconf. Sigh.
774: if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
775: MAKEINFO=makeinfo
776: echo "$ac_t""found" 1>&6
777: else
778: MAKEINFO="$missing_dir/missing makeinfo"
779: echo "$ac_t""missing" 1>&6
780: fi
781:
782:
783:
784:
785:
786:
787:
1.5 ! parser 788:
! 789: # Check whether --with-oracleoci_inc or --without-oracleoci_inc was given.
! 790: if test "${with_oracleoci_inc+set}" = set; then
! 791: withval="$with_oracleoci_inc"
! 792: :
! 793: else
! 794: withval="$ORACLE_HOME/rdbms/demo"
! 795:
! 796: fi
! 797:
! 798: ORACLEOCI_INC=$withval
! 799:
! 800:
! 801: # Check whether --with-oraclepublic_inc or --without-oraclepublic_inc was given.
! 802: if test "${with_oraclepublic_inc+set}" = set; then
! 803: withval="$with_oraclepublic_inc"
! 804: :
! 805: else
! 806: withval="$ORACLE_HOME/network/public"
! 807:
! 808: fi
! 809:
! 810: ORACLEPUBLIC_INC=$withval
! 811:
! 812:
! 813:
1.1 parser 814: # Find a good install program. We prefer a C program (faster),
815: # so one script is as good as another. But avoid the broken or
816: # incompatible versions:
817: # SysV /etc/install, /usr/sbin/install
818: # SunOS /usr/etc/install
819: # IRIX /sbin/install
820: # AIX /bin/install
821: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
822: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
823: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
824: # ./install, which can be erroneously created by make from ./install.sh.
825: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.5 ! parser 826: echo "configure:827: checking for a BSD compatible install" >&5
1.1 parser 827: if test -z "$INSTALL"; then
828: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
829: echo $ac_n "(cached) $ac_c" 1>&6
830: else
831: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
832: for ac_dir in $PATH; do
833: # Account for people who put trailing slashes in PATH elements.
834: case "$ac_dir/" in
835: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
836: *)
837: # OSF1 and SCO ODT 3.0 have their own names for install.
838: # Don't use installbsd from OSF since it installs stuff as root
839: # by default.
840: for ac_prog in ginstall scoinst install; do
841: if test -f $ac_dir/$ac_prog; then
842: if test $ac_prog = install &&
843: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
844: # AIX install. It has an incompatible calling convention.
845: :
846: else
847: ac_cv_path_install="$ac_dir/$ac_prog -c"
848: break 2
849: fi
850: fi
851: done
852: ;;
853: esac
854: done
855: IFS="$ac_save_IFS"
856:
857: fi
858: if test "${ac_cv_path_install+set}" = set; then
859: INSTALL="$ac_cv_path_install"
860: else
861: # As a last resort, use the slow shell script. We don't cache a
862: # path for INSTALL within a source directory, because that will
863: # break other packages using the cache if that directory is
864: # removed, or if the path is relative.
865: INSTALL="$ac_install_sh"
866: fi
867: fi
868: echo "$ac_t""$INSTALL" 1>&6
869:
870: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
871: # It thinks the first close brace ends the variable substitution.
872: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
873:
874: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
875:
876: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
877:
878: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1.5 ! parser 879: echo "configure:880: checking whether ${MAKE-make} sets \${MAKE}" >&5
1.1 parser 880: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
881: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
882: echo $ac_n "(cached) $ac_c" 1>&6
883: else
884: cat > conftestmake <<\EOF
885: all:
886: @echo 'ac_maketemp="${MAKE}"'
887: EOF
888: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
889: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
890: if test -n "$ac_maketemp"; then
891: eval ac_cv_prog_make_${ac_make}_set=yes
892: else
893: eval ac_cv_prog_make_${ac_make}_set=no
894: fi
895: rm -f conftestmake
896: fi
897: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
898: echo "$ac_t""yes" 1>&6
899: SET_MAKE=
900: else
901: echo "$ac_t""no" 1>&6
902: SET_MAKE="MAKE=${MAKE-make}"
903: fi
904:
1.5 ! parser 905: for ac_prog in mawk gawk nawk awk
1.1 parser 906: do
907: # Extract the first word of "$ac_prog", so it can be a program name with args.
908: set dummy $ac_prog; ac_word=$2
909: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.5 ! parser 910: echo "configure:911: checking for $ac_word" >&5
1.1 parser 911: if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
912: echo $ac_n "(cached) $ac_c" 1>&6
913: else
914: if test -n "$AWK"; then
915: ac_cv_prog_AWK="$AWK" # Let the user override the test.
916: else
917: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
918: ac_dummy="$PATH"
919: for ac_dir in $ac_dummy; do
920: test -z "$ac_dir" && ac_dir=.
921: if test -f $ac_dir/$ac_word; then
922: ac_cv_prog_AWK="$ac_prog"
923: break
924: fi
925: done
926: IFS="$ac_save_ifs"
927: fi
928: fi
929: AWK="$ac_cv_prog_AWK"
930: if test -n "$AWK"; then
931: echo "$ac_t""$AWK" 1>&6
932: else
933: echo "$ac_t""no" 1>&6
934: fi
935:
936: test -n "$AWK" && break
937: done
938:
939:
940: ac_ext=C
941: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
942: ac_cpp='$CXXCPP $CPPFLAGS'
943: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
944: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
945: cross_compiling=$ac_cv_prog_cxx_cross
946:
947: for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
948: do
949: # Extract the first word of "$ac_prog", so it can be a program name with args.
950: set dummy $ac_prog; ac_word=$2
951: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.5 ! parser 952: echo "configure:953: checking for $ac_word" >&5
1.1 parser 953: if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
954: echo $ac_n "(cached) $ac_c" 1>&6
955: else
956: if test -n "$CXX"; then
957: ac_cv_prog_CXX="$CXX" # Let the user override the test.
958: else
959: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
960: ac_dummy="$PATH"
961: for ac_dir in $ac_dummy; do
962: test -z "$ac_dir" && ac_dir=.
963: if test -f $ac_dir/$ac_word; then
964: ac_cv_prog_CXX="$ac_prog"
965: break
966: fi
967: done
968: IFS="$ac_save_ifs"
969: fi
970: fi
971: CXX="$ac_cv_prog_CXX"
972: if test -n "$CXX"; then
973: echo "$ac_t""$CXX" 1>&6
974: else
975: echo "$ac_t""no" 1>&6
976: fi
977:
978: test -n "$CXX" && break
979: done
980: test -n "$CXX" || CXX="gcc"
981:
982:
983: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.5 ! parser 984: echo "configure:985: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1.1 parser 985:
986: ac_ext=C
987: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
988: ac_cpp='$CXXCPP $CPPFLAGS'
989: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
990: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
991: cross_compiling=$ac_cv_prog_cxx_cross
992:
993: cat > conftest.$ac_ext << EOF
994:
1.5 ! parser 995: #line 996 "configure"
1.1 parser 996: #include "confdefs.h"
997:
998: int main(){return(0);}
999: EOF
1.5 ! parser 1000: if { (eval echo configure:1001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 parser 1001: ac_cv_prog_cxx_works=yes
1002: # If we can't run a trivial program, we are probably using a cross compiler.
1003: if (./conftest; exit) 2>/dev/null; then
1004: ac_cv_prog_cxx_cross=no
1005: else
1006: ac_cv_prog_cxx_cross=yes
1007: fi
1008: else
1009: echo "configure: failed program was:" >&5
1010: cat conftest.$ac_ext >&5
1011: ac_cv_prog_cxx_works=no
1012: fi
1013: rm -fr conftest*
1014: ac_ext=C
1015: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1016: ac_cpp='$CXXCPP $CPPFLAGS'
1017: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1018: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1019: cross_compiling=$ac_cv_prog_cxx_cross
1020:
1021: echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1022: if test $ac_cv_prog_cxx_works = no; then
1023: { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1024: fi
1025: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.5 ! parser 1026: echo "configure:1027: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1 parser 1027: echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1028: cross_compiling=$ac_cv_prog_cxx_cross
1029:
1030: echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1.5 ! parser 1031: echo "configure:1032: checking whether we are using GNU C++" >&5
1.1 parser 1032: if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1033: echo $ac_n "(cached) $ac_c" 1>&6
1034: else
1035: cat > conftest.C <<EOF
1036: #ifdef __GNUC__
1037: yes;
1038: #endif
1039: EOF
1.5 ! parser 1040: if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1 parser 1041: ac_cv_prog_gxx=yes
1042: else
1043: ac_cv_prog_gxx=no
1044: fi
1045: fi
1046:
1047: echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1048:
1049: if test $ac_cv_prog_gxx = yes; then
1050: GXX=yes
1051: else
1052: GXX=
1053: fi
1054:
1055: ac_test_CXXFLAGS="${CXXFLAGS+set}"
1056: ac_save_CXXFLAGS="$CXXFLAGS"
1057: CXXFLAGS=
1058: echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1.5 ! parser 1059: echo "configure:1060: checking whether ${CXX-g++} accepts -g" >&5
1.1 parser 1060: if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1061: echo $ac_n "(cached) $ac_c" 1>&6
1062: else
1063: echo 'void f(){}' > conftest.cc
1064: if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1065: ac_cv_prog_cxx_g=yes
1066: else
1067: ac_cv_prog_cxx_g=no
1068: fi
1069: rm -f conftest*
1070:
1071: fi
1072:
1073: echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1074: if test "$ac_test_CXXFLAGS" = set; then
1075: CXXFLAGS="$ac_save_CXXFLAGS"
1076: elif test $ac_cv_prog_cxx_g = yes; then
1077: if test "$GXX" = yes; then
1078: CXXFLAGS="-g -O2"
1079: else
1080: CXXFLAGS="-g"
1081: fi
1082: else
1083: if test "$GXX" = yes; then
1084: CXXFLAGS="-O2"
1085: else
1086: CXXFLAGS=
1087: fi
1088: fi
1089:
1090:
1091: LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1092: INCLTDL='-I${top_srcdir}/''libltdl'
1093:
1094:
1095:
1096:
1097:
1098: # Check whether --enable-shared or --disable-shared was given.
1099: if test "${enable_shared+set}" = set; then
1100: enableval="$enable_shared"
1101: p=${PACKAGE-default}
1102: case "$enableval" in
1103: yes) enable_shared=yes ;;
1104: no) enable_shared=no ;;
1105: *)
1106: enable_shared=no
1107: # Look at the argument we got. We use all the common list separators.
1108: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1109: for pkg in $enableval; do
1110: if test "X$pkg" = "X$p"; then
1111: enable_shared=yes
1112: fi
1113: done
1114: IFS="$ac_save_ifs"
1115: ;;
1116: esac
1117: else
1118: enable_shared=yes
1119: fi
1120:
1121: # Check whether --enable-static or --disable-static was given.
1122: if test "${enable_static+set}" = set; then
1123: enableval="$enable_static"
1124: p=${PACKAGE-default}
1125: case "$enableval" in
1126: yes) enable_static=yes ;;
1127: no) enable_static=no ;;
1128: *)
1129: enable_static=no
1130: # Look at the argument we got. We use all the common list separators.
1131: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1132: for pkg in $enableval; do
1133: if test "X$pkg" = "X$p"; then
1134: enable_static=yes
1135: fi
1136: done
1137: IFS="$ac_save_ifs"
1138: ;;
1139: esac
1140: else
1141: enable_static=yes
1142: fi
1143:
1144: # Check whether --enable-fast-install or --disable-fast-install was given.
1145: if test "${enable_fast_install+set}" = set; then
1146: enableval="$enable_fast_install"
1147: p=${PACKAGE-default}
1148: case "$enableval" in
1149: yes) enable_fast_install=yes ;;
1150: no) enable_fast_install=no ;;
1151: *)
1152: enable_fast_install=no
1153: # Look at the argument we got. We use all the common list separators.
1154: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1155: for pkg in $enableval; do
1156: if test "X$pkg" = "X$p"; then
1157: enable_fast_install=yes
1158: fi
1159: done
1160: IFS="$ac_save_ifs"
1161: ;;
1162: esac
1163: else
1164: enable_fast_install=yes
1165: fi
1166:
1167:
1168: # Make sure we can run config.sub.
1169: if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1170: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1171: fi
1172:
1173: echo $ac_n "checking host system type""... $ac_c" 1>&6
1.5 ! parser 1174: echo "configure:1175: checking host system type" >&5
1.1 parser 1175:
1176: host_alias=$host
1177: case "$host_alias" in
1178: NONE)
1179: case $nonopt in
1180: NONE)
1181: if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1182: else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1183: fi ;;
1184: *) host_alias=$nonopt ;;
1185: esac ;;
1186: esac
1187:
1188: host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1189: host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1190: host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1191: host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1192: echo "$ac_t""$host" 1>&6
1193:
1194: echo $ac_n "checking build system type""... $ac_c" 1>&6
1.5 ! parser 1195: echo "configure:1196: checking build system type" >&5
1.1 parser 1196:
1197: build_alias=$build
1198: case "$build_alias" in
1199: NONE)
1200: case $nonopt in
1201: NONE) build_alias=$host_alias ;;
1202: *) build_alias=$nonopt ;;
1203: esac ;;
1204: esac
1205:
1206: build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1207: build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1208: build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1209: build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1210: echo "$ac_t""$build" 1>&6
1211:
1212: # Extract the first word of "ranlib", so it can be a program name with args.
1213: set dummy ranlib; ac_word=$2
1214: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.5 ! parser 1215: echo "configure:1216: checking for $ac_word" >&5
1.1 parser 1216: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1217: echo $ac_n "(cached) $ac_c" 1>&6
1218: else
1219: if test -n "$RANLIB"; then
1220: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1221: else
1222: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1223: ac_dummy="$PATH"
1224: for ac_dir in $ac_dummy; do
1225: test -z "$ac_dir" && ac_dir=.
1226: if test -f $ac_dir/$ac_word; then
1227: ac_cv_prog_RANLIB="ranlib"
1228: break
1229: fi
1230: done
1231: IFS="$ac_save_ifs"
1232: test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1233: fi
1234: fi
1235: RANLIB="$ac_cv_prog_RANLIB"
1236: if test -n "$RANLIB"; then
1237: echo "$ac_t""$RANLIB" 1>&6
1238: else
1239: echo "$ac_t""no" 1>&6
1240: fi
1241:
1242: # Extract the first word of "gcc", so it can be a program name with args.
1243: set dummy gcc; ac_word=$2
1244: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.5 ! parser 1245: echo "configure:1246: checking for $ac_word" >&5
1.1 parser 1246: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1247: echo $ac_n "(cached) $ac_c" 1>&6
1248: else
1249: if test -n "$CC"; then
1250: ac_cv_prog_CC="$CC" # Let the user override the test.
1251: else
1252: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1253: ac_dummy="$PATH"
1254: for ac_dir in $ac_dummy; do
1255: test -z "$ac_dir" && ac_dir=.
1256: if test -f $ac_dir/$ac_word; then
1257: ac_cv_prog_CC="gcc"
1258: break
1259: fi
1260: done
1261: IFS="$ac_save_ifs"
1262: fi
1263: fi
1264: CC="$ac_cv_prog_CC"
1265: if test -n "$CC"; then
1266: echo "$ac_t""$CC" 1>&6
1267: else
1268: echo "$ac_t""no" 1>&6
1269: fi
1270:
1271: if test -z "$CC"; then
1272: # Extract the first word of "cc", so it can be a program name with args.
1273: set dummy cc; ac_word=$2
1274: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.5 ! parser 1275: echo "configure:1276: checking for $ac_word" >&5
1.1 parser 1276: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1277: echo $ac_n "(cached) $ac_c" 1>&6
1278: else
1279: if test -n "$CC"; then
1280: ac_cv_prog_CC="$CC" # Let the user override the test.
1281: else
1282: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1283: ac_prog_rejected=no
1284: ac_dummy="$PATH"
1285: for ac_dir in $ac_dummy; do
1286: test -z "$ac_dir" && ac_dir=.
1287: if test -f $ac_dir/$ac_word; then
1288: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1289: ac_prog_rejected=yes
1290: continue
1291: fi
1292: ac_cv_prog_CC="cc"
1293: break
1294: fi
1295: done
1296: IFS="$ac_save_ifs"
1297: if test $ac_prog_rejected = yes; then
1298: # We found a bogon in the path, so make sure we never use it.
1299: set dummy $ac_cv_prog_CC
1300: shift
1301: if test $# -gt 0; then
1302: # We chose a different compiler from the bogus one.
1303: # However, it has the same basename, so the bogon will be chosen
1304: # first if we set CC to just the basename; use the full file name.
1305: shift
1306: set dummy "$ac_dir/$ac_word" "$@"
1307: shift
1308: ac_cv_prog_CC="$@"
1309: fi
1310: fi
1311: fi
1312: fi
1313: CC="$ac_cv_prog_CC"
1314: if test -n "$CC"; then
1315: echo "$ac_t""$CC" 1>&6
1316: else
1317: echo "$ac_t""no" 1>&6
1318: fi
1319:
1320: if test -z "$CC"; then
1321: case "`uname -s`" in
1322: *win32* | *WIN32*)
1323: # Extract the first word of "cl", so it can be a program name with args.
1324: set dummy cl; ac_word=$2
1325: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.5 ! parser 1326: echo "configure:1327: checking for $ac_word" >&5
1.1 parser 1327: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1328: echo $ac_n "(cached) $ac_c" 1>&6
1329: else
1330: if test -n "$CC"; then
1331: ac_cv_prog_CC="$CC" # Let the user override the test.
1332: else
1333: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1334: ac_dummy="$PATH"
1335: for ac_dir in $ac_dummy; do
1336: test -z "$ac_dir" && ac_dir=.
1337: if test -f $ac_dir/$ac_word; then
1338: ac_cv_prog_CC="cl"
1339: break
1340: fi
1341: done
1342: IFS="$ac_save_ifs"
1343: fi
1344: fi
1345: CC="$ac_cv_prog_CC"
1346: if test -n "$CC"; then
1347: echo "$ac_t""$CC" 1>&6
1348: else
1349: echo "$ac_t""no" 1>&6
1350: fi
1351: ;;
1352: esac
1353: fi
1354: test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1355: fi
1356:
1357: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.5 ! parser 1358: echo "configure:1359: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1.1 parser 1359:
1360: ac_ext=c
1361: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1362: ac_cpp='$CPP $CPPFLAGS'
1363: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1364: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1365: cross_compiling=$ac_cv_prog_cc_cross
1366:
1367: cat > conftest.$ac_ext << EOF
1368:
1.5 ! parser 1369: #line 1370 "configure"
1.1 parser 1370: #include "confdefs.h"
1371:
1372: main(){return(0);}
1373: EOF
1.5 ! parser 1374: if { (eval echo configure:1375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 parser 1375: ac_cv_prog_cc_works=yes
1376: # If we can't run a trivial program, we are probably using a cross compiler.
1377: if (./conftest; exit) 2>/dev/null; then
1378: ac_cv_prog_cc_cross=no
1379: else
1380: ac_cv_prog_cc_cross=yes
1381: fi
1382: else
1383: echo "configure: failed program was:" >&5
1384: cat conftest.$ac_ext >&5
1385: ac_cv_prog_cc_works=no
1386: fi
1387: rm -fr conftest*
1388: ac_ext=C
1389: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1390: ac_cpp='$CXXCPP $CPPFLAGS'
1391: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1392: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1393: cross_compiling=$ac_cv_prog_cxx_cross
1394:
1395: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1396: if test $ac_cv_prog_cc_works = no; then
1397: { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1398: fi
1399: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.5 ! parser 1400: echo "configure:1401: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1 parser 1401: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1402: cross_compiling=$ac_cv_prog_cc_cross
1403:
1404: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1.5 ! parser 1405: echo "configure:1406: checking whether we are using GNU C" >&5
1.1 parser 1406: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1407: echo $ac_n "(cached) $ac_c" 1>&6
1408: else
1409: cat > conftest.c <<EOF
1410: #ifdef __GNUC__
1411: yes;
1412: #endif
1413: EOF
1.5 ! parser 1414: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1 parser 1415: ac_cv_prog_gcc=yes
1416: else
1417: ac_cv_prog_gcc=no
1418: fi
1419: fi
1420:
1421: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1422:
1423: if test $ac_cv_prog_gcc = yes; then
1424: GCC=yes
1425: else
1426: GCC=
1427: fi
1428:
1429: ac_test_CFLAGS="${CFLAGS+set}"
1430: ac_save_CFLAGS="$CFLAGS"
1431: CFLAGS=
1432: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1.5 ! parser 1433: echo "configure:1434: checking whether ${CC-cc} accepts -g" >&5
1.1 parser 1434: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1435: echo $ac_n "(cached) $ac_c" 1>&6
1436: else
1437: echo 'void f(){}' > conftest.c
1438: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1439: ac_cv_prog_cc_g=yes
1440: else
1441: ac_cv_prog_cc_g=no
1442: fi
1443: rm -f conftest*
1444:
1445: fi
1446:
1447: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1448: if test "$ac_test_CFLAGS" = set; then
1449: CFLAGS="$ac_save_CFLAGS"
1450: elif test $ac_cv_prog_cc_g = yes; then
1451: if test "$GCC" = yes; then
1452: CFLAGS="-g -O2"
1453: else
1454: CFLAGS="-g"
1455: fi
1456: else
1457: if test "$GCC" = yes; then
1458: CFLAGS="-O2"
1459: else
1460: CFLAGS=
1461: fi
1462: fi
1463:
1464: # Check whether --with-gnu-ld or --without-gnu-ld was given.
1465: if test "${with_gnu_ld+set}" = set; then
1466: withval="$with_gnu_ld"
1467: test "$withval" = no || with_gnu_ld=yes
1468: else
1469: with_gnu_ld=no
1470: fi
1471:
1472: ac_prog=ld
1473: if test "$ac_cv_prog_gcc" = yes; then
1474: # Check if gcc -print-prog-name=ld gives a path.
1475: echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1.5 ! parser 1476: echo "configure:1477: checking for ld used by GCC" >&5
1.1 parser 1477: ac_prog=`($CC -print-prog-name=ld) 2>&5`
1478: case "$ac_prog" in
1479: # Accept absolute paths.
1480: [\\/]* | [A-Za-z]:[\\/]*)
1481: re_direlt='/[^/][^/]*/\.\./'
1482: # Canonicalize the path of ld
1483: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1484: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1485: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1486: done
1487: test -z "$LD" && LD="$ac_prog"
1488: ;;
1489: "")
1490: # If it fails, then pretend we aren't using GCC.
1491: ac_prog=ld
1492: ;;
1493: *)
1494: # If it is relative, then search for the first ld in PATH.
1495: with_gnu_ld=unknown
1496: ;;
1497: esac
1498: elif test "$with_gnu_ld" = yes; then
1499: echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1.5 ! parser 1500: echo "configure:1501: checking for GNU ld" >&5
1.1 parser 1501: else
1502: echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1.5 ! parser 1503: echo "configure:1504: checking for non-GNU ld" >&5
1.1 parser 1504: fi
1505: if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1506: echo $ac_n "(cached) $ac_c" 1>&6
1507: else
1508: if test -z "$LD"; then
1509: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1510: for ac_dir in $PATH; do
1511: test -z "$ac_dir" && ac_dir=.
1512: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1513: ac_cv_path_LD="$ac_dir/$ac_prog"
1514: # Check to see if the program is GNU ld. I'd rather use --version,
1515: # but apparently some GNU ld's only accept -v.
1516: # Break only if it was the GNU/non-GNU ld that we prefer.
1517: if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1518: test "$with_gnu_ld" != no && break
1519: else
1520: test "$with_gnu_ld" != yes && break
1521: fi
1522: fi
1523: done
1524: IFS="$ac_save_ifs"
1525: else
1526: ac_cv_path_LD="$LD" # Let the user override the test with a path.
1527: fi
1528: fi
1529:
1530: LD="$ac_cv_path_LD"
1531: if test -n "$LD"; then
1532: echo "$ac_t""$LD" 1>&6
1533: else
1534: echo "$ac_t""no" 1>&6
1535: fi
1536: test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1537: echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1.5 ! parser 1538: echo "configure:1539: checking if the linker ($LD) is GNU ld" >&5
1.1 parser 1539: if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1540: echo $ac_n "(cached) $ac_c" 1>&6
1541: else
1542: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1543: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1544: ac_cv_prog_gnu_ld=yes
1545: else
1546: ac_cv_prog_gnu_ld=no
1547: fi
1548: fi
1549:
1550: echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1551:
1552:
1553: echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1.5 ! parser 1554: echo "configure:1555: checking for BSD-compatible nm" >&5
1.1 parser 1555: if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1556: echo $ac_n "(cached) $ac_c" 1>&6
1557: else
1558: if test -n "$NM"; then
1559: # Let the user override the test.
1560: ac_cv_path_NM="$NM"
1561: else
1562: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1563: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1564: test -z "$ac_dir" && ac_dir=.
1565: if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1566: # Check to see if the nm accepts a BSD-compat flag.
1567: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1568: # nm: unknown option "B" ignored
1569: if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1570: ac_cv_path_NM="$ac_dir/nm -B"
1571: break
1572: elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1573: ac_cv_path_NM="$ac_dir/nm -p"
1574: break
1575: else
1576: ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1577: continue # so that we can try to find one that supports BSD flags
1578: fi
1579: fi
1580: done
1581: IFS="$ac_save_ifs"
1582: test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1583: fi
1584: fi
1585:
1586: NM="$ac_cv_path_NM"
1587: echo "$ac_t""$NM" 1>&6
1588:
1589: echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1.5 ! parser 1590: echo "configure:1591: checking whether ln -s works" >&5
1.1 parser 1591: if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1592: echo $ac_n "(cached) $ac_c" 1>&6
1593: else
1594: rm -f conftestdata
1595: if ln -s X conftestdata 2>/dev/null
1596: then
1597: rm -f conftestdata
1598: ac_cv_prog_LN_S="ln -s"
1599: else
1600: ac_cv_prog_LN_S=ln
1601: fi
1602: fi
1603: LN_S="$ac_cv_prog_LN_S"
1604: if test "$ac_cv_prog_LN_S" = "ln -s"; then
1605: echo "$ac_t""yes" 1>&6
1606: else
1607: echo "$ac_t""no" 1>&6
1608: fi
1609:
1610:
1611: case "$target" in
1612: NONE) lt_target="$host" ;;
1613: *) lt_target="$target" ;;
1614: esac
1615:
1616: # Check for any special flags to pass to ltconfig.
1617: libtool_flags="--cache-file=$cache_file"
1618: test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1619: test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1620: test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1621: test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1622: test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1623: libtool_flags="$libtool_flags --enable-dlopen"
1624:
1625: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1626: if test "${enable_libtool_lock+set}" = set; then
1627: enableval="$enable_libtool_lock"
1628: :
1629: fi
1630:
1631: test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1632: test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1633:
1634: # Some flags need to be propagated to the compiler or linker for good
1635: # libtool support.
1636: case "$lt_target" in
1637: *-*-irix6*)
1638: # Find out which ABI we are using.
1.5 ! parser 1639: echo '#line 1640 "configure"' > conftest.$ac_ext
! 1640: if { (eval echo configure:1641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 parser 1641: case "`/usr/bin/file conftest.o`" in
1642: *32-bit*)
1643: LD="${LD-ld} -32"
1644: ;;
1645: *N32*)
1646: LD="${LD-ld} -n32"
1647: ;;
1648: *64-bit*)
1649: LD="${LD-ld} -64"
1650: ;;
1651: esac
1652: fi
1653: rm -rf conftest*
1654: ;;
1655:
1656: *-*-sco3.2v5*)
1657: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1658: SAVE_CFLAGS="$CFLAGS"
1659: CFLAGS="$CFLAGS -belf"
1660: echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1.5 ! parser 1661: echo "configure:1662: checking whether the C compiler needs -belf" >&5
1.1 parser 1662: if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1663: echo $ac_n "(cached) $ac_c" 1>&6
1664: else
1665: cat > conftest.$ac_ext <<EOF
1.5 ! parser 1666: #line 1667 "configure"
1.1 parser 1667: #include "confdefs.h"
1668:
1669: int main() {
1670:
1671: ; return 0; }
1672: EOF
1.5 ! parser 1673: if { (eval echo configure:1674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 parser 1674: rm -rf conftest*
1675: lt_cv_cc_needs_belf=yes
1676: else
1677: echo "configure: failed program was:" >&5
1678: cat conftest.$ac_ext >&5
1679: rm -rf conftest*
1680: lt_cv_cc_needs_belf=no
1681: fi
1682: rm -f conftest*
1683: fi
1684:
1685: echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1686: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1687: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1688: CFLAGS="$SAVE_CFLAGS"
1689: fi
1690: ;;
1691:
1692:
1693: esac
1694:
1695:
1696: # Save cache, so that ltconfig can load it
1697: cat > confcache <<\EOF
1698: # This file is a shell script that caches the results of configure
1699: # tests run on this system so they can be shared between configure
1700: # scripts and configure runs. It is not useful on other systems.
1701: # If it contains results you don't want to keep, you may remove or edit it.
1702: #
1703: # By default, configure uses ./config.cache as the cache file,
1704: # creating it if it does not exist already. You can give configure
1705: # the --cache-file=FILE option to use a different cache file; that is
1706: # what configure does when it calls configure scripts in
1707: # subdirectories, so they share the cache.
1708: # Giving --cache-file=/dev/null disables caching, for debugging configure.
1709: # config.status only pays attention to the cache file if you give it the
1710: # --recheck option to rerun configure.
1711: #
1712: EOF
1713: # The following way of writing the cache mishandles newlines in values,
1714: # but we know of no workaround that is simple, portable, and efficient.
1715: # So, don't put newlines in cache variables' values.
1716: # Ultrix sh set writes to stderr and can't be redirected directly,
1717: # and sets the high bit in the cache file unless we assign to the vars.
1718: (set) 2>&1 |
1719: case `(ac_space=' '; set | grep ac_space) 2>&1` in
1720: *ac_space=\ *)
1721: # `set' does not quote correctly, so add quotes (double-quote substitution
1722: # turns \\\\ into \\, and sed turns \\ into \).
1723: sed -n \
1724: -e "s/'/'\\\\''/g" \
1725: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1726: ;;
1727: *)
1728: # `set' quotes correctly as required by POSIX, so do not add quotes.
1729: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1730: ;;
1731: esac >> confcache
1732: if cmp -s $cache_file confcache; then
1733: :
1734: else
1735: if test -w $cache_file; then
1736: echo "updating cache $cache_file"
1737: cat confcache > $cache_file
1738: else
1739: echo "not updating unwritable cache $cache_file"
1740: fi
1741: fi
1742: rm -f confcache
1743:
1744:
1745: # Actually configure libtool. ac_aux_dir is where install-sh is found.
1746: CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1747: LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1748: LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1749: DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1750: ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1751: $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1752: || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1753:
1754: # Reload cache, that may have been modified by ltconfig
1755: if test -r "$cache_file"; then
1756: echo "loading cache $cache_file"
1757: . $cache_file
1758: else
1759: echo "creating cache $cache_file"
1760: > $cache_file
1761: fi
1762:
1763:
1764: # This can be used to rebuild libtool when needed
1765: LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1766:
1767: # Always use our own libtool.
1768: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1769:
1770: # Redirect the config.log output again, so that the ltconfig log is not
1771: # clobbered by the next message.
1772: exec 5>>./config.log
1773:
1774: subdirs="libltdl"
1775:
1776:
1777:
1778:
1779: echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1.5 ! parser 1780: echo "configure:1781: checking how to run the C++ preprocessor" >&5
1.1 parser 1781: if test -z "$CXXCPP"; then
1782: if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1783: echo $ac_n "(cached) $ac_c" 1>&6
1784: else
1785: ac_ext=C
1786: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1787: ac_cpp='$CXXCPP $CPPFLAGS'
1788: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1789: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1790: cross_compiling=$ac_cv_prog_cxx_cross
1791: CXXCPP="${CXX-g++} -E"
1792: cat > conftest.$ac_ext <<EOF
1.5 ! parser 1793: #line 1794 "configure"
1.1 parser 1794: #include "confdefs.h"
1795: #include <stdlib.h>
1796: EOF
1797: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.5 ! parser 1798: { (eval echo configure:1799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 parser 1799: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1800: if test -z "$ac_err"; then
1801: :
1802: else
1803: echo "$ac_err" >&5
1804: echo "configure: failed program was:" >&5
1805: cat conftest.$ac_ext >&5
1806: rm -rf conftest*
1807: CXXCPP=/lib/cpp
1808: fi
1809: rm -f conftest*
1810: ac_cv_prog_CXXCPP="$CXXCPP"
1811: ac_ext=C
1812: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1813: ac_cpp='$CXXCPP $CPPFLAGS'
1814: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1815: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1816: cross_compiling=$ac_cv_prog_cxx_cross
1817: fi
1818: fi
1819: CXXCPP="$ac_cv_prog_CXXCPP"
1820: echo "$ac_t""$CXXCPP" 1>&6
1821:
1822: for ac_hdr in stdio.h \
1823: stdlib.h \
1.4 parser 1824: string.h \
1825: setjmp.h \
1826: ctype.h
1.1 parser 1827:
1828: do
1829: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1830: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.5 ! parser 1831: echo "configure:1832: checking for $ac_hdr" >&5
1.1 parser 1832: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1833: echo $ac_n "(cached) $ac_c" 1>&6
1834: else
1835: cat > conftest.$ac_ext <<EOF
1.5 ! parser 1836: #line 1837 "configure"
1.1 parser 1837: #include "confdefs.h"
1838: #include <$ac_hdr>
1839: EOF
1840: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.5 ! parser 1841: { (eval echo configure:1842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 parser 1842: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1843: if test -z "$ac_err"; then
1844: rm -rf conftest*
1845: eval "ac_cv_header_$ac_safe=yes"
1846: else
1847: echo "$ac_err" >&5
1848: echo "configure: failed program was:" >&5
1849: cat conftest.$ac_ext >&5
1850: rm -rf conftest*
1851: eval "ac_cv_header_$ac_safe=no"
1852: fi
1853: rm -f conftest*
1854: fi
1855: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1856: echo "$ac_t""yes" 1>&6
1857: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1858: cat >> confdefs.h <<EOF
1859: #define $ac_tr_hdr 1
1860: EOF
1861:
1862: else
1863: echo "$ac_t""no" 1>&6
1864: fi
1865: done
1866:
1867:
1868:
1869: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1.5 ! parser 1870: echo "configure:1871: checking for ANSI C header files" >&5
1.1 parser 1871: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1872: echo $ac_n "(cached) $ac_c" 1>&6
1873: else
1874: cat > conftest.$ac_ext <<EOF
1.5 ! parser 1875: #line 1876 "configure"
1.1 parser 1876: #include "confdefs.h"
1877: #include <stdlib.h>
1878: #include <stdarg.h>
1879: #include <string.h>
1880: #include <float.h>
1881: EOF
1882: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.5 ! parser 1883: { (eval echo configure:1884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 parser 1884: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1885: if test -z "$ac_err"; then
1886: rm -rf conftest*
1887: ac_cv_header_stdc=yes
1888: else
1889: echo "$ac_err" >&5
1890: echo "configure: failed program was:" >&5
1891: cat conftest.$ac_ext >&5
1892: rm -rf conftest*
1893: ac_cv_header_stdc=no
1894: fi
1895: rm -f conftest*
1896:
1897: if test $ac_cv_header_stdc = yes; then
1898: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1899: cat > conftest.$ac_ext <<EOF
1.5 ! parser 1900: #line 1901 "configure"
1.1 parser 1901: #include "confdefs.h"
1902: #include <string.h>
1903: EOF
1904: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1905: egrep "memchr" >/dev/null 2>&1; then
1906: :
1907: else
1908: rm -rf conftest*
1909: ac_cv_header_stdc=no
1910: fi
1911: rm -f conftest*
1912:
1913: fi
1914:
1915: if test $ac_cv_header_stdc = yes; then
1916: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1917: cat > conftest.$ac_ext <<EOF
1.5 ! parser 1918: #line 1919 "configure"
1.1 parser 1919: #include "confdefs.h"
1920: #include <stdlib.h>
1921: EOF
1922: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1923: egrep "free" >/dev/null 2>&1; then
1924: :
1925: else
1926: rm -rf conftest*
1927: ac_cv_header_stdc=no
1928: fi
1929: rm -f conftest*
1930:
1931: fi
1932:
1933: if test $ac_cv_header_stdc = yes; then
1934: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1935: if test "$cross_compiling" = yes; then
1936: :
1937: else
1938: cat > conftest.$ac_ext <<EOF
1.5 ! parser 1939: #line 1940 "configure"
1.1 parser 1940: #include "confdefs.h"
1941: #ifdef __cplusplus
1.5 ! parser 1942: extern "C" void exit(int);
1.1 parser 1943: #endif
1944: #include <ctype.h>
1945: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1946: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1947: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1948: int main () { int i; for (i = 0; i < 256; i++)
1949: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1950: exit (0); }
1951:
1952: EOF
1.5 ! parser 1953: if { (eval echo configure:1954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1 parser 1954: then
1955: :
1956: else
1957: echo "configure: failed program was:" >&5
1958: cat conftest.$ac_ext >&5
1959: rm -fr conftest*
1960: ac_cv_header_stdc=no
1961: fi
1962: rm -fr conftest*
1963: fi
1964:
1965: fi
1966: fi
1967:
1968: echo "$ac_t""$ac_cv_header_stdc" 1>&6
1969: if test $ac_cv_header_stdc = yes; then
1970: cat >> confdefs.h <<\EOF
1971: #define STDC_HEADERS 1
1972: EOF
1973:
1974: fi
1975:
1976: echo $ac_n "checking for size_t""... $ac_c" 1>&6
1.5 ! parser 1977: echo "configure:1978: checking for size_t" >&5
1.1 parser 1978: if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1979: echo $ac_n "(cached) $ac_c" 1>&6
1980: else
1981: cat > conftest.$ac_ext <<EOF
1.5 ! parser 1982: #line 1983 "configure"
1.1 parser 1983: #include "confdefs.h"
1984: #include <sys/types.h>
1985: #if STDC_HEADERS
1986: #include <stdlib.h>
1987: #include <stddef.h>
1988: #endif
1989: EOF
1990: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1991: egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1992: rm -rf conftest*
1993: ac_cv_type_size_t=yes
1994: else
1995: rm -rf conftest*
1996: ac_cv_type_size_t=no
1997: fi
1998: rm -f conftest*
1999:
2000: fi
2001: echo "$ac_t""$ac_cv_type_size_t" 1>&6
2002: if test $ac_cv_type_size_t = no; then
2003: cat >> confdefs.h <<\EOF
2004: #define size_t unsigned
2005: EOF
2006:
2007: fi
2008:
2009:
2010:
2011:
2012: trap '' 1 2 15
2013: cat > confcache <<\EOF
2014: # This file is a shell script that caches the results of configure
2015: # tests run on this system so they can be shared between configure
2016: # scripts and configure runs. It is not useful on other systems.
2017: # If it contains results you don't want to keep, you may remove or edit it.
2018: #
2019: # By default, configure uses ./config.cache as the cache file,
2020: # creating it if it does not exist already. You can give configure
2021: # the --cache-file=FILE option to use a different cache file; that is
2022: # what configure does when it calls configure scripts in
2023: # subdirectories, so they share the cache.
2024: # Giving --cache-file=/dev/null disables caching, for debugging configure.
2025: # config.status only pays attention to the cache file if you give it the
2026: # --recheck option to rerun configure.
2027: #
2028: EOF
2029: # The following way of writing the cache mishandles newlines in values,
2030: # but we know of no workaround that is simple, portable, and efficient.
2031: # So, don't put newlines in cache variables' values.
2032: # Ultrix sh set writes to stderr and can't be redirected directly,
2033: # and sets the high bit in the cache file unless we assign to the vars.
2034: (set) 2>&1 |
2035: case `(ac_space=' '; set | grep ac_space) 2>&1` in
2036: *ac_space=\ *)
2037: # `set' does not quote correctly, so add quotes (double-quote substitution
2038: # turns \\\\ into \\, and sed turns \\ into \).
2039: sed -n \
2040: -e "s/'/'\\\\''/g" \
2041: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2042: ;;
2043: *)
2044: # `set' quotes correctly as required by POSIX, so do not add quotes.
2045: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2046: ;;
2047: esac >> confcache
2048: if cmp -s $cache_file confcache; then
2049: :
2050: else
2051: if test -w $cache_file; then
2052: echo "updating cache $cache_file"
2053: cat confcache > $cache_file
2054: else
2055: echo "not updating unwritable cache $cache_file"
2056: fi
2057: fi
2058: rm -f confcache
2059:
2060: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2061:
2062: test "x$prefix" = xNONE && prefix=$ac_default_prefix
2063: # Let make expand exec_prefix.
2064: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2065:
2066: # Any assignment to VPATH causes Sun make to only execute
2067: # the first set of double-colon rules, so remove it if not needed.
2068: # If there is a colon in the path, we need to keep it.
2069: if test "x$srcdir" = x.; then
2070: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2071: fi
2072:
2073: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2074:
2075: DEFS=-DHAVE_CONFIG_H
2076:
2077: # Without the "./", some shells look in PATH for config.status.
2078: : ${CONFIG_STATUS=./config.status}
2079:
2080: echo creating $CONFIG_STATUS
2081: rm -f $CONFIG_STATUS
2082: cat > $CONFIG_STATUS <<EOF
2083: #! /bin/sh
2084: # Generated automatically by configure.
2085: # Run this file to recreate the current configuration.
2086: # This directory was configured as follows,
2087: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2088: #
2089: # $0 $ac_configure_args
2090: #
2091: # Compiler output produced by configure, useful for debugging
2092: # configure, is in ./config.log if it exists.
2093:
2094: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2095: for ac_option
2096: do
2097: case "\$ac_option" in
2098: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2099: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2100: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2101: -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2102: echo "$CONFIG_STATUS generated by autoconf version 2.13"
2103: exit 0 ;;
2104: -help | --help | --hel | --he | --h)
2105: echo "\$ac_cs_usage"; exit 0 ;;
2106: *) echo "\$ac_cs_usage"; exit 1 ;;
2107: esac
2108: done
2109:
2110: ac_given_srcdir=$srcdir
2111: ac_given_INSTALL="$INSTALL"
2112:
2113: trap 'rm -fr `echo "libltdl/Makefile Makefile config_auto.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2114: EOF
2115: cat >> $CONFIG_STATUS <<EOF
2116:
2117: # Protect against being on the right side of a sed subst in config.status.
2118: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2119: s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2120: $ac_vpsub
2121: $extrasub
2122: s%@SHELL@%$SHELL%g
2123: s%@CFLAGS@%$CFLAGS%g
2124: s%@CPPFLAGS@%$CPPFLAGS%g
2125: s%@CXXFLAGS@%$CXXFLAGS%g
2126: s%@FFLAGS@%$FFLAGS%g
2127: s%@DEFS@%$DEFS%g
2128: s%@LDFLAGS@%$LDFLAGS%g
2129: s%@LIBS@%$LIBS%g
2130: s%@exec_prefix@%$exec_prefix%g
2131: s%@prefix@%$prefix%g
2132: s%@program_transform_name@%$program_transform_name%g
2133: s%@bindir@%$bindir%g
2134: s%@sbindir@%$sbindir%g
2135: s%@libexecdir@%$libexecdir%g
2136: s%@datadir@%$datadir%g
2137: s%@sysconfdir@%$sysconfdir%g
2138: s%@sharedstatedir@%$sharedstatedir%g
2139: s%@localstatedir@%$localstatedir%g
2140: s%@libdir@%$libdir%g
2141: s%@includedir@%$includedir%g
2142: s%@oldincludedir@%$oldincludedir%g
2143: s%@infodir@%$infodir%g
2144: s%@mandir@%$mandir%g
2145: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2146: s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2147: s%@INSTALL_DATA@%$INSTALL_DATA%g
2148: s%@PACKAGE@%$PACKAGE%g
2149: s%@VERSION@%$VERSION%g
2150: s%@ACLOCAL@%$ACLOCAL%g
2151: s%@AUTOCONF@%$AUTOCONF%g
2152: s%@AUTOMAKE@%$AUTOMAKE%g
2153: s%@AUTOHEADER@%$AUTOHEADER%g
2154: s%@MAKEINFO@%$MAKEINFO%g
2155: s%@SET_MAKE@%$SET_MAKE%g
1.5 ! parser 2156: s%@ORACLEOCI_INC@%$ORACLEOCI_INC%g
! 2157: s%@ORACLEPUBLIC_INC@%$ORACLEPUBLIC_INC%g
1.1 parser 2158: s%@AWK@%$AWK%g
2159: s%@CXX@%$CXX%g
2160: s%@INCLTDL@%$INCLTDL%g
2161: s%@LIBLTDL@%$LIBLTDL%g
2162: s%@LIBADD_DL@%$LIBADD_DL%g
2163: s%@host@%$host%g
2164: s%@host_alias@%$host_alias%g
2165: s%@host_cpu@%$host_cpu%g
2166: s%@host_vendor@%$host_vendor%g
2167: s%@host_os@%$host_os%g
2168: s%@build@%$build%g
2169: s%@build_alias@%$build_alias%g
2170: s%@build_cpu@%$build_cpu%g
2171: s%@build_vendor@%$build_vendor%g
2172: s%@build_os@%$build_os%g
2173: s%@RANLIB@%$RANLIB%g
2174: s%@CC@%$CC%g
2175: s%@LN_S@%$LN_S%g
2176: s%@LIBTOOL@%$LIBTOOL%g
2177: s%@subdirs@%$subdirs%g
2178: s%@CXXCPP@%$CXXCPP%g
2179:
2180: CEOF
2181: EOF
2182:
2183: cat >> $CONFIG_STATUS <<\EOF
2184:
2185: # Split the substitutions into bite-sized pieces for seds with
2186: # small command number limits, like on Digital OSF/1 and HP-UX.
2187: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2188: ac_file=1 # Number of current file.
2189: ac_beg=1 # First line for current file.
2190: ac_end=$ac_max_sed_cmds # Line after last line for current file.
2191: ac_more_lines=:
2192: ac_sed_cmds=""
2193: while $ac_more_lines; do
2194: if test $ac_beg -gt 1; then
2195: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2196: else
2197: sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2198: fi
2199: if test ! -s conftest.s$ac_file; then
2200: ac_more_lines=false
2201: rm -f conftest.s$ac_file
2202: else
2203: if test -z "$ac_sed_cmds"; then
2204: ac_sed_cmds="sed -f conftest.s$ac_file"
2205: else
2206: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2207: fi
2208: ac_file=`expr $ac_file + 1`
2209: ac_beg=$ac_end
2210: ac_end=`expr $ac_end + $ac_max_sed_cmds`
2211: fi
2212: done
2213: if test -z "$ac_sed_cmds"; then
2214: ac_sed_cmds=cat
2215: fi
2216: EOF
2217:
2218: cat >> $CONFIG_STATUS <<EOF
2219:
2220: CONFIG_FILES=\${CONFIG_FILES-"libltdl/Makefile Makefile"}
2221: EOF
2222: cat >> $CONFIG_STATUS <<\EOF
2223: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2224: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2225: case "$ac_file" in
2226: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2227: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2228: *) ac_file_in="${ac_file}.in" ;;
2229: esac
2230:
2231: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2232:
2233: # Remove last slash and all that follows it. Not all systems have dirname.
2234: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2235: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2236: # The file is in a subdirectory.
2237: test ! -d "$ac_dir" && mkdir "$ac_dir"
2238: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2239: # A "../" for each directory in $ac_dir_suffix.
2240: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2241: else
2242: ac_dir_suffix= ac_dots=
2243: fi
2244:
2245: case "$ac_given_srcdir" in
2246: .) srcdir=.
2247: if test -z "$ac_dots"; then top_srcdir=.
2248: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2249: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2250: *) # Relative path.
2251: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2252: top_srcdir="$ac_dots$ac_given_srcdir" ;;
2253: esac
2254:
2255: case "$ac_given_INSTALL" in
2256: [/$]*) INSTALL="$ac_given_INSTALL" ;;
2257: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2258: esac
2259:
2260: echo creating "$ac_file"
2261: rm -f "$ac_file"
2262: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2263: case "$ac_file" in
2264: *Makefile*) ac_comsub="1i\\
2265: # $configure_input" ;;
2266: *) ac_comsub= ;;
2267: esac
2268:
2269: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2270: sed -e "$ac_comsub
2271: s%@configure_input@%$configure_input%g
2272: s%@srcdir@%$srcdir%g
2273: s%@top_srcdir@%$top_srcdir%g
2274: s%@INSTALL@%$INSTALL%g
2275: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2276: fi; done
2277: rm -f conftest.s*
2278:
2279: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2280: # NAME is the cpp macro being defined and VALUE is the value it is being given.
2281: #
2282: # ac_d sets the value in "#define NAME VALUE" lines.
2283: ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2284: ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2285: ac_dC='\3'
2286: ac_dD='%g'
2287: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2288: ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2289: ac_uB='\([ ]\)%\1#\2define\3'
2290: ac_uC=' '
2291: ac_uD='\4%g'
2292: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2293: ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2294: ac_eB='$%\1#\2define\3'
2295: ac_eC=' '
2296: ac_eD='%g'
2297:
2298: if test "${CONFIG_HEADERS+set}" != set; then
2299: EOF
2300: cat >> $CONFIG_STATUS <<EOF
2301: CONFIG_HEADERS="config_auto.h"
2302: EOF
2303: cat >> $CONFIG_STATUS <<\EOF
2304: fi
2305: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2306: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2307: case "$ac_file" in
2308: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2309: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2310: *) ac_file_in="${ac_file}.in" ;;
2311: esac
2312:
2313: echo creating $ac_file
2314:
2315: rm -f conftest.frag conftest.in conftest.out
2316: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2317: cat $ac_file_inputs > conftest.in
2318:
2319: EOF
2320:
2321: # Transform confdefs.h into a sed script conftest.vals that substitutes
2322: # the proper values into config.h.in to produce config.h. And first:
2323: # Protect against being on the right side of a sed subst in config.status.
2324: # Protect against being in an unquoted here document in config.status.
2325: rm -f conftest.vals
2326: cat > conftest.hdr <<\EOF
2327: s/[\\&%]/\\&/g
2328: s%[\\$`]%\\&%g
2329: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2330: s%ac_d%ac_u%gp
2331: s%ac_u%ac_e%gp
2332: EOF
2333: sed -n -f conftest.hdr confdefs.h > conftest.vals
2334: rm -f conftest.hdr
2335:
2336: # This sed command replaces #undef with comments. This is necessary, for
2337: # example, in the case of _POSIX_SOURCE, which is predefined and required
2338: # on some systems where configure will not decide to define it.
2339: cat >> conftest.vals <<\EOF
2340: s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2341: EOF
2342:
2343: # Break up conftest.vals because some shells have a limit on
2344: # the size of here documents, and old seds have small limits too.
2345:
2346: rm -f conftest.tail
2347: while :
2348: do
2349: ac_lines=`grep -c . conftest.vals`
2350: # grep -c gives empty output for an empty file on some AIX systems.
2351: if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2352: # Write a limited-size here document to conftest.frag.
2353: echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2354: sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2355: echo 'CEOF
2356: sed -f conftest.frag conftest.in > conftest.out
2357: rm -f conftest.in
2358: mv conftest.out conftest.in
2359: ' >> $CONFIG_STATUS
2360: sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2361: rm -f conftest.vals
2362: mv conftest.tail conftest.vals
2363: done
2364: rm -f conftest.vals
2365:
2366: cat >> $CONFIG_STATUS <<\EOF
2367: rm -f conftest.frag conftest.h
2368: echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2369: cat conftest.in >> conftest.h
2370: rm -f conftest.in
2371: if cmp -s $ac_file conftest.h 2>/dev/null; then
2372: echo "$ac_file is unchanged"
2373: rm -f conftest.h
2374: else
2375: # Remove last slash and all that follows it. Not all systems have dirname.
2376: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2377: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2378: # The file is in a subdirectory.
2379: test ! -d "$ac_dir" && mkdir "$ac_dir"
2380: fi
2381: rm -f $ac_file
2382: mv conftest.h $ac_file
2383: fi
2384: fi; done
2385:
2386: EOF
2387: cat >> $CONFIG_STATUS <<EOF
2388:
2389:
2390: EOF
2391: cat >> $CONFIG_STATUS <<\EOF
2392: test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2393:
2394: exit 0
2395: EOF
2396: chmod +x $CONFIG_STATUS
2397: rm -fr confdefs* $ac_clean_files
2398: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2399:
2400: if test "$no_recursion" != yes; then
2401:
2402: # Remove --cache-file and --srcdir arguments so they do not pile up.
2403: ac_sub_configure_args=
2404: ac_prev=
2405: for ac_arg in $ac_configure_args; do
2406: if test -n "$ac_prev"; then
2407: ac_prev=
2408: continue
2409: fi
2410: case "$ac_arg" in
2411: -cache-file | --cache-file | --cache-fil | --cache-fi \
2412: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2413: ac_prev=cache_file ;;
2414: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2415: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2416: ;;
2417: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2418: ac_prev=srcdir ;;
2419: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2420: ;;
2421: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2422: esac
2423: done
2424:
2425: for ac_config_dir in libltdl; do
2426:
2427: # Do not complain, so a configure script can configure whichever
2428: # parts of a large source tree are present.
2429: if test ! -d $srcdir/$ac_config_dir; then
2430: continue
2431: fi
2432:
2433: echo configuring in $ac_config_dir
2434:
2435: case "$srcdir" in
2436: .) ;;
2437: *)
2438: if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2439: else
2440: { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2441: fi
2442: ;;
2443: esac
2444:
2445: ac_popdir=`pwd`
2446: cd $ac_config_dir
2447:
2448: # A "../" for each directory in /$ac_config_dir.
2449: ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2450:
2451: case "$srcdir" in
2452: .) # No --srcdir option. We are building in place.
2453: ac_sub_srcdir=$srcdir ;;
2454: /*) # Absolute path.
2455: ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2456: *) # Relative path.
2457: ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2458: esac
2459:
2460: # Check for guested configure; otherwise get Cygnus style configure.
2461: if test -f $ac_sub_srcdir/configure; then
2462: ac_sub_configure=$ac_sub_srcdir/configure
2463: elif test -f $ac_sub_srcdir/configure.in; then
2464: ac_sub_configure=$ac_configure
2465: else
2466: echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2467: ac_sub_configure=
2468: fi
2469:
2470: # The recursion is here.
2471: if test -n "$ac_sub_configure"; then
2472:
2473: # Make the cache file name correct relative to the subdirectory.
2474: case "$cache_file" in
2475: /*) ac_sub_cache_file=$cache_file ;;
2476: *) # Relative path.
2477: ac_sub_cache_file="$ac_dots$cache_file" ;;
2478: esac
2479: case "$ac_given_INSTALL" in
2480: [/$]*) INSTALL="$ac_given_INSTALL" ;;
2481: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2482: esac
2483:
2484: echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2485: # The eval makes quoting arguments work.
2486: if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2487: then :
2488: else
2489: { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2490: fi
2491: fi
2492:
2493: cd $ac_popdir
2494: done
2495: fi
2496:
E-mail: