Annotation of parser3/src/lib/ltdl/configure, revision 1.3
1.1 paf 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.2 paf 3: # Generated by GNU Autoconf 2.57.
1.1 paf 4: #
1.2 paf 5: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6: # Free Software Foundation, Inc.
1.1 paf 7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
1.2 paf 9: ## --------------------- ##
10: ## M4sh Initialization. ##
11: ## --------------------- ##
12:
13: # Be Bourne compatible
14: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15: emulate sh
16: NULLCMD=:
17: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18: # is contrary to our usage. Disable this feature.
19: alias -g '${1+"$@"}'='"$@"'
20: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21: set -o posix
22: fi
23:
24: # Support unset when possible.
25: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26: as_unset=unset
27: else
28: as_unset=false
29: fi
30:
31:
32: # Work around bugs in pre-3.0 UWIN ksh.
33: $as_unset ENV MAIL MAILPATH
34: PS1='$ '
35: PS2='> '
36: PS4='+ '
37:
38: # NLS nuisances.
39: for as_var in \
40: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42: LC_TELEPHONE LC_TIME
43: do
44: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45: eval $as_var=C; export $as_var
46: else
47: $as_unset $as_var
48: fi
49: done
50:
51: # Required to use basename.
52: if expr a : '\(a\)' >/dev/null 2>&1; then
53: as_expr=expr
54: else
55: as_expr=false
56: fi
57:
58: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59: as_basename=basename
60: else
61: as_basename=false
62: fi
63:
64:
65: # Name of the executable.
66: as_me=`$as_basename "$0" ||
67: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68: X"$0" : 'X\(//\)$' \| \
69: X"$0" : 'X\(/\)$' \| \
70: . : '\(.\)' 2>/dev/null ||
71: echo X/"$0" |
72: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73: /^X\/\(\/\/\)$/{ s//\1/; q; }
74: /^X\/\(\/\).*/{ s//\1/; q; }
75: s/.*/./; q'`
76:
77:
78: # PATH needs CR, and LINENO needs CR and PATH.
79: # Avoid depending upon Character Ranges.
80: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83: as_cr_digits='0123456789'
84: as_cr_alnum=$as_cr_Letters$as_cr_digits
85:
86: # The user is always right.
87: if test "${PATH_SEPARATOR+set}" != set; then
88: echo "#! /bin/sh" >conf$$.sh
89: echo "exit 0" >>conf$$.sh
90: chmod +x conf$$.sh
91: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92: PATH_SEPARATOR=';'
93: else
94: PATH_SEPARATOR=:
95: fi
96: rm -f conf$$.sh
97: fi
98:
99:
100: as_lineno_1=$LINENO
101: as_lineno_2=$LINENO
102: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103: test "x$as_lineno_1" != "x$as_lineno_2" &&
104: test "x$as_lineno_3" = "x$as_lineno_2" || {
105: # Find who we are. Look in the path if we contain no path at all
106: # relative or not.
107: case $0 in
108: *[\\/]* ) as_myself=$0 ;;
109: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110: for as_dir in $PATH
111: do
112: IFS=$as_save_IFS
113: test -z "$as_dir" && as_dir=.
114: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115: done
116:
117: ;;
118: esac
119: # We did not find ourselves, most probably we were run as `sh COMMAND'
120: # in which case we are not to be found in the path.
121: if test "x$as_myself" = x; then
122: as_myself=$0
123: fi
124: if test ! -f "$as_myself"; then
125: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126: { (exit 1); exit 1; }; }
127: fi
128: case $CONFIG_SHELL in
129: '')
130: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132: do
133: IFS=$as_save_IFS
134: test -z "$as_dir" && as_dir=.
135: for as_base in sh bash ksh sh5; do
136: case $as_dir in
137: /*)
138: if ("$as_dir/$as_base" -c '
139: as_lineno_1=$LINENO
140: as_lineno_2=$LINENO
141: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142: test "x$as_lineno_1" != "x$as_lineno_2" &&
143: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146: CONFIG_SHELL=$as_dir/$as_base
147: export CONFIG_SHELL
148: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149: fi;;
150: esac
151: done
152: done
153: ;;
154: esac
155:
156: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157: # uniformly replaced by the line number. The first 'sed' inserts a
158: # line-number line before each line; the second 'sed' does the real
159: # work. The second script uses 'N' to pair each line-number line
160: # with the numbered line, and appends trailing '-' during
161: # substitution so that $LINENO is not a special case at line end.
162: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164: sed '=' <$as_myself |
165: sed '
166: N
167: s,$,-,
168: : loop
169: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170: t loop
171: s,-$,,
172: s,^['$as_cr_digits']*\n,,
173: ' >$as_me.lineno &&
174: chmod +x $as_me.lineno ||
175: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176: { (exit 1); exit 1; }; }
177:
178: # Don't try to exec as it changes $[0], causing all sort of problems
179: # (the dirname of $[0] is not the place where we might find the
180: # original and so on. Autoconf is especially sensible to this).
181: . ./$as_me.lineno
182: # Exit status is that of the last command.
183: exit
184: }
185:
186:
187: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188: *c*,-n*) ECHO_N= ECHO_C='
189: ' ECHO_T=' ' ;;
190: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192: esac
193:
194: if expr a : '\(a\)' >/dev/null 2>&1; then
195: as_expr=expr
196: else
197: as_expr=false
198: fi
199:
200: rm -f conf$$ conf$$.exe conf$$.file
201: echo >conf$$.file
202: if ln -s conf$$.file conf$$ 2>/dev/null; then
203: # We could just check for DJGPP; but this test a) works b) is more generic
204: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205: if test -f conf$$.exe; then
206: # Don't use ln at all; we don't have any links
207: as_ln_s='cp -p'
208: else
209: as_ln_s='ln -s'
210: fi
211: elif ln conf$$.file conf$$ 2>/dev/null; then
212: as_ln_s=ln
213: else
214: as_ln_s='cp -p'
215: fi
216: rm -f conf$$ conf$$.exe conf$$.file
217:
218: if mkdir -p . 2>/dev/null; then
219: as_mkdir_p=:
220: else
221: as_mkdir_p=false
222: fi
223:
224: as_executable_p="test -f"
225:
226: # Sed expression to map a string onto a valid CPP name.
227: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228:
229: # Sed expression to map a string onto a valid variable name.
230: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231:
1.1 paf 232:
1.2 paf 233: # IFS
234: # We need space, tab and new line, in precisely that order.
235: as_nl='
236: '
237: IFS=" $as_nl"
238:
239: # CDPATH.
240: $as_unset CDPATH
241:
242:
243: # Name of the host.
244: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245: # so uname gets run too.
246: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247:
248: exec 6>&1
249:
250: #
251: # Initializations.
252: #
1.1 paf 253: ac_default_prefix=/usr/local
1.2 paf 254: ac_config_libobj_dir=.
255: cross_compiling=no
256: subdirs=
257: MFLAGS=
258: MAKEFLAGS=
259: SHELL=${CONFIG_SHELL-/bin/sh}
260:
261: # Maximum number of lines to put in a shell here document.
262: # This variable seems obsolete. It should probably be removed, and
263: # only ac_max_sed_lines should be used.
264: : ${ac_max_here_lines=38}
265:
266: # Identity of this package.
267: PACKAGE_NAME=
268: PACKAGE_TARNAME=
269: PACKAGE_VERSION=
270: PACKAGE_STRING=
271: PACKAGE_BUGREPORT=
272:
273: ac_unique_file="ltdl.c"
274: # Factoring default headers for most tests.
275: ac_includes_default="\
276: #include <stdio.h>
277: #if HAVE_SYS_TYPES_H
278: # include <sys/types.h>
279: #endif
280: #if HAVE_SYS_STAT_H
281: # include <sys/stat.h>
282: #endif
283: #if STDC_HEADERS
284: # include <stdlib.h>
285: # include <stddef.h>
286: #else
287: # if HAVE_STDLIB_H
288: # include <stdlib.h>
289: # endif
290: #endif
291: #if HAVE_STRING_H
292: # if !STDC_HEADERS && HAVE_MEMORY_H
293: # include <memory.h>
294: # endif
295: # include <string.h>
296: #endif
297: #if HAVE_STRINGS_H
298: # include <strings.h>
299: #endif
300: #if HAVE_INTTYPES_H
301: # include <inttypes.h>
302: #else
303: # if HAVE_STDINT_H
304: # include <stdint.h>
305: # endif
306: #endif
307: #if HAVE_UNISTD_H
308: # include <unistd.h>
309: #endif"
310:
1.3 ! paf 311: ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP EGREP LIBADD_DL build build_cpu build_vendor build_os host host_cpu host_vendor host_os LIBOBJS LTLIBOBJS'
1.2 paf 312: ac_subst_files=''
1.1 paf 313:
314: # Initialize some variables set by options.
1.2 paf 315: ac_init_help=
316: ac_init_version=false
1.1 paf 317: # The variables have the same names as the options, with
318: # dashes changed to underlines.
1.2 paf 319: cache_file=/dev/null
1.1 paf 320: exec_prefix=NONE
321: no_create=
322: no_recursion=
323: prefix=NONE
324: program_prefix=NONE
325: program_suffix=NONE
326: program_transform_name=s,x,x,
327: silent=
328: site=
329: srcdir=
330: verbose=
331: x_includes=NONE
332: x_libraries=NONE
1.2 paf 333:
334: # Installation directory options.
335: # These are left unexpanded so users can "make install exec_prefix=/foo"
336: # and all the variables that are supposed to be based on exec_prefix
337: # by default will actually change.
338: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1 paf 339: bindir='${exec_prefix}/bin'
340: sbindir='${exec_prefix}/sbin'
341: libexecdir='${exec_prefix}/libexec'
342: datadir='${prefix}/share'
343: sysconfdir='${prefix}/etc'
344: sharedstatedir='${prefix}/com'
345: localstatedir='${prefix}/var'
346: libdir='${exec_prefix}/lib'
347: includedir='${prefix}/include'
348: oldincludedir='/usr/include'
349: infodir='${prefix}/info'
350: mandir='${prefix}/man'
351:
352: ac_prev=
353: for ac_option
354: do
355: # If the previous option needs an argument, assign it.
356: if test -n "$ac_prev"; then
357: eval "$ac_prev=\$ac_option"
358: ac_prev=
359: continue
360: fi
361:
1.2 paf 362: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 paf 363:
364: # Accept the important Cygnus configure options, so we can diagnose typos.
365:
1.2 paf 366: case $ac_option in
1.1 paf 367:
368: -bindir | --bindir | --bindi | --bind | --bin | --bi)
369: ac_prev=bindir ;;
370: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.2 paf 371: bindir=$ac_optarg ;;
1.1 paf 372:
373: -build | --build | --buil | --bui | --bu)
1.2 paf 374: ac_prev=build_alias ;;
1.1 paf 375: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.2 paf 376: build_alias=$ac_optarg ;;
1.1 paf 377:
378: -cache-file | --cache-file | --cache-fil | --cache-fi \
379: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380: ac_prev=cache_file ;;
381: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.2 paf 383: cache_file=$ac_optarg ;;
384:
385: --config-cache | -C)
386: cache_file=config.cache ;;
1.1 paf 387:
388: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389: ac_prev=datadir ;;
390: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391: | --da=*)
1.2 paf 392: datadir=$ac_optarg ;;
1.1 paf 393:
394: -disable-* | --disable-*)
1.2 paf 395: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 paf 396: # Reject names that are not valid shell variable names.
1.2 paf 397: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399: { (exit 1); exit 1; }; }
400: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401: eval "enable_$ac_feature=no" ;;
1.1 paf 402:
403: -enable-* | --enable-*)
1.2 paf 404: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 paf 405: # Reject names that are not valid shell variable names.
1.2 paf 406: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408: { (exit 1); exit 1; }; }
409: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410: case $ac_option in
411: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 paf 412: *) ac_optarg=yes ;;
413: esac
1.2 paf 414: eval "enable_$ac_feature='$ac_optarg'" ;;
1.1 paf 415:
416: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418: | --exec | --exe | --ex)
419: ac_prev=exec_prefix ;;
420: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422: | --exec=* | --exe=* | --ex=*)
1.2 paf 423: exec_prefix=$ac_optarg ;;
1.1 paf 424:
425: -gas | --gas | --ga | --g)
426: # Obsolete; use --with-gas.
427: with_gas=yes ;;
428:
1.2 paf 429: -help | --help | --hel | --he | -h)
430: ac_init_help=long ;;
431: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432: ac_init_help=recursive ;;
433: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434: ac_init_help=short ;;
1.1 paf 435:
436: -host | --host | --hos | --ho)
1.2 paf 437: ac_prev=host_alias ;;
1.1 paf 438: -host=* | --host=* | --hos=* | --ho=*)
1.2 paf 439: host_alias=$ac_optarg ;;
1.1 paf 440:
441: -includedir | --includedir | --includedi | --included | --include \
442: | --includ | --inclu | --incl | --inc)
443: ac_prev=includedir ;;
444: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.2 paf 446: includedir=$ac_optarg ;;
1.1 paf 447:
448: -infodir | --infodir | --infodi | --infod | --info | --inf)
449: ac_prev=infodir ;;
450: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.2 paf 451: infodir=$ac_optarg ;;
1.1 paf 452:
453: -libdir | --libdir | --libdi | --libd)
454: ac_prev=libdir ;;
455: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.2 paf 456: libdir=$ac_optarg ;;
1.1 paf 457:
458: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459: | --libexe | --libex | --libe)
460: ac_prev=libexecdir ;;
461: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462: | --libexe=* | --libex=* | --libe=*)
1.2 paf 463: libexecdir=$ac_optarg ;;
1.1 paf 464:
465: -localstatedir | --localstatedir | --localstatedi | --localstated \
466: | --localstate | --localstat | --localsta | --localst \
467: | --locals | --local | --loca | --loc | --lo)
468: ac_prev=localstatedir ;;
469: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.2 paf 472: localstatedir=$ac_optarg ;;
1.1 paf 473:
474: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475: ac_prev=mandir ;;
476: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.2 paf 477: mandir=$ac_optarg ;;
1.1 paf 478:
479: -nfp | --nfp | --nf)
480: # Obsolete; use --without-fp.
481: with_fp=no ;;
482:
483: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.2 paf 484: | --no-cr | --no-c | -n)
1.1 paf 485: no_create=yes ;;
486:
487: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489: no_recursion=yes ;;
490:
491: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493: | --oldin | --oldi | --old | --ol | --o)
494: ac_prev=oldincludedir ;;
495: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.2 paf 498: oldincludedir=$ac_optarg ;;
1.1 paf 499:
500: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501: ac_prev=prefix ;;
502: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.2 paf 503: prefix=$ac_optarg ;;
1.1 paf 504:
505: -program-prefix | --program-prefix | --program-prefi | --program-pref \
506: | --program-pre | --program-pr | --program-p)
507: ac_prev=program_prefix ;;
508: -program-prefix=* | --program-prefix=* | --program-prefi=* \
509: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.2 paf 510: program_prefix=$ac_optarg ;;
1.1 paf 511:
512: -program-suffix | --program-suffix | --program-suffi | --program-suff \
513: | --program-suf | --program-su | --program-s)
514: ac_prev=program_suffix ;;
515: -program-suffix=* | --program-suffix=* | --program-suffi=* \
516: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.2 paf 517: program_suffix=$ac_optarg ;;
1.1 paf 518:
519: -program-transform-name | --program-transform-name \
520: | --program-transform-nam | --program-transform-na \
521: | --program-transform-n | --program-transform- \
522: | --program-transform | --program-transfor \
523: | --program-transfo | --program-transf \
524: | --program-trans | --program-tran \
525: | --progr-tra | --program-tr | --program-t)
526: ac_prev=program_transform_name ;;
527: -program-transform-name=* | --program-transform-name=* \
528: | --program-transform-nam=* | --program-transform-na=* \
529: | --program-transform-n=* | --program-transform-=* \
530: | --program-transform=* | --program-transfor=* \
531: | --program-transfo=* | --program-transf=* \
532: | --program-trans=* | --program-tran=* \
533: | --progr-tra=* | --program-tr=* | --program-t=*)
1.2 paf 534: program_transform_name=$ac_optarg ;;
1.1 paf 535:
536: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537: | -silent | --silent | --silen | --sile | --sil)
538: silent=yes ;;
539:
540: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541: ac_prev=sbindir ;;
542: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543: | --sbi=* | --sb=*)
1.2 paf 544: sbindir=$ac_optarg ;;
1.1 paf 545:
546: -sharedstatedir | --sharedstatedir | --sharedstatedi \
547: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548: | --sharedst | --shareds | --shared | --share | --shar \
549: | --sha | --sh)
550: ac_prev=sharedstatedir ;;
551: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554: | --sha=* | --sh=*)
1.2 paf 555: sharedstatedir=$ac_optarg ;;
1.1 paf 556:
557: -site | --site | --sit)
558: ac_prev=site ;;
559: -site=* | --site=* | --sit=*)
1.2 paf 560: site=$ac_optarg ;;
1.1 paf 561:
562: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563: ac_prev=srcdir ;;
564: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.2 paf 565: srcdir=$ac_optarg ;;
1.1 paf 566:
567: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568: | --syscon | --sysco | --sysc | --sys | --sy)
569: ac_prev=sysconfdir ;;
570: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.2 paf 572: sysconfdir=$ac_optarg ;;
1.1 paf 573:
574: -target | --target | --targe | --targ | --tar | --ta | --t)
1.2 paf 575: ac_prev=target_alias ;;
1.1 paf 576: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.2 paf 577: target_alias=$ac_optarg ;;
1.1 paf 578:
579: -v | -verbose | --verbose | --verbos | --verbo | --verb)
580: verbose=yes ;;
581:
1.2 paf 582: -version | --version | --versio | --versi | --vers | -V)
583: ac_init_version=: ;;
1.1 paf 584:
585: -with-* | --with-*)
1.2 paf 586: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 paf 587: # Reject names that are not valid shell variable names.
1.2 paf 588: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589: { echo "$as_me: error: invalid package name: $ac_package" >&2
590: { (exit 1); exit 1; }; }
1.1 paf 591: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.2 paf 592: case $ac_option in
593: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 paf 594: *) ac_optarg=yes ;;
595: esac
1.2 paf 596: eval "with_$ac_package='$ac_optarg'" ;;
1.1 paf 597:
598: -without-* | --without-*)
1.2 paf 599: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 paf 600: # Reject names that are not valid shell variable names.
1.2 paf 601: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602: { echo "$as_me: error: invalid package name: $ac_package" >&2
603: { (exit 1); exit 1; }; }
604: ac_package=`echo $ac_package | sed 's/-/_/g'`
605: eval "with_$ac_package=no" ;;
1.1 paf 606:
607: --x)
608: # Obsolete; use --with-x.
609: with_x=yes ;;
610:
611: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612: | --x-incl | --x-inc | --x-in | --x-i)
613: ac_prev=x_includes ;;
614: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.2 paf 616: x_includes=$ac_optarg ;;
1.1 paf 617:
618: -x-libraries | --x-libraries | --x-librarie | --x-librari \
619: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620: ac_prev=x_libraries ;;
621: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.2 paf 623: x_libraries=$ac_optarg ;;
1.1 paf 624:
1.2 paf 625: -*) { echo "$as_me: error: unrecognized option: $ac_option
626: Try \`$0 --help' for more information." >&2
627: { (exit 1); exit 1; }; }
1.1 paf 628: ;;
629:
1.2 paf 630: *=*)
631: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632: # Reject names that are not valid shell variable names.
633: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635: { (exit 1); exit 1; }; }
636: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637: eval "$ac_envvar='$ac_optarg'"
638: export $ac_envvar ;;
639:
1.1 paf 640: *)
1.2 paf 641: # FIXME: should be removed in autoconf 3.0.
642: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 paf 646: ;;
647:
648: esac
649: done
650:
651: if test -n "$ac_prev"; then
1.2 paf 652: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653: { echo "$as_me: error: missing argument to $ac_option" >&2
654: { (exit 1); exit 1; }; }
1.1 paf 655: fi
656:
1.2 paf 657: # Be sure to have absolute paths.
658: for ac_var in exec_prefix prefix
659: do
660: eval ac_val=$`echo $ac_var`
661: case $ac_val in
662: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664: { (exit 1); exit 1; }; };;
665: esac
666: done
1.1 paf 667:
1.2 paf 668: # Be sure to have absolute paths.
669: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670: localstatedir libdir includedir oldincludedir infodir mandir
1.1 paf 671: do
1.2 paf 672: eval ac_val=$`echo $ac_var`
673: case $ac_val in
674: [\\/$]* | ?:[\\/]* ) ;;
675: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676: { (exit 1); exit 1; }; };;
1.1 paf 677: esac
678: done
679:
1.2 paf 680: # There might be people who depend on the old broken behavior: `$host'
681: # used to hold the argument of --host etc.
682: # FIXME: To remove some day.
683: build=$build_alias
684: host=$host_alias
685: target=$target_alias
686:
687: # FIXME: To remove some day.
688: if test "x$host_alias" != x; then
689: if test "x$build_alias" = x; then
690: cross_compiling=maybe
691: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692: If a cross compiler is detected then cross compile mode will be used." >&2
693: elif test "x$build_alias" != "x$host_alias"; then
694: cross_compiling=yes
695: fi
696: fi
697:
698: ac_tool_prefix=
699: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 paf 700:
1.2 paf 701: test "$silent" = yes && exec 6>/dev/null
1.1 paf 702:
703:
704: # Find the source files, if location was not specified.
705: if test -z "$srcdir"; then
706: ac_srcdir_defaulted=yes
707: # Try the directory containing this script, then its parent.
1.2 paf 708: ac_confdir=`(dirname "$0") 2>/dev/null ||
709: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710: X"$0" : 'X\(//\)[^/]' \| \
711: X"$0" : 'X\(//\)$' \| \
712: X"$0" : 'X\(/\)' \| \
713: . : '\(.\)' 2>/dev/null ||
714: echo X"$0" |
715: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717: /^X\(\/\/\)$/{ s//\1/; q; }
718: /^X\(\/\).*/{ s//\1/; q; }
719: s/.*/./; q'`
1.1 paf 720: srcdir=$ac_confdir
721: if test ! -r $srcdir/$ac_unique_file; then
722: srcdir=..
723: fi
724: else
725: ac_srcdir_defaulted=no
726: fi
727: if test ! -r $srcdir/$ac_unique_file; then
728: if test "$ac_srcdir_defaulted" = yes; then
1.2 paf 729: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730: { (exit 1); exit 1; }; }
1.1 paf 731: else
1.2 paf 732: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733: { (exit 1); exit 1; }; }
1.1 paf 734: fi
735: fi
1.2 paf 736: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738: { (exit 1); exit 1; }; }
739: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740: ac_env_build_alias_set=${build_alias+set}
741: ac_env_build_alias_value=$build_alias
742: ac_cv_env_build_alias_set=${build_alias+set}
743: ac_cv_env_build_alias_value=$build_alias
744: ac_env_host_alias_set=${host_alias+set}
745: ac_env_host_alias_value=$host_alias
746: ac_cv_env_host_alias_set=${host_alias+set}
747: ac_cv_env_host_alias_value=$host_alias
748: ac_env_target_alias_set=${target_alias+set}
749: ac_env_target_alias_value=$target_alias
750: ac_cv_env_target_alias_set=${target_alias+set}
751: ac_cv_env_target_alias_value=$target_alias
752: ac_env_CC_set=${CC+set}
753: ac_env_CC_value=$CC
754: ac_cv_env_CC_set=${CC+set}
755: ac_cv_env_CC_value=$CC
756: ac_env_CFLAGS_set=${CFLAGS+set}
757: ac_env_CFLAGS_value=$CFLAGS
758: ac_cv_env_CFLAGS_set=${CFLAGS+set}
759: ac_cv_env_CFLAGS_value=$CFLAGS
760: ac_env_LDFLAGS_set=${LDFLAGS+set}
761: ac_env_LDFLAGS_value=$LDFLAGS
762: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763: ac_cv_env_LDFLAGS_value=$LDFLAGS
764: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765: ac_env_CPPFLAGS_value=$CPPFLAGS
766: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768: ac_env_CPP_set=${CPP+set}
769: ac_env_CPP_value=$CPP
770: ac_cv_env_CPP_set=${CPP+set}
771: ac_cv_env_CPP_value=$CPP
772:
773: #
774: # Report the --help message.
775: #
776: if test "$ac_init_help" = "long"; then
777: # Omit some internal or obsolete options to make the list less imposing.
778: # This message is too long to be a string in the A/UX 3.1 sh.
779: cat <<_ACEOF
780: \`configure' configures this package to adapt to many kinds of systems.
781:
782: Usage: $0 [OPTION]... [VAR=VALUE]...
783:
784: To assign environment variables (e.g., CC, CFLAGS...), specify them as
785: VAR=VALUE. See below for descriptions of some of the useful variables.
786:
787: Defaults for the options are specified in brackets.
788:
789: Configuration:
790: -h, --help display this help and exit
791: --help=short display options specific to this package
792: --help=recursive display the short help of all the included packages
793: -V, --version display version information and exit
794: -q, --quiet, --silent do not print \`checking...' messages
795: --cache-file=FILE cache test results in FILE [disabled]
796: -C, --config-cache alias for \`--cache-file=config.cache'
797: -n, --no-create do not create output files
798: --srcdir=DIR find the sources in DIR [configure dir or \`..']
799:
800: _ACEOF
801:
802: cat <<_ACEOF
803: Installation directories:
804: --prefix=PREFIX install architecture-independent files in PREFIX
805: [$ac_default_prefix]
806: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807: [PREFIX]
808:
809: By default, \`make install' will install all the files in
810: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812: for instance \`--prefix=\$HOME'.
813:
814: For better control, use the options below.
815:
816: Fine tuning of the installation directories:
817: --bindir=DIR user executables [EPREFIX/bin]
818: --sbindir=DIR system admin executables [EPREFIX/sbin]
819: --libexecdir=DIR program executables [EPREFIX/libexec]
820: --datadir=DIR read-only architecture-independent data [PREFIX/share]
821: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824: --libdir=DIR object code libraries [EPREFIX/lib]
825: --includedir=DIR C header files [PREFIX/include]
826: --oldincludedir=DIR C header files for non-gcc [/usr/include]
827: --infodir=DIR info documentation [PREFIX/info]
828: --mandir=DIR man documentation [PREFIX/man]
829: _ACEOF
830:
831: cat <<\_ACEOF
832:
833: Program names:
834: --program-prefix=PREFIX prepend PREFIX to installed program names
835: --program-suffix=SUFFIX append SUFFIX to installed program names
836: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1.3 ! paf 837:
! 838: System types:
! 839: --build=BUILD configure for building on BUILD [guessed]
! 840: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1.2 paf 841: _ACEOF
842: fi
843:
844: if test -n "$ac_init_help"; then
845:
846: cat <<\_ACEOF
847:
848: Optional Features:
849: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851: --enable-maintainer-mode enable make rules and dependencies not useful
852: (and sometimes confusing) to the casual installer
853: --disable-dependency-tracking Speeds up one-time builds
854: --enable-dependency-tracking Do not reject slow dependency extractors
855:
856: Some influential environment variables:
857: CC C compiler command
858: CFLAGS C compiler flags
859: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
860: nonstandard directory <lib dir>
861: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
862: headers in a nonstandard directory <include dir>
863: CPP C preprocessor
864:
865: Use these variables to override the choices made by `configure' or to help
866: it to find libraries and programs with nonstandard names/locations.
867:
868: _ACEOF
869: fi
870:
871: if test "$ac_init_help" = "recursive"; then
872: # If there are subdirs, report their specific --help.
873: ac_popdir=`pwd`
874: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
875: test -d $ac_dir || continue
876: ac_builddir=.
877:
878: if test "$ac_dir" != .; then
879: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
880: # A "../" for each directory in $ac_dir_suffix.
881: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
882: else
883: ac_dir_suffix= ac_top_builddir=
884: fi
885:
886: case $srcdir in
887: .) # No --srcdir option. We are building in place.
888: ac_srcdir=.
889: if test -z "$ac_top_builddir"; then
890: ac_top_srcdir=.
891: else
892: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
893: fi ;;
894: [\\/]* | ?:[\\/]* ) # Absolute path.
895: ac_srcdir=$srcdir$ac_dir_suffix;
896: ac_top_srcdir=$srcdir ;;
897: *) # Relative path.
898: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
899: ac_top_srcdir=$ac_top_builddir$srcdir ;;
900: esac
901: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
902: # absolute.
903: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
904: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
905: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
906: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
907:
908: cd $ac_dir
909: # Check for guested configure; otherwise get Cygnus style configure.
910: if test -f $ac_srcdir/configure.gnu; then
911: echo
912: $SHELL $ac_srcdir/configure.gnu --help=recursive
913: elif test -f $ac_srcdir/configure; then
914: echo
915: $SHELL $ac_srcdir/configure --help=recursive
916: elif test -f $ac_srcdir/configure.ac ||
917: test -f $ac_srcdir/configure.in; then
918: echo
919: $ac_configure --help
920: else
921: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
922: fi
923: cd $ac_popdir
924: done
925: fi
926:
927: test -n "$ac_init_help" && exit 0
928: if $ac_init_version; then
929: cat <<\_ACEOF
930:
931: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
932: Free Software Foundation, Inc.
933: This configure script is free software; the Free Software Foundation
934: gives unlimited permission to copy, distribute and modify it.
935: _ACEOF
936: exit 0
937: fi
938: exec 5>config.log
939: cat >&5 <<_ACEOF
940: This file contains any messages produced by compilers while
941: running configure, to aid debugging if configure makes a mistake.
942:
943: It was created by $as_me, which was
944: generated by GNU Autoconf 2.57. Invocation command line was
945:
946: $ $0 $@
947:
948: _ACEOF
949: {
950: cat <<_ASUNAME
951: ## --------- ##
952: ## Platform. ##
953: ## --------- ##
954:
955: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
956: uname -m = `(uname -m) 2>/dev/null || echo unknown`
957: uname -r = `(uname -r) 2>/dev/null || echo unknown`
958: uname -s = `(uname -s) 2>/dev/null || echo unknown`
959: uname -v = `(uname -v) 2>/dev/null || echo unknown`
960:
961: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
962: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
963:
964: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
965: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
966: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
967: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
968: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
969: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
970: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
971:
972: _ASUNAME
973:
974: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
975: for as_dir in $PATH
976: do
977: IFS=$as_save_IFS
978: test -z "$as_dir" && as_dir=.
979: echo "PATH: $as_dir"
980: done
981:
982: } >&5
983:
984: cat >&5 <<_ACEOF
985:
986:
987: ## ----------- ##
988: ## Core tests. ##
989: ## ----------- ##
990:
991: _ACEOF
992:
993:
994: # Keep a trace of the command line.
995: # Strip out --no-create and --no-recursion so they do not pile up.
996: # Strip out --silent because we don't want to record it for future runs.
997: # Also quote any args containing shell meta-characters.
998: # Make two passes to allow for proper duplicate-argument suppression.
999: ac_configure_args=
1000: ac_configure_args0=
1001: ac_configure_args1=
1002: ac_sep=
1003: ac_must_keep_next=false
1004: for ac_pass in 1 2
1005: do
1006: for ac_arg
1007: do
1008: case $ac_arg in
1009: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1010: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1011: | -silent | --silent | --silen | --sile | --sil)
1012: continue ;;
1013: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1014: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1015: esac
1016: case $ac_pass in
1017: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1018: 2)
1019: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1020: if test $ac_must_keep_next = true; then
1021: ac_must_keep_next=false # Got value, back to normal.
1022: else
1023: case $ac_arg in
1024: *=* | --config-cache | -C | -disable-* | --disable-* \
1025: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1026: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1027: | -with-* | --with-* | -without-* | --without-* | --x)
1028: case "$ac_configure_args0 " in
1029: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1030: esac
1031: ;;
1032: -* ) ac_must_keep_next=true ;;
1033: esac
1034: fi
1035: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1036: # Get rid of the leading space.
1037: ac_sep=" "
1038: ;;
1039: esac
1040: done
1041: done
1042: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1043: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1044:
1045: # When interrupted or exit'd, cleanup temporary files, and complete
1046: # config.log. We remove comments because anyway the quotes in there
1047: # would cause problems or look ugly.
1048: # WARNING: Be sure not to use single quotes in there, as some shells,
1049: # such as our DU 5.0 friend, will then `close' the trap.
1050: trap 'exit_status=$?
1051: # Save into config.log some information that might help in debugging.
1052: {
1053: echo
1054:
1055: cat <<\_ASBOX
1056: ## ---------------- ##
1057: ## Cache variables. ##
1058: ## ---------------- ##
1059: _ASBOX
1060: echo
1061: # The following way of writing the cache mishandles newlines in values,
1062: {
1063: (set) 2>&1 |
1064: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1065: *ac_space=\ *)
1066: sed -n \
1067: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1068: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1069: ;;
1070: *)
1071: sed -n \
1072: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1073: ;;
1074: esac;
1075: }
1076: echo
1077:
1078: cat <<\_ASBOX
1079: ## ----------------- ##
1080: ## Output variables. ##
1081: ## ----------------- ##
1082: _ASBOX
1083: echo
1084: for ac_var in $ac_subst_vars
1085: do
1086: eval ac_val=$`echo $ac_var`
1087: echo "$ac_var='"'"'$ac_val'"'"'"
1088: done | sort
1089: echo
1090:
1091: if test -n "$ac_subst_files"; then
1092: cat <<\_ASBOX
1093: ## ------------- ##
1094: ## Output files. ##
1095: ## ------------- ##
1096: _ASBOX
1097: echo
1098: for ac_var in $ac_subst_files
1099: do
1100: eval ac_val=$`echo $ac_var`
1101: echo "$ac_var='"'"'$ac_val'"'"'"
1102: done | sort
1103: echo
1104: fi
1105:
1106: if test -s confdefs.h; then
1107: cat <<\_ASBOX
1108: ## ----------- ##
1109: ## confdefs.h. ##
1110: ## ----------- ##
1111: _ASBOX
1112: echo
1113: sed "/^$/d" confdefs.h | sort
1114: echo
1115: fi
1116: test "$ac_signal" != 0 &&
1117: echo "$as_me: caught signal $ac_signal"
1118: echo "$as_me: exit $exit_status"
1119: } >&5
1120: rm -f core core.* *.core &&
1121: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1122: exit $exit_status
1123: ' 0
1124: for ac_signal in 1 2 13 15; do
1125: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1126: done
1127: ac_signal=0
1128:
1129: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1130: rm -rf conftest* confdefs.h
1131: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1132: echo >confdefs.h
1133:
1134: # Predefined preprocessor variables.
1135:
1136: cat >>confdefs.h <<_ACEOF
1137: #define PACKAGE_NAME "$PACKAGE_NAME"
1138: _ACEOF
1139:
1140:
1141: cat >>confdefs.h <<_ACEOF
1142: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1143: _ACEOF
1144:
1145:
1146: cat >>confdefs.h <<_ACEOF
1147: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1148: _ACEOF
1149:
1.1 paf 1150:
1.2 paf 1151: cat >>confdefs.h <<_ACEOF
1152: #define PACKAGE_STRING "$PACKAGE_STRING"
1153: _ACEOF
1154:
1155:
1156: cat >>confdefs.h <<_ACEOF
1157: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1158: _ACEOF
1159:
1160:
1161: # Let the site file select an alternate cache file if it wants to.
1.1 paf 1162: # Prefer explicitly selected file to automatically selected ones.
1163: if test -z "$CONFIG_SITE"; then
1164: if test "x$prefix" != xNONE; then
1165: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1166: else
1167: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1168: fi
1169: fi
1170: for ac_site_file in $CONFIG_SITE; do
1171: if test -r "$ac_site_file"; then
1.2 paf 1172: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1173: echo "$as_me: loading site script $ac_site_file" >&6;}
1174: sed 's/^/| /' "$ac_site_file" >&5
1.1 paf 1175: . "$ac_site_file"
1176: fi
1177: done
1178:
1179: if test -r "$cache_file"; then
1.2 paf 1180: # Some versions of bash will fail to source /dev/null (special
1181: # files actually), so we avoid doing that.
1182: if test -f "$cache_file"; then
1183: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1184: echo "$as_me: loading cache $cache_file" >&6;}
1185: case $cache_file in
1186: [\\/]* | ?:[\\/]* ) . $cache_file;;
1187: *) . ./$cache_file;;
1188: esac
1189: fi
1.1 paf 1190: else
1.2 paf 1191: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1192: echo "$as_me: creating cache $cache_file" >&6;}
1193: >$cache_file
1194: fi
1195:
1196: # Check that the precious variables saved in the cache have kept the same
1197: # value.
1198: ac_cache_corrupted=false
1199: for ac_var in `(set) 2>&1 |
1200: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1201: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1202: eval ac_new_set=\$ac_env_${ac_var}_set
1203: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1204: eval ac_new_val="\$ac_env_${ac_var}_value"
1205: case $ac_old_set,$ac_new_set in
1206: set,)
1207: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1208: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1209: ac_cache_corrupted=: ;;
1210: ,set)
1211: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1212: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1213: ac_cache_corrupted=: ;;
1214: ,);;
1215: *)
1216: if test "x$ac_old_val" != "x$ac_new_val"; then
1217: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1218: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1219: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1220: echo "$as_me: former value: $ac_old_val" >&2;}
1221: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1222: echo "$as_me: current value: $ac_new_val" >&2;}
1223: ac_cache_corrupted=:
1224: fi;;
1225: esac
1226: # Pass precious variables to config.status.
1227: if test "$ac_new_set" = set; then
1228: case $ac_new_val in
1229: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1230: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1231: *) ac_arg=$ac_var=$ac_new_val ;;
1232: esac
1233: case " $ac_configure_args " in
1234: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1235: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1236: esac
1237: fi
1238: done
1239: if $ac_cache_corrupted; then
1240: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1241: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1242: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1243: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1244: { (exit 1); exit 1; }; }
1.1 paf 1245: fi
1246:
1247: ac_ext=c
1248: ac_cpp='$CPP $CPPFLAGS'
1.2 paf 1249: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1250: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1251: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1252:
1253:
1254:
1255:
1256:
1257:
1258:
1259:
1260:
1261:
1262:
1263:
1264:
1265:
1266:
1267:
1268:
1.1 paf 1269:
1270:
1271:
1272: enable_ltdl_install=yes
1273:
1.2 paf 1274: am__api_version="1.7"
1.1 paf 1275: ac_aux_dir=
1276: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1277: if test -f $ac_dir/install-sh; then
1278: ac_aux_dir=$ac_dir
1279: ac_install_sh="$ac_aux_dir/install-sh -c"
1280: break
1281: elif test -f $ac_dir/install.sh; then
1282: ac_aux_dir=$ac_dir
1283: ac_install_sh="$ac_aux_dir/install.sh -c"
1284: break
1.2 paf 1285: elif test -f $ac_dir/shtool; then
1286: ac_aux_dir=$ac_dir
1287: ac_install_sh="$ac_aux_dir/shtool install -c"
1288: break
1.1 paf 1289: fi
1290: done
1291: if test -z "$ac_aux_dir"; then
1.2 paf 1292: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1293: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1294: { (exit 1); exit 1; }; }
1295: fi
1296: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1297: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1298: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 paf 1299:
1300: # Find a good install program. We prefer a C program (faster),
1301: # so one script is as good as another. But avoid the broken or
1302: # incompatible versions:
1303: # SysV /etc/install, /usr/sbin/install
1304: # SunOS /usr/etc/install
1305: # IRIX /sbin/install
1306: # AIX /bin/install
1.2 paf 1307: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 1308: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1309: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1310: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1311: # ./install, which can be erroneously created by make from ./install.sh.
1.2 paf 1312: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1313: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 paf 1314: if test -z "$INSTALL"; then
1.2 paf 1315: if test "${ac_cv_path_install+set}" = set; then
1316: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1317: else
1.2 paf 1318: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1319: for as_dir in $PATH
1320: do
1321: IFS=$as_save_IFS
1322: test -z "$as_dir" && as_dir=.
1323: # Account for people who put trailing slashes in PATH elements.
1324: case $as_dir/ in
1325: ./ | .// | /cC/* | \
1326: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1327: /usr/ucb/* ) ;;
1328: *)
1329: # OSF1 and SCO ODT 3.0 have their own names for install.
1330: # Don't use installbsd from OSF since it installs stuff as root
1331: # by default.
1332: for ac_prog in ginstall scoinst install; do
1333: for ac_exec_ext in '' $ac_executable_extensions; do
1334: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1335: if test $ac_prog = install &&
1336: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1337: # AIX install. It has an incompatible calling convention.
1338: :
1339: elif test $ac_prog = install &&
1340: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1341: # program-specific install script used by HP pwplus--don't use.
1342: :
1343: else
1344: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1345: break 3
1346: fi
1347: fi
1.1 paf 1348: done
1.2 paf 1349: done
1350: ;;
1351: esac
1352: done
1353:
1.1 paf 1354:
1355: fi
1356: if test "${ac_cv_path_install+set}" = set; then
1.2 paf 1357: INSTALL=$ac_cv_path_install
1.1 paf 1358: else
1359: # As a last resort, use the slow shell script. We don't cache a
1360: # path for INSTALL within a source directory, because that will
1361: # break other packages using the cache if that directory is
1362: # removed, or if the path is relative.
1.2 paf 1363: INSTALL=$ac_install_sh
1.1 paf 1364: fi
1365: fi
1.2 paf 1366: echo "$as_me:$LINENO: result: $INSTALL" >&5
1367: echo "${ECHO_T}$INSTALL" >&6
1.1 paf 1368:
1369: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1370: # It thinks the first close brace ends the variable substitution.
1371: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1372:
1.2 paf 1373: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 1374:
1375: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1376:
1.2 paf 1377: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1378: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 paf 1379: # Just in case
1380: sleep 1
1.2 paf 1381: echo timestamp > conftest.file
1.1 paf 1382: # Do `set' in a subshell so we don't clobber the current shell's
1383: # arguments. Must try -L first in case configure is actually a
1384: # symlink; some systems play weird games with the mod time of symlinks
1385: # (eg FreeBSD returns the mod time of the symlink's containing
1386: # directory).
1387: if (
1.2 paf 1388: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1 paf 1389: if test "$*" = "X"; then
1390: # -L didn't work.
1.2 paf 1391: set X `ls -t $srcdir/configure conftest.file`
1.1 paf 1392: fi
1.2 paf 1393: rm -f conftest.file
1394: if test "$*" != "X $srcdir/configure conftest.file" \
1395: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 paf 1396:
1397: # If neither matched, then we have a broken ls. This can happen
1398: # if, for instance, CONFIG_SHELL is bash and it inherits a
1399: # broken ls alias from the environment. This has actually
1400: # happened. Such a system could not be considered "sane".
1.2 paf 1401: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1402: alias in your environment" >&5
1403: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1404: alias in your environment" >&2;}
1405: { (exit 1); exit 1; }; }
1.1 paf 1406: fi
1407:
1.2 paf 1408: test "$2" = conftest.file
1.1 paf 1409: )
1410: then
1411: # Ok.
1412: :
1413: else
1.2 paf 1414: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1415: Check your system clock" >&5
1416: echo "$as_me: error: newly created file is older than distributed files!
1417: Check your system clock" >&2;}
1418: { (exit 1); exit 1; }; }
1.1 paf 1419: fi
1.2 paf 1420: echo "$as_me:$LINENO: result: yes" >&5
1421: echo "${ECHO_T}yes" >&6
1.1 paf 1422: test "$program_prefix" != NONE &&
1.2 paf 1423: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 paf 1424: # Use a double $ so make ignores it.
1425: test "$program_suffix" != NONE &&
1.2 paf 1426: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1427: # Double any \ or $. echo might interpret backslashes.
1428: # By default was `s,x,x', remove it if useless.
1429: cat <<\_ACEOF >conftest.sed
1430: s/[\\$]/&&/g;s/;s,x,x,$//
1431: _ACEOF
1432: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1433: rm conftest.sed
1434:
1435:
1436: # expand $ac_aux_dir to an absolute path
1437: am_aux_dir=`cd $ac_aux_dir && pwd`
1438:
1439: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1440: # Use eval to expand $SHELL
1441: if eval "$MISSING --run true"; then
1442: am_missing_run="$MISSING --run "
1443: else
1444: am_missing_run=
1445: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1446: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1447: fi
1.1 paf 1448:
1.2 paf 1449: for ac_prog in gawk mawk nawk awk
1450: do
1451: # Extract the first word of "$ac_prog", so it can be a program name with args.
1452: set dummy $ac_prog; ac_word=$2
1453: echo "$as_me:$LINENO: checking for $ac_word" >&5
1454: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1455: if test "${ac_cv_prog_AWK+set}" = set; then
1456: echo $ECHO_N "(cached) $ECHO_C" >&6
1457: else
1458: if test -n "$AWK"; then
1459: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.1 paf 1460: else
1.2 paf 1461: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1462: for as_dir in $PATH
1463: do
1464: IFS=$as_save_IFS
1465: test -z "$as_dir" && as_dir=.
1466: for ac_exec_ext in '' $ac_executable_extensions; do
1467: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1468: ac_cv_prog_AWK="$ac_prog"
1469: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1470: break 2
1471: fi
1472: done
1473: done
1474:
1475: fi
1476: fi
1477: AWK=$ac_cv_prog_AWK
1478: if test -n "$AWK"; then
1479: echo "$as_me:$LINENO: result: $AWK" >&5
1480: echo "${ECHO_T}$AWK" >&6
1481: else
1482: echo "$as_me:$LINENO: result: no" >&5
1483: echo "${ECHO_T}no" >&6
1484: fi
1485:
1486: test -n "$AWK" && break
1487: done
1488:
1489: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1490: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1491: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1492: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1493: echo $ECHO_N "(cached) $ECHO_C" >&6
1494: else
1495: cat >conftest.make <<\_ACEOF
1.1 paf 1496: all:
1.2 paf 1497: @echo 'ac_maketemp="$(MAKE)"'
1498: _ACEOF
1.1 paf 1499: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.2 paf 1500: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 paf 1501: if test -n "$ac_maketemp"; then
1502: eval ac_cv_prog_make_${ac_make}_set=yes
1503: else
1504: eval ac_cv_prog_make_${ac_make}_set=no
1505: fi
1.2 paf 1506: rm -f conftest.make
1.1 paf 1507: fi
1508: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.2 paf 1509: echo "$as_me:$LINENO: result: yes" >&5
1510: echo "${ECHO_T}yes" >&6
1.1 paf 1511: SET_MAKE=
1512: else
1.2 paf 1513: echo "$as_me:$LINENO: result: no" >&5
1514: echo "${ECHO_T}no" >&6
1.1 paf 1515: SET_MAKE="MAKE=${MAKE-make}"
1516: fi
1517:
1.2 paf 1518: # test to see if srcdir already configured
1519: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1520: test -f $srcdir/config.status; then
1521: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1522: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1523: { (exit 1); exit 1; }; }
1524: fi
1525:
1526: # test whether we have cygpath
1527: if test -z "$CYGPATH_W"; then
1528: if (cygpath --version) >/dev/null 2>/dev/null; then
1529: CYGPATH_W='cygpath -w'
1530: else
1531: CYGPATH_W=echo
1532: fi
1533: fi
1534:
1535:
1536: # Define the identity of the package.
1537: PACKAGE=libltdl
1538: VERSION=1.0
1539:
1540:
1541: # Some tools Automake needs.
1542:
1543: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1544:
1.1 paf 1545:
1.2 paf 1546: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1.1 paf 1547:
1548:
1.2 paf 1549: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1550:
1551:
1552: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1553:
1554:
1555: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1556:
1.1 paf 1557:
1.2 paf 1558: AMTAR=${AMTAR-"${am_missing_run}tar"}
1.1 paf 1559:
1.2 paf 1560: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1 paf 1561:
1.2 paf 1562: # Installed binaries are usually stripped using `strip' when the user
1563: # run `make install-strip'. However `strip' might not be the right
1564: # tool to use in cross-compilation environments, therefore Automake
1565: # will honor the `STRIP' environment variable to overrule this program.
1566: if test "$cross_compiling" != no; then
1567: if test -n "$ac_tool_prefix"; then
1568: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1569: set dummy ${ac_tool_prefix}strip; ac_word=$2
1570: echo "$as_me:$LINENO: checking for $ac_word" >&5
1571: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1572: if test "${ac_cv_prog_STRIP+set}" = set; then
1573: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1574: else
1.2 paf 1575: if test -n "$STRIP"; then
1576: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1577: else
1578: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579: for as_dir in $PATH
1580: do
1581: IFS=$as_save_IFS
1582: test -z "$as_dir" && as_dir=.
1583: for ac_exec_ext in '' $ac_executable_extensions; do
1584: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1585: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1586: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587: break 2
1588: fi
1589: done
1590: done
1591:
1592: fi
1593: fi
1594: STRIP=$ac_cv_prog_STRIP
1595: if test -n "$STRIP"; then
1596: echo "$as_me:$LINENO: result: $STRIP" >&5
1597: echo "${ECHO_T}$STRIP" >&6
1598: else
1599: echo "$as_me:$LINENO: result: no" >&5
1600: echo "${ECHO_T}no" >&6
1.1 paf 1601: fi
1602:
1.2 paf 1603: fi
1604: if test -z "$ac_cv_prog_STRIP"; then
1605: ac_ct_STRIP=$STRIP
1606: # Extract the first word of "strip", so it can be a program name with args.
1607: set dummy strip; ac_word=$2
1608: echo "$as_me:$LINENO: checking for $ac_word" >&5
1609: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1611: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1612: else
1.2 paf 1613: if test -n "$ac_ct_STRIP"; then
1614: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1615: else
1616: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617: for as_dir in $PATH
1618: do
1619: IFS=$as_save_IFS
1620: test -z "$as_dir" && as_dir=.
1621: for ac_exec_ext in '' $ac_executable_extensions; do
1622: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623: ac_cv_prog_ac_ct_STRIP="strip"
1624: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625: break 2
1626: fi
1627: done
1628: done
1629:
1630: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.1 paf 1631: fi
1.2 paf 1632: fi
1633: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1634: if test -n "$ac_ct_STRIP"; then
1635: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1636: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 paf 1637: else
1.2 paf 1638: echo "$as_me:$LINENO: result: no" >&5
1639: echo "${ECHO_T}no" >&6
1.1 paf 1640: fi
1641:
1.2 paf 1642: STRIP=$ac_ct_STRIP
1.1 paf 1643: else
1.2 paf 1644: STRIP="$ac_cv_prog_STRIP"
1.1 paf 1645: fi
1646:
1647: fi
1.2 paf 1648: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1649:
1650: # We need awk for the "check" target. The system "awk" is bad on
1651: # some platforms.
1652:
1653:
1654:
1655:
1.1 paf 1656:
1657:
1658:
1659:
1660:
1.2 paf 1661:
1662:
1663:
1664:
1665: ac_config_headers="$ac_config_headers config_auto.h"
1666:
1667: echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1668: echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1.1 paf 1669: # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1670: if test "${enable_maintainer_mode+set}" = set; then
1671: enableval="$enable_maintainer_mode"
1672: USE_MAINTAINER_MODE=$enableval
1673: else
1674: USE_MAINTAINER_MODE=no
1.2 paf 1675: fi;
1676: echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1677: echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1.1 paf 1678:
1679:
1680: if test $USE_MAINTAINER_MODE = yes; then
1681: MAINTAINER_MODE_TRUE=
1682: MAINTAINER_MODE_FALSE='#'
1683: else
1684: MAINTAINER_MODE_TRUE='#'
1685: MAINTAINER_MODE_FALSE=
1686: fi
1.2 paf 1687:
1.1 paf 1688: MAINT=$MAINTAINER_MODE_TRUE
1689:
1690:
1.2 paf 1691:
1692: ac_ext=c
1693: ac_cpp='$CPP $CPPFLAGS'
1694: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1695: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1696: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1697: if test -n "$ac_tool_prefix"; then
1698: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1699: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1700: echo "$as_me:$LINENO: checking for $ac_word" >&5
1701: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702: if test "${ac_cv_prog_CC+set}" = set; then
1703: echo $ECHO_N "(cached) $ECHO_C" >&6
1704: else
1705: if test -n "$CC"; then
1706: ac_cv_prog_CC="$CC" # Let the user override the test.
1707: else
1708: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709: for as_dir in $PATH
1710: do
1711: IFS=$as_save_IFS
1712: test -z "$as_dir" && as_dir=.
1713: for ac_exec_ext in '' $ac_executable_extensions; do
1714: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1716: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717: break 2
1718: fi
1719: done
1720: done
1721:
1722: fi
1723: fi
1724: CC=$ac_cv_prog_CC
1725: if test -n "$CC"; then
1726: echo "$as_me:$LINENO: result: $CC" >&5
1727: echo "${ECHO_T}$CC" >&6
1728: else
1729: echo "$as_me:$LINENO: result: no" >&5
1730: echo "${ECHO_T}no" >&6
1731: fi
1732:
1733: fi
1734: if test -z "$ac_cv_prog_CC"; then
1735: ac_ct_CC=$CC
1736: # Extract the first word of "gcc", so it can be a program name with args.
1.1 paf 1737: set dummy gcc; ac_word=$2
1.2 paf 1738: echo "$as_me:$LINENO: checking for $ac_word" >&5
1739: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1740: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1741: echo $ECHO_N "(cached) $ECHO_C" >&6
1742: else
1743: if test -n "$ac_ct_CC"; then
1744: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1745: else
1746: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747: for as_dir in $PATH
1748: do
1749: IFS=$as_save_IFS
1750: test -z "$as_dir" && as_dir=.
1751: for ac_exec_ext in '' $ac_executable_extensions; do
1752: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1753: ac_cv_prog_ac_ct_CC="gcc"
1754: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1755: break 2
1756: fi
1757: done
1758: done
1759:
1760: fi
1761: fi
1762: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1763: if test -n "$ac_ct_CC"; then
1764: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1765: echo "${ECHO_T}$ac_ct_CC" >&6
1766: else
1767: echo "$as_me:$LINENO: result: no" >&5
1768: echo "${ECHO_T}no" >&6
1769: fi
1770:
1771: CC=$ac_ct_CC
1772: else
1773: CC="$ac_cv_prog_CC"
1774: fi
1775:
1776: if test -z "$CC"; then
1777: if test -n "$ac_tool_prefix"; then
1778: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1779: set dummy ${ac_tool_prefix}cc; ac_word=$2
1780: echo "$as_me:$LINENO: checking for $ac_word" >&5
1781: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1782: if test "${ac_cv_prog_CC+set}" = set; then
1783: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1784: else
1785: if test -n "$CC"; then
1786: ac_cv_prog_CC="$CC" # Let the user override the test.
1787: else
1.2 paf 1788: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789: for as_dir in $PATH
1790: do
1791: IFS=$as_save_IFS
1792: test -z "$as_dir" && as_dir=.
1793: for ac_exec_ext in '' $ac_executable_extensions; do
1794: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1795: ac_cv_prog_CC="${ac_tool_prefix}cc"
1796: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1797: break 2
1798: fi
1799: done
1800: done
1801:
1.1 paf 1802: fi
1803: fi
1.2 paf 1804: CC=$ac_cv_prog_CC
1.1 paf 1805: if test -n "$CC"; then
1.2 paf 1806: echo "$as_me:$LINENO: result: $CC" >&5
1807: echo "${ECHO_T}$CC" >&6
1.1 paf 1808: else
1.2 paf 1809: echo "$as_me:$LINENO: result: no" >&5
1810: echo "${ECHO_T}no" >&6
1811: fi
1812:
1.1 paf 1813: fi
1.2 paf 1814: if test -z "$ac_cv_prog_CC"; then
1815: ac_ct_CC=$CC
1816: # Extract the first word of "cc", so it can be a program name with args.
1817: set dummy cc; ac_word=$2
1818: echo "$as_me:$LINENO: checking for $ac_word" >&5
1819: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1821: echo $ECHO_N "(cached) $ECHO_C" >&6
1822: else
1823: if test -n "$ac_ct_CC"; then
1824: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1825: else
1826: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827: for as_dir in $PATH
1828: do
1829: IFS=$as_save_IFS
1830: test -z "$as_dir" && as_dir=.
1831: for ac_exec_ext in '' $ac_executable_extensions; do
1832: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833: ac_cv_prog_ac_ct_CC="cc"
1834: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835: break 2
1836: fi
1837: done
1838: done
1.1 paf 1839:
1.2 paf 1840: fi
1841: fi
1842: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1843: if test -n "$ac_ct_CC"; then
1844: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1845: echo "${ECHO_T}$ac_ct_CC" >&6
1846: else
1847: echo "$as_me:$LINENO: result: no" >&5
1848: echo "${ECHO_T}no" >&6
1849: fi
1850:
1851: CC=$ac_ct_CC
1852: else
1853: CC="$ac_cv_prog_CC"
1854: fi
1855:
1856: fi
1.1 paf 1857: if test -z "$CC"; then
1858: # Extract the first word of "cc", so it can be a program name with args.
1859: set dummy cc; ac_word=$2
1.2 paf 1860: echo "$as_me:$LINENO: checking for $ac_word" >&5
1861: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862: if test "${ac_cv_prog_CC+set}" = set; then
1863: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1864: else
1865: if test -n "$CC"; then
1866: ac_cv_prog_CC="$CC" # Let the user override the test.
1867: else
1868: ac_prog_rejected=no
1.2 paf 1869: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870: for as_dir in $PATH
1871: do
1872: IFS=$as_save_IFS
1873: test -z "$as_dir" && as_dir=.
1874: for ac_exec_ext in '' $ac_executable_extensions; do
1875: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1876: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1877: ac_prog_rejected=yes
1878: continue
1879: fi
1880: ac_cv_prog_CC="cc"
1881: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882: break 2
1883: fi
1884: done
1885: done
1886:
1.1 paf 1887: if test $ac_prog_rejected = yes; then
1888: # We found a bogon in the path, so make sure we never use it.
1889: set dummy $ac_cv_prog_CC
1890: shift
1.2 paf 1891: if test $# != 0; then
1.1 paf 1892: # We chose a different compiler from the bogus one.
1893: # However, it has the same basename, so the bogon will be chosen
1894: # first if we set CC to just the basename; use the full file name.
1895: shift
1.2 paf 1896: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 paf 1897: fi
1898: fi
1899: fi
1900: fi
1.2 paf 1901: CC=$ac_cv_prog_CC
1.1 paf 1902: if test -n "$CC"; then
1.2 paf 1903: echo "$as_me:$LINENO: result: $CC" >&5
1904: echo "${ECHO_T}$CC" >&6
1.1 paf 1905: else
1.2 paf 1906: echo "$as_me:$LINENO: result: no" >&5
1907: echo "${ECHO_T}no" >&6
1.1 paf 1908: fi
1909:
1.2 paf 1910: fi
1911: if test -z "$CC"; then
1912: if test -n "$ac_tool_prefix"; then
1913: for ac_prog in cl
1914: do
1915: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1916: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1917: echo "$as_me:$LINENO: checking for $ac_word" >&5
1918: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919: if test "${ac_cv_prog_CC+set}" = set; then
1920: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1921: else
1922: if test -n "$CC"; then
1923: ac_cv_prog_CC="$CC" # Let the user override the test.
1924: else
1.2 paf 1925: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926: for as_dir in $PATH
1927: do
1928: IFS=$as_save_IFS
1929: test -z "$as_dir" && as_dir=.
1930: for ac_exec_ext in '' $ac_executable_extensions; do
1931: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1933: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934: break 2
1935: fi
1936: done
1937: done
1938:
1.1 paf 1939: fi
1940: fi
1.2 paf 1941: CC=$ac_cv_prog_CC
1.1 paf 1942: if test -n "$CC"; then
1.2 paf 1943: echo "$as_me:$LINENO: result: $CC" >&5
1944: echo "${ECHO_T}$CC" >&6
1.1 paf 1945: else
1.2 paf 1946: echo "$as_me:$LINENO: result: no" >&5
1947: echo "${ECHO_T}no" >&6
1948: fi
1949:
1950: test -n "$CC" && break
1951: done
1.1 paf 1952: fi
1.2 paf 1953: if test -z "$CC"; then
1954: ac_ct_CC=$CC
1955: for ac_prog in cl
1956: do
1957: # Extract the first word of "$ac_prog", so it can be a program name with args.
1958: set dummy $ac_prog; ac_word=$2
1959: echo "$as_me:$LINENO: checking for $ac_word" >&5
1960: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1961: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1962: echo $ECHO_N "(cached) $ECHO_C" >&6
1963: else
1964: if test -n "$ac_ct_CC"; then
1965: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1966: else
1967: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968: for as_dir in $PATH
1969: do
1970: IFS=$as_save_IFS
1971: test -z "$as_dir" && as_dir=.
1972: for ac_exec_ext in '' $ac_executable_extensions; do
1973: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974: ac_cv_prog_ac_ct_CC="$ac_prog"
1975: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976: break 2
1.1 paf 1977: fi
1.2 paf 1978: done
1979: done
1980:
1981: fi
1982: fi
1983: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1984: if test -n "$ac_ct_CC"; then
1985: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1986: echo "${ECHO_T}$ac_ct_CC" >&6
1987: else
1988: echo "$as_me:$LINENO: result: no" >&5
1989: echo "${ECHO_T}no" >&6
1990: fi
1991:
1992: test -n "$ac_ct_CC" && break
1993: done
1994:
1995: CC=$ac_ct_CC
1996: fi
1997:
1.1 paf 1998: fi
1999:
2000:
1.2 paf 2001: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2002: See \`config.log' for more details." >&5
2003: echo "$as_me: error: no acceptable C compiler found in \$PATH
2004: See \`config.log' for more details." >&2;}
2005: { (exit 1); exit 1; }; }
2006:
2007: # Provide some information about the compiler.
2008: echo "$as_me:$LINENO:" \
2009: "checking for C compiler version" >&5
2010: ac_compiler=`set X $ac_compile; echo $2`
2011: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2012: (eval $ac_compiler --version </dev/null >&5) 2>&5
2013: ac_status=$?
2014: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015: (exit $ac_status); }
2016: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2017: (eval $ac_compiler -v </dev/null >&5) 2>&5
2018: ac_status=$?
2019: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020: (exit $ac_status); }
2021: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2022: (eval $ac_compiler -V </dev/null >&5) 2>&5
2023: ac_status=$?
2024: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025: (exit $ac_status); }
2026:
2027: cat >conftest.$ac_ext <<_ACEOF
2028: #line $LINENO "configure"
2029: /* confdefs.h. */
2030: _ACEOF
2031: cat confdefs.h >>conftest.$ac_ext
2032: cat >>conftest.$ac_ext <<_ACEOF
2033: /* end confdefs.h. */
1.1 paf 2034:
1.2 paf 2035: int
2036: main ()
2037: {
1.1 paf 2038:
1.2 paf 2039: ;
2040: return 0;
2041: }
2042: _ACEOF
2043: ac_clean_files_save=$ac_clean_files
2044: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2045: # Try to create an executable without -o first, disregard a.out.
2046: # It will help us diagnose broken compilers, and finding out an intuition
2047: # of exeext.
2048: echo "$as_me:$LINENO: checking for C compiler default output" >&5
2049: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2050: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2051: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2052: (eval $ac_link_default) 2>&5
2053: ac_status=$?
2054: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055: (exit $ac_status); }; then
2056: # Find the output, starting from the most likely. This scheme is
2057: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2058: # resort.
2059:
2060: # Be careful to initialize this variable, since it used to be cached.
2061: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2062: ac_cv_exeext=
2063: # b.out is created by i960 compilers.
2064: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2065: do
2066: test -f "$ac_file" || continue
2067: case $ac_file in
2068: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2069: ;;
2070: conftest.$ac_ext )
2071: # This is the source file.
2072: ;;
2073: [ab].out )
2074: # We found the default executable, but exeext='' is most
2075: # certainly right.
2076: break;;
2077: *.* )
2078: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2079: # FIXME: I believe we export ac_cv_exeext for Libtool,
2080: # but it would be cool to find out if it's true. Does anybody
2081: # maintain Libtool? --akim.
2082: export ac_cv_exeext
2083: break;;
2084: * )
2085: break;;
2086: esac
2087: done
2088: else
2089: echo "$as_me: failed program was:" >&5
2090: sed 's/^/| /' conftest.$ac_ext >&5
1.1 paf 2091:
1.2 paf 2092: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2093: See \`config.log' for more details." >&5
2094: echo "$as_me: error: C compiler cannot create executables
2095: See \`config.log' for more details." >&2;}
2096: { (exit 77); exit 77; }; }
2097: fi
2098:
2099: ac_exeext=$ac_cv_exeext
2100: echo "$as_me:$LINENO: result: $ac_file" >&5
2101: echo "${ECHO_T}$ac_file" >&6
2102:
2103: # Check the compiler produces executables we can run. If not, either
2104: # the compiler is broken, or we cross compile.
2105: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2106: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2107: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2108: # If not cross compiling, check that we can run a simple program.
2109: if test "$cross_compiling" != yes; then
2110: if { ac_try='./$ac_file'
2111: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112: (eval $ac_try) 2>&5
2113: ac_status=$?
2114: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115: (exit $ac_status); }; }; then
2116: cross_compiling=no
1.1 paf 2117: else
1.2 paf 2118: if test "$cross_compiling" = maybe; then
2119: cross_compiling=yes
2120: else
2121: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2122: If you meant to cross compile, use \`--host'.
2123: See \`config.log' for more details." >&5
2124: echo "$as_me: error: cannot run C compiled programs.
2125: If you meant to cross compile, use \`--host'.
2126: See \`config.log' for more details." >&2;}
2127: { (exit 1); exit 1; }; }
2128: fi
1.1 paf 2129: fi
2130: fi
1.2 paf 2131: echo "$as_me:$LINENO: result: yes" >&5
2132: echo "${ECHO_T}yes" >&6
2133:
2134: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2135: ac_clean_files=$ac_clean_files_save
2136: # Check the compiler produces executables we can run. If not, either
2137: # the compiler is broken, or we cross compile.
2138: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2139: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2140: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2141: echo "${ECHO_T}$cross_compiling" >&6
2142:
2143: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2144: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2145: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2146: (eval $ac_link) 2>&5
2147: ac_status=$?
2148: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149: (exit $ac_status); }; then
2150: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2151: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2152: # work properly (i.e., refer to `conftest.exe'), while it won't with
2153: # `rm'.
2154: for ac_file in conftest.exe conftest conftest.*; do
2155: test -f "$ac_file" || continue
2156: case $ac_file in
2157: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2158: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2159: export ac_cv_exeext
2160: break;;
2161: * ) break;;
2162: esac
2163: done
1.1 paf 2164: else
1.2 paf 2165: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2166: See \`config.log' for more details." >&5
2167: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2168: See \`config.log' for more details." >&2;}
2169: { (exit 1); exit 1; }; }
2170: fi
2171:
2172: rm -f conftest$ac_cv_exeext
2173: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2174: echo "${ECHO_T}$ac_cv_exeext" >&6
2175:
2176: rm -f conftest.$ac_ext
2177: EXEEXT=$ac_cv_exeext
2178: ac_exeext=$EXEEXT
2179: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2180: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2181: if test "${ac_cv_objext+set}" = set; then
2182: echo $ECHO_N "(cached) $ECHO_C" >&6
2183: else
2184: cat >conftest.$ac_ext <<_ACEOF
2185: #line $LINENO "configure"
2186: /* confdefs.h. */
2187: _ACEOF
2188: cat confdefs.h >>conftest.$ac_ext
2189: cat >>conftest.$ac_ext <<_ACEOF
2190: /* end confdefs.h. */
1.1 paf 2191:
1.2 paf 2192: int
2193: main ()
2194: {
1.1 paf 2195:
1.2 paf 2196: ;
2197: return 0;
2198: }
2199: _ACEOF
2200: rm -f conftest.o conftest.obj
2201: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202: (eval $ac_compile) 2>&5
2203: ac_status=$?
2204: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205: (exit $ac_status); }; then
2206: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2207: case $ac_file in
2208: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2209: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2210: break;;
2211: esac
2212: done
1.1 paf 2213: else
1.2 paf 2214: echo "$as_me: failed program was:" >&5
2215: sed 's/^/| /' conftest.$ac_ext >&5
2216:
2217: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2218: See \`config.log' for more details." >&5
2219: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2220: See \`config.log' for more details." >&2;}
2221: { (exit 1); exit 1; }; }
2222: fi
2223:
2224: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2225: fi
2226: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2227: echo "${ECHO_T}$ac_cv_objext" >&6
2228: OBJEXT=$ac_cv_objext
2229: ac_objext=$OBJEXT
2230: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2231: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2232: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2233: echo $ECHO_N "(cached) $ECHO_C" >&6
2234: else
2235: cat >conftest.$ac_ext <<_ACEOF
2236: #line $LINENO "configure"
2237: /* confdefs.h. */
2238: _ACEOF
2239: cat confdefs.h >>conftest.$ac_ext
2240: cat >>conftest.$ac_ext <<_ACEOF
2241: /* end confdefs.h. */
2242:
2243: int
2244: main ()
2245: {
2246: #ifndef __GNUC__
2247: choke me
2248: #endif
2249:
2250: ;
2251: return 0;
2252: }
2253: _ACEOF
2254: rm -f conftest.$ac_objext
2255: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256: (eval $ac_compile) 2>&5
2257: ac_status=$?
2258: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259: (exit $ac_status); } &&
2260: { ac_try='test -s conftest.$ac_objext'
2261: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262: (eval $ac_try) 2>&5
2263: ac_status=$?
2264: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265: (exit $ac_status); }; }; then
2266: ac_compiler_gnu=yes
2267: else
2268: echo "$as_me: failed program was:" >&5
2269: sed 's/^/| /' conftest.$ac_ext >&5
2270:
2271: ac_compiler_gnu=no
2272: fi
2273: rm -f conftest.$ac_objext conftest.$ac_ext
2274: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2275:
2276: fi
2277: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2278: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2279: GCC=`test $ac_compiler_gnu = yes && echo yes`
2280: ac_test_CFLAGS=${CFLAGS+set}
2281: ac_save_CFLAGS=$CFLAGS
2282: CFLAGS="-g"
2283: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2284: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2285: if test "${ac_cv_prog_cc_g+set}" = set; then
2286: echo $ECHO_N "(cached) $ECHO_C" >&6
2287: else
2288: cat >conftest.$ac_ext <<_ACEOF
2289: #line $LINENO "configure"
2290: /* confdefs.h. */
2291: _ACEOF
2292: cat confdefs.h >>conftest.$ac_ext
2293: cat >>conftest.$ac_ext <<_ACEOF
2294: /* end confdefs.h. */
2295:
2296: int
2297: main ()
2298: {
1.1 paf 2299:
1.2 paf 2300: ;
2301: return 0;
2302: }
2303: _ACEOF
2304: rm -f conftest.$ac_objext
2305: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306: (eval $ac_compile) 2>&5
2307: ac_status=$?
2308: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309: (exit $ac_status); } &&
2310: { ac_try='test -s conftest.$ac_objext'
2311: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312: (eval $ac_try) 2>&5
2313: ac_status=$?
2314: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315: (exit $ac_status); }; }; then
1.1 paf 2316: ac_cv_prog_cc_g=yes
2317: else
1.2 paf 2318: echo "$as_me: failed program was:" >&5
2319: sed 's/^/| /' conftest.$ac_ext >&5
2320:
2321: ac_cv_prog_cc_g=no
1.1 paf 2322: fi
1.2 paf 2323: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 paf 2324: fi
1.2 paf 2325: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2326: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 paf 2327: if test "$ac_test_CFLAGS" = set; then
1.2 paf 2328: CFLAGS=$ac_save_CFLAGS
1.1 paf 2329: elif test $ac_cv_prog_cc_g = yes; then
2330: if test "$GCC" = yes; then
2331: CFLAGS="-g -O2"
2332: else
2333: CFLAGS="-g"
2334: fi
2335: else
2336: if test "$GCC" = yes; then
2337: CFLAGS="-O2"
2338: else
2339: CFLAGS=
2340: fi
2341: fi
1.2 paf 2342: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2343: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2344: if test "${ac_cv_prog_cc_stdc+set}" = set; then
2345: echo $ECHO_N "(cached) $ECHO_C" >&6
2346: else
2347: ac_cv_prog_cc_stdc=no
2348: ac_save_CC=$CC
2349: cat >conftest.$ac_ext <<_ACEOF
2350: #line $LINENO "configure"
2351: /* confdefs.h. */
2352: _ACEOF
2353: cat confdefs.h >>conftest.$ac_ext
2354: cat >>conftest.$ac_ext <<_ACEOF
2355: /* end confdefs.h. */
2356: #include <stdarg.h>
2357: #include <stdio.h>
2358: #include <sys/types.h>
2359: #include <sys/stat.h>
2360: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2361: struct buf { int x; };
2362: FILE * (*rcsopen) (struct buf *, struct stat *, int);
2363: static char *e (p, i)
2364: char **p;
2365: int i;
2366: {
2367: return p[i];
2368: }
2369: static char *f (char * (*g) (char **, int), char **p, ...)
2370: {
2371: char *s;
2372: va_list v;
2373: va_start (v,p);
2374: s = g (p, va_arg (v,int));
2375: va_end (v);
2376: return s;
2377: }
2378: int test (int i, double x);
2379: struct s1 {int (*f) (int a);};
2380: struct s2 {int (*f) (double a);};
2381: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2382: int argc;
2383: char **argv;
2384: int
2385: main ()
2386: {
2387: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2388: ;
2389: return 0;
2390: }
2391: _ACEOF
2392: # Don't try gcc -ansi; that turns off useful extensions and
2393: # breaks some systems' header files.
2394: # AIX -qlanglvl=ansi
2395: # Ultrix and OSF/1 -std1
2396: # HP-UX 10.20 and later -Ae
2397: # HP-UX older versions -Aa -D_HPUX_SOURCE
2398: # SVR4 -Xc -D__EXTENSIONS__
2399: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2400: do
2401: CC="$ac_save_CC $ac_arg"
2402: rm -f conftest.$ac_objext
2403: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404: (eval $ac_compile) 2>&5
2405: ac_status=$?
2406: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407: (exit $ac_status); } &&
2408: { ac_try='test -s conftest.$ac_objext'
2409: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410: (eval $ac_try) 2>&5
2411: ac_status=$?
2412: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413: (exit $ac_status); }; }; then
2414: ac_cv_prog_cc_stdc=$ac_arg
2415: break
2416: else
2417: echo "$as_me: failed program was:" >&5
2418: sed 's/^/| /' conftest.$ac_ext >&5
1.1 paf 2419:
1.2 paf 2420: fi
2421: rm -f conftest.$ac_objext
2422: done
2423: rm -f conftest.$ac_ext conftest.$ac_objext
2424: CC=$ac_save_CC
1.1 paf 2425:
1.2 paf 2426: fi
1.1 paf 2427:
1.2 paf 2428: case "x$ac_cv_prog_cc_stdc" in
2429: x|xno)
2430: echo "$as_me:$LINENO: result: none needed" >&5
2431: echo "${ECHO_T}none needed" >&6 ;;
2432: *)
2433: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2434: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2435: CC="$CC $ac_cv_prog_cc_stdc" ;;
2436: esac
2437:
2438: # Some people use a C++ compiler to compile C. Since we use `exit',
2439: # in C++ we need to declare it. In case someone uses the same compiler
2440: # for both compiling C and C++ we need to have the C++ compiler decide
2441: # the declaration of exit, since it's the most demanding environment.
2442: cat >conftest.$ac_ext <<_ACEOF
2443: #ifndef __cplusplus
2444: choke me
2445: #endif
2446: _ACEOF
2447: rm -f conftest.$ac_objext
2448: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449: (eval $ac_compile) 2>&5
2450: ac_status=$?
2451: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452: (exit $ac_status); } &&
2453: { ac_try='test -s conftest.$ac_objext'
2454: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455: (eval $ac_try) 2>&5
2456: ac_status=$?
2457: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458: (exit $ac_status); }; }; then
2459: for ac_declaration in \
2460: ''\
2461: '#include <stdlib.h>' \
2462: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2463: 'extern "C" void std::exit (int); using std::exit;' \
2464: 'extern "C" void exit (int) throw ();' \
2465: 'extern "C" void exit (int);' \
2466: 'void exit (int);'
2467: do
2468: cat >conftest.$ac_ext <<_ACEOF
2469: #line $LINENO "configure"
2470: /* confdefs.h. */
2471: _ACEOF
2472: cat confdefs.h >>conftest.$ac_ext
2473: cat >>conftest.$ac_ext <<_ACEOF
2474: /* end confdefs.h. */
2475: #include <stdlib.h>
2476: $ac_declaration
2477: int
2478: main ()
2479: {
2480: exit (42);
2481: ;
2482: return 0;
1.1 paf 2483: }
1.2 paf 2484: _ACEOF
2485: rm -f conftest.$ac_objext
2486: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2487: (eval $ac_compile) 2>&5
2488: ac_status=$?
2489: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490: (exit $ac_status); } &&
2491: { ac_try='test -s conftest.$ac_objext'
2492: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493: (eval $ac_try) 2>&5
2494: ac_status=$?
2495: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496: (exit $ac_status); }; }; then
2497: :
2498: else
2499: echo "$as_me: failed program was:" >&5
2500: sed 's/^/| /' conftest.$ac_ext >&5
2501:
2502: continue
2503: fi
2504: rm -f conftest.$ac_objext conftest.$ac_ext
2505: cat >conftest.$ac_ext <<_ACEOF
2506: #line $LINENO "configure"
2507: /* confdefs.h. */
2508: _ACEOF
2509: cat confdefs.h >>conftest.$ac_ext
2510: cat >>conftest.$ac_ext <<_ACEOF
2511: /* end confdefs.h. */
2512: $ac_declaration
2513: int
2514: main ()
2515: {
2516: exit (42);
2517: ;
2518: return 0;
1.1 paf 2519: }
1.2 paf 2520: _ACEOF
2521: rm -f conftest.$ac_objext
2522: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523: (eval $ac_compile) 2>&5
2524: ac_status=$?
2525: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526: (exit $ac_status); } &&
2527: { ac_try='test -s conftest.$ac_objext'
2528: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529: (eval $ac_try) 2>&5
2530: ac_status=$?
2531: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532: (exit $ac_status); }; }; then
2533: break
2534: else
2535: echo "$as_me: failed program was:" >&5
2536: sed 's/^/| /' conftest.$ac_ext >&5
2537:
2538: fi
2539: rm -f conftest.$ac_objext conftest.$ac_ext
2540: done
2541: rm -f conftest*
2542: if test -n "$ac_declaration"; then
2543: echo '#ifdef __cplusplus' >>confdefs.h
2544: echo $ac_declaration >>confdefs.h
2545: echo '#endif' >>confdefs.h
2546: fi
2547:
2548: else
2549: echo "$as_me: failed program was:" >&5
2550: sed 's/^/| /' conftest.$ac_ext >&5
2551:
2552: fi
2553: rm -f conftest.$ac_objext conftest.$ac_ext
2554: ac_ext=c
2555: ac_cpp='$CPP $CPPFLAGS'
2556: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2557: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2558: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2559: rm -f .deps 2>/dev/null
2560: mkdir .deps 2>/dev/null
2561: if test -d .deps; then
2562: DEPDIR=.deps
2563: else
2564: # MS-DOS does not allow filenames that begin with a dot.
2565: DEPDIR=_deps
2566: fi
2567: rmdir .deps 2>/dev/null
2568:
2569:
2570: ac_config_commands="$ac_config_commands depfiles"
2571:
2572:
2573: am_make=${MAKE-make}
2574: cat > confinc << 'END'
2575: doit:
2576: @echo done
2577: END
2578: # If we don't find an include directive, just comment out the code.
2579: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2580: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2581: am__include="#"
2582: am__quote=
2583: _am_result=none
2584: # First try GNU make style include.
2585: echo "include confinc" > confmf
2586: # We grep out `Entering directory' and `Leaving directory'
2587: # messages which can occur if `w' ends up in MAKEFLAGS.
2588: # In particular we don't look at `^make:' because GNU make might
2589: # be invoked under some other name (usually "gmake"), in which
2590: # case it prints its new name instead of `make'.
2591: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2592: am__include=include
2593: am__quote=
2594: _am_result=GNU
2595: fi
2596: # Now try BSD make style include.
2597: if test "$am__include" = "#"; then
2598: echo '.include "confinc"' > confmf
2599: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2600: am__include=.include
2601: am__quote="\""
2602: _am_result=BSD
2603: fi
2604: fi
2605:
2606:
2607: echo "$as_me:$LINENO: result: $_am_result" >&5
2608: echo "${ECHO_T}$_am_result" >&6
2609: rm -f confinc confmf
2610:
2611: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2612: if test "${enable_dependency_tracking+set}" = set; then
2613: enableval="$enable_dependency_tracking"
2614:
2615: fi;
2616: if test "x$enable_dependency_tracking" != xno; then
2617: am_depcomp="$ac_aux_dir/depcomp"
2618: AMDEPBACKSLASH='\'
2619: fi
2620:
2621:
2622: if test "x$enable_dependency_tracking" != xno; then
2623: AMDEP_TRUE=
2624: AMDEP_FALSE='#'
2625: else
2626: AMDEP_TRUE='#'
2627: AMDEP_FALSE=
2628: fi
2629:
2630:
2631:
2632:
2633: depcc="$CC" am_compiler_list=
2634:
2635: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2636: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2637: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2638: echo $ECHO_N "(cached) $ECHO_C" >&6
2639: else
2640: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2641: # We make a subdir and do the tests there. Otherwise we can end up
2642: # making bogus files that we don't know about and never remove. For
2643: # instance it was reported that on HP-UX the gcc test will end up
2644: # making a dummy file named `D' -- because `-MD' means `put the output
2645: # in D'.
2646: mkdir conftest.dir
2647: # Copy depcomp to subdir because otherwise we won't find it if we're
2648: # using a relative directory.
2649: cp "$am_depcomp" conftest.dir
2650: cd conftest.dir
2651:
2652: am_cv_CC_dependencies_compiler_type=none
2653: if test "$am_compiler_list" = ""; then
2654: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2655: fi
2656: for depmode in $am_compiler_list; do
2657: # We need to recreate these files for each test, as the compiler may
2658: # overwrite some of them when testing with obscure command lines.
2659: # This happens at least with the AIX C compiler.
2660: echo '#include "conftest.h"' > conftest.c
2661: echo 'int i;' > conftest.h
2662: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2663:
2664: case $depmode in
2665: nosideeffect)
2666: # after this tag, mechanisms are not by side-effect, so they'll
2667: # only be used when explicitly requested
2668: if test "x$enable_dependency_tracking" = xyes; then
2669: continue
2670: else
2671: break
2672: fi
2673: ;;
2674: none) break ;;
2675: esac
2676: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2677: # mode. It turns out that the SunPro C++ compiler does not properly
2678: # handle `-M -o', and we need to detect this.
2679: if depmode=$depmode \
2680: source=conftest.c object=conftest.o \
2681: depfile=conftest.Po tmpdepfile=conftest.TPo \
2682: $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
2683: grep conftest.h conftest.Po > /dev/null 2>&1 &&
2684: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2685: am_cv_CC_dependencies_compiler_type=$depmode
2686: break
2687: fi
2688: done
2689:
2690: cd ..
2691: rm -rf conftest.dir
2692: else
2693: am_cv_CC_dependencies_compiler_type=none
2694: fi
2695:
2696: fi
2697: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2698: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2699: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2700:
2701:
1.1 paf 2702:
1.2 paf 2703: if
2704: test "x$enable_dependency_tracking" != xno \
2705: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2706: am__fastdepCC_TRUE=
2707: am__fastdepCC_FALSE='#'
2708: else
2709: am__fastdepCC_TRUE='#'
2710: am__fastdepCC_FALSE=
2711: fi
2712:
2713:
2714:
2715: echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2716: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2717: if test "${ac_cv_c_const+set}" = set; then
2718: echo $ECHO_N "(cached) $ECHO_C" >&6
2719: else
2720: cat >conftest.$ac_ext <<_ACEOF
2721: #line $LINENO "configure"
2722: /* confdefs.h. */
2723: _ACEOF
2724: cat confdefs.h >>conftest.$ac_ext
2725: cat >>conftest.$ac_ext <<_ACEOF
2726: /* end confdefs.h. */
2727:
2728: int
2729: main ()
2730: {
2731: /* FIXME: Include the comments suggested by Paul. */
2732: #ifndef __cplusplus
2733: /* Ultrix mips cc rejects this. */
2734: typedef int charset[2];
2735: const charset x;
2736: /* SunOS 4.1.1 cc rejects this. */
2737: char const *const *ccp;
2738: char **p;
2739: /* NEC SVR4.0.2 mips cc rejects this. */
2740: struct point {int x, y;};
2741: static struct point const zero = {0,0};
2742: /* AIX XL C 1.02.0.0 rejects this.
2743: It does not let you subtract one const X* pointer from another in
2744: an arm of an if-expression whose if-part is not a constant
2745: expression */
2746: const char *g = "string";
2747: ccp = &g + (g ? g-g : 0);
2748: /* HPUX 7.0 cc rejects these. */
2749: ++ccp;
2750: p = (char**) ccp;
2751: ccp = (char const *const *) p;
2752: { /* SCO 3.2v4 cc rejects this. */
2753: char *t;
2754: char const *s = 0 ? (char *) 0 : (char const *) 0;
2755:
2756: *t++ = 0;
2757: }
2758: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2759: int x[] = {25, 17};
2760: const int *foo = &x[0];
2761: ++foo;
2762: }
2763: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2764: typedef const int *iptr;
2765: iptr p = 0;
2766: ++p;
2767: }
2768: { /* AIX XL C 1.02.0.0 rejects this saying
2769: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2770: struct s { int j; const int *ap[3]; };
2771: struct s *b; b->j = 5;
2772: }
2773: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2774: const int foo = 10;
2775: }
2776: #endif
2777:
2778: ;
2779: return 0;
2780: }
2781: _ACEOF
2782: rm -f conftest.$ac_objext
2783: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2784: (eval $ac_compile) 2>&5
2785: ac_status=$?
2786: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787: (exit $ac_status); } &&
2788: { ac_try='test -s conftest.$ac_objext'
2789: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790: (eval $ac_try) 2>&5
2791: ac_status=$?
2792: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793: (exit $ac_status); }; }; then
1.1 paf 2794: ac_cv_c_const=yes
2795: else
1.2 paf 2796: echo "$as_me: failed program was:" >&5
2797: sed 's/^/| /' conftest.$ac_ext >&5
2798:
2799: ac_cv_c_const=no
1.1 paf 2800: fi
1.2 paf 2801: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 paf 2802: fi
1.2 paf 2803: echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2804: echo "${ECHO_T}$ac_cv_c_const" >&6
2805: if test $ac_cv_c_const = no; then
1.1 paf 2806:
1.2 paf 2807: cat >>confdefs.h <<\_ACEOF
2808: #define const
2809: _ACEOF
1.1 paf 2810:
2811: fi
2812:
1.2 paf 2813: echo "$as_me:$LINENO: checking for inline" >&5
2814: echo $ECHO_N "checking for inline... $ECHO_C" >&6
2815: if test "${ac_cv_c_inline+set}" = set; then
2816: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 2817: else
2818: ac_cv_c_inline=no
2819: for ac_kw in inline __inline__ __inline; do
1.2 paf 2820: cat >conftest.$ac_ext <<_ACEOF
2821: #line $LINENO "configure"
2822: /* confdefs.h. */
2823: _ACEOF
2824: cat confdefs.h >>conftest.$ac_ext
2825: cat >>conftest.$ac_ext <<_ACEOF
2826: /* end confdefs.h. */
2827: #ifndef __cplusplus
2828: typedef int foo_t;
2829: static $ac_kw foo_t static_foo () {return 0; }
2830: $ac_kw foo_t foo () {return 0; }
2831: #endif
1.1 paf 2832:
1.2 paf 2833: _ACEOF
2834: rm -f conftest.$ac_objext
2835: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2836: (eval $ac_compile) 2>&5
2837: ac_status=$?
2838: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839: (exit $ac_status); } &&
2840: { ac_try='test -s conftest.$ac_objext'
2841: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842: (eval $ac_try) 2>&5
2843: ac_status=$?
2844: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845: (exit $ac_status); }; }; then
1.1 paf 2846: ac_cv_c_inline=$ac_kw; break
2847: else
1.2 paf 2848: echo "$as_me: failed program was:" >&5
2849: sed 's/^/| /' conftest.$ac_ext >&5
2850:
1.1 paf 2851: fi
1.2 paf 2852: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 paf 2853: done
2854:
2855: fi
1.2 paf 2856: echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2857: echo "${ECHO_T}$ac_cv_c_inline" >&6
2858: case $ac_cv_c_inline in
1.1 paf 2859: inline | yes) ;;
1.2 paf 2860: no)
2861: cat >>confdefs.h <<\_ACEOF
2862: #define inline
2863: _ACEOF
1.1 paf 2864: ;;
1.2 paf 2865: *) cat >>confdefs.h <<_ACEOF
1.1 paf 2866: #define inline $ac_cv_c_inline
1.2 paf 2867: _ACEOF
1.1 paf 2868: ;;
2869: esac
2870:
2871:
1.2 paf 2872: if test -n "$ac_tool_prefix"; then
2873: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2874: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2875: echo "$as_me:$LINENO: checking for $ac_word" >&5
2876: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2877: if test "${ac_cv_prog_RANLIB+set}" = set; then
2878: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 2879: else
2880: if test -n "$RANLIB"; then
2881: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2882: else
1.2 paf 2883: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884: for as_dir in $PATH
2885: do
2886: IFS=$as_save_IFS
2887: test -z "$as_dir" && as_dir=.
2888: for ac_exec_ext in '' $ac_executable_extensions; do
2889: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2891: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892: break 2
2893: fi
2894: done
2895: done
2896:
1.1 paf 2897: fi
2898: fi
1.2 paf 2899: RANLIB=$ac_cv_prog_RANLIB
1.1 paf 2900: if test -n "$RANLIB"; then
1.2 paf 2901: echo "$as_me:$LINENO: result: $RANLIB" >&5
2902: echo "${ECHO_T}$RANLIB" >&6
1.1 paf 2903: else
1.2 paf 2904: echo "$as_me:$LINENO: result: no" >&5
2905: echo "${ECHO_T}no" >&6
1.1 paf 2906: fi
2907:
1.2 paf 2908: fi
2909: if test -z "$ac_cv_prog_RANLIB"; then
2910: ac_ct_RANLIB=$RANLIB
2911: # Extract the first word of "ranlib", so it can be a program name with args.
2912: set dummy ranlib; ac_word=$2
2913: echo "$as_me:$LINENO: checking for $ac_word" >&5
2914: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2915: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2916: echo $ECHO_N "(cached) $ECHO_C" >&6
2917: else
2918: if test -n "$ac_ct_RANLIB"; then
2919: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2920: else
2921: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922: for as_dir in $PATH
2923: do
2924: IFS=$as_save_IFS
2925: test -z "$as_dir" && as_dir=.
2926: for ac_exec_ext in '' $ac_executable_extensions; do
2927: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928: ac_cv_prog_ac_ct_RANLIB="ranlib"
2929: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930: break 2
2931: fi
2932: done
2933: done
1.1 paf 2934:
1.2 paf 2935: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2936: fi
2937: fi
2938: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2939: if test -n "$ac_ct_RANLIB"; then
2940: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2941: echo "${ECHO_T}$ac_ct_RANLIB" >&6
2942: else
2943: echo "$as_me:$LINENO: result: no" >&5
2944: echo "${ECHO_T}no" >&6
2945: fi
2946:
2947: RANLIB=$ac_ct_RANLIB
2948: else
2949: RANLIB="$ac_cv_prog_RANLIB"
2950: fi
2951:
2952:
2953: echo "$as_me:$LINENO: checking which extension is used for shared libraries" >&5
2954: echo $ECHO_N "checking which extension is used for shared libraries... $ECHO_C" >&6
2955: if test "${libltdl_cv_shlibext+set}" = set; then
2956: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 2957: else
2958: (
2959: last=
2960: for spec in $library_names_spec; do
2961: last="$spec"
2962: done
2963:
2964: echo "$last" | sed 's/\[.*\]//;s/^[^.]*//;s/\$.*$//;s/\.$//' > conftest
2965:
2966: )
2967: libltdl_cv_shlibext=`cat conftest`
2968: rm -f conftest
2969:
2970: fi
1.2 paf 2971: echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
2972: echo "${ECHO_T}$libltdl_cv_shlibext" >&6
2973: if test -n "$libltdl_cv_shlibext"; then
1.1 paf 2974:
1.2 paf 2975: cat >>confdefs.h <<_ACEOF
1.1 paf 2976: #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
1.2 paf 2977: _ACEOF
2978:
2979: fi
2980:
2981: echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
2982: echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
2983: if test "${libltdl_cv_shlibpath_var+set}" = set; then
2984: echo $ECHO_N "(cached) $ECHO_C" >&6
2985: else
2986: libltdl_cv_shlibpath_var="$shlibpath_var"
2987: fi
2988: echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
2989: echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
2990: if test -n "$libltdl_cv_shlibpath_var"; then
2991:
2992: cat >>confdefs.h <<_ACEOF
2993: #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
2994: _ACEOF
2995:
2996: fi
2997:
2998: echo "$as_me:$LINENO: checking for objdir" >&5
2999: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3000: if test "${libltdl_cv_objdir+set}" = set; then
3001: echo $ECHO_N "(cached) $ECHO_C" >&6
3002: else
3003: libltdl_cv_objdir="$objdir"
3004: fi
3005: echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
3006: echo "${ECHO_T}$libltdl_cv_objdir" >&6
3007: test -z "$libltdl_cv_objdir" && libltdl_cv_objdir=".libs"
3008:
3009: cat >>confdefs.h <<_ACEOF
3010: #define LTDL_OBJDIR "$libltdl_cv_objdir/"
3011: _ACEOF
3012:
3013:
3014: ac_ext=c
3015: ac_cpp='$CPP $CPPFLAGS'
3016: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3017: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3018: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3019: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3020: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3021: # On Suns, sometimes $CPP names a directory.
3022: if test -n "$CPP" && test -d "$CPP"; then
3023: CPP=
3024: fi
3025: if test -z "$CPP"; then
3026: if test "${ac_cv_prog_CPP+set}" = set; then
3027: echo $ECHO_N "(cached) $ECHO_C" >&6
3028: else
3029: # Double quotes because CPP needs to be expanded
3030: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3031: do
3032: ac_preproc_ok=false
3033: for ac_c_preproc_warn_flag in '' yes
3034: do
3035: # Use a header file that comes with gcc, so configuring glibc
3036: # with a fresh cross-compiler works.
3037: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3038: # <limits.h> exists even on freestanding compilers.
3039: # On the NeXT, cc -E runs the code through the compiler's parser,
3040: # not just through cpp. "Syntax error" is here to catch this case.
3041: cat >conftest.$ac_ext <<_ACEOF
3042: #line $LINENO "configure"
3043: /* confdefs.h. */
3044: _ACEOF
3045: cat confdefs.h >>conftest.$ac_ext
3046: cat >>conftest.$ac_ext <<_ACEOF
3047: /* end confdefs.h. */
3048: #ifdef __STDC__
3049: # include <limits.h>
3050: #else
3051: # include <assert.h>
3052: #endif
3053: Syntax error
3054: _ACEOF
3055: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3056: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3057: ac_status=$?
3058: grep -v '^ *+' conftest.er1 >conftest.err
3059: rm -f conftest.er1
3060: cat conftest.err >&5
3061: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062: (exit $ac_status); } >/dev/null; then
3063: if test -s conftest.err; then
3064: ac_cpp_err=$ac_c_preproc_warn_flag
3065: else
3066: ac_cpp_err=
3067: fi
3068: else
3069: ac_cpp_err=yes
3070: fi
3071: if test -z "$ac_cpp_err"; then
3072: :
3073: else
3074: echo "$as_me: failed program was:" >&5
3075: sed 's/^/| /' conftest.$ac_ext >&5
1.1 paf 3076:
1.2 paf 3077: # Broken: fails on valid input.
3078: continue
1.1 paf 3079: fi
1.2 paf 3080: rm -f conftest.err conftest.$ac_ext
1.1 paf 3081:
1.2 paf 3082: # OK, works on sane cases. Now check whether non-existent headers
3083: # can be detected and how.
3084: cat >conftest.$ac_ext <<_ACEOF
3085: #line $LINENO "configure"
3086: /* confdefs.h. */
3087: _ACEOF
3088: cat confdefs.h >>conftest.$ac_ext
3089: cat >>conftest.$ac_ext <<_ACEOF
3090: /* end confdefs.h. */
3091: #include <ac_nonexistent.h>
3092: _ACEOF
3093: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3094: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3095: ac_status=$?
3096: grep -v '^ *+' conftest.er1 >conftest.err
3097: rm -f conftest.er1
3098: cat conftest.err >&5
3099: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100: (exit $ac_status); } >/dev/null; then
3101: if test -s conftest.err; then
3102: ac_cpp_err=$ac_c_preproc_warn_flag
3103: else
3104: ac_cpp_err=
3105: fi
1.1 paf 3106: else
1.2 paf 3107: ac_cpp_err=yes
1.1 paf 3108: fi
1.2 paf 3109: if test -z "$ac_cpp_err"; then
3110: # Broken: success on invalid input.
3111: continue
3112: else
3113: echo "$as_me: failed program was:" >&5
3114: sed 's/^/| /' conftest.$ac_ext >&5
1.1 paf 3115:
1.2 paf 3116: # Passes both tests.
3117: ac_preproc_ok=:
3118: break
1.1 paf 3119: fi
1.2 paf 3120: rm -f conftest.err conftest.$ac_ext
1.1 paf 3121:
1.2 paf 3122: done
3123: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3124: rm -f conftest.err conftest.$ac_ext
3125: if $ac_preproc_ok; then
3126: break
1.1 paf 3127: fi
3128:
1.2 paf 3129: done
3130: ac_cv_prog_CPP=$CPP
1.1 paf 3131:
3132: fi
1.2 paf 3133: CPP=$ac_cv_prog_CPP
1.1 paf 3134: else
1.2 paf 3135: ac_cv_prog_CPP=$CPP
3136: fi
3137: echo "$as_me:$LINENO: result: $CPP" >&5
3138: echo "${ECHO_T}$CPP" >&6
3139: ac_preproc_ok=false
3140: for ac_c_preproc_warn_flag in '' yes
3141: do
3142: # Use a header file that comes with gcc, so configuring glibc
3143: # with a fresh cross-compiler works.
3144: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3145: # <limits.h> exists even on freestanding compilers.
1.1 paf 3146: # On the NeXT, cc -E runs the code through the compiler's parser,
1.2 paf 3147: # not just through cpp. "Syntax error" is here to catch this case.
3148: cat >conftest.$ac_ext <<_ACEOF
3149: #line $LINENO "configure"
3150: /* confdefs.h. */
3151: _ACEOF
3152: cat confdefs.h >>conftest.$ac_ext
3153: cat >>conftest.$ac_ext <<_ACEOF
3154: /* end confdefs.h. */
3155: #ifdef __STDC__
3156: # include <limits.h>
3157: #else
3158: # include <assert.h>
3159: #endif
3160: Syntax error
3161: _ACEOF
3162: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3163: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3164: ac_status=$?
3165: grep -v '^ *+' conftest.er1 >conftest.err
3166: rm -f conftest.er1
3167: cat conftest.err >&5
3168: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169: (exit $ac_status); } >/dev/null; then
3170: if test -s conftest.err; then
3171: ac_cpp_err=$ac_c_preproc_warn_flag
3172: else
3173: ac_cpp_err=
3174: fi
1.1 paf 3175: else
1.2 paf 3176: ac_cpp_err=yes
3177: fi
3178: if test -z "$ac_cpp_err"; then
1.1 paf 3179: :
3180: else
1.2 paf 3181: echo "$as_me: failed program was:" >&5
3182: sed 's/^/| /' conftest.$ac_ext >&5
3183:
3184: # Broken: fails on valid input.
3185: continue
3186: fi
3187: rm -f conftest.err conftest.$ac_ext
3188:
3189: # OK, works on sane cases. Now check whether non-existent headers
3190: # can be detected and how.
3191: cat >conftest.$ac_ext <<_ACEOF
3192: #line $LINENO "configure"
3193: /* confdefs.h. */
3194: _ACEOF
3195: cat confdefs.h >>conftest.$ac_ext
3196: cat >>conftest.$ac_ext <<_ACEOF
3197: /* end confdefs.h. */
3198: #include <ac_nonexistent.h>
3199: _ACEOF
3200: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3201: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3202: ac_status=$?
3203: grep -v '^ *+' conftest.er1 >conftest.err
3204: rm -f conftest.er1
3205: cat conftest.err >&5
3206: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207: (exit $ac_status); } >/dev/null; then
3208: if test -s conftest.err; then
3209: ac_cpp_err=$ac_c_preproc_warn_flag
3210: else
3211: ac_cpp_err=
3212: fi
1.1 paf 3213: else
1.2 paf 3214: ac_cpp_err=yes
1.1 paf 3215: fi
1.2 paf 3216: if test -z "$ac_cpp_err"; then
3217: # Broken: success on invalid input.
3218: continue
3219: else
3220: echo "$as_me: failed program was:" >&5
3221: sed 's/^/| /' conftest.$ac_ext >&5
3222:
3223: # Passes both tests.
3224: ac_preproc_ok=:
3225: break
1.1 paf 3226: fi
1.2 paf 3227: rm -f conftest.err conftest.$ac_ext
3228:
3229: done
3230: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3231: rm -f conftest.err conftest.$ac_ext
3232: if $ac_preproc_ok; then
3233: :
1.1 paf 3234: else
1.2 paf 3235: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3236: See \`config.log' for more details." >&5
3237: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3238: See \`config.log' for more details." >&2;}
3239: { (exit 1); exit 1; }; }
1.1 paf 3240: fi
3241:
1.2 paf 3242: ac_ext=c
3243: ac_cpp='$CPP $CPPFLAGS'
3244: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247:
3248:
3249: echo "$as_me:$LINENO: checking for egrep" >&5
3250: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3251: if test "${ac_cv_prog_egrep+set}" = set; then
3252: echo $ECHO_N "(cached) $ECHO_C" >&6
3253: else
3254: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3255: then ac_cv_prog_egrep='grep -E'
3256: else ac_cv_prog_egrep='egrep'
3257: fi
3258: fi
3259: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3260: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3261: EGREP=$ac_cv_prog_egrep
3262:
3263:
3264: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3265: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3266: if test "${ac_cv_header_stdc+set}" = set; then
3267: echo $ECHO_N "(cached) $ECHO_C" >&6
3268: else
3269: cat >conftest.$ac_ext <<_ACEOF
3270: #line $LINENO "configure"
3271: /* confdefs.h. */
3272: _ACEOF
3273: cat confdefs.h >>conftest.$ac_ext
3274: cat >>conftest.$ac_ext <<_ACEOF
3275: /* end confdefs.h. */
1.1 paf 3276: #include <stdlib.h>
3277: #include <stdarg.h>
3278: #include <string.h>
3279: #include <float.h>
1.2 paf 3280:
3281: int
3282: main ()
3283: {
3284:
3285: ;
3286: return 0;
3287: }
3288: _ACEOF
3289: rm -f conftest.$ac_objext
3290: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3291: (eval $ac_compile) 2>&5
3292: ac_status=$?
3293: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294: (exit $ac_status); } &&
3295: { ac_try='test -s conftest.$ac_objext'
3296: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297: (eval $ac_try) 2>&5
3298: ac_status=$?
3299: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300: (exit $ac_status); }; }; then
1.1 paf 3301: ac_cv_header_stdc=yes
3302: else
1.2 paf 3303: echo "$as_me: failed program was:" >&5
3304: sed 's/^/| /' conftest.$ac_ext >&5
3305:
3306: ac_cv_header_stdc=no
1.1 paf 3307: fi
1.2 paf 3308: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 paf 3309:
3310: if test $ac_cv_header_stdc = yes; then
3311: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.2 paf 3312: cat >conftest.$ac_ext <<_ACEOF
3313: #line $LINENO "configure"
3314: /* confdefs.h. */
3315: _ACEOF
3316: cat confdefs.h >>conftest.$ac_ext
3317: cat >>conftest.$ac_ext <<_ACEOF
3318: /* end confdefs.h. */
1.1 paf 3319: #include <string.h>
1.2 paf 3320:
3321: _ACEOF
1.1 paf 3322: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.2 paf 3323: $EGREP "memchr" >/dev/null 2>&1; then
1.1 paf 3324: :
3325: else
3326: ac_cv_header_stdc=no
3327: fi
3328: rm -f conftest*
3329:
3330: fi
3331:
3332: if test $ac_cv_header_stdc = yes; then
3333: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.2 paf 3334: cat >conftest.$ac_ext <<_ACEOF
3335: #line $LINENO "configure"
3336: /* confdefs.h. */
3337: _ACEOF
3338: cat confdefs.h >>conftest.$ac_ext
3339: cat >>conftest.$ac_ext <<_ACEOF
3340: /* end confdefs.h. */
1.1 paf 3341: #include <stdlib.h>
1.2 paf 3342:
3343: _ACEOF
1.1 paf 3344: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.2 paf 3345: $EGREP "free" >/dev/null 2>&1; then
1.1 paf 3346: :
3347: else
3348: ac_cv_header_stdc=no
3349: fi
3350: rm -f conftest*
3351:
3352: fi
3353:
3354: if test $ac_cv_header_stdc = yes; then
3355: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.2 paf 3356: if test "$cross_compiling" = yes; then
1.1 paf 3357: :
3358: else
1.2 paf 3359: cat >conftest.$ac_ext <<_ACEOF
3360: #line $LINENO "configure"
3361: /* confdefs.h. */
3362: _ACEOF
3363: cat confdefs.h >>conftest.$ac_ext
3364: cat >>conftest.$ac_ext <<_ACEOF
3365: /* end confdefs.h. */
1.1 paf 3366: #include <ctype.h>
1.2 paf 3367: #if ((' ' & 0x0FF) == 0x020)
3368: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3369: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3370: #else
3371: # define ISLOWER(c) \
3372: (('a' <= (c) && (c) <= 'i') \
3373: || ('j' <= (c) && (c) <= 'r') \
3374: || ('s' <= (c) && (c) <= 'z'))
3375: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3376: #endif
3377:
1.1 paf 3378: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.2 paf 3379: int
3380: main ()
3381: {
3382: int i;
3383: for (i = 0; i < 256; i++)
3384: if (XOR (islower (i), ISLOWER (i))
3385: || toupper (i) != TOUPPER (i))
3386: exit(2);
3387: exit (0);
3388: }
3389: _ACEOF
3390: rm -f conftest$ac_exeext
3391: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3392: (eval $ac_link) 2>&5
3393: ac_status=$?
3394: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3396: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397: (eval $ac_try) 2>&5
3398: ac_status=$?
3399: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400: (exit $ac_status); }; }; then
1.1 paf 3401: :
3402: else
1.2 paf 3403: echo "$as_me: program exited with status $ac_status" >&5
3404: echo "$as_me: failed program was:" >&5
3405: sed 's/^/| /' conftest.$ac_ext >&5
3406:
3407: ( exit $ac_status )
3408: ac_cv_header_stdc=no
1.1 paf 3409: fi
1.2 paf 3410: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 paf 3411: fi
3412: fi
3413: fi
1.2 paf 3414: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3415: echo "${ECHO_T}$ac_cv_header_stdc" >&6
3416: if test $ac_cv_header_stdc = yes; then
1.1 paf 3417:
1.2 paf 3418: cat >>confdefs.h <<\_ACEOF
1.1 paf 3419: #define STDC_HEADERS 1
1.2 paf 3420: _ACEOF
3421:
3422: fi
3423:
3424: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3425:
3426:
3427:
3428:
3429:
3430:
3431:
3432:
3433:
3434: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3435: inttypes.h stdint.h unistd.h
3436: do
3437: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3438: echo "$as_me:$LINENO: checking for $ac_header" >&5
3439: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3440: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3441: echo $ECHO_N "(cached) $ECHO_C" >&6
3442: else
3443: cat >conftest.$ac_ext <<_ACEOF
3444: #line $LINENO "configure"
3445: /* confdefs.h. */
3446: _ACEOF
3447: cat confdefs.h >>conftest.$ac_ext
3448: cat >>conftest.$ac_ext <<_ACEOF
3449: /* end confdefs.h. */
3450: $ac_includes_default
3451:
3452: #include <$ac_header>
3453: _ACEOF
3454: rm -f conftest.$ac_objext
3455: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3456: (eval $ac_compile) 2>&5
3457: ac_status=$?
3458: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459: (exit $ac_status); } &&
3460: { ac_try='test -s conftest.$ac_objext'
3461: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462: (eval $ac_try) 2>&5
3463: ac_status=$?
3464: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465: (exit $ac_status); }; }; then
3466: eval "$as_ac_Header=yes"
3467: else
3468: echo "$as_me: failed program was:" >&5
3469: sed 's/^/| /' conftest.$ac_ext >&5
3470:
3471: eval "$as_ac_Header=no"
3472: fi
3473: rm -f conftest.$ac_objext conftest.$ac_ext
3474: fi
3475: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3476: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3477: if test `eval echo '${'$as_ac_Header'}'` = yes; then
3478: cat >>confdefs.h <<_ACEOF
3479: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3480: _ACEOF
1.1 paf 3481:
3482: fi
3483:
1.2 paf 3484: done
3485:
3486:
3487:
3488:
3489:
3490:
3491:
3492:
3493:
3494:
3495: for ac_header in malloc.h memory.h stdlib.h stdio.h ctype.h dlfcn.h dl.h dld.h
1.1 paf 3496: do
1.2 paf 3497: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3498: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3499: echo "$as_me:$LINENO: checking for $ac_header" >&5
3500: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3501: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3502: echo $ECHO_N "(cached) $ECHO_C" >&6
3503: fi
3504: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3505: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3506: else
3507: # Is the header compilable?
3508: echo "$as_me:$LINENO: checking $ac_header usability" >&5
3509: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3510: cat >conftest.$ac_ext <<_ACEOF
3511: #line $LINENO "configure"
3512: /* confdefs.h. */
3513: _ACEOF
3514: cat confdefs.h >>conftest.$ac_ext
3515: cat >>conftest.$ac_ext <<_ACEOF
3516: /* end confdefs.h. */
3517: $ac_includes_default
3518: #include <$ac_header>
3519: _ACEOF
3520: rm -f conftest.$ac_objext
3521: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3522: (eval $ac_compile) 2>&5
3523: ac_status=$?
3524: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525: (exit $ac_status); } &&
3526: { ac_try='test -s conftest.$ac_objext'
3527: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528: (eval $ac_try) 2>&5
3529: ac_status=$?
3530: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531: (exit $ac_status); }; }; then
3532: ac_header_compiler=yes
3533: else
3534: echo "$as_me: failed program was:" >&5
3535: sed 's/^/| /' conftest.$ac_ext >&5
3536:
3537: ac_header_compiler=no
3538: fi
3539: rm -f conftest.$ac_objext conftest.$ac_ext
3540: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3541: echo "${ECHO_T}$ac_header_compiler" >&6
3542:
3543: # Is the header present?
3544: echo "$as_me:$LINENO: checking $ac_header presence" >&5
3545: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3546: cat >conftest.$ac_ext <<_ACEOF
3547: #line $LINENO "configure"
3548: /* confdefs.h. */
3549: _ACEOF
3550: cat confdefs.h >>conftest.$ac_ext
3551: cat >>conftest.$ac_ext <<_ACEOF
3552: /* end confdefs.h. */
3553: #include <$ac_header>
3554: _ACEOF
3555: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3556: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3557: ac_status=$?
3558: grep -v '^ *+' conftest.er1 >conftest.err
3559: rm -f conftest.er1
3560: cat conftest.err >&5
3561: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562: (exit $ac_status); } >/dev/null; then
3563: if test -s conftest.err; then
3564: ac_cpp_err=$ac_c_preproc_warn_flag
3565: else
3566: ac_cpp_err=
3567: fi
3568: else
3569: ac_cpp_err=yes
3570: fi
3571: if test -z "$ac_cpp_err"; then
3572: ac_header_preproc=yes
1.1 paf 3573: else
1.2 paf 3574: echo "$as_me: failed program was:" >&5
3575: sed 's/^/| /' conftest.$ac_ext >&5
3576:
3577: ac_header_preproc=no
3578: fi
3579: rm -f conftest.err conftest.$ac_ext
3580: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3581: echo "${ECHO_T}$ac_header_preproc" >&6
3582:
3583: # So? What about this header?
3584: case $ac_header_compiler:$ac_header_preproc in
3585: yes:no )
3586: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3587: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3588: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3589: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3590: (
3591: cat <<\_ASBOX
3592: ## ------------------------------------ ##
3593: ## Report this to bug-autoconf@gnu.org. ##
3594: ## ------------------------------------ ##
3595: _ASBOX
3596: ) |
3597: sed "s/^/$as_me: WARNING: /" >&2
3598: ;;
3599: no:yes )
3600: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3601: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3602: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3603: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3604: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3605: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3606: (
3607: cat <<\_ASBOX
3608: ## ------------------------------------ ##
3609: ## Report this to bug-autoconf@gnu.org. ##
3610: ## ------------------------------------ ##
3611: _ASBOX
3612: ) |
3613: sed "s/^/$as_me: WARNING: /" >&2
3614: ;;
3615: esac
3616: echo "$as_me:$LINENO: checking for $ac_header" >&5
3617: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3618: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3619: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 3620: else
1.2 paf 3621: eval "$as_ac_Header=$ac_header_preproc"
1.1 paf 3622: fi
1.2 paf 3623: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3624: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3625:
1.1 paf 3626: fi
1.2 paf 3627: if test `eval echo '${'$as_ac_Header'}'` = yes; then
3628: cat >>confdefs.h <<_ACEOF
3629: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3630: _ACEOF
3631:
1.1 paf 3632: fi
1.2 paf 3633:
1.1 paf 3634: done
3635:
1.2 paf 3636:
3637:
3638: for ac_header in string.h strings.h
1.1 paf 3639: do
1.2 paf 3640: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3641: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3642: echo "$as_me:$LINENO: checking for $ac_header" >&5
3643: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3644: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3645: echo $ECHO_N "(cached) $ECHO_C" >&6
3646: fi
3647: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3648: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3649: else
3650: # Is the header compilable?
3651: echo "$as_me:$LINENO: checking $ac_header usability" >&5
3652: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3653: cat >conftest.$ac_ext <<_ACEOF
3654: #line $LINENO "configure"
3655: /* confdefs.h. */
3656: _ACEOF
3657: cat confdefs.h >>conftest.$ac_ext
3658: cat >>conftest.$ac_ext <<_ACEOF
3659: /* end confdefs.h. */
3660: $ac_includes_default
3661: #include <$ac_header>
3662: _ACEOF
3663: rm -f conftest.$ac_objext
3664: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3665: (eval $ac_compile) 2>&5
3666: ac_status=$?
3667: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668: (exit $ac_status); } &&
3669: { ac_try='test -s conftest.$ac_objext'
3670: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671: (eval $ac_try) 2>&5
3672: ac_status=$?
3673: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674: (exit $ac_status); }; }; then
3675: ac_header_compiler=yes
3676: else
3677: echo "$as_me: failed program was:" >&5
3678: sed 's/^/| /' conftest.$ac_ext >&5
3679:
3680: ac_header_compiler=no
3681: fi
3682: rm -f conftest.$ac_objext conftest.$ac_ext
3683: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3684: echo "${ECHO_T}$ac_header_compiler" >&6
3685:
3686: # Is the header present?
3687: echo "$as_me:$LINENO: checking $ac_header presence" >&5
3688: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3689: cat >conftest.$ac_ext <<_ACEOF
3690: #line $LINENO "configure"
3691: /* confdefs.h. */
3692: _ACEOF
3693: cat confdefs.h >>conftest.$ac_ext
3694: cat >>conftest.$ac_ext <<_ACEOF
3695: /* end confdefs.h. */
3696: #include <$ac_header>
3697: _ACEOF
3698: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3699: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3700: ac_status=$?
3701: grep -v '^ *+' conftest.er1 >conftest.err
3702: rm -f conftest.er1
3703: cat conftest.err >&5
3704: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705: (exit $ac_status); } >/dev/null; then
3706: if test -s conftest.err; then
3707: ac_cpp_err=$ac_c_preproc_warn_flag
3708: else
3709: ac_cpp_err=
3710: fi
3711: else
3712: ac_cpp_err=yes
3713: fi
3714: if test -z "$ac_cpp_err"; then
3715: ac_header_preproc=yes
1.1 paf 3716: else
1.2 paf 3717: echo "$as_me: failed program was:" >&5
3718: sed 's/^/| /' conftest.$ac_ext >&5
3719:
3720: ac_header_preproc=no
3721: fi
3722: rm -f conftest.err conftest.$ac_ext
3723: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3724: echo "${ECHO_T}$ac_header_preproc" >&6
3725:
3726: # So? What about this header?
3727: case $ac_header_compiler:$ac_header_preproc in
3728: yes:no )
3729: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3730: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3731: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3732: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3733: (
3734: cat <<\_ASBOX
3735: ## ------------------------------------ ##
3736: ## Report this to bug-autoconf@gnu.org. ##
3737: ## ------------------------------------ ##
3738: _ASBOX
3739: ) |
3740: sed "s/^/$as_me: WARNING: /" >&2
3741: ;;
3742: no:yes )
3743: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3744: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3745: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3746: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3747: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3748: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3749: (
3750: cat <<\_ASBOX
3751: ## ------------------------------------ ##
3752: ## Report this to bug-autoconf@gnu.org. ##
3753: ## ------------------------------------ ##
3754: _ASBOX
3755: ) |
3756: sed "s/^/$as_me: WARNING: /" >&2
3757: ;;
3758: esac
3759: echo "$as_me:$LINENO: checking for $ac_header" >&5
3760: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3761: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3762: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 3763: else
1.2 paf 3764: eval "$as_ac_Header=$ac_header_preproc"
1.1 paf 3765: fi
1.2 paf 3766: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3767: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3768:
1.1 paf 3769: fi
1.2 paf 3770: if test `eval echo '${'$as_ac_Header'}'` = yes; then
3771: cat >>confdefs.h <<_ACEOF
3772: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3773: _ACEOF
1.1 paf 3774: break
3775: fi
1.2 paf 3776:
1.1 paf 3777: done
3778:
1.2 paf 3779:
3780:
1.1 paf 3781: for ac_func in strchr index
3782: do
1.2 paf 3783: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3784: echo "$as_me:$LINENO: checking for $ac_func" >&5
3785: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3786: if eval "test \"\${$as_ac_var+set}\" = set"; then
3787: echo $ECHO_N "(cached) $ECHO_C" >&6
3788: else
3789: cat >conftest.$ac_ext <<_ACEOF
3790: #line $LINENO "configure"
3791: /* confdefs.h. */
3792: _ACEOF
3793: cat confdefs.h >>conftest.$ac_ext
3794: cat >>conftest.$ac_ext <<_ACEOF
3795: /* end confdefs.h. */
1.1 paf 3796: /* System header to define __stub macros and hopefully few prototypes,
1.2 paf 3797: which can conflict with char $ac_func (); below.
3798: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3799: <limits.h> exists even on freestanding compilers. */
3800: #ifdef __STDC__
3801: # include <limits.h>
3802: #else
3803: # include <assert.h>
3804: #endif
1.1 paf 3805: /* Override any gcc2 internal prototype to avoid an error. */
1.2 paf 3806: #ifdef __cplusplus
3807: extern "C"
3808: {
3809: #endif
1.1 paf 3810: /* We use char because int might match the return type of a gcc2
1.2 paf 3811: builtin and then its argument prototype would still apply. */
3812: char $ac_func ();
1.1 paf 3813: /* The GNU C library defines this for functions which it implements
3814: to always fail with ENOSYS. Some functions are actually named
3815: something starting with __ and the normal name is an alias. */
3816: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3817: choke me
3818: #else
1.2 paf 3819: char (*f) () = $ac_func;
3820: #endif
3821: #ifdef __cplusplus
3822: }
1.1 paf 3823: #endif
3824:
1.2 paf 3825: int
3826: main ()
3827: {
3828: return f != $ac_func;
3829: ;
3830: return 0;
3831: }
3832: _ACEOF
3833: rm -f conftest.$ac_objext conftest$ac_exeext
3834: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3835: (eval $ac_link) 2>&5
3836: ac_status=$?
3837: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838: (exit $ac_status); } &&
3839: { ac_try='test -s conftest$ac_exeext'
3840: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841: (eval $ac_try) 2>&5
3842: ac_status=$?
3843: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844: (exit $ac_status); }; }; then
3845: eval "$as_ac_var=yes"
3846: else
3847: echo "$as_me: failed program was:" >&5
3848: sed 's/^/| /' conftest.$ac_ext >&5
3849:
3850: eval "$as_ac_var=no"
3851: fi
3852: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3853: fi
3854: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3855: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3856: if test `eval echo '${'$as_ac_var'}'` = yes; then
3857: cat >>confdefs.h <<_ACEOF
3858: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3859: _ACEOF
1.1 paf 3860: break
3861: fi
3862: done
3863:
1.2 paf 3864:
3865:
1.1 paf 3866: for ac_func in strrchr rindex
3867: do
1.2 paf 3868: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3869: echo "$as_me:$LINENO: checking for $ac_func" >&5
3870: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3871: if eval "test \"\${$as_ac_var+set}\" = set"; then
3872: echo $ECHO_N "(cached) $ECHO_C" >&6
3873: else
3874: cat >conftest.$ac_ext <<_ACEOF
3875: #line $LINENO "configure"
3876: /* confdefs.h. */
3877: _ACEOF
3878: cat confdefs.h >>conftest.$ac_ext
3879: cat >>conftest.$ac_ext <<_ACEOF
3880: /* end confdefs.h. */
1.1 paf 3881: /* System header to define __stub macros and hopefully few prototypes,
1.2 paf 3882: which can conflict with char $ac_func (); below.
3883: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3884: <limits.h> exists even on freestanding compilers. */
3885: #ifdef __STDC__
3886: # include <limits.h>
3887: #else
3888: # include <assert.h>
3889: #endif
1.1 paf 3890: /* Override any gcc2 internal prototype to avoid an error. */
1.2 paf 3891: #ifdef __cplusplus
3892: extern "C"
3893: {
3894: #endif
1.1 paf 3895: /* We use char because int might match the return type of a gcc2
1.2 paf 3896: builtin and then its argument prototype would still apply. */
3897: char $ac_func ();
1.1 paf 3898: /* The GNU C library defines this for functions which it implements
3899: to always fail with ENOSYS. Some functions are actually named
3900: something starting with __ and the normal name is an alias. */
3901: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3902: choke me
3903: #else
1.2 paf 3904: char (*f) () = $ac_func;
3905: #endif
3906: #ifdef __cplusplus
3907: }
1.1 paf 3908: #endif
3909:
1.2 paf 3910: int
3911: main ()
3912: {
3913: return f != $ac_func;
3914: ;
3915: return 0;
3916: }
3917: _ACEOF
3918: rm -f conftest.$ac_objext conftest$ac_exeext
3919: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3920: (eval $ac_link) 2>&5
3921: ac_status=$?
3922: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923: (exit $ac_status); } &&
3924: { ac_try='test -s conftest$ac_exeext'
3925: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926: (eval $ac_try) 2>&5
3927: ac_status=$?
3928: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929: (exit $ac_status); }; }; then
3930: eval "$as_ac_var=yes"
3931: else
3932: echo "$as_me: failed program was:" >&5
3933: sed 's/^/| /' conftest.$ac_ext >&5
3934:
3935: eval "$as_ac_var=no"
3936: fi
3937: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3938: fi
3939: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3940: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3941: if test `eval echo '${'$as_ac_var'}'` = yes; then
3942: cat >>confdefs.h <<_ACEOF
3943: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3944: _ACEOF
1.1 paf 3945: break
3946: fi
3947: done
3948:
3949:
1.2 paf 3950: echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
3951: echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
3952: if test "${libltdl_cv_preloaded_symbols+set}" = set; then
3953: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 3954: else
3955: if test -n "$global_symbol_pipe"; then
3956: libltdl_cv_preloaded_symbols=yes
3957: else
3958: libltdl_cv_preloaded_symbols=no
3959: fi
3960:
3961: fi
1.2 paf 3962: echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
3963: echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
3964: if test x"$libltdl_cv_preloaded_symbols" = x"yes"; then
1.1 paf 3965:
1.2 paf 3966: cat >>confdefs.h <<\_ACEOF
1.1 paf 3967: #define HAVE_PRELOADED_SYMBOLS 1
1.2 paf 3968: _ACEOF
1.1 paf 3969:
3970: fi
3971:
3972: LIBADD_DL=
1.2 paf 3973: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3974: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3975: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3976: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 3977: else
1.2 paf 3978: ac_check_lib_save_LIBS=$LIBS
1.1 paf 3979: LIBS="-ldl $LIBS"
1.2 paf 3980: cat >conftest.$ac_ext <<_ACEOF
3981: #line $LINENO "configure"
3982: /* confdefs.h. */
3983: _ACEOF
3984: cat confdefs.h >>conftest.$ac_ext
3985: cat >>conftest.$ac_ext <<_ACEOF
3986: /* end confdefs.h. */
3987:
1.1 paf 3988: /* Override any gcc2 internal prototype to avoid an error. */
1.2 paf 3989: #ifdef __cplusplus
3990: extern "C"
3991: #endif
1.1 paf 3992: /* We use char because int might match the return type of a gcc2
1.2 paf 3993: builtin and then its argument prototype would still apply. */
3994: char dlopen ();
3995: int
3996: main ()
3997: {
3998: dlopen ();
3999: ;
4000: return 0;
4001: }
4002: _ACEOF
4003: rm -f conftest.$ac_objext conftest$ac_exeext
4004: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4005: (eval $ac_link) 2>&5
4006: ac_status=$?
4007: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008: (exit $ac_status); } &&
4009: { ac_try='test -s conftest$ac_exeext'
4010: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011: (eval $ac_try) 2>&5
4012: ac_status=$?
4013: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014: (exit $ac_status); }; }; then
4015: ac_cv_lib_dl_dlopen=yes
4016: else
4017: echo "$as_me: failed program was:" >&5
4018: sed 's/^/| /' conftest.$ac_ext >&5
4019:
4020: ac_cv_lib_dl_dlopen=no
4021: fi
4022: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4023: LIBS=$ac_check_lib_save_LIBS
4024: fi
4025: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4026: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4027: if test $ac_cv_lib_dl_dlopen = yes; then
4028: cat >>confdefs.h <<\_ACEOF
1.1 paf 4029: #define HAVE_LIBDL 1
1.2 paf 4030: _ACEOF
1.1 paf 4031: LIBADD_DL="-ldl"
4032: else
1.2 paf 4033: echo "$as_me:$LINENO: checking for dlopen" >&5
4034: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
4035: if test "${ac_cv_func_dlopen+set}" = set; then
4036: echo $ECHO_N "(cached) $ECHO_C" >&6
4037: else
4038: cat >conftest.$ac_ext <<_ACEOF
4039: #line $LINENO "configure"
4040: /* confdefs.h. */
4041: _ACEOF
4042: cat confdefs.h >>conftest.$ac_ext
4043: cat >>conftest.$ac_ext <<_ACEOF
4044: /* end confdefs.h. */
1.1 paf 4045: /* System header to define __stub macros and hopefully few prototypes,
1.2 paf 4046: which can conflict with char dlopen (); below.
4047: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4048: <limits.h> exists even on freestanding compilers. */
4049: #ifdef __STDC__
4050: # include <limits.h>
4051: #else
4052: # include <assert.h>
4053: #endif
1.1 paf 4054: /* Override any gcc2 internal prototype to avoid an error. */
1.2 paf 4055: #ifdef __cplusplus
4056: extern "C"
4057: {
4058: #endif
1.1 paf 4059: /* We use char because int might match the return type of a gcc2
1.2 paf 4060: builtin and then its argument prototype would still apply. */
4061: char dlopen ();
1.1 paf 4062: /* The GNU C library defines this for functions which it implements
4063: to always fail with ENOSYS. Some functions are actually named
4064: something starting with __ and the normal name is an alias. */
4065: #if defined (__stub_dlopen) || defined (__stub___dlopen)
4066: choke me
4067: #else
1.2 paf 4068: char (*f) () = dlopen;
4069: #endif
4070: #ifdef __cplusplus
4071: }
1.1 paf 4072: #endif
4073:
1.2 paf 4074: int
4075: main ()
4076: {
4077: return f != dlopen;
4078: ;
4079: return 0;
4080: }
4081: _ACEOF
4082: rm -f conftest.$ac_objext conftest$ac_exeext
4083: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4084: (eval $ac_link) 2>&5
4085: ac_status=$?
4086: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087: (exit $ac_status); } &&
4088: { ac_try='test -s conftest$ac_exeext'
4089: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090: (eval $ac_try) 2>&5
4091: ac_status=$?
4092: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093: (exit $ac_status); }; }; then
4094: ac_cv_func_dlopen=yes
4095: else
4096: echo "$as_me: failed program was:" >&5
4097: sed 's/^/| /' conftest.$ac_ext >&5
4098:
4099: ac_cv_func_dlopen=no
4100: fi
4101: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4102: fi
4103: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
4104: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
4105: if test $ac_cv_func_dlopen = yes; then
4106: cat >>confdefs.h <<\_ACEOF
1.1 paf 4107: #define HAVE_LIBDL 1
1.2 paf 4108: _ACEOF
1.1 paf 4109:
4110: fi
4111:
4112: fi
4113:
1.2 paf 4114: echo "$as_me:$LINENO: checking for shl_load" >&5
4115: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
4116: if test "${ac_cv_func_shl_load+set}" = set; then
4117: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 4118: else
1.2 paf 4119: cat >conftest.$ac_ext <<_ACEOF
4120: #line $LINENO "configure"
4121: /* confdefs.h. */
4122: _ACEOF
4123: cat confdefs.h >>conftest.$ac_ext
4124: cat >>conftest.$ac_ext <<_ACEOF
4125: /* end confdefs.h. */
1.1 paf 4126: /* System header to define __stub macros and hopefully few prototypes,
1.2 paf 4127: which can conflict with char shl_load (); below.
4128: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4129: <limits.h> exists even on freestanding compilers. */
4130: #ifdef __STDC__
4131: # include <limits.h>
4132: #else
4133: # include <assert.h>
4134: #endif
1.1 paf 4135: /* Override any gcc2 internal prototype to avoid an error. */
1.2 paf 4136: #ifdef __cplusplus
4137: extern "C"
4138: {
4139: #endif
1.1 paf 4140: /* We use char because int might match the return type of a gcc2
1.2 paf 4141: builtin and then its argument prototype would still apply. */
4142: char shl_load ();
1.1 paf 4143: /* The GNU C library defines this for functions which it implements
4144: to always fail with ENOSYS. Some functions are actually named
4145: something starting with __ and the normal name is an alias. */
4146: #if defined (__stub_shl_load) || defined (__stub___shl_load)
4147: choke me
4148: #else
1.2 paf 4149: char (*f) () = shl_load;
4150: #endif
4151: #ifdef __cplusplus
4152: }
1.1 paf 4153: #endif
4154:
1.2 paf 4155: int
4156: main ()
4157: {
4158: return f != shl_load;
4159: ;
4160: return 0;
4161: }
4162: _ACEOF
4163: rm -f conftest.$ac_objext conftest$ac_exeext
4164: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4165: (eval $ac_link) 2>&5
4166: ac_status=$?
4167: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168: (exit $ac_status); } &&
4169: { ac_try='test -s conftest$ac_exeext'
4170: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171: (eval $ac_try) 2>&5
4172: ac_status=$?
4173: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174: (exit $ac_status); }; }; then
4175: ac_cv_func_shl_load=yes
4176: else
4177: echo "$as_me: failed program was:" >&5
4178: sed 's/^/| /' conftest.$ac_ext >&5
4179:
4180: ac_cv_func_shl_load=no
4181: fi
4182: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4183: fi
4184: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
4185: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
4186: if test $ac_cv_func_shl_load = yes; then
4187: cat >>confdefs.h <<\_ACEOF
1.1 paf 4188: #define HAVE_SHL_LOAD 1
1.2 paf 4189: _ACEOF
1.1 paf 4190:
4191: else
1.2 paf 4192: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
4193: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
4194: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
4195: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 4196: else
1.2 paf 4197: ac_check_lib_save_LIBS=$LIBS
1.1 paf 4198: LIBS="-ldld $LIBS"
1.2 paf 4199: cat >conftest.$ac_ext <<_ACEOF
4200: #line $LINENO "configure"
4201: /* confdefs.h. */
4202: _ACEOF
4203: cat confdefs.h >>conftest.$ac_ext
4204: cat >>conftest.$ac_ext <<_ACEOF
4205: /* end confdefs.h. */
4206:
1.1 paf 4207: /* Override any gcc2 internal prototype to avoid an error. */
1.2 paf 4208: #ifdef __cplusplus
4209: extern "C"
4210: #endif
1.1 paf 4211: /* We use char because int might match the return type of a gcc2
1.2 paf 4212: builtin and then its argument prototype would still apply. */
4213: char shl_load ();
4214: int
4215: main ()
4216: {
4217: shl_load ();
4218: ;
4219: return 0;
4220: }
4221: _ACEOF
4222: rm -f conftest.$ac_objext conftest$ac_exeext
4223: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4224: (eval $ac_link) 2>&5
4225: ac_status=$?
4226: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227: (exit $ac_status); } &&
4228: { ac_try='test -s conftest$ac_exeext'
4229: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230: (eval $ac_try) 2>&5
4231: ac_status=$?
4232: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233: (exit $ac_status); }; }; then
4234: ac_cv_lib_dld_shl_load=yes
4235: else
4236: echo "$as_me: failed program was:" >&5
4237: sed 's/^/| /' conftest.$ac_ext >&5
4238:
4239: ac_cv_lib_dld_shl_load=no
4240: fi
4241: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4242: LIBS=$ac_check_lib_save_LIBS
4243: fi
4244: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
4245: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
4246: if test $ac_cv_lib_dld_shl_load = yes; then
4247: cat >>confdefs.h <<\_ACEOF
1.1 paf 4248: #define HAVE_SHL_LOAD 1
1.2 paf 4249: _ACEOF
1.1 paf 4250: LIBADD_DL="$LIBADD_DL -ldld"
4251: fi
4252:
4253: fi
4254:
1.2 paf 4255: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
4256: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
4257: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
4258: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 4259: else
1.2 paf 4260: ac_check_lib_save_LIBS=$LIBS
1.1 paf 4261: LIBS="-ldld $LIBS"
1.2 paf 4262: cat >conftest.$ac_ext <<_ACEOF
4263: #line $LINENO "configure"
4264: /* confdefs.h. */
4265: _ACEOF
4266: cat confdefs.h >>conftest.$ac_ext
4267: cat >>conftest.$ac_ext <<_ACEOF
4268: /* end confdefs.h. */
4269:
1.1 paf 4270: /* Override any gcc2 internal prototype to avoid an error. */
1.2 paf 4271: #ifdef __cplusplus
4272: extern "C"
4273: #endif
1.1 paf 4274: /* We use char because int might match the return type of a gcc2
1.2 paf 4275: builtin and then its argument prototype would still apply. */
4276: char dld_link ();
4277: int
4278: main ()
4279: {
4280: dld_link ();
4281: ;
4282: return 0;
4283: }
4284: _ACEOF
4285: rm -f conftest.$ac_objext conftest$ac_exeext
4286: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4287: (eval $ac_link) 2>&5
4288: ac_status=$?
4289: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290: (exit $ac_status); } &&
4291: { ac_try='test -s conftest$ac_exeext'
4292: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293: (eval $ac_try) 2>&5
4294: ac_status=$?
4295: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296: (exit $ac_status); }; }; then
4297: ac_cv_lib_dld_dld_link=yes
4298: else
4299: echo "$as_me: failed program was:" >&5
4300: sed 's/^/| /' conftest.$ac_ext >&5
4301:
4302: ac_cv_lib_dld_dld_link=no
4303: fi
4304: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4305: LIBS=$ac_check_lib_save_LIBS
4306: fi
4307: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
4308: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
4309: if test $ac_cv_lib_dld_dld_link = yes; then
4310: cat >>confdefs.h <<\_ACEOF
1.1 paf 4311: #define HAVE_DLD 1
1.2 paf 4312: _ACEOF
1.1 paf 4313: test "x$ac_cv_lib_dld_shl_load" = yes || LIBADD_DL="$LIBADD_DL -ldld"
4314: fi
4315:
4316:
4317:
4318: if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
4319: LIBS_SAVE="$LIBS"
4320: LIBS="$LIBS $LIBADD_DL"
1.2 paf 4321:
4322: for ac_func in dlerror
1.1 paf 4323: do
1.2 paf 4324: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4325: echo "$as_me:$LINENO: checking for $ac_func" >&5
4326: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4327: if eval "test \"\${$as_ac_var+set}\" = set"; then
4328: echo $ECHO_N "(cached) $ECHO_C" >&6
4329: else
4330: cat >conftest.$ac_ext <<_ACEOF
4331: #line $LINENO "configure"
4332: /* confdefs.h. */
4333: _ACEOF
4334: cat confdefs.h >>conftest.$ac_ext
4335: cat >>conftest.$ac_ext <<_ACEOF
4336: /* end confdefs.h. */
1.1 paf 4337: /* System header to define __stub macros and hopefully few prototypes,
1.2 paf 4338: which can conflict with char $ac_func (); below.
4339: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4340: <limits.h> exists even on freestanding compilers. */
4341: #ifdef __STDC__
4342: # include <limits.h>
4343: #else
4344: # include <assert.h>
4345: #endif
1.1 paf 4346: /* Override any gcc2 internal prototype to avoid an error. */
1.2 paf 4347: #ifdef __cplusplus
4348: extern "C"
4349: {
4350: #endif
1.1 paf 4351: /* We use char because int might match the return type of a gcc2
1.2 paf 4352: builtin and then its argument prototype would still apply. */
4353: char $ac_func ();
1.1 paf 4354: /* The GNU C library defines this for functions which it implements
4355: to always fail with ENOSYS. Some functions are actually named
4356: something starting with __ and the normal name is an alias. */
4357: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4358: choke me
4359: #else
1.2 paf 4360: char (*f) () = $ac_func;
4361: #endif
4362: #ifdef __cplusplus
4363: }
1.1 paf 4364: #endif
4365:
1.2 paf 4366: int
4367: main ()
4368: {
4369: return f != $ac_func;
4370: ;
4371: return 0;
4372: }
4373: _ACEOF
4374: rm -f conftest.$ac_objext conftest$ac_exeext
4375: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4376: (eval $ac_link) 2>&5
4377: ac_status=$?
4378: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379: (exit $ac_status); } &&
4380: { ac_try='test -s conftest$ac_exeext'
4381: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382: (eval $ac_try) 2>&5
4383: ac_status=$?
4384: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385: (exit $ac_status); }; }; then
4386: eval "$as_ac_var=yes"
4387: else
4388: echo "$as_me: failed program was:" >&5
4389: sed 's/^/| /' conftest.$ac_ext >&5
4390:
4391: eval "$as_ac_var=no"
4392: fi
4393: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4394: fi
4395: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4396: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4397: if test `eval echo '${'$as_ac_var'}'` = yes; then
4398: cat >>confdefs.h <<_ACEOF
4399: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4400: _ACEOF
1.1 paf 4401:
4402: fi
4403: done
4404:
4405: LIBS="$LIBS_SAVE"
4406: fi
1.3 ! paf 4407:
! 4408: # Make sure we can run config.sub.
! 4409: $ac_config_sub sun4 >/dev/null 2>&1 ||
! 4410: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
! 4411: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
! 4412: { (exit 1); exit 1; }; }
! 4413:
! 4414: echo "$as_me:$LINENO: checking build system type" >&5
! 4415: echo $ECHO_N "checking build system type... $ECHO_C" >&6
! 4416: if test "${ac_cv_build+set}" = set; then
! 4417: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4418: else
! 4419: ac_cv_build_alias=$build_alias
! 4420: test -z "$ac_cv_build_alias" &&
! 4421: ac_cv_build_alias=`$ac_config_guess`
! 4422: test -z "$ac_cv_build_alias" &&
! 4423: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
! 4424: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
! 4425: { (exit 1); exit 1; }; }
! 4426: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
! 4427: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
! 4428: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
! 4429: { (exit 1); exit 1; }; }
! 4430:
! 4431: fi
! 4432: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
! 4433: echo "${ECHO_T}$ac_cv_build" >&6
! 4434: build=$ac_cv_build
! 4435: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! 4436: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! 4437: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
! 4438:
! 4439:
! 4440: echo "$as_me:$LINENO: checking host system type" >&5
! 4441: echo $ECHO_N "checking host system type... $ECHO_C" >&6
! 4442: if test "${ac_cv_host+set}" = set; then
! 4443: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4444: else
! 4445: ac_cv_host_alias=$host_alias
! 4446: test -z "$ac_cv_host_alias" &&
! 4447: ac_cv_host_alias=$ac_cv_build_alias
! 4448: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
! 4449: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
! 4450: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
! 4451: { (exit 1); exit 1; }; }
! 4452:
! 4453: fi
! 4454: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
! 4455: echo "${ECHO_T}$ac_cv_host" >&6
! 4456: host=$ac_cv_host
! 4457: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! 4458: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! 4459: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
! 4460:
! 4461:
! 4462: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
! 4463: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
! 4464: if test "${ac_cv_path_NM+set}" = set; then
! 4465: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4466: else
! 4467: if test -n "$NM"; then
! 4468: # Let the user override the test.
! 4469: ac_cv_path_NM="$NM"
! 4470: else
! 4471: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
! 4472: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
! 4473: test -z "$ac_dir" && ac_dir=.
! 4474: if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
! 4475: # Check to see if the nm accepts a BSD-compat flag.
! 4476: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
! 4477: # nm: unknown option "B" ignored
! 4478: if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
! 4479: ac_cv_path_NM="$ac_dir/nm -B"
! 4480: break
! 4481: elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
! 4482: ac_cv_path_NM="$ac_dir/nm -p"
! 4483: break
! 4484: else
! 4485: ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
! 4486: continue # so that we can try to find one that supports BSD flags
! 4487: fi
! 4488: fi
! 4489: done
! 4490: IFS="$ac_save_ifs"
! 4491: test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
! 4492: fi
! 4493: fi
! 4494:
! 4495: NM="$ac_cv_path_NM"
! 4496: echo "$as_me:$LINENO: result: $NM" >&5
! 4497: echo "${ECHO_T}$NM" >&6
1.1 paf 4498:
4499: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.2 paf 4500: echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4501: echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4502: if test "${ac_cv_sys_global_symbol_pipe+set}" = set; then
4503: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 4504: else
4505: # These are sane defaults that work on at least a few old systems.
4506: # {They come from Ultrix. What could be older than Ultrix?!! ;)}
4507:
4508: # Character class describing NM global symbol codes.
4509: ac_symcode='[BCDEGRST]'
4510:
4511: # Regexp to match symbols that can be accessed directly from C.
4512: ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4513:
4514: # Transform the above into a raw symbol and a C symbol.
4515: ac_symxfrm='\1 \2\3 \3'
4516:
4517: # Transform an extracted symbol line into a proper C declaration
4518: ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4519:
4520: # Define system-specific variables.
4521: case "$host_os" in
4522: aix*)
4523: ac_symcode='[BCDT]'
4524: ;;
4525: cygwin* | mingw*)
4526: ac_symcode='[ABCDGISTW]'
4527: ;;
4528: hpux*)
4529: ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
4530: ;;
4531: irix*)
4532: ac_symcode='[BCDEGRST]'
4533: ;;
4534: solaris*)
4535: ac_symcode='[BDT]'
4536: ;;
4537: esac
4538:
4539: # If we're using GNU nm, then use its standard symbol codes.
4540: if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4541: ac_symcode='[ABCDGISTW]'
4542: fi
4543:
4544: # Try without a prefix undercore, then with it.
4545: for ac_symprfx in "" "_"; do
4546:
4547: ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
4548:
4549: # Check to see that the pipe works correctly.
4550: ac_pipe_works=no
4551: rm -f conftest.$ac_ext
4552: cat > conftest.$ac_ext <<EOF
4553: #ifdef __cplusplus
4554: extern "C" {
4555: #endif
4556: char nm_test_var;
4557: void nm_test_func(){}
4558: #ifdef __cplusplus
4559: }
4560: #endif
4561: int main(){nm_test_var='a';nm_test_func;return 0;}
4562: EOF
4563:
1.2 paf 4564: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565: (eval $ac_compile) 2>&5
4566: ac_status=$?
4567: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568: (exit $ac_status); }; then
1.1 paf 4569: # Now try to grab the symbols.
4570: ac_nlist=conftest.nm
1.2 paf 4571:
4572: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
4573: (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
4574: ac_status=$?
4575: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576: (exit $ac_status); } && test -s "$ac_nlist"; then
1.1 paf 4577:
4578: # Try sorting and uniquifying the output.
4579: if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
4580: mv -f "$ac_nlist"T "$ac_nlist"
4581: else
4582: rm -f "$ac_nlist"T
4583: fi
4584:
4585: # Make sure that we snagged all the symbols we need.
4586: if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
4587: if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
4588: cat <<EOF > conftest.c
4589: #ifdef __cplusplus
4590: extern "C" {
4591: #endif
4592:
4593: EOF
4594: # Now generate the symbol file.
4595: eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
4596:
4597: cat <<EOF >> conftest.c
4598: #if defined (__STDC__) && __STDC__
4599: # define lt_ptr_t void *
4600: #else
4601: # define lt_ptr_t char *
4602: # define const
4603: #endif
4604:
4605: /* The mapping between symbol names and symbols. */
4606: const struct {
4607: const char *name;
4608: lt_ptr_t address;
4609: }
4610: lt_preloaded_symbols[] =
4611: {
4612: EOF
4613: sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
4614: cat <<\EOF >> conftest.c
4615: {0, (lt_ptr_t) 0}
4616: };
4617:
4618: #ifdef __cplusplus
4619: }
4620: #endif
4621: EOF
4622: # Now try linking the two files.
4623: mv conftest.$ac_objext conftstm.$ac_objext
4624: ac_save_LIBS="$LIBS"
4625: ac_save_CFLAGS="$CFLAGS"
4626: LIBS="conftstm.$ac_objext"
4627: CFLAGS="$CFLAGS$no_builtin_flag"
1.2 paf 4628: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4629: (eval $ac_link) 2>&5
4630: ac_status=$?
4631: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632: (exit $ac_status); } && test -s conftest; then
1.1 paf 4633: ac_pipe_works=yes
4634: else
4635: echo "configure: failed program was:" >&5
4636: cat conftest.c >&5
4637: fi
4638: LIBS="$ac_save_LIBS"
4639: CFLAGS="$ac_save_CFLAGS"
4640: else
4641: echo "cannot find nm_test_func in $ac_nlist" >&5
4642: fi
4643: else
4644: echo "cannot find nm_test_var in $ac_nlist" >&5
4645: fi
4646: else
4647: echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
4648: fi
4649: else
4650: echo "$progname: failed program was:" >&5
4651: cat conftest.c >&5
4652: fi
4653: rm -rf conftest* conftst*
4654:
4655: # Do not use the global_symbol_pipe unless it works.
4656: if test "$ac_pipe_works" = yes; then
4657: if test x"$ac_symprfx" = x"_"; then
4658: ac_cv_sys_symbol_underscore=yes
4659: else
4660: ac_cv_sys_symbol_underscore=no
4661: fi
4662: break
4663: else
4664: ac_cv_sys_global_symbol_pipe=
4665: fi
4666: done
4667:
4668: fi
4669:
4670:
4671: ac_result=yes
4672: if test -z "$ac_cv_sys_global_symbol_pipe"; then
4673: ac_result=no
4674: fi
1.2 paf 4675: echo "$as_me:$LINENO: result: $ac_result" >&5
4676: echo "${ECHO_T}$ac_result" >&6
1.1 paf 4677:
1.2 paf 4678: echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
4679: echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
4680: if test "${ac_cv_sys_symbol_underscore+set}" = set; then
4681: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 4682: else
4683: ac_cv_sys_symbol_underscore=no
4684: cat > conftest.$ac_ext <<EOF
4685: void nm_test_func(){}
4686: int main(){nm_test_func;return 0;}
4687: EOF
1.2 paf 4688: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4689: (eval $ac_compile) 2>&5
4690: ac_status=$?
4691: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692: (exit $ac_status); }; then
1.1 paf 4693: # Now try to grab the symbols.
4694: ac_nlist=conftest.nm
1.2 paf 4695: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
4696: (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
4697: ac_status=$?
4698: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699: (exit $ac_status); } && test -s "$ac_nlist"; then
1.1 paf 4700: # See whether the symbols have a leading underscore.
4701: if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
4702: ac_cv_sys_symbol_underscore=yes
4703: else
4704: if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
4705: :
4706: else
4707: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
4708: fi
4709: fi
4710: else
4711: echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
4712: fi
4713: else
4714: echo "configure: failed program was:" >&5
4715: cat conftest.c >&5
4716: fi
4717: rm -rf conftest*
4718:
4719: fi
4720:
1.2 paf 4721: echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
4722: echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
1.1 paf 4723:
4724: if test x"$ac_cv_sys_symbol_underscore" = xyes; then
4725: if test x"$ac_cv_func_dlopen" = xyes ||
4726: test x"$ac_cv_lib_dl_dlopen" = xyes ; then
1.2 paf 4727: echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
4728: echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
4729: if test "${libltdl_cv_need_uscore+set}" = set; then
4730: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 4731: else
4732: if test "$cross_compiling" = yes; then
4733: libltdl_cv_need_uscore=cross
4734:
4735: else
1.2 paf 4736: cat >conftest.$ac_ext <<_ACEOF
4737: #line $LINENO "configure"
4738: /* confdefs.h. */
4739: _ACEOF
4740: cat confdefs.h >>conftest.$ac_ext
4741: cat >>conftest.$ac_ext <<_ACEOF
4742: /* end confdefs.h. */
1.1 paf 4743:
4744: #if HAVE_DLFCN_H
4745: #include <dlfcn.h>
4746: #endif
4747:
4748: #include <stdio.h>
4749:
4750: #ifdef RTLD_GLOBAL
4751: # define LTDL_GLOBAL RTLD_GLOBAL
4752: #else
4753: # ifdef DL_GLOBAL
4754: # define LTDL_GLOBAL DL_GLOBAL
4755: # else
4756: # define LTDL_GLOBAL 0
4757: # endif
4758: #endif
4759:
4760: /* We may have to define LTDL_LAZY_OR_NOW in the command line if we
4761: find out it does not work in some platform. */
4762: #ifndef LTDL_LAZY_OR_NOW
4763: # ifdef RTLD_LAZY
4764: # define LTDL_LAZY_OR_NOW RTLD_LAZY
4765: # else
4766: # ifdef DL_LAZY
4767: # define LTDL_LAZY_OR_NOW DL_LAZY
4768: # else
4769: # ifdef RTLD_NOW
4770: # define LTDL_LAZY_OR_NOW RTLD_NOW
4771: # else
4772: # ifdef DL_NOW
4773: # define LTDL_LAZY_OR_NOW DL_NOW
4774: # else
4775: # define LTDL_LAZY_OR_NOW 0
4776: # endif
4777: # endif
4778: # endif
4779: # endif
4780: #endif
4781:
4782: fnord() { int i=42;}
4783: main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
4784: if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
1.2 paf 4785: if(ptr1 && !ptr2) { dlclose(self); exit(0); } } exit(1); }
1.1 paf 4786:
1.2 paf 4787: _ACEOF
4788: rm -f conftest$ac_exeext
4789: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4790: (eval $ac_link) 2>&5
4791: ac_status=$?
4792: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4794: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795: (eval $ac_try) 2>&5
4796: ac_status=$?
4797: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798: (exit $ac_status); }; }; then
1.1 paf 4799: libltdl_cv_need_uscore=no
4800: else
1.2 paf 4801: echo "$as_me: program exited with status $ac_status" >&5
4802: echo "$as_me: failed program was:" >&5
4803: sed 's/^/| /' conftest.$ac_ext >&5
4804:
4805: ( exit $ac_status )
4806: libltdl_cv_need_uscore=yes
1.1 paf 4807: fi
1.2 paf 4808: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 paf 4809: fi
4810: fi
1.2 paf 4811: echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
4812: echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
1.1 paf 4813: fi
4814: fi
4815:
4816: if test x"$libltdl_cv_need_uscore" = xyes; then
1.2 paf 4817:
4818: cat >>confdefs.h <<\_ACEOF
1.1 paf 4819: #define NEED_USCORE 1
1.2 paf 4820: _ACEOF
1.1 paf 4821:
4822: fi
4823:
1.2 paf 4824: cat >confcache <<\_ACEOF
1.1 paf 4825: # This file is a shell script that caches the results of configure
4826: # tests run on this system so they can be shared between configure
1.2 paf 4827: # scripts and configure runs, see configure's option --config-cache.
4828: # It is not useful on other systems. If it contains results you don't
4829: # want to keep, you may remove or edit it.
1.1 paf 4830: #
1.2 paf 4831: # config.status only pays attention to the cache file if you give it
4832: # the --recheck option to rerun configure.
1.1 paf 4833: #
1.2 paf 4834: # `ac_cv_env_foo' variables (set or unset) will be overridden when
4835: # loading this file, other *unset* `ac_cv_foo' will be assigned the
4836: # following values.
4837:
4838: _ACEOF
4839:
1.1 paf 4840: # The following way of writing the cache mishandles newlines in values,
4841: # but we know of no workaround that is simple, portable, and efficient.
4842: # So, don't put newlines in cache variables' values.
4843: # Ultrix sh set writes to stderr and can't be redirected directly,
4844: # and sets the high bit in the cache file unless we assign to the vars.
1.2 paf 4845: {
4846: (set) 2>&1 |
4847: case `(ac_space=' '; set | grep ac_space) 2>&1` in
4848: *ac_space=\ *)
4849: # `set' does not quote correctly, so add quotes (double-quote
4850: # substitution turns \\\\ into \\, and sed turns \\ into \).
4851: sed -n \
4852: "s/'/'\\\\''/g;
4853: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4854: ;;
4855: *)
4856: # `set' quotes correctly as required by POSIX, so do not add quotes.
4857: sed -n \
4858: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4859: ;;
4860: esac;
4861: } |
4862: sed '
4863: t clear
4864: : clear
4865: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4866: t end
4867: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4868: : end' >>confcache
4869: if diff $cache_file confcache >/dev/null 2>&1; then :; else
1.1 paf 4870: if test -w $cache_file; then
1.2 paf 4871: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4872: cat confcache >$cache_file
1.1 paf 4873: else
4874: echo "not updating unwritable cache $cache_file"
4875: fi
4876: fi
4877: rm -f confcache
4878:
4879: test "x$prefix" = xNONE && prefix=$ac_default_prefix
4880: # Let make expand exec_prefix.
4881: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4882:
1.2 paf 4883: # VPATH may cause trouble with some makes, so we remove $(srcdir),
4884: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4885: # trailing colons and then remove the whole line if VPATH becomes empty
4886: # (actually we leave an empty line to preserve line numbers).
1.1 paf 4887: if test "x$srcdir" = x.; then
1.2 paf 4888: ac_vpsub='/^[ ]*VPATH[ ]*=/{
4889: s/:*\$(srcdir):*/:/;
4890: s/:*\${srcdir}:*/:/;
4891: s/:*@srcdir@:*/:/;
4892: s/^\([^=]*=[ ]*\):*/\1/;
4893: s/:*$//;
4894: s/^[^=]*=[ ]*$//;
4895: }'
1.1 paf 4896: fi
4897:
1.2 paf 4898: DEFS=-DHAVE_CONFIG_H
4899:
4900: ac_libobjs=
4901: ac_ltlibobjs=
4902: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4903: # 1. Remove the extension, and $U if already installed.
4904: ac_i=`echo "$ac_i" |
4905: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4906: # 2. Add them.
4907: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4908: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4909: done
4910: LIBOBJS=$ac_libobjs
4911:
4912: LTLIBOBJS=$ac_ltlibobjs
4913:
1.1 paf 4914:
1.2 paf 4915: if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4916: { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
4917: Usually this means the macro was only invoked conditionally." >&5
4918: echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
4919: Usually this means the macro was only invoked conditionally." >&2;}
4920: { (exit 1); exit 1; }; }
4921: fi
4922: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4923: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4924: Usually this means the macro was only invoked conditionally." >&5
4925: echo "$as_me: error: conditional \"AMDEP\" was never defined.
4926: Usually this means the macro was only invoked conditionally." >&2;}
4927: { (exit 1); exit 1; }; }
4928: fi
4929: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4930: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
4931: Usually this means the macro was only invoked conditionally." >&5
4932: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
4933: Usually this means the macro was only invoked conditionally." >&2;}
4934: { (exit 1); exit 1; }; }
4935: fi
1.1 paf 4936:
4937: : ${CONFIG_STATUS=./config.status}
1.2 paf 4938: ac_clean_files_save=$ac_clean_files
4939: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4940: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4941: echo "$as_me: creating $CONFIG_STATUS" >&6;}
4942: cat >$CONFIG_STATUS <<_ACEOF
4943: #! $SHELL
4944: # Generated by $as_me.
1.1 paf 4945: # Run this file to recreate the current configuration.
4946: # Compiler output produced by configure, useful for debugging
1.2 paf 4947: # configure, is in config.log if it exists.
4948:
4949: debug=false
4950: ac_cs_recheck=false
4951: ac_cs_silent=false
4952: SHELL=\${CONFIG_SHELL-$SHELL}
4953: _ACEOF
4954:
4955: cat >>$CONFIG_STATUS <<\_ACEOF
4956: ## --------------------- ##
4957: ## M4sh Initialization. ##
4958: ## --------------------- ##
4959:
4960: # Be Bourne compatible
4961: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4962: emulate sh
4963: NULLCMD=:
4964: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4965: # is contrary to our usage. Disable this feature.
4966: alias -g '${1+"$@"}'='"$@"'
4967: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4968: set -o posix
4969: fi
4970:
4971: # Support unset when possible.
4972: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4973: as_unset=unset
4974: else
4975: as_unset=false
4976: fi
4977:
4978:
4979: # Work around bugs in pre-3.0 UWIN ksh.
4980: $as_unset ENV MAIL MAILPATH
4981: PS1='$ '
4982: PS2='> '
4983: PS4='+ '
4984:
4985: # NLS nuisances.
4986: for as_var in \
4987: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4988: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4989: LC_TELEPHONE LC_TIME
4990: do
4991: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
4992: eval $as_var=C; export $as_var
4993: else
4994: $as_unset $as_var
4995: fi
4996: done
4997:
4998: # Required to use basename.
4999: if expr a : '\(a\)' >/dev/null 2>&1; then
5000: as_expr=expr
5001: else
5002: as_expr=false
5003: fi
5004:
5005: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5006: as_basename=basename
5007: else
5008: as_basename=false
5009: fi
5010:
1.1 paf 5011:
1.2 paf 5012: # Name of the executable.
5013: as_me=`$as_basename "$0" ||
5014: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5015: X"$0" : 'X\(//\)$' \| \
5016: X"$0" : 'X\(/\)$' \| \
5017: . : '\(.\)' 2>/dev/null ||
5018: echo X/"$0" |
5019: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5020: /^X\/\(\/\/\)$/{ s//\1/; q; }
5021: /^X\/\(\/\).*/{ s//\1/; q; }
5022: s/.*/./; q'`
5023:
5024:
5025: # PATH needs CR, and LINENO needs CR and PATH.
5026: # Avoid depending upon Character Ranges.
5027: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5028: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5029: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5030: as_cr_digits='0123456789'
5031: as_cr_alnum=$as_cr_Letters$as_cr_digits
5032:
5033: # The user is always right.
5034: if test "${PATH_SEPARATOR+set}" != set; then
5035: echo "#! /bin/sh" >conf$$.sh
5036: echo "exit 0" >>conf$$.sh
5037: chmod +x conf$$.sh
5038: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5039: PATH_SEPARATOR=';'
5040: else
5041: PATH_SEPARATOR=:
5042: fi
5043: rm -f conf$$.sh
5044: fi
5045:
5046:
5047: as_lineno_1=$LINENO
5048: as_lineno_2=$LINENO
5049: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5050: test "x$as_lineno_1" != "x$as_lineno_2" &&
5051: test "x$as_lineno_3" = "x$as_lineno_2" || {
5052: # Find who we are. Look in the path if we contain no path at all
5053: # relative or not.
5054: case $0 in
5055: *[\\/]* ) as_myself=$0 ;;
5056: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057: for as_dir in $PATH
1.1 paf 5058: do
1.2 paf 5059: IFS=$as_save_IFS
5060: test -z "$as_dir" && as_dir=.
5061: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5062: done
5063:
5064: ;;
1.1 paf 5065: esac
1.2 paf 5066: # We did not find ourselves, most probably we were run as `sh COMMAND'
5067: # in which case we are not to be found in the path.
5068: if test "x$as_myself" = x; then
5069: as_myself=$0
5070: fi
5071: if test ! -f "$as_myself"; then
5072: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5073: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5074: { (exit 1); exit 1; }; }
5075: fi
5076: case $CONFIG_SHELL in
5077: '')
5078: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5080: do
5081: IFS=$as_save_IFS
5082: test -z "$as_dir" && as_dir=.
5083: for as_base in sh bash ksh sh5; do
5084: case $as_dir in
5085: /*)
5086: if ("$as_dir/$as_base" -c '
5087: as_lineno_1=$LINENO
5088: as_lineno_2=$LINENO
5089: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5090: test "x$as_lineno_1" != "x$as_lineno_2" &&
5091: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5092: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5093: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5094: CONFIG_SHELL=$as_dir/$as_base
5095: export CONFIG_SHELL
5096: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5097: fi;;
5098: esac
5099: done
1.1 paf 5100: done
1.2 paf 5101: ;;
5102: esac
1.1 paf 5103:
1.2 paf 5104: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5105: # uniformly replaced by the line number. The first 'sed' inserts a
5106: # line-number line before each line; the second 'sed' does the real
5107: # work. The second script uses 'N' to pair each line-number line
5108: # with the numbered line, and appends trailing '-' during
5109: # substitution so that $LINENO is not a special case at line end.
5110: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5111: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5112: sed '=' <$as_myself |
5113: sed '
5114: N
5115: s,$,-,
5116: : loop
5117: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5118: t loop
5119: s,-$,,
5120: s,^['$as_cr_digits']*\n,,
5121: ' >$as_me.lineno &&
5122: chmod +x $as_me.lineno ||
5123: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5124: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5125: { (exit 1); exit 1; }; }
5126:
5127: # Don't try to exec as it changes $[0], causing all sort of problems
5128: # (the dirname of $[0] is not the place where we might find the
5129: # original and so on. Autoconf is especially sensible to this).
5130: . ./$as_me.lineno
5131: # Exit status is that of the last command.
5132: exit
5133: }
1.1 paf 5134:
5135:
1.2 paf 5136: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5137: *c*,-n*) ECHO_N= ECHO_C='
5138: ' ECHO_T=' ' ;;
5139: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5140: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5141: esac
1.1 paf 5142:
1.2 paf 5143: if expr a : '\(a\)' >/dev/null 2>&1; then
5144: as_expr=expr
5145: else
5146: as_expr=false
5147: fi
1.1 paf 5148:
1.2 paf 5149: rm -f conf$$ conf$$.exe conf$$.file
5150: echo >conf$$.file
5151: if ln -s conf$$.file conf$$ 2>/dev/null; then
5152: # We could just check for DJGPP; but this test a) works b) is more generic
5153: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5154: if test -f conf$$.exe; then
5155: # Don't use ln at all; we don't have any links
5156: as_ln_s='cp -p'
1.1 paf 5157: else
1.2 paf 5158: as_ln_s='ln -s'
1.1 paf 5159: fi
1.2 paf 5160: elif ln conf$$.file conf$$ 2>/dev/null; then
5161: as_ln_s=ln
5162: else
5163: as_ln_s='cp -p'
5164: fi
5165: rm -f conf$$ conf$$.exe conf$$.file
5166:
5167: if mkdir -p . 2>/dev/null; then
5168: as_mkdir_p=:
5169: else
5170: as_mkdir_p=false
5171: fi
5172:
5173: as_executable_p="test -f"
5174:
5175: # Sed expression to map a string onto a valid CPP name.
5176: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5177:
5178: # Sed expression to map a string onto a valid variable name.
5179: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5180:
5181:
5182: # IFS
5183: # We need space, tab and new line, in precisely that order.
5184: as_nl='
5185: '
5186: IFS=" $as_nl"
5187:
5188: # CDPATH.
5189: $as_unset CDPATH
5190:
5191: exec 6>&1
5192:
5193: # Open the log real soon, to keep \$[0] and so on meaningful, and to
5194: # report actual input values of CONFIG_FILES etc. instead of their
5195: # values after options handling. Logging --version etc. is OK.
5196: exec 5>>config.log
5197: {
5198: echo
5199: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5200: ## Running $as_me. ##
5201: _ASBOX
5202: } >&5
5203: cat >&5 <<_CSEOF
5204:
5205: This file was extended by $as_me, which was
5206: generated by GNU Autoconf 2.57. Invocation command line was
5207:
5208: CONFIG_FILES = $CONFIG_FILES
5209: CONFIG_HEADERS = $CONFIG_HEADERS
5210: CONFIG_LINKS = $CONFIG_LINKS
5211: CONFIG_COMMANDS = $CONFIG_COMMANDS
5212: $ $0 $@
5213:
5214: _CSEOF
5215: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5216: echo >&5
5217: _ACEOF
5218:
5219: # Files that config.status was made for.
5220: if test -n "$ac_config_files"; then
5221: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5222: fi
5223:
5224: if test -n "$ac_config_headers"; then
5225: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5226: fi
5227:
5228: if test -n "$ac_config_links"; then
5229: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5230: fi
5231:
5232: if test -n "$ac_config_commands"; then
5233: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
1.1 paf 5234: fi
5235:
1.2 paf 5236: cat >>$CONFIG_STATUS <<\_ACEOF
5237:
5238: ac_cs_usage="\
5239: \`$as_me' instantiates files from templates according to the
5240: current configuration.
5241:
5242: Usage: $0 [OPTIONS] [FILE]...
5243:
5244: -h, --help print this help, then exit
5245: -V, --version print version number, then exit
5246: -q, --quiet do not print progress messages
5247: -d, --debug don't remove temporary files
5248: --recheck update $as_me by reconfiguring in the same conditions
5249: --header=FILE[:TEMPLATE]
5250: instantiate the configuration header FILE
5251:
5252: Configuration headers:
5253: $config_headers
5254:
5255: Configuration commands:
5256: $config_commands
5257:
5258: Report bugs to <bug-autoconf@gnu.org>."
5259: _ACEOF
5260:
5261: cat >>$CONFIG_STATUS <<_ACEOF
5262: ac_cs_version="\\
5263: config.status
5264: configured by $0, generated by GNU Autoconf 2.57,
5265: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5266:
5267: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5268: Free Software Foundation, Inc.
5269: This config.status script is free software; the Free Software Foundation
5270: gives unlimited permission to copy, distribute and modify it."
5271: srcdir=$srcdir
5272: INSTALL="$INSTALL"
5273: _ACEOF
1.1 paf 5274:
1.2 paf 5275: cat >>$CONFIG_STATUS <<\_ACEOF
5276: # If no file are specified by the user, then we need to provide default
5277: # value. By we need to know if files were specified by the user.
5278: ac_need_defaults=:
5279: while test $# != 0
5280: do
5281: case $1 in
5282: --*=*)
5283: ac_option=`expr "x$1" : 'x\([^=]*\)='`
5284: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5285: ac_shift=:
5286: ;;
5287: -*)
5288: ac_option=$1
5289: ac_optarg=$2
5290: ac_shift=shift
5291: ;;
5292: *) # This is not an option, so the user has probably given explicit
5293: # arguments.
5294: ac_option=$1
5295: ac_need_defaults=false;;
1.1 paf 5296: esac
5297:
1.2 paf 5298: case $ac_option in
5299: # Handling of the options.
5300: _ACEOF
5301: cat >>$CONFIG_STATUS <<\_ACEOF
5302: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5303: ac_cs_recheck=: ;;
5304: --version | --vers* | -V )
5305: echo "$ac_cs_version"; exit 0 ;;
5306: --he | --h)
5307: # Conflict between --help and --header
5308: { { echo "$as_me:$LINENO: error: ambiguous option: $1
5309: Try \`$0 --help' for more information." >&5
5310: echo "$as_me: error: ambiguous option: $1
5311: Try \`$0 --help' for more information." >&2;}
5312: { (exit 1); exit 1; }; };;
5313: --help | --hel | -h )
5314: echo "$ac_cs_usage"; exit 0 ;;
5315: --debug | --d* | -d )
5316: debug=: ;;
5317: --file | --fil | --fi | --f )
5318: $ac_shift
5319: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5320: ac_need_defaults=false;;
5321: --header | --heade | --head | --hea )
5322: $ac_shift
5323: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5324: ac_need_defaults=false;;
5325: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5326: | -silent | --silent | --silen | --sile | --sil | --si | --s)
5327: ac_cs_silent=: ;;
5328:
5329: # This is an error.
5330: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5331: Try \`$0 --help' for more information." >&5
5332: echo "$as_me: error: unrecognized option: $1
5333: Try \`$0 --help' for more information." >&2;}
5334: { (exit 1); exit 1; }; } ;;
5335:
5336: *) ac_config_targets="$ac_config_targets $1" ;;
1.1 paf 5337:
5338: esac
1.2 paf 5339: shift
5340: done
5341:
5342: ac_configure_extra_args=
5343:
5344: if $ac_cs_silent; then
5345: exec 6>/dev/null
5346: ac_configure_extra_args="$ac_configure_extra_args --silent"
5347: fi
5348:
5349: _ACEOF
5350: cat >>$CONFIG_STATUS <<_ACEOF
5351: if \$ac_cs_recheck; then
5352: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5353: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5354: fi
5355:
5356: _ACEOF
5357:
5358: cat >>$CONFIG_STATUS <<_ACEOF
5359: #
5360: # INIT-COMMANDS section.
5361: #
5362:
5363: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5364:
5365: _ACEOF
1.1 paf 5366:
1.2 paf 5367:
5368:
5369: cat >>$CONFIG_STATUS <<\_ACEOF
5370: for ac_config_target in $ac_config_targets
5371: do
5372: case "$ac_config_target" in
5373: # Handling of arguments.
5374: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5375: "config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
5376: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5377: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5378: { (exit 1); exit 1; }; };;
1.1 paf 5379: esac
1.2 paf 5380: done
5381:
5382: # If the user did not use the arguments to specify the items to instantiate,
5383: # then the envvar interface is used. Set only those that are not.
5384: # We use the long form for the default assignment because of an extremely
5385: # bizarre bug on SunOS 4.1.3.
5386: if $ac_need_defaults; then
5387: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5388: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5389: fi
5390:
5391: # Have a temporary directory for convenience. Make it in the build tree
5392: # simply because there is no reason to put it here, and in addition,
5393: # creating and moving files from /tmp can sometimes cause problems.
5394: # Create a temporary directory, and hook for its removal unless debugging.
5395: $debug ||
5396: {
5397: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5398: trap '{ (exit 1); exit 1; }' 1 2 13 15
5399: }
5400:
5401: # Create a (secure) tmp directory for tmp files.
5402:
5403: {
5404: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5405: test -n "$tmp" && test -d "$tmp"
5406: } ||
5407: {
5408: tmp=./confstat$$-$RANDOM
5409: (umask 077 && mkdir $tmp)
5410: } ||
5411: {
5412: echo "$me: cannot create a temporary directory in ." >&2
5413: { (exit 1); exit 1; }
5414: }
5415:
5416: _ACEOF
1.1 paf 5417:
1.2 paf 5418: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 paf 5419:
1.2 paf 5420: #
5421: # CONFIG_HEADER section.
5422: #
1.1 paf 5423:
5424: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5425: # NAME is the cpp macro being defined and VALUE is the value it is being given.
5426: #
5427: # ac_d sets the value in "#define NAME VALUE" lines.
1.2 paf 5428: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5429: ac_dB='[ ].*$,\1#\2'
5430: ac_dC=' '
5431: ac_dD=',;t'
5432: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5433: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5434: ac_uB='$,\1#\2define\3'
1.1 paf 5435: ac_uC=' '
1.2 paf 5436: ac_uD=',;t'
1.1 paf 5437:
1.2 paf 5438: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 paf 5439: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.2 paf 5440: case $ac_file in
5441: - | *:- | *:-:* ) # input from stdin
5442: cat >$tmp/stdin
5443: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5444: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5445: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5446: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5447: * ) ac_file_in=$ac_file.in ;;
1.1 paf 5448: esac
5449:
1.2 paf 5450: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5451: echo "$as_me: creating $ac_file" >&6;}
1.1 paf 5452:
1.2 paf 5453: # First look for the input files in the build tree, otherwise in the
5454: # src tree.
5455: ac_file_inputs=`IFS=:
5456: for f in $ac_file_in; do
5457: case $f in
5458: -) echo $tmp/stdin ;;
5459: [\\/$]*)
5460: # Absolute (can't be DOS-style, as IFS=:)
5461: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5462: echo "$as_me: error: cannot find input file: $f" >&2;}
5463: { (exit 1); exit 1; }; }
5464: echo $f;;
5465: *) # Relative
5466: if test -f "$f"; then
5467: # Build tree
5468: echo $f
5469: elif test -f "$srcdir/$f"; then
5470: # Source tree
5471: echo $srcdir/$f
5472: else
5473: # /dev/null tree
5474: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5475: echo "$as_me: error: cannot find input file: $f" >&2;}
5476: { (exit 1); exit 1; }; }
5477: fi;;
5478: esac
5479: done` || { (exit 1); exit 1; }
5480: # Remove the trailing spaces.
5481: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5482:
5483: _ACEOF
5484:
5485: # Transform confdefs.h into two sed scripts, `conftest.defines' and
5486: # `conftest.undefs', that substitutes the proper values into
5487: # config.h.in to produce config.h. The first handles `#define'
5488: # templates, and the second `#undef' templates.
5489: # And first: Protect against being on the right side of a sed subst in
5490: # config.status. Protect against being in an unquoted here document
5491: # in config.status.
5492: rm -f conftest.defines conftest.undefs
5493: # Using a here document instead of a string reduces the quoting nightmare.
5494: # Putting comments in sed scripts is not portable.
5495: #
5496: # `end' is used to avoid that the second main sed command (meant for
5497: # 0-ary CPP macros) applies to n-ary macro definitions.
5498: # See the Autoconf documentation for `clear'.
5499: cat >confdef2sed.sed <<\_ACEOF
5500: s/[\\&,]/\\&/g
5501: s,[\\$`],\\&,g
5502: t clear
5503: : clear
5504: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5505: t end
5506: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5507: : end
5508: _ACEOF
5509: # If some macros were called several times there might be several times
5510: # the same #defines, which is useless. Nevertheless, we may not want to
5511: # sort them, since we want the *last* AC-DEFINE to be honored.
5512: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5513: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5514: rm -f confdef2sed.sed
1.1 paf 5515:
5516: # This sed command replaces #undef with comments. This is necessary, for
5517: # example, in the case of _POSIX_SOURCE, which is predefined and required
5518: # on some systems where configure will not decide to define it.
1.2 paf 5519: cat >>conftest.undefs <<\_ACEOF
5520: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5521: _ACEOF
5522:
5523: # Break up conftest.defines because some shells have a limit on the size
5524: # of here documents, and old seds have small limits too (100 cmds).
5525: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5526: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5527: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5528: echo ' :' >>$CONFIG_STATUS
5529: rm -f conftest.tail
5530: while grep . conftest.defines >/dev/null
5531: do
5532: # Write a limited-size here document to $tmp/defines.sed.
5533: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5534: # Speed up: don't consider the non `#define' lines.
5535: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5536: # Work around the forget-to-reset-the-flag bug.
5537: echo 't clr' >>$CONFIG_STATUS
5538: echo ': clr' >>$CONFIG_STATUS
5539: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5540: echo 'CEOF
5541: sed -f $tmp/defines.sed $tmp/in >$tmp/out
5542: rm -f $tmp/in
5543: mv $tmp/out $tmp/in
5544: ' >>$CONFIG_STATUS
5545: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5546: rm -f conftest.defines
5547: mv conftest.tail conftest.defines
5548: done
5549: rm -f conftest.defines
5550: echo ' fi # grep' >>$CONFIG_STATUS
5551: echo >>$CONFIG_STATUS
5552:
5553: # Break up conftest.undefs because some shells have a limit on the size
5554: # of here documents, and old seds have small limits too (100 cmds).
5555: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 paf 5556: rm -f conftest.tail
1.2 paf 5557: while grep . conftest.undefs >/dev/null
1.1 paf 5558: do
1.2 paf 5559: # Write a limited-size here document to $tmp/undefs.sed.
5560: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5561: # Speed up: don't consider the non `#undef'
5562: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5563: # Work around the forget-to-reset-the-flag bug.
5564: echo 't clr' >>$CONFIG_STATUS
5565: echo ': clr' >>$CONFIG_STATUS
5566: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 paf 5567: echo 'CEOF
1.2 paf 5568: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5569: rm -f $tmp/in
5570: mv $tmp/out $tmp/in
5571: ' >>$CONFIG_STATUS
5572: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5573: rm -f conftest.undefs
5574: mv conftest.tail conftest.undefs
5575: done
5576: rm -f conftest.undefs
5577:
5578: cat >>$CONFIG_STATUS <<\_ACEOF
5579: # Let's still pretend it is `configure' which instantiates (i.e., don't
5580: # use $as_me), people would be surprised to read:
5581: # /* config.h. Generated by config.status. */
5582: if test x"$ac_file" = x-; then
5583: echo "/* Generated by configure. */" >$tmp/config.h
5584: else
5585: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5586: fi
5587: cat $tmp/in >>$tmp/config.h
5588: rm -f $tmp/in
5589: if test x"$ac_file" != x-; then
5590: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5591: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5592: echo "$as_me: $ac_file is unchanged" >&6;}
5593: else
5594: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5595: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5596: X"$ac_file" : 'X\(//\)[^/]' \| \
5597: X"$ac_file" : 'X\(//\)$' \| \
5598: X"$ac_file" : 'X\(/\)' \| \
5599: . : '\(.\)' 2>/dev/null ||
5600: echo X"$ac_file" |
5601: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5602: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5603: /^X\(\/\/\)$/{ s//\1/; q; }
5604: /^X\(\/\).*/{ s//\1/; q; }
5605: s/.*/./; q'`
5606: { if $as_mkdir_p; then
5607: mkdir -p "$ac_dir"
5608: else
5609: as_dir="$ac_dir"
5610: as_dirs=
5611: while test ! -d "$as_dir"; do
5612: as_dirs="$as_dir $as_dirs"
5613: as_dir=`(dirname "$as_dir") 2>/dev/null ||
5614: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5615: X"$as_dir" : 'X\(//\)[^/]' \| \
5616: X"$as_dir" : 'X\(//\)$' \| \
5617: X"$as_dir" : 'X\(/\)' \| \
5618: . : '\(.\)' 2>/dev/null ||
5619: echo X"$as_dir" |
5620: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5621: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5622: /^X\(\/\/\)$/{ s//\1/; q; }
5623: /^X\(\/\).*/{ s//\1/; q; }
5624: s/.*/./; q'`
5625: done
5626: test ! -n "$as_dirs" || mkdir $as_dirs
5627: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5628: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5629: { (exit 1); exit 1; }; }; }
5630:
5631: rm -f $ac_file
5632: mv $tmp/config.h $ac_file
1.1 paf 5633: fi
1.2 paf 5634: else
5635: cat $tmp/config.h
5636: rm -f $tmp/config.h
1.1 paf 5637: fi
1.2 paf 5638: _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
5639: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
5640: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5641: X$ac_file : 'X\(//\)[^/]' \| \
5642: X$ac_file : 'X\(//\)$' \| \
5643: X$ac_file : 'X\(/\)' \| \
5644: . : '\(.\)' 2>/dev/null ||
5645: echo X$ac_file |
5646: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5647: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5648: /^X\(\/\/\)$/{ s//\1/; q; }
5649: /^X\(\/\).*/{ s//\1/; q; }
5650: s/.*/./; q'`/stamp-h$_am_stamp_count
5651: done
5652: _ACEOF
5653: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 paf 5654:
1.2 paf 5655: #
5656: # CONFIG_COMMANDS section.
5657: #
5658: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5659: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5660: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5661: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5662: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5663: X"$ac_dest" : 'X\(//\)[^/]' \| \
5664: X"$ac_dest" : 'X\(//\)$' \| \
5665: X"$ac_dest" : 'X\(/\)' \| \
5666: . : '\(.\)' 2>/dev/null ||
5667: echo X"$ac_dest" |
5668: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5669: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5670: /^X\(\/\/\)$/{ s//\1/; q; }
5671: /^X\(\/\).*/{ s//\1/; q; }
5672: s/.*/./; q'`
5673: ac_builddir=.
5674:
5675: if test "$ac_dir" != .; then
5676: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5677: # A "../" for each directory in $ac_dir_suffix.
5678: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5679: else
5680: ac_dir_suffix= ac_top_builddir=
5681: fi
5682:
5683: case $srcdir in
5684: .) # No --srcdir option. We are building in place.
5685: ac_srcdir=.
5686: if test -z "$ac_top_builddir"; then
5687: ac_top_srcdir=.
5688: else
5689: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5690: fi ;;
5691: [\\/]* | ?:[\\/]* ) # Absolute path.
5692: ac_srcdir=$srcdir$ac_dir_suffix;
5693: ac_top_srcdir=$srcdir ;;
5694: *) # Relative path.
5695: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5696: ac_top_srcdir=$ac_top_builddir$srcdir ;;
5697: esac
5698: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5699: # absolute.
5700: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5701: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5702: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5703: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5704:
5705:
5706: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5707: echo "$as_me: executing $ac_dest commands" >&6;}
5708: case $ac_dest in
5709: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5710: # Strip MF so we end up with the name of the file.
5711: mf=`echo "$mf" | sed -e 's/:.*$//'`
5712: # Check whether this is an Automake generated Makefile or not.
5713: # We used to match only the files named `Makefile.in', but
5714: # some people rename them; so instead we look at the file content.
5715: # Grep'ing the first line is not enough: some people post-process
5716: # each Makefile.in and add a new line on top of each file to say so.
5717: # So let's grep whole file.
5718: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5719: dirpart=`(dirname "$mf") 2>/dev/null ||
5720: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5721: X"$mf" : 'X\(//\)[^/]' \| \
5722: X"$mf" : 'X\(//\)$' \| \
5723: X"$mf" : 'X\(/\)' \| \
5724: . : '\(.\)' 2>/dev/null ||
5725: echo X"$mf" |
5726: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5727: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5728: /^X\(\/\/\)$/{ s//\1/; q; }
5729: /^X\(\/\).*/{ s//\1/; q; }
5730: s/.*/./; q'`
5731: else
5732: continue
5733: fi
5734: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5735: # Extract the definition of DEP_FILES from the Makefile without
5736: # running `make'.
5737: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
5738: test -z "$DEPDIR" && continue
5739: # When using ansi2knr, U may be empty or an underscore; expand it
5740: U=`sed -n -e '/^U = / s///p' < "$mf"`
5741: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5742: # We invoke sed twice because it is the simplest approach to
5743: # changing $(DEPDIR) to its actual value in the expansion.
5744: for file in `sed -n -e '
5745: /^DEP_FILES = .*\\\\$/ {
5746: s/^DEP_FILES = //
5747: :loop
5748: s/\\\\$//
5749: p
5750: n
5751: /\\\\$/ b loop
5752: p
5753: }
5754: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5755: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5756: # Make sure the directory exists.
5757: test -f "$dirpart/$file" && continue
5758: fdir=`(dirname "$file") 2>/dev/null ||
5759: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5760: X"$file" : 'X\(//\)[^/]' \| \
5761: X"$file" : 'X\(//\)$' \| \
5762: X"$file" : 'X\(/\)' \| \
5763: . : '\(.\)' 2>/dev/null ||
5764: echo X"$file" |
5765: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5766: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5767: /^X\(\/\/\)$/{ s//\1/; q; }
5768: /^X\(\/\).*/{ s//\1/; q; }
5769: s/.*/./; q'`
5770: { if $as_mkdir_p; then
5771: mkdir -p $dirpart/$fdir
5772: else
5773: as_dir=$dirpart/$fdir
5774: as_dirs=
5775: while test ! -d "$as_dir"; do
5776: as_dirs="$as_dir $as_dirs"
5777: as_dir=`(dirname "$as_dir") 2>/dev/null ||
5778: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5779: X"$as_dir" : 'X\(//\)[^/]' \| \
5780: X"$as_dir" : 'X\(//\)$' \| \
5781: X"$as_dir" : 'X\(/\)' \| \
5782: . : '\(.\)' 2>/dev/null ||
5783: echo X"$as_dir" |
5784: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5785: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5786: /^X\(\/\/\)$/{ s//\1/; q; }
5787: /^X\(\/\).*/{ s//\1/; q; }
5788: s/.*/./; q'`
5789: done
5790: test ! -n "$as_dirs" || mkdir $as_dirs
5791: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
5792: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
5793: { (exit 1); exit 1; }; }; }
1.1 paf 5794:
1.2 paf 5795: # echo "creating $dirpart/$file"
5796: echo '# dummy' > "$dirpart/$file"
5797: done
5798: done
5799: ;;
5800: esac
5801: done
5802: _ACEOF
1.1 paf 5803:
1.2 paf 5804: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 paf 5805:
1.2 paf 5806: { (exit 0); exit 0; }
5807: _ACEOF
1.1 paf 5808: chmod +x $CONFIG_STATUS
1.2 paf 5809: ac_clean_files=$ac_clean_files_save
5810:
5811:
5812: # configure is writing to config.log, and then calls config.status.
5813: # config.status does its own redirection, appending to config.log.
5814: # Unfortunately, on DOS this fails, as config.log is still kept open
5815: # by configure, so config.status won't be able to write to it; its
5816: # output is simply discarded. So we exec the FD to /dev/null,
5817: # effectively closing config.log, so it can be properly (re)opened and
5818: # appended to by config.status. When coming back to configure, we
5819: # need to make the FD available again.
5820: if test "$no_create" != yes; then
5821: ac_cs_success=:
5822: ac_config_status_args=
5823: test "$silent" = yes &&
5824: ac_config_status_args="$ac_config_status_args --quiet"
5825: exec 5>/dev/null
5826: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5827: exec 5>>config.log
5828: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5829: # would make configure fail if this is the last instruction.
5830: $ac_cs_success || { (exit 1); exit 1; }
5831: fi
1.1 paf 5832:
5833:
5834: # Local Variables:
5835: # mode:shell-script
5836: # sh-indentation:2
5837: # End:
E-mail: