Imported Upstream version 2.9.0
[debian/cc1111] / sim / ucsim / 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   --disable-dependency-tracking Speeds up one-time builds
18   --enable-dependency-tracking  Do not reject slow dependency extractors"
19 ac_help="$ac_help
20   --enable-maintainer-mode enable make rules and dependencies not useful
21                           (and sometimes confusing) to the casual installer"
22 ac_help="$ac_help
23   --enable-shared[=PKGS]  build shared libraries [default=yes]"
24 ac_help="$ac_help
25   --enable-static[=PKGS]  build static libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
28 ac_help="$ac_help
29   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
30
31 # Find the correct PATH separator.  Usually this is `:', but
32 # DJGPP uses `;' like DOS.
33 if test "X${PATH_SEPARATOR+set}" != Xset; then
34   UNAME=${UNAME-`uname 2>/dev/null`}
35   case X$UNAME in
36     *-DOS) lt_cv_sys_path_separator=';' ;;
37     *)     lt_cv_sys_path_separator=':' ;;
38   esac
39   PATH_SEPARATOR=$lt_cv_sys_path_separator
40 fi
41
42
43 # Check that we are running under the correct shell.
44 SHELL=${CONFIG_SHELL-/bin/sh}
45
46 case X$ECHO in
47 X*--fallback-echo)
48   # Remove one level of quotation (which was required for Make).
49   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
50   ;;
51 esac
52
53 echo=${ECHO-echo}
54 if test "X$1" = X--no-reexec; then
55   # Discard the --no-reexec flag, and continue.
56   shift
57 elif test "X$1" = X--fallback-echo; then
58   # Avoid inline document here, it may be left over
59   :
60 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
61   # Yippee, $echo works!
62   :
63 else
64   # Restart under the correct shell.
65   exec $SHELL "$0" --no-reexec ${1+"$@"}
66 fi
67
68 if test "X$1" = X--fallback-echo; then
69   # used as fallback echo
70   shift
71   cat <<EOF
72
73 EOF
74   exit 0
75 fi
76
77 # The HP-UX ksh and POSIX shell print the target directory to stdout
78 # if CDPATH is set.
79 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
80
81 if test -z "$ECHO"; then
82 if test "X${echo_test_string+set}" != Xset; then
83 # find a string as large as possible, as long as the shell can cope with it
84   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
85     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
86     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
87        echo_test_string="`eval $cmd`" &&
88        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
89     then
90       break
91     fi
92   done
93 fi
94
95 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
96    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
97    test "X$echo_testing_string" = "X$echo_test_string"; then
98   :
99 else
100   # The Solaris, AIX, and Digital Unix default echo programs unquote
101   # backslashes.  This makes it impossible to quote backslashes using
102   #   echo "$something" | sed 's/\\/\\\\/g'
103   #
104   # So, first we look for a working echo in the user's PATH.
105
106   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
107   for dir in $PATH /usr/ucb; do
108     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
109        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
110        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
111        test "X$echo_testing_string" = "X$echo_test_string"; then
112       echo="$dir/echo"
113       break
114     fi
115   done
116   IFS="$save_ifs"
117
118   if test "X$echo" = Xecho; then
119     # We didn't find a better echo, so look for alternatives.
120     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
121        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
122        test "X$echo_testing_string" = "X$echo_test_string"; then
123       # This shell has a builtin print -r that does the trick.
124       echo='print -r'
125     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
126          test "X$CONFIG_SHELL" != X/bin/ksh; then
127       # If we have ksh, try running configure again with it.
128       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
129       export ORIGINAL_CONFIG_SHELL
130       CONFIG_SHELL=/bin/ksh
131       export CONFIG_SHELL
132       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
133     else
134       # Try using printf.
135       echo='printf %s\n'
136       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
137          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
138          test "X$echo_testing_string" = "X$echo_test_string"; then
139         # Cool, printf works
140         :
141       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
142            test "X$echo_testing_string" = 'X\t' &&
143            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
144            test "X$echo_testing_string" = "X$echo_test_string"; then
145         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
146         export CONFIG_SHELL
147         SHELL="$CONFIG_SHELL"
148         export SHELL
149         echo="$CONFIG_SHELL $0 --fallback-echo"
150       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
151            test "X$echo_testing_string" = 'X\t' &&
152            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
153            test "X$echo_testing_string" = "X$echo_test_string"; then
154         echo="$CONFIG_SHELL $0 --fallback-echo"
155       else
156         # maybe with a smaller string...
157         prev=:
158
159         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
160           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
161           then
162             break
163           fi
164           prev="$cmd"
165         done
166
167         if test "$prev" != 'sed 50q "$0"'; then
168           echo_test_string=`eval $prev`
169           export echo_test_string
170           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
171         else
172           # Oops.  We lost completely, so just stick with echo.
173           echo=echo
174         fi
175       fi
176     fi
177   fi
178 fi
179 fi
180
181 # Copy echo and quote the copy suitably for passing to libtool from
182 # the Makefile, instead of quoting the original, which is used later.
183 ECHO=$echo
184 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
185    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
186 fi
187
188
189 ac_help="$ac_help
190   --disable-libtool-lock  avoid locking (might break parallel builds)"
191 ac_help="$ac_help
192   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
193 ac_help="$ac_help
194   --enable-ltdl-install   install libltdl"
195
196 # Initialize some variables set by options.
197 # The variables have the same names as the options, with
198 # dashes changed to underlines.
199 build=NONE
200 cache_file=./config.cache
201 exec_prefix=NONE
202 host=NONE
203 no_create=
204 nonopt=NONE
205 no_recursion=
206 prefix=NONE
207 program_prefix=NONE
208 program_suffix=NONE
209 program_transform_name=s,x,x,
210 silent=
211 site=
212 srcdir=
213 target=NONE
214 verbose=
215 x_includes=NONE
216 x_libraries=NONE
217 bindir='${exec_prefix}/bin'
218 sbindir='${exec_prefix}/sbin'
219 libexecdir='${exec_prefix}/libexec'
220 datadir='${prefix}/share'
221 sysconfdir='${prefix}/etc'
222 sharedstatedir='${prefix}/com'
223 localstatedir='${prefix}/var'
224 libdir='${exec_prefix}/lib'
225 includedir='${prefix}/include'
226 oldincludedir='/usr/include'
227 infodir='${prefix}/info'
228 mandir='${prefix}/man'
229
230 # Initialize some other variables.
231 subdirs=
232 MFLAGS= MAKEFLAGS=
233 SHELL=${CONFIG_SHELL-/bin/sh}
234 # Maximum number of lines to put in a shell here document.
235 ac_max_here_lines=12
236
237 ac_prev=
238 for ac_option
239 do
240
241   # If the previous option needs an argument, assign it.
242   if test -n "$ac_prev"; then
243     eval "$ac_prev=\$ac_option"
244     ac_prev=
245     continue
246   fi
247
248   case "$ac_option" in
249   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
250   *) ac_optarg= ;;
251   esac
252
253   # Accept the important Cygnus configure options, so we can diagnose typos.
254
255   case "$ac_option" in
256
257   -bindir | --bindir | --bindi | --bind | --bin | --bi)
258     ac_prev=bindir ;;
259   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
260     bindir="$ac_optarg" ;;
261
262   -build | --build | --buil | --bui | --bu)
263     ac_prev=build ;;
264   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
265     build="$ac_optarg" ;;
266
267   -cache-file | --cache-file | --cache-fil | --cache-fi \
268   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
269     ac_prev=cache_file ;;
270   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
271   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
272     cache_file="$ac_optarg" ;;
273
274   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
275     ac_prev=datadir ;;
276   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
277   | --da=*)
278     datadir="$ac_optarg" ;;
279
280   -disable-* | --disable-*)
281     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
282     # Reject names that are not valid shell variable names.
283     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
284       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
285     fi
286     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
287     eval "enable_${ac_feature}=no" ;;
288
289   -enable-* | --enable-*)
290     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
291     # Reject names that are not valid shell variable names.
292     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
293       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
294     fi
295     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
296     case "$ac_option" in
297       *=*) ;;
298       *) ac_optarg=yes ;;
299     esac
300     eval "enable_${ac_feature}='$ac_optarg'" ;;
301
302   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
303   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
304   | --exec | --exe | --ex)
305     ac_prev=exec_prefix ;;
306   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
307   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
308   | --exec=* | --exe=* | --ex=*)
309     exec_prefix="$ac_optarg" ;;
310
311   -gas | --gas | --ga | --g)
312     # Obsolete; use --with-gas.
313     with_gas=yes ;;
314
315   -help | --help | --hel | --he)
316     # Omit some internal or obsolete options to make the list less imposing.
317     # This message is too long to be a string in the A/UX 3.1 sh.
318     cat << EOF
319 Usage: configure [options] [host]
320 Options: [defaults in brackets after descriptions]
321 Configuration:
322   --cache-file=FILE       cache test results in FILE
323   --help                  print this message
324   --no-create             do not create output files
325   --quiet, --silent       do not print \`checking...' messages
326   --version               print the version of autoconf that created configure
327 Directory and file names:
328   --prefix=PREFIX         install architecture-independent files in PREFIX
329                           [$ac_default_prefix]
330   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
331                           [same as prefix]
332   --bindir=DIR            user executables in DIR [EPREFIX/bin]
333   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
334   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
335   --datadir=DIR           read-only architecture-independent data in DIR
336                           [PREFIX/share]
337   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
338   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
339                           [PREFIX/com]
340   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
341   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
342   --includedir=DIR        C header files in DIR [PREFIX/include]
343   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
344   --infodir=DIR           info documentation in DIR [PREFIX/info]
345   --mandir=DIR            man documentation in DIR [PREFIX/man]
346   --srcdir=DIR            find the sources in DIR [configure dir or ..]
347   --program-prefix=PREFIX prepend PREFIX to installed program names
348   --program-suffix=SUFFIX append SUFFIX to installed program names
349   --program-transform-name=PROGRAM
350                           run sed PROGRAM on installed program names
351 EOF
352     cat << EOF
353 Host type:
354   --build=BUILD           configure for building on BUILD [BUILD=HOST]
355   --host=HOST             configure for HOST [guessed]
356   --target=TARGET         configure for TARGET [TARGET=HOST]
357 Features and packages:
358   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
359   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
360   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
361   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
362   --x-includes=DIR        X include files are in DIR
363   --x-libraries=DIR       X library files are in DIR
364 EOF
365     if test -n "$ac_help"; then
366       echo "--enable and --with options recognized:$ac_help"
367     fi
368     exit 0 ;;
369
370   -host | --host | --hos | --ho)
371     ac_prev=host ;;
372   -host=* | --host=* | --hos=* | --ho=*)
373     host="$ac_optarg" ;;
374
375   -includedir | --includedir | --includedi | --included | --include \
376   | --includ | --inclu | --incl | --inc)
377     ac_prev=includedir ;;
378   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
379   | --includ=* | --inclu=* | --incl=* | --inc=*)
380     includedir="$ac_optarg" ;;
381
382   -infodir | --infodir | --infodi | --infod | --info | --inf)
383     ac_prev=infodir ;;
384   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
385     infodir="$ac_optarg" ;;
386
387   -libdir | --libdir | --libdi | --libd)
388     ac_prev=libdir ;;
389   -libdir=* | --libdir=* | --libdi=* | --libd=*)
390     libdir="$ac_optarg" ;;
391
392   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
393   | --libexe | --libex | --libe)
394     ac_prev=libexecdir ;;
395   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
396   | --libexe=* | --libex=* | --libe=*)
397     libexecdir="$ac_optarg" ;;
398
399   -localstatedir | --localstatedir | --localstatedi | --localstated \
400   | --localstate | --localstat | --localsta | --localst \
401   | --locals | --local | --loca | --loc | --lo)
402     ac_prev=localstatedir ;;
403   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
404   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
405   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
406     localstatedir="$ac_optarg" ;;
407
408   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
409     ac_prev=mandir ;;
410   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
411     mandir="$ac_optarg" ;;
412
413   -nfp | --nfp | --nf)
414     # Obsolete; use --without-fp.
415     with_fp=no ;;
416
417   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
418   | --no-cr | --no-c)
419     no_create=yes ;;
420
421   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
422   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
423     no_recursion=yes ;;
424
425   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
426   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
427   | --oldin | --oldi | --old | --ol | --o)
428     ac_prev=oldincludedir ;;
429   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
430   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
431   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
432     oldincludedir="$ac_optarg" ;;
433
434   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
435     ac_prev=prefix ;;
436   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
437     prefix="$ac_optarg" ;;
438
439   -program-prefix | --program-prefix | --program-prefi | --program-pref \
440   | --program-pre | --program-pr | --program-p)
441     ac_prev=program_prefix ;;
442   -program-prefix=* | --program-prefix=* | --program-prefi=* \
443   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
444     program_prefix="$ac_optarg" ;;
445
446   -program-suffix | --program-suffix | --program-suffi | --program-suff \
447   | --program-suf | --program-su | --program-s)
448     ac_prev=program_suffix ;;
449   -program-suffix=* | --program-suffix=* | --program-suffi=* \
450   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
451     program_suffix="$ac_optarg" ;;
452
453   -program-transform-name | --program-transform-name \
454   | --program-transform-nam | --program-transform-na \
455   | --program-transform-n | --program-transform- \
456   | --program-transform | --program-transfor \
457   | --program-transfo | --program-transf \
458   | --program-trans | --program-tran \
459   | --progr-tra | --program-tr | --program-t)
460     ac_prev=program_transform_name ;;
461   -program-transform-name=* | --program-transform-name=* \
462   | --program-transform-nam=* | --program-transform-na=* \
463   | --program-transform-n=* | --program-transform-=* \
464   | --program-transform=* | --program-transfor=* \
465   | --program-transfo=* | --program-transf=* \
466   | --program-trans=* | --program-tran=* \
467   | --progr-tra=* | --program-tr=* | --program-t=*)
468     program_transform_name="$ac_optarg" ;;
469
470   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
471   | -silent | --silent | --silen | --sile | --sil)
472     silent=yes ;;
473
474   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
475     ac_prev=sbindir ;;
476   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
477   | --sbi=* | --sb=*)
478     sbindir="$ac_optarg" ;;
479
480   -sharedstatedir | --sharedstatedir | --sharedstatedi \
481   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
482   | --sharedst | --shareds | --shared | --share | --shar \
483   | --sha | --sh)
484     ac_prev=sharedstatedir ;;
485   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
486   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
487   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
488   | --sha=* | --sh=*)
489     sharedstatedir="$ac_optarg" ;;
490
491   -site | --site | --sit)
492     ac_prev=site ;;
493   -site=* | --site=* | --sit=*)
494     site="$ac_optarg" ;;
495
496   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
497     ac_prev=srcdir ;;
498   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
499     srcdir="$ac_optarg" ;;
500
501   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
502   | --syscon | --sysco | --sysc | --sys | --sy)
503     ac_prev=sysconfdir ;;
504   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
505   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
506     sysconfdir="$ac_optarg" ;;
507
508   -target | --target | --targe | --targ | --tar | --ta | --t)
509     ac_prev=target ;;
510   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
511     target="$ac_optarg" ;;
512
513   -v | -verbose | --verbose | --verbos | --verbo | --verb)
514     verbose=yes ;;
515
516   -version | --version | --versio | --versi | --vers)
517     echo "configure generated by autoconf version 2.13"
518     exit 0 ;;
519
520   -with-* | --with-*)
521     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
522     # Reject names that are not valid shell variable names.
523     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
524       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
525     fi
526     ac_package=`echo $ac_package| sed 's/-/_/g'`
527     case "$ac_option" in
528       *=*) ;;
529       *) ac_optarg=yes ;;
530     esac
531     eval "with_${ac_package}='$ac_optarg'" ;;
532
533   -without-* | --without-*)
534     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
535     # Reject names that are not valid shell variable names.
536     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
537       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
538     fi
539     ac_package=`echo $ac_package| sed 's/-/_/g'`
540     eval "with_${ac_package}=no" ;;
541
542   --x)
543     # Obsolete; use --with-x.
544     with_x=yes ;;
545
546   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
547   | --x-incl | --x-inc | --x-in | --x-i)
548     ac_prev=x_includes ;;
549   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
550   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
551     x_includes="$ac_optarg" ;;
552
553   -x-libraries | --x-libraries | --x-librarie | --x-librari \
554   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
555     ac_prev=x_libraries ;;
556   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
557   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
558     x_libraries="$ac_optarg" ;;
559
560   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
561     ;;
562
563   *)
564     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
565       echo "configure: warning: $ac_option: invalid host type" 1>&2
566     fi
567     if test "x$nonopt" != xNONE; then
568       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
569     fi
570     nonopt="$ac_option"
571     ;;
572
573   esac
574 done
575
576 if test -n "$ac_prev"; then
577   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
578 fi
579
580 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
581
582 # File descriptor usage:
583 # 0 standard input
584 # 1 file creation
585 # 2 errors and warnings
586 # 3 some systems may open it to /dev/tty
587 # 4 used on the Kubota Titan
588 # 6 checking for... messages and results
589 # 5 compiler messages saved in config.log
590 if test "$silent" = yes; then
591   exec 6>/dev/null
592 else
593   exec 6>&1
594 fi
595 exec 5>./config.log
596
597 echo "\
598 This file contains any messages produced by compilers while
599 running configure, to aid debugging if configure makes a mistake.
600 " 1>&5
601
602 # Strip out --no-create and --no-recursion so they do not pile up.
603 # Also quote any args containing shell metacharacters.
604 ac_configure_args=
605 for ac_arg
606 do
607   case "$ac_arg" in
608   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
609   | --no-cr | --no-c) ;;
610   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
611   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
612   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
613   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
614   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
615   esac
616 done
617
618 # NLS nuisances.
619 # Only set these to C if already set.  These must not be set unconditionally
620 # because not all systems understand e.g. LANG=C (notably SCO).
621 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
622 # Non-C LC_CTYPE values break the ctype check.
623 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
624 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
625 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
626 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
627
628 # confdefs.h avoids OS command line length limits that DEFS can exceed.
629 rm -rf conftest* confdefs.h
630 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
631 echo > confdefs.h
632
633 # A filename unique to this package, relative to the directory that
634 # configure is in, which we can look for to find out if srcdir is correct.
635 ac_unique_file=ltdl.c
636
637 # Find the source files, if location was not specified.
638 if test -z "$srcdir"; then
639   ac_srcdir_defaulted=yes
640   # Try the directory containing this script, then its parent.
641   ac_prog=$0
642   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
643   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
644   srcdir=$ac_confdir
645   if test ! -r $srcdir/$ac_unique_file; then
646     srcdir=..
647   fi
648 else
649   ac_srcdir_defaulted=no
650 fi
651 if test ! -r $srcdir/$ac_unique_file; then
652   if test "$ac_srcdir_defaulted" = yes; then
653     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
654   else
655     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
656   fi
657 fi
658 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
659
660 # Prefer explicitly selected file to automatically selected ones.
661 if test -z "$CONFIG_SITE"; then
662   if test "x$prefix" != xNONE; then
663     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
664   else
665     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
666   fi
667 fi
668 for ac_site_file in $CONFIG_SITE; do
669   if test -r "$ac_site_file"; then
670     echo "loading site script $ac_site_file"
671     . "$ac_site_file"
672   fi
673 done
674
675 if test -r "$cache_file"; then
676   echo "loading cache $cache_file"
677   . $cache_file
678 else
679   echo "creating cache $cache_file"
680   > $cache_file
681 fi
682
683 ac_ext=c
684 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
685 ac_cpp='$CPP $CPPFLAGS'
686 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
687 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
688 cross_compiling=$ac_cv_prog_cc_cross
689
690 ac_exeext=
691 ac_objext=o
692 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
693   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
694   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
695     ac_n= ac_c='
696 ' ac_t='        '
697   else
698     ac_n=-n ac_c= ac_t=
699   fi
700 else
701   ac_n= ac_c='\c' ac_t=
702 fi
703
704
705
706 # Check whether --with-auxdir or --without-auxdir was given.
707 if test "${with_auxdir+set}" = set; then
708   withval="$with_auxdir"
709   ac_aux_dir=
710 for ac_dir in $with_auxdir; do
711   if test -f $ac_dir/install-sh; then
712     ac_aux_dir=$ac_dir
713     ac_install_sh="$ac_aux_dir/install-sh -c"
714     break
715   elif test -f $ac_dir/install.sh; then
716     ac_aux_dir=$ac_dir
717     ac_install_sh="$ac_aux_dir/install.sh -c"
718     break
719   fi
720 done
721 if test -z "$ac_aux_dir"; then
722   { echo "configure: error: can not find install-sh or install.sh in $with_auxdir" 1>&2; exit 1; }
723 fi
724 ac_config_guess=$ac_aux_dir/config.guess
725 ac_config_sub=$ac_aux_dir/config.sub
726 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
727
728 else
729   ac_aux_dir=
730 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
731   if test -f $ac_dir/install-sh; then
732     ac_aux_dir=$ac_dir
733     ac_install_sh="$ac_aux_dir/install-sh -c"
734     break
735   elif test -f $ac_dir/install.sh; then
736     ac_aux_dir=$ac_dir
737     ac_install_sh="$ac_aux_dir/install.sh -c"
738     break
739   fi
740 done
741 if test -z "$ac_aux_dir"; then
742   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
743 fi
744 ac_config_guess=$ac_aux_dir/config.guess
745 ac_config_sub=$ac_aux_dir/config.sub
746 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
747
748 fi
749
750
751 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
752   if test -f ${srcdir}/ltmain.sh; then
753     # if libltdl is libtoolized, it is assumed to be stand-alone and
754     # installed unless the command line overrides it (tested above)
755     enable_ltdl_install=yes
756   else
757     echo "configure: warning: *** The top-level configure must select either" 1>&2
758     echo "configure: warning: *** A""C_LIBLTDL_INSTALLABLE or A""C_LIBLTDL_CONVENIENCE." 1>&2
759     { echo "configure: error: *** Maybe you want to --enable-ltdl-install?" 1>&2; exit 1; }
760   fi
761 fi
762
763
764 # expand $ac_aux_dir to an absolute path
765 am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
766
767 # Find a good install program.  We prefer a C program (faster),
768 # so one script is as good as another.  But avoid the broken or
769 # incompatible versions:
770 # SysV /etc/install, /usr/sbin/install
771 # SunOS /usr/etc/install
772 # IRIX /sbin/install
773 # AIX /bin/install
774 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
775 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
776 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
777 # ./install, which can be erroneously created by make from ./install.sh.
778 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
779 echo "configure:780: checking for a BSD compatible install" >&5
780 if test -z "$INSTALL"; then
781 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
782   echo $ac_n "(cached) $ac_c" 1>&6
783 else
784     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
785   for ac_dir in $PATH; do
786     # Account for people who put trailing slashes in PATH elements.
787     case "$ac_dir/" in
788     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
789     *)
790       # OSF1 and SCO ODT 3.0 have their own names for install.
791       # Don't use installbsd from OSF since it installs stuff as root
792       # by default.
793       for ac_prog in ginstall scoinst install; do
794         if test -f $ac_dir/$ac_prog; then
795           if test $ac_prog = install &&
796             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
797             # AIX install.  It has an incompatible calling convention.
798             :
799           else
800             ac_cv_path_install="$ac_dir/$ac_prog -c"
801             break 2
802           fi
803         fi
804       done
805       ;;
806     esac
807   done
808   IFS="$ac_save_IFS"
809
810 fi
811   if test "${ac_cv_path_install+set}" = set; then
812     INSTALL="$ac_cv_path_install"
813   else
814     # As a last resort, use the slow shell script.  We don't cache a
815     # path for INSTALL within a source directory, because that will
816     # break other packages using the cache if that directory is
817     # removed, or if the path is relative.
818     INSTALL="$ac_install_sh"
819   fi
820 fi
821 echo "$ac_t""$INSTALL" 1>&6
822
823 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
824 # It thinks the first close brace ends the variable substitution.
825 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
826
827 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
828
829 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
830
831 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
832 echo "configure:833: checking whether build environment is sane" >&5
833 # Just in case
834 sleep 1
835 echo timestamp > conftest.file
836 # Do `set' in a subshell so we don't clobber the current shell's
837 # arguments.  Must try -L first in case configure is actually a
838 # symlink; some systems play weird games with the mod time of symlinks
839 # (eg FreeBSD returns the mod time of the symlink's containing
840 # directory).
841 if (
842    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
843    if test "$*" = "X"; then
844       # -L didn't work.
845       set X `ls -t $srcdir/configure conftest.file`
846    fi
847    rm -f conftest.file
848    if test "$*" != "X $srcdir/configure conftest.file" \
849       && test "$*" != "X conftest.file $srcdir/configure"; then
850
851       # If neither matched, then we have a broken ls.  This can happen
852       # if, for instance, CONFIG_SHELL is bash and it inherits a
853       # broken ls alias from the environment.  This has actually
854       # happened.  Such a system could not be considered "sane".
855       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
856 alias in your environment" 1>&2; exit 1; }
857    fi
858
859    test "$2" = conftest.file
860    )
861 then
862    # Ok.
863    :
864 else
865    { echo "configure: error: newly created file is older than distributed files!
866 Check your system clock" 1>&2; exit 1; }
867 fi
868 echo "$ac_t""yes" 1>&6
869 if test "$program_transform_name" = s,x,x,; then
870   program_transform_name=
871 else
872   # Double any \ or $.  echo might interpret backslashes.
873   cat <<\EOF_SED > conftestsed
874 s,\\,\\\\,g; s,\$,$$,g
875 EOF_SED
876   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
877   rm -f conftestsed
878 fi
879 test "$program_prefix" != NONE &&
880   program_transform_name="s,^,${program_prefix},; $program_transform_name"
881 # Use a double $ so make ignores it.
882 test "$program_suffix" != NONE &&
883   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
884
885 # sed with no file args requires a program.
886 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
887
888 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
889 # Use eval to expand $SHELL
890 if eval "$MISSING --run true"; then
891   am_missing_run="$MISSING --run "
892 else
893   am_missing_run=
894   am_backtick='`'
895   echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2
896 fi
897
898 for ac_prog in mawk gawk nawk awk
899 do
900 # Extract the first word of "$ac_prog", so it can be a program name with args.
901 set dummy $ac_prog; ac_word=$2
902 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
903 echo "configure:904: checking for $ac_word" >&5
904 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
905   echo $ac_n "(cached) $ac_c" 1>&6
906 else
907   if test -n "$AWK"; then
908   ac_cv_prog_AWK="$AWK" # Let the user override the test.
909 else
910   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
911   ac_dummy="$PATH"
912   for ac_dir in $ac_dummy; do
913     test -z "$ac_dir" && ac_dir=.
914     if test -f $ac_dir/$ac_word; then
915       ac_cv_prog_AWK="$ac_prog"
916       break
917     fi
918   done
919   IFS="$ac_save_ifs"
920 fi
921 fi
922 AWK="$ac_cv_prog_AWK"
923 if test -n "$AWK"; then
924   echo "$ac_t""$AWK" 1>&6
925 else
926   echo "$ac_t""no" 1>&6
927 fi
928
929 test -n "$AWK" && break
930 done
931
932 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
933 echo "configure:934: checking whether ${MAKE-make} sets \${MAKE}" >&5
934 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
935 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
936   echo $ac_n "(cached) $ac_c" 1>&6
937 else
938   cat > conftestmake <<\EOF
939 all:
940         @echo 'ac_maketemp="${MAKE}"'
941 EOF
942 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
943 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
944 if test -n "$ac_maketemp"; then
945   eval ac_cv_prog_make_${ac_make}_set=yes
946 else
947   eval ac_cv_prog_make_${ac_make}_set=no
948 fi
949 rm -f conftestmake
950 fi
951 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
952   echo "$ac_t""yes" 1>&6
953   SET_MAKE=
954 else
955   echo "$ac_t""no" 1>&6
956   SET_MAKE="MAKE=${MAKE-make}"
957 fi
958
959 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
960 if test "${enable_dependency_tracking+set}" = set; then
961   enableval="$enable_dependency_tracking"
962   :
963 fi
964
965 if test "x$enable_dependency_tracking" != xno; then
966   am_depcomp="$ac_aux_dir/depcomp"
967   AMDEPBACKSLASH='\'
968 fi
969
970
971 if test "x$enable_dependency_tracking" != xno; then
972   AMDEP_TRUE=
973   AMDEP_FALSE='#'
974 else
975   AMDEP_TRUE='#'
976   AMDEP_FALSE=
977 fi
978
979
980
981
982 rm -f .deps 2>/dev/null
983 mkdir .deps 2>/dev/null
984 if test -d .deps; then
985   DEPDIR=.deps
986 else
987   # MS-DOS does not allow filenames that begin with a dot.
988   DEPDIR=_deps
989 fi
990 rmdir .deps 2>/dev/null
991
992
993 # test to see if srcdir already configured
994 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
995    test -f $srcdir/config.status; then
996   { echo "configure: error: source directory already configured; run \"make distclean\" there first" 1>&2; exit 1; }
997 fi
998
999 # Define the identity of the package.
1000 PACKAGE=libltdl
1001 VERSION=1.2
1002
1003
1004 # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
1005 # the ones we care about.
1006
1007 # Autoconf 2.50 always computes EXEEXT.  However we need to be
1008 # compatible with 2.13, for now.  So we always define EXEEXT, but we
1009 # don't compute it.
1010
1011 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1012 # requests that it be used.  This is a bit dumb.
1013 : ${OBJEXT=o}
1014
1015
1016 # Some tools Automake needs.
1017
1018 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1019
1020
1021 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1022
1023
1024 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1025
1026
1027 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1028
1029
1030 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1031
1032
1033 AMTAR=${AMTAR-"${am_missing_run}tar"}
1034
1035 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1036
1037 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1038
1039 # We need awk for the "check" target.  The system "awk" is bad on
1040 # some platforms.
1041
1042
1043   
1044
1045 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1046 echo "configure:1047: checking whether to enable maintainer-specific portions of Makefiles" >&5
1047     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1048 if test "${enable_maintainer_mode+set}" = set; then
1049   enableval="$enable_maintainer_mode"
1050   USE_MAINTAINER_MODE=$enableval
1051 else
1052   USE_MAINTAINER_MODE=no
1053 fi
1054
1055   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1056   
1057
1058 if test $USE_MAINTAINER_MODE = yes; then
1059   MAINTAINER_MODE_TRUE=
1060   MAINTAINER_MODE_FALSE='#'
1061 else
1062   MAINTAINER_MODE_TRUE='#'
1063   MAINTAINER_MODE_FALSE=
1064 fi
1065   MAINT=$MAINTAINER_MODE_TRUE
1066   
1067
1068
1069 # Extract the first word of "gcc", so it can be a program name with args.
1070 set dummy gcc; ac_word=$2
1071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1072 echo "configure:1073: checking for $ac_word" >&5
1073 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1074   echo $ac_n "(cached) $ac_c" 1>&6
1075 else
1076   if test -n "$CC"; then
1077   ac_cv_prog_CC="$CC" # Let the user override the test.
1078 else
1079   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1080   ac_dummy="$PATH"
1081   for ac_dir in $ac_dummy; do
1082     test -z "$ac_dir" && ac_dir=.
1083     if test -f $ac_dir/$ac_word; then
1084       ac_cv_prog_CC="gcc"
1085       break
1086     fi
1087   done
1088   IFS="$ac_save_ifs"
1089 fi
1090 fi
1091 CC="$ac_cv_prog_CC"
1092 if test -n "$CC"; then
1093   echo "$ac_t""$CC" 1>&6
1094 else
1095   echo "$ac_t""no" 1>&6
1096 fi
1097
1098 if test -z "$CC"; then
1099   # Extract the first word of "cc", so it can be a program name with args.
1100 set dummy cc; ac_word=$2
1101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1102 echo "configure:1103: checking for $ac_word" >&5
1103 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1104   echo $ac_n "(cached) $ac_c" 1>&6
1105 else
1106   if test -n "$CC"; then
1107   ac_cv_prog_CC="$CC" # Let the user override the test.
1108 else
1109   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1110   ac_prog_rejected=no
1111   ac_dummy="$PATH"
1112   for ac_dir in $ac_dummy; do
1113     test -z "$ac_dir" && ac_dir=.
1114     if test -f $ac_dir/$ac_word; then
1115       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1116         ac_prog_rejected=yes
1117         continue
1118       fi
1119       ac_cv_prog_CC="cc"
1120       break
1121     fi
1122   done
1123   IFS="$ac_save_ifs"
1124 if test $ac_prog_rejected = yes; then
1125   # We found a bogon in the path, so make sure we never use it.
1126   set dummy $ac_cv_prog_CC
1127   shift
1128   if test $# -gt 0; then
1129     # We chose a different compiler from the bogus one.
1130     # However, it has the same basename, so the bogon will be chosen
1131     # first if we set CC to just the basename; use the full file name.
1132     shift
1133     set dummy "$ac_dir/$ac_word" "$@"
1134     shift
1135     ac_cv_prog_CC="$@"
1136   fi
1137 fi
1138 fi
1139 fi
1140 CC="$ac_cv_prog_CC"
1141 if test -n "$CC"; then
1142   echo "$ac_t""$CC" 1>&6
1143 else
1144   echo "$ac_t""no" 1>&6
1145 fi
1146
1147   if test -z "$CC"; then
1148     case "`uname -s`" in
1149     *win32* | *WIN32*)
1150       # Extract the first word of "cl", so it can be a program name with args.
1151 set dummy cl; ac_word=$2
1152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1153 echo "configure:1154: checking for $ac_word" >&5
1154 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1155   echo $ac_n "(cached) $ac_c" 1>&6
1156 else
1157   if test -n "$CC"; then
1158   ac_cv_prog_CC="$CC" # Let the user override the test.
1159 else
1160   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1161   ac_dummy="$PATH"
1162   for ac_dir in $ac_dummy; do
1163     test -z "$ac_dir" && ac_dir=.
1164     if test -f $ac_dir/$ac_word; then
1165       ac_cv_prog_CC="cl"
1166       break
1167     fi
1168   done
1169   IFS="$ac_save_ifs"
1170 fi
1171 fi
1172 CC="$ac_cv_prog_CC"
1173 if test -n "$CC"; then
1174   echo "$ac_t""$CC" 1>&6
1175 else
1176   echo "$ac_t""no" 1>&6
1177 fi
1178  ;;
1179     esac
1180   fi
1181   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1182 fi
1183
1184 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1185 echo "configure:1186: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1186
1187 ac_ext=c
1188 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1189 ac_cpp='$CPP $CPPFLAGS'
1190 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1191 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1192 cross_compiling=$ac_cv_prog_cc_cross
1193
1194 cat > conftest.$ac_ext << EOF
1195
1196 #line 1197 "configure"
1197 #include "confdefs.h"
1198
1199 main(){return(0);}
1200 EOF
1201 if { (eval echo configure:1202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1202   ac_cv_prog_cc_works=yes
1203   # If we can't run a trivial program, we are probably using a cross compiler.
1204   if (./conftest; exit) 2>/dev/null; then
1205     ac_cv_prog_cc_cross=no
1206   else
1207     ac_cv_prog_cc_cross=yes
1208   fi
1209 else
1210   echo "configure: failed program was:" >&5
1211   cat conftest.$ac_ext >&5
1212   ac_cv_prog_cc_works=no
1213 fi
1214 rm -fr conftest*
1215 ac_ext=c
1216 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1219 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1220 cross_compiling=$ac_cv_prog_cc_cross
1221
1222 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1223 if test $ac_cv_prog_cc_works = no; then
1224   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1225 fi
1226 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1227 echo "configure:1228: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1228 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1229 cross_compiling=$ac_cv_prog_cc_cross
1230
1231 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1232 echo "configure:1233: checking whether we are using GNU C" >&5
1233 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1234   echo $ac_n "(cached) $ac_c" 1>&6
1235 else
1236   cat > conftest.c <<EOF
1237 #ifdef __GNUC__
1238   yes;
1239 #endif
1240 EOF
1241 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1242   ac_cv_prog_gcc=yes
1243 else
1244   ac_cv_prog_gcc=no
1245 fi
1246 fi
1247
1248 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1249
1250 if test $ac_cv_prog_gcc = yes; then
1251   GCC=yes
1252 else
1253   GCC=
1254 fi
1255
1256 ac_test_CFLAGS="${CFLAGS+set}"
1257 ac_save_CFLAGS="$CFLAGS"
1258 CFLAGS=
1259 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1260 echo "configure:1261: checking whether ${CC-cc} accepts -g" >&5
1261 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1262   echo $ac_n "(cached) $ac_c" 1>&6
1263 else
1264   echo 'void f(){}' > conftest.c
1265 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1266   ac_cv_prog_cc_g=yes
1267 else
1268   ac_cv_prog_cc_g=no
1269 fi
1270 rm -f conftest*
1271
1272 fi
1273
1274 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1275 if test "$ac_test_CFLAGS" = set; then
1276   CFLAGS="$ac_save_CFLAGS"
1277 elif test $ac_cv_prog_cc_g = yes; then
1278   if test "$GCC" = yes; then
1279     CFLAGS="-g -O2"
1280   else
1281     CFLAGS="-g"
1282   fi
1283 else
1284   if test "$GCC" = yes; then
1285     CFLAGS="-O2"
1286   else
1287     CFLAGS=
1288   fi
1289 fi
1290
1291
1292 am_make=${MAKE-make}
1293 cat > confinc << 'END'
1294 doit:
1295         @echo done
1296 END
1297 # If we don't find an include directive, just comment out the code.
1298 echo $ac_n "checking for style of include used by $am_make""... $ac_c" 1>&6
1299 echo "configure:1300: checking for style of include used by $am_make" >&5
1300 am__include='#'
1301 am__quote=
1302 _am_result=none
1303 # First try GNU make style include.
1304 echo "include confinc" > confmf
1305 # We grep out `Entering directory' and `Leaving directory'
1306 # messages which can occur if `w' ends up in MAKEFLAGS.
1307 # In particular we don't look at `^make:' because GNU make might
1308 # be invoked under some other name (usually "gmake"), in which
1309 # case it prints its new name instead of `make'.
1310 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1311    am__include=include
1312    am__quote=
1313    _am_result=GNU
1314 fi
1315 # Now try BSD make style include.
1316 if test "$am__include" = "#"; then
1317    echo '.include "confinc"' > confmf
1318    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1319       am__include=.include
1320       am__quote='"'
1321       _am_result=BSD
1322    fi
1323 fi
1324
1325
1326 echo "$ac_t""$_am_result" 1>&6
1327 rm -f confinc confmf
1328
1329
1330 depcc="$CC"   am_compiler_list=
1331
1332 echo $ac_n "checking dependency style of $depcc""... $ac_c" 1>&6
1333 echo "configure:1334: checking dependency style of $depcc" >&5
1334 if eval "test \"`echo '$''{'am_cv_CC_dependencies_compiler_type'+set}'`\" = set"; then
1335   echo $ac_n "(cached) $ac_c" 1>&6
1336 else
1337   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1338   # We make a subdir and do the tests there.  Otherwise we can end up
1339   # making bogus files that we don't know about and never remove.  For
1340   # instance it was reported that on HP-UX the gcc test will end up
1341   # making a dummy file named `D' -- because `-MD' means `put the output
1342   # in D'.
1343   mkdir conftest.dir
1344   # Copy depcomp to subdir because otherwise we won't find it if we're
1345   # using a relative directory.
1346   cp "$am_depcomp" conftest.dir
1347   cd conftest.dir
1348
1349   am_cv_CC_dependencies_compiler_type=none
1350   if test "$am_compiler_list" = ""; then
1351      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1352   fi
1353   for depmode in $am_compiler_list; do
1354     # We need to recreate these files for each test, as the compiler may
1355     # overwrite some of them when testing with obscure command lines.
1356     # This happens at least with the AIX C compiler.
1357     echo '#include "conftest.h"' > conftest.c
1358     echo 'int i;' > conftest.h
1359     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
1360
1361     case $depmode in
1362     nosideeffect)
1363       # after this tag, mechanisms are not by side-effect, so they'll
1364       # only be used when explicitly requested
1365       if test "x$enable_dependency_tracking" = xyes; then
1366         continue
1367       else
1368         break
1369       fi
1370       ;;
1371     none) break ;;
1372     esac
1373     # We check with `-c' and `-o' for the sake of the "dashmstdout"
1374     # mode.  It turns out that the SunPro C++ compiler does not properly
1375     # handle `-M -o', and we need to detect this.
1376     if depmode=$depmode \
1377        source=conftest.c object=conftest.o \
1378        depfile=conftest.Po tmpdepfile=conftest.TPo \
1379        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
1380        grep conftest.h conftest.Po > /dev/null 2>&1 &&
1381        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1382       am_cv_CC_dependencies_compiler_type=$depmode
1383       break
1384     fi
1385   done
1386
1387   cd ..
1388   rm -rf conftest.dir
1389 else
1390   am_cv_CC_dependencies_compiler_type=none
1391 fi
1392
1393 fi
1394
1395 echo "$ac_t""$am_cv_CC_dependencies_compiler_type" 1>&6
1396 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
1397
1398
1399 echo $ac_n "checking for working const""... $ac_c" 1>&6
1400 echo "configure:1401: checking for working const" >&5
1401 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1402   echo $ac_n "(cached) $ac_c" 1>&6
1403 else
1404   cat > conftest.$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1407
1408 int main() {
1409
1410 /* Ultrix mips cc rejects this.  */
1411 typedef int charset[2]; const charset x;
1412 /* SunOS 4.1.1 cc rejects this.  */
1413 char const *const *ccp;
1414 char **p;
1415 /* NEC SVR4.0.2 mips cc rejects this.  */
1416 struct point {int x, y;};
1417 static struct point const zero = {0,0};
1418 /* AIX XL C 1.02.0.0 rejects this.
1419    It does not let you subtract one const X* pointer from another in an arm
1420    of an if-expression whose if-part is not a constant expression */
1421 const char *g = "string";
1422 ccp = &g + (g ? g-g : 0);
1423 /* HPUX 7.0 cc rejects these. */
1424 ++ccp;
1425 p = (char**) ccp;
1426 ccp = (char const *const *) p;
1427 { /* SCO 3.2v4 cc rejects this.  */
1428   char *t;
1429   char const *s = 0 ? (char *) 0 : (char const *) 0;
1430
1431   *t++ = 0;
1432 }
1433 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1434   int x[] = {25, 17};
1435   const int *foo = &x[0];
1436   ++foo;
1437 }
1438 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1439   typedef const int *iptr;
1440   iptr p = 0;
1441   ++p;
1442 }
1443 { /* AIX XL C 1.02.0.0 rejects this saying
1444      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1445   struct s { int j; const int *ap[3]; };
1446   struct s *b; b->j = 5;
1447 }
1448 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1449   const int foo = 10;
1450 }
1451
1452 ; return 0; }
1453 EOF
1454 if { (eval echo configure:1455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1455   rm -rf conftest*
1456   ac_cv_c_const=yes
1457 else
1458   echo "configure: failed program was:" >&5
1459   cat conftest.$ac_ext >&5
1460   rm -rf conftest*
1461   ac_cv_c_const=no
1462 fi
1463 rm -f conftest*
1464 fi
1465
1466 echo "$ac_t""$ac_cv_c_const" 1>&6
1467 if test $ac_cv_c_const = no; then
1468   cat >> confdefs.h <<\EOF
1469 #define const 
1470 EOF
1471
1472 fi
1473
1474 echo $ac_n "checking for inline""... $ac_c" 1>&6
1475 echo "configure:1476: checking for inline" >&5
1476 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1477   echo $ac_n "(cached) $ac_c" 1>&6
1478 else
1479   ac_cv_c_inline=no
1480 for ac_kw in inline __inline__ __inline; do
1481   cat > conftest.$ac_ext <<EOF
1482 #line 1483 "configure"
1483 #include "confdefs.h"
1484
1485 int main() {
1486 } $ac_kw foo() {
1487 ; return 0; }
1488 EOF
1489 if { (eval echo configure:1490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1490   rm -rf conftest*
1491   ac_cv_c_inline=$ac_kw; break
1492 else
1493   echo "configure: failed program was:" >&5
1494   cat conftest.$ac_ext >&5
1495 fi
1496 rm -f conftest*
1497 done
1498
1499 fi
1500
1501 echo "$ac_t""$ac_cv_c_inline" 1>&6
1502 case "$ac_cv_c_inline" in
1503   inline | yes) ;;
1504   no) cat >> confdefs.h <<\EOF
1505 #define inline 
1506 EOF
1507  ;;
1508   *)  cat >> confdefs.h <<EOF
1509 #define inline $ac_cv_c_inline
1510 EOF
1511  ;;
1512 esac
1513
1514
1515
1516 # Find the correct PATH separator.  Usually this is `:', but
1517 # DJGPP uses `;' like DOS.
1518 if test "X${PATH_SEPARATOR+set}" != Xset; then
1519   UNAME=${UNAME-`uname 2>/dev/null`}
1520   case X$UNAME in
1521     *-DOS) lt_cv_sys_path_separator=';' ;;
1522     *)     lt_cv_sys_path_separator=':' ;;
1523   esac
1524   PATH_SEPARATOR=$lt_cv_sys_path_separator
1525 fi
1526
1527 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1528 echo "configure:1529: checking for Cygwin environment" >&5
1529 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1530   echo $ac_n "(cached) $ac_c" 1>&6
1531 else
1532   cat > conftest.$ac_ext <<EOF
1533 #line 1534 "configure"
1534 #include "confdefs.h"
1535
1536 int main() {
1537
1538 #ifndef __CYGWIN__
1539 #define __CYGWIN__ __CYGWIN32__
1540 #endif
1541 return __CYGWIN__;
1542 ; return 0; }
1543 EOF
1544 if { (eval echo configure:1545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1545   rm -rf conftest*
1546   ac_cv_cygwin=yes
1547 else
1548   echo "configure: failed program was:" >&5
1549   cat conftest.$ac_ext >&5
1550   rm -rf conftest*
1551   ac_cv_cygwin=no
1552 fi
1553 rm -f conftest*
1554 rm -f conftest*
1555 fi
1556
1557 echo "$ac_t""$ac_cv_cygwin" 1>&6
1558 CYGWIN=
1559 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1560 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1561 echo "configure:1562: checking for mingw32 environment" >&5
1562 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1563   echo $ac_n "(cached) $ac_c" 1>&6
1564 else
1565   cat > conftest.$ac_ext <<EOF
1566 #line 1567 "configure"
1567 #include "confdefs.h"
1568
1569 int main() {
1570 return __MINGW32__;
1571 ; return 0; }
1572 EOF
1573 if { (eval echo configure:1574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1574   rm -rf conftest*
1575   ac_cv_mingw32=yes
1576 else
1577   echo "configure: failed program was:" >&5
1578   cat conftest.$ac_ext >&5
1579   rm -rf conftest*
1580   ac_cv_mingw32=no
1581 fi
1582 rm -f conftest*
1583 rm -f conftest*
1584 fi
1585
1586 echo "$ac_t""$ac_cv_mingw32" 1>&6
1587 MINGW32=
1588 test "$ac_cv_mingw32" = yes && MINGW32=yes
1589 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1590 echo "configure:1591: checking how to run the C preprocessor" >&5
1591 # On Suns, sometimes $CPP names a directory.
1592 if test -n "$CPP" && test -d "$CPP"; then
1593   CPP=
1594 fi
1595 if test -z "$CPP"; then
1596 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1597   echo $ac_n "(cached) $ac_c" 1>&6
1598 else
1599     # This must be in double quotes, not single quotes, because CPP may get
1600   # substituted into the Makefile and "${CC-cc}" will confuse make.
1601   CPP="${CC-cc} -E"
1602   # On the NeXT, cc -E runs the code through the compiler's parser,
1603   # not just through cpp.
1604   cat > conftest.$ac_ext <<EOF
1605 #line 1606 "configure"
1606 #include "confdefs.h"
1607 #include <assert.h>
1608 Syntax Error
1609 EOF
1610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1611 { (eval echo configure:1612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1613 if test -z "$ac_err"; then
1614   :
1615 else
1616   echo "$ac_err" >&5
1617   echo "configure: failed program was:" >&5
1618   cat conftest.$ac_ext >&5
1619   rm -rf conftest*
1620   CPP="${CC-cc} -E -traditional-cpp"
1621   cat > conftest.$ac_ext <<EOF
1622 #line 1623 "configure"
1623 #include "confdefs.h"
1624 #include <assert.h>
1625 Syntax Error
1626 EOF
1627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1628 { (eval echo configure:1629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1630 if test -z "$ac_err"; then
1631   :
1632 else
1633   echo "$ac_err" >&5
1634   echo "configure: failed program was:" >&5
1635   cat conftest.$ac_ext >&5
1636   rm -rf conftest*
1637   CPP="${CC-cc} -nologo -E"
1638   cat > conftest.$ac_ext <<EOF
1639 #line 1640 "configure"
1640 #include "confdefs.h"
1641 #include <assert.h>
1642 Syntax Error
1643 EOF
1644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1645 { (eval echo configure:1646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1647 if test -z "$ac_err"; then
1648   :
1649 else
1650   echo "$ac_err" >&5
1651   echo "configure: failed program was:" >&5
1652   cat conftest.$ac_ext >&5
1653   rm -rf conftest*
1654   CPP=/lib/cpp
1655 fi
1656 rm -f conftest*
1657 fi
1658 rm -f conftest*
1659 fi
1660 rm -f conftest*
1661   ac_cv_prog_CPP="$CPP"
1662 fi
1663   CPP="$ac_cv_prog_CPP"
1664 else
1665   ac_cv_prog_CPP="$CPP"
1666 fi
1667 echo "$ac_t""$CPP" 1>&6
1668
1669 # Check whether --enable-shared or --disable-shared was given.
1670 if test "${enable_shared+set}" = set; then
1671   enableval="$enable_shared"
1672   p=${PACKAGE-default}
1673 case $enableval in
1674 yes) enable_shared=yes ;;
1675 no) enable_shared=no ;;
1676 *)
1677   enable_shared=no
1678   # Look at the argument we got.  We use all the common list separators.
1679   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1680   for pkg in $enableval; do
1681     if test "X$pkg" = "X$p"; then
1682       enable_shared=yes
1683     fi
1684   done
1685   IFS="$ac_save_ifs"
1686   ;;
1687 esac
1688 else
1689   enable_shared=yes
1690 fi
1691
1692 # Check whether --enable-static or --disable-static was given.
1693 if test "${enable_static+set}" = set; then
1694   enableval="$enable_static"
1695   p=${PACKAGE-default}
1696 case $enableval in
1697 yes) enable_static=yes ;;
1698 no) enable_static=no ;;
1699 *)
1700   enable_static=no
1701   # Look at the argument we got.  We use all the common list separators.
1702   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1703   for pkg in $enableval; do
1704     if test "X$pkg" = "X$p"; then
1705       enable_static=yes
1706     fi
1707   done
1708   IFS="$ac_save_ifs"
1709   ;;
1710 esac
1711 else
1712   enable_static=yes
1713 fi
1714
1715 # Check whether --enable-fast-install or --disable-fast-install was given.
1716 if test "${enable_fast_install+set}" = set; then
1717   enableval="$enable_fast_install"
1718   p=${PACKAGE-default}
1719 case $enableval in
1720 yes) enable_fast_install=yes ;;
1721 no) enable_fast_install=no ;;
1722 *)
1723   enable_fast_install=no
1724   # Look at the argument we got.  We use all the common list separators.
1725   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1726   for pkg in $enableval; do
1727     if test "X$pkg" = "X$p"; then
1728       enable_fast_install=yes
1729     fi
1730   done
1731   IFS="$ac_save_ifs"
1732   ;;
1733 esac
1734 else
1735   enable_fast_install=yes
1736 fi
1737
1738
1739 # Make sure we can run config.sub.
1740 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1741 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1742 fi
1743
1744 echo $ac_n "checking host system type""... $ac_c" 1>&6
1745 echo "configure:1746: checking host system type" >&5
1746
1747 host_alias=$host
1748 case "$host_alias" in
1749 NONE)
1750   case $nonopt in
1751   NONE)
1752     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1753     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1754     fi ;;
1755   *) host_alias=$nonopt ;;
1756   esac ;;
1757 esac
1758
1759 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1760 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1761 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1762 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1763 echo "$ac_t""$host" 1>&6
1764
1765 echo $ac_n "checking build system type""... $ac_c" 1>&6
1766 echo "configure:1767: checking build system type" >&5
1767
1768 build_alias=$build
1769 case "$build_alias" in
1770 NONE)
1771   case $nonopt in
1772   NONE) build_alias=$host_alias ;;
1773   *) build_alias=$nonopt ;;
1774   esac ;;
1775 esac
1776
1777 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1778 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1779 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1780 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1781 echo "$ac_t""$build" 1>&6
1782
1783 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1784 if test "${with_gnu_ld+set}" = set; then
1785   withval="$with_gnu_ld"
1786   test "$withval" = no || with_gnu_ld=yes
1787 else
1788   with_gnu_ld=no
1789 fi
1790
1791 ac_prog=ld
1792 if test "$GCC" = yes; then
1793   # Check if gcc -print-prog-name=ld gives a path.
1794   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1795 echo "configure:1796: checking for ld used by GCC" >&5
1796   case $host in
1797   *-*-mingw*)
1798     # gcc leaves a trailing carriage return which upsets mingw
1799     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1800   *)
1801     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1802   esac
1803   case $ac_prog in
1804     # Accept absolute paths.
1805     [\\/]* | [A-Za-z]:[\\/]*)
1806       re_direlt='/[^/][^/]*/\.\./'
1807       # Canonicalize the path of ld
1808       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1809       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1810         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1811       done
1812       test -z "$LD" && LD="$ac_prog"
1813       ;;
1814   "")
1815     # If it fails, then pretend we aren't using GCC.
1816     ac_prog=ld
1817     ;;
1818   *)
1819     # If it is relative, then search for the first ld in PATH.
1820     with_gnu_ld=unknown
1821     ;;
1822   esac
1823 elif test "$with_gnu_ld" = yes; then
1824   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1825 echo "configure:1826: checking for GNU ld" >&5
1826 else
1827   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1828 echo "configure:1829: checking for non-GNU ld" >&5
1829 fi
1830 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1831   echo $ac_n "(cached) $ac_c" 1>&6
1832 else
1833   if test -z "$LD"; then
1834   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1835   for ac_dir in $PATH; do
1836     test -z "$ac_dir" && ac_dir=.
1837     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1838       lt_cv_path_LD="$ac_dir/$ac_prog"
1839       # Check to see if the program is GNU ld.  I'd rather use --version,
1840       # but apparently some GNU ld's only accept -v.
1841       # Break only if it was the GNU/non-GNU ld that we prefer.
1842       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1843         test "$with_gnu_ld" != no && break
1844       else
1845         test "$with_gnu_ld" != yes && break
1846       fi
1847     fi
1848   done
1849   IFS="$ac_save_ifs"
1850 else
1851   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1852 fi
1853 fi
1854
1855 LD="$lt_cv_path_LD"
1856 if test -n "$LD"; then
1857   echo "$ac_t""$LD" 1>&6
1858 else
1859   echo "$ac_t""no" 1>&6
1860 fi
1861 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1862 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1863 echo "configure:1864: checking if the linker ($LD) is GNU ld" >&5
1864 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1865   echo $ac_n "(cached) $ac_c" 1>&6
1866 else
1867   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1868 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1869   lt_cv_prog_gnu_ld=yes
1870 else
1871   lt_cv_prog_gnu_ld=no
1872 fi
1873 fi
1874
1875 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1876 with_gnu_ld=$lt_cv_prog_gnu_ld
1877
1878
1879 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1880 echo "configure:1881: checking for $LD option to reload object files" >&5
1881 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1882   echo $ac_n "(cached) $ac_c" 1>&6
1883 else
1884   lt_cv_ld_reload_flag='-r'
1885 fi
1886
1887 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1888 reload_flag=$lt_cv_ld_reload_flag
1889 test -n "$reload_flag" && reload_flag=" $reload_flag"
1890
1891 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1892 echo "configure:1893: checking for BSD-compatible nm" >&5
1893 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1894   echo $ac_n "(cached) $ac_c" 1>&6
1895 else
1896   if test -n "$NM"; then
1897   # Let the user override the test.
1898   lt_cv_path_NM="$NM"
1899 else
1900   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1901   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1902     test -z "$ac_dir" && ac_dir=.
1903     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1904     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1905       # Check to see if the nm accepts a BSD-compat flag.
1906       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1907       #   nm: unknown option "B" ignored
1908       # Tru64's nm complains that /dev/null is an invalid object file
1909       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1910         lt_cv_path_NM="$tmp_nm -B"
1911         break
1912       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1913         lt_cv_path_NM="$tmp_nm -p"
1914         break
1915       else
1916         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1917         continue # so that we can try to find one that supports BSD flags
1918       fi
1919     fi
1920   done
1921   IFS="$ac_save_ifs"
1922   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1923 fi
1924 fi
1925
1926 NM="$lt_cv_path_NM"
1927 echo "$ac_t""$NM" 1>&6
1928
1929 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1930 echo "configure:1931: checking whether ln -s works" >&5
1931 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1932   echo $ac_n "(cached) $ac_c" 1>&6
1933 else
1934   rm -f conftestdata
1935 if ln -s X conftestdata 2>/dev/null
1936 then
1937   rm -f conftestdata
1938   ac_cv_prog_LN_S="ln -s"
1939 else
1940   ac_cv_prog_LN_S=ln
1941 fi
1942 fi
1943 LN_S="$ac_cv_prog_LN_S"
1944 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1945   echo "$ac_t""yes" 1>&6
1946 else
1947   echo "$ac_t""no" 1>&6
1948 fi
1949
1950 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1951 echo "configure:1952: checking how to recognise dependant libraries" >&5
1952 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1953   echo $ac_n "(cached) $ac_c" 1>&6
1954 else
1955   lt_cv_file_magic_cmd='$MAGIC_CMD'
1956 lt_cv_file_magic_test_file=
1957 lt_cv_deplibs_check_method='unknown'
1958 # Need to set the preceding variable on all platforms that support
1959 # interlibrary dependencies.
1960 # 'none' -- dependencies not supported.
1961 # `unknown' -- same as none, but documents that we really don't know.
1962 # 'pass_all' -- all dependencies passed with no checks.
1963 # 'test_compile' -- check by making test program.
1964 # 'file_magic [[regex]]' -- check by looking for files in library path
1965 # which responds to the $file_magic_cmd with a given egrep regex.
1966 # If you have `file' or equivalent on your system and you're not sure
1967 # whether `pass_all' will *always* work, you probably want this one.
1968
1969 case $host_os in
1970 aix4* | aix5*)
1971   lt_cv_deplibs_check_method=pass_all
1972   ;;
1973
1974 beos*)
1975   lt_cv_deplibs_check_method=pass_all
1976   ;;
1977
1978 bsdi4*)
1979   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1980   lt_cv_file_magic_cmd='/usr/bin/file -L'
1981   lt_cv_file_magic_test_file=/shlib/libc.so
1982   ;;
1983
1984 cygwin* | mingw* | pw32*)
1985   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1986   lt_cv_file_magic_cmd='$OBJDUMP -f'
1987   ;;
1988
1989 darwin* | rhapsody*)
1990   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1991   lt_cv_file_magic_cmd='/usr/bin/file -L'
1992   case "$host_os" in
1993   rhapsody* | darwin1.[012])
1994     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1995     ;;
1996   *) # Darwin 1.3 on
1997     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1998     ;;
1999   esac
2000   ;;
2001
2002 freebsd*)
2003   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2004     case $host_cpu in
2005     i*86 )
2006       # Not sure whether the presence of OpenBSD here was a mistake.
2007       # Let's accept both of them until this is cleared up.
2008       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2009       lt_cv_file_magic_cmd=/usr/bin/file
2010       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2011       ;;
2012     esac
2013   else
2014     lt_cv_deplibs_check_method=pass_all
2015   fi
2016   ;;
2017
2018 gnu*)
2019   lt_cv_deplibs_check_method=pass_all
2020   ;;
2021
2022 hpux10.20*|hpux11*)
2023   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2024   lt_cv_file_magic_cmd=/usr/bin/file
2025   lt_cv_file_magic_test_file=/usr/lib/libc.sl
2026   ;;
2027
2028 irix5* | irix6* | nonstopux*)
2029   case $host_os in
2030   irix5* | nonstopux*)
2031     # this will be overridden with pass_all, but let us keep it just in case
2032     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2033     ;;
2034   *)
2035     case $LD in
2036     *-32|*"-32 ") libmagic=32-bit;;
2037     *-n32|*"-n32 ") libmagic=N32;;
2038     *-64|*"-64 ") libmagic=64-bit;;
2039     *) libmagic=never-match;;
2040     esac
2041     # this will be overridden with pass_all, but let us keep it just in case
2042     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2043     ;;
2044   esac
2045   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2046   lt_cv_deplibs_check_method=pass_all
2047   ;;
2048
2049 # This must be Linux ELF.
2050 linux-gnu*)
2051   case $host_cpu in
2052   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2053     lt_cv_deplibs_check_method=pass_all ;;
2054   *)
2055     # glibc up to 2.1.1 does not perform some relocations on ARM
2056     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2057   esac
2058   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2059   ;;
2060
2061 netbsd*)
2062   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2063     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2064   else
2065     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2066   fi
2067   ;;
2068
2069 newos6*)
2070   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2071   lt_cv_file_magic_cmd=/usr/bin/file
2072   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2073   ;;
2074
2075 openbsd*)
2076   lt_cv_file_magic_cmd=/usr/bin/file
2077   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2078   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2079     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2080   else
2081     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2082   fi
2083   ;;
2084
2085 osf3* | osf4* | osf5*)
2086   # this will be overridden with pass_all, but let us keep it just in case
2087   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2088   lt_cv_file_magic_test_file=/shlib/libc.so
2089   lt_cv_deplibs_check_method=pass_all
2090   ;;
2091
2092 sco3.2v5*)
2093   lt_cv_deplibs_check_method=pass_all
2094   ;;
2095
2096 solaris*)
2097   lt_cv_deplibs_check_method=pass_all
2098   lt_cv_file_magic_test_file=/lib/libc.so
2099   ;;
2100
2101 sysv5uw[78]* | sysv4*uw2*)
2102   lt_cv_deplibs_check_method=pass_all
2103   ;;
2104
2105 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2106   case $host_vendor in
2107   motorola)
2108     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]'
2109     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2110     ;;
2111   ncr)
2112     lt_cv_deplibs_check_method=pass_all
2113     ;;
2114   sequent)
2115     lt_cv_file_magic_cmd='/bin/file'
2116     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2117     ;;
2118   sni)
2119     lt_cv_file_magic_cmd='/bin/file'
2120     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2121     lt_cv_file_magic_test_file=/lib/libc.so
2122     ;;
2123   esac
2124   ;;
2125 esac
2126
2127 fi
2128
2129 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2130 file_magic_cmd=$lt_cv_file_magic_cmd
2131 deplibs_check_method=$lt_cv_deplibs_check_method
2132
2133 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2134 echo "configure:2135: checking for object suffix" >&5
2135 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2136   echo $ac_n "(cached) $ac_c" 1>&6
2137 else
2138   rm -f conftest*
2139 echo 'int i = 1;' > conftest.$ac_ext
2140 if { (eval echo configure:2141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2141   for ac_file in conftest.*; do
2142     case $ac_file in
2143     *.c) ;;
2144     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2145     esac
2146   done
2147 else
2148   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2149 fi
2150 rm -f conftest*
2151 fi
2152
2153 echo "$ac_t""$ac_cv_objext" 1>&6
2154 OBJEXT=$ac_cv_objext
2155 ac_objext=$ac_cv_objext
2156
2157
2158
2159 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2160 echo "configure:2161: checking for executable suffix" >&5
2161 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2162   echo $ac_n "(cached) $ac_c" 1>&6
2163 else
2164   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2165   ac_cv_exeext=.exe
2166 else
2167   rm -f conftest*
2168   echo 'int main () { return 0; }' > conftest.$ac_ext
2169   ac_cv_exeext=
2170   if { (eval echo configure:2171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2171     for file in conftest.*; do
2172       case $file in
2173       *.c | *.o | *.obj) ;;
2174       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2175       esac
2176     done
2177   else
2178     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2179   fi
2180   rm -f conftest*
2181   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2182 fi
2183 fi
2184
2185 EXEEXT=""
2186 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2187 echo "$ac_t""${ac_cv_exeext}" 1>&6
2188 ac_exeext=$EXEEXT
2189
2190 if test $host != $build; then
2191   ac_tool_prefix=${host_alias}-
2192 else
2193   ac_tool_prefix=
2194 fi
2195
2196
2197
2198
2199 # Check for command to grab the raw symbol name followed by C symbol from nm.
2200 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2201 echo "configure:2202: checking command to parse $NM output" >&5
2202 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2203   echo $ac_n "(cached) $ac_c" 1>&6
2204 else
2205   
2206 # These are sane defaults that work on at least a few old systems.
2207 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
2208
2209 # Character class describing NM global symbol codes.
2210 symcode='[BCDEGRST]'
2211
2212 # Regexp to match symbols that can be accessed directly from C.
2213 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2214
2215 # Transform the above into a raw symbol and a C symbol.
2216 symxfrm='\1 \2\3 \3'
2217
2218 # Transform an extracted symbol line into a proper C declaration
2219 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2220
2221 # Transform an extracted symbol line into symbol name and symbol address
2222 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
2223
2224 # Define system-specific variables.
2225 case $host_os in
2226 aix*)
2227   symcode='[BCDT]'
2228   ;;
2229 cygwin* | mingw* | pw32*)
2230   symcode='[ABCDGISTW]'
2231   ;;
2232 hpux*) # Its linker distinguishes data from code symbols
2233   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2234   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
2235   ;;
2236 irix* | nonstopux*)
2237   symcode='[BCDEGRST]'
2238   ;;
2239 solaris* | sysv5*)
2240   symcode='[BDT]'
2241   ;;
2242 sysv4)
2243   symcode='[DFNSTU]'
2244   ;;
2245 esac
2246
2247 # Handle CRLF in mingw tool chain
2248 opt_cr=
2249 case $host_os in
2250 mingw*)
2251   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2252   ;;
2253 esac
2254
2255 # If we're using GNU nm, then use its standard symbol codes.
2256 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2257   symcode='[ABCDGISTW]'
2258 fi
2259
2260 # Try without a prefix undercore, then with it.
2261 for ac_symprfx in "" "_"; do
2262
2263   # Write the raw and C identifiers.
2264 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2265
2266   # Check to see that the pipe works correctly.
2267   pipe_works=no
2268   rm -f conftest*
2269   cat > conftest.$ac_ext <<EOF
2270 #ifdef __cplusplus
2271 extern "C" {
2272 #endif
2273 char nm_test_var;
2274 void nm_test_func(){}
2275 #ifdef __cplusplus
2276 }
2277 #endif
2278 int main(){nm_test_var='a';nm_test_func();return(0);}
2279 EOF
2280
2281   if { (eval echo configure:2282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2282     # Now try to grab the symbols.
2283     nlist=conftest.nm
2284     if { (eval echo configure:2285: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
2285       # Try sorting and uniquifying the output.
2286       if sort "$nlist" | uniq > "$nlist"T; then
2287         mv -f "$nlist"T "$nlist"
2288       else
2289         rm -f "$nlist"T
2290       fi
2291
2292       # Make sure that we snagged all the symbols we need.
2293       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2294         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2295           cat <<EOF > conftest.$ac_ext
2296 #ifdef __cplusplus
2297 extern "C" {
2298 #endif
2299
2300 EOF
2301           # Now generate the symbol file.
2302           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2303
2304           cat <<EOF >> conftest.$ac_ext
2305 #if defined (__STDC__) && __STDC__
2306 # define lt_ptr void *
2307 #else
2308 # define lt_ptr char *
2309 # define const
2310 #endif
2311
2312 /* The mapping between symbol names and symbols. */
2313 const struct {
2314   const char *name;
2315   lt_ptr address;
2316 }
2317 lt_preloaded_symbols[] =
2318 {
2319 EOF
2320           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2321           cat <<\EOF >> conftest.$ac_ext
2322   {0, (lt_ptr) 0}
2323 };
2324
2325 #ifdef __cplusplus
2326 }
2327 #endif
2328 EOF
2329           # Now try linking the two files.
2330           mv conftest.$ac_objext conftstm.$ac_objext
2331           save_LIBS="$LIBS"
2332           save_CFLAGS="$CFLAGS"
2333           LIBS="conftstm.$ac_objext"
2334           CFLAGS="$CFLAGS$no_builtin_flag"
2335           if { (eval echo configure:2336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2336             pipe_works=yes
2337           fi
2338           LIBS="$save_LIBS"
2339           CFLAGS="$save_CFLAGS"
2340         else
2341           echo "cannot find nm_test_func in $nlist" >&5
2342         fi
2343       else
2344         echo "cannot find nm_test_var in $nlist" >&5
2345       fi
2346     else
2347       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2348     fi
2349   else
2350     echo "$progname: failed program was:" >&5
2351     cat conftest.$ac_ext >&5
2352   fi
2353   rm -f conftest* conftst*
2354
2355   # Do not use the global_symbol_pipe unless it works.
2356   if test "$pipe_works" = yes; then
2357     break
2358   else
2359     lt_cv_sys_global_symbol_pipe=
2360   fi
2361 done
2362
2363 fi
2364
2365 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2366 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2367   global_symbol_to_cdecl=
2368   global_symbol_to_c_name_address=
2369 else
2370   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2371   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2372 fi
2373 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2374 then
2375   echo "$ac_t""failed" 1>&6
2376 else
2377   echo "$ac_t""ok" 1>&6
2378 fi
2379
2380 for ac_hdr in dlfcn.h
2381 do
2382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2384 echo "configure:2385: checking for $ac_hdr" >&5
2385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2386   echo $ac_n "(cached) $ac_c" 1>&6
2387 else
2388   cat > conftest.$ac_ext <<EOF
2389 #line 2390 "configure"
2390 #include "confdefs.h"
2391 #include <$ac_hdr>
2392 EOF
2393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2394 { (eval echo configure:2395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2396 if test -z "$ac_err"; then
2397   rm -rf conftest*
2398   eval "ac_cv_header_$ac_safe=yes"
2399 else
2400   echo "$ac_err" >&5
2401   echo "configure: failed program was:" >&5
2402   cat conftest.$ac_ext >&5
2403   rm -rf conftest*
2404   eval "ac_cv_header_$ac_safe=no"
2405 fi
2406 rm -f conftest*
2407 fi
2408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2409   echo "$ac_t""yes" 1>&6
2410     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2411   cat >> confdefs.h <<EOF
2412 #define $ac_tr_hdr 1
2413 EOF
2414  
2415 else
2416   echo "$ac_t""no" 1>&6
2417 fi
2418 done
2419
2420
2421
2422
2423
2424 # Only perform the check for file, if the check method requires it
2425 case $deplibs_check_method in
2426 file_magic*)
2427   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2428     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2429 echo "configure:2430: checking for ${ac_tool_prefix}file" >&5
2430 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2431   echo $ac_n "(cached) $ac_c" 1>&6
2432 else
2433   case $MAGIC_CMD in
2434   /*)
2435   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2436   ;;
2437   ?:/*)
2438   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2439   ;;
2440   *)
2441   ac_save_MAGIC_CMD="$MAGIC_CMD"
2442   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2443   ac_dummy="/usr/bin:$PATH"
2444   for ac_dir in $ac_dummy; do
2445     test -z "$ac_dir" && ac_dir=.
2446     if test -f $ac_dir/${ac_tool_prefix}file; then
2447       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2448       if test -n "$file_magic_test_file"; then
2449         case $deplibs_check_method in
2450         "file_magic "*)
2451           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2452           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2453           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2454             egrep "$file_magic_regex" > /dev/null; then
2455             :
2456           else
2457             cat <<EOF 1>&2
2458
2459 *** Warning: the command libtool uses to detect shared libraries,
2460 *** $file_magic_cmd, produces output that libtool cannot recognize.
2461 *** The result is that libtool may fail to recognize shared libraries
2462 *** as such.  This will affect the creation of libtool libraries that
2463 *** depend on shared libraries, but programs linked with such libtool
2464 *** libraries will work regardless of this problem.  Nevertheless, you
2465 *** may want to report the problem to your system manager and/or to
2466 *** bug-libtool@gnu.org
2467
2468 EOF
2469           fi ;;
2470         esac
2471       fi
2472       break
2473     fi
2474   done
2475   IFS="$ac_save_ifs"
2476   MAGIC_CMD="$ac_save_MAGIC_CMD"
2477   ;;
2478 esac
2479 fi
2480
2481 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2482 if test -n "$MAGIC_CMD"; then
2483   echo "$ac_t""$MAGIC_CMD" 1>&6
2484 else
2485   echo "$ac_t""no" 1>&6
2486 fi
2487
2488 if test -z "$lt_cv_path_MAGIC_CMD"; then
2489   if test -n "$ac_tool_prefix"; then
2490     echo $ac_n "checking for file""... $ac_c" 1>&6
2491 echo "configure:2492: checking for file" >&5
2492 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2493   echo $ac_n "(cached) $ac_c" 1>&6
2494 else
2495   case $MAGIC_CMD in
2496   /*)
2497   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2498   ;;
2499   ?:/*)
2500   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2501   ;;
2502   *)
2503   ac_save_MAGIC_CMD="$MAGIC_CMD"
2504   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2505   ac_dummy="/usr/bin:$PATH"
2506   for ac_dir in $ac_dummy; do
2507     test -z "$ac_dir" && ac_dir=.
2508     if test -f $ac_dir/file; then
2509       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2510       if test -n "$file_magic_test_file"; then
2511         case $deplibs_check_method in
2512         "file_magic "*)
2513           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2514           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2515           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2516             egrep "$file_magic_regex" > /dev/null; then
2517             :
2518           else
2519             cat <<EOF 1>&2
2520
2521 *** Warning: the command libtool uses to detect shared libraries,
2522 *** $file_magic_cmd, produces output that libtool cannot recognize.
2523 *** The result is that libtool may fail to recognize shared libraries
2524 *** as such.  This will affect the creation of libtool libraries that
2525 *** depend on shared libraries, but programs linked with such libtool
2526 *** libraries will work regardless of this problem.  Nevertheless, you
2527 *** may want to report the problem to your system manager and/or to
2528 *** bug-libtool@gnu.org
2529
2530 EOF
2531           fi ;;
2532         esac
2533       fi
2534       break
2535     fi
2536   done
2537   IFS="$ac_save_ifs"
2538   MAGIC_CMD="$ac_save_MAGIC_CMD"
2539   ;;
2540 esac
2541 fi
2542
2543 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2544 if test -n "$MAGIC_CMD"; then
2545   echo "$ac_t""$MAGIC_CMD" 1>&6
2546 else
2547   echo "$ac_t""no" 1>&6
2548 fi
2549
2550   else
2551     MAGIC_CMD=:
2552   fi
2553 fi
2554
2555   fi
2556   ;;
2557 esac
2558
2559 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2560 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2561 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2562 echo "configure:2563: checking for $ac_word" >&5
2563 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2564   echo $ac_n "(cached) $ac_c" 1>&6
2565 else
2566   if test -n "$RANLIB"; then
2567   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2568 else
2569   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2570   ac_dummy="$PATH"
2571   for ac_dir in $ac_dummy; do
2572     test -z "$ac_dir" && ac_dir=.
2573     if test -f $ac_dir/$ac_word; then
2574       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2575       break
2576     fi
2577   done
2578   IFS="$ac_save_ifs"
2579 fi
2580 fi
2581 RANLIB="$ac_cv_prog_RANLIB"
2582 if test -n "$RANLIB"; then
2583   echo "$ac_t""$RANLIB" 1>&6
2584 else
2585   echo "$ac_t""no" 1>&6
2586 fi
2587
2588
2589 if test -z "$ac_cv_prog_RANLIB"; then
2590 if test -n "$ac_tool_prefix"; then
2591   # Extract the first word of "ranlib", so it can be a program name with args.
2592 set dummy ranlib; ac_word=$2
2593 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2594 echo "configure:2595: checking for $ac_word" >&5
2595 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2596   echo $ac_n "(cached) $ac_c" 1>&6
2597 else
2598   if test -n "$RANLIB"; then
2599   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2600 else
2601   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2602   ac_dummy="$PATH"
2603   for ac_dir in $ac_dummy; do
2604     test -z "$ac_dir" && ac_dir=.
2605     if test -f $ac_dir/$ac_word; then
2606       ac_cv_prog_RANLIB="ranlib"
2607       break
2608     fi
2609   done
2610   IFS="$ac_save_ifs"
2611   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2612 fi
2613 fi
2614 RANLIB="$ac_cv_prog_RANLIB"
2615 if test -n "$RANLIB"; then
2616   echo "$ac_t""$RANLIB" 1>&6
2617 else
2618   echo "$ac_t""no" 1>&6
2619 fi
2620
2621 else
2622   RANLIB=":"
2623 fi
2624 fi
2625
2626 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2627 set dummy ${ac_tool_prefix}strip; ac_word=$2
2628 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2629 echo "configure:2630: checking for $ac_word" >&5
2630 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2631   echo $ac_n "(cached) $ac_c" 1>&6
2632 else
2633   if test -n "$STRIP"; then
2634   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2635 else
2636   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2637   ac_dummy="$PATH"
2638   for ac_dir in $ac_dummy; do
2639     test -z "$ac_dir" && ac_dir=.
2640     if test -f $ac_dir/$ac_word; then
2641       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2642       break
2643     fi
2644   done
2645   IFS="$ac_save_ifs"
2646 fi
2647 fi
2648 STRIP="$ac_cv_prog_STRIP"
2649 if test -n "$STRIP"; then
2650   echo "$ac_t""$STRIP" 1>&6
2651 else
2652   echo "$ac_t""no" 1>&6
2653 fi
2654
2655
2656 if test -z "$ac_cv_prog_STRIP"; then
2657 if test -n "$ac_tool_prefix"; then
2658   # Extract the first word of "strip", so it can be a program name with args.
2659 set dummy strip; ac_word=$2
2660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2661 echo "configure:2662: checking for $ac_word" >&5
2662 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2663   echo $ac_n "(cached) $ac_c" 1>&6
2664 else
2665   if test -n "$STRIP"; then
2666   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2667 else
2668   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2669   ac_dummy="$PATH"
2670   for ac_dir in $ac_dummy; do
2671     test -z "$ac_dir" && ac_dir=.
2672     if test -f $ac_dir/$ac_word; then
2673       ac_cv_prog_STRIP="strip"
2674       break
2675     fi
2676   done
2677   IFS="$ac_save_ifs"
2678   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2679 fi
2680 fi
2681 STRIP="$ac_cv_prog_STRIP"
2682 if test -n "$STRIP"; then
2683   echo "$ac_t""$STRIP" 1>&6
2684 else
2685   echo "$ac_t""no" 1>&6
2686 fi
2687
2688 else
2689   STRIP=":"
2690 fi
2691 fi
2692
2693
2694 enable_dlopen=no
2695 enable_win32_dll=yes
2696
2697 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2698 if test "${enable_libtool_lock+set}" = set; then
2699   enableval="$enable_libtool_lock"
2700   :
2701 fi
2702
2703 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2704
2705 # Some flags need to be propagated to the compiler or linker for good
2706 # libtool support.
2707 case $host in
2708 *-*-irix6*)
2709   # Find out which ABI we are using.
2710   echo '#line 2711 "configure"' > conftest.$ac_ext
2711   if { (eval echo configure:2712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2712     case `/usr/bin/file conftest.$ac_objext` in
2713     *32-bit*)
2714       LD="${LD-ld} -32"
2715       ;;
2716     *N32*)
2717       LD="${LD-ld} -n32"
2718       ;;
2719     *64-bit*)
2720       LD="${LD-ld} -64"
2721       ;;
2722     esac
2723   fi
2724   rm -rf conftest*
2725   ;;
2726
2727 *-*-sco3.2v5*)
2728   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2729   SAVE_CFLAGS="$CFLAGS"
2730   CFLAGS="$CFLAGS -belf"
2731   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2732 echo "configure:2733: checking whether the C compiler needs -belf" >&5
2733 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2734   echo $ac_n "(cached) $ac_c" 1>&6
2735 else
2736   
2737      ac_ext=c
2738 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2739 ac_cpp='$CPP $CPPFLAGS'
2740 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2741 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2742 cross_compiling=$ac_cv_prog_cc_cross
2743
2744      cat > conftest.$ac_ext <<EOF
2745 #line 2746 "configure"
2746 #include "confdefs.h"
2747
2748 int main() {
2749
2750 ; return 0; }
2751 EOF
2752 if { (eval echo configure:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2753   rm -rf conftest*
2754   lt_cv_cc_needs_belf=yes
2755 else
2756   echo "configure: failed program was:" >&5
2757   cat conftest.$ac_ext >&5
2758   rm -rf conftest*
2759   lt_cv_cc_needs_belf=no
2760 fi
2761 rm -f conftest*
2762      ac_ext=c
2763 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2764 ac_cpp='$CPP $CPPFLAGS'
2765 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2766 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2767 cross_compiling=$ac_cv_prog_cc_cross
2768
2769 fi
2770
2771 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2772   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2773     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2774     CFLAGS="$SAVE_CFLAGS"
2775   fi
2776   ;;
2777
2778 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
2779   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2780 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2781 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2782 echo "configure:2783: checking for $ac_word" >&5
2783 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2784   echo $ac_n "(cached) $ac_c" 1>&6
2785 else
2786   if test -n "$DLLTOOL"; then
2787   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2788 else
2789   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2790   ac_dummy="$PATH"
2791   for ac_dir in $ac_dummy; do
2792     test -z "$ac_dir" && ac_dir=.
2793     if test -f $ac_dir/$ac_word; then
2794       ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2795       break
2796     fi
2797   done
2798   IFS="$ac_save_ifs"
2799 fi
2800 fi
2801 DLLTOOL="$ac_cv_prog_DLLTOOL"
2802 if test -n "$DLLTOOL"; then
2803   echo "$ac_t""$DLLTOOL" 1>&6
2804 else
2805   echo "$ac_t""no" 1>&6
2806 fi
2807
2808
2809 if test -z "$ac_cv_prog_DLLTOOL"; then
2810 if test -n "$ac_tool_prefix"; then
2811   # Extract the first word of "dlltool", so it can be a program name with args.
2812 set dummy dlltool; ac_word=$2
2813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2814 echo "configure:2815: checking for $ac_word" >&5
2815 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2816   echo $ac_n "(cached) $ac_c" 1>&6
2817 else
2818   if test -n "$DLLTOOL"; then
2819   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2820 else
2821   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2822   ac_dummy="$PATH"
2823   for ac_dir in $ac_dummy; do
2824     test -z "$ac_dir" && ac_dir=.
2825     if test -f $ac_dir/$ac_word; then
2826       ac_cv_prog_DLLTOOL="dlltool"
2827       break
2828     fi
2829   done
2830   IFS="$ac_save_ifs"
2831   test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2832 fi
2833 fi
2834 DLLTOOL="$ac_cv_prog_DLLTOOL"
2835 if test -n "$DLLTOOL"; then
2836   echo "$ac_t""$DLLTOOL" 1>&6
2837 else
2838   echo "$ac_t""no" 1>&6
2839 fi
2840
2841 else
2842   DLLTOOL="false"
2843 fi
2844 fi
2845
2846   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2847 set dummy ${ac_tool_prefix}as; ac_word=$2
2848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2849 echo "configure:2850: checking for $ac_word" >&5
2850 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2851   echo $ac_n "(cached) $ac_c" 1>&6
2852 else
2853   if test -n "$AS"; then
2854   ac_cv_prog_AS="$AS" # Let the user override the test.
2855 else
2856   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2857   ac_dummy="$PATH"
2858   for ac_dir in $ac_dummy; do
2859     test -z "$ac_dir" && ac_dir=.
2860     if test -f $ac_dir/$ac_word; then
2861       ac_cv_prog_AS="${ac_tool_prefix}as"
2862       break
2863     fi
2864   done
2865   IFS="$ac_save_ifs"
2866 fi
2867 fi
2868 AS="$ac_cv_prog_AS"
2869 if test -n "$AS"; then
2870   echo "$ac_t""$AS" 1>&6
2871 else
2872   echo "$ac_t""no" 1>&6
2873 fi
2874
2875
2876 if test -z "$ac_cv_prog_AS"; then
2877 if test -n "$ac_tool_prefix"; then
2878   # Extract the first word of "as", so it can be a program name with args.
2879 set dummy as; ac_word=$2
2880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2881 echo "configure:2882: checking for $ac_word" >&5
2882 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2883   echo $ac_n "(cached) $ac_c" 1>&6
2884 else
2885   if test -n "$AS"; then
2886   ac_cv_prog_AS="$AS" # Let the user override the test.
2887 else
2888   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2889   ac_dummy="$PATH"
2890   for ac_dir in $ac_dummy; do
2891     test -z "$ac_dir" && ac_dir=.
2892     if test -f $ac_dir/$ac_word; then
2893       ac_cv_prog_AS="as"
2894       break
2895     fi
2896   done
2897   IFS="$ac_save_ifs"
2898   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2899 fi
2900 fi
2901 AS="$ac_cv_prog_AS"
2902 if test -n "$AS"; then
2903   echo "$ac_t""$AS" 1>&6
2904 else
2905   echo "$ac_t""no" 1>&6
2906 fi
2907
2908 else
2909   AS="false"
2910 fi
2911 fi
2912
2913   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2914 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2916 echo "configure:2917: checking for $ac_word" >&5
2917 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2918   echo $ac_n "(cached) $ac_c" 1>&6
2919 else
2920   if test -n "$OBJDUMP"; then
2921   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2922 else
2923   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2924   ac_dummy="$PATH"
2925   for ac_dir in $ac_dummy; do
2926     test -z "$ac_dir" && ac_dir=.
2927     if test -f $ac_dir/$ac_word; then
2928       ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2929       break
2930     fi
2931   done
2932   IFS="$ac_save_ifs"
2933 fi
2934 fi
2935 OBJDUMP="$ac_cv_prog_OBJDUMP"
2936 if test -n "$OBJDUMP"; then
2937   echo "$ac_t""$OBJDUMP" 1>&6
2938 else
2939   echo "$ac_t""no" 1>&6
2940 fi
2941
2942
2943 if test -z "$ac_cv_prog_OBJDUMP"; then
2944 if test -n "$ac_tool_prefix"; then
2945   # Extract the first word of "objdump", so it can be a program name with args.
2946 set dummy objdump; ac_word=$2
2947 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2948 echo "configure:2949: checking for $ac_word" >&5
2949 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2950   echo $ac_n "(cached) $ac_c" 1>&6
2951 else
2952   if test -n "$OBJDUMP"; then
2953   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2954 else
2955   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2956   ac_dummy="$PATH"
2957   for ac_dir in $ac_dummy; do
2958     test -z "$ac_dir" && ac_dir=.
2959     if test -f $ac_dir/$ac_word; then
2960       ac_cv_prog_OBJDUMP="objdump"
2961       break
2962     fi
2963   done
2964   IFS="$ac_save_ifs"
2965   test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
2966 fi
2967 fi
2968 OBJDUMP="$ac_cv_prog_OBJDUMP"
2969 if test -n "$OBJDUMP"; then
2970   echo "$ac_t""$OBJDUMP" 1>&6
2971 else
2972   echo "$ac_t""no" 1>&6
2973 fi
2974
2975 else
2976   OBJDUMP="false"
2977 fi
2978 fi
2979
2980
2981   # recent cygwin and mingw systems supply a stub DllMain which the user
2982   # can override, but on older systems we have to supply one
2983   echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
2984 echo "configure:2985: checking if libtool should supply DllMain function" >&5
2985 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
2986   echo $ac_n "(cached) $ac_c" 1>&6
2987 else
2988   cat > conftest.$ac_ext <<EOF
2989 #line 2990 "configure"
2990 #include "confdefs.h"
2991
2992 int main() {
2993 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
2994       DllMain (0, 0, 0);
2995 ; return 0; }
2996 EOF
2997 if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2998   rm -rf conftest*
2999   lt_cv_need_dllmain=no
3000 else
3001   echo "configure: failed program was:" >&5
3002   cat conftest.$ac_ext >&5
3003   rm -rf conftest*
3004   lt_cv_need_dllmain=yes
3005 fi
3006 rm -f conftest*
3007 fi
3008
3009 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
3010
3011   case $host/$CC in
3012   *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
3013     # old mingw systems require "-dll" to link a DLL, while more recent ones
3014     # require "-mdll"
3015     SAVE_CFLAGS="$CFLAGS"
3016     CFLAGS="$CFLAGS -mdll"
3017     echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
3018 echo "configure:3019: checking how to link DLLs" >&5
3019 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
3020   echo $ac_n "(cached) $ac_c" 1>&6
3021 else
3022   cat > conftest.$ac_ext <<EOF
3023 #line 3024 "configure"
3024 #include "confdefs.h"
3025
3026 int main() {
3027
3028 ; return 0; }
3029 EOF
3030 if { (eval echo configure:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3031   rm -rf conftest*
3032   lt_cv_cc_dll_switch=-mdll
3033 else
3034   echo "configure: failed program was:" >&5
3035   cat conftest.$ac_ext >&5
3036   rm -rf conftest*
3037   lt_cv_cc_dll_switch=-dll
3038 fi
3039 rm -f conftest*
3040 fi
3041
3042 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
3043     CFLAGS="$SAVE_CFLAGS" ;;
3044   *-*-cygwin* | *-*-pw32*)
3045     # cygwin systems need to pass --dll to the linker, and not link
3046     # crt.o which will require a WinMain@16 definition.
3047     lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
3048   esac
3049   ;;
3050   
3051 esac
3052
3053 # Sed substitution that helps us do robust quoting.  It backslashifies
3054 # metacharacters that are still active within double-quoted strings.
3055 Xsed='sed -e s/^X//'
3056 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3057
3058 # Same as above, but do not quote variable references.
3059 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3060
3061 # Sed substitution to delay expansion of an escaped shell variable in a
3062 # double_quote_subst'ed string.
3063 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3064
3065 # Constants:
3066 rm="rm -f"
3067
3068 # Global variables:
3069 default_ofile=libtool
3070 can_build_shared=yes
3071
3072 # All known linkers require a `.a' archive for static linking (except M$VC,
3073 # which needs '.lib').
3074 libext=a
3075 ltmain="$ac_aux_dir/ltmain.sh"
3076 ofile="$default_ofile"
3077 with_gnu_ld="$lt_cv_prog_gnu_ld"
3078 need_locks="$enable_libtool_lock"
3079
3080 old_CC="$CC"
3081 old_CFLAGS="$CFLAGS"
3082
3083 # Set sane defaults for various variables
3084 test -z "$AR" && AR=ar
3085 test -z "$AR_FLAGS" && AR_FLAGS=cru
3086 test -z "$AS" && AS=as
3087 test -z "$CC" && CC=cc
3088 test -z "$DLLTOOL" && DLLTOOL=dlltool
3089 test -z "$LD" && LD=ld
3090 test -z "$LN_S" && LN_S="ln -s"
3091 test -z "$MAGIC_CMD" && MAGIC_CMD=file
3092 test -z "$NM" && NM=nm
3093 test -z "$OBJDUMP" && OBJDUMP=objdump
3094 test -z "$RANLIB" && RANLIB=:
3095 test -z "$STRIP" && STRIP=:
3096 test -z "$ac_objext" && ac_objext=o
3097
3098 if test x"$host" != x"$build"; then
3099   ac_tool_prefix=${host_alias}-
3100 else
3101   ac_tool_prefix=
3102 fi
3103
3104 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3105 case $host_os in
3106 linux-gnu*) ;;
3107 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3108 esac
3109
3110 case $host_os in
3111 aix3*)
3112   # AIX sometimes has problems with the GCC collect2 program.  For some
3113   # reason, if we set the COLLECT_NAMES environment variable, the problems
3114   # vanish in a puff of smoke.
3115   if test "X${COLLECT_NAMES+set}" != Xset; then
3116     COLLECT_NAMES=
3117     export COLLECT_NAMES
3118   fi
3119   ;;
3120 esac
3121
3122 # Determine commands to create old-style static archives.
3123 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3124 old_postinstall_cmds='chmod 644 $oldlib'
3125 old_postuninstall_cmds=
3126
3127 if test -n "$RANLIB"; then
3128   case $host_os in
3129   openbsd*)
3130     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3131     ;;
3132   *)
3133     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3134     ;;
3135   esac
3136   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3137 fi
3138
3139 # Allow CC to be a program name with arguments.
3140 set dummy $CC
3141 compiler="$2"
3142
3143 echo $ac_n "checking for objdir""... $ac_c" 1>&6
3144 echo "configure:3145: checking for objdir" >&5
3145 rm -f .libs 2>/dev/null
3146 mkdir .libs 2>/dev/null
3147 if test -d .libs; then
3148   objdir=.libs
3149 else
3150   # MS-DOS does not allow filenames that begin with a dot.
3151   objdir=_libs
3152 fi
3153 rmdir .libs 2>/dev/null
3154 echo "$ac_t""$objdir" 1>&6
3155
3156
3157 # Check whether --with-pic or --without-pic was given.
3158 if test "${with_pic+set}" = set; then
3159   withval="$with_pic"
3160   pic_mode="$withval"
3161 else
3162   pic_mode=default
3163 fi
3164
3165 test -z "$pic_mode" && pic_mode=default
3166
3167 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
3168 # in isolation, and that seeing it set (from the cache) indicates that
3169 # the associated values are set (in the cache) correctly too.
3170 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
3171 echo "configure:3172: checking for $compiler option to produce PIC" >&5
3172 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
3173   echo $ac_n "(cached) $ac_c" 1>&6
3174 else
3175    lt_cv_prog_cc_pic=
3176   lt_cv_prog_cc_shlib=
3177   lt_cv_prog_cc_wl=
3178   lt_cv_prog_cc_static=
3179   lt_cv_prog_cc_no_builtin=
3180   lt_cv_prog_cc_can_build_shared=$can_build_shared
3181
3182   if test "$GCC" = yes; then
3183     lt_cv_prog_cc_wl='-Wl,'
3184     lt_cv_prog_cc_static='-static'
3185
3186     case $host_os in
3187     aix*)
3188       # Below there is a dirty hack to force normal static linking with -ldl
3189       # The problem is because libdl dynamically linked with both libc and
3190       # libC (AIX C++ library), which obviously doesn't included in libraries
3191       # list by gcc. This cause undefined symbols with -static flags.
3192       # This hack allows C programs to be linked with "-static -ldl", but
3193       # not sure about C++ programs.
3194       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3195       ;;
3196     amigaos*)
3197       # FIXME: we need at least 68020 code to build shared libraries, but
3198       # adding the `-m68020' flag to GCC prevents building anything better,
3199       # like `-m68040'.
3200       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
3201       ;;
3202     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3203       # PIC is the default for these OSes.
3204       ;;
3205     darwin* | rhapsody*)
3206       # PIC is the default on this platform
3207       # Common symbols not allowed in MH_DYLIB files
3208       lt_cv_prog_cc_pic='-fno-common'
3209       ;;
3210     cygwin* | mingw* | pw32* | os2*)
3211       # This hack is so that the source file can tell whether it is being
3212       # built for inclusion in a dll (and should export symbols for example).
3213       lt_cv_prog_cc_pic='-DDLL_EXPORT'
3214       ;;
3215     sysv4*MP*)
3216       if test -d /usr/nec; then
3217          lt_cv_prog_cc_pic=-Kconform_pic
3218       fi
3219       ;;
3220     *)
3221       lt_cv_prog_cc_pic='-fPIC'
3222       ;;
3223     esac
3224   else
3225     # PORTME Check for PIC flags for the system compiler.
3226     case $host_os in
3227     aix3* | aix4* | aix5*)
3228       lt_cv_prog_cc_wl='-Wl,'
3229       # All AIX code is PIC.
3230       if test "$host_cpu" = ia64; then
3231         # AIX 5 now supports IA64 processor
3232         lt_cv_prog_cc_static='-Bstatic'
3233       else
3234         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
3235       fi
3236       ;;
3237
3238     hpux9* | hpux10* | hpux11*)
3239       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3240       lt_cv_prog_cc_wl='-Wl,'
3241       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3242       lt_cv_prog_cc_pic='+Z'
3243       ;;
3244
3245     irix5* | irix6* | nonstopux*)
3246       lt_cv_prog_cc_wl='-Wl,'
3247       lt_cv_prog_cc_static='-non_shared'
3248       # PIC (with -KPIC) is the default.
3249       ;;
3250
3251     cygwin* | mingw* | pw32* | os2*)
3252       # This hack is so that the source file can tell whether it is being
3253       # built for inclusion in a dll (and should export symbols for example).
3254       lt_cv_prog_cc_pic='-DDLL_EXPORT'
3255       ;;
3256
3257     newsos6)
3258       lt_cv_prog_cc_pic='-KPIC'
3259       lt_cv_prog_cc_static='-Bstatic'
3260       ;;
3261
3262     osf3* | osf4* | osf5*)
3263       # All OSF/1 code is PIC.
3264       lt_cv_prog_cc_wl='-Wl,'
3265       lt_cv_prog_cc_static='-non_shared'
3266       ;;
3267
3268     sco3.2v5*)
3269       lt_cv_prog_cc_pic='-Kpic'
3270       lt_cv_prog_cc_static='-dn'
3271       lt_cv_prog_cc_shlib='-belf'
3272       ;;
3273
3274     solaris*)
3275       lt_cv_prog_cc_pic='-KPIC'
3276       lt_cv_prog_cc_static='-Bstatic'
3277       lt_cv_prog_cc_wl='-Wl,'
3278       ;;
3279
3280     sunos4*)
3281       lt_cv_prog_cc_pic='-PIC'
3282       lt_cv_prog_cc_static='-Bstatic'
3283       lt_cv_prog_cc_wl='-Qoption ld '
3284       ;;
3285
3286     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3287       lt_cv_prog_cc_pic='-KPIC'
3288       lt_cv_prog_cc_static='-Bstatic'
3289       if test "x$host_vendor" = xsni; then
3290         lt_cv_prog_cc_wl='-LD'
3291       else
3292         lt_cv_prog_cc_wl='-Wl,'
3293       fi
3294       ;;
3295
3296     uts4*)
3297       lt_cv_prog_cc_pic='-pic'
3298       lt_cv_prog_cc_static='-Bstatic'
3299       ;;
3300
3301     sysv4*MP*)
3302       if test -d /usr/nec ;then
3303         lt_cv_prog_cc_pic='-Kconform_pic'
3304         lt_cv_prog_cc_static='-Bstatic'
3305       fi
3306       ;;
3307
3308     *)
3309       lt_cv_prog_cc_can_build_shared=no
3310       ;;
3311     esac
3312   fi
3313
3314 fi
3315
3316 if test -z "$lt_cv_prog_cc_pic"; then
3317   echo "$ac_t""none" 1>&6
3318 else
3319   echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
3320
3321   # Check to make sure the pic_flag actually works.
3322   echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
3323 echo "configure:3324: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
3324   if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
3325   echo $ac_n "(cached) $ac_c" 1>&6
3326 else
3327       save_CFLAGS="$CFLAGS"
3328     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
3329     cat > conftest.$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3332
3333 int main() {
3334
3335 ; return 0; }
3336 EOF
3337 if { (eval echo configure:3338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3338   rm -rf conftest*
3339         case $host_os in
3340       hpux9* | hpux10* | hpux11*)
3341         # On HP-UX, both CC and GCC only warn that PIC is supported... then
3342         # they create non-PIC objects.  So, if there were any warnings, we
3343         # assume that PIC is not supported.
3344         if test -s conftest.err; then
3345           lt_cv_prog_cc_pic_works=no
3346         else
3347           lt_cv_prog_cc_pic_works=yes
3348         fi
3349         ;;
3350       *)
3351         lt_cv_prog_cc_pic_works=yes
3352         ;;
3353       esac
3354     
3355 else
3356   echo "configure: failed program was:" >&5
3357   cat conftest.$ac_ext >&5
3358   rm -rf conftest*
3359         lt_cv_prog_cc_pic_works=no
3360     
3361 fi
3362 rm -f conftest*
3363     CFLAGS="$save_CFLAGS"
3364   
3365 fi
3366
3367
3368   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
3369     lt_cv_prog_cc_pic=
3370     lt_cv_prog_cc_can_build_shared=no
3371   else
3372     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
3373   fi
3374
3375   echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
3376 fi
3377
3378 # Check for any special shared library compilation flags.
3379 if test -n "$lt_cv_prog_cc_shlib"; then
3380   echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
3381   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
3382   else
3383    echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
3384     lt_cv_prog_cc_can_build_shared=no
3385   fi
3386 fi
3387
3388 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
3389 echo "configure:3390: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
3390 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
3391   echo $ac_n "(cached) $ac_c" 1>&6
3392 else
3393     lt_cv_prog_cc_static_works=no
3394   save_LDFLAGS="$LDFLAGS"
3395   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
3396   cat > conftest.$ac_ext <<EOF
3397 #line 3398 "configure"
3398 #include "confdefs.h"
3399
3400 int main() {
3401
3402 ; return 0; }
3403 EOF
3404 if { (eval echo configure:3405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3405   rm -rf conftest*
3406   lt_cv_prog_cc_static_works=yes
3407 else
3408   echo "configure: failed program was:" >&5
3409   cat conftest.$ac_ext >&5
3410 fi
3411 rm -f conftest*
3412   LDFLAGS="$save_LDFLAGS"
3413
3414 fi
3415
3416
3417 # Belt *and* braces to stop my trousers falling down:
3418 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
3419 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
3420
3421 pic_flag="$lt_cv_prog_cc_pic"
3422 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
3423 wl="$lt_cv_prog_cc_wl"
3424 link_static_flag="$lt_cv_prog_cc_static"
3425 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
3426 can_build_shared="$lt_cv_prog_cc_can_build_shared"
3427
3428
3429 # Check to see if options -o and -c are simultaneously supported by compiler
3430 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
3431 echo "configure:3432: checking if $compiler supports -c -o file.$ac_objext" >&5
3432 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
3433   echo $ac_n "(cached) $ac_c" 1>&6
3434 else
3435   
3436 $rm -r conftest 2>/dev/null
3437 mkdir conftest
3438 cd conftest
3439 echo "int some_variable = 0;" > conftest.$ac_ext
3440 mkdir out
3441 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
3442 # that will create temporary files in the current directory regardless of
3443 # the output directory.  Thus, making CWD read-only will cause this test
3444 # to fail, enabling locking or at least warning the user not to do parallel
3445 # builds.
3446 chmod -w .
3447 save_CFLAGS="$CFLAGS"
3448 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
3449 compiler_c_o=no
3450 if { (eval echo configure:3451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
3451   # The compiler can only warn and ignore the option if not recognized
3452   # So say no if there are warnings
3453   if test -s out/conftest.err; then
3454     lt_cv_compiler_c_o=no
3455   else
3456     lt_cv_compiler_c_o=yes
3457   fi
3458 else
3459   # Append any errors to the config.log.
3460   cat out/conftest.err 1>&5
3461   lt_cv_compiler_c_o=no
3462 fi
3463 CFLAGS="$save_CFLAGS"
3464 chmod u+w .
3465 $rm conftest* out/*
3466 rmdir out
3467 cd ..
3468 rmdir conftest
3469 $rm -r conftest 2>/dev/null
3470
3471 fi
3472
3473 compiler_c_o=$lt_cv_compiler_c_o
3474 echo "$ac_t""$compiler_c_o" 1>&6
3475
3476 if test x"$compiler_c_o" = x"yes"; then
3477   # Check to see if we can write to a .lo
3478   echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
3479 echo "configure:3480: checking if $compiler supports -c -o file.lo" >&5
3480   if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
3481   echo $ac_n "(cached) $ac_c" 1>&6
3482 else
3483   
3484   lt_cv_compiler_o_lo=no
3485   save_CFLAGS="$CFLAGS"
3486   CFLAGS="$CFLAGS -c -o conftest.lo"
3487   save_objext="$ac_objext"
3488   ac_objext=lo
3489   cat > conftest.$ac_ext <<EOF
3490 #line 3491 "configure"
3491 #include "confdefs.h"
3492
3493 int main() {
3494 int some_variable = 0;
3495 ; return 0; }
3496 EOF
3497 if { (eval echo configure:3498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3498   rm -rf conftest*
3499       # The compiler can only warn and ignore the option if not recognized
3500     # So say no if there are warnings
3501     if test -s conftest.err; then
3502       lt_cv_compiler_o_lo=no
3503     else
3504       lt_cv_compiler_o_lo=yes
3505     fi
3506   
3507 else
3508   echo "configure: failed program was:" >&5
3509   cat conftest.$ac_ext >&5
3510 fi
3511 rm -f conftest*
3512   ac_objext="$save_objext"
3513   CFLAGS="$save_CFLAGS"
3514   
3515 fi
3516
3517   compiler_o_lo=$lt_cv_compiler_o_lo
3518   echo "$ac_t""$compiler_o_lo" 1>&6
3519 else
3520   compiler_o_lo=no
3521 fi
3522
3523 # Check to see if we can do hard links to lock some files if needed
3524 hard_links="nottested"
3525 if test "$compiler_c_o" = no && test "$need_locks" != no; then
3526   # do not overwrite the value of need_locks provided by the user
3527   echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3528 echo "configure:3529: checking if we can lock with hard links" >&5
3529   hard_links=yes
3530   $rm conftest*
3531   ln conftest.a conftest.b 2>/dev/null && hard_links=no
3532   touch conftest.a
3533   ln conftest.a conftest.b 2>&5 || hard_links=no
3534   ln conftest.a conftest.b 2>/dev/null && hard_links=no
3535   echo "$ac_t""$hard_links" 1>&6
3536   if test "$hard_links" = no; then
3537     echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3538     need_locks=warn
3539   fi
3540 else
3541   need_locks=no
3542 fi
3543
3544 if test "$GCC" = yes; then
3545   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3546   echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3547 echo "configure:3548: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3548   echo "int some_variable = 0;" > conftest.$ac_ext
3549   save_CFLAGS="$CFLAGS"
3550   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3551   compiler_rtti_exceptions=no
3552   cat > conftest.$ac_ext <<EOF
3553 #line 3554 "configure"
3554 #include "confdefs.h"
3555
3556 int main() {
3557 int some_variable = 0;
3558 ; return 0; }
3559 EOF
3560 if { (eval echo configure:3561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3561   rm -rf conftest*
3562       # The compiler can only warn and ignore the option if not recognized
3563     # So say no if there are warnings
3564     if test -s conftest.err; then
3565       compiler_rtti_exceptions=no
3566     else
3567       compiler_rtti_exceptions=yes
3568     fi
3569   
3570 else
3571   echo "configure: failed program was:" >&5
3572   cat conftest.$ac_ext >&5
3573 fi
3574 rm -f conftest*
3575   CFLAGS="$save_CFLAGS"
3576   echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3577
3578   if test "$compiler_rtti_exceptions" = "yes"; then
3579     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3580   else
3581     no_builtin_flag=' -fno-builtin'
3582   fi
3583 fi
3584
3585 # See if the linker supports building shared libraries.
3586 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3587 echo "configure:3588: checking whether the linker ($LD) supports shared libraries" >&5
3588
3589 allow_undefined_flag=
3590 no_undefined_flag=
3591 need_lib_prefix=unknown
3592 need_version=unknown
3593 # when you set need_version to no, make sure it does not cause -set_version
3594 # flags to be left without arguments
3595 archive_cmds=
3596 archive_expsym_cmds=
3597 old_archive_from_new_cmds=
3598 old_archive_from_expsyms_cmds=
3599 export_dynamic_flag_spec=
3600 whole_archive_flag_spec=
3601 thread_safe_flag_spec=
3602 hardcode_into_libs=no
3603 hardcode_libdir_flag_spec=
3604 hardcode_libdir_separator=
3605 hardcode_direct=no
3606 hardcode_minus_L=no
3607 hardcode_shlibpath_var=unsupported
3608 runpath_var=
3609 link_all_deplibs=unknown
3610 always_export_symbols=no
3611 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3612 # include_expsyms should be a list of space-separated symbols to be *always*
3613 # included in the symbol list
3614 include_expsyms=
3615 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3616 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3617 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3618 # as well as any symbol that contains `d'.
3619 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3620 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3621 # platforms (ab)use it in PIC code, but their linkers get confused if
3622 # the symbol is explicitly referenced.  Since portable code cannot
3623 # rely on this symbol name, it's probably fine to never include it in
3624 # preloaded symbol tables.
3625 extract_expsyms_cmds=
3626
3627 case $host_os in
3628 cygwin* | mingw* | pw32*)
3629   # FIXME: the MSVC++ port hasn't been tested in a loooong time
3630   # When not using gcc, we currently assume that we are using
3631   # Microsoft Visual C++.
3632   if test "$GCC" != yes; then
3633     with_gnu_ld=no
3634   fi
3635   ;;
3636 openbsd*)
3637   with_gnu_ld=no
3638   ;;
3639 esac
3640
3641 ld_shlibs=yes
3642 if test "$with_gnu_ld" = yes; then
3643   # If archive_cmds runs LD, not CC, wlarc should be empty
3644   wlarc='${wl}'
3645
3646   # See if GNU ld supports shared libraries.
3647   case $host_os in
3648   aix3* | aix4* | aix5*)
3649     # On AIX, the GNU linker is very broken
3650     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3651     ld_shlibs=no
3652     cat <<EOF 1>&2
3653
3654 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3655 *** to be unable to reliably create shared libraries on AIX.
3656 *** Therefore, libtool is disabling shared libraries support.  If you
3657 *** really care for shared libraries, you may want to modify your PATH
3658 *** so that a non-GNU linker is found, and then restart.
3659
3660 EOF
3661     ;;
3662
3663   amigaos*)
3664     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
3665     hardcode_libdir_flag_spec='-L$libdir'
3666     hardcode_minus_L=yes
3667
3668     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3669     # that the semantics of dynamic libraries on AmigaOS, at least up
3670     # to version 4, is to share data among multiple programs linked
3671     # with the same dynamic library.  Since this doesn't match the
3672     # behavior of shared libraries on other platforms, we can use
3673     # them.
3674     ld_shlibs=no
3675     ;;
3676
3677   beos*)
3678     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3679       allow_undefined_flag=unsupported
3680       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3681       # support --undefined.  This deserves some investigation.  FIXME
3682       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3683     else
3684       ld_shlibs=no
3685     fi
3686     ;;
3687
3688   cygwin* | mingw* | pw32*)
3689     # hardcode_libdir_flag_spec is actually meaningless, as there is
3690     # no search path for DLLs.
3691     hardcode_libdir_flag_spec='-L$libdir'
3692     allow_undefined_flag=unsupported
3693     always_export_symbols=yes
3694
3695     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3696       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3697       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3698       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3699       else $CC -o impgen impgen.c ; fi)~
3700       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3701
3702     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3703
3704     # cygwin and mingw dlls have different entry points and sets of symbols
3705     # to exclude.
3706     # FIXME: what about values for MSVC?
3707     dll_entry=__cygwin_dll_entry@12
3708     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3709     case $host_os in
3710     mingw*)
3711       # mingw values
3712       dll_entry=_DllMainCRTStartup@12
3713       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3714       ;;
3715     esac
3716
3717     # mingw and cygwin differ, and it's simplest to just exclude the union
3718     # of the two symbol sets.
3719     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3720
3721     # recent cygwin and mingw systems supply a stub DllMain which the user
3722     # can override, but on older systems we have to supply one (in ltdll.c)
3723     if test "x$lt_cv_need_dllmain" = "xyes"; then
3724       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3725       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
3726         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3727     else
3728       ltdll_obj=
3729       ltdll_cmds=
3730     fi
3731
3732     # Extract the symbol export list from an `--export-all' def file,
3733     # then regenerate the def file from the symbol export list, so that
3734     # the compiled dll only exports the symbol export list.
3735     # Be careful not to strip the DATA tag left be newer dlltools.
3736     export_symbols_cmds="$ltdll_cmds"'
3737       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3738       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3739
3740     # If the export-symbols file already is a .def file (1st line
3741     # is EXPORTS), use it as is.
3742     # If DATA tags from a recent dlltool are present, honour them!
3743     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3744         cp $export_symbols $output_objdir/$soname-def;
3745       else
3746         echo EXPORTS > $output_objdir/$soname-def;
3747         _lt_hint=1;
3748         cat $export_symbols | while read symbol; do
3749          set dummy \$symbol;
3750          case \$# in
3751            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3752            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3753          esac;
3754          _lt_hint=`expr 1 + \$_lt_hint`;
3755         done;
3756       fi~
3757       '"$ltdll_cmds"'
3758       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
3759       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
3760       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
3761       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
3762       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3763     ;;
3764
3765   netbsd*)
3766     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3767       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3768       wlarc=
3769     else
3770       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3771       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3772     fi
3773     ;;
3774
3775   solaris* | sysv5*)
3776     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3777       ld_shlibs=no
3778       cat <<EOF 1>&2
3779
3780 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3781 *** create shared libraries on Solaris systems.  Therefore, libtool
3782 *** is disabling shared libraries support.  We urge you to upgrade GNU
3783 *** binutils to release 2.9.1 or newer.  Another option is to modify
3784 *** your PATH or compiler configuration so that the native linker is
3785 *** used, and then restart.
3786
3787 EOF
3788     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3789       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3790       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3791     else
3792       ld_shlibs=no
3793     fi
3794     ;;
3795
3796   sunos4*)
3797     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3798     wlarc=
3799     hardcode_direct=yes
3800     hardcode_shlibpath_var=no
3801     ;;
3802
3803   *)
3804     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3805       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3806       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3807     else
3808       ld_shlibs=no
3809     fi
3810     ;;
3811   esac
3812
3813   if test "$ld_shlibs" = yes; then
3814     runpath_var=LD_RUN_PATH
3815     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3816     export_dynamic_flag_spec='${wl}--export-dynamic'
3817     case $host_os in
3818     cygwin* | mingw* | pw32*)
3819       # dlltool doesn't understand --whole-archive et. al.
3820       whole_archive_flag_spec=
3821       ;;
3822     *)
3823       # ancient GNU ld didn't support --whole-archive et. al.
3824       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3825         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3826       else
3827         whole_archive_flag_spec=
3828       fi
3829       ;;
3830     esac
3831   fi
3832 else
3833   # PORTME fill in a description of your system's linker (not GNU ld)
3834   case $host_os in
3835   aix3*)
3836     allow_undefined_flag=unsupported
3837     always_export_symbols=yes
3838     archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
3839     # Note: this linker hardcodes the directories in LIBPATH if there
3840     # are no directories specified by -L.
3841     hardcode_minus_L=yes
3842     if test "$GCC" = yes && test -z "$link_static_flag"; then
3843       # Neither direct hardcoding nor static linking is supported with a
3844       # broken collect2.
3845       hardcode_direct=unsupported
3846     fi
3847     ;;
3848
3849   aix4* | aix5*)
3850     if test "$host_cpu" = ia64; then
3851       # On IA64, the linker does run time linking by default, so we don't
3852       # have to do anything special.
3853       aix_use_runtimelinking=no
3854       exp_sym_flag='-Bexport'
3855       no_entry_flag=""
3856     else
3857       aix_use_runtimelinking=no
3858
3859       # Test if we are trying to use run time linking or normal
3860       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3861       # need to do runtime linking.
3862       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
3863         for ld_flag in $LDFLAGS; do
3864           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3865             aix_use_runtimelinking=yes
3866             break
3867           fi
3868         done
3869       esac
3870
3871       exp_sym_flag='-bexport'
3872       no_entry_flag='-bnoentry'
3873     fi
3874
3875     # When large executables or shared objects are built, AIX ld can
3876     # have problems creating the table of contents.  If linking a library
3877     # or program results in "error TOC overflow" add -mminimal-toc to
3878     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
3879     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3880
3881     hardcode_direct=yes
3882     archive_cmds=''
3883     hardcode_libdir_separator=':'
3884     if test "$GCC" = yes; then
3885       case $host_os in aix4.[012]|aix4.[012].*)
3886         collect2name=`${CC} -print-prog-name=collect2`
3887         if test -f "$collect2name" && \
3888           strings "$collect2name" | grep resolve_lib_name >/dev/null
3889         then
3890           # We have reworked collect2
3891           hardcode_direct=yes
3892         else
3893           # We have old collect2
3894           hardcode_direct=unsupported
3895           # It fails to find uninstalled libraries when the uninstalled
3896           # path is not listed in the libpath.  Setting hardcode_minus_L
3897           # to unsupported forces relinking
3898           hardcode_minus_L=yes
3899           hardcode_libdir_flag_spec='-L$libdir'
3900           hardcode_libdir_separator=
3901         fi
3902       esac
3903
3904       shared_flag='-shared'
3905     else
3906       # not using gcc
3907       if test "$host_cpu" = ia64; then
3908         shared_flag='${wl}-G'
3909       else
3910         if test "$aix_use_runtimelinking" = yes; then
3911           shared_flag='${wl}-G'
3912         else
3913           shared_flag='${wl}-bM:SRE'
3914         fi
3915       fi
3916     fi
3917
3918     # It seems that -bexpall can do strange things, so it is better to
3919     # generate a list of symbols to export.
3920     always_export_symbols=yes
3921     if test "$aix_use_runtimelinking" = yes; then
3922       # Warning - without using the other runtime loading flags (-brtl),
3923       # -berok will link without error, but may produce a broken library.
3924       allow_undefined_flag='-berok'
3925       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3926       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3927     else
3928       if test "$host_cpu" = ia64; then
3929         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3930         allow_undefined_flag="-z nodefs"
3931         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
3932       else
3933         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3934         # Warning - without using the other run time loading flags,
3935         # -berok will link without error, but may produce a broken library.
3936         allow_undefined_flag='${wl}-berok'
3937         # This is a bit strange, but is similar to how AIX traditionally builds
3938         # it's shared libraries.
3939         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
3940       fi
3941     fi
3942     ;;
3943
3944   amigaos*)
3945     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
3946     hardcode_libdir_flag_spec='-L$libdir'
3947     hardcode_minus_L=yes
3948     # see comment about different semantics on the GNU ld section
3949     ld_shlibs=no
3950     ;;
3951
3952   cygwin* | mingw* | pw32*)
3953     # When not using gcc, we currently assume that we are using
3954     # Microsoft Visual C++.
3955     # hardcode_libdir_flag_spec is actually meaningless, as there is
3956     # no search path for DLLs.
3957     hardcode_libdir_flag_spec=' '
3958     allow_undefined_flag=unsupported
3959     # Tell ltmain to make .lib files, not .a files.
3960     libext=lib
3961     # FIXME: Setting linknames here is a bad hack.
3962     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3963     # The linker will automatically build a .lib file if we build a DLL.
3964     old_archive_from_new_cmds='true'
3965     # FIXME: Should let the user specify the lib program.
3966     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3967     fix_srcfile_path='`cygpath -w "$srcfile"`'
3968     ;;
3969
3970   darwin* | rhapsody*)
3971     case "$host_os" in
3972     rhapsody* | darwin1.[012])
3973       allow_undefined_flag='-undefined suppress'
3974       ;;
3975     *) # Darwin 1.3 on
3976       allow_undefined_flag='-flat_namespace -undefined suppress'
3977       ;;
3978     esac
3979     # FIXME: Relying on posixy $() will cause problems for
3980     #        cross-compilation, but unfortunately the echo tests do not
3981     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
3982     #        `"' quotes if we put them in here... so don't!
3983     archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
3984     # We need to add '_' to the symbols in $export_symbols first
3985     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3986     hardcode_direct=yes
3987     hardcode_shlibpath_var=no
3988     whole_archive_flag_spec='-all_load $convenience'
3989     ;;
3990
3991   freebsd1*)
3992     ld_shlibs=no
3993     ;;
3994
3995   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3996   # support.  Future versions do this automatically, but an explicit c++rt0.o
3997   # does not break anything, and helps significantly (at the cost of a little
3998   # extra space).
3999   freebsd2.2*)
4000     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4001     hardcode_libdir_flag_spec='-R$libdir'
4002     hardcode_direct=yes
4003     hardcode_shlibpath_var=no
4004     ;;
4005
4006   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4007   freebsd2*)
4008     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4009     hardcode_direct=yes
4010     hardcode_minus_L=yes
4011     hardcode_shlibpath_var=no
4012     ;;
4013
4014   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4015   freebsd*)
4016     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4017     hardcode_libdir_flag_spec='-R$libdir'
4018     hardcode_direct=yes
4019     hardcode_shlibpath_var=no
4020     ;;
4021
4022   hpux9* | hpux10* | hpux11*)
4023     case $host_os in
4024     hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
4025     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4026     esac
4027     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4028     hardcode_libdir_separator=:
4029     hardcode_direct=yes
4030     hardcode_minus_L=yes # Not in the search PATH, but as the default
4031                          # location of the library.
4032     export_dynamic_flag_spec='${wl}-E'
4033     ;;
4034
4035   irix5* | irix6* | nonstopux*)
4036     if test "$GCC" = yes; then
4037       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4038     else
4039       archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4040     fi
4041     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4042     hardcode_libdir_separator=:
4043     link_all_deplibs=yes
4044     ;;
4045
4046   netbsd*)
4047     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4048       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
4049     else
4050       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
4051     fi
4052     hardcode_libdir_flag_spec='-R$libdir'
4053     hardcode_direct=yes
4054     hardcode_shlibpath_var=no
4055     ;;
4056
4057   newsos6)
4058     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4059     hardcode_direct=yes
4060     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4061     hardcode_libdir_separator=:
4062     hardcode_shlibpath_var=no
4063     ;;
4064
4065   openbsd*)
4066     hardcode_direct=yes
4067     hardcode_shlibpath_var=no
4068     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4069       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4070       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4071       export_dynamic_flag_spec='${wl}-E'
4072     else
4073       case "$host_os" in
4074       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
4075         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4076         hardcode_libdir_flag_spec='-R$libdir'
4077         ;;
4078       *)
4079         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4080         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4081         ;;
4082       esac
4083     fi
4084     ;;
4085
4086   os2*)
4087     hardcode_libdir_flag_spec='-L$libdir'
4088     hardcode_minus_L=yes
4089     allow_undefined_flag=unsupported
4090     archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4091     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4092     ;;
4093
4094   osf3*)
4095     if test "$GCC" = yes; then
4096       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4097       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4098     else
4099       allow_undefined_flag=' -expect_unresolved \*'
4100       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4101     fi
4102     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4103     hardcode_libdir_separator=:
4104     ;;
4105
4106   osf4* | osf5*)        # as osf3* with the addition of -msym flag
4107     if test "$GCC" = yes; then
4108       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4109       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4110       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4111     else
4112       allow_undefined_flag=' -expect_unresolved \*'
4113       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4114       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4115       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
4116
4117       #Both c and cxx compiler support -rpath directly
4118       hardcode_libdir_flag_spec='-rpath $libdir'
4119     fi
4120     hardcode_libdir_separator=:
4121     ;;
4122
4123   sco3.2v5*)
4124     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4125     hardcode_shlibpath_var=no
4126     runpath_var=LD_RUN_PATH
4127     hardcode_runpath_var=yes
4128     export_dynamic_flag_spec='${wl}-Bexport'
4129     ;;
4130
4131   solaris*)
4132     # gcc --version < 3.0 without binutils cannot create self contained
4133     # shared libraries reliably, requiring libgcc.a to resolve some of
4134     # the object symbols generated in some cases.  Libraries that use
4135     # assert need libgcc.a to resolve __eprintf, for example.  Linking
4136     # a copy of libgcc.a into every shared library to guarantee resolving
4137     # such symbols causes other problems:  According to Tim Van Holder
4138     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
4139     # (to the application) exception stack for one thing.
4140     no_undefined_flag=' -z defs'
4141     if test "$GCC" = yes; then
4142       case `$CC --version 2>/dev/null` in
4143       [12].*)
4144         cat <<EOF 1>&2
4145
4146 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
4147 *** create self contained shared libraries on Solaris systems, without
4148 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
4149 *** -no-undefined support, which will at least allow you to build shared
4150 *** libraries.  However, you may find that when you link such libraries
4151 *** into an application without using GCC, you have to manually add
4152 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
4153 *** upgrade to a newer version of GCC.  Another option is to rebuild your
4154 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
4155
4156 EOF
4157         no_undefined_flag=
4158         ;;
4159       esac
4160     fi
4161     # $CC -shared without GNU ld will not create a library from C++
4162     # object files and a static libstdc++, better avoid it by now
4163     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4164     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4165                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4166     hardcode_libdir_flag_spec='-R$libdir'
4167     hardcode_shlibpath_var=no
4168     case $host_os in
4169     solaris2.[0-5] | solaris2.[0-5].*) ;;
4170     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4171       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4172     esac
4173     link_all_deplibs=yes
4174     ;;
4175
4176   sunos4*)
4177     if test "x$host_vendor" = xsequent; then
4178       # Use $CC to link under sequent, because it throws in some extra .o
4179       # files that make .init and .fini sections work.
4180       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4181     else
4182       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4183     fi
4184     hardcode_libdir_flag_spec='-L$libdir'
4185     hardcode_direct=yes
4186     hardcode_minus_L=yes
4187     hardcode_shlibpath_var=no
4188     ;;
4189
4190   sysv4)
4191     if test "x$host_vendor" = xsno; then
4192       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
4193       hardcode_direct=yes # is this really true???
4194     else
4195       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4196       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4197     fi
4198     runpath_var='LD_RUN_PATH'
4199     hardcode_shlibpath_var=no
4200     ;;
4201
4202   sysv4.3*)
4203     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4204     hardcode_shlibpath_var=no
4205     export_dynamic_flag_spec='-Bexport'
4206     ;;
4207
4208   sysv5*)
4209     no_undefined_flag=' -z text'
4210     # $CC -shared without GNU ld will not create a library from C++
4211     # object files and a static libstdc++, better avoid it by now
4212     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4213     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4214                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4215     hardcode_libdir_flag_spec=
4216     hardcode_shlibpath_var=no
4217     runpath_var='LD_RUN_PATH'
4218     ;;
4219
4220   uts4*)
4221     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4222     hardcode_libdir_flag_spec='-L$libdir'
4223     hardcode_shlibpath_var=no
4224     ;;
4225
4226   dgux*)
4227     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4228     hardcode_libdir_flag_spec='-L$libdir'
4229     hardcode_shlibpath_var=no
4230     ;;
4231
4232   sysv4*MP*)
4233     if test -d /usr/nec; then
4234       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4235       hardcode_shlibpath_var=no
4236       runpath_var=LD_RUN_PATH
4237       hardcode_runpath_var=yes
4238       ld_shlibs=yes
4239     fi
4240     ;;
4241
4242   sysv4.2uw2*)
4243     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4244     hardcode_direct=yes
4245     hardcode_minus_L=no
4246     hardcode_shlibpath_var=no
4247     hardcode_runpath_var=yes
4248     runpath_var=LD_RUN_PATH
4249     ;;
4250
4251   sysv5uw7* | unixware7*)
4252     no_undefined_flag='${wl}-z ${wl}text'
4253     if test "$GCC" = yes; then
4254       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4255     else
4256       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4257     fi
4258     runpath_var='LD_RUN_PATH'
4259     hardcode_shlibpath_var=no
4260     ;;
4261
4262   *)
4263     ld_shlibs=no
4264     ;;
4265   esac
4266 fi
4267 echo "$ac_t""$ld_shlibs" 1>&6
4268 test "$ld_shlibs" = no && can_build_shared=no
4269
4270 # Check hardcoding attributes.
4271 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
4272 echo "configure:4273: checking how to hardcode library paths into programs" >&5
4273 hardcode_action=
4274 if test -n "$hardcode_libdir_flag_spec" || \
4275    test -n "$runpath_var"; then
4276
4277   # We can hardcode non-existant directories.
4278   if test "$hardcode_direct" != no &&
4279      # If the only mechanism to avoid hardcoding is shlibpath_var, we
4280      # have to relink, otherwise we might link with an installed library
4281      # when we should be linking with a yet-to-be-installed one
4282      ## test "$hardcode_shlibpath_var" != no &&
4283      test "$hardcode_minus_L" != no; then
4284     # Linking always hardcodes the temporary library directory.
4285     hardcode_action=relink
4286   else
4287     # We can link without hardcoding, and we can hardcode nonexisting dirs.
4288     hardcode_action=immediate
4289   fi
4290 else
4291   # We cannot hardcode anything, or else we can only hardcode existing
4292   # directories.
4293   hardcode_action=unsupported
4294 fi
4295 echo "$ac_t""$hardcode_action" 1>&6
4296
4297 striplib=
4298 old_striplib=
4299 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
4300 echo "configure:4301: checking whether stripping libraries is possible" >&5
4301 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
4302   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
4303   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
4304   echo "$ac_t""yes" 1>&6
4305 else
4306   echo "$ac_t""no" 1>&6
4307 fi
4308
4309 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4310 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4311
4312 # PORTME Fill in your ld.so characteristics
4313 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
4314 echo "configure:4315: checking dynamic linker characteristics" >&5
4315 library_names_spec=
4316 libname_spec='lib$name'
4317 soname_spec=
4318 postinstall_cmds=
4319 postuninstall_cmds=
4320 finish_cmds=
4321 finish_eval=
4322 shlibpath_var=
4323 shlibpath_overrides_runpath=unknown
4324 version_type=none
4325 dynamic_linker="$host_os ld.so"
4326 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4327 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4328
4329 case $host_os in
4330 aix3*)
4331   version_type=linux
4332   library_names_spec='${libname}${release}.so$versuffix $libname.a'
4333   shlibpath_var=LIBPATH
4334
4335   # AIX has no versioning support, so we append a major version to the name.
4336   soname_spec='${libname}${release}.so$major'
4337   ;;
4338
4339 aix4* | aix5*)
4340   version_type=linux
4341   if test "$host_cpu" = ia64; then
4342     # AIX 5 supports IA64
4343     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
4344     shlibpath_var=LD_LIBRARY_PATH
4345   else
4346     # With GCC up to 2.95.x, collect2 would create an import file
4347     # for dependence libraries.  The import file would start with
4348     # the line `#! .'.  This would cause the generated library to
4349     # depend on `.', always an invalid library.  This was fixed in
4350     # development snapshots of GCC prior to 3.0.
4351     case $host_os in
4352       aix4 | aix4.[01] | aix4.[01].*)
4353         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4354              echo ' yes '
4355              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4356           :
4357         else
4358           can_build_shared=no
4359         fi
4360         ;;
4361     esac
4362     # AIX (on Power*) has no versioning support, so currently we can
4363     # not hardcode correct soname into executable. Probably we can
4364     # add versioning support to collect2, so additional links can
4365     # be useful in future.
4366     if test "$aix_use_runtimelinking" = yes; then
4367       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4368       # instead of lib<name>.a to let people know that these are not
4369       # typical AIX shared libraries.
4370       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4371     else
4372       # We preserve .a as extension for shared libraries through AIX4.2
4373       # and later when we are not doing run time linking.
4374       library_names_spec='${libname}${release}.a $libname.a'
4375       soname_spec='${libname}${release}.so$major'
4376     fi
4377     shlibpath_var=LIBPATH
4378   fi
4379   ;;
4380
4381 amigaos*)
4382   library_names_spec='$libname.ixlibrary $libname.a'
4383   # Create ${libname}_ixlibrary.a entries in /sys/libs.
4384   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
4385   ;;
4386
4387 beos*)
4388   library_names_spec='${libname}.so'
4389   dynamic_linker="$host_os ld.so"
4390   shlibpath_var=LIBRARY_PATH
4391   ;;
4392
4393 bsdi4*)
4394   version_type=linux
4395   need_version=no
4396   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4397   soname_spec='${libname}${release}.so$major'
4398   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4399   shlibpath_var=LD_LIBRARY_PATH
4400   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4401   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4402   export_dynamic_flag_spec=-rdynamic
4403   # the default ld.so.conf also contains /usr/contrib/lib and
4404   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4405   # libtool to hard-code these into programs
4406   ;;
4407
4408 cygwin* | mingw* | pw32*)
4409   version_type=windows
4410   need_version=no
4411   need_lib_prefix=no
4412   case $GCC,$host_os in
4413   yes,cygwin*)
4414     library_names_spec='$libname.dll.a'
4415     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4416     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
4417       dldir=$destdir/`dirname \$dlpath`~
4418       test -d \$dldir || mkdir -p \$dldir~
4419       $install_prog .libs/$dlname \$dldir/$dlname'
4420     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
4421       dlpath=$dir/\$dldll~
4422        $rm \$dlpath'
4423     ;;
4424   yes,mingw*)
4425     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4426     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
4427     ;;
4428   yes,pw32*)
4429     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
4430     ;;
4431   *)
4432     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
4433     ;;
4434   esac
4435   dynamic_linker='Win32 ld.exe'
4436   # FIXME: first we should search . and the directory the executable is in
4437   shlibpath_var=PATH
4438   ;;
4439
4440 darwin* | rhapsody*)
4441   dynamic_linker="$host_os dyld"
4442   version_type=darwin
4443   need_lib_prefix=no
4444   need_version=no
4445   # FIXME: Relying on posixy $() will cause problems for
4446   #        cross-compilation, but unfortunately the echo tests do not
4447   #        yet detect zsh echo's removal of \ escapes.
4448   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
4449   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
4450   shlibpath_overrides_runpath=yes
4451   shlibpath_var=DYLD_LIBRARY_PATH
4452   ;;
4453
4454 freebsd1*)
4455   dynamic_linker=no
4456   ;;
4457
4458 freebsd*)
4459   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4460   version_type=freebsd-$objformat
4461   case $version_type in
4462     freebsd-elf*)
4463       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4464       need_version=no
4465       need_lib_prefix=no
4466       ;;
4467     freebsd-*)
4468       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
4469       need_version=yes
4470       ;;
4471   esac
4472   shlibpath_var=LD_LIBRARY_PATH
4473   case $host_os in
4474   freebsd2*)
4475     shlibpath_overrides_runpath=yes
4476     ;;
4477   *)
4478     shlibpath_overrides_runpath=no
4479     hardcode_into_libs=yes
4480     ;;
4481   esac
4482   ;;
4483
4484 gnu*)
4485   version_type=linux
4486   need_lib_prefix=no
4487   need_version=no
4488   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
4489   soname_spec='${libname}${release}.so$major'
4490   shlibpath_var=LD_LIBRARY_PATH
4491   hardcode_into_libs=yes
4492   ;;
4493
4494 hpux9* | hpux10* | hpux11*)
4495   # Give a soname corresponding to the major version so that dld.sl refuses to
4496   # link against other versions.
4497   dynamic_linker="$host_os dld.sl"
4498   version_type=sunos
4499   need_lib_prefix=no
4500   need_version=no
4501   shlibpath_var=SHLIB_PATH
4502   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4503   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
4504   soname_spec='${libname}${release}.sl$major'
4505   # HP-UX runs *really* slowly unless shared libraries are mode 555.
4506   postinstall_cmds='chmod 555 $lib'
4507   ;;
4508
4509 irix5* | irix6* | nonstopux*)
4510   case $host_os in
4511     nonstopux*) version_type=nonstopux ;;
4512     *)          version_type=irix ;;
4513   esac
4514   need_lib_prefix=no
4515   need_version=no
4516   soname_spec='${libname}${release}.so$major'
4517   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4518   case $host_os in
4519   irix5* | nonstopux*)
4520     libsuff= shlibsuff=
4521     ;;
4522   *)
4523     case $LD in # libtool.m4 will add one of these switches to LD
4524     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
4525     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
4526     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
4527     *) libsuff= shlibsuff= libmagic=never-match;;
4528     esac
4529     ;;
4530   esac
4531   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4532   shlibpath_overrides_runpath=no
4533   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4534   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4535   ;;
4536
4537 # No shared lib support for Linux oldld, aout, or coff.
4538 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4539   dynamic_linker=no
4540   ;;
4541
4542 # This must be Linux ELF.
4543 linux-gnu*)
4544   version_type=linux
4545   need_lib_prefix=no
4546   need_version=no
4547   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4548   soname_spec='${libname}${release}.so$major'
4549   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4550   shlibpath_var=LD_LIBRARY_PATH
4551   shlibpath_overrides_runpath=no
4552   # This implies no fast_install, which is unacceptable.
4553   # Some rework will be needed to allow for fast_install
4554   # before this can be enabled.
4555   hardcode_into_libs=yes
4556
4557   # We used to test for /lib/ld.so.1 and disable shared libraries on
4558   # powerpc, because MkLinux only supported shared libraries with the
4559   # GNU dynamic linker.  Since this was broken with cross compilers,
4560   # most powerpc-linux boxes support dynamic linking these days and
4561   # people can always --disable-shared, the test was removed, and we
4562   # assume the GNU/Linux dynamic linker is in use.
4563   dynamic_linker='GNU/Linux ld.so'
4564   ;;
4565
4566 netbsd*)
4567   version_type=sunos
4568   need_lib_prefix=no
4569   need_version=no
4570   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4571     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4572     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4573     dynamic_linker='NetBSD (a.out) ld.so'
4574   else
4575     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4576     soname_spec='${libname}${release}.so$major'
4577     dynamic_linker='NetBSD ld.elf_so'
4578   fi
4579   shlibpath_var=LD_LIBRARY_PATH
4580   shlibpath_overrides_runpath=yes
4581   hardcode_into_libs=yes
4582   ;;
4583
4584 newsos6)
4585   version_type=linux
4586   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4587   shlibpath_var=LD_LIBRARY_PATH
4588   shlibpath_overrides_runpath=yes
4589   ;;
4590
4591 openbsd*)
4592   version_type=sunos
4593   need_lib_prefix=no
4594   need_version=no
4595   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4596     case "$host_os" in
4597     openbsd2.[89] | openbsd2.[89].*)
4598       shlibpath_overrides_runpath=no
4599       ;;
4600     *)
4601       shlibpath_overrides_runpath=yes
4602       ;;
4603     esac
4604   else
4605     shlibpath_overrides_runpath=yes
4606   fi
4607   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4608   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4609   shlibpath_var=LD_LIBRARY_PATH
4610   ;;
4611
4612 os2*)
4613   libname_spec='$name'
4614   need_lib_prefix=no
4615   library_names_spec='$libname.dll $libname.a'
4616   dynamic_linker='OS/2 ld.exe'
4617   shlibpath_var=LIBPATH
4618   ;;
4619
4620 osf3* | osf4* | osf5*)
4621   version_type=osf
4622   need_version=no
4623   soname_spec='${libname}${release}.so'
4624   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4625   shlibpath_var=LD_LIBRARY_PATH
4626   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4627   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4628   ;;
4629
4630 sco3.2v5*)
4631   version_type=osf
4632   soname_spec='${libname}${release}.so$major'
4633   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4634   shlibpath_var=LD_LIBRARY_PATH
4635   ;;
4636
4637 solaris*)
4638   version_type=linux
4639   need_lib_prefix=no
4640   need_version=no
4641   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4642   soname_spec='${libname}${release}.so$major'
4643   shlibpath_var=LD_LIBRARY_PATH
4644   shlibpath_overrides_runpath=yes
4645   hardcode_into_libs=yes
4646   # ldd complains unless libraries are executable
4647   postinstall_cmds='chmod +x $lib'
4648   ;;
4649
4650 sunos4*)
4651   version_type=sunos
4652   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4653   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4654   shlibpath_var=LD_LIBRARY_PATH
4655   shlibpath_overrides_runpath=yes
4656   if test "$with_gnu_ld" = yes; then
4657     need_lib_prefix=no
4658   fi
4659   need_version=yes
4660   ;;
4661
4662 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4663   version_type=linux
4664   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4665   soname_spec='${libname}${release}.so$major'
4666   shlibpath_var=LD_LIBRARY_PATH
4667   case $host_vendor in
4668     sni)
4669       shlibpath_overrides_runpath=no
4670       ;;
4671     motorola)
4672       need_lib_prefix=no
4673       need_version=no
4674       shlibpath_overrides_runpath=no
4675       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4676       ;;
4677   esac
4678   ;;
4679
4680 uts4*)
4681   version_type=linux
4682   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4683   soname_spec='${libname}${release}.so$major'
4684   shlibpath_var=LD_LIBRARY_PATH
4685   ;;
4686
4687 dgux*)
4688   version_type=linux
4689   need_lib_prefix=no
4690   need_version=no
4691   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4692   soname_spec='${libname}${release}.so$major'
4693   shlibpath_var=LD_LIBRARY_PATH
4694   ;;
4695
4696 sysv4*MP*)
4697   if test -d /usr/nec ;then
4698     version_type=linux
4699     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4700     soname_spec='$libname.so.$major'
4701     shlibpath_var=LD_LIBRARY_PATH
4702   fi
4703   ;;
4704
4705 *)
4706   dynamic_linker=no
4707   ;;
4708 esac
4709 echo "$ac_t""$dynamic_linker" 1>&6
4710 test "$dynamic_linker" = no && can_build_shared=no
4711
4712 # Report the final consequences.
4713 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4714 echo "configure:4715: checking if libtool supports shared libraries" >&5
4715 echo "$ac_t""$can_build_shared" 1>&6
4716
4717 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
4718 echo "configure:4719: checking whether to build shared libraries" >&5
4719 test "$can_build_shared" = "no" && enable_shared=no
4720
4721 # On AIX, shared libraries and static libraries use the same namespace, and
4722 # are all built from PIC.
4723 case "$host_os" in
4724 aix3*)
4725   test "$enable_shared" = yes && enable_static=no
4726   if test -n "$RANLIB"; then
4727     archive_cmds="$archive_cmds~\$RANLIB \$lib"
4728     postinstall_cmds='$RANLIB $lib'
4729   fi
4730   ;;
4731
4732 aix4*)
4733   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4734     test "$enable_shared" = yes && enable_static=no
4735   fi
4736   ;;
4737 esac
4738 echo "$ac_t""$enable_shared" 1>&6
4739
4740 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
4741 echo "configure:4742: checking whether to build static libraries" >&5
4742 # Make sure either enable_shared or enable_static is yes.
4743 test "$enable_shared" = yes || enable_static=yes
4744 echo "$ac_t""$enable_static" 1>&6
4745
4746 if test "$hardcode_action" = relink; then
4747   # Fast installation is not supported
4748   enable_fast_install=no
4749 elif test "$shlibpath_overrides_runpath" = yes ||
4750      test "$enable_shared" = no; then
4751   # Fast installation is not necessary
4752   enable_fast_install=needless
4753 fi
4754
4755 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4756 if test "$GCC" = yes; then
4757   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4758 fi
4759
4760 if test "x$enable_dlopen" != xyes; then
4761   enable_dlopen=unknown
4762   enable_dlopen_self=unknown
4763   enable_dlopen_self_static=unknown
4764 else
4765   lt_cv_dlopen=no
4766   lt_cv_dlopen_libs=
4767
4768   case $host_os in
4769   beos*)
4770     lt_cv_dlopen="load_add_on"
4771     lt_cv_dlopen_libs=
4772     lt_cv_dlopen_self=yes
4773     ;;
4774
4775   cygwin* | mingw* | pw32*)
4776     lt_cv_dlopen="LoadLibrary"
4777     lt_cv_dlopen_libs=
4778    ;;
4779
4780   *)
4781     echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4782 echo "configure:4783: checking for shl_load" >&5
4783 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4784   echo $ac_n "(cached) $ac_c" 1>&6
4785 else
4786   cat > conftest.$ac_ext <<EOF
4787 #line 4788 "configure"
4788 #include "confdefs.h"
4789 /* System header to define __stub macros and hopefully few prototypes,
4790     which can conflict with char shl_load(); below.  */
4791 #include <assert.h>
4792 /* Override any gcc2 internal prototype to avoid an error.  */
4793 /* We use char because int might match the return type of a gcc2
4794     builtin and then its argument prototype would still apply.  */
4795 char shl_load();
4796
4797 int main() {
4798
4799 /* The GNU C library defines this for functions which it implements
4800     to always fail with ENOSYS.  Some functions are actually named
4801     something starting with __ and the normal name is an alias.  */
4802 #if defined (__stub_shl_load) || defined (__stub___shl_load)
4803 choke me
4804 #else
4805 shl_load();
4806 #endif
4807
4808 ; return 0; }
4809 EOF
4810 if { (eval echo configure:4811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4811   rm -rf conftest*
4812   eval "ac_cv_func_shl_load=yes"
4813 else
4814   echo "configure: failed program was:" >&5
4815   cat conftest.$ac_ext >&5
4816   rm -rf conftest*
4817   eval "ac_cv_func_shl_load=no"
4818 fi
4819 rm -f conftest*
4820 fi
4821
4822 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4823   echo "$ac_t""yes" 1>&6
4824   lt_cv_dlopen="shl_load"
4825 else
4826   echo "$ac_t""no" 1>&6
4827 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4828 echo "configure:4829: checking for shl_load in -ldld" >&5
4829 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4831   echo $ac_n "(cached) $ac_c" 1>&6
4832 else
4833   ac_save_LIBS="$LIBS"
4834 LIBS="-ldld  $LIBS"
4835 cat > conftest.$ac_ext <<EOF
4836 #line 4837 "configure"
4837 #include "confdefs.h"
4838 /* Override any gcc2 internal prototype to avoid an error.  */
4839 /* We use char because int might match the return type of a gcc2
4840     builtin and then its argument prototype would still apply.  */
4841 char shl_load();
4842
4843 int main() {
4844 shl_load()
4845 ; return 0; }
4846 EOF
4847 if { (eval echo configure:4848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4848   rm -rf conftest*
4849   eval "ac_cv_lib_$ac_lib_var=yes"
4850 else
4851   echo "configure: failed program was:" >&5
4852   cat conftest.$ac_ext >&5
4853   rm -rf conftest*
4854   eval "ac_cv_lib_$ac_lib_var=no"
4855 fi
4856 rm -f conftest*
4857 LIBS="$ac_save_LIBS"
4858
4859 fi
4860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4861   echo "$ac_t""yes" 1>&6
4862   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
4863 else
4864   echo "$ac_t""no" 1>&6
4865 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4866 echo "configure:4867: checking for dlopen" >&5
4867 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4868   echo $ac_n "(cached) $ac_c" 1>&6
4869 else
4870   cat > conftest.$ac_ext <<EOF
4871 #line 4872 "configure"
4872 #include "confdefs.h"
4873 /* System header to define __stub macros and hopefully few prototypes,
4874     which can conflict with char dlopen(); below.  */
4875 #include <assert.h>
4876 /* Override any gcc2 internal prototype to avoid an error.  */
4877 /* We use char because int might match the return type of a gcc2
4878     builtin and then its argument prototype would still apply.  */
4879 char dlopen();
4880
4881 int main() {
4882
4883 /* The GNU C library defines this for functions which it implements
4884     to always fail with ENOSYS.  Some functions are actually named
4885     something starting with __ and the normal name is an alias.  */
4886 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4887 choke me
4888 #else
4889 dlopen();
4890 #endif
4891
4892 ; return 0; }
4893 EOF
4894 if { (eval echo configure:4895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4895   rm -rf conftest*
4896   eval "ac_cv_func_dlopen=yes"
4897 else
4898   echo "configure: failed program was:" >&5
4899   cat conftest.$ac_ext >&5
4900   rm -rf conftest*
4901   eval "ac_cv_func_dlopen=no"
4902 fi
4903 rm -f conftest*
4904 fi
4905
4906 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4907   echo "$ac_t""yes" 1>&6
4908   lt_cv_dlopen="dlopen"
4909 else
4910   echo "$ac_t""no" 1>&6
4911 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4912 echo "configure:4913: checking for dlopen in -ldl" >&5
4913 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4914 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4915   echo $ac_n "(cached) $ac_c" 1>&6
4916 else
4917   ac_save_LIBS="$LIBS"
4918 LIBS="-ldl  $LIBS"
4919 cat > conftest.$ac_ext <<EOF
4920 #line 4921 "configure"
4921 #include "confdefs.h"
4922 /* Override any gcc2 internal prototype to avoid an error.  */
4923 /* We use char because int might match the return type of a gcc2
4924     builtin and then its argument prototype would still apply.  */
4925 char dlopen();
4926
4927 int main() {
4928 dlopen()
4929 ; return 0; }
4930 EOF
4931 if { (eval echo configure:4932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4932   rm -rf conftest*
4933   eval "ac_cv_lib_$ac_lib_var=yes"
4934 else
4935   echo "configure: failed program was:" >&5
4936   cat conftest.$ac_ext >&5
4937   rm -rf conftest*
4938   eval "ac_cv_lib_$ac_lib_var=no"
4939 fi
4940 rm -f conftest*
4941 LIBS="$ac_save_LIBS"
4942
4943 fi
4944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4945   echo "$ac_t""yes" 1>&6
4946   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4947 else
4948   echo "$ac_t""no" 1>&6
4949 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4950 echo "configure:4951: checking for dlopen in -lsvld" >&5
4951 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4952 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4953   echo $ac_n "(cached) $ac_c" 1>&6
4954 else
4955   ac_save_LIBS="$LIBS"
4956 LIBS="-lsvld  $LIBS"
4957 cat > conftest.$ac_ext <<EOF
4958 #line 4959 "configure"
4959 #include "confdefs.h"
4960 /* Override any gcc2 internal prototype to avoid an error.  */
4961 /* We use char because int might match the return type of a gcc2
4962     builtin and then its argument prototype would still apply.  */
4963 char dlopen();
4964
4965 int main() {
4966 dlopen()
4967 ; return 0; }
4968 EOF
4969 if { (eval echo configure:4970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4970   rm -rf conftest*
4971   eval "ac_cv_lib_$ac_lib_var=yes"
4972 else
4973   echo "configure: failed program was:" >&5
4974   cat conftest.$ac_ext >&5
4975   rm -rf conftest*
4976   eval "ac_cv_lib_$ac_lib_var=no"
4977 fi
4978 rm -f conftest*
4979 LIBS="$ac_save_LIBS"
4980
4981 fi
4982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4983   echo "$ac_t""yes" 1>&6
4984   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4985 else
4986   echo "$ac_t""no" 1>&6
4987 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4988 echo "configure:4989: checking for dld_link in -ldld" >&5
4989 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4990 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4991   echo $ac_n "(cached) $ac_c" 1>&6
4992 else
4993   ac_save_LIBS="$LIBS"
4994 LIBS="-ldld  $LIBS"
4995 cat > conftest.$ac_ext <<EOF
4996 #line 4997 "configure"
4997 #include "confdefs.h"
4998 /* Override any gcc2 internal prototype to avoid an error.  */
4999 /* We use char because int might match the return type of a gcc2
5000     builtin and then its argument prototype would still apply.  */
5001 char dld_link();
5002
5003 int main() {
5004 dld_link()
5005 ; return 0; }
5006 EOF
5007 if { (eval echo configure:5008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5008   rm -rf conftest*
5009   eval "ac_cv_lib_$ac_lib_var=yes"
5010 else
5011   echo "configure: failed program was:" >&5
5012   cat conftest.$ac_ext >&5
5013   rm -rf conftest*
5014   eval "ac_cv_lib_$ac_lib_var=no"
5015 fi
5016 rm -f conftest*
5017 LIBS="$ac_save_LIBS"
5018
5019 fi
5020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5021   echo "$ac_t""yes" 1>&6
5022   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
5023 else
5024   echo "$ac_t""no" 1>&6
5025 fi
5026
5027               
5028 fi
5029
5030             
5031 fi
5032
5033           
5034 fi
5035
5036         
5037 fi
5038
5039       
5040 fi
5041
5042     ;;
5043   esac
5044
5045   if test "x$lt_cv_dlopen" != xno; then
5046     enable_dlopen=yes
5047   else
5048     enable_dlopen=no
5049   fi
5050
5051   case $lt_cv_dlopen in
5052   dlopen)
5053     save_CPPFLAGS="$CPPFLAGS"
5054         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5055
5056     save_LDFLAGS="$LDFLAGS"
5057     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5058
5059     save_LIBS="$LIBS"
5060     LIBS="$lt_cv_dlopen_libs $LIBS"
5061
5062     echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
5063 echo "configure:5064: checking whether a program can dlopen itself" >&5
5064 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
5065   echo $ac_n "(cached) $ac_c" 1>&6
5066 else
5067           if test "$cross_compiling" = yes; then :
5068   lt_cv_dlopen_self=cross
5069 else
5070     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5071   lt_status=$lt_dlunknown
5072   cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5075
5076 #if HAVE_DLFCN_H
5077 #include <dlfcn.h>
5078 #endif
5079
5080 #include <stdio.h>
5081
5082 #ifdef RTLD_GLOBAL
5083 #  define LT_DLGLOBAL           RTLD_GLOBAL
5084 #else
5085 #  ifdef DL_GLOBAL
5086 #    define LT_DLGLOBAL         DL_GLOBAL
5087 #  else
5088 #    define LT_DLGLOBAL         0
5089 #  endif
5090 #endif
5091
5092 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5093    find out it does not work in some platform. */
5094 #ifndef LT_DLLAZY_OR_NOW
5095 #  ifdef RTLD_LAZY
5096 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
5097 #  else
5098 #    ifdef DL_LAZY
5099 #      define LT_DLLAZY_OR_NOW          DL_LAZY
5100 #    else
5101 #      ifdef RTLD_NOW
5102 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
5103 #      else
5104 #        ifdef DL_NOW
5105 #          define LT_DLLAZY_OR_NOW      DL_NOW
5106 #        else
5107 #          define LT_DLLAZY_OR_NOW      0
5108 #        endif
5109 #      endif
5110 #    endif
5111 #  endif
5112 #endif
5113
5114 #ifdef __cplusplus
5115 extern "C" void exit (int);
5116 #endif
5117
5118 void fnord() { int i=42;}
5119 int main ()
5120 {
5121   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5122   int status = $lt_dlunknown;
5123
5124   if (self)
5125     {
5126       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
5127       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5128       /* dlclose (self); */
5129     }
5130
5131     exit (status);
5132 }
5133 EOF
5134   if { (eval echo configure:5135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
5135     (./conftest; exit; ) 2>/dev/null
5136     lt_status=$?
5137     case x$lt_status in
5138       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
5139       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5140       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
5141     esac
5142   else :
5143     # compilation failed
5144     lt_cv_dlopen_self=no
5145   fi
5146 fi
5147 rm -fr conftest*
5148
5149     
5150 fi
5151
5152 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
5153
5154     if test "x$lt_cv_dlopen_self" = xyes; then
5155       LDFLAGS="$LDFLAGS $link_static_flag"
5156       echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
5157 echo "configure:5158: checking whether a statically linked program can dlopen itself" >&5
5158 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
5159   echo $ac_n "(cached) $ac_c" 1>&6
5160 else
5161           if test "$cross_compiling" = yes; then :
5162   lt_cv_dlopen_self_static=cross
5163 else
5164     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5165   lt_status=$lt_dlunknown
5166   cat > conftest.$ac_ext <<EOF
5167 #line 5168 "configure"
5168 #include "confdefs.h"
5169
5170 #if HAVE_DLFCN_H
5171 #include <dlfcn.h>
5172 #endif
5173
5174 #include <stdio.h>
5175
5176 #ifdef RTLD_GLOBAL
5177 #  define LT_DLGLOBAL           RTLD_GLOBAL
5178 #else
5179 #  ifdef DL_GLOBAL
5180 #    define LT_DLGLOBAL         DL_GLOBAL
5181 #  else
5182 #    define LT_DLGLOBAL         0
5183 #  endif
5184 #endif
5185
5186 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5187    find out it does not work in some platform. */
5188 #ifndef LT_DLLAZY_OR_NOW
5189 #  ifdef RTLD_LAZY
5190 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
5191 #  else
5192 #    ifdef DL_LAZY
5193 #      define LT_DLLAZY_OR_NOW          DL_LAZY
5194 #    else
5195 #      ifdef RTLD_NOW
5196 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
5197 #      else
5198 #        ifdef DL_NOW
5199 #          define LT_DLLAZY_OR_NOW      DL_NOW
5200 #        else
5201 #          define LT_DLLAZY_OR_NOW      0
5202 #        endif
5203 #      endif
5204 #    endif
5205 #  endif
5206 #endif
5207
5208 #ifdef __cplusplus
5209 extern "C" void exit (int);
5210 #endif
5211
5212 void fnord() { int i=42;}
5213 int main ()
5214 {
5215   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5216   int status = $lt_dlunknown;
5217
5218   if (self)
5219     {
5220       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
5221       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5222       /* dlclose (self); */
5223     }
5224
5225     exit (status);
5226 }
5227 EOF
5228   if { (eval echo configure:5229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
5229     (./conftest; exit; ) 2>/dev/null
5230     lt_status=$?
5231     case x$lt_status in
5232       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
5233       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
5234       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
5235     esac
5236   else :
5237     # compilation failed
5238     lt_cv_dlopen_self_static=no
5239   fi
5240 fi
5241 rm -fr conftest*
5242
5243       
5244 fi
5245
5246 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
5247     fi
5248
5249     CPPFLAGS="$save_CPPFLAGS"
5250     LDFLAGS="$save_LDFLAGS"
5251     LIBS="$save_LIBS"
5252     ;;
5253   esac
5254
5255   case $lt_cv_dlopen_self in
5256   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
5257   *) enable_dlopen_self=unknown ;;
5258   esac
5259
5260   case $lt_cv_dlopen_self_static in
5261   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
5262   *) enable_dlopen_self_static=unknown ;;
5263   esac
5264 fi
5265
5266
5267 if test "$enable_shared" = yes && test "$GCC" = yes; then
5268   case $archive_cmds in
5269   *'~'*)
5270     # FIXME: we may have to deal with multi-command sequences.
5271     ;;
5272   '$CC '*)
5273     # Test whether the compiler implicitly links with -lc since on some
5274     # systems, -lgcc has to come before -lc. If gcc already passes -lc
5275     # to ld, don't add -lc before -lgcc.
5276     echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
5277 echo "configure:5278: checking whether -lc should be explicitly linked in" >&5
5278     if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
5279   echo $ac_n "(cached) $ac_c" 1>&6
5280 else
5281   $rm conftest*
5282     echo 'static int dummy;' > conftest.$ac_ext
5283
5284     if { (eval echo configure:5285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5285       soname=conftest
5286       lib=conftest
5287       libobjs=conftest.$ac_objext
5288       deplibs=
5289       wl=$lt_cv_prog_cc_wl
5290       compiler_flags=-v
5291       linker_flags=-v
5292       verstring=
5293       output_objdir=.
5294       libname=conftest
5295       save_allow_undefined_flag=$allow_undefined_flag
5296       allow_undefined_flag=
5297       if { (eval echo configure:5298: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
5298       then
5299         lt_cv_archive_cmds_need_lc=no
5300       else
5301         lt_cv_archive_cmds_need_lc=yes
5302       fi
5303       allow_undefined_flag=$save_allow_undefined_flag
5304     else
5305       cat conftest.err 1>&5
5306     fi
5307 fi
5308
5309     echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
5310     ;;
5311   esac
5312 fi
5313 need_lc=${lt_cv_archive_cmds_need_lc-yes}
5314
5315 # The second clause should only fire when bootstrapping the
5316 # libtool distribution, otherwise you forgot to ship ltmain.sh
5317 # with your package, and you will get complaints that there are
5318 # no rules to generate ltmain.sh.
5319 if test -f "$ltmain"; then
5320   :
5321 else
5322   # If there is no Makefile yet, we rely on a make rule to execute
5323   # `config.status --recheck' to rerun these tests and create the
5324   # libtool script then.
5325   test -f Makefile && make "$ltmain"
5326 fi
5327
5328 if test -f "$ltmain"; then
5329   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
5330   $rm -f "${ofile}T"
5331
5332   echo creating $ofile
5333
5334   # Now quote all the things that may contain metacharacters while being
5335   # careful not to overquote the AC_SUBSTed values.  We take copies of the
5336   # variables and quote the copies for generation of the libtool script.
5337   for var in echo old_CC old_CFLAGS \
5338     AR AR_FLAGS CC LD LN_S NM SHELL \
5339     reload_flag reload_cmds wl \
5340     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
5341     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
5342     library_names_spec soname_spec \
5343     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
5344     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
5345     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
5346     old_striplib striplib file_magic_cmd export_symbols_cmds \
5347     deplibs_check_method allow_undefined_flag no_undefined_flag \
5348     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
5349     global_symbol_to_c_name_address \
5350     hardcode_libdir_flag_spec hardcode_libdir_separator  \
5351     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5352     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
5353
5354     case $var in
5355     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
5356     old_postinstall_cmds | old_postuninstall_cmds | \
5357     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
5358     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
5359     postinstall_cmds | postuninstall_cmds | \
5360     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5361       # Double-quote double-evaled strings.
5362       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5363       ;;
5364     *)
5365       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5366       ;;
5367     esac
5368   done
5369
5370   cat <<__EOF__ > "${ofile}T"
5371 #! $SHELL
5372
5373 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5374 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5375 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5376 #
5377 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
5378 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5379 #
5380 # This program is free software; you can redistribute it and/or modify
5381 # it under the terms of the GNU General Public License as published by
5382 # the Free Software Foundation; either version 2 of the License, or
5383 # (at your option) any later version.
5384 #
5385 # This program is distributed in the hope that it will be useful, but
5386 # WITHOUT ANY WARRANTY; without even the implied warranty of
5387 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
5388 # General Public License for more details.
5389 #
5390 # You should have received a copy of the GNU General Public License
5391 # along with this program; if not, write to the Free Software
5392 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5393 #
5394 # As a special exception to the GNU General Public License, if you
5395 # distribute this file as part of a program that contains a
5396 # configuration script generated by Autoconf, you may include it under
5397 # the same distribution terms that you use for the rest of that program.
5398
5399 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
5400 Xsed="sed -e s/^X//"
5401
5402 # The HP-UX ksh and POSIX shell print the target directory to stdout
5403 # if CDPATH is set.
5404 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
5405
5406 # ### BEGIN LIBTOOL CONFIG
5407
5408 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5409
5410 # Shell to use when invoking shell scripts.
5411 SHELL=$lt_SHELL
5412
5413 # Whether or not to build shared libraries.
5414 build_libtool_libs=$enable_shared
5415
5416 # Whether or not to build static libraries.
5417 build_old_libs=$enable_static
5418
5419 # Whether or not to add -lc for building shared libraries.
5420 build_libtool_need_lc=$need_lc
5421
5422 # Whether or not to optimize for fast installation.
5423 fast_install=$enable_fast_install
5424
5425 # The host system.
5426 host_alias=$host_alias
5427 host=$host
5428
5429 # An echo program that does not interpret backslashes.
5430 echo=$lt_echo
5431
5432 # The archiver.
5433 AR=$lt_AR
5434 AR_FLAGS=$lt_AR_FLAGS
5435
5436 # The default C compiler.
5437 CC=$lt_CC
5438
5439 # Is the compiler the GNU C compiler?
5440 with_gcc=$GCC
5441
5442 # The linker used to build libraries.
5443 LD=$lt_LD
5444
5445 # Whether we need hard or soft links.
5446 LN_S=$lt_LN_S
5447
5448 # A BSD-compatible nm program.
5449 NM=$lt_NM
5450
5451 # A symbol stripping program
5452 STRIP=$STRIP
5453
5454 # Used to examine libraries when file_magic_cmd begins "file"
5455 MAGIC_CMD=$MAGIC_CMD
5456
5457 # Used on cygwin: DLL creation program.
5458 DLLTOOL="$DLLTOOL"
5459
5460 # Used on cygwin: object dumper.
5461 OBJDUMP="$OBJDUMP"
5462
5463 # Used on cygwin: assembler.
5464 AS="$AS"
5465
5466 # The name of the directory that contains temporary libtool files.
5467 objdir=$objdir
5468
5469 # How to create reloadable object files.
5470 reload_flag=$lt_reload_flag
5471 reload_cmds=$lt_reload_cmds
5472
5473 # How to pass a linker flag through the compiler.
5474 wl=$lt_wl
5475
5476 # Object file suffix (normally "o").
5477 objext="$ac_objext"
5478
5479 # Old archive suffix (normally "a").
5480 libext="$libext"
5481
5482 # Executable file suffix (normally "").
5483 exeext="$exeext"
5484
5485 # Additional compiler flags for building library objects.
5486 pic_flag=$lt_pic_flag
5487 pic_mode=$pic_mode
5488
5489 # Does compiler simultaneously support -c and -o options?
5490 compiler_c_o=$lt_compiler_c_o
5491
5492 # Can we write directly to a .lo ?
5493 compiler_o_lo=$lt_compiler_o_lo
5494
5495 # Must we lock files when doing compilation ?
5496 need_locks=$lt_need_locks
5497
5498 # Do we need the lib prefix for modules?
5499 need_lib_prefix=$need_lib_prefix
5500
5501 # Do we need a version for libraries?
5502 need_version=$need_version
5503
5504 # Whether dlopen is supported.
5505 dlopen_support=$enable_dlopen
5506
5507 # Whether dlopen of programs is supported.
5508 dlopen_self=$enable_dlopen_self
5509
5510 # Whether dlopen of statically linked programs is supported.
5511 dlopen_self_static=$enable_dlopen_self_static
5512
5513 # Compiler flag to prevent dynamic linking.
5514 link_static_flag=$lt_link_static_flag
5515
5516 # Compiler flag to turn off builtin functions.
5517 no_builtin_flag=$lt_no_builtin_flag
5518
5519 # Compiler flag to allow reflexive dlopens.
5520 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
5521
5522 # Compiler flag to generate shared objects directly from archives.
5523 whole_archive_flag_spec=$lt_whole_archive_flag_spec
5524
5525 # Compiler flag to generate thread-safe objects.
5526 thread_safe_flag_spec=$lt_thread_safe_flag_spec
5527
5528 # Library versioning type.
5529 version_type=$version_type
5530
5531 # Format of library name prefix.
5532 libname_spec=$lt_libname_spec
5533
5534 # List of archive names.  First name is the real one, the rest are links.
5535 # The last name is the one that the linker finds with -lNAME.
5536 library_names_spec=$lt_library_names_spec
5537
5538 # The coded name of the library, if different from the real name.
5539 soname_spec=$lt_soname_spec
5540
5541 # Commands used to build and install an old-style archive.
5542 RANLIB=$lt_RANLIB
5543 old_archive_cmds=$lt_old_archive_cmds
5544 old_postinstall_cmds=$lt_old_postinstall_cmds
5545 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5546
5547 # Create an old-style archive from a shared archive.
5548 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
5549
5550 # Create a temporary old-style archive to link instead of a shared archive.
5551 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
5552
5553 # Commands used to build and install a shared archive.
5554 archive_cmds=$lt_archive_cmds
5555 archive_expsym_cmds=$lt_archive_expsym_cmds
5556 postinstall_cmds=$lt_postinstall_cmds
5557 postuninstall_cmds=$lt_postuninstall_cmds
5558
5559 # Commands to strip libraries.
5560 old_striplib=$lt_old_striplib
5561 striplib=$lt_striplib
5562
5563 # Method to check whether dependent libraries are shared objects.
5564 deplibs_check_method=$lt_deplibs_check_method
5565
5566 # Command to use when deplibs_check_method == file_magic.
5567 file_magic_cmd=$lt_file_magic_cmd
5568
5569 # Flag that allows shared libraries with undefined symbols to be built.
5570 allow_undefined_flag=$lt_allow_undefined_flag
5571
5572 # Flag that forces no undefined symbols.
5573 no_undefined_flag=$lt_no_undefined_flag
5574
5575 # Commands used to finish a libtool library installation in a directory.
5576 finish_cmds=$lt_finish_cmds
5577
5578 # Same as above, but a single script fragment to be evaled but not shown.
5579 finish_eval=$lt_finish_eval
5580
5581 # Take the output of nm and produce a listing of raw symbols and C names.
5582 global_symbol_pipe=$lt_global_symbol_pipe
5583
5584 # Transform the output of nm in a proper C declaration
5585 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
5586
5587 # Transform the output of nm in a C name address pair
5588 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
5589
5590 # This is the shared library runtime path variable.
5591 runpath_var=$runpath_var
5592
5593 # This is the shared library path variable.
5594 shlibpath_var=$shlibpath_var
5595
5596 # Is shlibpath searched before the hard-coded library search path?
5597 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5598
5599 # How to hardcode a shared library path into an executable.
5600 hardcode_action=$hardcode_action
5601
5602 # Whether we should hardcode library paths into libraries.
5603 hardcode_into_libs=$hardcode_into_libs
5604
5605 # Flag to hardcode \$libdir into a binary during linking.
5606 # This must work even if \$libdir does not exist.
5607 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5608
5609 # Whether we need a single -rpath flag with a separated argument.
5610 hardcode_libdir_separator=$lt_hardcode_libdir_separator
5611
5612 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
5613 # resulting binary.
5614 hardcode_direct=$hardcode_direct
5615
5616 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5617 # resulting binary.
5618 hardcode_minus_L=$hardcode_minus_L
5619
5620 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5621 # the resulting binary.
5622 hardcode_shlibpath_var=$hardcode_shlibpath_var
5623
5624 # Variables whose values should be saved in libtool wrapper scripts and
5625 # restored at relink time.
5626 variables_saved_for_relink="$variables_saved_for_relink"
5627
5628 # Whether libtool must link a program against all its dependency libraries.
5629 link_all_deplibs=$link_all_deplibs
5630
5631 # Compile-time system search path for libraries
5632 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5633
5634 # Run-time system search path for libraries
5635 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5636
5637 # Fix the shell variable \$srcfile for the compiler.
5638 fix_srcfile_path="$fix_srcfile_path"
5639
5640 # Set to yes if exported symbols are required.
5641 always_export_symbols=$always_export_symbols
5642
5643 # The commands to list exported symbols.
5644 export_symbols_cmds=$lt_export_symbols_cmds
5645
5646 # The commands to extract the exported symbol list from a shared archive.
5647 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5648
5649 # Symbols that should not be listed in the preloaded symbols.
5650 exclude_expsyms=$lt_exclude_expsyms
5651
5652 # Symbols that must always be exported.
5653 include_expsyms=$lt_include_expsyms
5654
5655 # ### END LIBTOOL CONFIG
5656
5657 __EOF__
5658
5659   case $host_os in
5660   aix3*)
5661     cat <<\EOF >> "${ofile}T"
5662
5663 # AIX sometimes has problems with the GCC collect2 program.  For some
5664 # reason, if we set the COLLECT_NAMES environment variable, the problems
5665 # vanish in a puff of smoke.
5666 if test "X${COLLECT_NAMES+set}" != Xset; then
5667   COLLECT_NAMES=
5668   export COLLECT_NAMES
5669 fi
5670 EOF
5671     ;;
5672   esac
5673
5674   case $host_os in
5675   cygwin* | mingw* | pw32* | os2*)
5676     cat <<'EOF' >> "${ofile}T"
5677       # This is a source program that is used to create dlls on Windows
5678       # Don't remove nor modify the starting and closing comments
5679 # /* ltdll.c starts here */
5680 # #define WIN32_LEAN_AND_MEAN
5681 # #include <windows.h>
5682 # #undef WIN32_LEAN_AND_MEAN
5683 # #include <stdio.h>
5684 #
5685 # #ifndef __CYGWIN__
5686 # #  ifdef __CYGWIN32__
5687 # #    define __CYGWIN__ __CYGWIN32__
5688 # #  endif
5689 # #endif
5690 #
5691 # #ifdef __cplusplus
5692 # extern "C" {
5693 # #endif
5694 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5695 # #ifdef __cplusplus
5696 # }
5697 # #endif
5698 #
5699 # #ifdef __CYGWIN__
5700 # #include <cygwin/cygwin_dll.h>
5701 # DECLARE_CYGWIN_DLL( DllMain );
5702 # #endif
5703 # HINSTANCE __hDllInstance_base;
5704 #
5705 # BOOL APIENTRY
5706 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5707 # {
5708 #   __hDllInstance_base = hInst;
5709 #   return TRUE;
5710 # }
5711 # /* ltdll.c ends here */
5712         # This is a source program that is used to create import libraries
5713         # on Windows for dlls which lack them. Don't remove nor modify the
5714         # starting and closing comments
5715 # /* impgen.c starts here */
5716 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
5717 #
5718 #  This file is part of GNU libtool.
5719 #
5720 #  This program is free software; you can redistribute it and/or modify
5721 #  it under the terms of the GNU General Public License as published by
5722 #  the Free Software Foundation; either version 2 of the License, or
5723 #  (at your option) any later version.
5724 #
5725 #  This program is distributed in the hope that it will be useful,
5726 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
5727 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
5728 #  GNU General Public License for more details.
5729 #
5730 #  You should have received a copy of the GNU General Public License
5731 #  along with this program; if not, write to the Free Software
5732 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5733 #  */
5734 #
5735 # #include <stdio.h>            /* for printf() */
5736 # #include <unistd.h>           /* for open(), lseek(), read() */
5737 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
5738 # #include <string.h>           /* for strdup() */
5739 #
5740 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
5741 # #ifndef O_BINARY
5742 # #define O_BINARY 0
5743 # #endif
5744 #
5745 # static unsigned int
5746 # pe_get16 (fd, offset)
5747 #      int fd;
5748 #      int offset;
5749 # {
5750 #   unsigned char b[2];
5751 #   lseek (fd, offset, SEEK_SET);
5752 #   read (fd, b, 2);
5753 #   return b[0] + (b[1]<<8);
5754 # }
5755 #
5756 # static unsigned int
5757 # pe_get32 (fd, offset)
5758 #     int fd;
5759 #     int offset;
5760 # {
5761 #   unsigned char b[4];
5762 #   lseek (fd, offset, SEEK_SET);
5763 #   read (fd, b, 4);
5764 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5765 # }
5766 #
5767 # static unsigned int
5768 # pe_as32 (ptr)
5769 #      void *ptr;
5770 # {
5771 #   unsigned char *b = ptr;
5772 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5773 # }
5774 #
5775 # int
5776 # main (argc, argv)
5777 #     int argc;
5778 #     char *argv[];
5779 # {
5780 #     int dll;
5781 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5782 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
5783 #     unsigned long name_rvas, nexp;
5784 #     unsigned char *expdata, *erva;
5785 #     char *filename, *dll_name;
5786 #
5787 #     filename = argv[1];
5788 #
5789 #     dll = open(filename, O_RDONLY|O_BINARY);
5790 #     if (dll < 1)
5791 #       return 1;
5792 #
5793 #     dll_name = filename;
5794 #
5795 #     for (i=0; filename[i]; i++)
5796 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
5797 #           dll_name = filename + i +1;
5798 #
5799 #     pe_header_offset = pe_get32 (dll, 0x3c);
5800 #     opthdr_ofs = pe_header_offset + 4 + 20;
5801 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
5802 #
5803 #     if (num_entries < 1) /* no exports */
5804 #       return 1;
5805 #
5806 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
5807 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
5808 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5809 #     secptr = (pe_header_offset + 4 + 20 +
5810 #             pe_get16 (dll, pe_header_offset + 4 + 16));
5811 #
5812 #     expptr = 0;
5813 #     for (i = 0; i < nsections; i++)
5814 #     {
5815 #       char sname[8];
5816 #       unsigned long secptr1 = secptr + 40 * i;
5817 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5818 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5819 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5820 #       lseek(dll, secptr1, SEEK_SET);
5821 #       read(dll, sname, 8);
5822 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
5823 #       {
5824 #           expptr = fptr + (export_rva - vaddr);
5825 #           if (export_rva + export_size > vaddr + vsize)
5826 #               export_size = vsize - (export_rva - vaddr);
5827 #           break;
5828 #       }
5829 #     }
5830 #
5831 #     expdata = (unsigned char*)malloc(export_size);
5832 #     lseek (dll, expptr, SEEK_SET);
5833 #     read (dll, expdata, export_size);
5834 #     erva = expdata - export_rva;
5835 #
5836 #     nexp = pe_as32 (expdata+24);
5837 #     name_rvas = pe_as32 (expdata+32);
5838 #
5839 #     printf ("EXPORTS\n");
5840 #     for (i = 0; i<nexp; i++)
5841 #     {
5842 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5843 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5844 #     }
5845 #
5846 #     return 0;
5847 # }
5848 # /* impgen.c ends here */
5849
5850 EOF
5851     ;;
5852   esac
5853
5854   # We use sed instead of cat because bash on DJGPP gets confused if
5855   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
5856   # text mode, it properly converts lines to CR/LF.  This bash problem
5857   # is reportedly fixed, but why not run on old versions too?
5858   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
5859
5860   mv -f "${ofile}T" "$ofile" || \
5861     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5862   chmod +x "$ofile"
5863 fi
5864
5865
5866
5867
5868
5869 # This can be used to rebuild libtool when needed
5870 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5871
5872 # Always use our own libtool.
5873 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5874
5875 # Prevent multiple expansion
5876
5877
5878
5879
5880 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5881 echo "configure:5882: checking for ANSI C header files" >&5
5882 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5883   echo $ac_n "(cached) $ac_c" 1>&6
5884 else
5885   cat > conftest.$ac_ext <<EOF
5886 #line 5887 "configure"
5887 #include "confdefs.h"
5888 #include <stdlib.h>
5889 #include <stdarg.h>
5890 #include <string.h>
5891 #include <float.h>
5892 EOF
5893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5894 { (eval echo configure:5895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5896 if test -z "$ac_err"; then
5897   rm -rf conftest*
5898   ac_cv_header_stdc=yes
5899 else
5900   echo "$ac_err" >&5
5901   echo "configure: failed program was:" >&5
5902   cat conftest.$ac_ext >&5
5903   rm -rf conftest*
5904   ac_cv_header_stdc=no
5905 fi
5906 rm -f conftest*
5907
5908 if test $ac_cv_header_stdc = yes; then
5909   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5910 cat > conftest.$ac_ext <<EOF
5911 #line 5912 "configure"
5912 #include "confdefs.h"
5913 #include <string.h>
5914 EOF
5915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5916   egrep "memchr" >/dev/null 2>&1; then
5917   :
5918 else
5919   rm -rf conftest*
5920   ac_cv_header_stdc=no
5921 fi
5922 rm -f conftest*
5923
5924 fi
5925
5926 if test $ac_cv_header_stdc = yes; then
5927   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5928 cat > conftest.$ac_ext <<EOF
5929 #line 5930 "configure"
5930 #include "confdefs.h"
5931 #include <stdlib.h>
5932 EOF
5933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5934   egrep "free" >/dev/null 2>&1; then
5935   :
5936 else
5937   rm -rf conftest*
5938   ac_cv_header_stdc=no
5939 fi
5940 rm -f conftest*
5941
5942 fi
5943
5944 if test $ac_cv_header_stdc = yes; then
5945   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5946 if test "$cross_compiling" = yes; then
5947   :
5948 else
5949   cat > conftest.$ac_ext <<EOF
5950 #line 5951 "configure"
5951 #include "confdefs.h"
5952 #include <ctype.h>
5953 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5954 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5955 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5956 int main () { int i; for (i = 0; i < 256; i++)
5957 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5958 exit (0); }
5959
5960 EOF
5961 if { (eval echo configure:5962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5962 then
5963   :
5964 else
5965   echo "configure: failed program was:" >&5
5966   cat conftest.$ac_ext >&5
5967   rm -fr conftest*
5968   ac_cv_header_stdc=no
5969 fi
5970 rm -fr conftest*
5971 fi
5972
5973 fi
5974 fi
5975
5976 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5977 if test $ac_cv_header_stdc = yes; then
5978   cat >> confdefs.h <<\EOF
5979 #define STDC_HEADERS 1
5980 EOF
5981
5982 fi
5983
5984 ac_header_dirent=no
5985 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5986 do
5987 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5988 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5989 echo "configure:5990: checking for $ac_hdr that defines DIR" >&5
5990 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5991   echo $ac_n "(cached) $ac_c" 1>&6
5992 else
5993   cat > conftest.$ac_ext <<EOF
5994 #line 5995 "configure"
5995 #include "confdefs.h"
5996 #include <sys/types.h>
5997 #include <$ac_hdr>
5998 int main() {
5999 DIR *dirp = 0;
6000 ; return 0; }
6001 EOF
6002 if { (eval echo configure:6003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6003   rm -rf conftest*
6004   eval "ac_cv_header_dirent_$ac_safe=yes"
6005 else
6006   echo "configure: failed program was:" >&5
6007   cat conftest.$ac_ext >&5
6008   rm -rf conftest*
6009   eval "ac_cv_header_dirent_$ac_safe=no"
6010 fi
6011 rm -f conftest*
6012 fi
6013 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
6014   echo "$ac_t""yes" 1>&6
6015     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6016   cat >> confdefs.h <<EOF
6017 #define $ac_tr_hdr 1
6018 EOF
6019  ac_header_dirent=$ac_hdr; break
6020 else
6021   echo "$ac_t""no" 1>&6
6022 fi
6023 done
6024 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6025 if test $ac_header_dirent = dirent.h; then
6026 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6027 echo "configure:6028: checking for opendir in -ldir" >&5
6028 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6029 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6030   echo $ac_n "(cached) $ac_c" 1>&6
6031 else
6032   ac_save_LIBS="$LIBS"
6033 LIBS="-ldir  $LIBS"
6034 cat > conftest.$ac_ext <<EOF
6035 #line 6036 "configure"
6036 #include "confdefs.h"
6037 /* Override any gcc2 internal prototype to avoid an error.  */
6038 /* We use char because int might match the return type of a gcc2
6039     builtin and then its argument prototype would still apply.  */
6040 char opendir();
6041
6042 int main() {
6043 opendir()
6044 ; return 0; }
6045 EOF
6046 if { (eval echo configure:6047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6047   rm -rf conftest*
6048   eval "ac_cv_lib_$ac_lib_var=yes"
6049 else
6050   echo "configure: failed program was:" >&5
6051   cat conftest.$ac_ext >&5
6052   rm -rf conftest*
6053   eval "ac_cv_lib_$ac_lib_var=no"
6054 fi
6055 rm -f conftest*
6056 LIBS="$ac_save_LIBS"
6057
6058 fi
6059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6060   echo "$ac_t""yes" 1>&6
6061   LIBS="$LIBS -ldir"
6062 else
6063   echo "$ac_t""no" 1>&6
6064 fi
6065
6066 else
6067 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6068 echo "configure:6069: checking for opendir in -lx" >&5
6069 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6070 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6071   echo $ac_n "(cached) $ac_c" 1>&6
6072 else
6073   ac_save_LIBS="$LIBS"
6074 LIBS="-lx  $LIBS"
6075 cat > conftest.$ac_ext <<EOF
6076 #line 6077 "configure"
6077 #include "confdefs.h"
6078 /* Override any gcc2 internal prototype to avoid an error.  */
6079 /* We use char because int might match the return type of a gcc2
6080     builtin and then its argument prototype would still apply.  */
6081 char opendir();
6082
6083 int main() {
6084 opendir()
6085 ; return 0; }
6086 EOF
6087 if { (eval echo configure:6088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6088   rm -rf conftest*
6089   eval "ac_cv_lib_$ac_lib_var=yes"
6090 else
6091   echo "configure: failed program was:" >&5
6092   cat conftest.$ac_ext >&5
6093   rm -rf conftest*
6094   eval "ac_cv_lib_$ac_lib_var=no"
6095 fi
6096 rm -f conftest*
6097 LIBS="$ac_save_LIBS"
6098
6099 fi
6100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6101   echo "$ac_t""yes" 1>&6
6102   LIBS="$LIBS -lx"
6103 else
6104   echo "$ac_t""no" 1>&6
6105 fi
6106
6107 fi
6108
6109 echo $ac_n "checking whether $CC supports assert without backlinking""... $ac_c" 1>&6
6110 echo "configure:6111: checking whether $CC supports assert without backlinking" >&5
6111 if eval "test \"`echo '$''{'lt_cv_func_assert_works'+set}'`\" = set"; then
6112   echo $ac_n "(cached) $ac_c" 1>&6
6113 else
6114   case $host in
6115     *-*-solaris*)
6116       if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
6117         case `$CC --version 2>/dev/null` in
6118         [12].*) lt_cv_func_assert_works=no ;;
6119         *)        lt_cv_func_assert_works=yes ;;
6120         esac
6121       fi
6122       ;;
6123     esac
6124 fi
6125
6126 echo "$ac_t""$lt_cv_func_assert_works" 1>&6
6127
6128 if test "x$lt_cv_func_assert_works" = xyes; then
6129   for ac_hdr in assert.h
6130 do
6131 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6132 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6133 echo "configure:6134: checking for $ac_hdr" >&5
6134 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6135   echo $ac_n "(cached) $ac_c" 1>&6
6136 else
6137   cat > conftest.$ac_ext <<EOF
6138 #line 6139 "configure"
6139 #include "confdefs.h"
6140 #include <$ac_hdr>
6141 EOF
6142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6143 { (eval echo configure:6144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6145 if test -z "$ac_err"; then
6146   rm -rf conftest*
6147   eval "ac_cv_header_$ac_safe=yes"
6148 else
6149   echo "$ac_err" >&5
6150   echo "configure: failed program was:" >&5
6151   cat conftest.$ac_ext >&5
6152   rm -rf conftest*
6153   eval "ac_cv_header_$ac_safe=no"
6154 fi
6155 rm -f conftest*
6156 fi
6157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6158   echo "$ac_t""yes" 1>&6
6159     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6160   cat >> confdefs.h <<EOF
6161 #define $ac_tr_hdr 1
6162 EOF
6163  
6164 else
6165   echo "$ac_t""no" 1>&6
6166 fi
6167 done
6168
6169 fi
6170
6171 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6172 if test "${enable_ltdl_install+set}" = set; then
6173   enableval="$enable_ltdl_install"
6174   :
6175 fi
6176
6177
6178
6179
6180 if test x"${enable_ltdl_install-no}" != xno; then
6181   INSTALL_LTDL_TRUE=
6182   INSTALL_LTDL_FALSE='#'
6183 else
6184   INSTALL_LTDL_TRUE='#'
6185   INSTALL_LTDL_FALSE=
6186 fi
6187
6188
6189 if test x"${enable_ltdl_convenience-no}" != xno; then
6190   CONVENIENCE_LTDL_TRUE=
6191   CONVENIENCE_LTDL_FALSE='#'
6192 else
6193   CONVENIENCE_LTDL_TRUE='#'
6194   CONVENIENCE_LTDL_FALSE=
6195 fi
6196
6197
6198 echo $ac_n "checking which extension is used for shared libraries""... $ac_c" 1>&6
6199 echo "configure:6200: checking which extension is used for shared libraries" >&5
6200 if eval "test \"`echo '$''{'libltdl_cv_shlibext'+set}'`\" = set"; then
6201   echo $ac_n "(cached) $ac_c" 1>&6
6202 else
6203   ac_last=
6204   for ac_spec in $library_names_spec; do
6205     ac_last="$ac_spec"
6206   done
6207   echo "$ac_last" | sed 's/\[.*\]//;s/^[^.]*//;s/\$.*$//;s/\.$//' > conftest
6208 libltdl_cv_shlibext=`cat conftest`
6209 rm -f conftest
6210
6211 fi
6212
6213 echo "$ac_t""$libltdl_cv_shlibext" 1>&6
6214 if test -n "$libltdl_cv_shlibext"; then
6215   cat >> confdefs.h <<EOF
6216 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
6217 EOF
6218
6219 fi
6220
6221
6222 echo $ac_n "checking which variable specifies run-time library path""... $ac_c" 1>&6
6223 echo "configure:6224: checking which variable specifies run-time library path" >&5
6224 if eval "test \"`echo '$''{'libltdl_cv_shlibpath_var'+set}'`\" = set"; then
6225   echo $ac_n "(cached) $ac_c" 1>&6
6226 else
6227   libltdl_cv_shlibpath_var="$shlibpath_var"
6228 fi
6229
6230 echo "$ac_t""$libltdl_cv_shlibpath_var" 1>&6
6231 if test -n "$libltdl_cv_shlibpath_var"; then
6232   cat >> confdefs.h <<EOF
6233 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6234 EOF
6235
6236 fi
6237
6238
6239 echo $ac_n "checking for the default library search path""... $ac_c" 1>&6
6240 echo "configure:6241: checking for the default library search path" >&5
6241 if eval "test \"`echo '$''{'libltdl_cv_sys_search_path'+set}'`\" = set"; then
6242   echo $ac_n "(cached) $ac_c" 1>&6
6243 else
6244   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
6245 fi
6246
6247 echo "$ac_t""$libltdl_cv_sys_search_path" 1>&6
6248 if test -n "$libltdl_cv_sys_search_path"; then
6249   case "$host" in
6250   *-*-mingw*) pathsep=";" ;;
6251   *) pathsep=":" ;;
6252   esac
6253   sys_search_path=
6254   for dir in $libltdl_cv_sys_search_path; do
6255     if test -z "$sys_search_path"; then
6256       sys_search_path="$dir"
6257     else
6258       sys_search_path="$sys_search_path$pathsep$dir"
6259     fi
6260   done
6261   cat >> confdefs.h <<EOF
6262 #define LTDL_SYSSEARCHPATH "$sys_search_path"
6263 EOF
6264
6265 fi
6266
6267 echo $ac_n "checking for objdir""... $ac_c" 1>&6
6268 echo "configure:6269: checking for objdir" >&5
6269 if eval "test \"`echo '$''{'libltdl_cv_objdir'+set}'`\" = set"; then
6270   echo $ac_n "(cached) $ac_c" 1>&6
6271 else
6272   libltdl_cv_objdir="$objdir"
6273 if test -n "$objdir"; then
6274   :
6275 else
6276   rm -f .libs 2>/dev/null
6277   mkdir .libs 2>/dev/null
6278   if test -d .libs; then
6279     libltdl_cv_objdir=.libs
6280   else
6281     # MS-DOS does not allow filenames that begin with a dot.
6282     libltdl_cv_objdir=_libs
6283   fi
6284 rmdir .libs 2>/dev/null
6285 fi
6286 fi
6287
6288 echo "$ac_t""$libltdl_cv_objdir" 1>&6
6289 cat >> confdefs.h <<EOF
6290 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
6291 EOF
6292
6293
6294 echo $ac_n "checking whether libtool supports -dlopen/-dlpreopen""... $ac_c" 1>&6
6295 echo "configure:6296: checking whether libtool supports -dlopen/-dlpreopen" >&5
6296 if eval "test \"`echo '$''{'libltdl_cv_preloaded_symbols'+set}'`\" = set"; then
6297   echo $ac_n "(cached) $ac_c" 1>&6
6298 else
6299     if test -n "$global_symbol_pipe"; then
6300     libltdl_cv_preloaded_symbols=yes
6301   else
6302     libltdl_cv_preloaded_symbols=no
6303   fi
6304
6305 fi
6306
6307 echo "$ac_t""$libltdl_cv_preloaded_symbols" 1>&6
6308 if test x"$libltdl_cv_preloaded_symbols" = x"yes"; then
6309   cat >> confdefs.h <<\EOF
6310 #define HAVE_PRELOADED_SYMBOLS 1
6311 EOF
6312
6313 fi
6314
6315 LIBADD_DL=
6316
6317
6318 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6319 echo "configure:6320: checking for shl_load" >&5
6320 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
6321   echo $ac_n "(cached) $ac_c" 1>&6
6322 else
6323   cat > conftest.$ac_ext <<EOF
6324 #line 6325 "configure"
6325 #include "confdefs.h"
6326 /* System header to define __stub macros and hopefully few prototypes,
6327     which can conflict with char shl_load(); below.  */
6328 #include <assert.h>
6329 /* Override any gcc2 internal prototype to avoid an error.  */
6330 /* We use char because int might match the return type of a gcc2
6331     builtin and then its argument prototype would still apply.  */
6332 char shl_load();
6333
6334 int main() {
6335
6336 /* The GNU C library defines this for functions which it implements
6337     to always fail with ENOSYS.  Some functions are actually named
6338     something starting with __ and the normal name is an alias.  */
6339 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6340 choke me
6341 #else
6342 shl_load();
6343 #endif
6344
6345 ; return 0; }
6346 EOF
6347 if { (eval echo configure:6348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6348   rm -rf conftest*
6349   eval "ac_cv_func_shl_load=yes"
6350 else
6351   echo "configure: failed program was:" >&5
6352   cat conftest.$ac_ext >&5
6353   rm -rf conftest*
6354   eval "ac_cv_func_shl_load=no"
6355 fi
6356 rm -f conftest*
6357 fi
6358
6359 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6360   echo "$ac_t""yes" 1>&6
6361   cat >> confdefs.h <<\EOF
6362 #define HAVE_SHL_LOAD 1
6363 EOF
6364
6365 else
6366   echo "$ac_t""no" 1>&6
6367 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6368 echo "configure:6369: checking for shl_load in -ldld" >&5
6369 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
6370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6371   echo $ac_n "(cached) $ac_c" 1>&6
6372 else
6373   ac_save_LIBS="$LIBS"
6374 LIBS="-ldld  $LIBS"
6375 cat > conftest.$ac_ext <<EOF
6376 #line 6377 "configure"
6377 #include "confdefs.h"
6378 /* Override any gcc2 internal prototype to avoid an error.  */
6379 /* We use char because int might match the return type of a gcc2
6380     builtin and then its argument prototype would still apply.  */
6381 char shl_load();
6382
6383 int main() {
6384 shl_load()
6385 ; return 0; }
6386 EOF
6387 if { (eval echo configure:6388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6388   rm -rf conftest*
6389   eval "ac_cv_lib_$ac_lib_var=yes"
6390 else
6391   echo "configure: failed program was:" >&5
6392   cat conftest.$ac_ext >&5
6393   rm -rf conftest*
6394   eval "ac_cv_lib_$ac_lib_var=no"
6395 fi
6396 rm -f conftest*
6397 LIBS="$ac_save_LIBS"
6398
6399 fi
6400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6401   echo "$ac_t""yes" 1>&6
6402   cat >> confdefs.h <<\EOF
6403 #define HAVE_SHL_LOAD 1
6404 EOF
6405
6406         LIBADD_DL="$LIBADD_DL -ldld"
6407 else
6408   echo "$ac_t""no" 1>&6
6409 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6410 echo "configure:6411: checking for dlopen in -ldl" >&5
6411 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6413   echo $ac_n "(cached) $ac_c" 1>&6
6414 else
6415   ac_save_LIBS="$LIBS"
6416 LIBS="-ldl  $LIBS"
6417 cat > conftest.$ac_ext <<EOF
6418 #line 6419 "configure"
6419 #include "confdefs.h"
6420 /* Override any gcc2 internal prototype to avoid an error.  */
6421 /* We use char because int might match the return type of a gcc2
6422     builtin and then its argument prototype would still apply.  */
6423 char dlopen();
6424
6425 int main() {
6426 dlopen()
6427 ; return 0; }
6428 EOF
6429 if { (eval echo configure:6430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6430   rm -rf conftest*
6431   eval "ac_cv_lib_$ac_lib_var=yes"
6432 else
6433   echo "configure: failed program was:" >&5
6434   cat conftest.$ac_ext >&5
6435   rm -rf conftest*
6436   eval "ac_cv_lib_$ac_lib_var=no"
6437 fi
6438 rm -f conftest*
6439 LIBS="$ac_save_LIBS"
6440
6441 fi
6442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6443   echo "$ac_t""yes" 1>&6
6444   cat >> confdefs.h <<\EOF
6445 #define HAVE_LIBDL 1
6446 EOF
6447
6448           LIBADD_DL="-ldl"
6449 else
6450   echo "$ac_t""no" 1>&6
6451 cat > conftest.$ac_ext <<EOF
6452 #line 6453 "configure"
6453 #include "confdefs.h"
6454 #if HAVE_DLFCN_H
6455 #  include <dlfcn.h>
6456 #endif
6457       
6458 int main() {
6459 dlopen(0, 0);
6460 ; return 0; }
6461 EOF
6462 if { (eval echo configure:6463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6463   rm -rf conftest*
6464   cat >> confdefs.h <<\EOF
6465 #define HAVE_LIBDL 1
6466 EOF
6467
6468 else
6469   echo "configure: failed program was:" >&5
6470   cat conftest.$ac_ext >&5
6471   rm -rf conftest*
6472   echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6473 echo "configure:6474: checking for dlopen in -lsvld" >&5
6474 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
6475 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6476   echo $ac_n "(cached) $ac_c" 1>&6
6477 else
6478   ac_save_LIBS="$LIBS"
6479 LIBS="-lsvld  $LIBS"
6480 cat > conftest.$ac_ext <<EOF
6481 #line 6482 "configure"
6482 #include "confdefs.h"
6483 /* Override any gcc2 internal prototype to avoid an error.  */
6484 /* We use char because int might match the return type of a gcc2
6485     builtin and then its argument prototype would still apply.  */
6486 char dlopen();
6487
6488 int main() {
6489 dlopen()
6490 ; return 0; }
6491 EOF
6492 if { (eval echo configure:6493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6493   rm -rf conftest*
6494   eval "ac_cv_lib_$ac_lib_var=yes"
6495 else
6496   echo "configure: failed program was:" >&5
6497   cat conftest.$ac_ext >&5
6498   rm -rf conftest*
6499   eval "ac_cv_lib_$ac_lib_var=no"
6500 fi
6501 rm -f conftest*
6502 LIBS="$ac_save_LIBS"
6503
6504 fi
6505 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6506   echo "$ac_t""yes" 1>&6
6507   cat >> confdefs.h <<\EOF
6508 #define HAVE_LIBDL 1
6509 EOF
6510
6511               LIBADD_DL="-lsvld"
6512 else
6513   echo "$ac_t""no" 1>&6
6514 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6515 echo "configure:6516: checking for dld_link in -ldld" >&5
6516 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
6517 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6518   echo $ac_n "(cached) $ac_c" 1>&6
6519 else
6520   ac_save_LIBS="$LIBS"
6521 LIBS="-ldld  $LIBS"
6522 cat > conftest.$ac_ext <<EOF
6523 #line 6524 "configure"
6524 #include "confdefs.h"
6525 /* Override any gcc2 internal prototype to avoid an error.  */
6526 /* We use char because int might match the return type of a gcc2
6527     builtin and then its argument prototype would still apply.  */
6528 char dld_link();
6529
6530 int main() {
6531 dld_link()
6532 ; return 0; }
6533 EOF
6534 if { (eval echo configure:6535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6535   rm -rf conftest*
6536   eval "ac_cv_lib_$ac_lib_var=yes"
6537 else
6538   echo "configure: failed program was:" >&5
6539   cat conftest.$ac_ext >&5
6540   rm -rf conftest*
6541   eval "ac_cv_lib_$ac_lib_var=no"
6542 fi
6543 rm -f conftest*
6544 LIBS="$ac_save_LIBS"
6545
6546 fi
6547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6548   echo "$ac_t""yes" 1>&6
6549   cat >> confdefs.h <<\EOF
6550 #define HAVE_DLD 1
6551 EOF
6552
6553                 LIBADD_DL="$LIBADD_DL -ldld"
6554           
6555 else
6556   echo "$ac_t""no" 1>&6
6557 fi
6558
6559         
6560 fi
6561
6562       
6563 fi
6564 rm -f conftest*
6565     
6566 fi
6567
6568   
6569 fi
6570
6571
6572 fi
6573
6574
6575 if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
6576  LIBS_SAVE="$LIBS"
6577  LIBS="$LIBS $LIBADD_DL"
6578  for ac_func in dlerror
6579 do
6580 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6581 echo "configure:6582: checking for $ac_func" >&5
6582 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6583   echo $ac_n "(cached) $ac_c" 1>&6
6584 else
6585   cat > conftest.$ac_ext <<EOF
6586 #line 6587 "configure"
6587 #include "confdefs.h"
6588 /* System header to define __stub macros and hopefully few prototypes,
6589     which can conflict with char $ac_func(); below.  */
6590 #include <assert.h>
6591 /* Override any gcc2 internal prototype to avoid an error.  */
6592 /* We use char because int might match the return type of a gcc2
6593     builtin and then its argument prototype would still apply.  */
6594 char $ac_func();
6595
6596 int main() {
6597
6598 /* The GNU C library defines this for functions which it implements
6599     to always fail with ENOSYS.  Some functions are actually named
6600     something starting with __ and the normal name is an alias.  */
6601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6602 choke me
6603 #else
6604 $ac_func();
6605 #endif
6606
6607 ; return 0; }
6608 EOF
6609 if { (eval echo configure:6610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6610   rm -rf conftest*
6611   eval "ac_cv_func_$ac_func=yes"
6612 else
6613   echo "configure: failed program was:" >&5
6614   cat conftest.$ac_ext >&5
6615   rm -rf conftest*
6616   eval "ac_cv_func_$ac_func=no"
6617 fi
6618 rm -f conftest*
6619 fi
6620
6621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6622   echo "$ac_t""yes" 1>&6
6623     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6624   cat >> confdefs.h <<EOF
6625 #define $ac_tr_func 1
6626 EOF
6627  
6628 else
6629   echo "$ac_t""no" 1>&6
6630 fi
6631 done
6632
6633  LIBS="$LIBS_SAVE"
6634 fi
6635
6636 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
6637 echo "configure:6638: checking for _ prefix in compiled symbols" >&5
6638 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
6639   echo $ac_n "(cached) $ac_c" 1>&6
6640 else
6641   ac_cv_sys_symbol_underscore=no
6642 cat > conftest.$ac_ext <<EOF
6643 void nm_test_func(){}
6644 int main(){nm_test_func;return 0;}
6645 EOF
6646 if { (eval echo configure:6647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6647   # Now try to grab the symbols.
6648   ac_nlist=conftest.nm
6649   if { (eval echo configure:6650: \"$NM conftest.$ac_objext \| $global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
6650     # See whether the symbols have a leading underscore.
6651     if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
6652       ac_cv_sys_symbol_underscore=yes
6653     else
6654       if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
6655         :
6656       else
6657         echo "configure: cannot find nm_test_func in $ac_nlist" >&5
6658       fi
6659     fi
6660   else
6661     echo "configure: cannot run $global_symbol_pipe" >&5
6662   fi
6663 else
6664   echo "configure: failed program was:" >&5
6665   cat conftest.c >&5
6666 fi
6667 rm -rf conftest*
6668
6669 fi
6670
6671 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
6672
6673 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
6674   if test x"$ac_cv_func_dlopen" = xyes ||
6675      test x"$ac_cv_lib_dl_dlopen" = xyes ; then
6676         echo $ac_n "checking whether we have to add an underscore for dlsym""... $ac_c" 1>&6
6677 echo "configure:6678: checking whether we have to add an underscore for dlsym" >&5
6678 if eval "test \"`echo '$''{'libltdl_cv_need_uscore'+set}'`\" = set"; then
6679   echo $ac_n "(cached) $ac_c" 1>&6
6680 else
6681                 libltdl_cv_need_uscore=unknown
6682                 save_LIBS="$LIBS"
6683                 LIBS="$LIBS $LIBADD_DL"
6684                 if test "$cross_compiling" = yes; then :
6685   libltdl_cv_need_uscore=cross
6686 else
6687     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6688   lt_status=$lt_dlunknown
6689   cat > conftest.$ac_ext <<EOF
6690 #line 6691 "configure"
6691 #include "confdefs.h"
6692
6693 #if HAVE_DLFCN_H
6694 #include <dlfcn.h>
6695 #endif
6696
6697 #include <stdio.h>
6698
6699 #ifdef RTLD_GLOBAL
6700 #  define LT_DLGLOBAL           RTLD_GLOBAL
6701 #else
6702 #  ifdef DL_GLOBAL
6703 #    define LT_DLGLOBAL         DL_GLOBAL
6704 #  else
6705 #    define LT_DLGLOBAL         0
6706 #  endif
6707 #endif
6708
6709 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6710    find out it does not work in some platform. */
6711 #ifndef LT_DLLAZY_OR_NOW
6712 #  ifdef RTLD_LAZY
6713 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6714 #  else
6715 #    ifdef DL_LAZY
6716 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6717 #    else
6718 #      ifdef RTLD_NOW
6719 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6720 #      else
6721 #        ifdef DL_NOW
6722 #          define LT_DLLAZY_OR_NOW      DL_NOW
6723 #        else
6724 #          define LT_DLLAZY_OR_NOW      0
6725 #        endif
6726 #      endif
6727 #    endif
6728 #  endif
6729 #endif
6730
6731 #ifdef __cplusplus
6732 extern "C" void exit (int);
6733 #endif
6734
6735 void fnord() { int i=42;}
6736 int main ()
6737 {
6738   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6739   int status = $lt_dlunknown;
6740
6741   if (self)
6742     {
6743       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6744       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6745       /* dlclose (self); */
6746     }
6747
6748     exit (status);
6749 }
6750 EOF
6751   if { (eval echo configure:6752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6752     (./conftest; exit; ) 2>/dev/null
6753     lt_status=$?
6754     case x$lt_status in
6755       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
6756       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
6757       x$lt_unknown|x*)  ;;
6758     esac
6759   else :
6760     # compilation failed
6761     
6762   fi
6763 fi
6764 rm -fr conftest*
6765
6766                 LIBS="$save_LIBS"
6767         
6768 fi
6769
6770 echo "$ac_t""$libltdl_cv_need_uscore" 1>&6
6771   fi
6772 fi
6773
6774 if test x"$libltdl_cv_need_uscore" = xyes; then
6775   cat >> confdefs.h <<\EOF
6776 #define NEED_USCORE 1
6777 EOF
6778
6779 fi
6780
6781
6782 echo $ac_n "checking whether deplibs are loaded by dlopen""... $ac_c" 1>&6
6783 echo "configure:6784: checking whether deplibs are loaded by dlopen" >&5
6784 if eval "test \"`echo '$''{'libltdl_cv_sys_dlopen_deplibs'+set}'`\" = set"; then
6785   echo $ac_n "(cached) $ac_c" 1>&6
6786 else
6787         # PORTME does your system automatically load deplibs for dlopen()?
6788         libltdl_cv_sys_dlopen_deplibs=unknown
6789         case "$host_os" in
6790         linux*)
6791           libltdl_cv_sys_dlopen_deplibs=yes
6792           ;;
6793         netbsd*)
6794           libltdl_cv_sys_dlopen_deplibs=yes
6795           ;;
6796         openbsd*)
6797           libltdl_cv_sys_dlopen_deplibs=yes
6798           ;;
6799         solaris*)
6800           libltdl_cv_sys_dlopen_deplibs=yes
6801           ;;
6802         esac
6803
6804 fi
6805
6806 echo "$ac_t""$libltdl_cv_sys_dlopen_deplibs" 1>&6
6807 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
6808  cat >> confdefs.h <<\EOF
6809 #define LTDL_DLOPEN_DEPLIBS 1
6810 EOF
6811
6812 fi
6813
6814 for ac_hdr in argz.h
6815 do
6816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6818 echo "configure:6819: checking for $ac_hdr" >&5
6819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6820   echo $ac_n "(cached) $ac_c" 1>&6
6821 else
6822   cat > conftest.$ac_ext <<EOF
6823 #line 6824 "configure"
6824 #include "confdefs.h"
6825 #include <$ac_hdr>
6826 EOF
6827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6828 { (eval echo configure:6829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6830 if test -z "$ac_err"; then
6831   rm -rf conftest*
6832   eval "ac_cv_header_$ac_safe=yes"
6833 else
6834   echo "$ac_err" >&5
6835   echo "configure: failed program was:" >&5
6836   cat conftest.$ac_ext >&5
6837   rm -rf conftest*
6838   eval "ac_cv_header_$ac_safe=no"
6839 fi
6840 rm -f conftest*
6841 fi
6842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6843   echo "$ac_t""yes" 1>&6
6844     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6845   cat >> confdefs.h <<EOF
6846 #define $ac_tr_hdr 1
6847 EOF
6848  
6849 else
6850   echo "$ac_t""no" 1>&6
6851 fi
6852 done
6853
6854
6855 echo $ac_n "checking for error_t""... $ac_c" 1>&6
6856 echo "configure:6857: checking for error_t" >&5
6857 if eval "test \"`echo '$''{'ac_Type'+set}'`\" = set"; then
6858   echo $ac_n "(cached) $ac_c" 1>&6
6859 else
6860   cat > conftest.$ac_ext <<EOF
6861 #line 6862 "configure"
6862 #include "confdefs.h"
6863 #if HAVE_ARGZ_H
6864 #  include <argz.h>
6865 #endif
6866 int main() {
6867 if ((error_t *) 0)
6868           return 0;
6869         if (sizeof (error_t))
6870           return 0;
6871 ; return 0; }
6872 EOF
6873 if { (eval echo configure:6874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6874   rm -rf conftest*
6875   ac_Type=yes
6876 else
6877   echo "configure: failed program was:" >&5
6878   cat conftest.$ac_ext >&5
6879   rm -rf conftest*
6880   ac_Type=no
6881 fi
6882 rm -f conftest*
6883 fi
6884
6885 echo "$ac_t""$ac_Type" 1>&6
6886   if test "x$ac_Type" = xyes; then
6887     :
6888   else
6889     cat >> confdefs.h <<\EOF
6890 #define error_t int
6891 EOF
6892
6893   fi
6894
6895 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
6896 do
6897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6898 echo "configure:6899: checking for $ac_func" >&5
6899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6900   echo $ac_n "(cached) $ac_c" 1>&6
6901 else
6902   cat > conftest.$ac_ext <<EOF
6903 #line 6904 "configure"
6904 #include "confdefs.h"
6905 /* System header to define __stub macros and hopefully few prototypes,
6906     which can conflict with char $ac_func(); below.  */
6907 #include <assert.h>
6908 /* Override any gcc2 internal prototype to avoid an error.  */
6909 /* We use char because int might match the return type of a gcc2
6910     builtin and then its argument prototype would still apply.  */
6911 char $ac_func();
6912
6913 int main() {
6914
6915 /* The GNU C library defines this for functions which it implements
6916     to always fail with ENOSYS.  Some functions are actually named
6917     something starting with __ and the normal name is an alias.  */
6918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6919 choke me
6920 #else
6921 $ac_func();
6922 #endif
6923
6924 ; return 0; }
6925 EOF
6926 if { (eval echo configure:6927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6927   rm -rf conftest*
6928   eval "ac_cv_func_$ac_func=yes"
6929 else
6930   echo "configure: failed program was:" >&5
6931   cat conftest.$ac_ext >&5
6932   rm -rf conftest*
6933   eval "ac_cv_func_$ac_func=no"
6934 fi
6935 rm -f conftest*
6936 fi
6937
6938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6939   echo "$ac_t""yes" 1>&6
6940     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6941   cat >> confdefs.h <<EOF
6942 #define $ac_tr_func 1
6943 EOF
6944  
6945 else
6946   echo "$ac_t""no" 1>&6
6947 fi
6948 done
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970 for ac_hdr in errno.h malloc.h memory.h stdlib.h stdio.h ctype.h unistd.h
6971 do
6972 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6973 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6974 echo "configure:6975: checking for $ac_hdr" >&5
6975 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6976   echo $ac_n "(cached) $ac_c" 1>&6
6977 else
6978   cat > conftest.$ac_ext <<EOF
6979 #line 6980 "configure"
6980 #include "confdefs.h"
6981 #include <$ac_hdr>
6982 EOF
6983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6984 { (eval echo configure:6985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6986 if test -z "$ac_err"; then
6987   rm -rf conftest*
6988   eval "ac_cv_header_$ac_safe=yes"
6989 else
6990   echo "$ac_err" >&5
6991   echo "configure: failed program was:" >&5
6992   cat conftest.$ac_ext >&5
6993   rm -rf conftest*
6994   eval "ac_cv_header_$ac_safe=no"
6995 fi
6996 rm -f conftest*
6997 fi
6998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6999   echo "$ac_t""yes" 1>&6
7000     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7001   cat >> confdefs.h <<EOF
7002 #define $ac_tr_hdr 1
7003 EOF
7004  
7005 else
7006   echo "$ac_t""no" 1>&6
7007 fi
7008 done
7009
7010 for ac_hdr in dl.h sys/dl.h dld.h
7011 do
7012 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7013 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7014 echo "configure:7015: checking for $ac_hdr" >&5
7015 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7016   echo $ac_n "(cached) $ac_c" 1>&6
7017 else
7018   cat > conftest.$ac_ext <<EOF
7019 #line 7020 "configure"
7020 #include "confdefs.h"
7021 #include <$ac_hdr>
7022 EOF
7023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7024 { (eval echo configure:7025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7026 if test -z "$ac_err"; then
7027   rm -rf conftest*
7028   eval "ac_cv_header_$ac_safe=yes"
7029 else
7030   echo "$ac_err" >&5
7031   echo "configure: failed program was:" >&5
7032   cat conftest.$ac_ext >&5
7033   rm -rf conftest*
7034   eval "ac_cv_header_$ac_safe=no"
7035 fi
7036 rm -f conftest*
7037 fi
7038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7039   echo "$ac_t""yes" 1>&6
7040     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7041   cat >> confdefs.h <<EOF
7042 #define $ac_tr_hdr 1
7043 EOF
7044  
7045 else
7046   echo "$ac_t""no" 1>&6
7047 fi
7048 done
7049
7050 for ac_hdr in string.h strings.h
7051 do
7052 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7053 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7054 echo "configure:7055: checking for $ac_hdr" >&5
7055 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7056   echo $ac_n "(cached) $ac_c" 1>&6
7057 else
7058   cat > conftest.$ac_ext <<EOF
7059 #line 7060 "configure"
7060 #include "confdefs.h"
7061 #include <$ac_hdr>
7062 EOF
7063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7064 { (eval echo configure:7065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7066 if test -z "$ac_err"; then
7067   rm -rf conftest*
7068   eval "ac_cv_header_$ac_safe=yes"
7069 else
7070   echo "$ac_err" >&5
7071   echo "configure: failed program was:" >&5
7072   cat conftest.$ac_ext >&5
7073   rm -rf conftest*
7074   eval "ac_cv_header_$ac_safe=no"
7075 fi
7076 rm -f conftest*
7077 fi
7078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7079   echo "$ac_t""yes" 1>&6
7080     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7081   cat >> confdefs.h <<EOF
7082 #define $ac_tr_hdr 1
7083 EOF
7084  break
7085 else
7086   echo "$ac_t""no" 1>&6
7087 fi
7088 done
7089
7090
7091 for ac_func in strchr index
7092 do
7093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7094 echo "configure:7095: checking for $ac_func" >&5
7095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7096   echo $ac_n "(cached) $ac_c" 1>&6
7097 else
7098   cat > conftest.$ac_ext <<EOF
7099 #line 7100 "configure"
7100 #include "confdefs.h"
7101 /* System header to define __stub macros and hopefully few prototypes,
7102     which can conflict with char $ac_func(); below.  */
7103 #include <assert.h>
7104 /* Override any gcc2 internal prototype to avoid an error.  */
7105 /* We use char because int might match the return type of a gcc2
7106     builtin and then its argument prototype would still apply.  */
7107 char $ac_func();
7108
7109 int main() {
7110
7111 /* The GNU C library defines this for functions which it implements
7112     to always fail with ENOSYS.  Some functions are actually named
7113     something starting with __ and the normal name is an alias.  */
7114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7115 choke me
7116 #else
7117 $ac_func();
7118 #endif
7119
7120 ; return 0; }
7121 EOF
7122 if { (eval echo configure:7123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7123   rm -rf conftest*
7124   eval "ac_cv_func_$ac_func=yes"
7125 else
7126   echo "configure: failed program was:" >&5
7127   cat conftest.$ac_ext >&5
7128   rm -rf conftest*
7129   eval "ac_cv_func_$ac_func=no"
7130 fi
7131 rm -f conftest*
7132 fi
7133
7134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7135   echo "$ac_t""yes" 1>&6
7136     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7137   cat >> confdefs.h <<EOF
7138 #define $ac_tr_func 1
7139 EOF
7140  break
7141 else
7142   echo "$ac_t""no" 1>&6
7143 fi
7144 done
7145
7146 for ac_func in strrchr rindex
7147 do
7148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7149 echo "configure:7150: checking for $ac_func" >&5
7150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7151   echo $ac_n "(cached) $ac_c" 1>&6
7152 else
7153   cat > conftest.$ac_ext <<EOF
7154 #line 7155 "configure"
7155 #include "confdefs.h"
7156 /* System header to define __stub macros and hopefully few prototypes,
7157     which can conflict with char $ac_func(); below.  */
7158 #include <assert.h>
7159 /* Override any gcc2 internal prototype to avoid an error.  */
7160 /* We use char because int might match the return type of a gcc2
7161     builtin and then its argument prototype would still apply.  */
7162 char $ac_func();
7163
7164 int main() {
7165
7166 /* The GNU C library defines this for functions which it implements
7167     to always fail with ENOSYS.  Some functions are actually named
7168     something starting with __ and the normal name is an alias.  */
7169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7170 choke me
7171 #else
7172 $ac_func();
7173 #endif
7174
7175 ; return 0; }
7176 EOF
7177 if { (eval echo configure:7178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7178   rm -rf conftest*
7179   eval "ac_cv_func_$ac_func=yes"
7180 else
7181   echo "configure: failed program was:" >&5
7182   cat conftest.$ac_ext >&5
7183   rm -rf conftest*
7184   eval "ac_cv_func_$ac_func=no"
7185 fi
7186 rm -f conftest*
7187 fi
7188
7189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7190   echo "$ac_t""yes" 1>&6
7191     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7192   cat >> confdefs.h <<EOF
7193 #define $ac_tr_func 1
7194 EOF
7195  break
7196 else
7197   echo "$ac_t""no" 1>&6
7198 fi
7199 done
7200
7201 for ac_func in memcpy bcopy
7202 do
7203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7204 echo "configure:7205: checking for $ac_func" >&5
7205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7206   echo $ac_n "(cached) $ac_c" 1>&6
7207 else
7208   cat > conftest.$ac_ext <<EOF
7209 #line 7210 "configure"
7210 #include "confdefs.h"
7211 /* System header to define __stub macros and hopefully few prototypes,
7212     which can conflict with char $ac_func(); below.  */
7213 #include <assert.h>
7214 /* Override any gcc2 internal prototype to avoid an error.  */
7215 /* We use char because int might match the return type of a gcc2
7216     builtin and then its argument prototype would still apply.  */
7217 char $ac_func();
7218
7219 int main() {
7220
7221 /* The GNU C library defines this for functions which it implements
7222     to always fail with ENOSYS.  Some functions are actually named
7223     something starting with __ and the normal name is an alias.  */
7224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7225 choke me
7226 #else
7227 $ac_func();
7228 #endif
7229
7230 ; return 0; }
7231 EOF
7232 if { (eval echo configure:7233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7233   rm -rf conftest*
7234   eval "ac_cv_func_$ac_func=yes"
7235 else
7236   echo "configure: failed program was:" >&5
7237   cat conftest.$ac_ext >&5
7238   rm -rf conftest*
7239   eval "ac_cv_func_$ac_func=no"
7240 fi
7241 rm -f conftest*
7242 fi
7243
7244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7245   echo "$ac_t""yes" 1>&6
7246     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7247   cat >> confdefs.h <<EOF
7248 #define $ac_tr_func 1
7249 EOF
7250  break
7251 else
7252   echo "$ac_t""no" 1>&6
7253 fi
7254 done
7255
7256 for ac_func in memmove strcmp
7257 do
7258 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7259 echo "configure:7260: checking for $ac_func" >&5
7260 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7261   echo $ac_n "(cached) $ac_c" 1>&6
7262 else
7263   cat > conftest.$ac_ext <<EOF
7264 #line 7265 "configure"
7265 #include "confdefs.h"
7266 /* System header to define __stub macros and hopefully few prototypes,
7267     which can conflict with char $ac_func(); below.  */
7268 #include <assert.h>
7269 /* Override any gcc2 internal prototype to avoid an error.  */
7270 /* We use char because int might match the return type of a gcc2
7271     builtin and then its argument prototype would still apply.  */
7272 char $ac_func();
7273
7274 int main() {
7275
7276 /* The GNU C library defines this for functions which it implements
7277     to always fail with ENOSYS.  Some functions are actually named
7278     something starting with __ and the normal name is an alias.  */
7279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7280 choke me
7281 #else
7282 $ac_func();
7283 #endif
7284
7285 ; return 0; }
7286 EOF
7287 if { (eval echo configure:7288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7288   rm -rf conftest*
7289   eval "ac_cv_func_$ac_func=yes"
7290 else
7291   echo "configure: failed program was:" >&5
7292   cat conftest.$ac_ext >&5
7293   rm -rf conftest*
7294   eval "ac_cv_func_$ac_func=no"
7295 fi
7296 rm -f conftest*
7297 fi
7298
7299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7300   echo "$ac_t""yes" 1>&6
7301     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7302   cat >> confdefs.h <<EOF
7303 #define $ac_tr_func 1
7304 EOF
7305  
7306 else
7307   echo "$ac_t""no" 1>&6
7308 fi
7309 done
7310
7311
7312
7313
7314 trap '' 1 2 15
7315 cat > confcache <<\EOF
7316 # This file is a shell script that caches the results of configure
7317 # tests run on this system so they can be shared between configure
7318 # scripts and configure runs.  It is not useful on other systems.
7319 # If it contains results you don't want to keep, you may remove or edit it.
7320 #
7321 # By default, configure uses ./config.cache as the cache file,
7322 # creating it if it does not exist already.  You can give configure
7323 # the --cache-file=FILE option to use a different cache file; that is
7324 # what configure does when it calls configure scripts in
7325 # subdirectories, so they share the cache.
7326 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7327 # config.status only pays attention to the cache file if you give it the
7328 # --recheck option to rerun configure.
7329 #
7330 EOF
7331 # The following way of writing the cache mishandles newlines in values,
7332 # but we know of no workaround that is simple, portable, and efficient.
7333 # So, don't put newlines in cache variables' values.
7334 # Ultrix sh set writes to stderr and can't be redirected directly,
7335 # and sets the high bit in the cache file unless we assign to the vars.
7336 (set) 2>&1 |
7337   case `(ac_space=' '; set | grep ac_space) 2>&1` in
7338   *ac_space=\ *)
7339     # `set' does not quote correctly, so add quotes (double-quote substitution
7340     # turns \\\\ into \\, and sed turns \\ into \).
7341     sed -n \
7342       -e "s/'/'\\\\''/g" \
7343       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7344     ;;
7345   *)
7346     # `set' quotes correctly as required by POSIX, so do not add quotes.
7347     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7348     ;;
7349   esac >> confcache
7350 if cmp -s $cache_file confcache; then
7351   :
7352 else
7353   if test -w $cache_file; then
7354     echo "updating cache $cache_file"
7355     cat confcache > $cache_file
7356   else
7357     echo "not updating unwritable cache $cache_file"
7358   fi
7359 fi
7360 rm -f confcache
7361
7362 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7363
7364 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7365 # Let make expand exec_prefix.
7366 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7367
7368 # Any assignment to VPATH causes Sun make to only execute
7369 # the first set of double-colon rules, so remove it if not needed.
7370 # If there is a colon in the path, we need to keep it.
7371 if test "x$srcdir" = x.; then
7372   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
7373 fi
7374
7375 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7376
7377 DEFS=-DHAVE_CONFIG_H
7378
7379 # Without the "./", some shells look in PATH for config.status.
7380 : ${CONFIG_STATUS=./config.status}
7381
7382 echo creating $CONFIG_STATUS
7383 rm -f $CONFIG_STATUS
7384 cat > $CONFIG_STATUS <<EOF
7385 #! /bin/sh
7386 # Generated automatically by configure.
7387 # Run this file to recreate the current configuration.
7388 # This directory was configured as follows,
7389 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7390 #
7391 # $0 $ac_configure_args
7392 #
7393 # Compiler output produced by configure, useful for debugging
7394 # configure, is in ./config.log if it exists.
7395
7396 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7397 for ac_option
7398 do
7399   case "\$ac_option" in
7400   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7401     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7402     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7403   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7404     echo "$CONFIG_STATUS generated by autoconf version 2.13"
7405     exit 0 ;;
7406   -help | --help | --hel | --he | --h)
7407     echo "\$ac_cs_usage"; exit 0 ;;
7408   *) echo "\$ac_cs_usage"; exit 1 ;;
7409   esac
7410 done
7411
7412 ac_given_srcdir=$srcdir
7413 ac_given_INSTALL="$INSTALL"
7414
7415 trap 'rm -fr `echo "Makefile config.h:config-h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7416 EOF
7417 cat >> $CONFIG_STATUS <<EOF
7418
7419 # Protect against being on the right side of a sed subst in config.status.
7420 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7421  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7422 $ac_vpsub
7423 $extrasub
7424 s%@SHELL@%$SHELL%g
7425 s%@CFLAGS@%$CFLAGS%g
7426 s%@CPPFLAGS@%$CPPFLAGS%g
7427 s%@CXXFLAGS@%$CXXFLAGS%g
7428 s%@FFLAGS@%$FFLAGS%g
7429 s%@DEFS@%$DEFS%g
7430 s%@LDFLAGS@%$LDFLAGS%g
7431 s%@LIBS@%$LIBS%g
7432 s%@exec_prefix@%$exec_prefix%g
7433 s%@prefix@%$prefix%g
7434 s%@program_transform_name@%$program_transform_name%g
7435 s%@bindir@%$bindir%g
7436 s%@sbindir@%$sbindir%g
7437 s%@libexecdir@%$libexecdir%g
7438 s%@datadir@%$datadir%g
7439 s%@sysconfdir@%$sysconfdir%g
7440 s%@sharedstatedir@%$sharedstatedir%g
7441 s%@localstatedir@%$localstatedir%g
7442 s%@libdir@%$libdir%g
7443 s%@includedir@%$includedir%g
7444 s%@oldincludedir@%$oldincludedir%g
7445 s%@infodir@%$infodir%g
7446 s%@mandir@%$mandir%g
7447 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7448 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7449 s%@INSTALL_DATA@%$INSTALL_DATA%g
7450 s%@PACKAGE@%$PACKAGE%g
7451 s%@VERSION@%$VERSION%g
7452 s%@EXEEXT@%$EXEEXT%g
7453 s%@OBJEXT@%$OBJEXT%g
7454 s%@ACLOCAL@%$ACLOCAL%g
7455 s%@AUTOCONF@%$AUTOCONF%g
7456 s%@AUTOMAKE@%$AUTOMAKE%g
7457 s%@AUTOHEADER@%$AUTOHEADER%g
7458 s%@MAKEINFO@%$MAKEINFO%g
7459 s%@AMTAR@%$AMTAR%g
7460 s%@install_sh@%$install_sh%g
7461 s%@INSTALL_STRIP_PROGRAM@%$INSTALL_STRIP_PROGRAM%g
7462 s%@AWK@%$AWK%g
7463 s%@SET_MAKE@%$SET_MAKE%g
7464 s%@AMDEP_TRUE@%$AMDEP_TRUE%g
7465 s%@AMDEP_FALSE@%$AMDEP_FALSE%g
7466 s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%g
7467 s%@DEPDIR@%$DEPDIR%g
7468 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7469 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7470 s%@MAINT@%$MAINT%g
7471 s%@CC@%$CC%g
7472 s%@am__include@%$am__include%g
7473 s%@am__quote@%$am__quote%g
7474 s%@CCDEPMODE@%$CCDEPMODE%g
7475 s%@host@%$host%g
7476 s%@host_alias@%$host_alias%g
7477 s%@host_cpu@%$host_cpu%g
7478 s%@host_vendor@%$host_vendor%g
7479 s%@host_os@%$host_os%g
7480 s%@build@%$build%g
7481 s%@build_alias@%$build_alias%g
7482 s%@build_cpu@%$build_cpu%g
7483 s%@build_vendor@%$build_vendor%g
7484 s%@build_os@%$build_os%g
7485 s%@LN_S@%$LN_S%g
7486 s%@ECHO@%$ECHO%g
7487 s%@RANLIB@%$RANLIB%g
7488 s%@STRIP@%$STRIP%g
7489 s%@DLLTOOL@%$DLLTOOL%g
7490 s%@AS@%$AS%g
7491 s%@OBJDUMP@%$OBJDUMP%g
7492 s%@CPP@%$CPP%g
7493 s%@LIBTOOL@%$LIBTOOL%g
7494 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
7495 s%@INSTALL_LTDL_TRUE@%$INSTALL_LTDL_TRUE%g
7496 s%@INSTALL_LTDL_FALSE@%$INSTALL_LTDL_FALSE%g
7497 s%@CONVENIENCE_LTDL_TRUE@%$CONVENIENCE_LTDL_TRUE%g
7498 s%@CONVENIENCE_LTDL_FALSE@%$CONVENIENCE_LTDL_FALSE%g
7499 s%@LIBADD_DL@%$LIBADD_DL%g
7500
7501 CEOF
7502 EOF
7503
7504 cat >> $CONFIG_STATUS <<\EOF
7505
7506 # Split the substitutions into bite-sized pieces for seds with
7507 # small command number limits, like on Digital OSF/1 and HP-UX.
7508 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7509 ac_file=1 # Number of current file.
7510 ac_beg=1 # First line for current file.
7511 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7512 ac_more_lines=:
7513 ac_sed_cmds=""
7514 while $ac_more_lines; do
7515   if test $ac_beg -gt 1; then
7516     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7517   else
7518     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7519   fi
7520   if test ! -s conftest.s$ac_file; then
7521     ac_more_lines=false
7522     rm -f conftest.s$ac_file
7523   else
7524     if test -z "$ac_sed_cmds"; then
7525       ac_sed_cmds="sed -f conftest.s$ac_file"
7526     else
7527       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7528     fi
7529     ac_file=`expr $ac_file + 1`
7530     ac_beg=$ac_end
7531     ac_end=`expr $ac_end + $ac_max_sed_cmds`
7532   fi
7533 done
7534 if test -z "$ac_sed_cmds"; then
7535   ac_sed_cmds=cat
7536 fi
7537 EOF
7538
7539 cat >> $CONFIG_STATUS <<EOF
7540
7541 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7542 EOF
7543 cat >> $CONFIG_STATUS <<\EOF
7544 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7545   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7546   case "$ac_file" in
7547   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7548        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7549   *) ac_file_in="${ac_file}.in" ;;
7550   esac
7551
7552   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7553
7554   # Remove last slash and all that follows it.  Not all systems have dirname.
7555   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7556   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7557     # The file is in a subdirectory.
7558     test ! -d "$ac_dir" && mkdir "$ac_dir"
7559     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7560     # A "../" for each directory in $ac_dir_suffix.
7561     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7562   else
7563     ac_dir_suffix= ac_dots=
7564   fi
7565
7566   case "$ac_given_srcdir" in
7567   .)  srcdir=.
7568       if test -z "$ac_dots"; then top_srcdir=.
7569       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7570   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7571   *) # Relative path.
7572     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7573     top_srcdir="$ac_dots$ac_given_srcdir" ;;
7574   esac
7575
7576   case "$ac_given_INSTALL" in
7577   [/$]*) INSTALL="$ac_given_INSTALL" ;;
7578   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7579   esac
7580
7581   echo creating "$ac_file"
7582   rm -f "$ac_file"
7583   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7584   case "$ac_file" in
7585   *Makefile*) ac_comsub="1i\\
7586 # $configure_input" ;;
7587   *) ac_comsub= ;;
7588   esac
7589
7590   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7591   sed -e "$ac_comsub
7592 s%@configure_input@%$configure_input%g
7593 s%@srcdir@%$srcdir%g
7594 s%@top_srcdir@%$top_srcdir%g
7595 s%@INSTALL@%$INSTALL%g
7596 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7597 fi; done
7598 rm -f conftest.s*
7599
7600 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7601 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7602 #
7603 # ac_d sets the value in "#define NAME VALUE" lines.
7604 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
7605 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
7606 ac_dC='\3'
7607 ac_dD='%g'
7608 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7609 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7610 ac_uB='\([      ]\)%\1#\2define\3'
7611 ac_uC=' '
7612 ac_uD='\4%g'
7613 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7614 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7615 ac_eB='$%\1#\2define\3'
7616 ac_eC=' '
7617 ac_eD='%g'
7618
7619 if test "${CONFIG_HEADERS+set}" != set; then
7620 EOF
7621 cat >> $CONFIG_STATUS <<EOF
7622   CONFIG_HEADERS="config.h:config-h.in"
7623 EOF
7624 cat >> $CONFIG_STATUS <<\EOF
7625 fi
7626 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7627   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7628   case "$ac_file" in
7629   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7630        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7631   *) ac_file_in="${ac_file}.in" ;;
7632   esac
7633
7634   echo creating $ac_file
7635
7636   rm -f conftest.frag conftest.in conftest.out
7637   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7638   cat $ac_file_inputs > conftest.in
7639
7640 EOF
7641
7642 # Transform confdefs.h into a sed script conftest.vals that substitutes
7643 # the proper values into config.h.in to produce config.h.  And first:
7644 # Protect against being on the right side of a sed subst in config.status.
7645 # Protect against being in an unquoted here document in config.status.
7646 rm -f conftest.vals
7647 cat > conftest.hdr <<\EOF
7648 s/[\\&%]/\\&/g
7649 s%[\\$`]%\\&%g
7650 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7651 s%ac_d%ac_u%gp
7652 s%ac_u%ac_e%gp
7653 EOF
7654 sed -n -f conftest.hdr confdefs.h > conftest.vals
7655 rm -f conftest.hdr
7656
7657 # This sed command replaces #undef with comments.  This is necessary, for
7658 # example, in the case of _POSIX_SOURCE, which is predefined and required
7659 # on some systems where configure will not decide to define it.
7660 cat >> conftest.vals <<\EOF
7661 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7662 EOF
7663
7664 # Break up conftest.vals because some shells have a limit on
7665 # the size of here documents, and old seds have small limits too.
7666
7667 rm -f conftest.tail
7668 while :
7669 do
7670   ac_lines=`grep -c . conftest.vals`
7671   # grep -c gives empty output for an empty file on some AIX systems.
7672   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7673   # Write a limited-size here document to conftest.frag.
7674   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7675   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7676   echo 'CEOF
7677   sed -f conftest.frag conftest.in > conftest.out
7678   rm -f conftest.in
7679   mv conftest.out conftest.in
7680 ' >> $CONFIG_STATUS
7681   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7682   rm -f conftest.vals
7683   mv conftest.tail conftest.vals
7684 done
7685 rm -f conftest.vals
7686
7687 cat >> $CONFIG_STATUS <<\EOF
7688   rm -f conftest.frag conftest.h
7689   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
7690   cat conftest.in >> conftest.h
7691   rm -f conftest.in
7692   if cmp -s $ac_file conftest.h 2>/dev/null; then
7693     echo "$ac_file is unchanged"
7694     rm -f conftest.h
7695   else
7696     # Remove last slash and all that follows it.  Not all systems have dirname.
7697       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7698       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7699       # The file is in a subdirectory.
7700       test ! -d "$ac_dir" && mkdir "$ac_dir"
7701     fi
7702     rm -f $ac_file
7703     mv conftest.h $ac_file
7704   fi
7705 fi; done
7706
7707 EOF
7708 cat >> $CONFIG_STATUS <<EOF
7709 am_indx=1
7710 for am_file in config.h:config-h.in; do
7711   case " \$CONFIG_HEADERS " in
7712   *" \$am_file "*)
7713     am_dir=\`echo \$am_file |sed 's%:.*%%;s%[^/]*\$%%'\`
7714     if test -n "\$am_dir"; then
7715       am_tmpdir=\`echo \$am_dir |sed 's%^\(/*\).*\$%\1%'\`
7716       for am_subdir in \`echo \$am_dir |sed 's%/% %'\`; do
7717         am_tmpdir=\$am_tmpdir\$am_subdir/
7718         if test ! -d \$am_tmpdir; then
7719           mkdir \$am_tmpdir
7720         fi
7721       done
7722     fi
7723     echo timestamp > "\$am_dir"stamp-h\$am_indx
7724     ;;
7725   esac
7726   am_indx=\`expr \$am_indx + 1\`
7727 done
7728 AMDEP_TRUE="$AMDEP_TRUE"
7729 ac_aux_dir="$ac_aux_dir"
7730
7731 EOF
7732 cat >> $CONFIG_STATUS <<\EOF
7733 test -z "$CONFIG_HEADERS" || echo timestamp >      stamp-h
7734
7735 test x"$AMDEP_TRUE" != x"" ||
7736 for mf in $CONFIG_FILES; do
7737   case "$mf" in
7738   Makefile) dirpart=.;;
7739   */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
7740   *) continue;;
7741   esac
7742   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7743   # Extract the definition of DEP_FILES from the Makefile without
7744   # running `make'.
7745   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
7746   test -z "$DEPDIR" && continue
7747   # When using ansi2knr, U may be empty or an underscore; expand it
7748   U=`sed -n -e '/^U = / s///p' < "$mf"`
7749   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7750   # We invoke sed twice because it is the simplest approach to
7751   # changing $(DEPDIR) to its actual value in the expansion.
7752   for file in `sed -n -e '
7753     /^DEP_FILES = .*\\\\$/ {
7754       s/^DEP_FILES = //
7755       :loop
7756         s/\\\\$//
7757         p
7758         n
7759         /\\\\$/ b loop
7760       p
7761     }
7762     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7763        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7764     # Make sure the directory exists.
7765     test -f "$dirpart/$file" && continue
7766     fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
7767     $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
7768     # echo "creating $dirpart/$file"
7769     echo '# dummy' > "$dirpart/$file"
7770   done
7771 done
7772
7773
7774 exit 0
7775 EOF
7776 chmod +x $CONFIG_STATUS
7777 rm -fr confdefs* $ac_clean_files
7778 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7779
7780
7781 # Local Variables:
7782 # mode:shell-script
7783 # sh-indentation:2
7784 # End: