OSDN Git Service

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