OSDN Git Service

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