source: vendor/gcc/3.2.2/libjava/libltdl/configure

Last change on this file was 2, checked in by bird, 22 years ago

Initial revision

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