OSDN Git Service

* config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
[pf3gnuchains/gcc-fork.git] / zlib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $ECHO works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<_LT_EOF
274 $*
275 _LT_EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$lt_ECHO"; then
284   if test "X${echo_test_string+set}" != Xset; then
285     # find a string as large as possible, as long as the shell can cope with it
286     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290       then
291         break
292       fi
293     done
294   fi
295
296   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298      test "X$echo_testing_string" = "X$echo_test_string"; then
299     :
300   else
301     # The Solaris, AIX, and Digital Unix default echo programs unquote
302     # backslashes.  This makes it impossible to quote backslashes using
303     #   echo "$something" | sed 's/\\/\\\\/g'
304     #
305     # So, first we look for a working echo in the user's PATH.
306
307     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308     for dir in $PATH /usr/ucb; do
309       IFS="$lt_save_ifs"
310       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313          test "X$echo_testing_string" = "X$echo_test_string"; then
314         ECHO="$dir/echo"
315         break
316       fi
317     done
318     IFS="$lt_save_ifs"
319
320     if test "X$ECHO" = Xecho; then
321       # We didn't find a better echo, so look for alternatives.
322       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324          test "X$echo_testing_string" = "X$echo_test_string"; then
325         # This shell has a builtin print -r that does the trick.
326         ECHO='print -r'
327       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328            test "X$CONFIG_SHELL" != X/bin/ksh; then
329         # If we have ksh, try running configure again with it.
330         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331         export ORIGINAL_CONFIG_SHELL
332         CONFIG_SHELL=/bin/ksh
333         export CONFIG_SHELL
334         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335       else
336         # Try using printf.
337         ECHO='printf %s\n'
338         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340            test "X$echo_testing_string" = "X$echo_test_string"; then
341           # Cool, printf works
342           :
343         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344              test "X$echo_testing_string" = 'X\t' &&
345              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346              test "X$echo_testing_string" = "X$echo_test_string"; then
347           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348           export CONFIG_SHELL
349           SHELL="$CONFIG_SHELL"
350           export SHELL
351           ECHO="$CONFIG_SHELL $0 --fallback-echo"
352         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353              test "X$echo_testing_string" = 'X\t' &&
354              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355              test "X$echo_testing_string" = "X$echo_test_string"; then
356           ECHO="$CONFIG_SHELL $0 --fallback-echo"
357         else
358           # maybe with a smaller string...
359           prev=:
360
361           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363             then
364               break
365             fi
366             prev="$cmd"
367           done
368
369           if test "$prev" != 'sed 50q "$0"'; then
370             echo_test_string=`eval $prev`
371             export echo_test_string
372             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373           else
374             # Oops.  We lost completely, so just stick with echo.
375             ECHO=echo
376           fi
377         fi
378       fi
379     fi
380   fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
410
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete.  It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
415
416 # Identity of this package.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
422
423 ac_unique_file="zlib.h"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 #  include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 #  include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 #  include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
460
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os mkinstalldirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT COMPPATH CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP CPPFLAGS target_all toolexecdir toolexeclibdir TARGET_LIBRARY_TRUE TARGET_LIBRARY_FALSE LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
483
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
501
502 ac_prev=
503 for ac_option
504 do
505   # If the previous option needs an argument, assign it.
506   if test -n "$ac_prev"; then
507     eval "$ac_prev=\$ac_option"
508     ac_prev=
509     continue
510   fi
511
512   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514   # Accept the important Cygnus configure options, so we can diagnose typos.
515
516   case $ac_option in
517
518   -bindir | --bindir | --bindi | --bind | --bin | --bi)
519     ac_prev=bindir ;;
520   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521     bindir=$ac_optarg ;;
522
523   -build | --build | --buil | --bui | --bu)
524     ac_prev=build_alias ;;
525   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526     build_alias=$ac_optarg ;;
527
528   -cache-file | --cache-file | --cache-fil | --cache-fi \
529   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530     ac_prev=cache_file ;;
531   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533     cache_file=$ac_optarg ;;
534
535   --config-cache | -C)
536     cache_file=config.cache ;;
537
538   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539     ac_prev=datadir ;;
540   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541   | --da=*)
542     datadir=$ac_optarg ;;
543
544   -disable-* | --disable-*)
545     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546     # Reject names that are not valid shell variable names.
547     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549    { (exit 1); exit 1; }; }
550     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551     eval "enable_$ac_feature=no" ;;
552
553   -enable-* | --enable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     case $ac_option in
561       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562       *) ac_optarg=yes ;;
563     esac
564     eval "enable_$ac_feature='$ac_optarg'" ;;
565
566   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568   | --exec | --exe | --ex)
569     ac_prev=exec_prefix ;;
570   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572   | --exec=* | --exe=* | --ex=*)
573     exec_prefix=$ac_optarg ;;
574
575   -gas | --gas | --ga | --g)
576     # Obsolete; use --with-gas.
577     with_gas=yes ;;
578
579   -help | --help | --hel | --he | -h)
580     ac_init_help=long ;;
581   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582     ac_init_help=recursive ;;
583   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584     ac_init_help=short ;;
585
586   -host | --host | --hos | --ho)
587     ac_prev=host_alias ;;
588   -host=* | --host=* | --hos=* | --ho=*)
589     host_alias=$ac_optarg ;;
590
591   -includedir | --includedir | --includedi | --included | --include \
592   | --includ | --inclu | --incl | --inc)
593     ac_prev=includedir ;;
594   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595   | --includ=* | --inclu=* | --incl=* | --inc=*)
596     includedir=$ac_optarg ;;
597
598   -infodir | --infodir | --infodi | --infod | --info | --inf)
599     ac_prev=infodir ;;
600   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601     infodir=$ac_optarg ;;
602
603   -libdir | --libdir | --libdi | --libd)
604     ac_prev=libdir ;;
605   -libdir=* | --libdir=* | --libdi=* | --libd=*)
606     libdir=$ac_optarg ;;
607
608   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609   | --libexe | --libex | --libe)
610     ac_prev=libexecdir ;;
611   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612   | --libexe=* | --libex=* | --libe=*)
613     libexecdir=$ac_optarg ;;
614
615   -localstatedir | --localstatedir | --localstatedi | --localstated \
616   | --localstate | --localstat | --localsta | --localst \
617   | --locals | --local | --loca | --loc | --lo)
618     ac_prev=localstatedir ;;
619   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622     localstatedir=$ac_optarg ;;
623
624   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625     ac_prev=mandir ;;
626   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627     mandir=$ac_optarg ;;
628
629   -nfp | --nfp | --nf)
630     # Obsolete; use --without-fp.
631     with_fp=no ;;
632
633   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634   | --no-cr | --no-c | -n)
635     no_create=yes ;;
636
637   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639     no_recursion=yes ;;
640
641   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643   | --oldin | --oldi | --old | --ol | --o)
644     ac_prev=oldincludedir ;;
645   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648     oldincludedir=$ac_optarg ;;
649
650   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651     ac_prev=prefix ;;
652   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653     prefix=$ac_optarg ;;
654
655   -program-prefix | --program-prefix | --program-prefi | --program-pref \
656   | --program-pre | --program-pr | --program-p)
657     ac_prev=program_prefix ;;
658   -program-prefix=* | --program-prefix=* | --program-prefi=* \
659   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660     program_prefix=$ac_optarg ;;
661
662   -program-suffix | --program-suffix | --program-suffi | --program-suff \
663   | --program-suf | --program-su | --program-s)
664     ac_prev=program_suffix ;;
665   -program-suffix=* | --program-suffix=* | --program-suffi=* \
666   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667     program_suffix=$ac_optarg ;;
668
669   -program-transform-name | --program-transform-name \
670   | --program-transform-nam | --program-transform-na \
671   | --program-transform-n | --program-transform- \
672   | --program-transform | --program-transfor \
673   | --program-transfo | --program-transf \
674   | --program-trans | --program-tran \
675   | --progr-tra | --program-tr | --program-t)
676     ac_prev=program_transform_name ;;
677   -program-transform-name=* | --program-transform-name=* \
678   | --program-transform-nam=* | --program-transform-na=* \
679   | --program-transform-n=* | --program-transform-=* \
680   | --program-transform=* | --program-transfor=* \
681   | --program-transfo=* | --program-transf=* \
682   | --program-trans=* | --program-tran=* \
683   | --progr-tra=* | --program-tr=* | --program-t=*)
684     program_transform_name=$ac_optarg ;;
685
686   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687   | -silent | --silent | --silen | --sile | --sil)
688     silent=yes ;;
689
690   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691     ac_prev=sbindir ;;
692   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693   | --sbi=* | --sb=*)
694     sbindir=$ac_optarg ;;
695
696   -sharedstatedir | --sharedstatedir | --sharedstatedi \
697   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698   | --sharedst | --shareds | --shared | --share | --shar \
699   | --sha | --sh)
700     ac_prev=sharedstatedir ;;
701   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704   | --sha=* | --sh=*)
705     sharedstatedir=$ac_optarg ;;
706
707   -site | --site | --sit)
708     ac_prev=site ;;
709   -site=* | --site=* | --sit=*)
710     site=$ac_optarg ;;
711
712   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713     ac_prev=srcdir ;;
714   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715     srcdir=$ac_optarg ;;
716
717   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718   | --syscon | --sysco | --sysc | --sys | --sy)
719     ac_prev=sysconfdir ;;
720   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722     sysconfdir=$ac_optarg ;;
723
724   -target | --target | --targe | --targ | --tar | --ta | --t)
725     ac_prev=target_alias ;;
726   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727     target_alias=$ac_optarg ;;
728
729   -v | -verbose | --verbose | --verbos | --verbo | --verb)
730     verbose=yes ;;
731
732   -version | --version | --versio | --versi | --vers | -V)
733     ac_init_version=: ;;
734
735   -with-* | --with-*)
736     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737     # Reject names that are not valid shell variable names.
738     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739       { echo "$as_me: error: invalid package name: $ac_package" >&2
740    { (exit 1); exit 1; }; }
741     ac_package=`echo $ac_package| sed 's/-/_/g'`
742     case $ac_option in
743       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744       *) ac_optarg=yes ;;
745     esac
746     eval "with_$ac_package='$ac_optarg'" ;;
747
748   -without-* | --without-*)
749     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750     # Reject names that are not valid shell variable names.
751     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752       { echo "$as_me: error: invalid package name: $ac_package" >&2
753    { (exit 1); exit 1; }; }
754     ac_package=`echo $ac_package | sed 's/-/_/g'`
755     eval "with_$ac_package=no" ;;
756
757   --x)
758     # Obsolete; use --with-x.
759     with_x=yes ;;
760
761   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762   | --x-incl | --x-inc | --x-in | --x-i)
763     ac_prev=x_includes ;;
764   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766     x_includes=$ac_optarg ;;
767
768   -x-libraries | --x-libraries | --x-librarie | --x-librari \
769   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770     ac_prev=x_libraries ;;
771   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773     x_libraries=$ac_optarg ;;
774
775   -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777    { (exit 1); exit 1; }; }
778     ;;
779
780   *=*)
781     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782     # Reject names that are not valid shell variable names.
783     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785    { (exit 1); exit 1; }; }
786     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787     eval "$ac_envvar='$ac_optarg'"
788     export $ac_envvar ;;
789
790   *)
791     # FIXME: should be removed in autoconf 3.0.
792     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796     ;;
797
798   esac
799 done
800
801 if test -n "$ac_prev"; then
802   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803   { echo "$as_me: error: missing argument to $ac_option" >&2
804    { (exit 1); exit 1; }; }
805 fi
806
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
809 do
810   eval ac_val=$`echo $ac_var`
811   case $ac_val in
812     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814    { (exit 1); exit 1; }; };;
815   esac
816 done
817
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820               localstatedir libdir includedir oldincludedir infodir mandir
821 do
822   eval ac_val=$`echo $ac_var`
823   case $ac_val in
824     [\\/$]* | ?:[\\/]* ) ;;
825     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826    { (exit 1); exit 1; }; };;
827   esac
828 done
829
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
836
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839   if test "x$build_alias" = x; then
840     cross_compiling=maybe
841     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842     If a cross compiler is detected then cross compile mode will be used." >&2
843   elif test "x$build_alias" != "x$host_alias"; then
844     cross_compiling=yes
845   fi
846 fi
847
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851 test "$silent" = yes && exec 6>/dev/null
852
853
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856   ac_srcdir_defaulted=yes
857   # Try the directory containing this script, then its parent.
858   ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860          X"$0" : 'X\(//\)[^/]' \| \
861          X"$0" : 'X\(//\)$' \| \
862          X"$0" : 'X\(/\)' \| \
863          .     : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867           /^X\(\/\/\)$/{ s//\1/; q; }
868           /^X\(\/\).*/{ s//\1/; q; }
869           s/.*/./; q'`
870   srcdir=$ac_confdir
871   if test ! -r $srcdir/$ac_unique_file; then
872     srcdir=..
873   fi
874 else
875   ac_srcdir_defaulted=no
876 fi
877 if test ! -r $srcdir/$ac_unique_file; then
878   if test "$ac_srcdir_defaulted" = yes; then
879     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880    { (exit 1); exit 1; }; }
881   else
882     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883    { (exit 1); exit 1; }; }
884   fi
885 fi
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888    { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CPP_set=${CPP+set}
903 ac_env_CPP_value=$CPP
904 ac_cv_env_CPP_set=${CPP+set}
905 ac_cv_env_CPP_value=$CPP
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910
911 #
912 # Report the --help message.
913 #
914 if test "$ac_init_help" = "long"; then
915   # Omit some internal or obsolete options to make the list less imposing.
916   # This message is too long to be a string in the A/UX 3.1 sh.
917   cat <<_ACEOF
918 \`configure' configures this package to adapt to many kinds of systems.
919
920 Usage: $0 [OPTION]... [VAR=VALUE]...
921
922 To assign environment variables (e.g., CC, CFLAGS...), specify them as
923 VAR=VALUE.  See below for descriptions of some of the useful variables.
924
925 Defaults for the options are specified in brackets.
926
927 Configuration:
928   -h, --help              display this help and exit
929       --help=short        display options specific to this package
930       --help=recursive    display the short help of all the included packages
931   -V, --version           display version information and exit
932   -q, --quiet, --silent   do not print \`checking...' messages
933       --cache-file=FILE   cache test results in FILE [disabled]
934   -C, --config-cache      alias for \`--cache-file=config.cache'
935   -n, --no-create         do not create output files
936       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
937
938 _ACEOF
939
940   cat <<_ACEOF
941 Installation directories:
942   --prefix=PREFIX         install architecture-independent files in PREFIX
943                           [$ac_default_prefix]
944   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
945                           [PREFIX]
946
947 By default, \`make install' will install all the files in
948 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
949 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
950 for instance \`--prefix=\$HOME'.
951
952 For better control, use the options below.
953
954 Fine tuning of the installation directories:
955   --bindir=DIR           user executables [EPREFIX/bin]
956   --sbindir=DIR          system admin executables [EPREFIX/sbin]
957   --libexecdir=DIR       program executables [EPREFIX/libexec]
958   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
959   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
960   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
961   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
962   --libdir=DIR           object code libraries [EPREFIX/lib]
963   --includedir=DIR       C header files [PREFIX/include]
964   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
965   --infodir=DIR          info documentation [PREFIX/info]
966   --mandir=DIR           man documentation [PREFIX/man]
967 _ACEOF
968
969   cat <<\_ACEOF
970
971 Program names:
972   --program-prefix=PREFIX            prepend PREFIX to installed program names
973   --program-suffix=SUFFIX            append SUFFIX to installed program names
974   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
975
976 System types:
977   --build=BUILD     configure for building on BUILD [guessed]
978   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
979   --target=TARGET   configure for building compilers for TARGET [HOST]
980 _ACEOF
981 fi
982
983 if test -n "$ac_init_help"; then
984
985   cat <<\_ACEOF
986
987 Optional Features:
988   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
989   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
990   --enable-multilib       build many library versions (default)
991   --enable-maintainer-mode  enable make rules and dependencies not useful
992                           (and sometimes confusing) to the casual installer
993   --disable-dependency-tracking  speeds up one-time build
994   --enable-dependency-tracking   do not reject slow dependency extractors
995   --enable-shared[=PKGS]
996                           build shared libraries [default=yes]
997   --enable-static[=PKGS]
998                           build static libraries [default=yes]
999   --enable-fast-install[=PKGS]
1000                           optimize for fast installation [default=yes]
1001   --disable-libtool-lock  avoid locking (might break parallel builds)
1002
1003 Optional Packages:
1004   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1005   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1006   --with-target-subdir=SUBDIR
1007                           configuring in a subdirectory
1008   --with-cross-host=HOST  configuring with a cross compiler
1009   --with-system-zlib      use installed libz
1010   --with-pic              try to use only PIC/non-PIC objects [default=use
1011                           both]
1012   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1013
1014 Some influential environment variables:
1015   CC          C compiler command
1016   CFLAGS      C compiler flags
1017   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1018               nonstandard directory <lib dir>
1019   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1020               headers in a nonstandard directory <include dir>
1021   CPP         C preprocessor
1022
1023 Use these variables to override the choices made by `configure' or to help
1024 it to find libraries and programs with nonstandard names/locations.
1025
1026 _ACEOF
1027 fi
1028
1029 if test "$ac_init_help" = "recursive"; then
1030   # If there are subdirs, report their specific --help.
1031   ac_popdir=`pwd`
1032   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1033     test -d $ac_dir || continue
1034     ac_builddir=.
1035
1036 if test "$ac_dir" != .; then
1037   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1038   # A "../" for each directory in $ac_dir_suffix.
1039   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1040 else
1041   ac_dir_suffix= ac_top_builddir=
1042 fi
1043
1044 case $srcdir in
1045   .)  # No --srcdir option.  We are building in place.
1046     ac_srcdir=.
1047     if test -z "$ac_top_builddir"; then
1048        ac_top_srcdir=.
1049     else
1050        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1051     fi ;;
1052   [\\/]* | ?:[\\/]* )  # Absolute path.
1053     ac_srcdir=$srcdir$ac_dir_suffix;
1054     ac_top_srcdir=$srcdir ;;
1055   *) # Relative path.
1056     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1057     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1058 esac
1059
1060 # Do not use `cd foo && pwd` to compute absolute paths, because
1061 # the directories may not exist.
1062 case `pwd` in
1063 .) ac_abs_builddir="$ac_dir";;
1064 *)
1065   case "$ac_dir" in
1066   .) ac_abs_builddir=`pwd`;;
1067   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1068   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1069   esac;;
1070 esac
1071 case $ac_abs_builddir in
1072 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1073 *)
1074   case ${ac_top_builddir}. in
1075   .) ac_abs_top_builddir=$ac_abs_builddir;;
1076   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1077   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1078   esac;;
1079 esac
1080 case $ac_abs_builddir in
1081 .) ac_abs_srcdir=$ac_srcdir;;
1082 *)
1083   case $ac_srcdir in
1084   .) ac_abs_srcdir=$ac_abs_builddir;;
1085   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1086   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1087   esac;;
1088 esac
1089 case $ac_abs_builddir in
1090 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1091 *)
1092   case $ac_top_srcdir in
1093   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1094   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1095   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1096   esac;;
1097 esac
1098
1099     cd $ac_dir
1100     # Check for guested configure; otherwise get Cygnus style configure.
1101     if test -f $ac_srcdir/configure.gnu; then
1102       echo
1103       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1104     elif test -f $ac_srcdir/configure; then
1105       echo
1106       $SHELL $ac_srcdir/configure  --help=recursive
1107     elif test -f $ac_srcdir/configure.ac ||
1108            test -f $ac_srcdir/configure.in; then
1109       echo
1110       $ac_configure --help
1111     else
1112       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1113     fi
1114     cd $ac_popdir
1115   done
1116 fi
1117
1118 test -n "$ac_init_help" && exit 0
1119 if $ac_init_version; then
1120   cat <<\_ACEOF
1121
1122 Copyright (C) 2003 Free Software Foundation, Inc.
1123 This configure script is free software; the Free Software Foundation
1124 gives unlimited permission to copy, distribute and modify it.
1125 _ACEOF
1126   exit 0
1127 fi
1128 exec 5>config.log
1129 cat >&5 <<_ACEOF
1130 This file contains any messages produced by compilers while
1131 running configure, to aid debugging if configure makes a mistake.
1132
1133 It was created by $as_me, which was
1134 generated by GNU Autoconf 2.59.  Invocation command line was
1135
1136   $ $0 $@
1137
1138 _ACEOF
1139 {
1140 cat <<_ASUNAME
1141 ## --------- ##
1142 ## Platform. ##
1143 ## --------- ##
1144
1145 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1146 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1147 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1148 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1149 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1150
1151 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1152 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1153
1154 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1155 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1156 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1157 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1158 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1159 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1160 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1161
1162 _ASUNAME
1163
1164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1165 for as_dir in $PATH
1166 do
1167   IFS=$as_save_IFS
1168   test -z "$as_dir" && as_dir=.
1169   echo "PATH: $as_dir"
1170 done
1171
1172 } >&5
1173
1174 cat >&5 <<_ACEOF
1175
1176
1177 ## ----------- ##
1178 ## Core tests. ##
1179 ## ----------- ##
1180
1181 _ACEOF
1182
1183
1184 # Keep a trace of the command line.
1185 # Strip out --no-create and --no-recursion so they do not pile up.
1186 # Strip out --silent because we don't want to record it for future runs.
1187 # Also quote any args containing shell meta-characters.
1188 # Make two passes to allow for proper duplicate-argument suppression.
1189 ac_configure_args=
1190 ac_configure_args0=
1191 ac_configure_args1=
1192 ac_sep=
1193 ac_must_keep_next=false
1194 for ac_pass in 1 2
1195 do
1196   for ac_arg
1197   do
1198     case $ac_arg in
1199     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1200     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201     | -silent | --silent | --silen | --sile | --sil)
1202       continue ;;
1203     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1204       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1205     esac
1206     case $ac_pass in
1207     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1208     2)
1209       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1210       if test $ac_must_keep_next = true; then
1211         ac_must_keep_next=false # Got value, back to normal.
1212       else
1213         case $ac_arg in
1214           *=* | --config-cache | -C | -disable-* | --disable-* \
1215           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1216           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1217           | -with-* | --with-* | -without-* | --without-* | --x)
1218             case "$ac_configure_args0 " in
1219               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1220             esac
1221             ;;
1222           -* ) ac_must_keep_next=true ;;
1223         esac
1224       fi
1225       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1226       # Get rid of the leading space.
1227       ac_sep=" "
1228       ;;
1229     esac
1230   done
1231 done
1232 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1233 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1234
1235 # When interrupted or exit'd, cleanup temporary files, and complete
1236 # config.log.  We remove comments because anyway the quotes in there
1237 # would cause problems or look ugly.
1238 # WARNING: Be sure not to use single quotes in there, as some shells,
1239 # such as our DU 5.0 friend, will then `close' the trap.
1240 trap 'exit_status=$?
1241   # Save into config.log some information that might help in debugging.
1242   {
1243     echo
1244
1245     cat <<\_ASBOX
1246 ## ---------------- ##
1247 ## Cache variables. ##
1248 ## ---------------- ##
1249 _ASBOX
1250     echo
1251     # The following way of writing the cache mishandles newlines in values,
1252 {
1253   (set) 2>&1 |
1254     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1255     *ac_space=\ *)
1256       sed -n \
1257         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1258           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1259       ;;
1260     *)
1261       sed -n \
1262         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1263       ;;
1264     esac;
1265 }
1266     echo
1267
1268     cat <<\_ASBOX
1269 ## ----------------- ##
1270 ## Output variables. ##
1271 ## ----------------- ##
1272 _ASBOX
1273     echo
1274     for ac_var in $ac_subst_vars
1275     do
1276       eval ac_val=$`echo $ac_var`
1277       echo "$ac_var='"'"'$ac_val'"'"'"
1278     done | sort
1279     echo
1280
1281     if test -n "$ac_subst_files"; then
1282       cat <<\_ASBOX
1283 ## ------------- ##
1284 ## Output files. ##
1285 ## ------------- ##
1286 _ASBOX
1287       echo
1288       for ac_var in $ac_subst_files
1289       do
1290         eval ac_val=$`echo $ac_var`
1291         echo "$ac_var='"'"'$ac_val'"'"'"
1292       done | sort
1293       echo
1294     fi
1295
1296     if test -s confdefs.h; then
1297       cat <<\_ASBOX
1298 ## ----------- ##
1299 ## confdefs.h. ##
1300 ## ----------- ##
1301 _ASBOX
1302       echo
1303       sed "/^$/d" confdefs.h | sort
1304       echo
1305     fi
1306     test "$ac_signal" != 0 &&
1307       echo "$as_me: caught signal $ac_signal"
1308     echo "$as_me: exit $exit_status"
1309   } >&5
1310   rm -f core *.core &&
1311   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1312     exit $exit_status
1313      ' 0
1314 for ac_signal in 1 2 13 15; do
1315   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1316 done
1317 ac_signal=0
1318
1319 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1320 rm -rf conftest* confdefs.h
1321 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1322 echo >confdefs.h
1323
1324 # Predefined preprocessor variables.
1325
1326 cat >>confdefs.h <<_ACEOF
1327 #define PACKAGE_NAME "$PACKAGE_NAME"
1328 _ACEOF
1329
1330
1331 cat >>confdefs.h <<_ACEOF
1332 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1333 _ACEOF
1334
1335
1336 cat >>confdefs.h <<_ACEOF
1337 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1338 _ACEOF
1339
1340
1341 cat >>confdefs.h <<_ACEOF
1342 #define PACKAGE_STRING "$PACKAGE_STRING"
1343 _ACEOF
1344
1345
1346 cat >>confdefs.h <<_ACEOF
1347 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1348 _ACEOF
1349
1350
1351 # Let the site file select an alternate cache file if it wants to.
1352 # Prefer explicitly selected file to automatically selected ones.
1353 if test -z "$CONFIG_SITE"; then
1354   if test "x$prefix" != xNONE; then
1355     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1356   else
1357     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1358   fi
1359 fi
1360 for ac_site_file in $CONFIG_SITE; do
1361   if test -r "$ac_site_file"; then
1362     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1363 echo "$as_me: loading site script $ac_site_file" >&6;}
1364     sed 's/^/| /' "$ac_site_file" >&5
1365     . "$ac_site_file"
1366   fi
1367 done
1368
1369 if test -r "$cache_file"; then
1370   # Some versions of bash will fail to source /dev/null (special
1371   # files actually), so we avoid doing that.
1372   if test -f "$cache_file"; then
1373     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1374 echo "$as_me: loading cache $cache_file" >&6;}
1375     case $cache_file in
1376       [\\/]* | ?:[\\/]* ) . $cache_file;;
1377       *)                      . ./$cache_file;;
1378     esac
1379   fi
1380 else
1381   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1382 echo "$as_me: creating cache $cache_file" >&6;}
1383   >$cache_file
1384 fi
1385
1386 # Check that the precious variables saved in the cache have kept the same
1387 # value.
1388 ac_cache_corrupted=false
1389 for ac_var in `(set) 2>&1 |
1390                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1391   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1392   eval ac_new_set=\$ac_env_${ac_var}_set
1393   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1394   eval ac_new_val="\$ac_env_${ac_var}_value"
1395   case $ac_old_set,$ac_new_set in
1396     set,)
1397       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1398 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1399       ac_cache_corrupted=: ;;
1400     ,set)
1401       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1402 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1403       ac_cache_corrupted=: ;;
1404     ,);;
1405     *)
1406       if test "x$ac_old_val" != "x$ac_new_val"; then
1407         # differences in whitespace do not lead to failure.
1408         ac_old_val_w=`echo x $ac_old_val`
1409         ac_new_val_w=`echo x $ac_new_val`
1410         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1411           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1412 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1413           ac_cache_corrupted=:
1414         else
1415           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1416 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1417           eval $ac_var=\$ac_old_val
1418         fi
1419         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1420 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1421         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1422 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1423       fi;;
1424   esac
1425   # Pass precious variables to config.status.
1426   if test "$ac_new_set" = set; then
1427     case $ac_new_val in
1428     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1429       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1430     *) ac_arg=$ac_var=$ac_new_val ;;
1431     esac
1432     case " $ac_configure_args " in
1433       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1434       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1435     esac
1436   fi
1437 done
1438 if $ac_cache_corrupted; then
1439   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1440 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1441   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1442 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1443    { (exit 1); exit 1; }; }
1444 fi
1445
1446 ac_ext=c
1447 ac_cpp='$CPP $CPPFLAGS'
1448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472 # Default to --enable-multilib
1473 # Check whether --enable-multilib or --disable-multilib was given.
1474 if test "${enable_multilib+set}" = set; then
1475   enableval="$enable_multilib"
1476   case "$enableval" in
1477   yes) multilib=yes ;;
1478   no)  multilib=no ;;
1479   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1480 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1481    { (exit 1); exit 1; }; } ;;
1482  esac
1483 else
1484   multilib=yes
1485 fi;
1486
1487 # We may get other options which we leave undocumented:
1488 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1489 # See config-ml.in if you want the gory details.
1490
1491 if test "$srcdir" = "."; then
1492   if test "$with_target_subdir" != "."; then
1493     multi_basedir="$srcdir/$with_multisrctop../.."
1494   else
1495     multi_basedir="$srcdir/$with_multisrctop.."
1496   fi
1497 else
1498   multi_basedir="$srcdir/.."
1499 fi
1500
1501
1502 # Even if the default multilib is not a cross compilation,
1503 # it may be that some of the other multilibs are.
1504 if test $cross_compiling = no && test $multilib = yes \
1505    && test "x${with_multisubdir}" != x ; then
1506    cross_compiling=maybe
1507 fi
1508
1509           ac_config_commands="$ac_config_commands default-1"
1510
1511
1512 ac_aux_dir=
1513 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1514   if test -f $ac_dir/install-sh; then
1515     ac_aux_dir=$ac_dir
1516     ac_install_sh="$ac_aux_dir/install-sh -c"
1517     break
1518   elif test -f $ac_dir/install.sh; then
1519     ac_aux_dir=$ac_dir
1520     ac_install_sh="$ac_aux_dir/install.sh -c"
1521     break
1522   elif test -f $ac_dir/shtool; then
1523     ac_aux_dir=$ac_dir
1524     ac_install_sh="$ac_aux_dir/shtool install -c"
1525     break
1526   fi
1527 done
1528 if test -z "$ac_aux_dir"; then
1529   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1530 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1531    { (exit 1); exit 1; }; }
1532 fi
1533 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1534 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1535 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1536
1537 # Make sure we can run config.sub.
1538 $ac_config_sub sun4 >/dev/null 2>&1 ||
1539   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1540 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1541    { (exit 1); exit 1; }; }
1542
1543 echo "$as_me:$LINENO: checking build system type" >&5
1544 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1545 if test "${ac_cv_build+set}" = set; then
1546   echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548   ac_cv_build_alias=$build_alias
1549 test -z "$ac_cv_build_alias" &&
1550   ac_cv_build_alias=`$ac_config_guess`
1551 test -z "$ac_cv_build_alias" &&
1552   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1553 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1554    { (exit 1); exit 1; }; }
1555 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1556   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1557 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1558    { (exit 1); exit 1; }; }
1559
1560 fi
1561 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1562 echo "${ECHO_T}$ac_cv_build" >&6
1563 build=$ac_cv_build
1564 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1567
1568
1569 echo "$as_me:$LINENO: checking host system type" >&5
1570 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1571 if test "${ac_cv_host+set}" = set; then
1572   echo $ECHO_N "(cached) $ECHO_C" >&6
1573 else
1574   ac_cv_host_alias=$host_alias
1575 test -z "$ac_cv_host_alias" &&
1576   ac_cv_host_alias=$ac_cv_build_alias
1577 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1578   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1579 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1580    { (exit 1); exit 1; }; }
1581
1582 fi
1583 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1584 echo "${ECHO_T}$ac_cv_host" >&6
1585 host=$ac_cv_host
1586 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1587 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1588 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1589
1590
1591 echo "$as_me:$LINENO: checking target system type" >&5
1592 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1593 if test "${ac_cv_target+set}" = set; then
1594   echo $ECHO_N "(cached) $ECHO_C" >&6
1595 else
1596   ac_cv_target_alias=$target_alias
1597 test "x$ac_cv_target_alias" = "x" &&
1598   ac_cv_target_alias=$ac_cv_host_alias
1599 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1600   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1601 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1602    { (exit 1); exit 1; }; }
1603
1604 fi
1605 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1606 echo "${ECHO_T}$ac_cv_target" >&6
1607 target=$ac_cv_target
1608 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1609 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1610 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1611
1612
1613 # The aliases save the names the user supplied, while $host etc.
1614 # will get canonicalized.
1615 test -n "$target_alias" &&
1616   test "$program_prefix$program_suffix$program_transform_name" = \
1617     NONENONEs,x,x, &&
1618   program_prefix=${target_alias}-
1619
1620 # This works around an automake problem.
1621 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1622
1623
1624 am__api_version="1.9"
1625 # Find a good install program.  We prefer a C program (faster),
1626 # so one script is as good as another.  But avoid the broken or
1627 # incompatible versions:
1628 # SysV /etc/install, /usr/sbin/install
1629 # SunOS /usr/etc/install
1630 # IRIX /sbin/install
1631 # AIX /bin/install
1632 # AmigaOS /C/install, which installs bootblocks on floppy discs
1633 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1634 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1635 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1636 # OS/2's system install, which has a completely different semantic
1637 # ./install, which can be erroneously created by make from ./install.sh.
1638 # Reject install programs that cannot install multiple files.
1639 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1640 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1641 if test -z "$INSTALL"; then
1642 if test "${ac_cv_path_install+set}" = set; then
1643   echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648   IFS=$as_save_IFS
1649   test -z "$as_dir" && as_dir=.
1650   # Account for people who put trailing slashes in PATH elements.
1651 case $as_dir/ in
1652   ./ | .// | /cC/* | \
1653   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1654   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1655   /usr/ucb/* ) ;;
1656   *)
1657     # OSF1 and SCO ODT 3.0 have their own names for install.
1658     # Don't use installbsd from OSF since it installs stuff as root
1659     # by default.
1660     for ac_prog in ginstall scoinst install; do
1661       for ac_exec_ext in '' $ac_executable_extensions; do
1662         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1663           if test $ac_prog = install &&
1664             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1665             # AIX install.  It has an incompatible calling convention.
1666             :
1667           elif test $ac_prog = install &&
1668             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1669             # program-specific install script used by HP pwplus--don't use.
1670             :
1671           else
1672             rm -rf conftest.one conftest.two conftest.dir
1673             echo one > conftest.one
1674             echo two > conftest.two
1675             mkdir conftest.dir
1676             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1677               test -s conftest.one && test -s conftest.two &&
1678               test -s conftest.dir/conftest.one &&
1679               test -s conftest.dir/conftest.two
1680             then
1681               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1682               break 3
1683             fi
1684           fi
1685         fi
1686       done
1687     done
1688     ;;
1689 esac
1690 done
1691
1692 rm -rf conftest.one conftest.two conftest.dir
1693
1694 fi
1695   if test "${ac_cv_path_install+set}" = set; then
1696     INSTALL=$ac_cv_path_install
1697   else
1698     # As a last resort, use the slow shell script.  Don't cache a
1699     # value for INSTALL within a source directory, because that will
1700     # break other packages using the cache if that directory is
1701     # removed, or if the value is a relative name.
1702     INSTALL=$ac_install_sh
1703   fi
1704 fi
1705 echo "$as_me:$LINENO: result: $INSTALL" >&5
1706 echo "${ECHO_T}$INSTALL" >&6
1707
1708 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1709 # It thinks the first close brace ends the variable substitution.
1710 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1711
1712 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1713
1714 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1715
1716 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1717 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1718 # Just in case
1719 sleep 1
1720 echo timestamp > conftest.file
1721 # Do `set' in a subshell so we don't clobber the current shell's
1722 # arguments.  Must try -L first in case configure is actually a
1723 # symlink; some systems play weird games with the mod time of symlinks
1724 # (eg FreeBSD returns the mod time of the symlink's containing
1725 # directory).
1726 if (
1727    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1728    if test "$*" = "X"; then
1729       # -L didn't work.
1730       set X `ls -t $srcdir/configure conftest.file`
1731    fi
1732    rm -f conftest.file
1733    if test "$*" != "X $srcdir/configure conftest.file" \
1734       && test "$*" != "X conftest.file $srcdir/configure"; then
1735
1736       # If neither matched, then we have a broken ls.  This can happen
1737       # if, for instance, CONFIG_SHELL is bash and it inherits a
1738       # broken ls alias from the environment.  This has actually
1739       # happened.  Such a system could not be considered "sane".
1740       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1741 alias in your environment" >&5
1742 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1743 alias in your environment" >&2;}
1744    { (exit 1); exit 1; }; }
1745    fi
1746
1747    test "$2" = conftest.file
1748    )
1749 then
1750    # Ok.
1751    :
1752 else
1753    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1754 Check your system clock" >&5
1755 echo "$as_me: error: newly created file is older than distributed files!
1756 Check your system clock" >&2;}
1757    { (exit 1); exit 1; }; }
1758 fi
1759 echo "$as_me:$LINENO: result: yes" >&5
1760 echo "${ECHO_T}yes" >&6
1761 test "$program_prefix" != NONE &&
1762   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1763 # Use a double $ so make ignores it.
1764 test "$program_suffix" != NONE &&
1765   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1766 # Double any \ or $.  echo might interpret backslashes.
1767 # By default was `s,x,x', remove it if useless.
1768 cat <<\_ACEOF >conftest.sed
1769 s/[\\$]/&&/g;s/;s,x,x,$//
1770 _ACEOF
1771 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1772 rm conftest.sed
1773
1774 # expand $ac_aux_dir to an absolute path
1775 am_aux_dir=`cd $ac_aux_dir && pwd`
1776
1777 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1778 # Use eval to expand $SHELL
1779 if eval "$MISSING --run true"; then
1780   am_missing_run="$MISSING --run "
1781 else
1782   am_missing_run=
1783   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1784 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1785 fi
1786
1787 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1788   # We used to keeping the `.' as first argument, in order to
1789   # allow $(mkdir_p) to be used without argument.  As in
1790   #   $(mkdir_p) $(somedir)
1791   # where $(somedir) is conditionally defined.  However this is wrong
1792   # for two reasons:
1793   #  1. if the package is installed by a user who cannot write `.'
1794   #     make install will fail,
1795   #  2. the above comment should most certainly read
1796   #     $(mkdir_p) $(DESTDIR)$(somedir)
1797   #     so it does not work when $(somedir) is undefined and
1798   #     $(DESTDIR) is not.
1799   #  To support the latter case, we have to write
1800   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1801   #  so the `.' trick is pointless.
1802   mkdir_p='mkdir -p --'
1803 else
1804   # On NextStep and OpenStep, the `mkdir' command does not
1805   # recognize any option.  It will interpret all options as
1806   # directories to create, and then abort because `.' already
1807   # exists.
1808   for d in ./-p ./--version;
1809   do
1810     test -d $d && rmdir $d
1811   done
1812   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1813   if test -f "$ac_aux_dir/mkinstalldirs"; then
1814     mkdir_p='$(mkinstalldirs)'
1815   else
1816     mkdir_p='$(install_sh) -d'
1817   fi
1818 fi
1819
1820 for ac_prog in gawk mawk nawk awk
1821 do
1822   # Extract the first word of "$ac_prog", so it can be a program name with args.
1823 set dummy $ac_prog; ac_word=$2
1824 echo "$as_me:$LINENO: checking for $ac_word" >&5
1825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826 if test "${ac_cv_prog_AWK+set}" = set; then
1827   echo $ECHO_N "(cached) $ECHO_C" >&6
1828 else
1829   if test -n "$AWK"; then
1830   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1831 else
1832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833 for as_dir in $PATH
1834 do
1835   IFS=$as_save_IFS
1836   test -z "$as_dir" && as_dir=.
1837   for ac_exec_ext in '' $ac_executable_extensions; do
1838   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839     ac_cv_prog_AWK="$ac_prog"
1840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841     break 2
1842   fi
1843 done
1844 done
1845
1846 fi
1847 fi
1848 AWK=$ac_cv_prog_AWK
1849 if test -n "$AWK"; then
1850   echo "$as_me:$LINENO: result: $AWK" >&5
1851 echo "${ECHO_T}$AWK" >&6
1852 else
1853   echo "$as_me:$LINENO: result: no" >&5
1854 echo "${ECHO_T}no" >&6
1855 fi
1856
1857   test -n "$AWK" && break
1858 done
1859
1860 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1861 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1862 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1863 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1864   echo $ECHO_N "(cached) $ECHO_C" >&6
1865 else
1866   cat >conftest.make <<\_ACEOF
1867 all:
1868         @echo 'ac_maketemp="$(MAKE)"'
1869 _ACEOF
1870 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1871 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1872 if test -n "$ac_maketemp"; then
1873   eval ac_cv_prog_make_${ac_make}_set=yes
1874 else
1875   eval ac_cv_prog_make_${ac_make}_set=no
1876 fi
1877 rm -f conftest.make
1878 fi
1879 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1880   echo "$as_me:$LINENO: result: yes" >&5
1881 echo "${ECHO_T}yes" >&6
1882   SET_MAKE=
1883 else
1884   echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1886   SET_MAKE="MAKE=${MAKE-make}"
1887 fi
1888
1889 rm -rf .tst 2>/dev/null
1890 mkdir .tst 2>/dev/null
1891 if test -d .tst; then
1892   am__leading_dot=.
1893 else
1894   am__leading_dot=_
1895 fi
1896 rmdir .tst 2>/dev/null
1897
1898 # test to see if srcdir already configured
1899 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1900    test -f $srcdir/config.status; then
1901   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1902 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1903    { (exit 1); exit 1; }; }
1904 fi
1905
1906 # test whether we have cygpath
1907 if test -z "$CYGPATH_W"; then
1908   if (cygpath --version) >/dev/null 2>/dev/null; then
1909     CYGPATH_W='cygpath -w'
1910   else
1911     CYGPATH_W=echo
1912   fi
1913 fi
1914
1915
1916 # Define the identity of the package.
1917  PACKAGE=zlib
1918  VERSION=1.1.4
1919
1920
1921 cat >>confdefs.h <<_ACEOF
1922 #define PACKAGE "$PACKAGE"
1923 _ACEOF
1924
1925
1926 cat >>confdefs.h <<_ACEOF
1927 #define VERSION "$VERSION"
1928 _ACEOF
1929
1930 # Some tools Automake needs.
1931
1932 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1933
1934
1935 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1936
1937
1938 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1939
1940
1941 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1942
1943
1944 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1945
1946 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1947
1948 # Installed binaries are usually stripped using `strip' when the user
1949 # run `make install-strip'.  However `strip' might not be the right
1950 # tool to use in cross-compilation environments, therefore Automake
1951 # will honor the `STRIP' environment variable to overrule this program.
1952 if test "$cross_compiling" != no; then
1953   if test -n "$ac_tool_prefix"; then
1954   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1955 set dummy ${ac_tool_prefix}strip; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_STRIP+set}" = set; then
1959   echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961   if test -n "$STRIP"; then
1962   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967   IFS=$as_save_IFS
1968   test -z "$as_dir" && as_dir=.
1969   for ac_exec_ext in '' $ac_executable_extensions; do
1970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973     break 2
1974   fi
1975 done
1976 done
1977
1978 fi
1979 fi
1980 STRIP=$ac_cv_prog_STRIP
1981 if test -n "$STRIP"; then
1982   echo "$as_me:$LINENO: result: $STRIP" >&5
1983 echo "${ECHO_T}$STRIP" >&6
1984 else
1985   echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1987 fi
1988
1989 fi
1990 if test -z "$ac_cv_prog_STRIP"; then
1991   ac_ct_STRIP=$STRIP
1992   # Extract the first word of "strip", so it can be a program name with args.
1993 set dummy strip; ac_word=$2
1994 echo "$as_me:$LINENO: checking for $ac_word" >&5
1995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1997   echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999   if test -n "$ac_ct_STRIP"; then
2000   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2001 else
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 for as_dir in $PATH
2004 do
2005   IFS=$as_save_IFS
2006   test -z "$as_dir" && as_dir=.
2007   for ac_exec_ext in '' $ac_executable_extensions; do
2008   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009     ac_cv_prog_ac_ct_STRIP="strip"
2010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011     break 2
2012   fi
2013 done
2014 done
2015
2016   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2017 fi
2018 fi
2019 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2020 if test -n "$ac_ct_STRIP"; then
2021   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2022 echo "${ECHO_T}$ac_ct_STRIP" >&6
2023 else
2024   echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6
2026 fi
2027
2028   STRIP=$ac_ct_STRIP
2029 else
2030   STRIP="$ac_cv_prog_STRIP"
2031 fi
2032
2033 fi
2034 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2035
2036 # We need awk for the "check" target.  The system "awk" is bad on
2037 # some platforms.
2038 # Always define AMTAR for backward compatibility.
2039
2040 AMTAR=${AMTAR-"${am_missing_run}tar"}
2041
2042 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2043
2044
2045
2046
2047
2048
2049 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2050 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2051     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2052 if test "${enable_maintainer_mode+set}" = set; then
2053   enableval="$enable_maintainer_mode"
2054   USE_MAINTAINER_MODE=$enableval
2055 else
2056   USE_MAINTAINER_MODE=no
2057 fi;
2058   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2059 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2060
2061
2062 if test $USE_MAINTAINER_MODE = yes; then
2063   MAINTAINER_MODE_TRUE=
2064   MAINTAINER_MODE_FALSE='#'
2065 else
2066   MAINTAINER_MODE_TRUE='#'
2067   MAINTAINER_MODE_FALSE=
2068 fi
2069
2070   MAINT=$MAINTAINER_MODE_TRUE
2071
2072
2073
2074
2075 # Check whether --with-target-subdir or --without-target-subdir was given.
2076 if test "${with_target_subdir+set}" = set; then
2077   withval="$with_target_subdir"
2078
2079 fi;
2080
2081 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2082    COMPPATH=.
2083 else
2084    COMPPATH=..
2085 fi
2086
2087
2088
2089 # Check whether --with-cross-host or --without-cross-host was given.
2090 if test "${with_cross_host+set}" = set; then
2091   withval="$with_cross_host"
2092
2093 fi;
2094
2095 # Check whether --enable-multilib or --disable-multilib was given.
2096 if test "${enable_multilib+set}" = set; then
2097   enableval="$enable_multilib"
2098   case "${enableval}" in
2099   yes) multilib=yes ;;
2100   no)  multilib=no ;;
2101   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2102 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2103    { (exit 1); exit 1; }; } ;;
2104  esac
2105 else
2106   test -z "$with_target_subdir" && multilib=no || multilib=yes
2107 fi;
2108
2109 # Check whether --with-system-zlib or --without-system-zlib was given.
2110 if test "${with_system_zlib+set}" = set; then
2111   withval="$with_system_zlib"
2112
2113 fi;
2114
2115 # Make sure we don't test executables when making cross-tools.
2116
2117
2118 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2119 # We must force CC to /not/ be precious variables; otherwise
2120 # the wrong, non-multilib-adjusted value will be used in multilibs.
2121 # As a side effect, we have to subst CFLAGS ourselves.
2122
2123
2124
2125 ac_ext=c
2126 ac_cpp='$CPP $CPPFLAGS'
2127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2130 if test -n "$ac_tool_prefix"; then
2131   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2132 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135 if test "${ac_cv_prog_CC+set}" = set; then
2136   echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138   if test -n "$CC"; then
2139   ac_cv_prog_CC="$CC" # Let the user override the test.
2140 else
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144   IFS=$as_save_IFS
2145   test -z "$as_dir" && as_dir=.
2146   for ac_exec_ext in '' $ac_executable_extensions; do
2147   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150     break 2
2151   fi
2152 done
2153 done
2154
2155 fi
2156 fi
2157 CC=$ac_cv_prog_CC
2158 if test -n "$CC"; then
2159   echo "$as_me:$LINENO: result: $CC" >&5
2160 echo "${ECHO_T}$CC" >&6
2161 else
2162   echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6
2164 fi
2165
2166 fi
2167 if test -z "$ac_cv_prog_CC"; then
2168   ac_ct_CC=$CC
2169   # Extract the first word of "gcc", so it can be a program name with args.
2170 set dummy gcc; ac_word=$2
2171 echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2174   echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176   if test -n "$ac_ct_CC"; then
2177   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2178 else
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 for as_dir in $PATH
2181 do
2182   IFS=$as_save_IFS
2183   test -z "$as_dir" && as_dir=.
2184   for ac_exec_ext in '' $ac_executable_extensions; do
2185   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2186     ac_cv_prog_ac_ct_CC="gcc"
2187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188     break 2
2189   fi
2190 done
2191 done
2192
2193 fi
2194 fi
2195 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2196 if test -n "$ac_ct_CC"; then
2197   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2198 echo "${ECHO_T}$ac_ct_CC" >&6
2199 else
2200   echo "$as_me:$LINENO: result: no" >&5
2201 echo "${ECHO_T}no" >&6
2202 fi
2203
2204   CC=$ac_ct_CC
2205 else
2206   CC="$ac_cv_prog_CC"
2207 fi
2208
2209 if test -z "$CC"; then
2210   if test -n "$ac_tool_prefix"; then
2211   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2212 set dummy ${ac_tool_prefix}cc; ac_word=$2
2213 echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2215 if test "${ac_cv_prog_CC+set}" = set; then
2216   echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218   if test -n "$CC"; then
2219   ac_cv_prog_CC="$CC" # Let the user override the test.
2220 else
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2223 do
2224   IFS=$as_save_IFS
2225   test -z "$as_dir" && as_dir=.
2226   for ac_exec_ext in '' $ac_executable_extensions; do
2227   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2228     ac_cv_prog_CC="${ac_tool_prefix}cc"
2229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230     break 2
2231   fi
2232 done
2233 done
2234
2235 fi
2236 fi
2237 CC=$ac_cv_prog_CC
2238 if test -n "$CC"; then
2239   echo "$as_me:$LINENO: result: $CC" >&5
2240 echo "${ECHO_T}$CC" >&6
2241 else
2242   echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6
2244 fi
2245
2246 fi
2247 if test -z "$ac_cv_prog_CC"; then
2248   ac_ct_CC=$CC
2249   # Extract the first word of "cc", so it can be a program name with args.
2250 set dummy cc; ac_word=$2
2251 echo "$as_me:$LINENO: checking for $ac_word" >&5
2252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2253 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2254   echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256   if test -n "$ac_ct_CC"; then
2257   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2258 else
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2261 do
2262   IFS=$as_save_IFS
2263   test -z "$as_dir" && as_dir=.
2264   for ac_exec_ext in '' $ac_executable_extensions; do
2265   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2266     ac_cv_prog_ac_ct_CC="cc"
2267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268     break 2
2269   fi
2270 done
2271 done
2272
2273 fi
2274 fi
2275 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2276 if test -n "$ac_ct_CC"; then
2277   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2278 echo "${ECHO_T}$ac_ct_CC" >&6
2279 else
2280   echo "$as_me:$LINENO: result: no" >&5
2281 echo "${ECHO_T}no" >&6
2282 fi
2283
2284   CC=$ac_ct_CC
2285 else
2286   CC="$ac_cv_prog_CC"
2287 fi
2288
2289 fi
2290 if test -z "$CC"; then
2291   # Extract the first word of "cc", so it can be a program name with args.
2292 set dummy cc; ac_word=$2
2293 echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2295 if test "${ac_cv_prog_CC+set}" = set; then
2296   echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298   if test -n "$CC"; then
2299   ac_cv_prog_CC="$CC" # Let the user override the test.
2300 else
2301   ac_prog_rejected=no
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2304 do
2305   IFS=$as_save_IFS
2306   test -z "$as_dir" && as_dir=.
2307   for ac_exec_ext in '' $ac_executable_extensions; do
2308   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2309     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2310        ac_prog_rejected=yes
2311        continue
2312      fi
2313     ac_cv_prog_CC="cc"
2314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2315     break 2
2316   fi
2317 done
2318 done
2319
2320 if test $ac_prog_rejected = yes; then
2321   # We found a bogon in the path, so make sure we never use it.
2322   set dummy $ac_cv_prog_CC
2323   shift
2324   if test $# != 0; then
2325     # We chose a different compiler from the bogus one.
2326     # However, it has the same basename, so the bogon will be chosen
2327     # first if we set CC to just the basename; use the full file name.
2328     shift
2329     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2330   fi
2331 fi
2332 fi
2333 fi
2334 CC=$ac_cv_prog_CC
2335 if test -n "$CC"; then
2336   echo "$as_me:$LINENO: result: $CC" >&5
2337 echo "${ECHO_T}$CC" >&6
2338 else
2339   echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6
2341 fi
2342
2343 fi
2344 if test -z "$CC"; then
2345   if test -n "$ac_tool_prefix"; then
2346   for ac_prog in cl
2347   do
2348     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2350 echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2352 if test "${ac_cv_prog_CC+set}" = set; then
2353   echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355   if test -n "$CC"; then
2356   ac_cv_prog_CC="$CC" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2360 do
2361   IFS=$as_save_IFS
2362   test -z "$as_dir" && as_dir=.
2363   for ac_exec_ext in '' $ac_executable_extensions; do
2364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2365     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367     break 2
2368   fi
2369 done
2370 done
2371
2372 fi
2373 fi
2374 CC=$ac_cv_prog_CC
2375 if test -n "$CC"; then
2376   echo "$as_me:$LINENO: result: $CC" >&5
2377 echo "${ECHO_T}$CC" >&6
2378 else
2379   echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6
2381 fi
2382
2383     test -n "$CC" && break
2384   done
2385 fi
2386 if test -z "$CC"; then
2387   ac_ct_CC=$CC
2388   for ac_prog in cl
2389 do
2390   # Extract the first word of "$ac_prog", so it can be a program name with args.
2391 set dummy $ac_prog; ac_word=$2
2392 echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2394 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2395   echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397   if test -n "$ac_ct_CC"; then
2398   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2399 else
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403   IFS=$as_save_IFS
2404   test -z "$as_dir" && as_dir=.
2405   for ac_exec_ext in '' $ac_executable_extensions; do
2406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2407     ac_cv_prog_ac_ct_CC="$ac_prog"
2408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409     break 2
2410   fi
2411 done
2412 done
2413
2414 fi
2415 fi
2416 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2417 if test -n "$ac_ct_CC"; then
2418   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2419 echo "${ECHO_T}$ac_ct_CC" >&6
2420 else
2421   echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6
2423 fi
2424
2425   test -n "$ac_ct_CC" && break
2426 done
2427
2428   CC=$ac_ct_CC
2429 fi
2430
2431 fi
2432
2433
2434 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2435 See \`config.log' for more details." >&5
2436 echo "$as_me: error: no acceptable C compiler found in \$PATH
2437 See \`config.log' for more details." >&2;}
2438    { (exit 1); exit 1; }; }
2439
2440 # Provide some information about the compiler.
2441 echo "$as_me:$LINENO:" \
2442      "checking for C compiler version" >&5
2443 ac_compiler=`set X $ac_compile; echo $2`
2444 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2445   (eval $ac_compiler --version </dev/null >&5) 2>&5
2446   ac_status=$?
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); }
2449 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2450   (eval $ac_compiler -v </dev/null >&5) 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); }
2454 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2455   (eval $ac_compiler -V </dev/null >&5) 2>&5
2456   ac_status=$?
2457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458   (exit $ac_status); }
2459
2460 cat >conftest.$ac_ext <<_ACEOF
2461 /* confdefs.h.  */
2462 _ACEOF
2463 cat confdefs.h >>conftest.$ac_ext
2464 cat >>conftest.$ac_ext <<_ACEOF
2465 /* end confdefs.h.  */
2466
2467 int
2468 main ()
2469 {
2470
2471   ;
2472   return 0;
2473 }
2474 _ACEOF
2475 # FIXME: Cleanup?
2476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2477   (eval $ac_link) 2>&5
2478   ac_status=$?
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); }; then
2481   gcc_no_link=no
2482 else
2483   gcc_no_link=yes
2484 fi
2485
2486 if test x$gcc_no_link = xyes; then
2487   # Setting cross_compile will disable run tests; it will
2488   # also disable AC_CHECK_FILE but that's generally
2489   # correct if we can't link.
2490   cross_compiling=yes
2491   EXEEXT=
2492 else
2493   cat >conftest.$ac_ext <<_ACEOF
2494 /* confdefs.h.  */
2495 _ACEOF
2496 cat confdefs.h >>conftest.$ac_ext
2497 cat >>conftest.$ac_ext <<_ACEOF
2498 /* end confdefs.h.  */
2499
2500 int
2501 main ()
2502 {
2503
2504   ;
2505   return 0;
2506 }
2507 _ACEOF
2508 ac_clean_files_save=$ac_clean_files
2509 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2510 # Try to create an executable without -o first, disregard a.out.
2511 # It will help us diagnose broken compilers, and finding out an intuition
2512 # of exeext.
2513 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2514 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2515 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2516 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2517   (eval $ac_link_default) 2>&5
2518   ac_status=$?
2519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520   (exit $ac_status); }; then
2521   # Find the output, starting from the most likely.  This scheme is
2522 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2523 # resort.
2524
2525 # Be careful to initialize this variable, since it used to be cached.
2526 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2527 ac_cv_exeext=
2528 # b.out is created by i960 compilers.
2529 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2530 do
2531   test -f "$ac_file" || continue
2532   case $ac_file in
2533     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2534         ;;
2535     conftest.$ac_ext )
2536         # This is the source file.
2537         ;;
2538     [ab].out )
2539         # We found the default executable, but exeext='' is most
2540         # certainly right.
2541         break;;
2542     *.* )
2543         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2544         # FIXME: I believe we export ac_cv_exeext for Libtool,
2545         # but it would be cool to find out if it's true.  Does anybody
2546         # maintain Libtool? --akim.
2547         export ac_cv_exeext
2548         break;;
2549     * )
2550         break;;
2551   esac
2552 done
2553 else
2554   echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2556
2557 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2558 See \`config.log' for more details." >&5
2559 echo "$as_me: error: C compiler cannot create executables
2560 See \`config.log' for more details." >&2;}
2561    { (exit 77); exit 77; }; }
2562 fi
2563
2564 ac_exeext=$ac_cv_exeext
2565 echo "$as_me:$LINENO: result: $ac_file" >&5
2566 echo "${ECHO_T}$ac_file" >&6
2567
2568 # Check the compiler produces executables we can run.  If not, either
2569 # the compiler is broken, or we cross compile.
2570 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2571 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2572 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2573 # If not cross compiling, check that we can run a simple program.
2574 if test "$cross_compiling" != yes; then
2575   if { ac_try='./$ac_file'
2576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577   (eval $ac_try) 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); }; }; then
2581     cross_compiling=no
2582   else
2583     if test "$cross_compiling" = maybe; then
2584         cross_compiling=yes
2585     else
2586         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2587 If you meant to cross compile, use \`--host'.
2588 See \`config.log' for more details." >&5
2589 echo "$as_me: error: cannot run C compiled programs.
2590 If you meant to cross compile, use \`--host'.
2591 See \`config.log' for more details." >&2;}
2592    { (exit 1); exit 1; }; }
2593     fi
2594   fi
2595 fi
2596 echo "$as_me:$LINENO: result: yes" >&5
2597 echo "${ECHO_T}yes" >&6
2598
2599 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2600 ac_clean_files=$ac_clean_files_save
2601 # Check the compiler produces executables we can run.  If not, either
2602 # the compiler is broken, or we cross compile.
2603 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2604 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2605 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2606 echo "${ECHO_T}$cross_compiling" >&6
2607
2608 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2609 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2611   (eval $ac_link) 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; then
2615   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2616 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2617 # work properly (i.e., refer to `conftest.exe'), while it won't with
2618 # `rm'.
2619 for ac_file in conftest.exe conftest conftest.*; do
2620   test -f "$ac_file" || continue
2621   case $ac_file in
2622     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2623     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2624           export ac_cv_exeext
2625           break;;
2626     * ) break;;
2627   esac
2628 done
2629 else
2630   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2631 See \`config.log' for more details." >&5
2632 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2633 See \`config.log' for more details." >&2;}
2634    { (exit 1); exit 1; }; }
2635 fi
2636
2637 rm -f conftest$ac_cv_exeext
2638 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2639 echo "${ECHO_T}$ac_cv_exeext" >&6
2640
2641 rm -f conftest.$ac_ext
2642 EXEEXT=$ac_cv_exeext
2643 ac_exeext=$EXEEXT
2644 fi
2645 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2646 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2647 if test "${ac_cv_objext+set}" = set; then
2648   echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650   cat >conftest.$ac_ext <<_ACEOF
2651 /* confdefs.h.  */
2652 _ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h.  */
2656
2657 int
2658 main ()
2659 {
2660
2661   ;
2662   return 0;
2663 }
2664 _ACEOF
2665 rm -f conftest.o conftest.obj
2666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667   (eval $ac_compile) 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }; then
2671   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2672   case $ac_file in
2673     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2674     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2675        break;;
2676   esac
2677 done
2678 else
2679   echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2683 See \`config.log' for more details." >&5
2684 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2685 See \`config.log' for more details." >&2;}
2686    { (exit 1); exit 1; }; }
2687 fi
2688
2689 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2690 fi
2691 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2692 echo "${ECHO_T}$ac_cv_objext" >&6
2693 OBJEXT=$ac_cv_objext
2694 ac_objext=$OBJEXT
2695 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2696 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2697 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2698   echo $ECHO_N "(cached) $ECHO_C" >&6
2699 else
2700   cat >conftest.$ac_ext <<_ACEOF
2701 /* confdefs.h.  */
2702 _ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h.  */
2706
2707 int
2708 main ()
2709 {
2710 #ifndef __GNUC__
2711        choke me
2712 #endif
2713
2714   ;
2715   return 0;
2716 }
2717 _ACEOF
2718 rm -f conftest.$ac_objext
2719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2720   (eval $ac_compile) 2>conftest.er1
2721   ac_status=$?
2722   grep -v '^ *+' conftest.er1 >conftest.err
2723   rm -f conftest.er1
2724   cat conftest.err >&5
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); } &&
2727          { ac_try='test -z "$ac_c_werror_flag"
2728                          || test ! -s conftest.err'
2729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730   (eval $ac_try) 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; } &&
2734          { ac_try='test -s conftest.$ac_objext'
2735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736   (eval $ac_try) 2>&5
2737   ac_status=$?
2738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739   (exit $ac_status); }; }; then
2740   ac_compiler_gnu=yes
2741 else
2742   echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2744
2745 ac_compiler_gnu=no
2746 fi
2747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2748 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2749
2750 fi
2751 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2752 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2753 GCC=`test $ac_compiler_gnu = yes && echo yes`
2754 ac_test_CFLAGS=${CFLAGS+set}
2755 ac_save_CFLAGS=$CFLAGS
2756 CFLAGS="-g"
2757 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2758 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2759 if test "${ac_cv_prog_cc_g+set}" = set; then
2760   echo $ECHO_N "(cached) $ECHO_C" >&6
2761 else
2762   cat >conftest.$ac_ext <<_ACEOF
2763 /* confdefs.h.  */
2764 _ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h.  */
2768
2769 int
2770 main ()
2771 {
2772
2773   ;
2774   return 0;
2775 }
2776 _ACEOF
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779   (eval $ac_compile) 2>conftest.er1
2780   ac_status=$?
2781   grep -v '^ *+' conftest.er1 >conftest.err
2782   rm -f conftest.er1
2783   cat conftest.err >&5
2784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785   (exit $ac_status); } &&
2786          { ac_try='test -z "$ac_c_werror_flag"
2787                          || test ! -s conftest.err'
2788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789   (eval $ac_try) 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); }; } &&
2793          { ac_try='test -s conftest.$ac_objext'
2794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795   (eval $ac_try) 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }; }; then
2799   ac_cv_prog_cc_g=yes
2800 else
2801   echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2803
2804 ac_cv_prog_cc_g=no
2805 fi
2806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2807 fi
2808 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2809 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2810 if test "$ac_test_CFLAGS" = set; then
2811   CFLAGS=$ac_save_CFLAGS
2812 elif test $ac_cv_prog_cc_g = yes; then
2813   if test "$GCC" = yes; then
2814     CFLAGS="-g -O2"
2815   else
2816     CFLAGS="-g"
2817   fi
2818 else
2819   if test "$GCC" = yes; then
2820     CFLAGS="-O2"
2821   else
2822     CFLAGS=
2823   fi
2824 fi
2825 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2826 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2827 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2828   echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
2830   ac_cv_prog_cc_stdc=no
2831 ac_save_CC=$CC
2832 cat >conftest.$ac_ext <<_ACEOF
2833 /* confdefs.h.  */
2834 _ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h.  */
2838 #include <stdarg.h>
2839 #include <stdio.h>
2840 #include <sys/types.h>
2841 #include <sys/stat.h>
2842 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2843 struct buf { int x; };
2844 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2845 static char *e (p, i)
2846      char **p;
2847      int i;
2848 {
2849   return p[i];
2850 }
2851 static char *f (char * (*g) (char **, int), char **p, ...)
2852 {
2853   char *s;
2854   va_list v;
2855   va_start (v,p);
2856   s = g (p, va_arg (v,int));
2857   va_end (v);
2858   return s;
2859 }
2860
2861 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2862    function prototypes and stuff, but not '\xHH' hex character constants.
2863    These don't provoke an error unfortunately, instead are silently treated
2864    as 'x'.  The following induces an error, until -std1 is added to get
2865    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2866    array size at least.  It's necessary to write '\x00'==0 to get something
2867    that's true only with -std1.  */
2868 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2869
2870 int test (int i, double x);
2871 struct s1 {int (*f) (int a);};
2872 struct s2 {int (*f) (double a);};
2873 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2874 int argc;
2875 char **argv;
2876 int
2877 main ()
2878 {
2879 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2880   ;
2881   return 0;
2882 }
2883 _ACEOF
2884 # Don't try gcc -ansi; that turns off useful extensions and
2885 # breaks some systems' header files.
2886 # AIX                   -qlanglvl=ansi
2887 # Ultrix and OSF/1      -std1
2888 # HP-UX 10.20 and later -Ae
2889 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2890 # SVR4                  -Xc -D__EXTENSIONS__
2891 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2892 do
2893   CC="$ac_save_CC $ac_arg"
2894   rm -f conftest.$ac_objext
2895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2896   (eval $ac_compile) 2>conftest.er1
2897   ac_status=$?
2898   grep -v '^ *+' conftest.er1 >conftest.err
2899   rm -f conftest.er1
2900   cat conftest.err >&5
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); } &&
2903          { ac_try='test -z "$ac_c_werror_flag"
2904                          || test ! -s conftest.err'
2905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906   (eval $ac_try) 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); }; } &&
2910          { ac_try='test -s conftest.$ac_objext'
2911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912   (eval $ac_try) 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }; }; then
2916   ac_cv_prog_cc_stdc=$ac_arg
2917 break
2918 else
2919   echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2921
2922 fi
2923 rm -f conftest.err conftest.$ac_objext
2924 done
2925 rm -f conftest.$ac_ext conftest.$ac_objext
2926 CC=$ac_save_CC
2927
2928 fi
2929
2930 case "x$ac_cv_prog_cc_stdc" in
2931   x|xno)
2932     echo "$as_me:$LINENO: result: none needed" >&5
2933 echo "${ECHO_T}none needed" >&6 ;;
2934   *)
2935     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2936 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2937     CC="$CC $ac_cv_prog_cc_stdc" ;;
2938 esac
2939
2940 # Some people use a C++ compiler to compile C.  Since we use `exit',
2941 # in C++ we need to declare it.  In case someone uses the same compiler
2942 # for both compiling C and C++ we need to have the C++ compiler decide
2943 # the declaration of exit, since it's the most demanding environment.
2944 cat >conftest.$ac_ext <<_ACEOF
2945 #ifndef __cplusplus
2946   choke me
2947 #endif
2948 _ACEOF
2949 rm -f conftest.$ac_objext
2950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2951   (eval $ac_compile) 2>conftest.er1
2952   ac_status=$?
2953   grep -v '^ *+' conftest.er1 >conftest.err
2954   rm -f conftest.er1
2955   cat conftest.err >&5
2956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957   (exit $ac_status); } &&
2958          { ac_try='test -z "$ac_c_werror_flag"
2959                          || test ! -s conftest.err'
2960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961   (eval $ac_try) 2>&5
2962   ac_status=$?
2963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964   (exit $ac_status); }; } &&
2965          { ac_try='test -s conftest.$ac_objext'
2966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967   (eval $ac_try) 2>&5
2968   ac_status=$?
2969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970   (exit $ac_status); }; }; then
2971   for ac_declaration in \
2972    '' \
2973    'extern "C" void std::exit (int) throw (); using std::exit;' \
2974    'extern "C" void std::exit (int); using std::exit;' \
2975    'extern "C" void exit (int) throw ();' \
2976    'extern "C" void exit (int);' \
2977    'void exit (int);'
2978 do
2979   cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h.  */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h.  */
2985 $ac_declaration
2986 #include <stdlib.h>
2987 int
2988 main ()
2989 {
2990 exit (42);
2991   ;
2992   return 0;
2993 }
2994 _ACEOF
2995 rm -f conftest.$ac_objext
2996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2997   (eval $ac_compile) 2>conftest.er1
2998   ac_status=$?
2999   grep -v '^ *+' conftest.er1 >conftest.err
3000   rm -f conftest.er1
3001   cat conftest.err >&5
3002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003   (exit $ac_status); } &&
3004          { ac_try='test -z "$ac_c_werror_flag"
3005                          || test ! -s conftest.err'
3006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007   (eval $ac_try) 2>&5
3008   ac_status=$?
3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010   (exit $ac_status); }; } &&
3011          { ac_try='test -s conftest.$ac_objext'
3012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013   (eval $ac_try) 2>&5
3014   ac_status=$?
3015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016   (exit $ac_status); }; }; then
3017   :
3018 else
3019   echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3021
3022 continue
3023 fi
3024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3025   cat >conftest.$ac_ext <<_ACEOF
3026 /* confdefs.h.  */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h.  */
3031 $ac_declaration
3032 int
3033 main ()
3034 {
3035 exit (42);
3036   ;
3037   return 0;
3038 }
3039 _ACEOF
3040 rm -f conftest.$ac_objext
3041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3042   (eval $ac_compile) 2>conftest.er1
3043   ac_status=$?
3044   grep -v '^ *+' conftest.er1 >conftest.err
3045   rm -f conftest.er1
3046   cat conftest.err >&5
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); } &&
3049          { ac_try='test -z "$ac_c_werror_flag"
3050                          || test ! -s conftest.err'
3051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052   (eval $ac_try) 2>&5
3053   ac_status=$?
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); }; } &&
3056          { ac_try='test -s conftest.$ac_objext'
3057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058   (eval $ac_try) 2>&5
3059   ac_status=$?
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); }; }; then
3062   break
3063 else
3064   echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3066
3067 fi
3068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3069 done
3070 rm -f conftest*
3071 if test -n "$ac_declaration"; then
3072   echo '#ifdef __cplusplus' >>confdefs.h
3073   echo $ac_declaration      >>confdefs.h
3074   echo '#endif'             >>confdefs.h
3075 fi
3076
3077 else
3078   echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3080
3081 fi
3082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3083 ac_ext=c
3084 ac_cpp='$CPP $CPPFLAGS'
3085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3088 DEPDIR="${am__leading_dot}deps"
3089
3090           ac_config_commands="$ac_config_commands depfiles"
3091
3092
3093 am_make=${MAKE-make}
3094 cat > confinc << 'END'
3095 am__doit:
3096         @echo done
3097 .PHONY: am__doit
3098 END
3099 # If we don't find an include directive, just comment out the code.
3100 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3101 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3102 am__include="#"
3103 am__quote=
3104 _am_result=none
3105 # First try GNU make style include.
3106 echo "include confinc" > confmf
3107 # We grep out `Entering directory' and `Leaving directory'
3108 # messages which can occur if `w' ends up in MAKEFLAGS.
3109 # In particular we don't look at `^make:' because GNU make might
3110 # be invoked under some other name (usually "gmake"), in which
3111 # case it prints its new name instead of `make'.
3112 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3113    am__include=include
3114    am__quote=
3115    _am_result=GNU
3116 fi
3117 # Now try BSD make style include.
3118 if test "$am__include" = "#"; then
3119    echo '.include "confinc"' > confmf
3120    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3121       am__include=.include
3122       am__quote="\""
3123       _am_result=BSD
3124    fi
3125 fi
3126
3127
3128 echo "$as_me:$LINENO: result: $_am_result" >&5
3129 echo "${ECHO_T}$_am_result" >&6
3130 rm -f confinc confmf
3131
3132 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3133 if test "${enable_dependency_tracking+set}" = set; then
3134   enableval="$enable_dependency_tracking"
3135
3136 fi;
3137 if test "x$enable_dependency_tracking" != xno; then
3138   am_depcomp="$ac_aux_dir/depcomp"
3139   AMDEPBACKSLASH='\'
3140 fi
3141
3142
3143 if test "x$enable_dependency_tracking" != xno; then
3144   AMDEP_TRUE=
3145   AMDEP_FALSE='#'
3146 else
3147   AMDEP_TRUE='#'
3148   AMDEP_FALSE=
3149 fi
3150
3151
3152
3153
3154 depcc="$CC"   am_compiler_list=
3155
3156 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3157 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3158 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3159   echo $ECHO_N "(cached) $ECHO_C" >&6
3160 else
3161   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3162   # We make a subdir and do the tests there.  Otherwise we can end up
3163   # making bogus files that we don't know about and never remove.  For
3164   # instance it was reported that on HP-UX the gcc test will end up
3165   # making a dummy file named `D' -- because `-MD' means `put the output
3166   # in D'.
3167   mkdir conftest.dir
3168   # Copy depcomp to subdir because otherwise we won't find it if we're
3169   # using a relative directory.
3170   cp "$am_depcomp" conftest.dir
3171   cd conftest.dir
3172   # We will build objects and dependencies in a subdirectory because
3173   # it helps to detect inapplicable dependency modes.  For instance
3174   # both Tru64's cc and ICC support -MD to output dependencies as a
3175   # side effect of compilation, but ICC will put the dependencies in
3176   # the current directory while Tru64 will put them in the object
3177   # directory.
3178   mkdir sub
3179
3180   am_cv_CC_dependencies_compiler_type=none
3181   if test "$am_compiler_list" = ""; then
3182      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3183   fi
3184   for depmode in $am_compiler_list; do
3185     # Setup a source with many dependencies, because some compilers
3186     # like to wrap large dependency lists on column 80 (with \), and
3187     # we should not choose a depcomp mode which is confused by this.
3188     #
3189     # We need to recreate these files for each test, as the compiler may
3190     # overwrite some of them when testing with obscure command lines.
3191     # This happens at least with the AIX C compiler.
3192     : > sub/conftest.c
3193     for i in 1 2 3 4 5 6; do
3194       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3195       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3196       # Solaris 8's {/usr,}/bin/sh.
3197       touch sub/conftst$i.h
3198     done
3199     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3200
3201     case $depmode in
3202     nosideeffect)
3203       # after this tag, mechanisms are not by side-effect, so they'll
3204       # only be used when explicitly requested
3205       if test "x$enable_dependency_tracking" = xyes; then
3206         continue
3207       else
3208         break
3209       fi
3210       ;;
3211     none) break ;;
3212     esac
3213     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3214     # mode.  It turns out that the SunPro C++ compiler does not properly
3215     # handle `-M -o', and we need to detect this.
3216     if depmode=$depmode \
3217        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3218        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3219        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3220          >/dev/null 2>conftest.err &&
3221        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3222        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3223        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3224       # icc doesn't choke on unknown options, it will just issue warnings
3225       # or remarks (even with -Werror).  So we grep stderr for any message
3226       # that says an option was ignored or not supported.
3227       # When given -MP, icc 7.0 and 7.1 complain thusly:
3228       #   icc: Command line warning: ignoring option '-M'; no argument required
3229       # The diagnosis changed in icc 8.0:
3230       #   icc: Command line remark: option '-MP' not supported
3231       if (grep 'ignoring option' conftest.err ||
3232           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3233         am_cv_CC_dependencies_compiler_type=$depmode
3234         break
3235       fi
3236     fi
3237   done
3238
3239   cd ..
3240   rm -rf conftest.dir
3241 else
3242   am_cv_CC_dependencies_compiler_type=none
3243 fi
3244
3245 fi
3246 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3247 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3248 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3249
3250
3251
3252 if
3253   test "x$enable_dependency_tracking" != xno \
3254   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3255   am__fastdepCC_TRUE=
3256   am__fastdepCC_FALSE='#'
3257 else
3258   am__fastdepCC_TRUE='#'
3259   am__fastdepCC_FALSE=
3260 fi
3261
3262
3263
3264
3265
3266
3267
3268
3269 macro_version='2.1a'
3270 macro_revision='1.2435'
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283 ltmain="$ac_aux_dir/ltmain.sh"
3284
3285 # Set options
3286
3287 enable_dlopen=no
3288
3289
3290 enable_win32_dll=no
3291
3292
3293 # Check whether --enable-shared or --disable-shared was given.
3294 if test "${enable_shared+set}" = set; then
3295   enableval="$enable_shared"
3296   p=${PACKAGE-default}
3297     case $enableval in
3298     yes) enable_shared=yes ;;
3299     no) enable_shared=no ;;
3300     *)
3301       enable_shared=no
3302       # Look at the argument we got.  We use all the common list separators.
3303       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3304       for pkg in $enableval; do
3305         IFS="$lt_save_ifs"
3306         if test "X$pkg" = "X$p"; then
3307           enable_shared=yes
3308         fi
3309       done
3310       IFS="$lt_save_ifs"
3311       ;;
3312     esac
3313 else
3314   enable_shared=yes
3315 fi;
3316
3317
3318
3319
3320
3321
3322
3323
3324 # Check whether --enable-static or --disable-static was given.
3325 if test "${enable_static+set}" = set; then
3326   enableval="$enable_static"
3327   p=${PACKAGE-default}
3328     case $enableval in
3329     yes) enable_static=yes ;;
3330     no) enable_static=no ;;
3331     *)
3332      enable_static=no
3333       # Look at the argument we got.  We use all the common list separators.
3334       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3335       for pkg in $enableval; do
3336         IFS="$lt_save_ifs"
3337         if test "X$pkg" = "X$p"; then
3338           enable_static=yes
3339         fi
3340       done
3341       IFS="$lt_save_ifs"
3342       ;;
3343     esac
3344 else
3345   enable_static=yes
3346 fi;
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356 # Check whether --with-pic or --without-pic was given.
3357 if test "${with_pic+set}" = set; then
3358   withval="$with_pic"
3359   pic_mode="$withval"
3360 else
3361   pic_mode=default
3362 fi;
3363
3364 test -z "$pic_mode" && pic_mode=default
3365
3366
3367
3368
3369
3370
3371
3372 # Check whether --enable-fast-install or --disable-fast-install was given.
3373 if test "${enable_fast_install+set}" = set; then
3374   enableval="$enable_fast_install"
3375   p=${PACKAGE-default}
3376     case $enableval in
3377     yes) enable_fast_install=yes ;;
3378     no) enable_fast_install=no ;;
3379     *)
3380       enable_fast_install=no
3381       # Look at the argument we got.  We use all the common list separators.
3382       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3383       for pkg in $enableval; do
3384         IFS="$lt_save_ifs"
3385         if test "X$pkg" = "X$p"; then
3386           enable_fast_install=yes
3387         fi
3388       done
3389       IFS="$lt_save_ifs"
3390       ;;
3391     esac
3392 else
3393   enable_fast_install=yes
3394 fi;
3395
3396
3397
3398
3399
3400
3401
3402
3403 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3404 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3405 if test "${lt_cv_path_SED+set}" = set; then
3406   echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408   # Loop through the user's path and test for sed and gsed.
3409 # Then use that list of sed's as ones to test for truncation.
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 for as_dir in $PATH
3412 do
3413   IFS=$as_save_IFS
3414   test -z "$as_dir" && as_dir=.
3415   for lt_ac_prog in sed gsed; do
3416     for ac_exec_ext in '' $ac_executable_extensions; do
3417       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3418         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3419       fi
3420     done
3421   done
3422 done
3423 IFS=$as_save_IFS
3424 lt_ac_max=0
3425 lt_ac_count=0
3426 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3427 # along with /bin/sed that truncates output.
3428 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3429   test ! -f $lt_ac_sed && continue
3430   cat /dev/null > conftest.in
3431   lt_ac_count=0
3432   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3433   # Check for GNU sed and select it if it is found.
3434   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3435     lt_cv_path_SED=$lt_ac_sed
3436     break
3437   fi
3438   while true; do
3439     cat conftest.in conftest.in >conftest.tmp
3440     mv conftest.tmp conftest.in
3441     cp conftest.in conftest.nl
3442     echo >>conftest.nl
3443     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3444     cmp -s conftest.out conftest.nl || break
3445     # 10000 chars as input seems more than enough
3446     test $lt_ac_count -gt 10 && break
3447     lt_ac_count=`expr $lt_ac_count + 1`
3448     if test $lt_ac_count -gt $lt_ac_max; then
3449       lt_ac_max=$lt_ac_count
3450       lt_cv_path_SED=$lt_ac_sed
3451     fi
3452   done
3453 done
3454
3455 fi
3456
3457 SED=$lt_cv_path_SED
3458
3459 echo "$as_me:$LINENO: result: $SED" >&5
3460 echo "${ECHO_T}$SED" >&6
3461
3462 test -z "$SED" && SED=sed
3463 Xsed="$SED -e 1s/^X//"
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475 echo "$as_me:$LINENO: checking for egrep" >&5
3476 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3477 if test "${ac_cv_prog_egrep+set}" = set; then
3478   echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3481     then ac_cv_prog_egrep='grep -E'
3482     else ac_cv_prog_egrep='egrep'
3483     fi
3484 fi
3485 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3486 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3487  EGREP=$ac_cv_prog_egrep
3488
3489
3490 echo "$as_me:$LINENO: checking for fgrep" >&5
3491 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3492 if test "${ac_cv_prog_fgrep+set}" = set; then
3493   echo $ECHO_N "(cached) $ECHO_C" >&6
3494 else
3495   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3496     then ac_cv_prog_fgrep='grep -F'
3497     else ac_cv_prog_fgrep='fgrep'
3498     fi
3499 fi
3500 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3501 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3502  FGREP=$ac_cv_prog_fgrep
3503
3504
3505 test -z "$GREP" && GREP=grep
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3526 if test "${with_gnu_ld+set}" = set; then
3527   withval="$with_gnu_ld"
3528   test "$withval" = no || with_gnu_ld=yes
3529 else
3530   with_gnu_ld=no
3531 fi;
3532 ac_prog=ld
3533 if test "$GCC" = yes; then
3534   # Check if gcc -print-prog-name=ld gives a path.
3535   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3536 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3537   case $host in
3538   *-*-mingw*)
3539     # gcc leaves a trailing carriage return which upsets mingw
3540     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3541   *)
3542     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3543   esac
3544   case $ac_prog in
3545     # Accept absolute paths.
3546     [\\/]* | ?:[\\/]*)
3547       re_direlt='/[^/][^/]*/\.\./'
3548       # Canonicalize the pathname of ld
3549       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3550       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3551         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3552       done
3553       test -z "$LD" && LD="$ac_prog"
3554       ;;
3555   "")
3556     # If it fails, then pretend we aren't using GCC.
3557     ac_prog=ld
3558     ;;
3559   *)
3560     # If it is relative, then search for the first ld in PATH.
3561     with_gnu_ld=unknown
3562     ;;
3563   esac
3564 elif test "$with_gnu_ld" = yes; then
3565   echo "$as_me:$LINENO: checking for GNU ld" >&5
3566 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3567 else
3568   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3569 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3570 fi
3571 if test "${lt_cv_path_LD+set}" = set; then
3572   echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574   if test -z "$LD"; then
3575   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3576   for ac_dir in $PATH; do
3577     IFS="$lt_save_ifs"
3578     test -z "$ac_dir" && ac_dir=.
3579     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3580       lt_cv_path_LD="$ac_dir/$ac_prog"
3581       # Check to see if the program is GNU ld.  I'd rather use --version,
3582       # but apparently some variants of GNU ld only accept -v.
3583       # Break only if it was the GNU/non-GNU ld that we prefer.
3584       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3585       *GNU* | *'with BFD'*)
3586         test "$with_gnu_ld" != no && break
3587         ;;
3588       *)
3589         test "$with_gnu_ld" != yes && break
3590         ;;
3591       esac
3592     fi
3593   done
3594   IFS="$lt_save_ifs"
3595 else
3596   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3597 fi
3598 fi
3599
3600 LD="$lt_cv_path_LD"
3601 if test -n "$LD"; then
3602   echo "$as_me:$LINENO: result: $LD" >&5
3603 echo "${ECHO_T}$LD" >&6
3604 else
3605   echo "$as_me:$LINENO: result: no" >&5
3606 echo "${ECHO_T}no" >&6
3607 fi
3608 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3609 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3610    { (exit 1); exit 1; }; }
3611 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3612 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3613 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3614   echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3617 case `$LD -v 2>&1 </dev/null` in
3618 *GNU* | *'with BFD'*)
3619   lt_cv_prog_gnu_ld=yes
3620   ;;
3621 *)
3622   lt_cv_prog_gnu_ld=no
3623   ;;
3624 esac
3625 fi
3626 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3627 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3628 with_gnu_ld=$lt_cv_prog_gnu_ld
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3640 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3641 if test "${lt_cv_path_NM+set}" = set; then
3642   echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644   if test -n "$NM"; then
3645   # Let the user override the test.
3646   lt_cv_path_NM="$NM"
3647 else
3648   lt_nm_to_check="${ac_tool_prefix}nm"
3649   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3650     lt_nm_to_check="$lt_nm_to_check nm"
3651   fi
3652   for lt_tmp_nm in $lt_nm_to_check; do
3653     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3654     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3655       IFS="$lt_save_ifs"
3656       test -z "$ac_dir" && ac_dir=.
3657       tmp_nm="$ac_dir/$lt_tmp_nm"
3658       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3659         # Check to see if the nm accepts a BSD-compat flag.
3660         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3661         #   nm: unknown option "B" ignored
3662         # Tru64's nm complains that /dev/null is an invalid object file
3663         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3664         */dev/null* | *'Invalid file or object type'*)
3665           lt_cv_path_NM="$tmp_nm -B"
3666           break
3667           ;;
3668         *)
3669           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3670           */dev/null*)
3671             lt_cv_path_NM="$tmp_nm -p"
3672             break
3673             ;;
3674           *)
3675             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3676             continue # so that we can try to find one that supports BSD flags
3677             ;;
3678           esac
3679           ;;
3680         esac
3681       fi
3682     done
3683     IFS="$lt_save_ifs"
3684   done
3685   : ${lt_cv_path_NM=no}
3686 fi
3687 fi
3688 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3689 echo "${ECHO_T}$lt_cv_path_NM" >&6
3690 if test "$lt_cv_path_NM" != "no"; then
3691   NM="$lt_cv_path_NM"
3692 else
3693   # Didn't find any BSD compatible name lister, look for dumpbin.
3694   if test -n "$ac_tool_prefix"; then
3695   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3696   do
3697     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3698 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3699 echo "$as_me:$LINENO: checking for $ac_word" >&5
3700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3701 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3702   echo $ECHO_N "(cached) $ECHO_C" >&6
3703 else
3704   if test -n "$DUMPBIN"; then
3705   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3706 else
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH
3709 do
3710   IFS=$as_save_IFS
3711   test -z "$as_dir" && as_dir=.
3712   for ac_exec_ext in '' $ac_executable_extensions; do
3713   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3714     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3716     break 2
3717   fi
3718 done
3719 done
3720
3721 fi
3722 fi
3723 DUMPBIN=$ac_cv_prog_DUMPBIN
3724 if test -n "$DUMPBIN"; then
3725   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3726 echo "${ECHO_T}$DUMPBIN" >&6
3727 else
3728   echo "$as_me:$LINENO: result: no" >&5
3729 echo "${ECHO_T}no" >&6
3730 fi
3731
3732     test -n "$DUMPBIN" && break
3733   done
3734 fi
3735 if test -z "$DUMPBIN"; then
3736   ac_ct_DUMPBIN=$DUMPBIN
3737   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3738 do
3739   # Extract the first word of "$ac_prog", so it can be a program name with args.
3740 set dummy $ac_prog; ac_word=$2
3741 echo "$as_me:$LINENO: checking for $ac_word" >&5
3742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3743 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3744   echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746   if test -n "$ac_ct_DUMPBIN"; then
3747   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3748 else
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH
3751 do
3752   IFS=$as_save_IFS
3753   test -z "$as_dir" && as_dir=.
3754   for ac_exec_ext in '' $ac_executable_extensions; do
3755   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3756     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3758     break 2
3759   fi
3760 done
3761 done
3762
3763 fi
3764 fi
3765 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3766 if test -n "$ac_ct_DUMPBIN"; then
3767   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3768 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3769 else
3770   echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6
3772 fi
3773
3774   test -n "$ac_ct_DUMPBIN" && break
3775 done
3776 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3777
3778   DUMPBIN=$ac_ct_DUMPBIN
3779 fi
3780
3781
3782   if test "$DUMPBIN" != ":"; then
3783     NM="$DUMPBIN"
3784   fi
3785 fi
3786 test -z "$NM" && NM=nm
3787
3788
3789
3790
3791
3792
3793 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3794 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3795 if test "${lt_cv_nm_interface+set}" = set; then
3796   echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798   lt_cv_nm_interface="BSD nm"
3799   echo "int some_variable = 0;" > conftest.$ac_ext
3800   (eval echo "\"\$as_me:3800: $ac_compile\"" >&5)
3801   (eval "$ac_compile" 2>conftest.err)
3802   cat conftest.err >&5
3803   (eval echo "\"\$as_me:3803: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3804   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3805   cat conftest.err >&5
3806   (eval echo "\"\$as_me:3806: output\"" >&5)
3807   cat conftest.out >&5
3808   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3809     lt_cv_nm_interface="MS dumpbin"
3810   fi
3811   rm -f conftest*
3812 fi
3813 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3814 echo "${ECHO_T}$lt_cv_nm_interface" >&6
3815
3816 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3817 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3818 LN_S=$as_ln_s
3819 if test "$LN_S" = "ln -s"; then
3820   echo "$as_me:$LINENO: result: yes" >&5
3821 echo "${ECHO_T}yes" >&6
3822 else
3823   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3824 echo "${ECHO_T}no, using $LN_S" >&6
3825 fi
3826
3827 # find the maximum length of command line arguments
3828 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3829 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3830 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3831   echo $ECHO_N "(cached) $ECHO_C" >&6
3832 else
3833     i=0
3834   teststring="ABCD"
3835
3836   case $build_os in
3837   msdosdjgpp*)
3838     # On DJGPP, this test can blow up pretty badly due to problems in libc
3839     # (any single argument exceeding 2000 bytes causes a buffer overrun
3840     # during glob expansion).  Even if it were fixed, the result of this
3841     # check would be larger than it should be.
3842     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3843     ;;
3844
3845   gnu*)
3846     # Under GNU Hurd, this test is not required because there is
3847     # no limit to the length of command line arguments.
3848     # Libtool will interpret -1 as no limit whatsoever
3849     lt_cv_sys_max_cmd_len=-1;
3850     ;;
3851
3852   cygwin* | mingw*)
3853     # On Win9x/ME, this test blows up -- it succeeds, but takes
3854     # about 5 minutes as the teststring grows exponentially.
3855     # Worse, since 9x/ME are not pre-emptively multitasking,
3856     # you end up with a "frozen" computer, even though with patience
3857     # the test eventually succeeds (with a max line length of 256k).
3858     # Instead, let's just punt: use the minimum linelength reported by
3859     # all of the supported platforms: 8192 (on NT/2K/XP).
3860     lt_cv_sys_max_cmd_len=8192;
3861     ;;
3862
3863   amigaos*)
3864     # On AmigaOS with pdksh, this test takes hours, literally.
3865     # So we just punt and use a minimum line length of 8192.
3866     lt_cv_sys_max_cmd_len=8192;
3867     ;;
3868
3869   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3870     # This has been around since 386BSD, at least.  Likely further.
3871     if test -x /sbin/sysctl; then
3872       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3873     elif test -x /usr/sbin/sysctl; then
3874       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3875     else
3876       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
3877     fi
3878     # And add a safety zone
3879     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3880     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3881     ;;
3882
3883   interix*)
3884     # We know the value 262144 and hardcode it with a safety zone (like BSD)
3885     lt_cv_sys_max_cmd_len=196608
3886     ;;
3887
3888   osf*)
3889     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3890     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3891     # nice to cause kernel panics so lets avoid the loop below.
3892     # First set a reasonable default.
3893     lt_cv_sys_max_cmd_len=16384
3894     #
3895     if test -x /sbin/sysconfig; then
3896       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3897         *1*) lt_cv_sys_max_cmd_len=-1 ;;
3898       esac
3899     fi
3900     ;;
3901   sco3.2v5*)
3902     lt_cv_sys_max_cmd_len=102400
3903     ;;
3904   sysv5* | sco5v6* | sysv4.2uw2*)
3905     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3906     if test -n "$kargmax"; then
3907       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
3908     else
3909       lt_cv_sys_max_cmd_len=32768
3910     fi
3911     ;;
3912   *)
3913     lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
3914     if test -n $lt_cv_sys_max_cmd_len; then
3915       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3916       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3917     else
3918       # Make teststring a little bigger before we do anything with it.
3919       # a 1K string should be a reasonable start.
3920       for i in 1 2 3 4 5 6 7 8 ; do
3921         teststring=$teststring$teststring
3922       done
3923       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3924       # If test is not a shell built-in, we'll probably end up computing a
3925       # maximum length that is only half of the actual maximum length, but
3926       # we can't tell.
3927       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3928                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3929               test $i != 17 # 1/2 MB should be enough
3930       do
3931         i=`expr $i + 1`
3932         teststring=$teststring$teststring
3933       done
3934       # Only check the string length outside the loop.
3935       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3936       teststring=
3937       # Add a significant safety factor because C++ compilers can tack on
3938       # massive amounts of additional arguments before passing them to the
3939       # linker.  It appears as though 1/2 is a usable value.
3940       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3941     fi
3942     ;;
3943   esac
3944
3945 fi
3946
3947 if test -n $lt_cv_sys_max_cmd_len ; then
3948   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3949 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3950 else
3951   echo "$as_me:$LINENO: result: none" >&5
3952 echo "${ECHO_T}none" >&6
3953 fi
3954 max_cmd_len=$lt_cv_sys_max_cmd_len
3955
3956
3957
3958
3959
3960
3961
3962 : ${CP="cp -f"}
3963 : ${MV="mv -f"}
3964 : ${RM="rm -f"}
3965
3966 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3967 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3968 # Try some XSI features
3969 xsi_shell=no
3970 ( _lt_dummy="a/b/c"
3971   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3972       = c,a/b,, ) >/dev/null 2>&1 \
3973   && xsi_shell=yes
3974 echo "$as_me:$LINENO: result: $xsi_shell" >&5
3975 echo "${ECHO_T}$xsi_shell" >&6
3976
3977
3978 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3979 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
3980 lt_shell_append=no
3981 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3982     >/dev/null 2>&1 \
3983   && lt_shell_append=yes
3984 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3985 echo "${ECHO_T}$lt_shell_append" >&6
3986
3987
3988 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3989   lt_unset=unset
3990 else
3991   lt_unset=false
3992 fi
3993
3994
3995
3996
3997
3998 # test EBCDIC or ASCII
3999 case `echo X|tr X '\101'` in
4000  A) # ASCII based system
4001     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4002   lt_SP2NL='tr \040 \012'
4003   lt_NL2SP='tr \015\012 \040\040'
4004   ;;
4005  *) # EBCDIC based system
4006   lt_SP2NL='tr \100 \n'
4007   lt_NL2SP='tr \r\n \100\100'
4008   ;;
4009 esac
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4020 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4021 if test "${lt_cv_ld_reload_flag+set}" = set; then
4022   echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024   lt_cv_ld_reload_flag='-r'
4025 fi
4026 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4027 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4028 reload_flag=$lt_cv_ld_reload_flag
4029 case $reload_flag in
4030 "" | " "*) ;;
4031 *) reload_flag=" $reload_flag" ;;
4032 esac
4033 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4034 case $host_os in
4035   darwin*)
4036     if test "$GCC" = yes; then
4037       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4038     else
4039       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4040     fi
4041     ;;
4042 esac
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4054 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4055 if test "${lt_cv_deplibs_check_method+set}" = set; then
4056   echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058   lt_cv_file_magic_cmd='$MAGIC_CMD'
4059 lt_cv_file_magic_test_file=
4060 lt_cv_deplibs_check_method='unknown'
4061 # Need to set the preceding variable on all platforms that support
4062 # interlibrary dependencies.
4063 # 'none' -- dependencies not supported.
4064 # `unknown' -- same as none, but documents that we really don't know.
4065 # 'pass_all' -- all dependencies passed with no checks.
4066 # 'test_compile' -- check by making test program.
4067 # 'file_magic [[regex]]' -- check by looking for files in library path
4068 # which responds to the $file_magic_cmd with a given extended regex.
4069 # If you have `file' or equivalent on your system and you're not sure
4070 # whether `pass_all' will *always* work, you probably want this one.
4071
4072 case $host_os in
4073 aix[4-9]*)
4074   lt_cv_deplibs_check_method=pass_all
4075   ;;
4076
4077 beos*)
4078   lt_cv_deplibs_check_method=pass_all
4079   ;;
4080
4081 bsdi[45]*)
4082   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4083   lt_cv_file_magic_cmd='/usr/bin/file -L'
4084   lt_cv_file_magic_test_file=/shlib/libc.so
4085   ;;
4086
4087 cygwin*)
4088   # func_win32_libid is a shell function defined in ltmain.sh
4089   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4090   lt_cv_file_magic_cmd='func_win32_libid'
4091   ;;
4092
4093 mingw* | pw32*)
4094   # Base MSYS/MinGW do not provide the 'file' command needed by
4095   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4096   # unless we find 'file', for example because we are cross-compiling.
4097   if ( file / ) >/dev/null 2>&1; then
4098     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4099     lt_cv_file_magic_cmd='func_win32_libid'
4100   else
4101     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4102     lt_cv_file_magic_cmd='$OBJDUMP -f'
4103   fi
4104   ;;
4105
4106 darwin* | rhapsody*)
4107   lt_cv_deplibs_check_method=pass_all
4108   ;;
4109
4110 freebsd* | dragonfly*)
4111   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4112     case $host_cpu in
4113     i*86 )
4114       # Not sure whether the presence of OpenBSD here was a mistake.
4115       # Let's accept both of them until this is cleared up.
4116       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4117       lt_cv_file_magic_cmd=/usr/bin/file
4118       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4119       ;;
4120     esac
4121   else
4122     lt_cv_deplibs_check_method=pass_all
4123   fi
4124   ;;
4125
4126 gnu*)
4127   lt_cv_deplibs_check_method=pass_all
4128   ;;
4129
4130 hpux10.20* | hpux11*)
4131   lt_cv_file_magic_cmd=/usr/bin/file
4132   case $host_cpu in
4133   ia64*)
4134     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4135     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4136     ;;
4137   hppa*64*)
4138     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4139     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4140     ;;
4141   *)
4142     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4143     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4144     ;;
4145   esac
4146   ;;
4147
4148 interix[3-9]*)
4149   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4150   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4151   ;;
4152
4153 irix5* | irix6* | nonstopux*)
4154   case $LD in
4155   *-32|*"-32 ") libmagic=32-bit;;
4156   *-n32|*"-n32 ") libmagic=N32;;
4157   *-64|*"-64 ") libmagic=64-bit;;
4158   *) libmagic=never-match;;
4159   esac
4160   lt_cv_deplibs_check_method=pass_all
4161   ;;
4162
4163 # This must be Linux ELF.
4164 linux* | k*bsd*-gnu)
4165   lt_cv_deplibs_check_method=pass_all
4166   ;;
4167
4168 netbsd*)
4169   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4170     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4171   else
4172     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4173   fi
4174   ;;
4175
4176 newos6*)
4177   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4178   lt_cv_file_magic_cmd=/usr/bin/file
4179   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4180   ;;
4181
4182 *nto* | *qnx*)
4183   lt_cv_deplibs_check_method=pass_all
4184   ;;
4185
4186 openbsd*)
4187   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4188     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4189   else
4190     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4191   fi
4192   ;;
4193
4194 osf3* | osf4* | osf5*)
4195   lt_cv_deplibs_check_method=pass_all
4196   ;;
4197
4198 rdos*)
4199   lt_cv_deplibs_check_method=pass_all
4200   ;;
4201
4202 solaris*)
4203   lt_cv_deplibs_check_method=pass_all
4204   ;;
4205
4206 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4207   lt_cv_deplibs_check_method=pass_all
4208   ;;
4209
4210 sysv4 | sysv4.3*)
4211   case $host_vendor in
4212   motorola)
4213     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]'
4214     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4215     ;;
4216   ncr)
4217     lt_cv_deplibs_check_method=pass_all
4218     ;;
4219   sequent)
4220     lt_cv_file_magic_cmd='/bin/file'
4221     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4222     ;;
4223   sni)
4224     lt_cv_file_magic_cmd='/bin/file'
4225     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4226     lt_cv_file_magic_test_file=/lib/libc.so
4227     ;;
4228   siemens)
4229     lt_cv_deplibs_check_method=pass_all
4230     ;;
4231   pc)
4232     lt_cv_deplibs_check_method=pass_all
4233     ;;
4234   esac
4235   ;;
4236
4237 tpf*)
4238   lt_cv_deplibs_check_method=pass_all
4239   ;;
4240 esac
4241
4242 fi
4243 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4244 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4245 file_magic_cmd=$lt_cv_file_magic_cmd
4246 deplibs_check_method=$lt_cv_deplibs_check_method
4247 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260 if test -n "$ac_tool_prefix"; then
4261   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4262 set dummy ${ac_tool_prefix}ar; ac_word=$2
4263 echo "$as_me:$LINENO: checking for $ac_word" >&5
4264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4265 if test "${ac_cv_prog_AR+set}" = set; then
4266   echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268   if test -n "$AR"; then
4269   ac_cv_prog_AR="$AR" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4273 do
4274   IFS=$as_save_IFS
4275   test -z "$as_dir" && as_dir=.
4276   for ac_exec_ext in '' $ac_executable_extensions; do
4277   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4278     ac_cv_prog_AR="${ac_tool_prefix}ar"
4279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4280     break 2
4281   fi
4282 done
4283 done
4284
4285 fi
4286 fi
4287 AR=$ac_cv_prog_AR
4288 if test -n "$AR"; then
4289   echo "$as_me:$LINENO: result: $AR" >&5
4290 echo "${ECHO_T}$AR" >&6
4291 else
4292   echo "$as_me:$LINENO: result: no" >&5
4293 echo "${ECHO_T}no" >&6
4294 fi
4295
4296 fi
4297 if test -z "$ac_cv_prog_AR"; then
4298   ac_ct_AR=$AR
4299   # Extract the first word of "ar", so it can be a program name with args.
4300 set dummy ar; ac_word=$2
4301 echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4303 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4304   echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306   if test -n "$ac_ct_AR"; then
4307   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4308 else
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4311 do
4312   IFS=$as_save_IFS
4313   test -z "$as_dir" && as_dir=.
4314   for ac_exec_ext in '' $ac_executable_extensions; do
4315   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4316     ac_cv_prog_ac_ct_AR="ar"
4317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4318     break 2
4319   fi
4320 done
4321 done
4322
4323   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4324 fi
4325 fi
4326 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4327 if test -n "$ac_ct_AR"; then
4328   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4329 echo "${ECHO_T}$ac_ct_AR" >&6
4330 else
4331   echo "$as_me:$LINENO: result: no" >&5
4332 echo "${ECHO_T}no" >&6
4333 fi
4334
4335   AR=$ac_ct_AR
4336 else
4337   AR="$ac_cv_prog_AR"
4338 fi
4339
4340 test -z "$AR" && AR=ar
4341 test -z "$AR_FLAGS" && AR_FLAGS=cru
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353 if test -n "$ac_tool_prefix"; then
4354   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4355 set dummy ${ac_tool_prefix}strip; ac_word=$2
4356 echo "$as_me:$LINENO: checking for $ac_word" >&5
4357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4358 if test "${ac_cv_prog_STRIP+set}" = set; then
4359   echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361   if test -n "$STRIP"; then
4362   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4366 do
4367   IFS=$as_save_IFS
4368   test -z "$as_dir" && as_dir=.
4369   for ac_exec_ext in '' $ac_executable_extensions; do
4370   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4371     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373     break 2
4374   fi
4375 done
4376 done
4377
4378 fi
4379 fi
4380 STRIP=$ac_cv_prog_STRIP
4381 if test -n "$STRIP"; then
4382   echo "$as_me:$LINENO: result: $STRIP" >&5
4383 echo "${ECHO_T}$STRIP" >&6
4384 else
4385   echo "$as_me:$LINENO: result: no" >&5
4386 echo "${ECHO_T}no" >&6
4387 fi
4388
4389 fi
4390 if test -z "$ac_cv_prog_STRIP"; then
4391   ac_ct_STRIP=$STRIP
4392   # Extract the first word of "strip", so it can be a program name with args.
4393 set dummy strip; ac_word=$2
4394 echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4396 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4397   echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399   if test -n "$ac_ct_STRIP"; then
4400   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4401 else
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4404 do
4405   IFS=$as_save_IFS
4406   test -z "$as_dir" && as_dir=.
4407   for ac_exec_ext in '' $ac_executable_extensions; do
4408   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409     ac_cv_prog_ac_ct_STRIP="strip"
4410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411     break 2
4412   fi
4413 done
4414 done
4415
4416   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4417 fi
4418 fi
4419 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4420 if test -n "$ac_ct_STRIP"; then
4421   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4422 echo "${ECHO_T}$ac_ct_STRIP" >&6
4423 else
4424   echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6
4426 fi
4427
4428   STRIP=$ac_ct_STRIP
4429 else
4430   STRIP="$ac_cv_prog_STRIP"
4431 fi
4432
4433 test -z "$STRIP" && STRIP=:
4434
4435
4436
4437
4438
4439
4440 if test -n "$ac_tool_prefix"; then
4441   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4442 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4443 echo "$as_me:$LINENO: checking for $ac_word" >&5
4444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4445 if test "${ac_cv_prog_RANLIB+set}" = set; then
4446   echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448   if test -n "$RANLIB"; then
4449   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4450 else
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4453 do
4454   IFS=$as_save_IFS
4455   test -z "$as_dir" && as_dir=.
4456   for ac_exec_ext in '' $ac_executable_extensions; do
4457   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460     break 2
4461   fi
4462 done
4463 done
4464
4465 fi
4466 fi
4467 RANLIB=$ac_cv_prog_RANLIB
4468 if test -n "$RANLIB"; then
4469   echo "$as_me:$LINENO: result: $RANLIB" >&5
4470 echo "${ECHO_T}$RANLIB" >&6
4471 else
4472   echo "$as_me:$LINENO: result: no" >&5
4473 echo "${ECHO_T}no" >&6
4474 fi
4475
4476 fi
4477 if test -z "$ac_cv_prog_RANLIB"; then
4478   ac_ct_RANLIB=$RANLIB
4479   # Extract the first word of "ranlib", so it can be a program name with args.
4480 set dummy ranlib; ac_word=$2
4481 echo "$as_me:$LINENO: checking for $ac_word" >&5
4482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4483 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4484   echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486   if test -n "$ac_ct_RANLIB"; then
4487   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4488 else
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 for as_dir in $PATH
4491 do
4492   IFS=$as_save_IFS
4493   test -z "$as_dir" && as_dir=.
4494   for ac_exec_ext in '' $ac_executable_extensions; do
4495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4496     ac_cv_prog_ac_ct_RANLIB="ranlib"
4497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498     break 2
4499   fi
4500 done
4501 done
4502
4503   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4504 fi
4505 fi
4506 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4507 if test -n "$ac_ct_RANLIB"; then
4508   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4509 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4510 else
4511   echo "$as_me:$LINENO: result: no" >&5
4512 echo "${ECHO_T}no" >&6
4513 fi
4514
4515   RANLIB=$ac_ct_RANLIB
4516 else
4517   RANLIB="$ac_cv_prog_RANLIB"
4518 fi
4519
4520 test -z "$RANLIB" && RANLIB=:
4521
4522
4523
4524
4525
4526
4527 # Determine commands to create old-style static archives.
4528 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4529 old_postinstall_cmds='chmod 644 $oldlib'
4530 old_postuninstall_cmds=
4531
4532 if test -n "$RANLIB"; then
4533   case $host_os in
4534   openbsd*)
4535     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4536     ;;
4537   *)
4538     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4539     ;;
4540   esac
4541   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4542 fi
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577 # If no C compiler was specified, use CC.
4578 LTCC=${LTCC-"$CC"}
4579
4580 # If no C compiler flags were specified, use CFLAGS.
4581 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4582
4583 # Allow CC to be a program name with arguments.
4584 compiler=$CC
4585
4586
4587 # Check for command to grab the raw symbol name followed by C symbol from nm.
4588 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4589 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4590 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4591   echo $ECHO_N "(cached) $ECHO_C" >&6
4592 else
4593
4594 # These are sane defaults that work on at least a few old systems.
4595 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4596
4597 # Character class describing NM global symbol codes.
4598 symcode='[BCDEGRST]'
4599
4600 # Regexp to match symbols that can be accessed directly from C.
4601 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4602
4603 # Define system-specific variables.
4604 case $host_os in
4605 aix*)
4606   symcode='[BCDT]'
4607   ;;
4608 cygwin* | mingw* | pw32*)
4609   symcode='[ABCDGISTW]'
4610   ;;
4611 hpux*)
4612   if test "$host_cpu" = ia64; then
4613     symcode='[ABCDEGRST]'
4614   fi
4615   ;;
4616 irix* | nonstopux*)
4617   symcode='[BCDEGRST]'
4618   ;;
4619 osf*)
4620   symcode='[BCDEGQRST]'
4621   ;;
4622 solaris*)
4623   symcode='[BDRT]'
4624   ;;
4625 sco3.2v5*)
4626   symcode='[DT]'
4627   ;;
4628 sysv4.2uw2*)
4629   symcode='[DT]'
4630   ;;
4631 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4632   symcode='[ABDT]'
4633   ;;
4634 sysv4)
4635   symcode='[DFNSTU]'
4636   ;;
4637 esac
4638
4639 # If we're using GNU nm, then use its standard symbol codes.
4640 case `$NM -V 2>&1` in
4641 *GNU* | *'with BFD'*)
4642   symcode='[ABCDGIRSTW]' ;;
4643 esac
4644
4645 # Transform an extracted symbol line into a proper C declaration.
4646 # Some systems (esp. on ia64) link data and code symbols differently,
4647 # so use this general approach.
4648 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4649
4650 # Transform an extracted symbol line into symbol name and symbol address
4651 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4652
4653 # Handle CRLF in mingw tool chain
4654 opt_cr=
4655 case $build_os in
4656 mingw*)
4657   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4658   ;;
4659 esac
4660
4661 # Try without a prefix underscore, then with it.
4662 for ac_symprfx in "" "_"; do
4663
4664   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4665   symxfrm="\\1 $ac_symprfx\\2 \\2"
4666
4667   # Write the raw and C identifiers.
4668   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4669     # Fake it for dumpbin and say T for any non-static function
4670     # and D for any global variable.
4671     # Also find C++ and __fastcall symbols from MSVC++,
4672     # which start with @ or ?.
4673     lt_cv_sys_global_symbol_pipe="$AWK '"\
4674 "     {last_section=section; section=\$ 3};"\
4675 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4676 "     \$ 0!~/External *\|/{next};"\
4677 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4678 "     {if(hide[section]) next};"\
4679 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4680 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4681 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4682 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4683 "     ' prfx=^$ac_symprfx"
4684   else
4685     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4686   fi
4687
4688   # Check to see that the pipe works correctly.
4689   pipe_works=no
4690
4691   rm -f conftest*
4692   cat > conftest.$ac_ext <<_LT_EOF
4693 #ifdef __cplusplus
4694 extern "C" {
4695 #endif
4696 char nm_test_var;
4697 void nm_test_func(void);
4698 void nm_test_func(void){}
4699 #ifdef __cplusplus
4700 }
4701 #endif
4702 int main(){nm_test_var='a';nm_test_func();return(0);}
4703 _LT_EOF
4704
4705   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4706   (eval $ac_compile) 2>&5
4707   ac_status=$?
4708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709   (exit $ac_status); }; then
4710     # Now try to grab the symbols.
4711     nlist=conftest.nm
4712     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4713   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4714   ac_status=$?
4715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716   (exit $ac_status); } && test -s "$nlist"; then
4717       # Try sorting and uniquifying the output.
4718       if sort "$nlist" | uniq > "$nlist"T; then
4719         mv -f "$nlist"T "$nlist"
4720       else
4721         rm -f "$nlist"T
4722       fi
4723
4724       # Make sure that we snagged all the symbols we need.
4725       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4726         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4727           cat <<_LT_EOF > conftest.$ac_ext
4728 #ifdef __cplusplus
4729 extern "C" {
4730 #endif
4731
4732 _LT_EOF
4733           # Now generate the symbol file.
4734           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4735
4736           cat <<_LT_EOF >> conftest.$ac_ext
4737
4738 /* The mapping between symbol names and symbols.  */
4739 const struct {
4740   const char *name;
4741   void       *address;
4742 }
4743 lt__PROGRAM__LTX_preloaded_symbols[] =
4744 {
4745   { "@PROGRAM@", (void *) 0 },
4746 _LT_EOF
4747           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4748           cat <<\_LT_EOF >> conftest.$ac_ext
4749   {0, (void *) 0}
4750 };
4751
4752 /* This works around a problem in FreeBSD linker */
4753 #ifdef FREEBSD_WORKAROUND
4754 static const void *lt_preloaded_setup() {
4755   return lt__PROGRAM__LTX_preloaded_symbols;
4756 }
4757 #endif
4758
4759 #ifdef __cplusplus
4760 }
4761 #endif
4762 _LT_EOF
4763           # Now try linking the two files.
4764           mv conftest.$ac_objext conftstm.$ac_objext
4765           lt_save_LIBS="$LIBS"
4766           lt_save_CFLAGS="$CFLAGS"
4767           LIBS="conftstm.$ac_objext"
4768           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4769           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4770   (eval $ac_link) 2>&5
4771   ac_status=$?
4772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773   (exit $ac_status); } && test -s conftest${ac_exeext}; then
4774             pipe_works=yes
4775           fi
4776           LIBS="$lt_save_LIBS"
4777           CFLAGS="$lt_save_CFLAGS"
4778         else
4779           echo "cannot find nm_test_func in $nlist" >&5
4780         fi
4781       else
4782         echo "cannot find nm_test_var in $nlist" >&5
4783       fi
4784     else
4785       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4786     fi
4787   else
4788     echo "$progname: failed program was:" >&5
4789     cat conftest.$ac_ext >&5
4790   fi
4791   rm -f conftest* conftst*
4792
4793   # Do not use the global_symbol_pipe unless it works.
4794   if test "$pipe_works" = yes; then
4795     break
4796   else
4797     lt_cv_sys_global_symbol_pipe=
4798   fi
4799 done
4800
4801 fi
4802
4803 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4804   lt_cv_sys_global_symbol_to_cdecl=
4805 fi
4806 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4807   echo "$as_me:$LINENO: result: failed" >&5
4808 echo "${ECHO_T}failed" >&6
4809 else
4810   echo "$as_me:$LINENO: result: ok" >&5
4811 echo "${ECHO_T}ok" >&6
4812 fi
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4832 if test "${enable_libtool_lock+set}" = set; then
4833   enableval="$enable_libtool_lock"
4834
4835 fi;
4836 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4837
4838 # Some flags need to be propagated to the compiler or linker for good
4839 # libtool support.
4840 case $host in
4841 ia64-*-hpux*)
4842   # Find out which ABI we are using.
4843   echo 'int i;' > conftest.$ac_ext
4844   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4845   (eval $ac_compile) 2>&5
4846   ac_status=$?
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); }; then
4849     case `/usr/bin/file conftest.$ac_objext` in
4850       *ELF-32*)
4851         HPUX_IA64_MODE="32"
4852         ;;
4853       *ELF-64*)
4854         HPUX_IA64_MODE="64"
4855         ;;
4856     esac
4857   fi
4858   rm -rf conftest*
4859   ;;
4860 *-*-irix6*)
4861   # Find out which ABI we are using.
4862   echo '#line 4862 "configure"' > conftest.$ac_ext
4863   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4864   (eval $ac_compile) 2>&5
4865   ac_status=$?
4866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867   (exit $ac_status); }; then
4868     if test "$lt_cv_prog_gnu_ld" = yes; then
4869       case `/usr/bin/file conftest.$ac_objext` in
4870         *32-bit*)
4871           LD="${LD-ld} -melf32bsmip"
4872           ;;
4873         *N32*)
4874           LD="${LD-ld} -melf32bmipn32"
4875           ;;
4876         *64-bit*)
4877           LD="${LD-ld} -melf64bmip"
4878         ;;
4879       esac
4880     else
4881       case `/usr/bin/file conftest.$ac_objext` in
4882         *32-bit*)
4883           LD="${LD-ld} -32"
4884           ;;
4885         *N32*)
4886           LD="${LD-ld} -n32"
4887           ;;
4888         *64-bit*)
4889           LD="${LD-ld} -64"
4890           ;;
4891       esac
4892     fi
4893   fi
4894   rm -rf conftest*
4895   ;;
4896
4897 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4898 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4899   # Find out which ABI we are using.
4900   echo 'int i;' > conftest.$ac_ext
4901   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4902   (eval $ac_compile) 2>&5
4903   ac_status=$?
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); }; then
4906     case `/usr/bin/file conftest.o` in
4907       *32-bit*)
4908         case $host in
4909           x86_64-*kfreebsd*-gnu)
4910             LD="${LD-ld} -m elf_i386_fbsd"
4911             ;;
4912           x86_64-*linux*)
4913             LD="${LD-ld} -m elf_i386"
4914             ;;
4915           ppc64-*linux*|powerpc64-*linux*)
4916             LD="${LD-ld} -m elf32ppclinux"
4917             ;;
4918           s390x-*linux*)
4919             LD="${LD-ld} -m elf_s390"
4920             ;;
4921           sparc64-*linux*)
4922             LD="${LD-ld} -m elf32_sparc"
4923             ;;
4924         esac
4925         ;;
4926       *64-bit*)
4927         case $host in
4928           x86_64-*kfreebsd*-gnu)
4929             LD="${LD-ld} -m elf_x86_64_fbsd"
4930             ;;
4931           x86_64-*linux*)
4932             LD="${LD-ld} -m elf_x86_64"
4933             ;;
4934           ppc*-*linux*|powerpc*-*linux*)
4935             LD="${LD-ld} -m elf64ppc"
4936             ;;
4937           s390*-*linux*|s390*-*tpf*)
4938             LD="${LD-ld} -m elf64_s390"
4939             ;;
4940           sparc*-*linux*)
4941             LD="${LD-ld} -m elf64_sparc"
4942             ;;
4943         esac
4944         ;;
4945     esac
4946   fi
4947   rm -rf conftest*
4948   ;;
4949
4950 *-*-sco3.2v5*)
4951   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4952   SAVE_CFLAGS="$CFLAGS"
4953   CFLAGS="$CFLAGS -belf"
4954   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4955 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4956 if test "${lt_cv_cc_needs_belf+set}" = set; then
4957   echo $ECHO_N "(cached) $ECHO_C" >&6
4958 else
4959   ac_ext=c
4960 ac_cpp='$CPP $CPPFLAGS'
4961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4964
4965      if test x$gcc_no_link = xyes; then
4966   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4967 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4968    { (exit 1); exit 1; }; }
4969 fi
4970 cat >conftest.$ac_ext <<_ACEOF
4971 /* confdefs.h.  */
4972 _ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h.  */
4976
4977 int
4978 main ()
4979 {
4980
4981   ;
4982   return 0;
4983 }
4984 _ACEOF
4985 rm -f conftest.$ac_objext conftest$ac_exeext
4986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4987   (eval $ac_link) 2>conftest.er1
4988   ac_status=$?
4989   grep -v '^ *+' conftest.er1 >conftest.err
4990   rm -f conftest.er1
4991   cat conftest.err >&5
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); } &&
4994          { ac_try='test -z "$ac_c_werror_flag"
4995                          || test ! -s conftest.err'
4996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997   (eval $ac_try) 2>&5
4998   ac_status=$?
4999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000   (exit $ac_status); }; } &&
5001          { ac_try='test -s conftest$ac_exeext'
5002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003   (eval $ac_try) 2>&5
5004   ac_status=$?
5005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006   (exit $ac_status); }; }; then
5007   lt_cv_cc_needs_belf=yes
5008 else
5009   echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5011
5012 lt_cv_cc_needs_belf=no
5013 fi
5014 rm -f conftest.err conftest.$ac_objext \
5015       conftest$ac_exeext conftest.$ac_ext
5016      ac_ext=c
5017 ac_cpp='$CPP $CPPFLAGS'
5018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5021
5022 fi
5023 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5024 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5025   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5026     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5027     CFLAGS="$SAVE_CFLAGS"
5028   fi
5029   ;;
5030 sparc*-*solaris*)
5031   # Find out which ABI we are using.
5032   echo 'int i;' > conftest.$ac_ext
5033   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5034   (eval $ac_compile) 2>&5
5035   ac_status=$?
5036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037   (exit $ac_status); }; then
5038     case `/usr/bin/file conftest.o` in
5039     *64-bit*)
5040       case $lt_cv_prog_gnu_ld in
5041       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5042       *)    LD="${LD-ld} -64" ;;
5043       esac
5044       ;;
5045     esac
5046   fi
5047   rm -rf conftest*
5048   ;;
5049 esac
5050
5051 need_locks="$enable_libtool_lock"
5052
5053 ac_ext=c
5054 ac_cpp='$CPP $CPPFLAGS'
5055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5058 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5059 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5060 # On Suns, sometimes $CPP names a directory.
5061 if test -n "$CPP" && test -d "$CPP"; then
5062   CPP=
5063 fi
5064 if test -z "$CPP"; then
5065   if test "${ac_cv_prog_CPP+set}" = set; then
5066   echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068       # Double quotes because CPP needs to be expanded
5069     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5070     do
5071       ac_preproc_ok=false
5072 for ac_c_preproc_warn_flag in '' yes
5073 do
5074   # Use a header file that comes with gcc, so configuring glibc
5075   # with a fresh cross-compiler works.
5076   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5077   # <limits.h> exists even on freestanding compilers.
5078   # On the NeXT, cc -E runs the code through the compiler's parser,
5079   # not just through cpp. "Syntax error" is here to catch this case.
5080   cat >conftest.$ac_ext <<_ACEOF
5081 /* confdefs.h.  */
5082 _ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h.  */
5086 #ifdef __STDC__
5087 # include <limits.h>
5088 #else
5089 # include <assert.h>
5090 #endif
5091                      Syntax error
5092 _ACEOF
5093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5094   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5095   ac_status=$?
5096   grep -v '^ *+' conftest.er1 >conftest.err
5097   rm -f conftest.er1
5098   cat conftest.err >&5
5099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100   (exit $ac_status); } >/dev/null; then
5101   if test -s conftest.err; then
5102     ac_cpp_err=$ac_c_preproc_warn_flag
5103     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5104   else
5105     ac_cpp_err=
5106   fi
5107 else
5108   ac_cpp_err=yes
5109 fi
5110 if test -z "$ac_cpp_err"; then
5111   :
5112 else
5113   echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5115
5116   # Broken: fails on valid input.
5117 continue
5118 fi
5119 rm -f conftest.err conftest.$ac_ext
5120
5121   # OK, works on sane cases.  Now check whether non-existent headers
5122   # can be detected and how.
5123   cat >conftest.$ac_ext <<_ACEOF
5124 /* confdefs.h.  */
5125 _ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h.  */
5129 #include <ac_nonexistent.h>
5130 _ACEOF
5131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5132   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5133   ac_status=$?
5134   grep -v '^ *+' conftest.er1 >conftest.err
5135   rm -f conftest.er1
5136   cat conftest.err >&5
5137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138   (exit $ac_status); } >/dev/null; then
5139   if test -s conftest.err; then
5140     ac_cpp_err=$ac_c_preproc_warn_flag
5141     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5142   else
5143     ac_cpp_err=
5144   fi
5145 else
5146   ac_cpp_err=yes
5147 fi
5148 if test -z "$ac_cpp_err"; then
5149   # Broken: success on invalid input.
5150 continue
5151 else
5152   echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5154
5155   # Passes both tests.
5156 ac_preproc_ok=:
5157 break
5158 fi
5159 rm -f conftest.err conftest.$ac_ext
5160
5161 done
5162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5163 rm -f conftest.err conftest.$ac_ext
5164 if $ac_preproc_ok; then
5165   break
5166 fi
5167
5168     done
5169     ac_cv_prog_CPP=$CPP
5170
5171 fi
5172   CPP=$ac_cv_prog_CPP
5173 else
5174   ac_cv_prog_CPP=$CPP
5175 fi
5176 echo "$as_me:$LINENO: result: $CPP" >&5
5177 echo "${ECHO_T}$CPP" >&6
5178 ac_preproc_ok=false
5179 for ac_c_preproc_warn_flag in '' yes
5180 do
5181   # Use a header file that comes with gcc, so configuring glibc
5182   # with a fresh cross-compiler works.
5183   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5184   # <limits.h> exists even on freestanding compilers.
5185   # On the NeXT, cc -E runs the code through the compiler's parser,
5186   # not just through cpp. "Syntax error" is here to catch this case.
5187   cat >conftest.$ac_ext <<_ACEOF
5188 /* confdefs.h.  */
5189 _ACEOF
5190 cat confdefs.h >>conftest.$ac_ext
5191 cat >>conftest.$ac_ext <<_ACEOF
5192 /* end confdefs.h.  */
5193 #ifdef __STDC__
5194 # include <limits.h>
5195 #else
5196 # include <assert.h>
5197 #endif
5198                      Syntax error
5199 _ACEOF
5200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5201   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5202   ac_status=$?
5203   grep -v '^ *+' conftest.er1 >conftest.err
5204   rm -f conftest.er1
5205   cat conftest.err >&5
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); } >/dev/null; then
5208   if test -s conftest.err; then
5209     ac_cpp_err=$ac_c_preproc_warn_flag
5210     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5211   else
5212     ac_cpp_err=
5213   fi
5214 else
5215   ac_cpp_err=yes
5216 fi
5217 if test -z "$ac_cpp_err"; then
5218   :
5219 else
5220   echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5222
5223   # Broken: fails on valid input.
5224 continue
5225 fi
5226 rm -f conftest.err conftest.$ac_ext
5227
5228   # OK, works on sane cases.  Now check whether non-existent headers
5229   # can be detected and how.
5230   cat >conftest.$ac_ext <<_ACEOF
5231 /* confdefs.h.  */
5232 _ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h.  */
5236 #include <ac_nonexistent.h>
5237 _ACEOF
5238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5239   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5240   ac_status=$?
5241   grep -v '^ *+' conftest.er1 >conftest.err
5242   rm -f conftest.er1
5243   cat conftest.err >&5
5244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245   (exit $ac_status); } >/dev/null; then
5246   if test -s conftest.err; then
5247     ac_cpp_err=$ac_c_preproc_warn_flag
5248     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5249   else
5250     ac_cpp_err=
5251   fi
5252 else
5253   ac_cpp_err=yes
5254 fi
5255 if test -z "$ac_cpp_err"; then
5256   # Broken: success on invalid input.
5257 continue
5258 else
5259   echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262   # Passes both tests.
5263 ac_preproc_ok=:
5264 break
5265 fi
5266 rm -f conftest.err conftest.$ac_ext
5267
5268 done
5269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5270 rm -f conftest.err conftest.$ac_ext
5271 if $ac_preproc_ok; then
5272   :
5273 else
5274   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5275 See \`config.log' for more details." >&5
5276 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5277 See \`config.log' for more details." >&2;}
5278    { (exit 1); exit 1; }; }
5279 fi
5280
5281 ac_ext=c
5282 ac_cpp='$CPP $CPPFLAGS'
5283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5286
5287
5288 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5289 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5290 if test "${ac_cv_header_stdc+set}" = set; then
5291   echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293   cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h.  */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h.  */
5299 #include <stdlib.h>
5300 #include <stdarg.h>
5301 #include <string.h>
5302 #include <float.h>
5303
5304 int
5305 main ()
5306 {
5307
5308   ;
5309   return 0;
5310 }
5311 _ACEOF
5312 rm -f conftest.$ac_objext
5313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5314   (eval $ac_compile) 2>conftest.er1
5315   ac_status=$?
5316   grep -v '^ *+' conftest.er1 >conftest.err
5317   rm -f conftest.er1
5318   cat conftest.err >&5
5319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320   (exit $ac_status); } &&
5321          { ac_try='test -z "$ac_c_werror_flag"
5322                          || test ! -s conftest.err'
5323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324   (eval $ac_try) 2>&5
5325   ac_status=$?
5326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327   (exit $ac_status); }; } &&
5328          { ac_try='test -s conftest.$ac_objext'
5329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330   (eval $ac_try) 2>&5
5331   ac_status=$?
5332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333   (exit $ac_status); }; }; then
5334   ac_cv_header_stdc=yes
5335 else
5336   echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5338
5339 ac_cv_header_stdc=no
5340 fi
5341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5342
5343 if test $ac_cv_header_stdc = yes; then
5344   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5345   cat >conftest.$ac_ext <<_ACEOF
5346 /* confdefs.h.  */
5347 _ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h.  */
5351 #include <string.h>
5352
5353 _ACEOF
5354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5355   $EGREP "memchr" >/dev/null 2>&1; then
5356   :
5357 else
5358   ac_cv_header_stdc=no
5359 fi
5360 rm -f conftest*
5361
5362 fi
5363
5364 if test $ac_cv_header_stdc = yes; then
5365   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5366   cat >conftest.$ac_ext <<_ACEOF
5367 /* confdefs.h.  */
5368 _ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h.  */
5372 #include <stdlib.h>
5373
5374 _ACEOF
5375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5376   $EGREP "free" >/dev/null 2>&1; then
5377   :
5378 else
5379   ac_cv_header_stdc=no
5380 fi
5381 rm -f conftest*
5382
5383 fi
5384
5385 if test $ac_cv_header_stdc = yes; then
5386   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5387   if test "$cross_compiling" = yes; then
5388   :
5389 else
5390   cat >conftest.$ac_ext <<_ACEOF
5391 /* confdefs.h.  */
5392 _ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h.  */
5396 #include <ctype.h>
5397 #if ((' ' & 0x0FF) == 0x020)
5398 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5399 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5400 #else
5401 # define ISLOWER(c) \
5402                    (('a' <= (c) && (c) <= 'i') \
5403                      || ('j' <= (c) && (c) <= 'r') \
5404                      || ('s' <= (c) && (c) <= 'z'))
5405 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5406 #endif
5407
5408 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5409 int
5410 main ()
5411 {
5412   int i;
5413   for (i = 0; i < 256; i++)
5414     if (XOR (islower (i), ISLOWER (i))
5415         || toupper (i) != TOUPPER (i))
5416       exit(2);
5417   exit (0);
5418 }
5419 _ACEOF
5420 rm -f conftest$ac_exeext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5422   (eval $ac_link) 2>&5
5423   ac_status=$?
5424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5427   (eval $ac_try) 2>&5
5428   ac_status=$?
5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430   (exit $ac_status); }; }; then
5431   :
5432 else
5433   echo "$as_me: program exited with status $ac_status" >&5
5434 echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5436
5437 ( exit $ac_status )
5438 ac_cv_header_stdc=no
5439 fi
5440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5441 fi
5442 fi
5443 fi
5444 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5445 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5446 if test $ac_cv_header_stdc = yes; then
5447
5448 cat >>confdefs.h <<\_ACEOF
5449 #define STDC_HEADERS 1
5450 _ACEOF
5451
5452 fi
5453
5454 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5465                   inttypes.h stdint.h unistd.h
5466 do
5467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5468 echo "$as_me:$LINENO: checking for $ac_header" >&5
5469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5471   echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473   cat >conftest.$ac_ext <<_ACEOF
5474 /* confdefs.h.  */
5475 _ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h.  */
5479 $ac_includes_default
5480
5481 #include <$ac_header>
5482 _ACEOF
5483 rm -f conftest.$ac_objext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5485   (eval $ac_compile) 2>conftest.er1
5486   ac_status=$?
5487   grep -v '^ *+' conftest.er1 >conftest.err
5488   rm -f conftest.er1
5489   cat conftest.err >&5
5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); } &&
5492          { ac_try='test -z "$ac_c_werror_flag"
5493                          || test ! -s conftest.err'
5494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495   (eval $ac_try) 2>&5
5496   ac_status=$?
5497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498   (exit $ac_status); }; } &&
5499          { ac_try='test -s conftest.$ac_objext'
5500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501   (eval $ac_try) 2>&5
5502   ac_status=$?
5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504   (exit $ac_status); }; }; then
5505   eval "$as_ac_Header=yes"
5506 else
5507   echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5509
5510 eval "$as_ac_Header=no"
5511 fi
5512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5513 fi
5514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5517   cat >>confdefs.h <<_ACEOF
5518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5519 _ACEOF
5520
5521 fi
5522
5523 done
5524
5525
5526
5527 for ac_header in dlfcn.h
5528 do
5529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5530 echo "$as_me:$LINENO: checking for $ac_header" >&5
5531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5533   echo $ECHO_N "(cached) $ECHO_C" >&6
5534 else
5535   cat >conftest.$ac_ext <<_ACEOF
5536 /* confdefs.h.  */
5537 _ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h.  */
5541 $ac_includes_default
5542
5543 #include <$ac_header>
5544 _ACEOF
5545 rm -f conftest.$ac_objext
5546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5547   (eval $ac_compile) 2>conftest.er1
5548   ac_status=$?
5549   grep -v '^ *+' conftest.er1 >conftest.err
5550   rm -f conftest.er1
5551   cat conftest.err >&5
5552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553   (exit $ac_status); } &&
5554          { ac_try='test -z "$ac_c_werror_flag"
5555                          || test ! -s conftest.err'
5556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557   (eval $ac_try) 2>&5
5558   ac_status=$?
5559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560   (exit $ac_status); }; } &&
5561          { ac_try='test -s conftest.$ac_objext'
5562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5563   (eval $ac_try) 2>&5
5564   ac_status=$?
5565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566   (exit $ac_status); }; }; then
5567   eval "$as_ac_Header=yes"
5568 else
5569   echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5571
5572 eval "$as_ac_Header=no"
5573 fi
5574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5575 fi
5576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5579   cat >>confdefs.h <<_ACEOF
5580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5581 _ACEOF
5582
5583 fi
5584
5585 done
5586
5587
5588
5589 # This can be used to rebuild libtool when needed
5590 LIBTOOL_DEPS="$ltmain"
5591
5592 # Always use our own libtool.
5593 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619 test -z "$LN_S" && LN_S="ln -s"
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634 if test -n "${ZSH_VERSION+set}" ; then
5635    setopt NO_GLOB_SUBST
5636 fi
5637
5638 echo "$as_me:$LINENO: checking for objdir" >&5
5639 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5640 if test "${lt_cv_objdir+set}" = set; then
5641   echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643   rm -f .libs 2>/dev/null
5644 mkdir .libs 2>/dev/null
5645 if test -d .libs; then
5646   lt_cv_objdir=.libs
5647 else
5648   # MS-DOS does not allow filenames that begin with a dot.
5649   lt_cv_objdir=_libs
5650 fi
5651 rmdir .libs 2>/dev/null
5652 fi
5653 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5654 echo "${ECHO_T}$lt_cv_objdir" >&6
5655 objdir=$lt_cv_objdir
5656
5657
5658
5659
5660
5661 cat >>confdefs.h <<_ACEOF
5662 #define LT_OBJDIR "$lt_cv_objdir/"
5663 _ACEOF
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681 case $host_os in
5682 aix3*)
5683   # AIX sometimes has problems with the GCC collect2 program.  For some
5684   # reason, if we set the COLLECT_NAMES environment variable, the problems
5685   # vanish in a puff of smoke.
5686   if test "X${COLLECT_NAMES+set}" != Xset; then
5687     COLLECT_NAMES=
5688     export COLLECT_NAMES
5689   fi
5690   ;;
5691 esac
5692
5693 # Sed substitution that helps us do robust quoting.  It backslashifies
5694 # metacharacters that are still active within double-quoted strings.
5695 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5696
5697 # Same as above, but do not quote variable references.
5698 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5699
5700 # Sed substitution to delay expansion of an escaped shell variable in a
5701 # double_quote_subst'ed string.
5702 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5703
5704 # Sed substitution to delay expansion of an escaped single quote.
5705 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5706
5707 # Sed substitution to avoid accidental globbing in evaled expressions
5708 no_glob_subst='s/\*/\\\*/g'
5709
5710 # Global variables:
5711 ofile=libtool
5712 can_build_shared=yes
5713
5714 # All known linkers require a `.a' archive for static linking (except MSVC,
5715 # which needs '.lib').
5716 libext=a
5717
5718 with_gnu_ld="$lt_cv_prog_gnu_ld"
5719
5720 old_CC="$CC"
5721 old_CFLAGS="$CFLAGS"
5722
5723 # Set sane defaults for various variables
5724 test -z "$CC" && CC=cc
5725 test -z "$LTCC" && LTCC=$CC
5726 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5727 test -z "$LD" && LD=ld
5728 test -z "$ac_objext" && ac_objext=o
5729
5730 for cc_temp in $compiler""; do
5731   case $cc_temp in
5732     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5733     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5734     \-*) ;;
5735     *) break;;
5736   esac
5737 done
5738 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5739
5740
5741 # Only perform the check for file, if the check method requires it
5742 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5743 case $deplibs_check_method in
5744 file_magic*)
5745   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5746     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5747 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5748 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5749   echo $ECHO_N "(cached) $ECHO_C" >&6
5750 else
5751   case $MAGIC_CMD in
5752 [\\/*] |  ?:[\\/]*)
5753   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5754   ;;
5755 *)
5756   lt_save_MAGIC_CMD="$MAGIC_CMD"
5757   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5758   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5759   for ac_dir in $ac_dummy; do
5760     IFS="$lt_save_ifs"
5761     test -z "$ac_dir" && ac_dir=.
5762     if test -f $ac_dir/${ac_tool_prefix}file; then
5763       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5764       if test -n "$file_magic_test_file"; then
5765         case $deplibs_check_method in
5766         "file_magic "*)
5767           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5768           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5769           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5770             $EGREP "$file_magic_regex" > /dev/null; then
5771             :
5772           else
5773             cat <<_LT_EOF 1>&2
5774
5775 *** Warning: the command libtool uses to detect shared libraries,
5776 *** $file_magic_cmd, produces output that libtool cannot recognize.
5777 *** The result is that libtool may fail to recognize shared libraries
5778 *** as such.  This will affect the creation of libtool libraries that
5779 *** depend on shared libraries, but programs linked with such libtool
5780 *** libraries will work regardless of this problem.  Nevertheless, you
5781 *** may want to report the problem to your system manager and/or to
5782 *** bug-libtool@gnu.org
5783
5784 _LT_EOF
5785           fi ;;
5786         esac
5787       fi
5788       break
5789     fi
5790   done
5791   IFS="$lt_save_ifs"
5792   MAGIC_CMD="$lt_save_MAGIC_CMD"
5793   ;;
5794 esac
5795 fi
5796
5797 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5798 if test -n "$MAGIC_CMD"; then
5799   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5800 echo "${ECHO_T}$MAGIC_CMD" >&6
5801 else
5802   echo "$as_me:$LINENO: result: no" >&5
5803 echo "${ECHO_T}no" >&6
5804 fi
5805
5806
5807
5808
5809
5810 if test -z "$lt_cv_path_MAGIC_CMD"; then
5811   if test -n "$ac_tool_prefix"; then
5812     echo "$as_me:$LINENO: checking for file" >&5
5813 echo $ECHO_N "checking for file... $ECHO_C" >&6
5814 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5815   echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817   case $MAGIC_CMD in
5818 [\\/*] |  ?:[\\/]*)
5819   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5820   ;;
5821 *)
5822   lt_save_MAGIC_CMD="$MAGIC_CMD"
5823   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5824   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5825   for ac_dir in $ac_dummy; do
5826     IFS="$lt_save_ifs"
5827     test -z "$ac_dir" && ac_dir=.
5828     if test -f $ac_dir/file; then
5829       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5830       if test -n "$file_magic_test_file"; then
5831         case $deplibs_check_method in
5832         "file_magic "*)
5833           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5834           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5835           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5836             $EGREP "$file_magic_regex" > /dev/null; then
5837             :
5838           else
5839             cat <<_LT_EOF 1>&2
5840
5841 *** Warning: the command libtool uses to detect shared libraries,
5842 *** $file_magic_cmd, produces output that libtool cannot recognize.
5843 *** The result is that libtool may fail to recognize shared libraries
5844 *** as such.  This will affect the creation of libtool libraries that
5845 *** depend on shared libraries, but programs linked with such libtool
5846 *** libraries will work regardless of this problem.  Nevertheless, you
5847 *** may want to report the problem to your system manager and/or to
5848 *** bug-libtool@gnu.org
5849
5850 _LT_EOF
5851           fi ;;
5852         esac
5853       fi
5854       break
5855     fi
5856   done
5857   IFS="$lt_save_ifs"
5858   MAGIC_CMD="$lt_save_MAGIC_CMD"
5859   ;;
5860 esac
5861 fi
5862
5863 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5864 if test -n "$MAGIC_CMD"; then
5865   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5866 echo "${ECHO_T}$MAGIC_CMD" >&6
5867 else
5868   echo "$as_me:$LINENO: result: no" >&5
5869 echo "${ECHO_T}no" >&6
5870 fi
5871
5872
5873   else
5874     MAGIC_CMD=:
5875   fi
5876 fi
5877
5878   fi
5879   ;;
5880 esac
5881
5882 # Use C for the default configuration in the libtool script
5883
5884 lt_save_CC="$CC"
5885 ac_ext=c
5886 ac_cpp='$CPP $CPPFLAGS'
5887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5890
5891
5892 # Source file extension for C test sources.
5893 ac_ext=c
5894
5895 # Object file extension for compiled C test sources.
5896 objext=o
5897 objext=$objext
5898
5899 # Code to be used in simple compile tests
5900 lt_simple_compile_test_code="int some_variable = 0;"
5901
5902 # Code to be used in simple link tests
5903 lt_simple_link_test_code='int main(){return(0);}'
5904
5905
5906
5907
5908
5909
5910
5911 # If no C compiler was specified, use CC.
5912 LTCC=${LTCC-"$CC"}
5913
5914 # If no C compiler flags were specified, use CFLAGS.
5915 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5916
5917 # Allow CC to be a program name with arguments.
5918 compiler=$CC
5919
5920 # Save the default compiler, since it gets overwritten when the other
5921 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5922 compiler_DEFAULT=$CC
5923
5924 # save warnings/boilerplate of simple test code
5925 ac_outfile=conftest.$ac_objext
5926 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5927 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5928 _lt_compiler_boilerplate=`cat conftest.err`
5929 $RM conftest*
5930
5931 ac_outfile=conftest.$ac_objext
5932 echo "$lt_simple_link_test_code" >conftest.$ac_ext
5933 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5934 _lt_linker_boilerplate=`cat conftest.err`
5935 $RM conftest*
5936
5937
5938 ## CAVEAT EMPTOR:
5939 ## There is no encapsulation within the following macros, do not change
5940 ## the running order or otherwise move them around unless you know exactly
5941 ## what you are doing...
5942 if test -n "$compiler"; then
5943
5944 lt_prog_compiler_no_builtin_flag=
5945
5946 if test "$GCC" = yes; then
5947   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5948
5949   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5950 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5951 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5952   echo $ECHO_N "(cached) $ECHO_C" >&6
5953 else
5954   lt_cv_prog_compiler_rtti_exceptions=no
5955    ac_outfile=conftest.$ac_objext
5956    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5957    lt_compiler_flag="-fno-rtti -fno-exceptions"
5958    # Insert the option either (1) after the last *FLAGS variable, or
5959    # (2) before a word containing "conftest.", or (3) at the end.
5960    # Note that $ac_compile itself does not contain backslashes and begins
5961    # with a dollar sign (not a hyphen), so the echo should work correctly.
5962    # The option is referenced via a variable to avoid confusing sed.
5963    lt_compile=`echo "$ac_compile" | $SED \
5964    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5965    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5966    -e 's:$: $lt_compiler_flag:'`
5967    (eval echo "\"\$as_me:5967: $lt_compile\"" >&5)
5968    (eval "$lt_compile" 2>conftest.err)
5969    ac_status=$?
5970    cat conftest.err >&5
5971    echo "$as_me:5971: \$? = $ac_status" >&5
5972    if (exit $ac_status) && test -s "$ac_outfile"; then
5973      # The compiler can only warn and ignore the option if not recognized
5974      # So say no if there are warnings other than the usual output.
5975      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5976      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5977      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5978        lt_cv_prog_compiler_rtti_exceptions=yes
5979      fi
5980    fi
5981    $RM conftest*
5982
5983 fi
5984 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5985 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5986
5987 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5988     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5989 else
5990     :
5991 fi
5992
5993 fi
5994
5995
5996
5997
5998
5999
6000   lt_prog_compiler_wl=
6001 lt_prog_compiler_pic=
6002 lt_prog_compiler_static=
6003
6004 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6005 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6006
6007   if test "$GCC" = yes; then
6008     lt_prog_compiler_wl='-Wl,'
6009     lt_prog_compiler_static='-static'
6010
6011     case $host_os in
6012       aix*)
6013       # All AIX code is PIC.
6014       if test "$host_cpu" = ia64; then
6015         # AIX 5 now supports IA64 processor
6016         lt_prog_compiler_static='-Bstatic'
6017       fi
6018       ;;
6019
6020     amigaos*)
6021       if test "$host_cpu" = m68k; then
6022         # FIXME: we need at least 68020 code to build shared libraries, but
6023         # adding the `-m68020' flag to GCC prevents building anything better,
6024         # like `-m68040'.
6025         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6026       fi
6027       ;;
6028
6029     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6030       # PIC is the default for these OSes.
6031       ;;
6032
6033     mingw* | cygwin* | pw32* | os2*)
6034       # This hack is so that the source file can tell whether it is being
6035       # built for inclusion in a dll (and should export symbols for example).
6036       # Although the cygwin gcc ignores -fPIC, still need this for old-style
6037       # (--disable-auto-import) libraries
6038       lt_prog_compiler_pic='-DDLL_EXPORT'
6039       ;;
6040
6041     darwin* | rhapsody*)
6042       # PIC is the default on this platform
6043       # Common symbols not allowed in MH_DYLIB files
6044       lt_prog_compiler_pic='-fno-common'
6045       ;;
6046
6047     hpux*)
6048       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6049       # not for PA HP-UX.
6050       case $host_cpu in
6051       hppa*64*|ia64*)
6052         # +Z the default
6053         ;;
6054       *)
6055         lt_prog_compiler_pic='-fPIC'
6056         ;;
6057       esac
6058       ;;
6059
6060     interix[3-9]*)
6061       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6062       # Instead, we relocate shared libraries at runtime.
6063       ;;
6064
6065     msdosdjgpp*)
6066       # Just because we use GCC doesn't mean we suddenly get shared libraries
6067       # on systems that don't support them.
6068       lt_prog_compiler_can_build_shared=no
6069       enable_shared=no
6070       ;;
6071
6072     *nto* | *qnx*)
6073       # QNX uses GNU C++, but need to define -shared option too, otherwise
6074       # it will coredump.
6075       lt_prog_compiler_pic='-fPIC -shared'
6076       ;;
6077
6078     sysv4*MP*)
6079       if test -d /usr/nec; then
6080         lt_prog_compiler_pic=-Kconform_pic
6081       fi
6082       ;;
6083
6084     *)
6085       lt_prog_compiler_pic='-fPIC'
6086       ;;
6087     esac
6088   else
6089     # PORTME Check for flag to pass linker flags through the system compiler.
6090     case $host_os in
6091     aix*)
6092       lt_prog_compiler_wl='-Wl,'
6093       if test "$host_cpu" = ia64; then
6094         # AIX 5 now supports IA64 processor
6095         lt_prog_compiler_static='-Bstatic'
6096       else
6097         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6098       fi
6099       ;;
6100     darwin*)
6101       # PIC is the default on this platform
6102       # Common symbols not allowed in MH_DYLIB files
6103       case $cc_basename in
6104       xlc*)
6105         lt_prog_compiler_pic='-qnocommon'
6106         lt_prog_compiler_wl='-Wl,'
6107         ;;
6108       esac
6109       ;;
6110
6111     mingw* | cygwin* | pw32* | os2*)
6112       # This hack is so that the source file can tell whether it is being
6113       # built for inclusion in a dll (and should export symbols for example).
6114       lt_prog_compiler_pic='-DDLL_EXPORT'
6115       ;;
6116
6117     hpux9* | hpux10* | hpux11*)
6118       lt_prog_compiler_wl='-Wl,'
6119       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6120       # not for PA HP-UX.
6121       case $host_cpu in
6122       hppa*64*|ia64*)
6123         # +Z the default
6124         ;;
6125       *)
6126         lt_prog_compiler_pic='+Z'
6127         ;;
6128       esac
6129       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6130       lt_prog_compiler_static='${wl}-a ${wl}archive'
6131       ;;
6132
6133     irix5* | irix6* | nonstopux*)
6134       lt_prog_compiler_wl='-Wl,'
6135       # PIC (with -KPIC) is the default.
6136       lt_prog_compiler_static='-non_shared'
6137       ;;
6138
6139     linux* | k*bsd*-gnu)
6140       case $cc_basename in
6141       icc* | ecc*)
6142         lt_prog_compiler_wl='-Wl,'
6143         lt_prog_compiler_pic='-KPIC'
6144         lt_prog_compiler_static='-static'
6145         ;;
6146       pgcc* | pgf77* | pgf90* | pgf95*)
6147         # Portland Group compilers (*not* the Pentium gcc compiler,
6148         # which looks to be a dead project)
6149         lt_prog_compiler_wl='-Wl,'
6150         lt_prog_compiler_pic='-fpic'
6151         lt_prog_compiler_static='-Bstatic'
6152         ;;
6153       ccc*)
6154         lt_prog_compiler_wl='-Wl,'
6155         # All Alpha code is PIC.
6156         lt_prog_compiler_static='-non_shared'
6157         ;;
6158       *)
6159         case `$CC -V 2>&1 | sed 5q` in
6160         *Sun\ C*)
6161           # Sun C 5.9
6162           lt_prog_compiler_pic='-KPIC'
6163           lt_prog_compiler_static='-Bstatic'
6164           lt_prog_compiler_wl='-Wl,'
6165           ;;
6166         *Sun\ F*)
6167           # Sun Fortran 8.3 passes all unrecognized flags to the linker
6168           lt_prog_compiler_pic='-KPIC'
6169           lt_prog_compiler_static='-Bstatic'
6170           lt_prog_compiler_wl=''
6171           ;;
6172         esac
6173         ;;
6174       esac
6175       ;;
6176
6177     newsos6)
6178       lt_prog_compiler_pic='-KPIC'
6179       lt_prog_compiler_static='-Bstatic'
6180       ;;
6181
6182     *nto* | *qnx*)
6183       # QNX uses GNU C++, but need to define -shared option too, otherwise
6184       # it will coredump.
6185       lt_prog_compiler_pic='-fPIC -shared'
6186       ;;
6187
6188     osf3* | osf4* | osf5*)
6189       lt_prog_compiler_wl='-Wl,'
6190       # All OSF/1 code is PIC.
6191       lt_prog_compiler_static='-non_shared'
6192       ;;
6193
6194     rdos*)
6195       lt_prog_compiler_static='-non_shared'
6196       ;;
6197
6198     solaris*)
6199       lt_prog_compiler_pic='-KPIC'
6200       lt_prog_compiler_static='-Bstatic'
6201       case $cc_basename in
6202       f77* | f90* | f95*)
6203         lt_prog_compiler_wl='-Qoption ld ';;
6204       *)
6205         lt_prog_compiler_wl='-Wl,';;
6206       esac
6207       ;;
6208
6209     sunos4*)
6210       lt_prog_compiler_wl='-Qoption ld '
6211       lt_prog_compiler_pic='-PIC'
6212       lt_prog_compiler_static='-Bstatic'
6213       ;;
6214
6215     sysv4 | sysv4.2uw2* | sysv4.3*)
6216       lt_prog_compiler_wl='-Wl,'
6217       lt_prog_compiler_pic='-KPIC'
6218       lt_prog_compiler_static='-Bstatic'
6219       ;;
6220
6221     sysv4*MP*)
6222       if test -d /usr/nec ;then
6223         lt_prog_compiler_pic='-Kconform_pic'
6224         lt_prog_compiler_static='-Bstatic'
6225       fi
6226       ;;
6227
6228     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6229       lt_prog_compiler_wl='-Wl,'
6230       lt_prog_compiler_pic='-KPIC'
6231       lt_prog_compiler_static='-Bstatic'
6232       ;;
6233
6234     unicos*)
6235       lt_prog_compiler_wl='-Wl,'
6236       lt_prog_compiler_can_build_shared=no
6237       ;;
6238
6239     uts4*)
6240       lt_prog_compiler_pic='-pic'
6241       lt_prog_compiler_static='-Bstatic'
6242       ;;
6243
6244     *)
6245       lt_prog_compiler_can_build_shared=no
6246       ;;
6247     esac
6248   fi
6249
6250 case $host_os in
6251   # For platforms which do not support PIC, -DPIC is meaningless:
6252   *djgpp*)
6253     lt_prog_compiler_pic=
6254     ;;
6255   *)
6256     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6257     ;;
6258 esac
6259 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6260 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6261
6262
6263
6264
6265
6266
6267 #
6268 # Check to make sure the PIC flag actually works.
6269 #
6270 if test -n "$lt_prog_compiler_pic"; then
6271   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6272 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6273 if test "${lt_prog_compiler_pic_works+set}" = set; then
6274   echo $ECHO_N "(cached) $ECHO_C" >&6
6275 else
6276   lt_prog_compiler_pic_works=no
6277    ac_outfile=conftest.$ac_objext
6278    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6279    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6280    # Insert the option either (1) after the last *FLAGS variable, or
6281    # (2) before a word containing "conftest.", or (3) at the end.
6282    # Note that $ac_compile itself does not contain backslashes and begins
6283    # with a dollar sign (not a hyphen), so the echo should work correctly.
6284    # The option is referenced via a variable to avoid confusing sed.
6285    lt_compile=`echo "$ac_compile" | $SED \
6286    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6287    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6288    -e 's:$: $lt_compiler_flag:'`
6289    (eval echo "\"\$as_me:6289: $lt_compile\"" >&5)
6290    (eval "$lt_compile" 2>conftest.err)
6291    ac_status=$?
6292    cat conftest.err >&5
6293    echo "$as_me:6293: \$? = $ac_status" >&5
6294    if (exit $ac_status) && test -s "$ac_outfile"; then
6295      # The compiler can only warn and ignore the option if not recognized
6296      # So say no if there are warnings other than the usual output.
6297      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6298      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6299      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6300        lt_prog_compiler_pic_works=yes
6301      fi
6302    fi
6303    $RM conftest*
6304
6305 fi
6306 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6307 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6308
6309 if test x"$lt_prog_compiler_pic_works" = xyes; then
6310     case $lt_prog_compiler_pic in
6311      "" | " "*) ;;
6312      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6313      esac
6314 else
6315     lt_prog_compiler_pic=
6316      lt_prog_compiler_can_build_shared=no
6317 fi
6318
6319 fi
6320
6321
6322
6323
6324
6325
6326 #
6327 # Check to make sure the static flag actually works.
6328 #
6329 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6330 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6331 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6332 if test "${lt_prog_compiler_static_works+set}" = set; then
6333   echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335   lt_prog_compiler_static_works=no
6336    save_LDFLAGS="$LDFLAGS"
6337    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6338    echo "$lt_simple_link_test_code" > conftest.$ac_ext
6339    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6340      # The linker can only warn and ignore the option if not recognized
6341      # So say no if there are warnings
6342      if test -s conftest.err; then
6343        # Append any errors to the config.log.
6344        cat conftest.err 1>&5
6345        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6346        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6347        if diff conftest.exp conftest.er2 >/dev/null; then
6348          lt_prog_compiler_static_works=yes
6349        fi
6350      else
6351        lt_prog_compiler_static_works=yes
6352      fi
6353    fi
6354    $RM conftest*
6355    LDFLAGS="$save_LDFLAGS"
6356
6357 fi
6358 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6359 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6360
6361 if test x"$lt_prog_compiler_static_works" = xyes; then
6362     :
6363 else
6364     lt_prog_compiler_static=
6365 fi
6366
6367
6368
6369
6370
6371
6372
6373   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6374 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6375 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6376   echo $ECHO_N "(cached) $ECHO_C" >&6
6377 else
6378   lt_cv_prog_compiler_c_o=no
6379    $RM -r conftest 2>/dev/null
6380    mkdir conftest
6381    cd conftest
6382    mkdir out
6383    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6384
6385    lt_compiler_flag="-o out/conftest2.$ac_objext"
6386    # Insert the option either (1) after the last *FLAGS variable, or
6387    # (2) before a word containing "conftest.", or (3) at the end.
6388    # Note that $ac_compile itself does not contain backslashes and begins
6389    # with a dollar sign (not a hyphen), so the echo should work correctly.
6390    lt_compile=`echo "$ac_compile" | $SED \
6391    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6392    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6393    -e 's:$: $lt_compiler_flag:'`
6394    (eval echo "\"\$as_me:6394: $lt_compile\"" >&5)
6395    (eval "$lt_compile" 2>out/conftest.err)
6396    ac_status=$?
6397    cat out/conftest.err >&5
6398    echo "$as_me:6398: \$? = $ac_status" >&5
6399    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6400    then
6401      # The compiler can only warn and ignore the option if not recognized
6402      # So say no if there are warnings
6403      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6404      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6405      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6406        lt_cv_prog_compiler_c_o=yes
6407      fi
6408    fi
6409    chmod u+w . 2>&5
6410    $RM conftest*
6411    # SGI C++ compiler will create directory out/ii_files/ for
6412    # template instantiation
6413    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6414    $RM out/* && rmdir out
6415    cd ..
6416    $RM -r conftest
6417    $RM conftest*
6418
6419 fi
6420 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6421 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6422
6423
6424
6425
6426
6427
6428   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6429 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6430 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6431   echo $ECHO_N "(cached) $ECHO_C" >&6
6432 else
6433   lt_cv_prog_compiler_c_o=no
6434    $RM -r conftest 2>/dev/null
6435    mkdir conftest
6436    cd conftest
6437    mkdir out
6438    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6439
6440    lt_compiler_flag="-o out/conftest2.$ac_objext"
6441    # Insert the option either (1) after the last *FLAGS variable, or
6442    # (2) before a word containing "conftest.", or (3) at the end.
6443    # Note that $ac_compile itself does not contain backslashes and begins
6444    # with a dollar sign (not a hyphen), so the echo should work correctly.
6445    lt_compile=`echo "$ac_compile" | $SED \
6446    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6447    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6448    -e 's:$: $lt_compiler_flag:'`
6449    (eval echo "\"\$as_me:6449: $lt_compile\"" >&5)
6450    (eval "$lt_compile" 2>out/conftest.err)
6451    ac_status=$?
6452    cat out/conftest.err >&5
6453    echo "$as_me:6453: \$? = $ac_status" >&5
6454    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6455    then
6456      # The compiler can only warn and ignore the option if not recognized
6457      # So say no if there are warnings
6458      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6459      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6460      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6461        lt_cv_prog_compiler_c_o=yes
6462      fi
6463    fi
6464    chmod u+w . 2>&5
6465    $RM conftest*
6466    # SGI C++ compiler will create directory out/ii_files/ for
6467    # template instantiation
6468    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6469    $RM out/* && rmdir out
6470    cd ..
6471    $RM -r conftest
6472    $RM conftest*
6473
6474 fi
6475 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6476 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6477
6478
6479
6480
6481 hard_links="nottested"
6482 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6483   # do not overwrite the value of need_locks provided by the user
6484   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6485 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6486   hard_links=yes
6487   $RM conftest*
6488   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6489   touch conftest.a
6490   ln conftest.a conftest.b 2>&5 || hard_links=no
6491   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6492   echo "$as_me:$LINENO: result: $hard_links" >&5
6493 echo "${ECHO_T}$hard_links" >&6
6494   if test "$hard_links" = no; then
6495     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6496 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6497     need_locks=warn
6498   fi
6499 else
6500   need_locks=no
6501 fi
6502
6503
6504
6505
6506
6507
6508   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6509 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6510
6511   runpath_var=
6512   allow_undefined_flag=
6513   always_export_symbols=no
6514   archive_cmds=
6515   archive_expsym_cmds=
6516   compiler_needs_object=no
6517   enable_shared_with_static_runtimes=no
6518   export_dynamic_flag_spec=
6519   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6520   hardcode_automatic=no
6521   hardcode_direct=no
6522   hardcode_direct_absolute=no
6523   hardcode_libdir_flag_spec=
6524   hardcode_libdir_flag_spec_ld=
6525   hardcode_libdir_separator=
6526   hardcode_minus_L=no
6527   hardcode_shlibpath_var=unsupported
6528   inherit_rpath=no
6529   link_all_deplibs=unknown
6530   module_cmds=
6531   module_expsym_cmds=
6532   old_archive_from_new_cmds=
6533   old_archive_from_expsyms_cmds=
6534   thread_safe_flag_spec=
6535   whole_archive_flag_spec=
6536   # include_expsyms should be a list of space-separated symbols to be *always*
6537   # included in the symbol list
6538   include_expsyms=
6539   # exclude_expsyms can be an extended regexp of symbols to exclude
6540   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6541   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6542   # as well as any symbol that contains `d'.
6543   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6544   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6545   # platforms (ab)use it in PIC code, but their linkers get confused if
6546   # the symbol is explicitly referenced.  Since portable code cannot
6547   # rely on this symbol name, it's probably fine to never include it in
6548   # preloaded symbol tables.
6549   extract_expsyms_cmds=
6550
6551   case $host_os in
6552   cygwin* | mingw* | pw32*)
6553     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6554     # When not using gcc, we currently assume that we are using
6555     # Microsoft Visual C++.
6556     if test "$GCC" != yes; then
6557       with_gnu_ld=no
6558     fi
6559     ;;
6560   interix*)
6561     # we just hope/assume this is gcc and not c89 (= MSVC++)
6562     with_gnu_ld=yes
6563     ;;
6564   openbsd*)
6565     with_gnu_ld=no
6566     ;;
6567   esac
6568
6569   ld_shlibs=yes
6570   if test "$with_gnu_ld" = yes; then
6571     # If archive_cmds runs LD, not CC, wlarc should be empty
6572     wlarc='${wl}'
6573
6574     # Set some defaults for GNU ld with shared library support. These
6575     # are reset later if shared libraries are not supported. Putting them
6576     # here allows them to be overridden if necessary.
6577     runpath_var=LD_RUN_PATH
6578     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6579     export_dynamic_flag_spec='${wl}--export-dynamic'
6580     # ancient GNU ld didn't support --whole-archive et. al.
6581     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6582       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6583     else
6584       whole_archive_flag_spec=
6585     fi
6586     supports_anon_versioning=no
6587     case `$LD -v 2>&1` in
6588       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6589       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6590       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6591       *\ 2.11.*) ;; # other 2.11 versions
6592       *) supports_anon_versioning=yes ;;
6593     esac
6594
6595     # See if GNU ld supports shared libraries.
6596     case $host_os in
6597     aix[3-9]*)
6598       # On AIX/PPC, the GNU linker is very broken
6599       if test "$host_cpu" != ia64; then
6600         ld_shlibs=no
6601         cat <<_LT_EOF 1>&2
6602
6603 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6604 *** to be unable to reliably create shared libraries on AIX.
6605 *** Therefore, libtool is disabling shared libraries support.  If you
6606 *** really care for shared libraries, you may want to modify your PATH
6607 *** so that a non-GNU linker is found, and then restart.
6608
6609 _LT_EOF
6610       fi
6611       ;;
6612
6613     amigaos*)
6614       if test "$host_cpu" = m68k; then
6615         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)'
6616         hardcode_libdir_flag_spec='-L$libdir'
6617         hardcode_minus_L=yes
6618       fi
6619
6620       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6621       # that the semantics of dynamic libraries on AmigaOS, at least up
6622       # to version 4, is to share data among multiple programs linked
6623       # with the same dynamic library.  Since this doesn't match the
6624       # behavior of shared libraries on other platforms, we can't use
6625       # them.
6626       ld_shlibs=no
6627       ;;
6628
6629     beos*)
6630       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6631         allow_undefined_flag=unsupported
6632         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6633         # support --undefined.  This deserves some investigation.  FIXME
6634         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6635       else
6636         ld_shlibs=no
6637       fi
6638       ;;
6639
6640     cygwin* | mingw* | pw32*)
6641       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6642       # as there is no search path for DLLs.
6643       hardcode_libdir_flag_spec='-L$libdir'
6644       allow_undefined_flag=unsupported
6645       always_export_symbols=no
6646       enable_shared_with_static_runtimes=yes
6647       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6648
6649       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6650         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6651         # If the export-symbols file already is a .def file (1st line
6652         # is EXPORTS), use it as is; otherwise, prepend...
6653         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6654           cp $export_symbols $output_objdir/$soname.def;
6655         else
6656           echo EXPORTS > $output_objdir/$soname.def;
6657           cat $export_symbols >> $output_objdir/$soname.def;
6658         fi~
6659         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6660       else
6661         ld_shlibs=no
6662       fi
6663       ;;
6664
6665     interix[3-9]*)
6666       hardcode_direct=no
6667       hardcode_shlibpath_var=no
6668       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6669       export_dynamic_flag_spec='${wl}-E'
6670       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6671       # Instead, shared libraries are loaded at an image base (0x10000000 by
6672       # default) and relocated if they conflict, which is a slow very memory
6673       # consuming and fragmenting process.  To avoid this, we pick a random,
6674       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6675       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6676       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6677       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6678       ;;
6679
6680     gnu* | linux* | tpf* | k*bsd*-gnu)
6681       tmp_diet=no
6682       if test "$host_os" = linux-dietlibc; then
6683         case $cc_basename in
6684           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
6685         esac
6686       fi
6687       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6688          && test "$tmp_diet" = no
6689       then
6690         tmp_addflag=
6691         case $cc_basename,$host_cpu in
6692         pgcc*)                          # Portland Group C compiler
6693           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6694           tmp_addflag=' $pic_flag'
6695           ;;
6696         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6697           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6698           tmp_addflag=' $pic_flag -Mnomain' ;;
6699         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
6700           tmp_addflag=' -i_dynamic' ;;
6701         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6702           tmp_addflag=' -i_dynamic -nofor_main' ;;
6703         ifc* | ifort*)                  # Intel Fortran compiler
6704           tmp_addflag=' -nofor_main' ;;
6705         esac
6706         case `$CC -V 2>&1 | sed 5q` in
6707         *Sun\ C*)                       # Sun C 5.9
6708           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6709           compiler_needs_object=yes
6710           tmp_sharedflag='-G' ;;
6711         *Sun\ F*)                       # Sun Fortran 8.3
6712           tmp_sharedflag='-G' ;;
6713         *)
6714           tmp_sharedflag='-shared' ;;
6715         esac
6716         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6717
6718         if test "x$supports_anon_versioning" = xyes; then
6719           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6720             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6721             echo "local: *; };" >> $output_objdir/$libname.ver~
6722             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6723         fi
6724       else
6725         ld_shlibs=no
6726       fi
6727       ;;
6728
6729     netbsd*)
6730       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6731         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6732         wlarc=
6733       else
6734         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6735         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6736       fi
6737       ;;
6738
6739     solaris*)
6740       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6741         ld_shlibs=no
6742         cat <<_LT_EOF 1>&2
6743
6744 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6745 *** create shared libraries on Solaris systems.  Therefore, libtool
6746 *** is disabling shared libraries support.  We urge you to upgrade GNU
6747 *** binutils to release 2.9.1 or newer.  Another option is to modify
6748 *** your PATH or compiler configuration so that the native linker is
6749 *** used, and then restart.
6750
6751 _LT_EOF
6752       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6753         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6754         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6755       else
6756         ld_shlibs=no
6757       fi
6758       ;;
6759
6760     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6761       case `$LD -v 2>&1` in
6762         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6763         ld_shlibs=no
6764         cat <<_LT_EOF 1>&2
6765
6766 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6767 *** reliably create shared libraries on SCO systems.  Therefore, libtool
6768 *** is disabling shared libraries support.  We urge you to upgrade GNU
6769 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6770 *** your PATH or compiler configuration so that the native linker is
6771 *** used, and then restart.
6772
6773 _LT_EOF
6774         ;;
6775         *)
6776           # For security reasons, it is highly recommended that you always
6777           # use absolute paths for naming shared libraries, and exclude the
6778           # DT_RUNPATH tag from executables and libraries.  But doing so
6779           # requires that you compile everything twice, which is a pain.
6780           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6781             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6782             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6783             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6784           else
6785             ld_shlibs=no
6786           fi
6787         ;;
6788       esac
6789       ;;
6790
6791     sunos4*)
6792       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6793       wlarc=
6794       hardcode_direct=yes
6795       hardcode_shlibpath_var=no
6796       ;;
6797
6798     *)
6799       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6800         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6801         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6802       else
6803         ld_shlibs=no
6804       fi
6805       ;;
6806     esac
6807
6808     if test "$ld_shlibs" = no; then
6809       runpath_var=
6810       hardcode_libdir_flag_spec=
6811       export_dynamic_flag_spec=
6812       whole_archive_flag_spec=
6813     fi
6814   else
6815     # PORTME fill in a description of your system's linker (not GNU ld)
6816     case $host_os in
6817     aix3*)
6818       allow_undefined_flag=unsupported
6819       always_export_symbols=yes
6820       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'
6821       # Note: this linker hardcodes the directories in LIBPATH if there
6822       # are no directories specified by -L.
6823       hardcode_minus_L=yes
6824       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6825         # Neither direct hardcoding nor static linking is supported with a
6826         # broken collect2.
6827         hardcode_direct=unsupported
6828       fi
6829       ;;
6830
6831     aix[4-9]*)
6832       if test "$host_cpu" = ia64; then
6833         # On IA64, the linker does run time linking by default, so we don't
6834         # have to do anything special.
6835         aix_use_runtimelinking=no
6836         exp_sym_flag='-Bexport'
6837         no_entry_flag=""
6838       else
6839         # If we're using GNU nm, then we don't want the "-C" option.
6840         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6841         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6842           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6843         else
6844           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6845         fi
6846         aix_use_runtimelinking=no
6847
6848         # Test if we are trying to use run time linking or normal
6849         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6850         # need to do runtime linking.
6851         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
6852           for ld_flag in $LDFLAGS; do
6853           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6854             aix_use_runtimelinking=yes
6855             break
6856           fi
6857           done
6858           ;;
6859         esac
6860
6861         exp_sym_flag='-bexport'
6862         no_entry_flag='-bnoentry'
6863       fi
6864
6865       # When large executables or shared objects are built, AIX ld can
6866       # have problems creating the table of contents.  If linking a library
6867       # or program results in "error TOC overflow" add -mminimal-toc to
6868       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6869       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6870
6871       archive_cmds=''
6872       hardcode_direct=yes
6873       hardcode_direct_absolute=yes
6874       hardcode_libdir_separator=':'
6875       link_all_deplibs=yes
6876       file_list_spec='${wl}-f,'
6877
6878       if test "$GCC" = yes; then
6879         case $host_os in aix4.[012]|aix4.[012].*)
6880         # We only want to do this on AIX 4.2 and lower, the check
6881         # below for broken collect2 doesn't work under 4.3+
6882           collect2name=`${CC} -print-prog-name=collect2`
6883           if test -f "$collect2name" &&
6884            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6885           then
6886           # We have reworked collect2
6887           :
6888           else
6889           # We have old collect2
6890           hardcode_direct=unsupported
6891           # It fails to find uninstalled libraries when the uninstalled
6892           # path is not listed in the libpath.  Setting hardcode_minus_L
6893           # to unsupported forces relinking
6894           hardcode_minus_L=yes
6895           hardcode_libdir_flag_spec='-L$libdir'
6896           hardcode_libdir_separator=
6897           fi
6898           ;;
6899         esac
6900         shared_flag='-shared'
6901         if test "$aix_use_runtimelinking" = yes; then
6902           shared_flag="$shared_flag "'${wl}-G'
6903         fi
6904       else
6905         # not using gcc
6906         if test "$host_cpu" = ia64; then
6907         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6908         # chokes on -Wl,-G. The following line is correct:
6909           shared_flag='-G'
6910         else
6911           if test "$aix_use_runtimelinking" = yes; then
6912             shared_flag='${wl}-G'
6913           else
6914             shared_flag='${wl}-bM:SRE'
6915           fi
6916         fi
6917       fi
6918
6919       # It seems that -bexpall does not export symbols beginning with
6920       # underscore (_), so it is better to generate a list of symbols to export.
6921       always_export_symbols=yes
6922       if test "$aix_use_runtimelinking" = yes; then
6923         # Warning - without using the other runtime loading flags (-brtl),
6924         # -berok will link without error, but may produce a broken library.
6925         allow_undefined_flag='-berok'
6926         # Determine the default libpath from the value encoded in an
6927         # empty executable.
6928         if test x$gcc_no_link = xyes; then
6929   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6930 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6931    { (exit 1); exit 1; }; }
6932 fi
6933 cat >conftest.$ac_ext <<_ACEOF
6934 /* confdefs.h.  */
6935 _ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h.  */
6939
6940 int
6941 main ()
6942 {
6943
6944   ;
6945   return 0;
6946 }
6947 _ACEOF
6948 rm -f conftest.$ac_objext conftest$ac_exeext
6949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6950   (eval $ac_link) 2>conftest.er1
6951   ac_status=$?
6952   grep -v '^ *+' conftest.er1 >conftest.err
6953   rm -f conftest.er1
6954   cat conftest.err >&5
6955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956   (exit $ac_status); } &&
6957          { ac_try='test -z "$ac_c_werror_flag"
6958                          || test ! -s conftest.err'
6959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960   (eval $ac_try) 2>&5
6961   ac_status=$?
6962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963   (exit $ac_status); }; } &&
6964          { ac_try='test -s conftest$ac_exeext'
6965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966   (eval $ac_try) 2>&5
6967   ac_status=$?
6968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969   (exit $ac_status); }; }; then
6970
6971 lt_aix_libpath_sed='
6972     /Import File Strings/,/^$/ {
6973         /^0/ {
6974             s/^0  *\(.*\)$/\1/
6975             p
6976         }
6977     }'
6978 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6979 # Check for a 64-bit object if we didn't find anything.
6980 if test -z "$aix_libpath"; then
6981   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6982 fi
6983 else
6984   echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6986
6987 fi
6988 rm -f conftest.err conftest.$ac_objext \
6989       conftest$ac_exeext conftest.$ac_ext
6990 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6991
6992         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6993         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6994       else
6995         if test "$host_cpu" = ia64; then
6996           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6997           allow_undefined_flag="-z nodefs"
6998           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6999         else
7000          # Determine the default libpath from the value encoded in an
7001          # empty executable.
7002          if test x$gcc_no_link = xyes; then
7003   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7004 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7005    { (exit 1); exit 1; }; }
7006 fi
7007 cat >conftest.$ac_ext <<_ACEOF
7008 /* confdefs.h.  */
7009 _ACEOF
7010 cat confdefs.h >>conftest.$ac_ext
7011 cat >>conftest.$ac_ext <<_ACEOF
7012 /* end confdefs.h.  */
7013
7014 int
7015 main ()
7016 {
7017
7018   ;
7019   return 0;
7020 }
7021 _ACEOF
7022 rm -f conftest.$ac_objext conftest$ac_exeext
7023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7024   (eval $ac_link) 2>conftest.er1
7025   ac_status=$?
7026   grep -v '^ *+' conftest.er1 >conftest.err
7027   rm -f conftest.er1
7028   cat conftest.err >&5
7029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030   (exit $ac_status); } &&
7031          { ac_try='test -z "$ac_c_werror_flag"
7032                          || test ! -s conftest.err'
7033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034   (eval $ac_try) 2>&5
7035   ac_status=$?
7036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037   (exit $ac_status); }; } &&
7038          { ac_try='test -s conftest$ac_exeext'
7039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040   (eval $ac_try) 2>&5
7041   ac_status=$?
7042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043   (exit $ac_status); }; }; then
7044
7045 lt_aix_libpath_sed='
7046     /Import File Strings/,/^$/ {
7047         /^0/ {
7048             s/^0  *\(.*\)$/\1/
7049             p
7050         }
7051     }'
7052 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7053 # Check for a 64-bit object if we didn't find anything.
7054 if test -z "$aix_libpath"; then
7055   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7056 fi
7057 else
7058   echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.$ac_ext >&5
7060
7061 fi
7062 rm -f conftest.err conftest.$ac_objext \
7063       conftest$ac_exeext conftest.$ac_ext
7064 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7065
7066          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7067           # Warning - without using the other run time loading flags,
7068           # -berok will link without error, but may produce a broken library.
7069           no_undefined_flag=' ${wl}-bernotok'
7070           allow_undefined_flag=' ${wl}-berok'
7071           # Exported symbols can be pulled into shared objects from archives
7072           whole_archive_flag_spec='$convenience'
7073           archive_cmds_need_lc=yes
7074           # This is similar to how AIX traditionally builds its shared libraries.
7075           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7076         fi
7077       fi
7078       ;;
7079
7080     amigaos*)
7081       if test "$host_cpu" = m68k; then
7082         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)'
7083         hardcode_libdir_flag_spec='-L$libdir'
7084         hardcode_minus_L=yes
7085       fi
7086       # see comment about different semantics on the GNU ld section
7087       ld_shlibs=no
7088       ;;
7089
7090     bsdi[45]*)
7091       export_dynamic_flag_spec=-rdynamic
7092       ;;
7093
7094     cygwin* | mingw* | pw32*)
7095       # When not using gcc, we currently assume that we are using
7096       # Microsoft Visual C++.
7097       # hardcode_libdir_flag_spec is actually meaningless, as there is
7098       # no search path for DLLs.
7099       hardcode_libdir_flag_spec=' '
7100       allow_undefined_flag=unsupported
7101       # Tell ltmain to make .lib files, not .a files.
7102       libext=lib
7103       # Tell ltmain to make .dll files, not .so files.
7104       shrext_cmds=".dll"
7105       # FIXME: Setting linknames here is a bad hack.
7106       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7107       # The linker will automatically build a .lib file if we build a DLL.
7108       old_archive_from_new_cmds='true'
7109       # FIXME: Should let the user specify the lib program.
7110       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7111       fix_srcfile_path='`cygpath -w "$srcfile"`'
7112       enable_shared_with_static_runtimes=yes
7113       ;;
7114
7115     darwin* | rhapsody*)
7116       case $host_os in
7117       rhapsody* | darwin1.[012])
7118         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7119         ;;
7120       *) # Darwin 1.3 on
7121         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7122         10.[012])
7123           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7124           ;;
7125         10.*)
7126           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7127           ;;
7128         esac
7129         ;;
7130       esac
7131       archive_cmds_need_lc=no
7132       hardcode_direct=no
7133       hardcode_automatic=yes
7134       hardcode_shlibpath_var=unsupported
7135       whole_archive_flag_spec=''
7136       link_all_deplibs=yes
7137       if test "$GCC" = yes ; then
7138         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7139   echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141   lt_cv_apple_cc_single_mod=no
7142         if test -z "${LT_MULTI_MODULE}"; then
7143           # By default we will add the -single_module flag. You can override
7144           # by either setting the environment variable LT_MULTI_MODULE
7145           # non-empty at configure time, or by adding -multi-module to the
7146           # link flags.
7147           echo "int foo(void){return 1;}" > conftest.c
7148           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7149               -dynamiclib ${wl}-single_module conftest.c
7150           if test -f libconftest.dylib; then
7151               lt_cv_apple_cc_single_mod=yes
7152               rm libconftest.dylib
7153           fi
7154           rm conftest.$ac_ext
7155         fi
7156 fi
7157
7158         output_verbose_link_cmd=echo
7159         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7160           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7161           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7162         else
7163           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7164           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7165         fi
7166         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7167         module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7168       else
7169         case $cc_basename in
7170         xlc*)
7171           output_verbose_link_cmd=echo
7172           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7173           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7174           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7175           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7176           module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7177           ;;
7178         *)
7179           ld_shlibs=no
7180           ;;
7181         esac
7182       fi
7183       ;;
7184
7185     dgux*)
7186       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7187       hardcode_libdir_flag_spec='-L$libdir'
7188       hardcode_shlibpath_var=no
7189       ;;
7190
7191     freebsd1*)
7192       ld_shlibs=no
7193       ;;
7194
7195     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7196     # support.  Future versions do this automatically, but an explicit c++rt0.o
7197     # does not break anything, and helps significantly (at the cost of a little
7198     # extra space).
7199     freebsd2.2*)
7200       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7201       hardcode_libdir_flag_spec='-R$libdir'
7202       hardcode_direct=yes
7203       hardcode_shlibpath_var=no
7204       ;;
7205
7206     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7207     freebsd2*)
7208       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7209       hardcode_direct=yes
7210       hardcode_minus_L=yes
7211       hardcode_shlibpath_var=no
7212       ;;
7213
7214     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7215     freebsd* | dragonfly*)
7216       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7217       hardcode_libdir_flag_spec='-R$libdir'
7218       hardcode_direct=yes
7219       hardcode_shlibpath_var=no
7220       ;;
7221
7222     hpux9*)
7223       if test "$GCC" = yes; then
7224         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7225       else
7226         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'
7227       fi
7228       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7229       hardcode_libdir_separator=:
7230       hardcode_direct=yes
7231
7232       # hardcode_minus_L: Not really in the search PATH,
7233       # but as the default location of the library.
7234       hardcode_minus_L=yes
7235       export_dynamic_flag_spec='${wl}-E'
7236       ;;
7237
7238     hpux10*)
7239       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7240         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7241       else
7242         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7243       fi
7244       if test "$with_gnu_ld" = no; then
7245         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7246         hardcode_libdir_flag_spec_ld='+b $libdir'
7247         hardcode_libdir_separator=:
7248         hardcode_direct=yes
7249         hardcode_direct_absolute=yes
7250         export_dynamic_flag_spec='${wl}-E'
7251         # hardcode_minus_L: Not really in the search PATH,
7252         # but as the default location of the library.
7253         hardcode_minus_L=yes
7254       fi
7255       ;;
7256
7257     hpux11*)
7258       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7259         case $host_cpu in
7260         hppa*64*)
7261           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7262           ;;
7263         ia64*)
7264           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7265           ;;
7266         *)
7267           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7268           ;;
7269         esac
7270       else
7271         case $host_cpu in
7272         hppa*64*)
7273           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7274           ;;
7275         ia64*)
7276           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7277           ;;
7278         *)
7279           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7280           ;;
7281         esac
7282       fi
7283       if test "$with_gnu_ld" = no; then
7284         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7285         hardcode_libdir_separator=:
7286
7287         case $host_cpu in
7288         hppa*64*|ia64*)
7289           hardcode_direct=no
7290           hardcode_shlibpath_var=no
7291           ;;
7292         *)
7293           hardcode_direct=yes
7294           hardcode_direct_absolute=yes
7295           export_dynamic_flag_spec='${wl}-E'
7296
7297           # hardcode_minus_L: Not really in the search PATH,
7298           # but as the default location of the library.
7299           hardcode_minus_L=yes
7300           ;;
7301         esac
7302       fi
7303       ;;
7304
7305     irix5* | irix6* | nonstopux*)
7306       if test "$GCC" = yes; then
7307         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7308         # Try to use the -exported_symbol ld option, if it does not
7309         # work, assume that -exports_file does not work either and
7310         # implicitly export all symbols.
7311         save_LDFLAGS="$LDFLAGS"
7312         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7313         if test x$gcc_no_link = xyes; then
7314   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7315 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7316    { (exit 1); exit 1; }; }
7317 fi
7318 cat >conftest.$ac_ext <<_ACEOF
7319 int foo(void) {}
7320 _ACEOF
7321 rm -f conftest.$ac_objext conftest$ac_exeext
7322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7323   (eval $ac_link) 2>conftest.er1
7324   ac_status=$?
7325   grep -v '^ *+' conftest.er1 >conftest.err
7326   rm -f conftest.er1
7327   cat conftest.err >&5
7328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329   (exit $ac_status); } &&
7330          { ac_try='test -z "$ac_c_werror_flag"
7331                          || test ! -s conftest.err'
7332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333   (eval $ac_try) 2>&5
7334   ac_status=$?
7335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336   (exit $ac_status); }; } &&
7337          { ac_try='test -s conftest$ac_exeext'
7338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339   (eval $ac_try) 2>&5
7340   ac_status=$?
7341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342   (exit $ac_status); }; }; then
7343   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7344
7345 else
7346   echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7348
7349 fi
7350 rm -f conftest.err conftest.$ac_objext \
7351       conftest$ac_exeext conftest.$ac_ext
7352         LDFLAGS="$save_LDFLAGS"
7353       else
7354         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7355         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7356       fi
7357       archive_cmds_need_lc='no'
7358       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7359       hardcode_libdir_separator=:
7360       inherit_rpath=yes
7361       link_all_deplibs=yes
7362       ;;
7363
7364     netbsd*)
7365       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7366         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7367       else
7368         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7369       fi
7370       hardcode_libdir_flag_spec='-R$libdir'
7371       hardcode_direct=yes
7372       hardcode_shlibpath_var=no
7373       ;;
7374
7375     newsos6)
7376       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7377       hardcode_direct=yes
7378       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7379       hardcode_libdir_separator=:
7380       hardcode_shlibpath_var=no
7381       ;;
7382
7383     *nto* | *qnx*)
7384       ;;
7385
7386     openbsd*)
7387       hardcode_direct=yes
7388       hardcode_shlibpath_var=no
7389       hardcode_direct_absolute=yes
7390       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7391         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7392         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7393         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7394         export_dynamic_flag_spec='${wl}-E'
7395       else
7396         case $host_os in
7397         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7398           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7399           hardcode_libdir_flag_spec='-R$libdir'
7400           ;;
7401         *)
7402           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7403           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7404           ;;
7405         esac
7406       fi
7407       ;;
7408
7409     os2*)
7410       hardcode_libdir_flag_spec='-L$libdir'
7411       hardcode_minus_L=yes
7412       allow_undefined_flag=unsupported
7413       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'
7414       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7415       ;;
7416
7417     osf3*)
7418       if test "$GCC" = yes; then
7419         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7420         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7421       else
7422         allow_undefined_flag=' -expect_unresolved \*'
7423         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7424       fi
7425       archive_cmds_need_lc='no'
7426       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7427       hardcode_libdir_separator=:
7428       ;;
7429
7430     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7431       if test "$GCC" = yes; then
7432         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7433         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7434         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7435       else
7436         allow_undefined_flag=' -expect_unresolved \*'
7437         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7438         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
7439         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7440
7441         # Both c and cxx compiler support -rpath directly
7442         hardcode_libdir_flag_spec='-rpath $libdir'
7443       fi
7444       archive_cmds_need_lc='no'
7445       hardcode_libdir_separator=:
7446       ;;
7447
7448     solaris*)
7449       no_undefined_flag=' -z defs'
7450       if test "$GCC" = yes; then
7451         wlarc='${wl}'
7452         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7453         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7454           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7455       else
7456         case `$CC -V 2>&1` in
7457         *"Compilers 5.0"*)
7458           wlarc=''
7459           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7460           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7461           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7462           ;;
7463         *)
7464           wlarc='${wl}'
7465           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7466           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7467           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7468           ;;
7469         esac
7470       fi
7471       hardcode_libdir_flag_spec='-R$libdir'
7472       hardcode_shlibpath_var=no
7473       case $host_os in
7474       solaris2.[0-5] | solaris2.[0-5].*) ;;
7475       *)
7476         # The compiler driver will combine and reorder linker options,
7477         # but understands `-z linker_flag'.  GCC discards it without `$wl',
7478         # but is careful enough not to reorder.
7479         # Supported since Solaris 2.6 (maybe 2.5.1?)
7480         if test "$GCC" = yes; then
7481           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7482         else
7483           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7484         fi
7485         ;;
7486       esac
7487       link_all_deplibs=yes
7488       ;;
7489
7490     sunos4*)
7491       if test "x$host_vendor" = xsequent; then
7492         # Use $CC to link under sequent, because it throws in some extra .o
7493         # files that make .init and .fini sections work.
7494         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7495       else
7496         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7497       fi
7498       hardcode_libdir_flag_spec='-L$libdir'
7499       hardcode_direct=yes
7500       hardcode_minus_L=yes
7501       hardcode_shlibpath_var=no
7502       ;;
7503
7504     sysv4)
7505       case $host_vendor in
7506         sni)
7507           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7508           hardcode_direct=yes # is this really true???
7509         ;;
7510         siemens)
7511           ## LD is ld it makes a PLAMLIB
7512           ## CC just makes a GrossModule.
7513           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7514           reload_cmds='$CC -r -o $output$reload_objs'
7515           hardcode_direct=no
7516         ;;
7517         motorola)
7518           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7519           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7520         ;;
7521       esac
7522       runpath_var='LD_RUN_PATH'
7523       hardcode_shlibpath_var=no
7524       ;;
7525
7526     sysv4.3*)
7527       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7528       hardcode_shlibpath_var=no
7529       export_dynamic_flag_spec='-Bexport'
7530       ;;
7531
7532     sysv4*MP*)
7533       if test -d /usr/nec; then
7534         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7535         hardcode_shlibpath_var=no
7536         runpath_var=LD_RUN_PATH
7537         hardcode_runpath_var=yes
7538         ld_shlibs=yes
7539       fi
7540       ;;
7541
7542     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7543       no_undefined_flag='${wl}-z,text'
7544       archive_cmds_need_lc=no
7545       hardcode_shlibpath_var=no
7546       runpath_var='LD_RUN_PATH'
7547
7548       if test "$GCC" = yes; then
7549         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7550         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7551       else
7552         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7553         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7554       fi
7555       ;;
7556
7557     sysv5* | sco3.2v5* | sco5v6*)
7558       # Note: We can NOT use -z defs as we might desire, because we do not
7559       # link with -lc, and that would cause any symbols used from libc to
7560       # always be unresolved, which means just about no library would
7561       # ever link correctly.  If we're not using GNU ld we use -z text
7562       # though, which does catch some bad symbols but isn't as heavy-handed
7563       # as -z defs.
7564       no_undefined_flag='${wl}-z,text'
7565       allow_undefined_flag='${wl}-z,nodefs'
7566       archive_cmds_need_lc=no
7567       hardcode_shlibpath_var=no
7568       hardcode_libdir_flag_spec='${wl}-R,$libdir'
7569       hardcode_libdir_separator=':'
7570       link_all_deplibs=yes
7571       export_dynamic_flag_spec='${wl}-Bexport'
7572       runpath_var='LD_RUN_PATH'
7573
7574       if test "$GCC" = yes; then
7575         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7576         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7577       else
7578         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7579         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7580       fi
7581       ;;
7582
7583     uts4*)
7584       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7585       hardcode_libdir_flag_spec='-L$libdir'
7586       hardcode_shlibpath_var=no
7587       ;;
7588
7589     *)
7590       ld_shlibs=no
7591       ;;
7592     esac
7593
7594     if test x$host_vendor = xsni; then
7595       case $host in
7596       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7597         export_dynamic_flag_spec='${wl}-Blargedynsym'
7598         ;;
7599       esac
7600     fi
7601   fi
7602
7603 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7604 echo "${ECHO_T}$ld_shlibs" >&6
7605 test "$ld_shlibs" = no && can_build_shared=no
7606
7607 with_gnu_ld=$with_gnu_ld
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623 #
7624 # Do we need to explicitly link libc?
7625 #
7626 case "x$archive_cmds_need_lc" in
7627 x|xyes)
7628   # Assume -lc should be added
7629   archive_cmds_need_lc=yes
7630
7631   if test "$enable_shared" = yes && test "$GCC" = yes; then
7632     case $archive_cmds in
7633     *'~'*)
7634       # FIXME: we may have to deal with multi-command sequences.
7635       ;;
7636     '$CC '*)
7637       # Test whether the compiler implicitly links with -lc since on some
7638       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7639       # to ld, don't add -lc before -lgcc.
7640       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7641 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7642       $RM conftest*
7643       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7644
7645       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7646   (eval $ac_compile) 2>&5
7647   ac_status=$?
7648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649   (exit $ac_status); } 2>conftest.err; then
7650         soname=conftest
7651         lib=conftest
7652         libobjs=conftest.$ac_objext
7653         deplibs=
7654         wl=$lt_prog_compiler_wl
7655         pic_flag=$lt_prog_compiler_pic
7656         compiler_flags=-v
7657         linker_flags=-v
7658         verstring=
7659         output_objdir=.
7660         libname=conftest
7661         lt_save_allow_undefined_flag=$allow_undefined_flag
7662         allow_undefined_flag=
7663         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7664   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7665   ac_status=$?
7666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667   (exit $ac_status); }
7668         then
7669           archive_cmds_need_lc=no
7670         else
7671           archive_cmds_need_lc=yes
7672         fi
7673         allow_undefined_flag=$lt_save_allow_undefined_flag
7674       else
7675         cat conftest.err 1>&5
7676       fi
7677       $RM conftest*
7678       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7679 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7680       ;;
7681     esac
7682   fi
7683   ;;
7684 esac
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7843 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7844 withGCC=$GCC
7845 if test "$withGCC" = yes; then
7846   case $host_os in
7847     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7848     *) lt_awk_arg="/^libraries:/" ;;
7849   esac
7850   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7851   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7852     # if the path contains ";" then we assume it to be the separator
7853     # otherwise default to the standard path separator (i.e. ":") - it is
7854     # assumed that no part of a normal pathname contains ";" but that should
7855     # okay in the real world where ";" in dirpaths is itself problematic.
7856     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7857   else
7858     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7859   fi
7860   # Ok, now we have the path, separated by spaces, we can step through it
7861   # and add multilib dir if necessary.
7862   lt_tmp_lt_search_path_spec=
7863   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7864   for lt_sys_path in $lt_search_path_spec; do
7865     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7866       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7867     else
7868       test -d "$lt_sys_path" && \
7869         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7870     fi
7871   done
7872   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7873 BEGIN {RS=" "; FS="/|\n";} {
7874   lt_foo="";
7875   lt_count=0;
7876   for (lt_i = NF; lt_i > 0; lt_i--) {
7877     if ($lt_i != "" && $lt_i != ".") {
7878       if ($lt_i == "..") {
7879         lt_count++;
7880       } else {
7881         if (lt_count == 0) {
7882           lt_foo="/" $lt_i lt_foo;
7883         } else {
7884           lt_count--;
7885         }
7886       }
7887     }
7888   }
7889   if (lt_foo != "") { lt_freq[lt_foo]++; }
7890   if (lt_freq[lt_foo] == 1) { print lt_foo; }
7891 }'`
7892   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7893 else
7894   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7895 fi
7896 library_names_spec=
7897 libname_spec='lib$name'
7898 soname_spec=
7899 shrext_cmds=".so"
7900 postinstall_cmds=
7901 postuninstall_cmds=
7902 finish_cmds=
7903 finish_eval=
7904 shlibpath_var=
7905 shlibpath_overrides_runpath=unknown
7906 version_type=none
7907 dynamic_linker="$host_os ld.so"
7908 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7909 need_lib_prefix=unknown
7910 hardcode_into_libs=no
7911
7912 # when you set need_version to no, make sure it does not cause -set_version
7913 # flags to be left without arguments
7914 need_version=unknown
7915
7916 case $host_os in
7917 aix3*)
7918   version_type=linux
7919   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7920   shlibpath_var=LIBPATH
7921
7922   # AIX 3 has no versioning support, so we append a major version to the name.
7923   soname_spec='${libname}${release}${shared_ext}$major'
7924   ;;
7925
7926 aix[4-9]*)
7927   version_type=linux
7928   need_lib_prefix=no
7929   need_version=no
7930   hardcode_into_libs=yes
7931   if test "$host_cpu" = ia64; then
7932     # AIX 5 supports IA64
7933     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7934     shlibpath_var=LD_LIBRARY_PATH
7935   else
7936     # With GCC up to 2.95.x, collect2 would create an import file
7937     # for dependence libraries.  The import file would start with
7938     # the line `#! .'.  This would cause the generated library to
7939     # depend on `.', always an invalid library.  This was fixed in
7940     # development snapshots of GCC prior to 3.0.
7941     case $host_os in
7942       aix4 | aix4.[01] | aix4.[01].*)
7943       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7944            echo ' yes '
7945            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7946         :
7947       else
7948         can_build_shared=no
7949       fi
7950       ;;
7951     esac
7952     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7953     # soname into executable. Probably we can add versioning support to
7954     # collect2, so additional links can be useful in future.
7955     if test "$aix_use_runtimelinking" = yes; then
7956       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7957       # instead of lib<name>.a to let people know that these are not
7958       # typical AIX shared libraries.
7959       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7960     else
7961       # We preserve .a as extension for shared libraries through AIX4.2
7962       # and later when we are not doing run time linking.
7963       library_names_spec='${libname}${release}.a $libname.a'
7964       soname_spec='${libname}${release}${shared_ext}$major'
7965     fi
7966     shlibpath_var=LIBPATH
7967   fi
7968   ;;
7969
7970 amigaos*)
7971   if test "$host_cpu" = m68k; then
7972     library_names_spec='$libname.ixlibrary $libname.a'
7973     # Create ${libname}_ixlibrary.a entries in /sys/libs.
7974     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'
7975   else
7976     dynamic_linker=no
7977   fi
7978   ;;
7979
7980 beos*)
7981   library_names_spec='${libname}${shared_ext}'
7982   dynamic_linker="$host_os ld.so"
7983   shlibpath_var=LIBRARY_PATH
7984   ;;
7985
7986 bsdi[45]*)
7987   version_type=linux
7988   need_version=no
7989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7990   soname_spec='${libname}${release}${shared_ext}$major'
7991   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7992   shlibpath_var=LD_LIBRARY_PATH
7993   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7994   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7995   # the default ld.so.conf also contains /usr/contrib/lib and
7996   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7997   # libtool to hard-code these into programs
7998   ;;
7999
8000 cygwin* | mingw* | pw32*)
8001   version_type=windows
8002   shrext_cmds=".dll"
8003   need_version=no
8004   need_lib_prefix=no
8005
8006   case $withGCC,$host_os in
8007   yes,cygwin* | yes,mingw* | yes,pw32*)
8008     library_names_spec='$libname.dll.a'
8009     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8010     postinstall_cmds='base_file=`basename \${file}`~
8011       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8012       dldir=$destdir/`dirname \$dlpath`~
8013       test -d \$dldir || mkdir -p \$dldir~
8014       $install_prog $dir/$dlname \$dldir/$dlname~
8015       chmod a+x \$dldir/$dlname~
8016       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8017         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8018       fi'
8019     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8020       dlpath=$dir/\$dldll~
8021        $RM \$dlpath'
8022     shlibpath_overrides_runpath=yes
8023
8024     case $host_os in
8025     cygwin*)
8026       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8027       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8028       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8029       ;;
8030     mingw*)
8031       # MinGW DLLs use traditional 'lib' prefix
8032       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8033       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8034       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8035         # It is most probably a Windows format PATH printed by
8036         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8037         # path with ; separators, and with drive letters. We can handle the
8038         # drive letters (cygwin fileutils understands them), so leave them,
8039         # especially as we might pass files found there to a mingw objdump,
8040         # which wouldn't understand a cygwinified path. Ahh.
8041         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8042       else
8043         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8044       fi
8045       ;;
8046     pw32*)
8047       # pw32 DLLs use 'pw' prefix rather than 'lib'
8048       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8049       ;;
8050     esac
8051     ;;
8052
8053   *)
8054     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8055     ;;
8056   esac
8057   dynamic_linker='Win32 ld.exe'
8058   # FIXME: first we should search . and the directory the executable is in
8059   shlibpath_var=PATH
8060   ;;
8061
8062 darwin* | rhapsody*)
8063   dynamic_linker="$host_os dyld"
8064   version_type=darwin
8065   need_lib_prefix=no
8066   need_version=no
8067   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8068   soname_spec='${libname}${release}${major}$shared_ext'
8069   shlibpath_overrides_runpath=yes
8070   shlibpath_var=DYLD_LIBRARY_PATH
8071   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8072
8073   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8074   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8075   ;;
8076
8077 dgux*)
8078   version_type=linux
8079   need_lib_prefix=no
8080   need_version=no
8081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8082   soname_spec='${libname}${release}${shared_ext}$major'
8083   shlibpath_var=LD_LIBRARY_PATH
8084   ;;
8085
8086 freebsd1*)
8087   dynamic_linker=no
8088   ;;
8089
8090 freebsd* | dragonfly*)
8091   # DragonFly does not have aout.  When/if they implement a new
8092   # versioning mechanism, adjust this.
8093   if test -x /usr/bin/objformat; then
8094     objformat=`/usr/bin/objformat`
8095   else
8096     case $host_os in
8097     freebsd[123]*) objformat=aout ;;
8098     *) objformat=elf ;;
8099     esac
8100   fi
8101   version_type=freebsd-$objformat
8102   case $version_type in
8103     freebsd-elf*)
8104       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8105       need_version=no
8106       need_lib_prefix=no
8107       ;;
8108     freebsd-*)
8109       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8110       need_version=yes
8111       ;;
8112   esac
8113   shlibpath_var=LD_LIBRARY_PATH
8114   case $host_os in
8115   freebsd2*)
8116     shlibpath_overrides_runpath=yes
8117     ;;
8118   freebsd3.[01]* | freebsdelf3.[01]*)
8119     shlibpath_overrides_runpath=yes
8120     hardcode_into_libs=yes
8121     ;;
8122   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8123   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8124     shlibpath_overrides_runpath=no
8125     hardcode_into_libs=yes
8126     ;;
8127   *) # from 4.6 on, and DragonFly
8128     shlibpath_overrides_runpath=yes
8129     hardcode_into_libs=yes
8130     ;;
8131   esac
8132   ;;
8133
8134 gnu*)
8135   version_type=linux
8136   need_lib_prefix=no
8137   need_version=no
8138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8139   soname_spec='${libname}${release}${shared_ext}$major'
8140   shlibpath_var=LD_LIBRARY_PATH
8141   hardcode_into_libs=yes
8142   ;;
8143
8144 hpux9* | hpux10* | hpux11*)
8145   # Give a soname corresponding to the major version so that dld.sl refuses to
8146   # link against other versions.
8147   version_type=sunos
8148   need_lib_prefix=no
8149   need_version=no
8150   case $host_cpu in
8151   ia64*)
8152     shrext_cmds='.so'
8153     hardcode_into_libs=yes
8154     dynamic_linker="$host_os dld.so"
8155     shlibpath_var=LD_LIBRARY_PATH
8156     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8157     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8158     soname_spec='${libname}${release}${shared_ext}$major'
8159     if test "X$HPUX_IA64_MODE" = X32; then
8160       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8161     else
8162       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8163     fi
8164     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8165     ;;
8166   hppa*64*)
8167     shrext_cmds='.sl'
8168     hardcode_into_libs=yes
8169     dynamic_linker="$host_os dld.sl"
8170     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8171     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8172     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8173     soname_spec='${libname}${release}${shared_ext}$major'
8174     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8175     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8176     ;;
8177   *)
8178     shrext_cmds='.sl'
8179     dynamic_linker="$host_os dld.sl"
8180     shlibpath_var=SHLIB_PATH
8181     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8182     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8183     soname_spec='${libname}${release}${shared_ext}$major'
8184     ;;
8185   esac
8186   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8187   postinstall_cmds='chmod 555 $lib'
8188   ;;
8189
8190 interix[3-9]*)
8191   version_type=linux
8192   need_lib_prefix=no
8193   need_version=no
8194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8195   soname_spec='${libname}${release}${shared_ext}$major'
8196   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8197   shlibpath_var=LD_LIBRARY_PATH
8198   shlibpath_overrides_runpath=no
8199   hardcode_into_libs=yes
8200   ;;
8201
8202 irix5* | irix6* | nonstopux*)
8203   case $host_os in
8204     nonstopux*) version_type=nonstopux ;;
8205     *)
8206         if test "$lt_cv_prog_gnu_ld" = yes; then
8207                 version_type=linux
8208         else
8209                 version_type=irix
8210         fi ;;
8211   esac
8212   need_lib_prefix=no
8213   need_version=no
8214   soname_spec='${libname}${release}${shared_ext}$major'
8215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8216   case $host_os in
8217   irix5* | nonstopux*)
8218     libsuff= shlibsuff=
8219     ;;
8220   *)
8221     case $LD in # libtool.m4 will add one of these switches to LD
8222     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8223       libsuff= shlibsuff= libmagic=32-bit;;
8224     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8225       libsuff=32 shlibsuff=N32 libmagic=N32;;
8226     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8227       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8228     *) libsuff= shlibsuff= libmagic=never-match;;
8229     esac
8230     ;;
8231   esac
8232   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8233   shlibpath_overrides_runpath=no
8234   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8235   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8236   hardcode_into_libs=yes
8237   ;;
8238
8239 # No shared lib support for Linux oldld, aout, or coff.
8240 linux*oldld* | linux*aout* | linux*coff*)
8241   dynamic_linker=no
8242   ;;
8243
8244 # This must be Linux ELF.
8245 linux* | k*bsd*-gnu)
8246   version_type=linux
8247   need_lib_prefix=no
8248   need_version=no
8249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8250   soname_spec='${libname}${release}${shared_ext}$major'
8251   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8252   shlibpath_var=LD_LIBRARY_PATH
8253   shlibpath_overrides_runpath=no
8254   # Some binutils ld are patched to set DT_RUNPATH
8255   save_LDFLAGS=$LDFLAGS
8256   save_libdir=$libdir
8257   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8258        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8259   if test x$gcc_no_link = xyes; then
8260   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8261 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8262    { (exit 1); exit 1; }; }
8263 fi
8264 cat >conftest.$ac_ext <<_ACEOF
8265 /* confdefs.h.  */
8266 _ACEOF
8267 cat confdefs.h >>conftest.$ac_ext
8268 cat >>conftest.$ac_ext <<_ACEOF
8269 /* end confdefs.h.  */
8270
8271 int
8272 main ()
8273 {
8274
8275   ;
8276   return 0;
8277 }
8278 _ACEOF
8279 rm -f conftest.$ac_objext conftest$ac_exeext
8280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8281   (eval $ac_link) 2>conftest.er1
8282   ac_status=$?
8283   grep -v '^ *+' conftest.er1 >conftest.err
8284   rm -f conftest.er1
8285   cat conftest.err >&5
8286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287   (exit $ac_status); } &&
8288          { ac_try='test -z "$ac_c_werror_flag"
8289                          || test ! -s conftest.err'
8290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291   (eval $ac_try) 2>&5
8292   ac_status=$?
8293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294   (exit $ac_status); }; } &&
8295          { ac_try='test -s conftest$ac_exeext'
8296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297   (eval $ac_try) 2>&5
8298   ac_status=$?
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   (exit $ac_status); }; }; then
8301   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8302   shlibpath_overrides_runpath=yes
8303 fi
8304
8305 else
8306   echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8308
8309 fi
8310 rm -f conftest.err conftest.$ac_objext \
8311       conftest$ac_exeext conftest.$ac_ext
8312   LDFLAGS=$save_LDFLAGS
8313   libdir=$save_libdir
8314
8315   # This implies no fast_install, which is unacceptable.
8316   # Some rework will be needed to allow for fast_install
8317   # before this can be enabled.
8318   hardcode_into_libs=yes
8319
8320   # Append ld.so.conf contents to the search path
8321   if test -f /etc/ld.so.conf; then
8322     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8323     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8324   fi
8325
8326   # We used to test for /lib/ld.so.1 and disable shared libraries on
8327   # powerpc, because MkLinux only supported shared libraries with the
8328   # GNU dynamic linker.  Since this was broken with cross compilers,
8329   # most powerpc-linux boxes support dynamic linking these days and
8330   # people can always --disable-shared, the test was removed, and we
8331   # assume the GNU/Linux dynamic linker is in use.
8332   dynamic_linker='GNU/Linux ld.so'
8333   ;;
8334
8335 netbsd*)
8336   version_type=sunos
8337   need_lib_prefix=no
8338   need_version=no
8339   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8340     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8341     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8342     dynamic_linker='NetBSD (a.out) ld.so'
8343   else
8344     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8345     soname_spec='${libname}${release}${shared_ext}$major'
8346     dynamic_linker='NetBSD ld.elf_so'
8347   fi
8348   shlibpath_var=LD_LIBRARY_PATH
8349   shlibpath_overrides_runpath=yes
8350   hardcode_into_libs=yes
8351   ;;
8352
8353 newsos6)
8354   version_type=linux
8355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8356   shlibpath_var=LD_LIBRARY_PATH
8357   shlibpath_overrides_runpath=yes
8358   ;;
8359
8360 *nto* | *qnx*)
8361   version_type=qnx
8362   need_lib_prefix=no
8363   need_version=no
8364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8365   soname_spec='${libname}${release}${shared_ext}$major'
8366   shlibpath_var=LD_LIBRARY_PATH
8367   shlibpath_overrides_runpath=no
8368   hardcode_into_libs=yes
8369   dynamic_linker='ldqnx.so'
8370   ;;
8371
8372 openbsd*)
8373   version_type=sunos
8374   sys_lib_dlsearch_path_spec="/usr/lib"
8375   need_lib_prefix=no
8376   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8377   case $host_os in
8378     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
8379     *)                          need_version=no  ;;
8380   esac
8381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8382   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8383   shlibpath_var=LD_LIBRARY_PATH
8384   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8385     case $host_os in
8386       openbsd2.[89] | openbsd2.[89].*)
8387         shlibpath_overrides_runpath=no
8388         ;;
8389       *)
8390         shlibpath_overrides_runpath=yes
8391         ;;
8392       esac
8393   else
8394     shlibpath_overrides_runpath=yes
8395   fi
8396   ;;
8397
8398 os2*)
8399   libname_spec='$name'
8400   shrext_cmds=".dll"
8401   need_lib_prefix=no
8402   library_names_spec='$libname${shared_ext} $libname.a'
8403   dynamic_linker='OS/2 ld.exe'
8404   shlibpath_var=LIBPATH
8405   ;;
8406
8407 osf3* | osf4* | osf5*)
8408   version_type=osf
8409   need_lib_prefix=no
8410   need_version=no
8411   soname_spec='${libname}${release}${shared_ext}$major'
8412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8413   shlibpath_var=LD_LIBRARY_PATH
8414   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8415   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8416   ;;
8417
8418 rdos*)
8419   dynamic_linker=no
8420   ;;
8421
8422 solaris*)
8423   version_type=linux
8424   need_lib_prefix=no
8425   need_version=no
8426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8427   soname_spec='${libname}${release}${shared_ext}$major'
8428   shlibpath_var=LD_LIBRARY_PATH
8429   shlibpath_overrides_runpath=yes
8430   hardcode_into_libs=yes
8431   # ldd complains unless libraries are executable
8432   postinstall_cmds='chmod +x $lib'
8433   ;;
8434
8435 sunos4*)
8436   version_type=sunos
8437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8438   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8439   shlibpath_var=LD_LIBRARY_PATH
8440   shlibpath_overrides_runpath=yes
8441   if test "$with_gnu_ld" = yes; then
8442     need_lib_prefix=no
8443   fi
8444   need_version=yes
8445   ;;
8446
8447 sysv4 | sysv4.3*)
8448   version_type=linux
8449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8450   soname_spec='${libname}${release}${shared_ext}$major'
8451   shlibpath_var=LD_LIBRARY_PATH
8452   case $host_vendor in
8453     sni)
8454       shlibpath_overrides_runpath=no
8455       need_lib_prefix=no
8456       runpath_var=LD_RUN_PATH
8457       ;;
8458     siemens)
8459       need_lib_prefix=no
8460       ;;
8461     motorola)
8462       need_lib_prefix=no
8463       need_version=no
8464       shlibpath_overrides_runpath=no
8465       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8466       ;;
8467   esac
8468   ;;
8469
8470 sysv4*MP*)
8471   if test -d /usr/nec ;then
8472     version_type=linux
8473     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8474     soname_spec='$libname${shared_ext}.$major'
8475     shlibpath_var=LD_LIBRARY_PATH
8476   fi
8477   ;;
8478
8479 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8480   version_type=freebsd-elf
8481   need_lib_prefix=no
8482   need_version=no
8483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8484   soname_spec='${libname}${release}${shared_ext}$major'
8485   shlibpath_var=LD_LIBRARY_PATH
8486   shlibpath_overrides_runpath=yes
8487   hardcode_into_libs=yes
8488   if test "$with_gnu_ld" = yes; then
8489     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8490   else
8491     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8492     case $host_os in
8493       sco3.2v5*)
8494         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8495         ;;
8496     esac
8497   fi
8498   sys_lib_dlsearch_path_spec='/usr/lib'
8499   ;;
8500
8501 tpf*)
8502   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
8503   version_type=linux
8504   need_lib_prefix=no
8505   need_version=no
8506   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8507   shlibpath_var=LD_LIBRARY_PATH
8508   shlibpath_overrides_runpath=no
8509   hardcode_into_libs=yes
8510   ;;
8511
8512 uts4*)
8513   version_type=linux
8514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8515   soname_spec='${libname}${release}${shared_ext}$major'
8516   shlibpath_var=LD_LIBRARY_PATH
8517   ;;
8518
8519 *)
8520   dynamic_linker=no
8521   ;;
8522 esac
8523 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8524 echo "${ECHO_T}$dynamic_linker" >&6
8525 test "$dynamic_linker" = no && can_build_shared=no
8526
8527 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8528 if test "$GCC" = yes; then
8529   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8530 fi
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8619 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8620 hardcode_action=
8621 if test -n "$hardcode_libdir_flag_spec" ||
8622    test -n "$runpath_var" ||
8623    test "X$hardcode_automatic" = "Xyes" ; then
8624
8625   # We can hardcode non-existent directories.
8626   if test "$hardcode_direct" != no &&
8627      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8628      # have to relink, otherwise we might link with an installed library
8629      # when we should be linking with a yet-to-be-installed one
8630      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8631      test "$hardcode_minus_L" != no; then
8632     # Linking always hardcodes the temporary library directory.
8633     hardcode_action=relink
8634   else
8635     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8636     hardcode_action=immediate
8637   fi
8638 else
8639   # We cannot hardcode anything, or else we can only hardcode existing
8640   # directories.
8641   hardcode_action=unsupported
8642 fi
8643 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8644 echo "${ECHO_T}$hardcode_action" >&6
8645
8646 if test "$hardcode_action" = relink ||
8647    test "$inherit_rpath" = yes; then
8648   # Fast installation is not supported
8649   enable_fast_install=no
8650 elif test "$shlibpath_overrides_runpath" = yes ||
8651      test "$enable_shared" = no; then
8652   # Fast installation is not necessary
8653   enable_fast_install=needless
8654 fi
8655
8656
8657
8658
8659
8660
8661   if test "x$enable_dlopen" != xyes; then
8662   enable_dlopen=unknown
8663   enable_dlopen_self=unknown
8664   enable_dlopen_self_static=unknown
8665 else
8666   lt_cv_dlopen=no
8667   lt_cv_dlopen_libs=
8668
8669   case $host_os in
8670   beos*)
8671     lt_cv_dlopen="load_add_on"
8672     lt_cv_dlopen_libs=
8673     lt_cv_dlopen_self=yes
8674     ;;
8675
8676   mingw* | pw32*)
8677     lt_cv_dlopen="LoadLibrary"
8678     lt_cv_dlopen_libs=
8679     ;;
8680
8681   cygwin*)
8682     lt_cv_dlopen="dlopen"
8683     lt_cv_dlopen_libs=
8684     ;;
8685
8686   darwin*)
8687   # if libdl is installed we need to link against it
8688     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8689 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8690 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8691   echo $ECHO_N "(cached) $ECHO_C" >&6
8692 else
8693   ac_check_lib_save_LIBS=$LIBS
8694 LIBS="-ldl  $LIBS"
8695 if test x$gcc_no_link = xyes; then
8696   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8697 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8698    { (exit 1); exit 1; }; }
8699 fi
8700 cat >conftest.$ac_ext <<_ACEOF
8701 /* confdefs.h.  */
8702 _ACEOF
8703 cat confdefs.h >>conftest.$ac_ext
8704 cat >>conftest.$ac_ext <<_ACEOF
8705 /* end confdefs.h.  */
8706
8707 /* Override any gcc2 internal prototype to avoid an error.  */
8708 #ifdef __cplusplus
8709 extern "C"
8710 #endif
8711 /* We use char because int might match the return type of a gcc2
8712    builtin and then its argument prototype would still apply.  */
8713 char dlopen ();
8714 int
8715 main ()
8716 {
8717 dlopen ();
8718   ;
8719   return 0;
8720 }
8721 _ACEOF
8722 rm -f conftest.$ac_objext conftest$ac_exeext
8723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8724   (eval $ac_link) 2>conftest.er1
8725   ac_status=$?
8726   grep -v '^ *+' conftest.er1 >conftest.err
8727   rm -f conftest.er1
8728   cat conftest.err >&5
8729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730   (exit $ac_status); } &&
8731          { ac_try='test -z "$ac_c_werror_flag"
8732                          || test ! -s conftest.err'
8733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734   (eval $ac_try) 2>&5
8735   ac_status=$?
8736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737   (exit $ac_status); }; } &&
8738          { ac_try='test -s conftest$ac_exeext'
8739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740   (eval $ac_try) 2>&5
8741   ac_status=$?
8742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743   (exit $ac_status); }; }; then
8744   ac_cv_lib_dl_dlopen=yes
8745 else
8746   echo "$as_me: failed program was:" >&5
8747 sed 's/^/| /' conftest.$ac_ext >&5
8748
8749 ac_cv_lib_dl_dlopen=no
8750 fi
8751 rm -f conftest.err conftest.$ac_objext \
8752       conftest$ac_exeext conftest.$ac_ext
8753 LIBS=$ac_check_lib_save_LIBS
8754 fi
8755 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8756 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8757 if test $ac_cv_lib_dl_dlopen = yes; then
8758   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8759 else
8760
8761     lt_cv_dlopen="dyld"
8762     lt_cv_dlopen_libs=
8763     lt_cv_dlopen_self=yes
8764
8765 fi
8766
8767     ;;
8768
8769   *)
8770     echo "$as_me:$LINENO: checking for shl_load" >&5
8771 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8772 if test "${ac_cv_func_shl_load+set}" = set; then
8773   echo $ECHO_N "(cached) $ECHO_C" >&6
8774 else
8775   if test x$gcc_no_link = xyes; then
8776   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8777 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8778    { (exit 1); exit 1; }; }
8779 fi
8780 cat >conftest.$ac_ext <<_ACEOF
8781 /* confdefs.h.  */
8782 _ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h.  */
8786 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8788 #define shl_load innocuous_shl_load
8789
8790 /* System header to define __stub macros and hopefully few prototypes,
8791     which can conflict with char shl_load (); below.
8792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8793     <limits.h> exists even on freestanding compilers.  */
8794
8795 #ifdef __STDC__
8796 # include <limits.h>
8797 #else
8798 # include <assert.h>
8799 #endif
8800
8801 #undef shl_load
8802
8803 /* Override any gcc2 internal prototype to avoid an error.  */
8804 #ifdef __cplusplus
8805 extern "C"
8806 {
8807 #endif
8808 /* We use char because int might match the return type of a gcc2
8809    builtin and then its argument prototype would still apply.  */
8810 char shl_load ();
8811 /* The GNU C library defines this for functions which it implements
8812     to always fail with ENOSYS.  Some functions are actually named
8813     something starting with __ and the normal name is an alias.  */
8814 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8815 choke me
8816 #else
8817 char (*f) () = shl_load;
8818 #endif
8819 #ifdef __cplusplus
8820 }
8821 #endif
8822
8823 int
8824 main ()
8825 {
8826 return f != shl_load;
8827   ;
8828   return 0;
8829 }
8830 _ACEOF
8831 rm -f conftest.$ac_objext conftest$ac_exeext
8832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8833   (eval $ac_link) 2>conftest.er1
8834   ac_status=$?
8835   grep -v '^ *+' conftest.er1 >conftest.err
8836   rm -f conftest.er1
8837   cat conftest.err >&5
8838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839   (exit $ac_status); } &&
8840          { ac_try='test -z "$ac_c_werror_flag"
8841                          || test ! -s conftest.err'
8842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843   (eval $ac_try) 2>&5
8844   ac_status=$?
8845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846   (exit $ac_status); }; } &&
8847          { ac_try='test -s conftest$ac_exeext'
8848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849   (eval $ac_try) 2>&5
8850   ac_status=$?
8851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852   (exit $ac_status); }; }; then
8853   ac_cv_func_shl_load=yes
8854 else
8855   echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.$ac_ext >&5
8857
8858 ac_cv_func_shl_load=no
8859 fi
8860 rm -f conftest.err conftest.$ac_objext \
8861       conftest$ac_exeext conftest.$ac_ext
8862 fi
8863 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8864 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8865 if test $ac_cv_func_shl_load = yes; then
8866   lt_cv_dlopen="shl_load"
8867 else
8868   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8869 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8870 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8871   echo $ECHO_N "(cached) $ECHO_C" >&6
8872 else
8873   ac_check_lib_save_LIBS=$LIBS
8874 LIBS="-ldld  $LIBS"
8875 if test x$gcc_no_link = xyes; then
8876   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8877 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8878    { (exit 1); exit 1; }; }
8879 fi
8880 cat >conftest.$ac_ext <<_ACEOF
8881 /* confdefs.h.  */
8882 _ACEOF
8883 cat confdefs.h >>conftest.$ac_ext
8884 cat >>conftest.$ac_ext <<_ACEOF
8885 /* end confdefs.h.  */
8886
8887 /* Override any gcc2 internal prototype to avoid an error.  */
8888 #ifdef __cplusplus
8889 extern "C"
8890 #endif
8891 /* We use char because int might match the return type of a gcc2
8892    builtin and then its argument prototype would still apply.  */
8893 char shl_load ();
8894 int
8895 main ()
8896 {
8897 shl_load ();
8898   ;
8899   return 0;
8900 }
8901 _ACEOF
8902 rm -f conftest.$ac_objext conftest$ac_exeext
8903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904   (eval $ac_link) 2>conftest.er1
8905   ac_status=$?
8906   grep -v '^ *+' conftest.er1 >conftest.err
8907   rm -f conftest.er1
8908   cat conftest.err >&5
8909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910   (exit $ac_status); } &&
8911          { ac_try='test -z "$ac_c_werror_flag"
8912                          || test ! -s conftest.err'
8913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914   (eval $ac_try) 2>&5
8915   ac_status=$?
8916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917   (exit $ac_status); }; } &&
8918          { ac_try='test -s conftest$ac_exeext'
8919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920   (eval $ac_try) 2>&5
8921   ac_status=$?
8922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923   (exit $ac_status); }; }; then
8924   ac_cv_lib_dld_shl_load=yes
8925 else
8926   echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8928
8929 ac_cv_lib_dld_shl_load=no
8930 fi
8931 rm -f conftest.err conftest.$ac_objext \
8932       conftest$ac_exeext conftest.$ac_ext
8933 LIBS=$ac_check_lib_save_LIBS
8934 fi
8935 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8936 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8937 if test $ac_cv_lib_dld_shl_load = yes; then
8938   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8939 else
8940   echo "$as_me:$LINENO: checking for dlopen" >&5
8941 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8942 if test "${ac_cv_func_dlopen+set}" = set; then
8943   echo $ECHO_N "(cached) $ECHO_C" >&6
8944 else
8945   if test x$gcc_no_link = xyes; then
8946   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8947 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8948    { (exit 1); exit 1; }; }
8949 fi
8950 cat >conftest.$ac_ext <<_ACEOF
8951 /* confdefs.h.  */
8952 _ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h.  */
8956 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8957    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8958 #define dlopen innocuous_dlopen
8959
8960 /* System header to define __stub macros and hopefully few prototypes,
8961     which can conflict with char dlopen (); below.
8962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8963     <limits.h> exists even on freestanding compilers.  */
8964
8965 #ifdef __STDC__
8966 # include <limits.h>
8967 #else
8968 # include <assert.h>
8969 #endif
8970
8971 #undef dlopen
8972
8973 /* Override any gcc2 internal prototype to avoid an error.  */
8974 #ifdef __cplusplus
8975 extern "C"
8976 {
8977 #endif
8978 /* We use char because int might match the return type of a gcc2
8979    builtin and then its argument prototype would still apply.  */
8980 char dlopen ();
8981 /* The GNU C library defines this for functions which it implements
8982     to always fail with ENOSYS.  Some functions are actually named
8983     something starting with __ and the normal name is an alias.  */
8984 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8985 choke me
8986 #else
8987 char (*f) () = dlopen;
8988 #endif
8989 #ifdef __cplusplus
8990 }
8991 #endif
8992
8993 int
8994 main ()
8995 {
8996 return f != dlopen;
8997   ;
8998   return 0;
8999 }
9000 _ACEOF
9001 rm -f conftest.$ac_objext conftest$ac_exeext
9002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9003   (eval $ac_link) 2>conftest.er1
9004   ac_status=$?
9005   grep -v '^ *+' conftest.er1 >conftest.err
9006   rm -f conftest.er1
9007   cat conftest.err >&5
9008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009   (exit $ac_status); } &&
9010          { ac_try='test -z "$ac_c_werror_flag"
9011                          || test ! -s conftest.err'
9012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013   (eval $ac_try) 2>&5
9014   ac_status=$?
9015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016   (exit $ac_status); }; } &&
9017          { ac_try='test -s conftest$ac_exeext'
9018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019   (eval $ac_try) 2>&5
9020   ac_status=$?
9021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022   (exit $ac_status); }; }; then
9023   ac_cv_func_dlopen=yes
9024 else
9025   echo "$as_me: failed program was:" >&5
9026 sed 's/^/| /' conftest.$ac_ext >&5
9027
9028 ac_cv_func_dlopen=no
9029 fi
9030 rm -f conftest.err conftest.$ac_objext \
9031       conftest$ac_exeext conftest.$ac_ext
9032 fi
9033 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9034 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9035 if test $ac_cv_func_dlopen = yes; then
9036   lt_cv_dlopen="dlopen"
9037 else
9038   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9039 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9040 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9041   echo $ECHO_N "(cached) $ECHO_C" >&6
9042 else
9043   ac_check_lib_save_LIBS=$LIBS
9044 LIBS="-ldl  $LIBS"
9045 if test x$gcc_no_link = xyes; then
9046   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9047 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9048    { (exit 1); exit 1; }; }
9049 fi
9050 cat >conftest.$ac_ext <<_ACEOF
9051 /* confdefs.h.  */
9052 _ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h.  */
9056
9057 /* Override any gcc2 internal prototype to avoid an error.  */
9058 #ifdef __cplusplus
9059 extern "C"
9060 #endif
9061 /* We use char because int might match the return type of a gcc2
9062    builtin and then its argument prototype would still apply.  */
9063 char dlopen ();
9064 int
9065 main ()
9066 {
9067 dlopen ();
9068   ;
9069   return 0;
9070 }
9071 _ACEOF
9072 rm -f conftest.$ac_objext conftest$ac_exeext
9073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9074   (eval $ac_link) 2>conftest.er1
9075   ac_status=$?
9076   grep -v '^ *+' conftest.er1 >conftest.err
9077   rm -f conftest.er1
9078   cat conftest.err >&5
9079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080   (exit $ac_status); } &&
9081          { ac_try='test -z "$ac_c_werror_flag"
9082                          || test ! -s conftest.err'
9083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084   (eval $ac_try) 2>&5
9085   ac_status=$?
9086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087   (exit $ac_status); }; } &&
9088          { ac_try='test -s conftest$ac_exeext'
9089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090   (eval $ac_try) 2>&5
9091   ac_status=$?
9092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093   (exit $ac_status); }; }; then
9094   ac_cv_lib_dl_dlopen=yes
9095 else
9096   echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.$ac_ext >&5
9098
9099 ac_cv_lib_dl_dlopen=no
9100 fi
9101 rm -f conftest.err conftest.$ac_objext \
9102       conftest$ac_exeext conftest.$ac_ext
9103 LIBS=$ac_check_lib_save_LIBS
9104 fi
9105 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9106 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9107 if test $ac_cv_lib_dl_dlopen = yes; then
9108   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9109 else
9110   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9111 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9112 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9113   echo $ECHO_N "(cached) $ECHO_C" >&6
9114 else
9115   ac_check_lib_save_LIBS=$LIBS
9116 LIBS="-lsvld  $LIBS"
9117 if test x$gcc_no_link = xyes; then
9118   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9119 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9120    { (exit 1); exit 1; }; }
9121 fi
9122 cat >conftest.$ac_ext <<_ACEOF
9123 /* confdefs.h.  */
9124 _ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h.  */
9128
9129 /* Override any gcc2 internal prototype to avoid an error.  */
9130 #ifdef __cplusplus
9131 extern "C"
9132 #endif
9133 /* We use char because int might match the return type of a gcc2
9134    builtin and then its argument prototype would still apply.  */
9135 char dlopen ();
9136 int
9137 main ()
9138 {
9139 dlopen ();
9140   ;
9141   return 0;
9142 }
9143 _ACEOF
9144 rm -f conftest.$ac_objext conftest$ac_exeext
9145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9146   (eval $ac_link) 2>conftest.er1
9147   ac_status=$?
9148   grep -v '^ *+' conftest.er1 >conftest.err
9149   rm -f conftest.er1
9150   cat conftest.err >&5
9151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152   (exit $ac_status); } &&
9153          { ac_try='test -z "$ac_c_werror_flag"
9154                          || test ! -s conftest.err'
9155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156   (eval $ac_try) 2>&5
9157   ac_status=$?
9158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159   (exit $ac_status); }; } &&
9160          { ac_try='test -s conftest$ac_exeext'
9161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162   (eval $ac_try) 2>&5
9163   ac_status=$?
9164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165   (exit $ac_status); }; }; then
9166   ac_cv_lib_svld_dlopen=yes
9167 else
9168   echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9170
9171 ac_cv_lib_svld_dlopen=no
9172 fi
9173 rm -f conftest.err conftest.$ac_objext \
9174       conftest$ac_exeext conftest.$ac_ext
9175 LIBS=$ac_check_lib_save_LIBS
9176 fi
9177 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9178 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9179 if test $ac_cv_lib_svld_dlopen = yes; then
9180   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9181 else
9182   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9183 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9184 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9185   echo $ECHO_N "(cached) $ECHO_C" >&6
9186 else
9187   ac_check_lib_save_LIBS=$LIBS
9188 LIBS="-ldld  $LIBS"
9189 if test x$gcc_no_link = xyes; then
9190   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9191 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9192    { (exit 1); exit 1; }; }
9193 fi
9194 cat >conftest.$ac_ext <<_ACEOF
9195 /* confdefs.h.  */
9196 _ACEOF
9197 cat confdefs.h >>conftest.$ac_ext
9198 cat >>conftest.$ac_ext <<_ACEOF
9199 /* end confdefs.h.  */
9200
9201 /* Override any gcc2 internal prototype to avoid an error.  */
9202 #ifdef __cplusplus
9203 extern "C"
9204 #endif
9205 /* We use char because int might match the return type of a gcc2
9206    builtin and then its argument prototype would still apply.  */
9207 char dld_link ();
9208 int
9209 main ()
9210 {
9211 dld_link ();
9212   ;
9213   return 0;
9214 }
9215 _ACEOF
9216 rm -f conftest.$ac_objext conftest$ac_exeext
9217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9218   (eval $ac_link) 2>conftest.er1
9219   ac_status=$?
9220   grep -v '^ *+' conftest.er1 >conftest.err
9221   rm -f conftest.er1
9222   cat conftest.err >&5
9223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224   (exit $ac_status); } &&
9225          { ac_try='test -z "$ac_c_werror_flag"
9226                          || test ! -s conftest.err'
9227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228   (eval $ac_try) 2>&5
9229   ac_status=$?
9230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231   (exit $ac_status); }; } &&
9232          { ac_try='test -s conftest$ac_exeext'
9233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234   (eval $ac_try) 2>&5
9235   ac_status=$?
9236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237   (exit $ac_status); }; }; then
9238   ac_cv_lib_dld_dld_link=yes
9239 else
9240   echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9242
9243 ac_cv_lib_dld_dld_link=no
9244 fi
9245 rm -f conftest.err conftest.$ac_objext \
9246       conftest$ac_exeext conftest.$ac_ext
9247 LIBS=$ac_check_lib_save_LIBS
9248 fi
9249 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9250 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9251 if test $ac_cv_lib_dld_dld_link = yes; then
9252   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9253 fi
9254
9255
9256 fi
9257
9258
9259 fi
9260
9261
9262 fi
9263
9264
9265 fi
9266
9267
9268 fi
9269
9270     ;;
9271   esac
9272
9273   if test "x$lt_cv_dlopen" != xno; then
9274     enable_dlopen=yes
9275   else
9276     enable_dlopen=no
9277   fi
9278
9279   case $lt_cv_dlopen in
9280   dlopen)
9281     save_CPPFLAGS="$CPPFLAGS"
9282     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9283
9284     save_LDFLAGS="$LDFLAGS"
9285     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9286
9287     save_LIBS="$LIBS"
9288     LIBS="$lt_cv_dlopen_libs $LIBS"
9289
9290     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9291 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9292 if test "${lt_cv_dlopen_self+set}" = set; then
9293   echo $ECHO_N "(cached) $ECHO_C" >&6
9294 else
9295           if test "$cross_compiling" = yes; then :
9296   lt_cv_dlopen_self=cross
9297 else
9298   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9299   lt_status=$lt_dlunknown
9300   cat > conftest.$ac_ext <<_LT_EOF
9301 #line 9301 "configure"
9302 #include "confdefs.h"
9303
9304 #if HAVE_DLFCN_H
9305 #include <dlfcn.h>
9306 #endif
9307
9308 #include <stdio.h>
9309
9310 #ifdef RTLD_GLOBAL
9311 #  define LT_DLGLOBAL           RTLD_GLOBAL
9312 #else
9313 #  ifdef DL_GLOBAL
9314 #    define LT_DLGLOBAL         DL_GLOBAL
9315 #  else
9316 #    define LT_DLGLOBAL         0
9317 #  endif
9318 #endif
9319
9320 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9321    find out it does not work in some platform. */
9322 #ifndef LT_DLLAZY_OR_NOW
9323 #  ifdef RTLD_LAZY
9324 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9325 #  else
9326 #    ifdef DL_LAZY
9327 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9328 #    else
9329 #      ifdef RTLD_NOW
9330 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9331 #      else
9332 #        ifdef DL_NOW
9333 #          define LT_DLLAZY_OR_NOW      DL_NOW
9334 #        else
9335 #          define LT_DLLAZY_OR_NOW      0
9336 #        endif
9337 #      endif
9338 #    endif
9339 #  endif
9340 #endif
9341
9342 #ifdef __cplusplus
9343 extern "C" void exit (int);
9344 #endif
9345
9346 void fnord() { int i=42;}
9347 int main ()
9348 {
9349   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9350   int status = $lt_dlunknown;
9351
9352   if (self)
9353     {
9354       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9355       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9356       /* dlclose (self); */
9357     }
9358   else
9359     puts (dlerror ());
9360
9361     exit (status);
9362 }
9363 _LT_EOF
9364   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9365   (eval $ac_link) 2>&5
9366   ac_status=$?
9367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9369     (./conftest; exit; ) >&5 2>/dev/null
9370     lt_status=$?
9371     case x$lt_status in
9372       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9373       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9374       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9375     esac
9376   else :
9377     # compilation failed
9378     lt_cv_dlopen_self=no
9379   fi
9380 fi
9381 rm -fr conftest*
9382
9383
9384 fi
9385 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9386 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9387
9388     if test "x$lt_cv_dlopen_self" = xyes; then
9389       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9390       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9391 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9392 if test "${lt_cv_dlopen_self_static+set}" = set; then
9393   echo $ECHO_N "(cached) $ECHO_C" >&6
9394 else
9395           if test "$cross_compiling" = yes; then :
9396   lt_cv_dlopen_self_static=cross
9397 else
9398   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9399   lt_status=$lt_dlunknown
9400   cat > conftest.$ac_ext <<_LT_EOF
9401 #line 9401 "configure"
9402 #include "confdefs.h"
9403
9404 #if HAVE_DLFCN_H
9405 #include <dlfcn.h>
9406 #endif
9407
9408 #include <stdio.h>
9409
9410 #ifdef RTLD_GLOBAL
9411 #  define LT_DLGLOBAL           RTLD_GLOBAL
9412 #else
9413 #  ifdef DL_GLOBAL
9414 #    define LT_DLGLOBAL         DL_GLOBAL
9415 #  else
9416 #    define LT_DLGLOBAL         0
9417 #  endif
9418 #endif
9419
9420 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9421    find out it does not work in some platform. */
9422 #ifndef LT_DLLAZY_OR_NOW
9423 #  ifdef RTLD_LAZY
9424 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9425 #  else
9426 #    ifdef DL_LAZY
9427 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9428 #    else
9429 #      ifdef RTLD_NOW
9430 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9431 #      else
9432 #        ifdef DL_NOW
9433 #          define LT_DLLAZY_OR_NOW      DL_NOW
9434 #        else
9435 #          define LT_DLLAZY_OR_NOW      0
9436 #        endif
9437 #      endif
9438 #    endif
9439 #  endif
9440 #endif
9441
9442 #ifdef __cplusplus
9443 extern "C" void exit (int);
9444 #endif
9445
9446 void fnord() { int i=42;}
9447 int main ()
9448 {
9449   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9450   int status = $lt_dlunknown;
9451
9452   if (self)
9453     {
9454       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9455       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9456       /* dlclose (self); */
9457     }
9458   else
9459     puts (dlerror ());
9460
9461     exit (status);
9462 }
9463 _LT_EOF
9464   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9465   (eval $ac_link) 2>&5
9466   ac_status=$?
9467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9469     (./conftest; exit; ) >&5 2>/dev/null
9470     lt_status=$?
9471     case x$lt_status in
9472       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9473       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9474       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9475     esac
9476   else :
9477     # compilation failed
9478     lt_cv_dlopen_self_static=no
9479   fi
9480 fi
9481 rm -fr conftest*
9482
9483
9484 fi
9485 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9486 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9487     fi
9488
9489     CPPFLAGS="$save_CPPFLAGS"
9490     LDFLAGS="$save_LDFLAGS"
9491     LIBS="$save_LIBS"
9492     ;;
9493   esac
9494
9495   case $lt_cv_dlopen_self in
9496   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9497   *) enable_dlopen_self=unknown ;;
9498   esac
9499
9500   case $lt_cv_dlopen_self_static in
9501   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9502   *) enable_dlopen_self_static=unknown ;;
9503   esac
9504 fi
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522 striplib=
9523 old_striplib=
9524 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9525 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9526 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9527   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9528   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9529   echo "$as_me:$LINENO: result: yes" >&5
9530 echo "${ECHO_T}yes" >&6
9531 else
9532 # FIXME - insert some real tests, host_os isn't really good enough
9533   case $host_os in
9534   darwin*)
9535     if test -n "$STRIP" ; then
9536       striplib="$STRIP -x"
9537       old_striplib="$STRIP -S"
9538       echo "$as_me:$LINENO: result: yes" >&5
9539 echo "${ECHO_T}yes" >&6
9540     else
9541       echo "$as_me:$LINENO: result: no" >&5
9542 echo "${ECHO_T}no" >&6
9543     fi
9544     ;;
9545   *)
9546     echo "$as_me:$LINENO: result: no" >&5
9547 echo "${ECHO_T}no" >&6
9548     ;;
9549   esac
9550 fi
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563   # Report which library types will actually be built
9564   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9565 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9566   echo "$as_me:$LINENO: result: $can_build_shared" >&5
9567 echo "${ECHO_T}$can_build_shared" >&6
9568
9569   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9570 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9571   test "$can_build_shared" = "no" && enable_shared=no
9572
9573   # On AIX, shared libraries and static libraries use the same namespace, and
9574   # are all built from PIC.
9575   case $host_os in
9576   aix3*)
9577     test "$enable_shared" = yes && enable_static=no
9578     if test -n "$RANLIB"; then
9579       archive_cmds="$archive_cmds~\$RANLIB \$lib"
9580       postinstall_cmds='$RANLIB $lib'
9581     fi
9582     ;;
9583
9584   aix[4-9]*)
9585     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9586       test "$enable_shared" = yes && enable_static=no
9587     fi
9588     ;;
9589   esac
9590   echo "$as_me:$LINENO: result: $enable_shared" >&5
9591 echo "${ECHO_T}$enable_shared" >&6
9592
9593   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9594 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9595   # Make sure either enable_shared or enable_static is yes.
9596   test "$enable_shared" = yes || enable_static=yes
9597   echo "$as_me:$LINENO: result: $enable_static" >&5
9598 echo "${ECHO_T}$enable_static" >&6
9599
9600
9601
9602
9603 fi
9604 ac_ext=c
9605 ac_cpp='$CPP $CPPFLAGS'
9606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9609
9610 CC="$lt_save_CC"
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624                   ac_config_commands="$ac_config_commands libtool"
9625
9626
9627
9628
9629 # Only expand once:
9630
9631
9632
9633 # Find CPP now so that any conditional tests below won't do it and
9634 # thereby make the resulting definitions conditional.
9635 ac_ext=c
9636 ac_cpp='$CPP $CPPFLAGS'
9637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9640 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
9641 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
9642 # On Suns, sometimes $CPP names a directory.
9643 if test -n "$CPP" && test -d "$CPP"; then
9644   CPP=
9645 fi
9646 if test -z "$CPP"; then
9647   if test "${ac_cv_prog_CPP+set}" = set; then
9648   echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650       # Double quotes because CPP needs to be expanded
9651     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9652     do
9653       ac_preproc_ok=false
9654 for ac_c_preproc_warn_flag in '' yes
9655 do
9656   # Use a header file that comes with gcc, so configuring glibc
9657   # with a fresh cross-compiler works.
9658   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9659   # <limits.h> exists even on freestanding compilers.
9660   # On the NeXT, cc -E runs the code through the compiler's parser,
9661   # not just through cpp. "Syntax error" is here to catch this case.
9662   cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h.  */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h.  */
9668 #ifdef __STDC__
9669 # include <limits.h>
9670 #else
9671 # include <assert.h>
9672 #endif
9673                      Syntax error
9674 _ACEOF
9675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9676   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9677   ac_status=$?
9678   grep -v '^ *+' conftest.er1 >conftest.err
9679   rm -f conftest.er1
9680   cat conftest.err >&5
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   (exit $ac_status); } >/dev/null; then
9683   if test -s conftest.err; then
9684     ac_cpp_err=$ac_c_preproc_warn_flag
9685     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9686   else
9687     ac_cpp_err=
9688   fi
9689 else
9690   ac_cpp_err=yes
9691 fi
9692 if test -z "$ac_cpp_err"; then
9693   :
9694 else
9695   echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9697
9698   # Broken: fails on valid input.
9699 continue
9700 fi
9701 rm -f conftest.err conftest.$ac_ext
9702
9703   # OK, works on sane cases.  Now check whether non-existent headers
9704   # can be detected and how.
9705   cat >conftest.$ac_ext <<_ACEOF
9706 /* confdefs.h.  */
9707 _ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h.  */
9711 #include <ac_nonexistent.h>
9712 _ACEOF
9713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9714   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9715   ac_status=$?
9716   grep -v '^ *+' conftest.er1 >conftest.err
9717   rm -f conftest.er1
9718   cat conftest.err >&5
9719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720   (exit $ac_status); } >/dev/null; then
9721   if test -s conftest.err; then
9722     ac_cpp_err=$ac_c_preproc_warn_flag
9723     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9724   else
9725     ac_cpp_err=
9726   fi
9727 else
9728   ac_cpp_err=yes
9729 fi
9730 if test -z "$ac_cpp_err"; then
9731   # Broken: success on invalid input.
9732 continue
9733 else
9734   echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9736
9737   # Passes both tests.
9738 ac_preproc_ok=:
9739 break
9740 fi
9741 rm -f conftest.err conftest.$ac_ext
9742
9743 done
9744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9745 rm -f conftest.err conftest.$ac_ext
9746 if $ac_preproc_ok; then
9747   break
9748 fi
9749
9750     done
9751     ac_cv_prog_CPP=$CPP
9752
9753 fi
9754   CPP=$ac_cv_prog_CPP
9755 else
9756   ac_cv_prog_CPP=$CPP
9757 fi
9758 echo "$as_me:$LINENO: result: $CPP" >&5
9759 echo "${ECHO_T}$CPP" >&6
9760 ac_preproc_ok=false
9761 for ac_c_preproc_warn_flag in '' yes
9762 do
9763   # Use a header file that comes with gcc, so configuring glibc
9764   # with a fresh cross-compiler works.
9765   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9766   # <limits.h> exists even on freestanding compilers.
9767   # On the NeXT, cc -E runs the code through the compiler's parser,
9768   # not just through cpp. "Syntax error" is here to catch this case.
9769   cat >conftest.$ac_ext <<_ACEOF
9770 /* confdefs.h.  */
9771 _ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h.  */
9775 #ifdef __STDC__
9776 # include <limits.h>
9777 #else
9778 # include <assert.h>
9779 #endif
9780                      Syntax error
9781 _ACEOF
9782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9783   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9784   ac_status=$?
9785   grep -v '^ *+' conftest.er1 >conftest.err
9786   rm -f conftest.er1
9787   cat conftest.err >&5
9788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789   (exit $ac_status); } >/dev/null; then
9790   if test -s conftest.err; then
9791     ac_cpp_err=$ac_c_preproc_warn_flag
9792     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9793   else
9794     ac_cpp_err=
9795   fi
9796 else
9797   ac_cpp_err=yes
9798 fi
9799 if test -z "$ac_cpp_err"; then
9800   :
9801 else
9802   echo "$as_me: failed program was:" >&5
9803 sed 's/^/| /' conftest.$ac_ext >&5
9804
9805   # Broken: fails on valid input.
9806 continue
9807 fi
9808 rm -f conftest.err conftest.$ac_ext
9809
9810   # OK, works on sane cases.  Now check whether non-existent headers
9811   # can be detected and how.
9812   cat >conftest.$ac_ext <<_ACEOF
9813 /* confdefs.h.  */
9814 _ACEOF
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h.  */
9818 #include <ac_nonexistent.h>
9819 _ACEOF
9820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9821   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9822   ac_status=$?
9823   grep -v '^ *+' conftest.er1 >conftest.err
9824   rm -f conftest.er1
9825   cat conftest.err >&5
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); } >/dev/null; then
9828   if test -s conftest.err; then
9829     ac_cpp_err=$ac_c_preproc_warn_flag
9830     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9831   else
9832     ac_cpp_err=
9833   fi
9834 else
9835   ac_cpp_err=yes
9836 fi
9837 if test -z "$ac_cpp_err"; then
9838   # Broken: success on invalid input.
9839 continue
9840 else
9841   echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9843
9844   # Passes both tests.
9845 ac_preproc_ok=:
9846 break
9847 fi
9848 rm -f conftest.err conftest.$ac_ext
9849
9850 done
9851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9852 rm -f conftest.err conftest.$ac_ext
9853 if $ac_preproc_ok; then
9854   :
9855 else
9856   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
9857 See \`config.log' for more details." >&5
9858 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
9859 See \`config.log' for more details." >&2;}
9860    { (exit 1); exit 1; }; }
9861 fi
9862
9863 ac_ext=c
9864 ac_cpp='$CPP $CPPFLAGS'
9865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9868
9869
9870 if test -n "$with_cross_host"; then
9871    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
9872    # may not work correctly, because the compiler may not be able to
9873    # link executables.
9874
9875    # We assume newlib.  This lets us hard-code the functions we know
9876    # we'll have.
9877    cat >>confdefs.h <<\_ACEOF
9878 #define HAVE_MEMCPY 1
9879 _ACEOF
9880
9881    cat >>confdefs.h <<\_ACEOF
9882 #define HAVE_STRERROR 1
9883 _ACEOF
9884
9885
9886    # We ignore --with-system-zlib in this case.
9887    target_all=libzgcj.la
9888 else
9889    if test x$gcc_no_link = xyes; then
9890   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
9891     ac_cv_func_mmap_fixed_mapped=no
9892   fi
9893 fi
9894 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
9895
9896
9897 for ac_header in stdlib.h unistd.h
9898 do
9899 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9901   echo "$as_me:$LINENO: checking for $ac_header" >&5
9902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9904   echo $ECHO_N "(cached) $ECHO_C" >&6
9905 fi
9906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9908 else
9909   # Is the header compilable?
9910 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9912 cat >conftest.$ac_ext <<_ACEOF
9913 /* confdefs.h.  */
9914 _ACEOF
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h.  */
9918 $ac_includes_default
9919 #include <$ac_header>
9920 _ACEOF
9921 rm -f conftest.$ac_objext
9922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9923   (eval $ac_compile) 2>conftest.er1
9924   ac_status=$?
9925   grep -v '^ *+' conftest.er1 >conftest.err
9926   rm -f conftest.er1
9927   cat conftest.err >&5
9928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929   (exit $ac_status); } &&
9930          { ac_try='test -z "$ac_c_werror_flag"
9931                          || test ! -s conftest.err'
9932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933   (eval $ac_try) 2>&5
9934   ac_status=$?
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); }; } &&
9937          { ac_try='test -s conftest.$ac_objext'
9938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939   (eval $ac_try) 2>&5
9940   ac_status=$?
9941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); }; }; then
9943   ac_header_compiler=yes
9944 else
9945   echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9947
9948 ac_header_compiler=no
9949 fi
9950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9951 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9952 echo "${ECHO_T}$ac_header_compiler" >&6
9953
9954 # Is the header present?
9955 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9957 cat >conftest.$ac_ext <<_ACEOF
9958 /* confdefs.h.  */
9959 _ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h.  */
9963 #include <$ac_header>
9964 _ACEOF
9965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9966   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9967   ac_status=$?
9968   grep -v '^ *+' conftest.er1 >conftest.err
9969   rm -f conftest.er1
9970   cat conftest.err >&5
9971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972   (exit $ac_status); } >/dev/null; then
9973   if test -s conftest.err; then
9974     ac_cpp_err=$ac_c_preproc_warn_flag
9975     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9976   else
9977     ac_cpp_err=
9978   fi
9979 else
9980   ac_cpp_err=yes
9981 fi
9982 if test -z "$ac_cpp_err"; then
9983   ac_header_preproc=yes
9984 else
9985   echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9987
9988   ac_header_preproc=no
9989 fi
9990 rm -f conftest.err conftest.$ac_ext
9991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9992 echo "${ECHO_T}$ac_header_preproc" >&6
9993
9994 # So?  What about this header?
9995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9996   yes:no: )
9997     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10001     ac_header_preproc=yes
10002     ;;
10003   no:yes:* )
10004     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10006     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10007 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10008     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10010     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10011 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10012     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10014     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10016     (
10017       cat <<\_ASBOX
10018 ## ------------------------------------------ ##
10019 ## Report this to the AC_PACKAGE_NAME lists.  ##
10020 ## ------------------------------------------ ##
10021 _ASBOX
10022     ) |
10023       sed "s/^/$as_me: WARNING:     /" >&2
10024     ;;
10025 esac
10026 echo "$as_me:$LINENO: checking for $ac_header" >&5
10027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10029   echo $ECHO_N "(cached) $ECHO_C" >&6
10030 else
10031   eval "$as_ac_Header=\$ac_header_preproc"
10032 fi
10033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10035
10036 fi
10037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10038   cat >>confdefs.h <<_ACEOF
10039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10040 _ACEOF
10041
10042 fi
10043
10044 done
10045
10046
10047 for ac_func in getpagesize
10048 do
10049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10050 echo "$as_me:$LINENO: checking for $ac_func" >&5
10051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10052 if eval "test \"\${$as_ac_var+set}\" = set"; then
10053   echo $ECHO_N "(cached) $ECHO_C" >&6
10054 else
10055   if test x$gcc_no_link = xyes; then
10056   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10057 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10058    { (exit 1); exit 1; }; }
10059 fi
10060 cat >conftest.$ac_ext <<_ACEOF
10061 /* confdefs.h.  */
10062 _ACEOF
10063 cat confdefs.h >>conftest.$ac_ext
10064 cat >>conftest.$ac_ext <<_ACEOF
10065 /* end confdefs.h.  */
10066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10068 #define $ac_func innocuous_$ac_func
10069
10070 /* System header to define __stub macros and hopefully few prototypes,
10071     which can conflict with char $ac_func (); below.
10072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10073     <limits.h> exists even on freestanding compilers.  */
10074
10075 #ifdef __STDC__
10076 # include <limits.h>
10077 #else
10078 # include <assert.h>
10079 #endif
10080
10081 #undef $ac_func
10082
10083 /* Override any gcc2 internal prototype to avoid an error.  */
10084 #ifdef __cplusplus
10085 extern "C"
10086 {
10087 #endif
10088 /* We use char because int might match the return type of a gcc2
10089    builtin and then its argument prototype would still apply.  */
10090 char $ac_func ();
10091 /* The GNU C library defines this for functions which it implements
10092     to always fail with ENOSYS.  Some functions are actually named
10093     something starting with __ and the normal name is an alias.  */
10094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10095 choke me
10096 #else
10097 char (*f) () = $ac_func;
10098 #endif
10099 #ifdef __cplusplus
10100 }
10101 #endif
10102
10103 int
10104 main ()
10105 {
10106 return f != $ac_func;
10107   ;
10108   return 0;
10109 }
10110 _ACEOF
10111 rm -f conftest.$ac_objext conftest$ac_exeext
10112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10113   (eval $ac_link) 2>conftest.er1
10114   ac_status=$?
10115   grep -v '^ *+' conftest.er1 >conftest.err
10116   rm -f conftest.er1
10117   cat conftest.err >&5
10118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119   (exit $ac_status); } &&
10120          { ac_try='test -z "$ac_c_werror_flag"
10121                          || test ! -s conftest.err'
10122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123   (eval $ac_try) 2>&5
10124   ac_status=$?
10125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126   (exit $ac_status); }; } &&
10127          { ac_try='test -s conftest$ac_exeext'
10128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129   (eval $ac_try) 2>&5
10130   ac_status=$?
10131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132   (exit $ac_status); }; }; then
10133   eval "$as_ac_var=yes"
10134 else
10135   echo "$as_me: failed program was:" >&5
10136 sed 's/^/| /' conftest.$ac_ext >&5
10137
10138 eval "$as_ac_var=no"
10139 fi
10140 rm -f conftest.err conftest.$ac_objext \
10141       conftest$ac_exeext conftest.$ac_ext
10142 fi
10143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10145 if test `eval echo '${'$as_ac_var'}'` = yes; then
10146   cat >>confdefs.h <<_ACEOF
10147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10148 _ACEOF
10149
10150 fi
10151 done
10152
10153 echo "$as_me:$LINENO: checking for working mmap" >&5
10154 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10155 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10156   echo $ECHO_N "(cached) $ECHO_C" >&6
10157 else
10158   if test "$cross_compiling" = yes; then
10159   ac_cv_func_mmap_fixed_mapped=no
10160 else
10161   cat >conftest.$ac_ext <<_ACEOF
10162 /* confdefs.h.  */
10163 _ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h.  */
10167 $ac_includes_default
10168 /* malloc might have been renamed as rpl_malloc. */
10169 #undef malloc
10170
10171 /* Thanks to Mike Haertel and Jim Avera for this test.
10172    Here is a matrix of mmap possibilities:
10173         mmap private not fixed
10174         mmap private fixed at somewhere currently unmapped
10175         mmap private fixed at somewhere already mapped
10176         mmap shared not fixed
10177         mmap shared fixed at somewhere currently unmapped
10178         mmap shared fixed at somewhere already mapped
10179    For private mappings, we should verify that changes cannot be read()
10180    back from the file, nor mmap's back from the file at a different
10181    address.  (There have been systems where private was not correctly
10182    implemented like the infamous i386 svr4.0, and systems where the
10183    VM page cache was not coherent with the file system buffer cache
10184    like early versions of FreeBSD and possibly contemporary NetBSD.)
10185    For shared mappings, we should conversely verify that changes get
10186    propagated back to all the places they're supposed to be.
10187
10188    Grep wants private fixed already mapped.
10189    The main things grep needs to know about mmap are:
10190    * does it exist and is it safe to write into the mmap'd area
10191    * how to use it (BSD variants)  */
10192
10193 #include <fcntl.h>
10194 #include <sys/mman.h>
10195
10196 #if !STDC_HEADERS && !HAVE_STDLIB_H
10197 char *malloc ();
10198 #endif
10199
10200 /* This mess was copied from the GNU getpagesize.h.  */
10201 #if !HAVE_GETPAGESIZE
10202 /* Assume that all systems that can run configure have sys/param.h.  */
10203 # if !HAVE_SYS_PARAM_H
10204 #  define HAVE_SYS_PARAM_H 1
10205 # endif
10206
10207 # ifdef _SC_PAGESIZE
10208 #  define getpagesize() sysconf(_SC_PAGESIZE)
10209 # else /* no _SC_PAGESIZE */
10210 #  if HAVE_SYS_PARAM_H
10211 #   include <sys/param.h>
10212 #   ifdef EXEC_PAGESIZE
10213 #    define getpagesize() EXEC_PAGESIZE
10214 #   else /* no EXEC_PAGESIZE */
10215 #    ifdef NBPG
10216 #     define getpagesize() NBPG * CLSIZE
10217 #     ifndef CLSIZE
10218 #      define CLSIZE 1
10219 #     endif /* no CLSIZE */
10220 #    else /* no NBPG */
10221 #     ifdef NBPC
10222 #      define getpagesize() NBPC
10223 #     else /* no NBPC */
10224 #      ifdef PAGESIZE
10225 #       define getpagesize() PAGESIZE
10226 #      endif /* PAGESIZE */
10227 #     endif /* no NBPC */
10228 #    endif /* no NBPG */
10229 #   endif /* no EXEC_PAGESIZE */
10230 #  else /* no HAVE_SYS_PARAM_H */
10231 #   define getpagesize() 8192   /* punt totally */
10232 #  endif /* no HAVE_SYS_PARAM_H */
10233 # endif /* no _SC_PAGESIZE */
10234
10235 #endif /* no HAVE_GETPAGESIZE */
10236
10237 int
10238 main ()
10239 {
10240   char *data, *data2, *data3;
10241   int i, pagesize;
10242   int fd;
10243
10244   pagesize = getpagesize ();
10245
10246   /* First, make a file with some known garbage in it. */
10247   data = (char *) malloc (pagesize);
10248   if (!data)
10249     exit (1);
10250   for (i = 0; i < pagesize; ++i)
10251     *(data + i) = rand ();
10252   umask (0);
10253   fd = creat ("conftest.mmap", 0600);
10254   if (fd < 0)
10255     exit (1);
10256   if (write (fd, data, pagesize) != pagesize)
10257     exit (1);
10258   close (fd);
10259
10260   /* Next, try to mmap the file at a fixed address which already has
10261      something else allocated at it.  If we can, also make sure that
10262      we see the same garbage.  */
10263   fd = open ("conftest.mmap", O_RDWR);
10264   if (fd < 0)
10265     exit (1);
10266   data2 = (char *) malloc (2 * pagesize);
10267   if (!data2)
10268     exit (1);
10269   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10270   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10271                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10272     exit (1);
10273   for (i = 0; i < pagesize; ++i)
10274     if (*(data + i) != *(data2 + i))
10275       exit (1);
10276
10277   /* Finally, make sure that changes to the mapped area do not
10278      percolate back to the file as seen by read().  (This is a bug on
10279      some variants of i386 svr4.0.)  */
10280   for (i = 0; i < pagesize; ++i)
10281     *(data2 + i) = *(data2 + i) + 1;
10282   data3 = (char *) malloc (pagesize);
10283   if (!data3)
10284     exit (1);
10285   if (read (fd, data3, pagesize) != pagesize)
10286     exit (1);
10287   for (i = 0; i < pagesize; ++i)
10288     if (*(data + i) != *(data3 + i))
10289       exit (1);
10290   close (fd);
10291   exit (0);
10292 }
10293 _ACEOF
10294 rm -f conftest$ac_exeext
10295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10296   (eval $ac_link) 2>&5
10297   ac_status=$?
10298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301   (eval $ac_try) 2>&5
10302   ac_status=$?
10303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304   (exit $ac_status); }; }; then
10305   ac_cv_func_mmap_fixed_mapped=yes
10306 else
10307   echo "$as_me: program exited with status $ac_status" >&5
10308 echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10310
10311 ( exit $ac_status )
10312 ac_cv_func_mmap_fixed_mapped=no
10313 fi
10314 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10315 fi
10316 fi
10317 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10318 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10319 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10320
10321 cat >>confdefs.h <<\_ACEOF
10322 #define HAVE_MMAP 1
10323 _ACEOF
10324
10325 fi
10326 rm -f conftest.mmap
10327
10328 fi
10329
10330
10331 for ac_func in memcpy strerror
10332 do
10333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10334 echo "$as_me:$LINENO: checking for $ac_func" >&5
10335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10336 if eval "test \"\${$as_ac_var+set}\" = set"; then
10337   echo $ECHO_N "(cached) $ECHO_C" >&6
10338 else
10339   if test x$gcc_no_link = xyes; then
10340   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10341 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10342    { (exit 1); exit 1; }; }
10343 fi
10344 cat >conftest.$ac_ext <<_ACEOF
10345 /* confdefs.h.  */
10346 _ACEOF
10347 cat confdefs.h >>conftest.$ac_ext
10348 cat >>conftest.$ac_ext <<_ACEOF
10349 /* end confdefs.h.  */
10350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10352 #define $ac_func innocuous_$ac_func
10353
10354 /* System header to define __stub macros and hopefully few prototypes,
10355     which can conflict with char $ac_func (); below.
10356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10357     <limits.h> exists even on freestanding compilers.  */
10358
10359 #ifdef __STDC__
10360 # include <limits.h>
10361 #else
10362 # include <assert.h>
10363 #endif
10364
10365 #undef $ac_func
10366
10367 /* Override any gcc2 internal prototype to avoid an error.  */
10368 #ifdef __cplusplus
10369 extern "C"
10370 {
10371 #endif
10372 /* We use char because int might match the return type of a gcc2
10373    builtin and then its argument prototype would still apply.  */
10374 char $ac_func ();
10375 /* The GNU C library defines this for functions which it implements
10376     to always fail with ENOSYS.  Some functions are actually named
10377     something starting with __ and the normal name is an alias.  */
10378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10379 choke me
10380 #else
10381 char (*f) () = $ac_func;
10382 #endif
10383 #ifdef __cplusplus
10384 }
10385 #endif
10386
10387 int
10388 main ()
10389 {
10390 return f != $ac_func;
10391   ;
10392   return 0;
10393 }
10394 _ACEOF
10395 rm -f conftest.$ac_objext conftest$ac_exeext
10396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10397   (eval $ac_link) 2>conftest.er1
10398   ac_status=$?
10399   grep -v '^ *+' conftest.er1 >conftest.err
10400   rm -f conftest.er1
10401   cat conftest.err >&5
10402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403   (exit $ac_status); } &&
10404          { ac_try='test -z "$ac_c_werror_flag"
10405                          || test ! -s conftest.err'
10406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407   (eval $ac_try) 2>&5
10408   ac_status=$?
10409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410   (exit $ac_status); }; } &&
10411          { ac_try='test -s conftest$ac_exeext'
10412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413   (eval $ac_try) 2>&5
10414   ac_status=$?
10415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416   (exit $ac_status); }; }; then
10417   eval "$as_ac_var=yes"
10418 else
10419   echo "$as_me: failed program was:" >&5
10420 sed 's/^/| /' conftest.$ac_ext >&5
10421
10422 eval "$as_ac_var=no"
10423 fi
10424 rm -f conftest.err conftest.$ac_objext \
10425       conftest$ac_exeext conftest.$ac_ext
10426 fi
10427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10429 if test `eval echo '${'$as_ac_var'}'` = yes; then
10430   cat >>confdefs.h <<_ACEOF
10431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10432 _ACEOF
10433
10434 fi
10435 done
10436
10437
10438    if test "$with_system_zlib" = yes; then
10439       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
10440 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
10441 if test "${ac_cv_lib_z_deflate+set}" = set; then
10442   echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10444   ac_check_lib_save_LIBS=$LIBS
10445 LIBS="-lz  $LIBS"
10446 if test x$gcc_no_link = xyes; then
10447   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10448 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10449    { (exit 1); exit 1; }; }
10450 fi
10451 cat >conftest.$ac_ext <<_ACEOF
10452 /* confdefs.h.  */
10453 _ACEOF
10454 cat confdefs.h >>conftest.$ac_ext
10455 cat >>conftest.$ac_ext <<_ACEOF
10456 /* end confdefs.h.  */
10457
10458 /* Override any gcc2 internal prototype to avoid an error.  */
10459 #ifdef __cplusplus
10460 extern "C"
10461 #endif
10462 /* We use char because int might match the return type of a gcc2
10463    builtin and then its argument prototype would still apply.  */
10464 char deflate ();
10465 int
10466 main ()
10467 {
10468 deflate ();
10469   ;
10470   return 0;
10471 }
10472 _ACEOF
10473 rm -f conftest.$ac_objext conftest$ac_exeext
10474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10475   (eval $ac_link) 2>conftest.er1
10476   ac_status=$?
10477   grep -v '^ *+' conftest.er1 >conftest.err
10478   rm -f conftest.er1
10479   cat conftest.err >&5
10480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481   (exit $ac_status); } &&
10482          { ac_try='test -z "$ac_c_werror_flag"
10483                          || test ! -s conftest.err'
10484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485   (eval $ac_try) 2>&5
10486   ac_status=$?
10487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488   (exit $ac_status); }; } &&
10489          { ac_try='test -s conftest$ac_exeext'
10490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491   (eval $ac_try) 2>&5
10492   ac_status=$?
10493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494   (exit $ac_status); }; }; then
10495   ac_cv_lib_z_deflate=yes
10496 else
10497   echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10499
10500 ac_cv_lib_z_deflate=no
10501 fi
10502 rm -f conftest.err conftest.$ac_objext \
10503       conftest$ac_exeext conftest.$ac_ext
10504 LIBS=$ac_check_lib_save_LIBS
10505 fi
10506 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
10507 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
10508 if test $ac_cv_lib_z_deflate = yes; then
10509   target_all=
10510 else
10511   target_all=libzgcj.la
10512 fi
10513
10514    else
10515       target_all=libzgcj.la
10516    fi
10517 fi
10518
10519
10520
10521
10522 for ac_header in unistd.h
10523 do
10524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10526   echo "$as_me:$LINENO: checking for $ac_header" >&5
10527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10529   echo $ECHO_N "(cached) $ECHO_C" >&6
10530 fi
10531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10533 else
10534   # Is the header compilable?
10535 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10537 cat >conftest.$ac_ext <<_ACEOF
10538 /* confdefs.h.  */
10539 _ACEOF
10540 cat confdefs.h >>conftest.$ac_ext
10541 cat >>conftest.$ac_ext <<_ACEOF
10542 /* end confdefs.h.  */
10543 $ac_includes_default
10544 #include <$ac_header>
10545 _ACEOF
10546 rm -f conftest.$ac_objext
10547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10548   (eval $ac_compile) 2>conftest.er1
10549   ac_status=$?
10550   grep -v '^ *+' conftest.er1 >conftest.err
10551   rm -f conftest.er1
10552   cat conftest.err >&5
10553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554   (exit $ac_status); } &&
10555          { ac_try='test -z "$ac_c_werror_flag"
10556                          || test ! -s conftest.err'
10557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558   (eval $ac_try) 2>&5
10559   ac_status=$?
10560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561   (exit $ac_status); }; } &&
10562          { ac_try='test -s conftest.$ac_objext'
10563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564   (eval $ac_try) 2>&5
10565   ac_status=$?
10566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567   (exit $ac_status); }; }; then
10568   ac_header_compiler=yes
10569 else
10570   echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10572
10573 ac_header_compiler=no
10574 fi
10575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10576 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10577 echo "${ECHO_T}$ac_header_compiler" >&6
10578
10579 # Is the header present?
10580 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10582 cat >conftest.$ac_ext <<_ACEOF
10583 /* confdefs.h.  */
10584 _ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h.  */
10588 #include <$ac_header>
10589 _ACEOF
10590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10591   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10592   ac_status=$?
10593   grep -v '^ *+' conftest.er1 >conftest.err
10594   rm -f conftest.er1
10595   cat conftest.err >&5
10596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597   (exit $ac_status); } >/dev/null; then
10598   if test -s conftest.err; then
10599     ac_cpp_err=$ac_c_preproc_warn_flag
10600     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10601   else
10602     ac_cpp_err=
10603   fi
10604 else
10605   ac_cpp_err=yes
10606 fi
10607 if test -z "$ac_cpp_err"; then
10608   ac_header_preproc=yes
10609 else
10610   echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10612
10613   ac_header_preproc=no
10614 fi
10615 rm -f conftest.err conftest.$ac_ext
10616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10617 echo "${ECHO_T}$ac_header_preproc" >&6
10618
10619 # So?  What about this header?
10620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10621   yes:no: )
10622     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10626     ac_header_preproc=yes
10627     ;;
10628   no:yes:* )
10629     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10631     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10632 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10633     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10635     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10636 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10637     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10639     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10641     (
10642       cat <<\_ASBOX
10643 ## ------------------------------------------ ##
10644 ## Report this to the AC_PACKAGE_NAME lists.  ##
10645 ## ------------------------------------------ ##
10646 _ASBOX
10647     ) |
10648       sed "s/^/$as_me: WARNING:     /" >&2
10649     ;;
10650 esac
10651 echo "$as_me:$LINENO: checking for $ac_header" >&5
10652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10654   echo $ECHO_N "(cached) $ECHO_C" >&6
10655 else
10656   eval "$as_ac_Header=\$ac_header_preproc"
10657 fi
10658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10660
10661 fi
10662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10663   cat >>confdefs.h <<_ACEOF
10664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10665 _ACEOF
10666
10667 fi
10668
10669 done
10670
10671
10672 if test -n "$with_cross_host" &&
10673    test x"$with_cross_host" != x"no"; then
10674   toolexecdir='$(exec_prefix)/$(target_alias)'
10675   toolexeclibdir='$(toolexecdir)/lib'
10676 else
10677   toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
10678   toolexeclibdir='$(libdir)'
10679 fi
10680 if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
10681   multiosdir=/`$CC -print-multi-os-directory`
10682   case $multiosdir in
10683     /.) multiosdir= ;; # Avoid trailing /.
10684   esac
10685 else
10686   multiosdir=
10687 fi
10688 toolexeclibdir=${toolexeclibdir}${multiosdir}
10689
10690
10691
10692
10693
10694 if test -n "$with_target_subdir"; then
10695   TARGET_LIBRARY_TRUE=
10696   TARGET_LIBRARY_FALSE='#'
10697 else
10698   TARGET_LIBRARY_TRUE='#'
10699   TARGET_LIBRARY_FALSE=
10700 fi
10701
10702
10703 if test "${multilib}" = "yes"; then
10704   multilib_arg="--enable-multilib"
10705 else
10706   multilib_arg=
10707 fi
10708
10709           ac_config_files="$ac_config_files Makefile"
10710
10711 cat >confcache <<\_ACEOF
10712 # This file is a shell script that caches the results of configure
10713 # tests run on this system so they can be shared between configure
10714 # scripts and configure runs, see configure's option --config-cache.
10715 # It is not useful on other systems.  If it contains results you don't
10716 # want to keep, you may remove or edit it.
10717 #
10718 # config.status only pays attention to the cache file if you give it
10719 # the --recheck option to rerun configure.
10720 #
10721 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10722 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10723 # following values.
10724
10725 _ACEOF
10726
10727 # The following way of writing the cache mishandles newlines in values,
10728 # but we know of no workaround that is simple, portable, and efficient.
10729 # So, don't put newlines in cache variables' values.
10730 # Ultrix sh set writes to stderr and can't be redirected directly,
10731 # and sets the high bit in the cache file unless we assign to the vars.
10732 {
10733   (set) 2>&1 |
10734     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10735     *ac_space=\ *)
10736       # `set' does not quote correctly, so add quotes (double-quote
10737       # substitution turns \\\\ into \\, and sed turns \\ into \).
10738       sed -n \
10739         "s/'/'\\\\''/g;
10740           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10741       ;;
10742     *)
10743       # `set' quotes correctly as required by POSIX, so do not add quotes.
10744       sed -n \
10745         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10746       ;;
10747     esac;
10748 } |
10749   sed '
10750      t clear
10751      : clear
10752      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10753      t end
10754      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10755      : end' >>confcache
10756 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10757   if test -w $cache_file; then
10758     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10759     cat confcache >$cache_file
10760   else
10761     echo "not updating unwritable cache $cache_file"
10762   fi
10763 fi
10764 rm -f confcache
10765
10766 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10767 # Let make expand exec_prefix.
10768 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10769
10770 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10771 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10772 # trailing colons and then remove the whole line if VPATH becomes empty
10773 # (actually we leave an empty line to preserve line numbers).
10774 if test "x$srcdir" = x.; then
10775   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10776 s/:*\$(srcdir):*/:/;
10777 s/:*\${srcdir}:*/:/;
10778 s/:*@srcdir@:*/:/;
10779 s/^\([^=]*=[     ]*\):*/\1/;
10780 s/:*$//;
10781 s/^[^=]*=[       ]*$//;
10782 }'
10783 fi
10784
10785 # Transform confdefs.h into DEFS.
10786 # Protect against shell expansion while executing Makefile rules.
10787 # Protect against Makefile macro expansion.
10788 #
10789 # If the first sed substitution is executed (which looks for macros that
10790 # take arguments), then we branch to the quote section.  Otherwise,
10791 # look for a macro that doesn't take arguments.
10792 cat >confdef2opt.sed <<\_ACEOF
10793 t clear
10794 : clear
10795 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
10796 t quote
10797 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
10798 t quote
10799 d
10800 : quote
10801 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
10802 s,\[,\\&,g
10803 s,\],\\&,g
10804 s,\$,$$,g
10805 p
10806 _ACEOF
10807 # We use echo to avoid assuming a particular line-breaking character.
10808 # The extra dot is to prevent the shell from consuming trailing
10809 # line-breaks from the sub-command output.  A line-break within
10810 # single-quotes doesn't work because, if this script is created in a
10811 # platform that uses two characters for line-breaks (e.g., DOS), tr
10812 # would break.
10813 ac_LF_and_DOT=`echo; echo .`
10814 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
10815 rm -f confdef2opt.sed
10816
10817
10818 ac_libobjs=
10819 ac_ltlibobjs=
10820 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10821   # 1. Remove the extension, and $U if already installed.
10822   ac_i=`echo "$ac_i" |
10823          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10824   # 2. Add them.
10825   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10826   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10827 done
10828 LIBOBJS=$ac_libobjs
10829
10830 LTLIBOBJS=$ac_ltlibobjs
10831
10832
10833 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10834   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10835 Usually this means the macro was only invoked conditionally." >&5
10836 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10837 Usually this means the macro was only invoked conditionally." >&2;}
10838    { (exit 1); exit 1; }; }
10839 fi
10840 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10841   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10842 Usually this means the macro was only invoked conditionally." >&5
10843 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10844 Usually this means the macro was only invoked conditionally." >&2;}
10845    { (exit 1); exit 1; }; }
10846 fi
10847 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10848   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10849 Usually this means the macro was only invoked conditionally." >&5
10850 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10851 Usually this means the macro was only invoked conditionally." >&2;}
10852    { (exit 1); exit 1; }; }
10853 fi
10854 if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
10855   { { echo "$as_me:$LINENO: error: conditional \"TARGET_LIBRARY\" was never defined.
10856 Usually this means the macro was only invoked conditionally." >&5
10857 echo "$as_me: error: conditional \"TARGET_LIBRARY\" was never defined.
10858 Usually this means the macro was only invoked conditionally." >&2;}
10859    { (exit 1); exit 1; }; }
10860 fi
10861
10862 : ${CONFIG_STATUS=./config.status}
10863 ac_clean_files_save=$ac_clean_files
10864 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10865 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10866 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10867 cat >$CONFIG_STATUS <<_ACEOF
10868 #! $SHELL
10869 # Generated by $as_me.
10870 # Run this file to recreate the current configuration.
10871 # Compiler output produced by configure, useful for debugging
10872 # configure, is in config.log if it exists.
10873
10874 debug=false
10875 ac_cs_recheck=false
10876 ac_cs_silent=false
10877 SHELL=\${CONFIG_SHELL-$SHELL}
10878 _ACEOF
10879
10880 cat >>$CONFIG_STATUS <<\_ACEOF
10881 ## --------------------- ##
10882 ## M4sh Initialization.  ##
10883 ## --------------------- ##
10884
10885 # Be Bourne compatible
10886 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10887   emulate sh
10888   NULLCMD=:
10889   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10890   # is contrary to our usage.  Disable this feature.
10891   alias -g '${1+"$@"}'='"$@"'
10892 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10893   set -o posix
10894 fi
10895 DUALCASE=1; export DUALCASE # for MKS sh
10896
10897 # Support unset when possible.
10898 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10899   as_unset=unset
10900 else
10901   as_unset=false
10902 fi
10903
10904
10905 # Work around bugs in pre-3.0 UWIN ksh.
10906 $as_unset ENV MAIL MAILPATH
10907 PS1='$ '
10908 PS2='> '
10909 PS4='+ '
10910
10911 # NLS nuisances.
10912 for as_var in \
10913   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10914   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10915   LC_TELEPHONE LC_TIME
10916 do
10917   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10918     eval $as_var=C; export $as_var
10919   else
10920     $as_unset $as_var
10921   fi
10922 done
10923
10924 # Required to use basename.
10925 if expr a : '\(a\)' >/dev/null 2>&1; then
10926   as_expr=expr
10927 else
10928   as_expr=false
10929 fi
10930
10931 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10932   as_basename=basename
10933 else
10934   as_basename=false
10935 fi
10936
10937
10938 # Name of the executable.
10939 as_me=`$as_basename "$0" ||
10940 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10941          X"$0" : 'X\(//\)$' \| \
10942          X"$0" : 'X\(/\)$' \| \
10943          .     : '\(.\)' 2>/dev/null ||
10944 echo X/"$0" |
10945     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10946           /^X\/\(\/\/\)$/{ s//\1/; q; }
10947           /^X\/\(\/\).*/{ s//\1/; q; }
10948           s/.*/./; q'`
10949
10950
10951 # PATH needs CR, and LINENO needs CR and PATH.
10952 # Avoid depending upon Character Ranges.
10953 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10954 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10955 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10956 as_cr_digits='0123456789'
10957 as_cr_alnum=$as_cr_Letters$as_cr_digits
10958
10959 # The user is always right.
10960 if test "${PATH_SEPARATOR+set}" != set; then
10961   echo "#! /bin/sh" >conf$$.sh
10962   echo  "exit 0"   >>conf$$.sh
10963   chmod +x conf$$.sh
10964   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10965     PATH_SEPARATOR=';'
10966   else
10967     PATH_SEPARATOR=:
10968   fi
10969   rm -f conf$$.sh
10970 fi
10971
10972
10973   as_lineno_1=$LINENO
10974   as_lineno_2=$LINENO
10975   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10976   test "x$as_lineno_1" != "x$as_lineno_2" &&
10977   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10978   # Find who we are.  Look in the path if we contain no path at all
10979   # relative or not.
10980   case $0 in
10981     *[\\/]* ) as_myself=$0 ;;
10982     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10983 for as_dir in $PATH
10984 do
10985   IFS=$as_save_IFS
10986   test -z "$as_dir" && as_dir=.
10987   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10988 done
10989
10990        ;;
10991   esac
10992   # We did not find ourselves, most probably we were run as `sh COMMAND'
10993   # in which case we are not to be found in the path.
10994   if test "x$as_myself" = x; then
10995     as_myself=$0
10996   fi
10997   if test ! -f "$as_myself"; then
10998     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10999 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11000    { (exit 1); exit 1; }; }
11001   fi
11002   case $CONFIG_SHELL in
11003   '')
11004     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11005 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11006 do
11007   IFS=$as_save_IFS
11008   test -z "$as_dir" && as_dir=.
11009   for as_base in sh bash ksh sh5; do
11010          case $as_dir in
11011          /*)
11012            if ("$as_dir/$as_base" -c '
11013   as_lineno_1=$LINENO
11014   as_lineno_2=$LINENO
11015   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11016   test "x$as_lineno_1" != "x$as_lineno_2" &&
11017   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11018              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11019              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11020              CONFIG_SHELL=$as_dir/$as_base
11021              export CONFIG_SHELL
11022              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11023            fi;;
11024          esac
11025        done
11026 done
11027 ;;
11028   esac
11029
11030   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11031   # uniformly replaced by the line number.  The first 'sed' inserts a
11032   # line-number line before each line; the second 'sed' does the real
11033   # work.  The second script uses 'N' to pair each line-number line
11034   # with the numbered line, and appends trailing '-' during
11035   # substitution so that $LINENO is not a special case at line end.
11036   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11037   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11038   sed '=' <$as_myself |
11039     sed '
11040       N
11041       s,$,-,
11042       : loop
11043       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11044       t loop
11045       s,-$,,
11046       s,^['$as_cr_digits']*\n,,
11047     ' >$as_me.lineno &&
11048   chmod +x $as_me.lineno ||
11049     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11050 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11051    { (exit 1); exit 1; }; }
11052
11053   # Don't try to exec as it changes $[0], causing all sort of problems
11054   # (the dirname of $[0] is not the place where we might find the
11055   # original and so on.  Autoconf is especially sensible to this).
11056   . ./$as_me.lineno
11057   # Exit status is that of the last command.
11058   exit
11059 }
11060
11061
11062 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11063   *c*,-n*) ECHO_N= ECHO_C='
11064 ' ECHO_T='      ' ;;
11065   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11066   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11067 esac
11068
11069 if expr a : '\(a\)' >/dev/null 2>&1; then
11070   as_expr=expr
11071 else
11072   as_expr=false
11073 fi
11074
11075 rm -f conf$$ conf$$.exe conf$$.file
11076 echo >conf$$.file
11077 if ln -s conf$$.file conf$$ 2>/dev/null; then
11078   # We could just check for DJGPP; but this test a) works b) is more generic
11079   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11080   if test -f conf$$.exe; then
11081     # Don't use ln at all; we don't have any links
11082     as_ln_s='cp -p'
11083   else
11084     as_ln_s='ln -s'
11085   fi
11086 elif ln conf$$.file conf$$ 2>/dev/null; then
11087   as_ln_s=ln
11088 else
11089   as_ln_s='cp -p'
11090 fi
11091 rm -f conf$$ conf$$.exe conf$$.file
11092
11093 if mkdir -p . 2>/dev/null; then
11094   as_mkdir_p=:
11095 else
11096   test -d ./-p && rmdir ./-p
11097   as_mkdir_p=false
11098 fi
11099
11100 as_executable_p="test -f"
11101
11102 # Sed expression to map a string onto a valid CPP name.
11103 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11104
11105 # Sed expression to map a string onto a valid variable name.
11106 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11107
11108
11109 # IFS
11110 # We need space, tab and new line, in precisely that order.
11111 as_nl='
11112 '
11113 IFS="   $as_nl"
11114
11115 # CDPATH.
11116 $as_unset CDPATH
11117
11118 exec 6>&1
11119
11120 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11121 # report actual input values of CONFIG_FILES etc. instead of their
11122 # values after options handling.  Logging --version etc. is OK.
11123 exec 5>>config.log
11124 {
11125   echo
11126   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11127 ## Running $as_me. ##
11128 _ASBOX
11129 } >&5
11130 cat >&5 <<_CSEOF
11131
11132 This file was extended by $as_me, which was
11133 generated by GNU Autoconf 2.59.  Invocation command line was
11134
11135   CONFIG_FILES    = $CONFIG_FILES
11136   CONFIG_HEADERS  = $CONFIG_HEADERS
11137   CONFIG_LINKS    = $CONFIG_LINKS
11138   CONFIG_COMMANDS = $CONFIG_COMMANDS
11139   $ $0 $@
11140
11141 _CSEOF
11142 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11143 echo >&5
11144 _ACEOF
11145
11146 # Files that config.status was made for.
11147 if test -n "$ac_config_files"; then
11148   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11149 fi
11150
11151 if test -n "$ac_config_headers"; then
11152   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11153 fi
11154
11155 if test -n "$ac_config_links"; then
11156   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11157 fi
11158
11159 if test -n "$ac_config_commands"; then
11160   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11161 fi
11162
11163 cat >>$CONFIG_STATUS <<\_ACEOF
11164
11165 ac_cs_usage="\
11166 \`$as_me' instantiates files from templates according to the
11167 current configuration.
11168
11169 Usage: $0 [OPTIONS] [FILE]...
11170
11171   -h, --help       print this help, then exit
11172   -V, --version    print version number, then exit
11173   -q, --quiet      do not print progress messages
11174   -d, --debug      don't remove temporary files
11175       --recheck    update $as_me by reconfiguring in the same conditions
11176   --file=FILE[:TEMPLATE]
11177                    instantiate the configuration file FILE
11178
11179 Configuration files:
11180 $config_files
11181
11182 Configuration commands:
11183 $config_commands
11184
11185 Report bugs to <bug-autoconf@gnu.org>."
11186 _ACEOF
11187
11188 cat >>$CONFIG_STATUS <<_ACEOF
11189 ac_cs_version="\\
11190 config.status
11191 configured by $0, generated by GNU Autoconf 2.59,
11192   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11193
11194 Copyright (C) 2003 Free Software Foundation, Inc.
11195 This config.status script is free software; the Free Software Foundation
11196 gives unlimited permission to copy, distribute and modify it."
11197 srcdir=$srcdir
11198 INSTALL="$INSTALL"
11199 _ACEOF
11200
11201 cat >>$CONFIG_STATUS <<\_ACEOF
11202 # If no file are specified by the user, then we need to provide default
11203 # value.  By we need to know if files were specified by the user.
11204 ac_need_defaults=:
11205 while test $# != 0
11206 do
11207   case $1 in
11208   --*=*)
11209     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11210     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11211     ac_shift=:
11212     ;;
11213   -*)
11214     ac_option=$1
11215     ac_optarg=$2
11216     ac_shift=shift
11217     ;;
11218   *) # This is not an option, so the user has probably given explicit
11219      # arguments.
11220      ac_option=$1
11221      ac_need_defaults=false;;
11222   esac
11223
11224   case $ac_option in
11225   # Handling of the options.
11226 _ACEOF
11227 cat >>$CONFIG_STATUS <<\_ACEOF
11228   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11229     ac_cs_recheck=: ;;
11230   --version | --vers* | -V )
11231     echo "$ac_cs_version"; exit 0 ;;
11232   --he | --h)
11233     # Conflict between --help and --header
11234     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11235 Try \`$0 --help' for more information." >&5
11236 echo "$as_me: error: ambiguous option: $1
11237 Try \`$0 --help' for more information." >&2;}
11238    { (exit 1); exit 1; }; };;
11239   --help | --hel | -h )
11240     echo "$ac_cs_usage"; exit 0 ;;
11241   --debug | --d* | -d )
11242     debug=: ;;
11243   --file | --fil | --fi | --f )
11244     $ac_shift
11245     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11246     ac_need_defaults=false;;
11247   --header | --heade | --head | --hea )
11248     $ac_shift
11249     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11250     ac_need_defaults=false;;
11251   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11252   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11253     ac_cs_silent=: ;;
11254
11255   # This is an error.
11256   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11257 Try \`$0 --help' for more information." >&5
11258 echo "$as_me: error: unrecognized option: $1
11259 Try \`$0 --help' for more information." >&2;}
11260    { (exit 1); exit 1; }; } ;;
11261
11262   *) ac_config_targets="$ac_config_targets $1" ;;
11263
11264   esac
11265   shift
11266 done
11267
11268 ac_configure_extra_args=
11269
11270 if $ac_cs_silent; then
11271   exec 6>/dev/null
11272   ac_configure_extra_args="$ac_configure_extra_args --silent"
11273 fi
11274
11275 _ACEOF
11276 cat >>$CONFIG_STATUS <<_ACEOF
11277 if \$ac_cs_recheck; then
11278   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11279   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11280 fi
11281
11282 _ACEOF
11283
11284 cat >>$CONFIG_STATUS <<_ACEOF
11285 #
11286 # INIT-COMMANDS section.
11287 #
11288
11289
11290 srcdir="$srcdir"
11291 host="$host"
11292 target="$target"
11293 with_multisubdir="$with_multisubdir"
11294 with_multisrctop="$with_multisrctop"
11295 with_target_subdir="$with_target_subdir"
11296 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11297 multi_basedir="$multi_basedir"
11298 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11299 CC="$CC"
11300 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11301
11302
11303 # The HP-UX ksh and POSIX shell print the target directory to stdout
11304 # if CDPATH is set.
11305 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11306
11307 sed_quote_subst='$sed_quote_subst'
11308 double_quote_subst='$double_quote_subst'
11309 delay_variable_subst='$delay_variable_subst'
11310 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11311 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11312 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11313 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11314 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11315 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11316 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11317 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11318 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11319 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11320 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11321 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11322 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11323 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11324 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11325 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11326 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11327 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11328 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11329 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11330 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11331 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11332 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11333 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11334 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11335 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11336 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11337 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11338 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11339 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11340 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11341 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11342 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11343 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11344 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11345 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11346 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11347 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11348 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11349 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11350 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11351 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11352 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11353 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11354 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11355 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11356 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11357 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11358 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11359 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11360 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11361 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11362 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11363 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11364 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11365 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11366 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11367 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11368 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11369 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11370 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11371 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11372 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11373 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11374 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11375 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11376 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11377 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11378 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11379 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11380 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11381 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11382 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11383 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11384 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11385 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11386 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11387 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11388 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11389 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11390 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11391 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11392 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11393 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11394 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11395 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11396 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11397 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11398 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11399 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11400 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11401 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11402 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11403 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11404 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11405 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11406 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11407 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11408 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11409 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11410 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11411 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11412 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11413 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11414 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11415 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11416 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11417 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11418 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11419 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11420 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11421
11422 LTCC='$LTCC'
11423 LTCFLAGS='$LTCFLAGS'
11424 compiler='$compiler_DEFAULT'
11425
11426 # Quote evaled strings.
11427 for var in SED \
11428 GREP \
11429 EGREP \
11430 FGREP \
11431 LD \
11432 NM \
11433 LN_S \
11434 lt_SP2NL \
11435 lt_NL2SP \
11436 reload_flag \
11437 deplibs_check_method \
11438 file_magic_cmd \
11439 AR \
11440 AR_FLAGS \
11441 STRIP \
11442 RANLIB \
11443 CC \
11444 CFLAGS \
11445 compiler \
11446 lt_cv_sys_global_symbol_pipe \
11447 lt_cv_sys_global_symbol_to_cdecl \
11448 lt_cv_sys_global_symbol_to_c_name_address \
11449 SHELL \
11450 ECHO \
11451 lt_prog_compiler_no_builtin_flag \
11452 lt_prog_compiler_wl \
11453 lt_prog_compiler_pic \
11454 lt_prog_compiler_static \
11455 lt_cv_prog_compiler_c_o \
11456 need_locks \
11457 shrext_cmds \
11458 export_dynamic_flag_spec \
11459 whole_archive_flag_spec \
11460 compiler_needs_object \
11461 with_gnu_ld \
11462 allow_undefined_flag \
11463 no_undefined_flag \
11464 hardcode_libdir_flag_spec \
11465 hardcode_libdir_flag_spec_ld \
11466 hardcode_libdir_separator \
11467 fix_srcfile_path \
11468 exclude_expsyms \
11469 include_expsyms \
11470 file_list_spec \
11471 variables_saved_for_relink \
11472 libname_spec \
11473 library_names_spec \
11474 soname_spec \
11475 finish_eval \
11476 old_striplib \
11477 striplib; do
11478     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11479     *[\\\\\\\`\\"\\\$]*)
11480       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11481       ;;
11482     *)
11483       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11484       ;;
11485     esac
11486 done
11487
11488 # Double-quote double-evaled strings.
11489 for var in reload_cmds \
11490 old_postinstall_cmds \
11491 old_postuninstall_cmds \
11492 old_archive_cmds \
11493 extract_expsyms_cmds \
11494 old_archive_from_new_cmds \
11495 old_archive_from_expsyms_cmds \
11496 archive_cmds \
11497 archive_expsym_cmds \
11498 module_cmds \
11499 module_expsym_cmds \
11500 export_symbols_cmds \
11501 prelink_cmds \
11502 postinstall_cmds \
11503 postuninstall_cmds \
11504 finish_cmds \
11505 sys_lib_search_path_spec \
11506 sys_lib_dlsearch_path_spec; do
11507     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11508     *[\\\\\\\`\\"\\\$]*)
11509       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11510       ;;
11511     *)
11512       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11513       ;;
11514     esac
11515 done
11516
11517 # Fix-up fallback echo if it was mangled by the above quoting rules.
11518 case \$lt_ECHO in
11519 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11520   ;;
11521 esac
11522
11523 ac_aux_dir='$ac_aux_dir'
11524 xsi_shell='$xsi_shell'
11525 lt_shell_append='$lt_shell_append'
11526
11527 # See if we are running on zsh, and set the options which allow our
11528 # commands through without removal of \ escapes INIT.
11529 if test -n "\${ZSH_VERSION+set}" ; then
11530    setopt NO_GLOB_SUBST
11531 fi
11532
11533
11534     PACKAGE='$PACKAGE'
11535     VERSION='$VERSION'
11536     TIMESTAMP='$TIMESTAMP'
11537     RM='$RM'
11538     ofile='$ofile'
11539
11540
11541
11542
11543 _ACEOF
11544
11545
11546
11547 cat >>$CONFIG_STATUS <<\_ACEOF
11548 for ac_config_target in $ac_config_targets
11549 do
11550   case "$ac_config_target" in
11551   # Handling of arguments.
11552   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11553   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11554   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11555   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11556   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11557 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11558    { (exit 1); exit 1; }; };;
11559   esac
11560 done
11561
11562 # If the user did not use the arguments to specify the items to instantiate,
11563 # then the envvar interface is used.  Set only those that are not.
11564 # We use the long form for the default assignment because of an extremely
11565 # bizarre bug on SunOS 4.1.3.
11566 if $ac_need_defaults; then
11567   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11568   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11569 fi
11570
11571 # Have a temporary directory for convenience.  Make it in the build tree
11572 # simply because there is no reason to put it here, and in addition,
11573 # creating and moving files from /tmp can sometimes cause problems.
11574 # Create a temporary directory, and hook for its removal unless debugging.
11575 $debug ||
11576 {
11577   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11578   trap '{ (exit 1); exit 1; }' 1 2 13 15
11579 }
11580
11581 # Create a (secure) tmp directory for tmp files.
11582
11583 {
11584   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11585   test -n "$tmp" && test -d "$tmp"
11586 }  ||
11587 {
11588   tmp=./confstat$$-$RANDOM
11589   (umask 077 && mkdir $tmp)
11590 } ||
11591 {
11592    echo "$me: cannot create a temporary directory in ." >&2
11593    { (exit 1); exit 1; }
11594 }
11595
11596 _ACEOF
11597
11598 cat >>$CONFIG_STATUS <<_ACEOF
11599
11600 #
11601 # CONFIG_FILES section.
11602 #
11603
11604 # No need to generate the scripts if there are no CONFIG_FILES.
11605 # This happens for instance when ./config.status config.h
11606 if test -n "\$CONFIG_FILES"; then
11607   # Protect against being on the right side of a sed subst in config.status.
11608   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11609    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11610 s,@SHELL@,$SHELL,;t t
11611 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11612 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11613 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11614 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11615 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11616 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11617 s,@exec_prefix@,$exec_prefix,;t t
11618 s,@prefix@,$prefix,;t t
11619 s,@program_transform_name@,$program_transform_name,;t t
11620 s,@bindir@,$bindir,;t t
11621 s,@sbindir@,$sbindir,;t t
11622 s,@libexecdir@,$libexecdir,;t t
11623 s,@datadir@,$datadir,;t t
11624 s,@sysconfdir@,$sysconfdir,;t t
11625 s,@sharedstatedir@,$sharedstatedir,;t t
11626 s,@localstatedir@,$localstatedir,;t t
11627 s,@libdir@,$libdir,;t t
11628 s,@includedir@,$includedir,;t t
11629 s,@oldincludedir@,$oldincludedir,;t t
11630 s,@infodir@,$infodir,;t t
11631 s,@mandir@,$mandir,;t t
11632 s,@build_alias@,$build_alias,;t t
11633 s,@host_alias@,$host_alias,;t t
11634 s,@target_alias@,$target_alias,;t t
11635 s,@DEFS@,$DEFS,;t t
11636 s,@ECHO_C@,$ECHO_C,;t t
11637 s,@ECHO_N@,$ECHO_N,;t t
11638 s,@ECHO_T@,$ECHO_T,;t t
11639 s,@LIBS@,$LIBS,;t t
11640 s,@multi_basedir@,$multi_basedir,;t t
11641 s,@build@,$build,;t t
11642 s,@build_cpu@,$build_cpu,;t t
11643 s,@build_vendor@,$build_vendor,;t t
11644 s,@build_os@,$build_os,;t t
11645 s,@host@,$host,;t t
11646 s,@host_cpu@,$host_cpu,;t t
11647 s,@host_vendor@,$host_vendor,;t t
11648 s,@host_os@,$host_os,;t t
11649 s,@target@,$target,;t t
11650 s,@target_cpu@,$target_cpu,;t t
11651 s,@target_vendor@,$target_vendor,;t t
11652 s,@target_os@,$target_os,;t t
11653 s,@mkinstalldirs@,$mkinstalldirs,;t t
11654 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11655 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11656 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11657 s,@CYGPATH_W@,$CYGPATH_W,;t t
11658 s,@PACKAGE@,$PACKAGE,;t t
11659 s,@VERSION@,$VERSION,;t t
11660 s,@ACLOCAL@,$ACLOCAL,;t t
11661 s,@AUTOCONF@,$AUTOCONF,;t t
11662 s,@AUTOMAKE@,$AUTOMAKE,;t t
11663 s,@AUTOHEADER@,$AUTOHEADER,;t t
11664 s,@MAKEINFO@,$MAKEINFO,;t t
11665 s,@install_sh@,$install_sh,;t t
11666 s,@STRIP@,$STRIP,;t t
11667 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11668 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11669 s,@mkdir_p@,$mkdir_p,;t t
11670 s,@AWK@,$AWK,;t t
11671 s,@SET_MAKE@,$SET_MAKE,;t t
11672 s,@am__leading_dot@,$am__leading_dot,;t t
11673 s,@AMTAR@,$AMTAR,;t t
11674 s,@am__tar@,$am__tar,;t t
11675 s,@am__untar@,$am__untar,;t t
11676 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11677 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11678 s,@MAINT@,$MAINT,;t t
11679 s,@COMPPATH@,$COMPPATH,;t t
11680 s,@CC@,$CC,;t t
11681 s,@ac_ct_CC@,$ac_ct_CC,;t t
11682 s,@EXEEXT@,$EXEEXT,;t t
11683 s,@OBJEXT@,$OBJEXT,;t t
11684 s,@DEPDIR@,$DEPDIR,;t t
11685 s,@am__include@,$am__include,;t t
11686 s,@am__quote@,$am__quote,;t t
11687 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11688 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11689 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11690 s,@CCDEPMODE@,$CCDEPMODE,;t t
11691 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11692 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11693 s,@CFLAGS@,$CFLAGS,;t t
11694 s,@LIBTOOL@,$LIBTOOL,;t t
11695 s,@SED@,$SED,;t t
11696 s,@EGREP@,$EGREP,;t t
11697 s,@FGREP@,$FGREP,;t t
11698 s,@GREP@,$GREP,;t t
11699 s,@LD@,$LD,;t t
11700 s,@DUMPBIN@,$DUMPBIN,;t t
11701 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
11702 s,@NM@,$NM,;t t
11703 s,@LN_S@,$LN_S,;t t
11704 s,@AR@,$AR,;t t
11705 s,@ac_ct_AR@,$ac_ct_AR,;t t
11706 s,@RANLIB@,$RANLIB,;t t
11707 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11708 s,@lt_ECHO@,$lt_ECHO,;t t
11709 s,@CPP@,$CPP,;t t
11710 s,@CPPFLAGS@,$CPPFLAGS,;t t
11711 s,@target_all@,$target_all,;t t
11712 s,@toolexecdir@,$toolexecdir,;t t
11713 s,@toolexeclibdir@,$toolexeclibdir,;t t
11714 s,@TARGET_LIBRARY_TRUE@,$TARGET_LIBRARY_TRUE,;t t
11715 s,@TARGET_LIBRARY_FALSE@,$TARGET_LIBRARY_FALSE,;t t
11716 s,@LIBOBJS@,$LIBOBJS,;t t
11717 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11718 CEOF
11719
11720 _ACEOF
11721
11722   cat >>$CONFIG_STATUS <<\_ACEOF
11723   # Split the substitutions into bite-sized pieces for seds with
11724   # small command number limits, like on Digital OSF/1 and HP-UX.
11725   ac_max_sed_lines=48
11726   ac_sed_frag=1 # Number of current file.
11727   ac_beg=1 # First line for current file.
11728   ac_end=$ac_max_sed_lines # Line after last line for current file.
11729   ac_more_lines=:
11730   ac_sed_cmds=
11731   while $ac_more_lines; do
11732     if test $ac_beg -gt 1; then
11733       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11734     else
11735       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11736     fi
11737     if test ! -s $tmp/subs.frag; then
11738       ac_more_lines=false
11739     else
11740       # The purpose of the label and of the branching condition is to
11741       # speed up the sed processing (if there are no `@' at all, there
11742       # is no need to browse any of the substitutions).
11743       # These are the two extra sed commands mentioned above.
11744       (echo ':t
11745   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11746       if test -z "$ac_sed_cmds"; then
11747         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11748       else
11749         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11750       fi
11751       ac_sed_frag=`expr $ac_sed_frag + 1`
11752       ac_beg=$ac_end
11753       ac_end=`expr $ac_end + $ac_max_sed_lines`
11754     fi
11755   done
11756   if test -z "$ac_sed_cmds"; then
11757     ac_sed_cmds=cat
11758   fi
11759 fi # test -n "$CONFIG_FILES"
11760
11761 _ACEOF
11762 cat >>$CONFIG_STATUS <<\_ACEOF
11763 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11764   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11765   case $ac_file in
11766   - | *:- | *:-:* ) # input from stdin
11767         cat >$tmp/stdin
11768         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11769         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11770   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11771         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11772   * )   ac_file_in=$ac_file.in ;;
11773   esac
11774
11775   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11776   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11777 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11778          X"$ac_file" : 'X\(//\)[^/]' \| \
11779          X"$ac_file" : 'X\(//\)$' \| \
11780          X"$ac_file" : 'X\(/\)' \| \
11781          .     : '\(.\)' 2>/dev/null ||
11782 echo X"$ac_file" |
11783     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11784           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11785           /^X\(\/\/\)$/{ s//\1/; q; }
11786           /^X\(\/\).*/{ s//\1/; q; }
11787           s/.*/./; q'`
11788   { if $as_mkdir_p; then
11789     mkdir -p "$ac_dir"
11790   else
11791     as_dir="$ac_dir"
11792     as_dirs=
11793     while test ! -d "$as_dir"; do
11794       as_dirs="$as_dir $as_dirs"
11795       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11796 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11797          X"$as_dir" : 'X\(//\)[^/]' \| \
11798          X"$as_dir" : 'X\(//\)$' \| \
11799          X"$as_dir" : 'X\(/\)' \| \
11800          .     : '\(.\)' 2>/dev/null ||
11801 echo X"$as_dir" |
11802     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11803           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11804           /^X\(\/\/\)$/{ s//\1/; q; }
11805           /^X\(\/\).*/{ s//\1/; q; }
11806           s/.*/./; q'`
11807     done
11808     test ! -n "$as_dirs" || mkdir $as_dirs
11809   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11810 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11811    { (exit 1); exit 1; }; }; }
11812
11813   ac_builddir=.
11814
11815 if test "$ac_dir" != .; then
11816   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11817   # A "../" for each directory in $ac_dir_suffix.
11818   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11819 else
11820   ac_dir_suffix= ac_top_builddir=
11821 fi
11822
11823 case $srcdir in
11824   .)  # No --srcdir option.  We are building in place.
11825     ac_srcdir=.
11826     if test -z "$ac_top_builddir"; then
11827        ac_top_srcdir=.
11828     else
11829        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11830     fi ;;
11831   [\\/]* | ?:[\\/]* )  # Absolute path.
11832     ac_srcdir=$srcdir$ac_dir_suffix;
11833     ac_top_srcdir=$srcdir ;;
11834   *) # Relative path.
11835     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11836     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11837 esac
11838
11839 # Do not use `cd foo && pwd` to compute absolute paths, because
11840 # the directories may not exist.
11841 case `pwd` in
11842 .) ac_abs_builddir="$ac_dir";;
11843 *)
11844   case "$ac_dir" in
11845   .) ac_abs_builddir=`pwd`;;
11846   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11847   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11848   esac;;
11849 esac
11850 case $ac_abs_builddir in
11851 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11852 *)
11853   case ${ac_top_builddir}. in
11854   .) ac_abs_top_builddir=$ac_abs_builddir;;
11855   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11856   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11857   esac;;
11858 esac
11859 case $ac_abs_builddir in
11860 .) ac_abs_srcdir=$ac_srcdir;;
11861 *)
11862   case $ac_srcdir in
11863   .) ac_abs_srcdir=$ac_abs_builddir;;
11864   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11865   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11866   esac;;
11867 esac
11868 case $ac_abs_builddir in
11869 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11870 *)
11871   case $ac_top_srcdir in
11872   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11873   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11874   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11875   esac;;
11876 esac
11877
11878
11879   case $INSTALL in
11880   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11881   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11882   esac
11883
11884   if test x"$ac_file" != x-; then
11885     { echo "$as_me:$LINENO: creating $ac_file" >&5
11886 echo "$as_me: creating $ac_file" >&6;}
11887     rm -f "$ac_file"
11888   fi
11889   # Let's still pretend it is `configure' which instantiates (i.e., don't
11890   # use $as_me), people would be surprised to read:
11891   #    /* config.h.  Generated by config.status.  */
11892   if test x"$ac_file" = x-; then
11893     configure_input=
11894   else
11895     configure_input="$ac_file.  "
11896   fi
11897   configure_input=$configure_input"Generated from `echo $ac_file_in |
11898                                      sed 's,.*/,,'` by configure."
11899
11900   # First look for the input files in the build tree, otherwise in the
11901   # src tree.
11902   ac_file_inputs=`IFS=:
11903     for f in $ac_file_in; do
11904       case $f in
11905       -) echo $tmp/stdin ;;
11906       [\\/$]*)
11907          # Absolute (can't be DOS-style, as IFS=:)
11908          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11909 echo "$as_me: error: cannot find input file: $f" >&2;}
11910    { (exit 1); exit 1; }; }
11911          echo "$f";;
11912       *) # Relative
11913          if test -f "$f"; then
11914            # Build tree
11915            echo "$f"
11916          elif test -f "$srcdir/$f"; then
11917            # Source tree
11918            echo "$srcdir/$f"
11919          else
11920            # /dev/null tree
11921            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11922 echo "$as_me: error: cannot find input file: $f" >&2;}
11923    { (exit 1); exit 1; }; }
11924          fi;;
11925       esac
11926     done` || { (exit 1); exit 1; }
11927 _ACEOF
11928 cat >>$CONFIG_STATUS <<_ACEOF
11929   sed "$ac_vpsub
11930 $extrasub
11931 _ACEOF
11932 cat >>$CONFIG_STATUS <<\_ACEOF
11933 :t
11934 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11935 s,@configure_input@,$configure_input,;t t
11936 s,@srcdir@,$ac_srcdir,;t t
11937 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11938 s,@top_srcdir@,$ac_top_srcdir,;t t
11939 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11940 s,@builddir@,$ac_builddir,;t t
11941 s,@abs_builddir@,$ac_abs_builddir,;t t
11942 s,@top_builddir@,$ac_top_builddir,;t t
11943 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11944 s,@INSTALL@,$ac_INSTALL,;t t
11945 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11946   rm -f $tmp/stdin
11947   if test x"$ac_file" != x-; then
11948     mv $tmp/out $ac_file
11949   else
11950     cat $tmp/out
11951     rm -f $tmp/out
11952   fi
11953
11954 done
11955 _ACEOF
11956 cat >>$CONFIG_STATUS <<\_ACEOF
11957
11958 #
11959 # CONFIG_COMMANDS section.
11960 #
11961 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11962   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11963   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11964   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11965 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11966          X"$ac_dest" : 'X\(//\)[^/]' \| \
11967          X"$ac_dest" : 'X\(//\)$' \| \
11968          X"$ac_dest" : 'X\(/\)' \| \
11969          .     : '\(.\)' 2>/dev/null ||
11970 echo X"$ac_dest" |
11971     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11972           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11973           /^X\(\/\/\)$/{ s//\1/; q; }
11974           /^X\(\/\).*/{ s//\1/; q; }
11975           s/.*/./; q'`
11976   { if $as_mkdir_p; then
11977     mkdir -p "$ac_dir"
11978   else
11979     as_dir="$ac_dir"
11980     as_dirs=
11981     while test ! -d "$as_dir"; do
11982       as_dirs="$as_dir $as_dirs"
11983       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11984 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11985          X"$as_dir" : 'X\(//\)[^/]' \| \
11986          X"$as_dir" : 'X\(//\)$' \| \
11987          X"$as_dir" : 'X\(/\)' \| \
11988          .     : '\(.\)' 2>/dev/null ||
11989 echo X"$as_dir" |
11990     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11991           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11992           /^X\(\/\/\)$/{ s//\1/; q; }
11993           /^X\(\/\).*/{ s//\1/; q; }
11994           s/.*/./; q'`
11995     done
11996     test ! -n "$as_dirs" || mkdir $as_dirs
11997   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11998 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11999    { (exit 1); exit 1; }; }; }
12000
12001   ac_builddir=.
12002
12003 if test "$ac_dir" != .; then
12004   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12005   # A "../" for each directory in $ac_dir_suffix.
12006   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12007 else
12008   ac_dir_suffix= ac_top_builddir=
12009 fi
12010
12011 case $srcdir in
12012   .)  # No --srcdir option.  We are building in place.
12013     ac_srcdir=.
12014     if test -z "$ac_top_builddir"; then
12015        ac_top_srcdir=.
12016     else
12017        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12018     fi ;;
12019   [\\/]* | ?:[\\/]* )  # Absolute path.
12020     ac_srcdir=$srcdir$ac_dir_suffix;
12021     ac_top_srcdir=$srcdir ;;
12022   *) # Relative path.
12023     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12024     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12025 esac
12026
12027 # Do not use `cd foo && pwd` to compute absolute paths, because
12028 # the directories may not exist.
12029 case `pwd` in
12030 .) ac_abs_builddir="$ac_dir";;
12031 *)
12032   case "$ac_dir" in
12033   .) ac_abs_builddir=`pwd`;;
12034   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12035   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12036   esac;;
12037 esac
12038 case $ac_abs_builddir in
12039 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12040 *)
12041   case ${ac_top_builddir}. in
12042   .) ac_abs_top_builddir=$ac_abs_builddir;;
12043   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12044   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12045   esac;;
12046 esac
12047 case $ac_abs_builddir in
12048 .) ac_abs_srcdir=$ac_srcdir;;
12049 *)
12050   case $ac_srcdir in
12051   .) ac_abs_srcdir=$ac_abs_builddir;;
12052   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12053   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12054   esac;;
12055 esac
12056 case $ac_abs_builddir in
12057 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12058 *)
12059   case $ac_top_srcdir in
12060   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12061   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12062   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12063   esac;;
12064 esac
12065
12066
12067   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12068 echo "$as_me: executing $ac_dest commands" >&6;}
12069   case $ac_dest in
12070     default-1 )
12071 # Only add multilib support code if we just rebuilt the top-level
12072 # Makefile.
12073 case " $CONFIG_FILES " in
12074  *" Makefile "*)
12075    ac_file=Makefile . ${multi_basedir}/config-ml.in
12076    ;;
12077 esac ;;
12078     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12079   # Strip MF so we end up with the name of the file.
12080   mf=`echo "$mf" | sed -e 's/:.*$//'`
12081   # Check whether this is an Automake generated Makefile or not.
12082   # We used to match only the files named `Makefile.in', but
12083   # some people rename them; so instead we look at the file content.
12084   # Grep'ing the first line is not enough: some people post-process
12085   # each Makefile.in and add a new line on top of each file to say so.
12086   # So let's grep whole file.
12087   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12088     dirpart=`(dirname "$mf") 2>/dev/null ||
12089 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12090          X"$mf" : 'X\(//\)[^/]' \| \
12091          X"$mf" : 'X\(//\)$' \| \
12092          X"$mf" : 'X\(/\)' \| \
12093          .     : '\(.\)' 2>/dev/null ||
12094 echo X"$mf" |
12095     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12096           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12097           /^X\(\/\/\)$/{ s//\1/; q; }
12098           /^X\(\/\).*/{ s//\1/; q; }
12099           s/.*/./; q'`
12100   else
12101     continue
12102   fi
12103   # Extract the definition of DEPDIR, am__include, and am__quote
12104   # from the Makefile without running `make'.
12105   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12106   test -z "$DEPDIR" && continue
12107   am__include=`sed -n 's/^am__include = //p' < "$mf"`
12108   test -z "am__include" && continue
12109   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12110   # When using ansi2knr, U may be empty or an underscore; expand it
12111   U=`sed -n 's/^U = //p' < "$mf"`
12112   # Find all dependency output files, they are included files with
12113   # $(DEPDIR) in their names.  We invoke sed twice because it is the
12114   # simplest approach to changing $(DEPDIR) to its actual value in the
12115   # expansion.
12116   for file in `sed -n "
12117     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12118        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12119     # Make sure the directory exists.
12120     test -f "$dirpart/$file" && continue
12121     fdir=`(dirname "$file") 2>/dev/null ||
12122 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12123          X"$file" : 'X\(//\)[^/]' \| \
12124          X"$file" : 'X\(//\)$' \| \
12125          X"$file" : 'X\(/\)' \| \
12126          .     : '\(.\)' 2>/dev/null ||
12127 echo X"$file" |
12128     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12129           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12130           /^X\(\/\/\)$/{ s//\1/; q; }
12131           /^X\(\/\).*/{ s//\1/; q; }
12132           s/.*/./; q'`
12133     { if $as_mkdir_p; then
12134     mkdir -p $dirpart/$fdir
12135   else
12136     as_dir=$dirpart/$fdir
12137     as_dirs=
12138     while test ! -d "$as_dir"; do
12139       as_dirs="$as_dir $as_dirs"
12140       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12141 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12142          X"$as_dir" : 'X\(//\)[^/]' \| \
12143          X"$as_dir" : 'X\(//\)$' \| \
12144          X"$as_dir" : 'X\(/\)' \| \
12145          .     : '\(.\)' 2>/dev/null ||
12146 echo X"$as_dir" |
12147     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12148           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12149           /^X\(\/\/\)$/{ s//\1/; q; }
12150           /^X\(\/\).*/{ s//\1/; q; }
12151           s/.*/./; q'`
12152     done
12153     test ! -n "$as_dirs" || mkdir $as_dirs
12154   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12155 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12156    { (exit 1); exit 1; }; }; }
12157
12158     # echo "creating $dirpart/$file"
12159     echo '# dummy' > "$dirpart/$file"
12160   done
12161 done
12162  ;;
12163     libtool )
12164
12165     # See if we are running on zsh, and set the options which allow our
12166     # commands through without removal of \ escapes.
12167     if test -n "${ZSH_VERSION+set}" ; then
12168       setopt NO_GLOB_SUBST
12169     fi
12170
12171     cfgfile="${ofile}T"
12172     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12173     $RM "$cfgfile"
12174
12175     cat <<_LT_EOF >> "$cfgfile"
12176 #! $SHELL
12177
12178 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12179 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
12180 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12181 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12182 #
12183 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12184 # 2006, 2007 Free Software Foundation, Inc.
12185 #
12186 # This file is part of GNU Libtool:
12187 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12188 #
12189 # This program is free software; you can redistribute it and/or modify
12190 # it under the terms of the GNU General Public License as published by
12191 # the Free Software Foundation; either version 2 of the License, or
12192 # (at your option) any later version.
12193 #
12194 # This program is distributed in the hope that it will be useful, but
12195 # WITHOUT ANY WARRANTY; without even the implied warranty of
12196 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12197 # General Public License for more details.
12198 #
12199 # You should have received a copy of the GNU General Public License
12200 # along with this program; if not, a copy can be downloaded from
12201 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
12202 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
12203 # MA 02110-1301, USA.
12204 #
12205 # As a special exception to the GNU General Public License, if you
12206 # distribute this file as part of a program that contains a
12207 # configuration script generated by Autoconf, you may include it under
12208 # the same distribution terms that you use for the rest of that program.
12209
12210
12211 # The names of the tagged configurations supported by this script.
12212 available_tags=""
12213
12214 # ### BEGIN LIBTOOL CONFIG
12215
12216 # Which release of libtool.m4 was used?
12217 macro_version=$macro_version
12218 macro_revision=$macro_revision
12219
12220 # Whether or not to build shared libraries.
12221 build_libtool_libs=$enable_shared
12222
12223 # Whether or not to build static libraries.
12224 build_old_libs=$enable_static
12225
12226 # What type of objects to build.
12227 pic_mode=$pic_mode
12228
12229 # Whether or not to optimize for fast installation.
12230 fast_install=$enable_fast_install
12231
12232 # The host system.
12233 host_alias=$host_alias
12234 host=$host
12235 host_os=$host_os
12236
12237 # The build system.
12238 build_alias=$build_alias
12239 build=$build
12240 build_os=$build_os
12241
12242 # A sed program that does not truncate output.
12243 SED=$lt_SED
12244
12245 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12246 Xsed="\$SED -e 1s/^X//"
12247
12248 # A grep program that handles long lines.
12249 GREP=$lt_GREP
12250
12251 # An ERE matcher.
12252 EGREP=$lt_EGREP
12253
12254 # A literal string matcher.
12255 FGREP=$lt_FGREP
12256
12257 # A BSD- or MS-compatible name lister.
12258 NM=$lt_NM
12259
12260 # Whether we need soft or hard links.
12261 LN_S=$lt_LN_S
12262
12263 # What is the maximum length of a command?
12264 max_cmd_len=$max_cmd_len
12265
12266 # Object file suffix (normally "o").
12267 objext=$ac_objext
12268
12269 # Executable file suffix (normally "").
12270 exeext=$exeext
12271
12272 # whether the shell understands "unset".
12273 lt_unset=$lt_unset
12274
12275 # turn spaces into newlines.
12276 SP2NL=$lt_lt_SP2NL
12277
12278 # turn newlines into spaces.
12279 NL2SP=$lt_lt_NL2SP
12280
12281 # How to create reloadable object files.
12282 reload_flag=$lt_reload_flag
12283 reload_cmds=$lt_reload_cmds
12284
12285 # Method to check whether dependent libraries are shared objects.
12286 deplibs_check_method=$lt_deplibs_check_method
12287
12288 # Command to use when deplibs_check_method == "file_magic".
12289 file_magic_cmd=$lt_file_magic_cmd
12290
12291 # The archiver.
12292 AR=$lt_AR
12293 AR_FLAGS=$lt_AR_FLAGS
12294
12295 # A symbol stripping program.
12296 STRIP=$lt_STRIP
12297
12298 # Commands used to install an old-style archive.
12299 RANLIB=$lt_RANLIB
12300 old_postinstall_cmds=$lt_old_postinstall_cmds
12301 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12302
12303 # A C compiler.
12304 LTCC=$lt_CC
12305
12306 # LTCC compiler flags.
12307 LTCFLAGS=$lt_CFLAGS
12308
12309 # Take the output of nm and produce a listing of raw symbols and C names.
12310 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12311
12312 # Transform the output of nm in a proper C declaration.
12313 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12314
12315 # Transform the output of nm in a C name address pair.
12316 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12317
12318 # The name of the directory that contains temporary libtool files.
12319 objdir=$objdir
12320
12321 # Shell to use when invoking shell scripts.
12322 SHELL=$lt_SHELL
12323
12324 # An echo program that does not interpret backslashes.
12325 ECHO=$lt_ECHO
12326
12327 # Used to examine libraries when file_magic_cmd begins with "file".
12328 MAGIC_CMD=$MAGIC_CMD
12329
12330 # Must we lock files when doing compilation?
12331 need_locks=$lt_need_locks
12332
12333 # Old archive suffix (normally "a").
12334 libext=$libext
12335
12336 # Shared library suffix (normally ".so").
12337 shrext_cmds=$lt_shrext_cmds
12338
12339 # The commands to extract the exported symbol list from a shared archive.
12340 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12341
12342 # Variables whose values should be saved in libtool wrapper scripts and
12343 # restored at link time.
12344 variables_saved_for_relink=$lt_variables_saved_for_relink
12345
12346 # Do we need the "lib" prefix for modules?
12347 need_lib_prefix=$need_lib_prefix
12348
12349 # Do we need a version for libraries?
12350 need_version=$need_version
12351
12352 # Library versioning type.
12353 version_type=$version_type
12354
12355 # Shared library runtime path variable.
12356 runpath_var=$runpath_var
12357
12358 # Shared library path variable.
12359 shlibpath_var=$shlibpath_var
12360
12361 # Is shlibpath searched before the hard-coded library search path?
12362 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12363
12364 # Format of library name prefix.
12365 libname_spec=$lt_libname_spec
12366
12367 # List of archive names.  First name is the real one, the rest are links.
12368 # The last name is the one that the linker finds with -lNAME
12369 library_names_spec=$lt_library_names_spec
12370
12371 # The coded name of the library, if different from the real name.
12372 soname_spec=$lt_soname_spec
12373
12374 # Command to use after installation of a shared archive.
12375 postinstall_cmds=$lt_postinstall_cmds
12376
12377 # Command to use after uninstallation of a shared archive.
12378 postuninstall_cmds=$lt_postuninstall_cmds
12379
12380 # Commands used to finish a libtool library installation in a directory.
12381 finish_cmds=$lt_finish_cmds
12382
12383 # As "finish_cmds", except a single script fragment to be evaled but
12384 # not shown.
12385 finish_eval=$lt_finish_eval
12386
12387 # Whether we should hardcode library paths into libraries.
12388 hardcode_into_libs=$hardcode_into_libs
12389
12390 # Compile-time system search path for libraries.
12391 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12392
12393 # Run-time system search path for libraries.
12394 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12395
12396 # Whether dlopen is supported.
12397 dlopen_support=$enable_dlopen
12398
12399 # Whether dlopen of programs is supported.
12400 dlopen_self=$enable_dlopen_self
12401
12402 # Whether dlopen of statically linked programs is supported.
12403 dlopen_self_static=$enable_dlopen_self_static
12404
12405 # Commands to strip libraries.
12406 old_striplib=$lt_old_striplib
12407 striplib=$lt_striplib
12408
12409
12410 # The linker used to build libraries.
12411 LD=$lt_LD
12412
12413 # Commands used to build an old-style archive.
12414 old_archive_cmds=$lt_old_archive_cmds
12415
12416 # A language specific compiler.
12417 CC=$lt_compiler
12418
12419 # Is the compiler the GNU compiler?
12420 with_gcc=$GCC
12421
12422 # Compiler flag to turn off builtin functions.
12423 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12424
12425 # How to pass a linker flag through the compiler.
12426 wl=$lt_lt_prog_compiler_wl
12427
12428 # Additional compiler flags for building library objects.
12429 pic_flag=$lt_lt_prog_compiler_pic
12430
12431 # Compiler flag to prevent dynamic linking.
12432 link_static_flag=$lt_lt_prog_compiler_static
12433
12434 # Does compiler simultaneously support -c and -o options?
12435 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12436
12437 # Whether or not to add -lc for building shared libraries.
12438 build_libtool_need_lc=$archive_cmds_need_lc
12439
12440 # Whether or not to disallow shared libs when runtime libs are static.
12441 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12442
12443 # Compiler flag to allow reflexive dlopens.
12444 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12445
12446 # Compiler flag to generate shared objects directly from archives.
12447 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12448
12449 # Whether the compiler copes with passing no objects directly.
12450 compiler_needs_object=$lt_compiler_needs_object
12451
12452 # Create an old-style archive from a shared archive.
12453 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12454
12455 # Create a temporary old-style archive to link instead of a shared archive.
12456 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12457
12458 # Commands used to build a shared archive.
12459 archive_cmds=$lt_archive_cmds
12460 archive_expsym_cmds=$lt_archive_expsym_cmds
12461
12462 # Commands used to build a loadable module if different from building
12463 # a shared archive.
12464 module_cmds=$lt_module_cmds
12465 module_expsym_cmds=$lt_module_expsym_cmds
12466
12467 # Whether we are building with GNU ld or not.
12468 with_gnu_ld=$lt_with_gnu_ld
12469
12470 # Flag that allows shared libraries with undefined symbols to be built.
12471 allow_undefined_flag=$lt_allow_undefined_flag
12472
12473 # Flag that enforces no undefined symbols.
12474 no_undefined_flag=$lt_no_undefined_flag
12475
12476 # Flag to hardcode \$libdir into a binary during linking.
12477 # This must work even if \$libdir does not exist
12478 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12479
12480 # If ld is used when linking, flag to hardcode \$libdir into a binary
12481 # during linking.  This must work even if \$libdir does not exist.
12482 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12483
12484 # Whether we need a single "-rpath" flag with a separated argument.
12485 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12486
12487 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12488 # DIR into the resulting binary.
12489 hardcode_direct=$hardcode_direct
12490
12491 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12492 # DIR into the resulting binary and the resulting library dependency is
12493 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12494 # library is relocated.
12495 hardcode_direct_absolute=$hardcode_direct_absolute
12496
12497 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12498 # into the resulting binary.
12499 hardcode_minus_L=$hardcode_minus_L
12500
12501 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12502 # into the resulting binary.
12503 hardcode_shlibpath_var=$hardcode_shlibpath_var
12504
12505 # Set to "yes" if building a shared library automatically hardcodes DIR
12506 # into the library and all subsequent libraries and executables linked
12507 # against it.
12508 hardcode_automatic=$hardcode_automatic
12509
12510 # Set to yes if linker adds runtime paths of dependent libraries
12511 # to runtime path list.
12512 inherit_rpath=$inherit_rpath
12513
12514 # Whether libtool must link a program against all its dependency libraries.
12515 link_all_deplibs=$link_all_deplibs
12516
12517 # Fix the shell variable \$srcfile for the compiler.
12518 fix_srcfile_path=$lt_fix_srcfile_path
12519
12520 # Set to "yes" if exported symbols are required.
12521 always_export_symbols=$always_export_symbols
12522
12523 # The commands to list exported symbols.
12524 export_symbols_cmds=$lt_export_symbols_cmds
12525
12526 # Symbols that should not be listed in the preloaded symbols.
12527 exclude_expsyms=$lt_exclude_expsyms
12528
12529 # Symbols that must always be exported.
12530 include_expsyms=$lt_include_expsyms
12531
12532 # Commands necessary for linking programs (against libraries) with templates.
12533 prelink_cmds=$lt_prelink_cmds
12534
12535 # Specify filename containing input files.
12536 file_list_spec=$lt_file_list_spec
12537
12538 # How to hardcode a shared library path into an executable.
12539 hardcode_action=$hardcode_action
12540
12541 # ### END LIBTOOL CONFIG
12542
12543 _LT_EOF
12544
12545   case $host_os in
12546   aix3*)
12547     cat <<\_LT_EOF >> "$cfgfile"
12548 # AIX sometimes has problems with the GCC collect2 program.  For some
12549 # reason, if we set the COLLECT_NAMES environment variable, the problems
12550 # vanish in a puff of smoke.
12551 if test "X${COLLECT_NAMES+set}" != Xset; then
12552   COLLECT_NAMES=
12553   export COLLECT_NAMES
12554 fi
12555 _LT_EOF
12556     ;;
12557   esac
12558
12559
12560 ltmain="$ac_aux_dir/ltmain.sh"
12561
12562
12563   # We use sed instead of cat because bash on DJGPP gets confused if
12564   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12565   # text mode, it properly converts lines to CR/LF.  This bash problem
12566   # is reportedly fixed, but why not run on old versions too?
12567   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12568     || (rm -f "$cfgfile"; exit 1)
12569
12570   case $xsi_shell in
12571   yes)
12572     cat << \_LT_EOF >> "$cfgfile"
12573 # func_dirname file append nondir_replacement
12574 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12575 # otherwise set result to NONDIR_REPLACEMENT.
12576 func_dirname ()
12577 {
12578   case ${1} in
12579     */*) func_dirname_result="${1%/*}${2}" ;;
12580     *  ) func_dirname_result="${3}" ;;
12581   esac
12582 }
12583
12584 # func_basename file
12585 func_basename ()
12586 {
12587   func_basename_result="${1##*/}"
12588 }
12589
12590 # func_stripname prefix suffix name
12591 # strip PREFIX and SUFFIX off of NAME.
12592 # PREFIX and SUFFIX must not contain globbing or regex special
12593 # characters, hashes, percent signs, but SUFFIX may contain a leading
12594 # dot (in which case that matches only a dot).
12595 func_stripname ()
12596 {
12597   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12598   # positional parameters, so assign one to ordinary parameter first.
12599   func_stripname_result=${3}
12600   func_stripname_result=${func_stripname_result#"${1}"}
12601   func_stripname_result=${func_stripname_result%"${2}"}
12602 }
12603
12604 # func_opt_split
12605 func_opt_split ()
12606 {
12607   func_opt_split_opt=${1%%=*}
12608   func_opt_split_arg=${1#*=}
12609 }
12610
12611 # func_lo2o object
12612 func_lo2o ()
12613 {
12614   case ${1} in
12615     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12616     *)    func_lo2o_result=${1} ;;
12617   esac
12618 }
12619 _LT_EOF
12620     ;;
12621   *) # Bourne compatible functions.
12622     cat << \_LT_EOF >> "$cfgfile"
12623 # func_dirname file append nondir_replacement
12624 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12625 # otherwise set result to NONDIR_REPLACEMENT.
12626 func_dirname ()
12627 {
12628   # Extract subdirectory from the argument.
12629   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12630   if test "X$func_dirname_result" = "X${1}"; then
12631     func_dirname_result="${3}"
12632   else
12633     func_dirname_result="$func_dirname_result${2}"
12634   fi
12635 }
12636
12637 # func_basename file
12638 func_basename ()
12639 {
12640   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12641 }
12642
12643 # func_stripname prefix suffix name
12644 # strip PREFIX and SUFFIX off of NAME.
12645 # PREFIX and SUFFIX must not contain globbing or regex special
12646 # characters, hashes, percent signs, but SUFFIX may contain a leading
12647 # dot (in which case that matches only a dot).
12648 # func_strip_suffix prefix name
12649 func_stripname ()
12650 {
12651   case ${2} in
12652     .*) func_stripname_result=`$ECHO "X${3}" \
12653            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12654     *)  func_stripname_result=`$ECHO "X${3}" \
12655            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12656   esac
12657 }
12658
12659 # sed scripts:
12660 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12661 my_sed_long_arg='1s/^-[^=]*=//'
12662
12663 # func_opt_split
12664 func_opt_split ()
12665 {
12666   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12667   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12668 }
12669
12670 # func_lo2o object
12671 func_lo2o ()
12672 {
12673   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12674 }
12675 _LT_EOF
12676 esac
12677
12678 case $lt_shell_append in
12679   yes)
12680     cat << \_LT_EOF >> "$cfgfile"
12681
12682 # func_append var value
12683 # Append VALUE to the end of shell variable VAR.
12684 func_append ()
12685 {
12686   eval "$1+=\$2"
12687 }
12688 _LT_EOF
12689     ;;
12690   *)
12691     cat << \_LT_EOF >> "$cfgfile"
12692
12693 # func_append var value
12694 # Append VALUE to the end of shell variable VAR.
12695 func_append ()
12696 {
12697   eval "$1=\$$1\$2"
12698 }
12699 _LT_EOF
12700     ;;
12701   esac
12702
12703
12704   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12705     || (rm -f "$cfgfile"; exit 1)
12706
12707   mv -f "$cfgfile" "$ofile" ||
12708     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12709   chmod +x "$ofile"
12710
12711  ;;
12712   esac
12713 done
12714 _ACEOF
12715
12716 cat >>$CONFIG_STATUS <<\_ACEOF
12717
12718 { (exit 0); exit 0; }
12719 _ACEOF
12720 chmod +x $CONFIG_STATUS
12721 ac_clean_files=$ac_clean_files_save
12722
12723
12724 # configure is writing to config.log, and then calls config.status.
12725 # config.status does its own redirection, appending to config.log.
12726 # Unfortunately, on DOS this fails, as config.log is still kept open
12727 # by configure, so config.status won't be able to write to it; its
12728 # output is simply discarded.  So we exec the FD to /dev/null,
12729 # effectively closing config.log, so it can be properly (re)opened and
12730 # appended to by config.status.  When coming back to configure, we
12731 # need to make the FD available again.
12732 if test "$no_create" != yes; then
12733   ac_cs_success=:
12734   ac_config_status_args=
12735   test "$silent" = yes &&
12736     ac_config_status_args="$ac_config_status_args --quiet"
12737   exec 5>/dev/null
12738   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12739   exec 5>>config.log
12740   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12741   # would make configure fail if this is the last instruction.
12742   $ac_cs_success || { (exit 1); exit 1; }
12743 fi
12744