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