OSDN Git Service

cd5c95cae153903226da0c97701571754938ff80
[pf3gnuchains/gcc-fork.git] / libobjc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for package-unused version-unused.
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='package-unused'
418 PACKAGE_TARNAME='libobjc'
419 PACKAGE_VERSION='version-unused'
420 PACKAGE_STRING='package-unused version-unused'
421 PACKAGE_BUGREPORT=''
422
423 ac_unique_file="objc/objc.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 build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir VERSION OBJC_BOEHM_GC OBJC_BOEHM_GC_INCLUDES multi_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical glibcpp_srcdir toolexecdir toolexeclibdir includedirname libsuffix CC ac_ct_CC EXEEXT OBJEXT extra_ldflags_libobjc CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S STRIP ac_ct_STRIP lt_ECHO CPP CPPFLAGS SET_MAKE 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 package-unused version-unused 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 System types:
972   --build=BUILD     configure for building on BUILD [guessed]
973   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
974   --target=TARGET   configure for building compilers for TARGET [HOST]
975 _ACEOF
976 fi
977
978 if test -n "$ac_init_help"; then
979   case $ac_init_help in
980      short | recursive ) echo "Configuration of package-unused version-unused:";;
981    esac
982   cat <<\_ACEOF
983
984 Optional Features:
985   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
986   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
987   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory
988   --enable-objc-gc       enable the use of Boehm's garbage collector with
989                           the GNU Objective-C runtime.
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   --enable-shared[=PKGS]
994                           build shared libraries [default=yes]
995   --enable-static[=PKGS]
996                           build static libraries [default=yes]
997   --enable-fast-install[=PKGS]
998                           optimize for fast installation [default=yes]
999   --disable-libtool-lock  avoid locking (might break parallel builds)
1000   --enable-sjlj-exceptions
1001                           force use of builtin_setjmp for exceptions
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-build-libsubdir=DIR  Directory where to find libraries for build system
1007   --with-target-subdir=SUBDIR
1008                            configuring in a subdirectory
1009   --with-cross-host=HOST  configuring with a cross compiler
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 package-unused configure version-unused
1122 generated by GNU Autoconf 2.59
1123
1124 Copyright (C) 2003 Free Software Foundation, Inc.
1125 This configure script is free software; the Free Software Foundation
1126 gives unlimited permission to copy, distribute and modify it.
1127 _ACEOF
1128   exit 0
1129 fi
1130 exec 5>config.log
1131 cat >&5 <<_ACEOF
1132 This file contains any messages produced by compilers while
1133 running configure, to aid debugging if configure makes a mistake.
1134
1135 It was created by package-unused $as_me version-unused, which was
1136 generated by GNU Autoconf 2.59.  Invocation command line was
1137
1138   $ $0 $@
1139
1140 _ACEOF
1141 {
1142 cat <<_ASUNAME
1143 ## --------- ##
1144 ## Platform. ##
1145 ## --------- ##
1146
1147 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1148 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1149 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1150 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1151 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1152
1153 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1154 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1155
1156 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1157 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1158 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1159 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1160 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1161 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1162 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1163
1164 _ASUNAME
1165
1166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1167 for as_dir in $PATH
1168 do
1169   IFS=$as_save_IFS
1170   test -z "$as_dir" && as_dir=.
1171   echo "PATH: $as_dir"
1172 done
1173
1174 } >&5
1175
1176 cat >&5 <<_ACEOF
1177
1178
1179 ## ----------- ##
1180 ## Core tests. ##
1181 ## ----------- ##
1182
1183 _ACEOF
1184
1185
1186 # Keep a trace of the command line.
1187 # Strip out --no-create and --no-recursion so they do not pile up.
1188 # Strip out --silent because we don't want to record it for future runs.
1189 # Also quote any args containing shell meta-characters.
1190 # Make two passes to allow for proper duplicate-argument suppression.
1191 ac_configure_args=
1192 ac_configure_args0=
1193 ac_configure_args1=
1194 ac_sep=
1195 ac_must_keep_next=false
1196 for ac_pass in 1 2
1197 do
1198   for ac_arg
1199   do
1200     case $ac_arg in
1201     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1202     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1203     | -silent | --silent | --silen | --sile | --sil)
1204       continue ;;
1205     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1206       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1207     esac
1208     case $ac_pass in
1209     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1210     2)
1211       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1212       if test $ac_must_keep_next = true; then
1213         ac_must_keep_next=false # Got value, back to normal.
1214       else
1215         case $ac_arg in
1216           *=* | --config-cache | -C | -disable-* | --disable-* \
1217           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1218           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1219           | -with-* | --with-* | -without-* | --without-* | --x)
1220             case "$ac_configure_args0 " in
1221               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1222             esac
1223             ;;
1224           -* ) ac_must_keep_next=true ;;
1225         esac
1226       fi
1227       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1228       # Get rid of the leading space.
1229       ac_sep=" "
1230       ;;
1231     esac
1232   done
1233 done
1234 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1235 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1236
1237 # When interrupted or exit'd, cleanup temporary files, and complete
1238 # config.log.  We remove comments because anyway the quotes in there
1239 # would cause problems or look ugly.
1240 # WARNING: Be sure not to use single quotes in there, as some shells,
1241 # such as our DU 5.0 friend, will then `close' the trap.
1242 trap 'exit_status=$?
1243   # Save into config.log some information that might help in debugging.
1244   {
1245     echo
1246
1247     cat <<\_ASBOX
1248 ## ---------------- ##
1249 ## Cache variables. ##
1250 ## ---------------- ##
1251 _ASBOX
1252     echo
1253     # The following way of writing the cache mishandles newlines in values,
1254 {
1255   (set) 2>&1 |
1256     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1257     *ac_space=\ *)
1258       sed -n \
1259         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1260           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1261       ;;
1262     *)
1263       sed -n \
1264         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1265       ;;
1266     esac;
1267 }
1268     echo
1269
1270     cat <<\_ASBOX
1271 ## ----------------- ##
1272 ## Output variables. ##
1273 ## ----------------- ##
1274 _ASBOX
1275     echo
1276     for ac_var in $ac_subst_vars
1277     do
1278       eval ac_val=$`echo $ac_var`
1279       echo "$ac_var='"'"'$ac_val'"'"'"
1280     done | sort
1281     echo
1282
1283     if test -n "$ac_subst_files"; then
1284       cat <<\_ASBOX
1285 ## ------------- ##
1286 ## Output files. ##
1287 ## ------------- ##
1288 _ASBOX
1289       echo
1290       for ac_var in $ac_subst_files
1291       do
1292         eval ac_val=$`echo $ac_var`
1293         echo "$ac_var='"'"'$ac_val'"'"'"
1294       done | sort
1295       echo
1296     fi
1297
1298     if test -s confdefs.h; then
1299       cat <<\_ASBOX
1300 ## ----------- ##
1301 ## confdefs.h. ##
1302 ## ----------- ##
1303 _ASBOX
1304       echo
1305       sed "/^$/d" confdefs.h | sort
1306       echo
1307     fi
1308     test "$ac_signal" != 0 &&
1309       echo "$as_me: caught signal $ac_signal"
1310     echo "$as_me: exit $exit_status"
1311   } >&5
1312   rm -f core *.core &&
1313   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1314     exit $exit_status
1315      ' 0
1316 for ac_signal in 1 2 13 15; do
1317   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1318 done
1319 ac_signal=0
1320
1321 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1322 rm -rf conftest* confdefs.h
1323 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1324 echo >confdefs.h
1325
1326 # Predefined preprocessor variables.
1327
1328 cat >>confdefs.h <<_ACEOF
1329 #define PACKAGE_NAME "$PACKAGE_NAME"
1330 _ACEOF
1331
1332
1333 cat >>confdefs.h <<_ACEOF
1334 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1335 _ACEOF
1336
1337
1338 cat >>confdefs.h <<_ACEOF
1339 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1340 _ACEOF
1341
1342
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_STRING "$PACKAGE_STRING"
1345 _ACEOF
1346
1347
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1350 _ACEOF
1351
1352
1353 # Let the site file select an alternate cache file if it wants to.
1354 # Prefer explicitly selected file to automatically selected ones.
1355 if test -z "$CONFIG_SITE"; then
1356   if test "x$prefix" != xNONE; then
1357     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1358   else
1359     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1360   fi
1361 fi
1362 for ac_site_file in $CONFIG_SITE; do
1363   if test -r "$ac_site_file"; then
1364     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1365 echo "$as_me: loading site script $ac_site_file" >&6;}
1366     sed 's/^/| /' "$ac_site_file" >&5
1367     . "$ac_site_file"
1368   fi
1369 done
1370
1371 if test -r "$cache_file"; then
1372   # Some versions of bash will fail to source /dev/null (special
1373   # files actually), so we avoid doing that.
1374   if test -f "$cache_file"; then
1375     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1376 echo "$as_me: loading cache $cache_file" >&6;}
1377     case $cache_file in
1378       [\\/]* | ?:[\\/]* ) . $cache_file;;
1379       *)                      . ./$cache_file;;
1380     esac
1381   fi
1382 else
1383   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1384 echo "$as_me: creating cache $cache_file" >&6;}
1385   >$cache_file
1386 fi
1387
1388 # Check that the precious variables saved in the cache have kept the same
1389 # value.
1390 ac_cache_corrupted=false
1391 for ac_var in `(set) 2>&1 |
1392                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1393   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1394   eval ac_new_set=\$ac_env_${ac_var}_set
1395   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1396   eval ac_new_val="\$ac_env_${ac_var}_value"
1397   case $ac_old_set,$ac_new_set in
1398     set,)
1399       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1400 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1401       ac_cache_corrupted=: ;;
1402     ,set)
1403       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1404 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1405       ac_cache_corrupted=: ;;
1406     ,);;
1407     *)
1408       if test "x$ac_old_val" != "x$ac_new_val"; then
1409         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1410 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1411         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1412 echo "$as_me:   former value:  $ac_old_val" >&2;}
1413         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1414 echo "$as_me:   current value: $ac_new_val" >&2;}
1415         ac_cache_corrupted=:
1416       fi;;
1417   esac
1418   # Pass precious variables to config.status.
1419   if test "$ac_new_set" = set; then
1420     case $ac_new_val in
1421     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1422       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1423     *) ac_arg=$ac_var=$ac_new_val ;;
1424     esac
1425     case " $ac_configure_args " in
1426       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1427       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1428     esac
1429   fi
1430 done
1431 if $ac_cache_corrupted; then
1432   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1433 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1434   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1435 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1436    { (exit 1); exit 1; }; }
1437 fi
1438
1439 ac_ext=c
1440 ac_cpp='$CPP $CPPFLAGS'
1441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472 ac_aux_dir=
1473 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1474   if test -f $ac_dir/install-sh; then
1475     ac_aux_dir=$ac_dir
1476     ac_install_sh="$ac_aux_dir/install-sh -c"
1477     break
1478   elif test -f $ac_dir/install.sh; then
1479     ac_aux_dir=$ac_dir
1480     ac_install_sh="$ac_aux_dir/install.sh -c"
1481     break
1482   elif test -f $ac_dir/shtool; then
1483     ac_aux_dir=$ac_dir
1484     ac_install_sh="$ac_aux_dir/shtool install -c"
1485     break
1486   fi
1487 done
1488 if test -z "$ac_aux_dir"; then
1489   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1491    { (exit 1); exit 1; }; }
1492 fi
1493 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1496
1497 # Make sure we can run config.sub.
1498 $ac_config_sub sun4 >/dev/null 2>&1 ||
1499   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1501    { (exit 1); exit 1; }; }
1502
1503 echo "$as_me:$LINENO: checking build system type" >&5
1504 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1505 if test "${ac_cv_build+set}" = set; then
1506   echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508   ac_cv_build_alias=$build_alias
1509 test -z "$ac_cv_build_alias" &&
1510   ac_cv_build_alias=`$ac_config_guess`
1511 test -z "$ac_cv_build_alias" &&
1512   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514    { (exit 1); exit 1; }; }
1515 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1518    { (exit 1); exit 1; }; }
1519
1520 fi
1521 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522 echo "${ECHO_T}$ac_cv_build" >&6
1523 build=$ac_cv_build
1524 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1527
1528
1529  case ${build_alias} in
1530   "") build_noncanonical=${build} ;;
1531   *) build_noncanonical=${build_alias} ;;
1532 esac
1533
1534  case ${host_alias} in
1535   "") host_noncanonical=${build_noncanonical} ;;
1536   *) host_noncanonical=${host_alias} ;;
1537 esac
1538
1539  case ${target_alias} in
1540   "") target_noncanonical=${host_noncanonical} ;;
1541   *) target_noncanonical=${target_alias} ;;
1542 esac
1543
1544
1545 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1546 # have matching libraries, they should use host libraries: Makefile.tpl
1547 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1548 # However, they still use the build modules, because the corresponding
1549 # host modules (e.g. bison) are only built for the host when bootstrap
1550 # finishes. So:
1551 # - build_subdir is where we find build modules, and never changes.
1552 # - build_libsubdir is where we find build libraries, and can be overridden.
1553
1554 # Prefix 'build-' so this never conflicts with target_subdir.
1555 build_subdir="build-${build_noncanonical}"
1556
1557 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1558 if test "${with_build_libsubdir+set}" = set; then
1559   withval="$with_build_libsubdir"
1560   build_libsubdir="$withval"
1561 else
1562   build_libsubdir="$build_subdir"
1563 fi;
1564 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1565 if ( test $srcdir = . && test -d gcc ) \
1566    || test -d $srcdir/../host-${host_noncanonical}; then
1567   host_subdir="host-${host_noncanonical}"
1568 else
1569   host_subdir=.
1570 fi
1571 # No prefix.
1572 target_subdir=${target_noncanonical}
1573
1574
1575 # We need the following definitions because AC_PROG_LIBTOOL relies on them
1576 PACKAGE=libobjc
1577 # Version is pulled out to make it a bit easier to change using sed.
1578 VERSION=2:0:0
1579
1580
1581 # This works around the fact that libtool configuration may change LD
1582 # for this particular configuration, but some shells, instead of
1583 # keeping the changes in LD private, export them just because LD is
1584 # exported.
1585 ORIGINAL_LD_FOR_MULTILIBS=$LD
1586
1587 # -------
1588 # Options
1589 # -------
1590
1591 # We use these options to decide which functions to include.
1592
1593 # Check whether --with-target-subdir or --without-target-subdir was given.
1594 if test "${with_target_subdir+set}" = set; then
1595   withval="$with_target_subdir"
1596
1597 fi;
1598
1599 # Check whether --with-cross-host or --without-cross-host was given.
1600 if test "${with_cross_host+set}" = set; then
1601   withval="$with_cross_host"
1602
1603 fi;
1604
1605 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1606 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1607 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1608 if test "${enable_version_specific_runtime_libs+set}" = set; then
1609   enableval="$enable_version_specific_runtime_libs"
1610   case "$enableval" in
1611  yes) version_specific_libs=yes ;;
1612  no)  version_specific_libs=no ;;
1613  *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1614 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1615    { (exit 1); exit 1; }; };;
1616  esac
1617 else
1618   version_specific_libs=no
1619 fi;
1620 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1621 echo "${ECHO_T}$version_specific_libs" >&6
1622
1623 # Check whether --enable-objc-gc or --disable-objc-gc was given.
1624 if test "${enable_objc_gc+set}" = set; then
1625   enableval="$enable_objc_gc"
1626   case $enable_objc_gc in
1627   no)
1628     OBJC_BOEHM_GC=''
1629     OBJC_BOEHM_GC_INCLUDES=''
1630     ;;
1631   *)
1632     OBJC_BOEHM_GC=libobjc_gc.la
1633     OBJC_BOEHM_GC_INCLUDES='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
1634     ;;
1635 esac
1636 else
1637   OBJC_BOEHM_GC=''; OBJC_BOEHM_GC_INCLUDES=''
1638 fi;
1639
1640
1641
1642 # -----------
1643 # Directories
1644 # -----------
1645
1646 # Find the rest of the source tree framework.
1647 # Default to --enable-multilib
1648 # Check whether --enable-multilib or --disable-multilib was given.
1649 if test "${enable_multilib+set}" = set; then
1650   enableval="$enable_multilib"
1651   case "$enableval" in
1652   yes) multilib=yes ;;
1653   no)  multilib=no ;;
1654   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1655 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1656    { (exit 1); exit 1; }; } ;;
1657  esac
1658 else
1659   multilib=yes
1660 fi;
1661
1662 # We may get other options which we leave undocumented:
1663 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1664 # See config-ml.in if you want the gory details.
1665
1666 if test "$srcdir" = "."; then
1667   if test "$with_target_subdir" != "."; then
1668     multi_basedir="$srcdir/$with_multisrctop../.."
1669   else
1670     multi_basedir="$srcdir/$with_multisrctop.."
1671   fi
1672 else
1673   multi_basedir="$srcdir/.."
1674 fi
1675
1676
1677 # Even if the default multilib is not a cross compilation,
1678 # it may be that some of the other multilibs are.
1679 if test $cross_compiling = no && test $multilib = yes \
1680    && test "x${with_multisubdir}" != x ; then
1681    cross_compiling=maybe
1682 fi
1683
1684           ac_config_commands="$ac_config_commands default-1"
1685
1686
1687 echo "$as_me:$LINENO: checking host system type" >&5
1688 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1689 if test "${ac_cv_host+set}" = set; then
1690   echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692   ac_cv_host_alias=$host_alias
1693 test -z "$ac_cv_host_alias" &&
1694   ac_cv_host_alias=$ac_cv_build_alias
1695 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1696   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1697 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1698    { (exit 1); exit 1; }; }
1699
1700 fi
1701 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1702 echo "${ECHO_T}$ac_cv_host" >&6
1703 host=$ac_cv_host
1704 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1705 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1706 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1707
1708
1709 echo "$as_me:$LINENO: checking target system type" >&5
1710 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1711 if test "${ac_cv_target+set}" = set; then
1712   echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714   ac_cv_target_alias=$target_alias
1715 test "x$ac_cv_target_alias" = "x" &&
1716   ac_cv_target_alias=$ac_cv_host_alias
1717 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1718   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1719 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1720    { (exit 1); exit 1; }; }
1721
1722 fi
1723 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1724 echo "${ECHO_T}$ac_cv_target" >&6
1725 target=$ac_cv_target
1726 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1727 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1728 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1729
1730
1731 # The aliases save the names the user supplied, while $host etc.
1732 # will get canonicalized.
1733 test -n "$target_alias" &&
1734   test "$program_prefix$program_suffix$program_transform_name" = \
1735     NONENONEs,x,x, &&
1736   program_prefix=${target_alias}-
1737
1738
1739
1740 # Export source directory.
1741 # These need to be absolute paths, yet at the same time need to
1742 # canonicalize only relative paths, because then amd will not unmount
1743 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1744 case $srcdir in
1745   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1746   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1747 esac
1748
1749
1750 # Calculate toolexeclibdir
1751 # Also toolexecdir, though it's only used in toolexeclibdir
1752 case ${version_specific_libs} in
1753   yes)
1754     # Need the gcc compiler version to know where to install libraries
1755     # and header files if --enable-version-specific-runtime-libs option
1756     # is selected.
1757     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
1758     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
1759     ;;
1760   no)
1761     if test -n "$with_cross_host" &&
1762        test x"$with_cross_host" != x"no"; then
1763       # Install a library built with a cross compiler in tooldir, not libdir.
1764       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
1765       toolexeclibdir='$(toolexecdir)/lib'
1766     else
1767       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
1768       toolexeclibdir='$(libdir)'
1769     fi
1770     multi_os_directory=`$CC -print-multi-os-directory`
1771     case $multi_os_directory in
1772       .) ;; # Avoid trailing /.
1773       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1774     esac
1775     ;;
1776 esac
1777
1778
1779
1780 # Figure out if we want to name the include directory and the
1781 #  library name changes differently.
1782 includedirname=include
1783 libsuffix=
1784 case "${host}" in
1785   *-darwin*)
1786     # Darwin is the only target so far that needs a different include directory.
1787     includedirname=include-gnu-runtime
1788     libsubfix=-gnu
1789     ;;
1790 esac
1791
1792
1793
1794           ac_config_headers="$ac_config_headers config.h"
1795
1796
1797 # --------
1798 # Programs
1799 # --------
1800
1801
1802
1803 # We must force CC to /not/ be a precious variable; otherwise
1804 # the wrong, non-multilib-adjusted value will be used in multilibs.
1805 # As a side effect, we have to subst CFLAGS ourselves.
1806
1807
1808 ac_ext=c
1809 ac_cpp='$CPP $CPPFLAGS'
1810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1813 if test -n "$ac_tool_prefix"; then
1814   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1815 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1816 echo "$as_me:$LINENO: checking for $ac_word" >&5
1817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1818 if test "${ac_cv_prog_CC+set}" = set; then
1819   echo $ECHO_N "(cached) $ECHO_C" >&6
1820 else
1821   if test -n "$CC"; then
1822   ac_cv_prog_CC="$CC" # Let the user override the test.
1823 else
1824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825 for as_dir in $PATH
1826 do
1827   IFS=$as_save_IFS
1828   test -z "$as_dir" && as_dir=.
1829   for ac_exec_ext in '' $ac_executable_extensions; do
1830   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1831     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833     break 2
1834   fi
1835 done
1836 done
1837
1838 fi
1839 fi
1840 CC=$ac_cv_prog_CC
1841 if test -n "$CC"; then
1842   echo "$as_me:$LINENO: result: $CC" >&5
1843 echo "${ECHO_T}$CC" >&6
1844 else
1845   echo "$as_me:$LINENO: result: no" >&5
1846 echo "${ECHO_T}no" >&6
1847 fi
1848
1849 fi
1850 if test -z "$ac_cv_prog_CC"; then
1851   ac_ct_CC=$CC
1852   # Extract the first word of "gcc", so it can be a program name with args.
1853 set dummy gcc; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1857   echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859   if test -n "$ac_ct_CC"; then
1860   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1861 else
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1864 do
1865   IFS=$as_save_IFS
1866   test -z "$as_dir" && as_dir=.
1867   for ac_exec_ext in '' $ac_executable_extensions; do
1868   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869     ac_cv_prog_ac_ct_CC="gcc"
1870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871     break 2
1872   fi
1873 done
1874 done
1875
1876 fi
1877 fi
1878 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1879 if test -n "$ac_ct_CC"; then
1880   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1881 echo "${ECHO_T}$ac_ct_CC" >&6
1882 else
1883   echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1885 fi
1886
1887   CC=$ac_ct_CC
1888 else
1889   CC="$ac_cv_prog_CC"
1890 fi
1891
1892 if test -z "$CC"; then
1893   if test -n "$ac_tool_prefix"; then
1894   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1895 set dummy ${ac_tool_prefix}cc; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_CC+set}" = set; then
1899   echo $ECHO_N "(cached) $ECHO_C" >&6
1900 else
1901   if test -n "$CC"; then
1902   ac_cv_prog_CC="$CC" # Let the user override the test.
1903 else
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH
1906 do
1907   IFS=$as_save_IFS
1908   test -z "$as_dir" && as_dir=.
1909   for ac_exec_ext in '' $ac_executable_extensions; do
1910   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911     ac_cv_prog_CC="${ac_tool_prefix}cc"
1912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913     break 2
1914   fi
1915 done
1916 done
1917
1918 fi
1919 fi
1920 CC=$ac_cv_prog_CC
1921 if test -n "$CC"; then
1922   echo "$as_me:$LINENO: result: $CC" >&5
1923 echo "${ECHO_T}$CC" >&6
1924 else
1925   echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1927 fi
1928
1929 fi
1930 if test -z "$ac_cv_prog_CC"; then
1931   ac_ct_CC=$CC
1932   # Extract the first word of "cc", so it can be a program name with args.
1933 set dummy cc; ac_word=$2
1934 echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1937   echo $ECHO_N "(cached) $ECHO_C" >&6
1938 else
1939   if test -n "$ac_ct_CC"; then
1940   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1941 else
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 for as_dir in $PATH
1944 do
1945   IFS=$as_save_IFS
1946   test -z "$as_dir" && as_dir=.
1947   for ac_exec_ext in '' $ac_executable_extensions; do
1948   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949     ac_cv_prog_ac_ct_CC="cc"
1950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951     break 2
1952   fi
1953 done
1954 done
1955
1956 fi
1957 fi
1958 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1959 if test -n "$ac_ct_CC"; then
1960   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1961 echo "${ECHO_T}$ac_ct_CC" >&6
1962 else
1963   echo "$as_me:$LINENO: result: no" >&5
1964 echo "${ECHO_T}no" >&6
1965 fi
1966
1967   CC=$ac_ct_CC
1968 else
1969   CC="$ac_cv_prog_CC"
1970 fi
1971
1972 fi
1973 if test -z "$CC"; then
1974   # Extract the first word of "cc", so it can be a program name with args.
1975 set dummy cc; ac_word=$2
1976 echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978 if test "${ac_cv_prog_CC+set}" = set; then
1979   echo $ECHO_N "(cached) $ECHO_C" >&6
1980 else
1981   if test -n "$CC"; then
1982   ac_cv_prog_CC="$CC" # Let the user override the test.
1983 else
1984   ac_prog_rejected=no
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1987 do
1988   IFS=$as_save_IFS
1989   test -z "$as_dir" && as_dir=.
1990   for ac_exec_ext in '' $ac_executable_extensions; do
1991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1993        ac_prog_rejected=yes
1994        continue
1995      fi
1996     ac_cv_prog_CC="cc"
1997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998     break 2
1999   fi
2000 done
2001 done
2002
2003 if test $ac_prog_rejected = yes; then
2004   # We found a bogon in the path, so make sure we never use it.
2005   set dummy $ac_cv_prog_CC
2006   shift
2007   if test $# != 0; then
2008     # We chose a different compiler from the bogus one.
2009     # However, it has the same basename, so the bogon will be chosen
2010     # first if we set CC to just the basename; use the full file name.
2011     shift
2012     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2013   fi
2014 fi
2015 fi
2016 fi
2017 CC=$ac_cv_prog_CC
2018 if test -n "$CC"; then
2019   echo "$as_me:$LINENO: result: $CC" >&5
2020 echo "${ECHO_T}$CC" >&6
2021 else
2022   echo "$as_me:$LINENO: result: no" >&5
2023 echo "${ECHO_T}no" >&6
2024 fi
2025
2026 fi
2027 if test -z "$CC"; then
2028   if test -n "$ac_tool_prefix"; then
2029   for ac_prog in cl
2030   do
2031     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2033 echo "$as_me:$LINENO: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035 if test "${ac_cv_prog_CC+set}" = set; then
2036   echo $ECHO_N "(cached) $ECHO_C" >&6
2037 else
2038   if test -n "$CC"; then
2039   ac_cv_prog_CC="$CC" # Let the user override the test.
2040 else
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 for as_dir in $PATH
2043 do
2044   IFS=$as_save_IFS
2045   test -z "$as_dir" && as_dir=.
2046   for ac_exec_ext in '' $ac_executable_extensions; do
2047   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2048     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050     break 2
2051   fi
2052 done
2053 done
2054
2055 fi
2056 fi
2057 CC=$ac_cv_prog_CC
2058 if test -n "$CC"; then
2059   echo "$as_me:$LINENO: result: $CC" >&5
2060 echo "${ECHO_T}$CC" >&6
2061 else
2062   echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6
2064 fi
2065
2066     test -n "$CC" && break
2067   done
2068 fi
2069 if test -z "$CC"; then
2070   ac_ct_CC=$CC
2071   for ac_prog in cl
2072 do
2073   # Extract the first word of "$ac_prog", so it can be a program name with args.
2074 set dummy $ac_prog; ac_word=$2
2075 echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2077 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2078   echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080   if test -n "$ac_ct_CC"; then
2081   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2082 else
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2085 do
2086   IFS=$as_save_IFS
2087   test -z "$as_dir" && as_dir=.
2088   for ac_exec_ext in '' $ac_executable_extensions; do
2089   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2090     ac_cv_prog_ac_ct_CC="$ac_prog"
2091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092     break 2
2093   fi
2094 done
2095 done
2096
2097 fi
2098 fi
2099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2100 if test -n "$ac_ct_CC"; then
2101   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2102 echo "${ECHO_T}$ac_ct_CC" >&6
2103 else
2104   echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6
2106 fi
2107
2108   test -n "$ac_ct_CC" && break
2109 done
2110
2111   CC=$ac_ct_CC
2112 fi
2113
2114 fi
2115
2116
2117 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2118 See \`config.log' for more details." >&5
2119 echo "$as_me: error: no acceptable C compiler found in \$PATH
2120 See \`config.log' for more details." >&2;}
2121    { (exit 1); exit 1; }; }
2122
2123 # Provide some information about the compiler.
2124 echo "$as_me:$LINENO:" \
2125      "checking for C compiler version" >&5
2126 ac_compiler=`set X $ac_compile; echo $2`
2127 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2128   (eval $ac_compiler --version </dev/null >&5) 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); }
2132 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2133   (eval $ac_compiler -v </dev/null >&5) 2>&5
2134   ac_status=$?
2135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136   (exit $ac_status); }
2137 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2138   (eval $ac_compiler -V </dev/null >&5) 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }
2142
2143 cat >conftest.$ac_ext <<_ACEOF
2144 /* confdefs.h.  */
2145 _ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h.  */
2149
2150 int
2151 main ()
2152 {
2153
2154   ;
2155   return 0;
2156 }
2157 _ACEOF
2158 # FIXME: Cleanup?
2159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2160   (eval $ac_link) 2>&5
2161   ac_status=$?
2162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163   (exit $ac_status); }; then
2164   gcc_no_link=no
2165 else
2166   gcc_no_link=yes
2167 fi
2168
2169 if test x$gcc_no_link = xyes; then
2170   # Setting cross_compile will disable run tests; it will
2171   # also disable AC_CHECK_FILE but that's generally
2172   # correct if we can't link.
2173   cross_compiling=yes
2174   EXEEXT=
2175 else
2176   cat >conftest.$ac_ext <<_ACEOF
2177 /* confdefs.h.  */
2178 _ACEOF
2179 cat confdefs.h >>conftest.$ac_ext
2180 cat >>conftest.$ac_ext <<_ACEOF
2181 /* end confdefs.h.  */
2182
2183 int
2184 main ()
2185 {
2186
2187   ;
2188   return 0;
2189 }
2190 _ACEOF
2191 ac_clean_files_save=$ac_clean_files
2192 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2193 # Try to create an executable without -o first, disregard a.out.
2194 # It will help us diagnose broken compilers, and finding out an intuition
2195 # of exeext.
2196 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2197 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2198 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2199 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2200   (eval $ac_link_default) 2>&5
2201   ac_status=$?
2202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203   (exit $ac_status); }; then
2204   # Find the output, starting from the most likely.  This scheme is
2205 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2206 # resort.
2207
2208 # Be careful to initialize this variable, since it used to be cached.
2209 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2210 ac_cv_exeext=
2211 # b.out is created by i960 compilers.
2212 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2213 do
2214   test -f "$ac_file" || continue
2215   case $ac_file in
2216     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2217         ;;
2218     conftest.$ac_ext )
2219         # This is the source file.
2220         ;;
2221     [ab].out )
2222         # We found the default executable, but exeext='' is most
2223         # certainly right.
2224         break;;
2225     *.* )
2226         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2227         # FIXME: I believe we export ac_cv_exeext for Libtool,
2228         # but it would be cool to find out if it's true.  Does anybody
2229         # maintain Libtool? --akim.
2230         export ac_cv_exeext
2231         break;;
2232     * )
2233         break;;
2234   esac
2235 done
2236 else
2237   echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2239
2240 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2241 See \`config.log' for more details." >&5
2242 echo "$as_me: error: C compiler cannot create executables
2243 See \`config.log' for more details." >&2;}
2244    { (exit 77); exit 77; }; }
2245 fi
2246
2247 ac_exeext=$ac_cv_exeext
2248 echo "$as_me:$LINENO: result: $ac_file" >&5
2249 echo "${ECHO_T}$ac_file" >&6
2250
2251 # Check the compiler produces executables we can run.  If not, either
2252 # the compiler is broken, or we cross compile.
2253 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2254 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2255 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2256 # If not cross compiling, check that we can run a simple program.
2257 if test "$cross_compiling" != yes; then
2258   if { ac_try='./$ac_file'
2259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260   (eval $ac_try) 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); }; }; then
2264     cross_compiling=no
2265   else
2266     if test "$cross_compiling" = maybe; then
2267         cross_compiling=yes
2268     else
2269         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2270 If you meant to cross compile, use \`--host'.
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot run C compiled programs.
2273 If you meant to cross compile, use \`--host'.
2274 See \`config.log' for more details." >&2;}
2275    { (exit 1); exit 1; }; }
2276     fi
2277   fi
2278 fi
2279 echo "$as_me:$LINENO: result: yes" >&5
2280 echo "${ECHO_T}yes" >&6
2281
2282 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2283 ac_clean_files=$ac_clean_files_save
2284 # Check the compiler produces executables we can run.  If not, either
2285 # the compiler is broken, or we cross compile.
2286 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2287 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2288 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2289 echo "${ECHO_T}$cross_compiling" >&6
2290
2291 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2292 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2294   (eval $ac_link) 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; then
2298   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2299 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2300 # work properly (i.e., refer to `conftest.exe'), while it won't with
2301 # `rm'.
2302 for ac_file in conftest.exe conftest conftest.*; do
2303   test -f "$ac_file" || continue
2304   case $ac_file in
2305     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2306     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2307           export ac_cv_exeext
2308           break;;
2309     * ) break;;
2310   esac
2311 done
2312 else
2313   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2314 See \`config.log' for more details." >&5
2315 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2316 See \`config.log' for more details." >&2;}
2317    { (exit 1); exit 1; }; }
2318 fi
2319
2320 rm -f conftest$ac_cv_exeext
2321 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2322 echo "${ECHO_T}$ac_cv_exeext" >&6
2323
2324 rm -f conftest.$ac_ext
2325 EXEEXT=$ac_cv_exeext
2326 ac_exeext=$EXEEXT
2327 fi
2328 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2329 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2330 if test "${ac_cv_objext+set}" = set; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   cat >conftest.$ac_ext <<_ACEOF
2334 /* confdefs.h.  */
2335 _ACEOF
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h.  */
2339
2340 int
2341 main ()
2342 {
2343
2344   ;
2345   return 0;
2346 }
2347 _ACEOF
2348 rm -f conftest.o conftest.obj
2349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350   (eval $ac_compile) 2>&5
2351   ac_status=$?
2352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353   (exit $ac_status); }; then
2354   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2355   case $ac_file in
2356     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2357     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2358        break;;
2359   esac
2360 done
2361 else
2362   echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2364
2365 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2366 See \`config.log' for more details." >&5
2367 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2368 See \`config.log' for more details." >&2;}
2369    { (exit 1); exit 1; }; }
2370 fi
2371
2372 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2373 fi
2374 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2375 echo "${ECHO_T}$ac_cv_objext" >&6
2376 OBJEXT=$ac_cv_objext
2377 ac_objext=$OBJEXT
2378 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2379 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2380 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2381   echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383   cat >conftest.$ac_ext <<_ACEOF
2384 /* confdefs.h.  */
2385 _ACEOF
2386 cat confdefs.h >>conftest.$ac_ext
2387 cat >>conftest.$ac_ext <<_ACEOF
2388 /* end confdefs.h.  */
2389
2390 int
2391 main ()
2392 {
2393 #ifndef __GNUC__
2394        choke me
2395 #endif
2396
2397   ;
2398   return 0;
2399 }
2400 _ACEOF
2401 rm -f conftest.$ac_objext
2402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403   (eval $ac_compile) 2>conftest.er1
2404   ac_status=$?
2405   grep -v '^ *+' conftest.er1 >conftest.err
2406   rm -f conftest.er1
2407   cat conftest.err >&5
2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409   (exit $ac_status); } &&
2410          { ac_try='test -z "$ac_c_werror_flag"
2411                          || test ! -s conftest.err'
2412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413   (eval $ac_try) 2>&5
2414   ac_status=$?
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); }; } &&
2417          { ac_try='test -s conftest.$ac_objext'
2418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419   (eval $ac_try) 2>&5
2420   ac_status=$?
2421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422   (exit $ac_status); }; }; then
2423   ac_compiler_gnu=yes
2424 else
2425   echo "$as_me: failed program was:" >&5
2426 sed 's/^/| /' conftest.$ac_ext >&5
2427
2428 ac_compiler_gnu=no
2429 fi
2430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2431 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2432
2433 fi
2434 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2435 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2436 GCC=`test $ac_compiler_gnu = yes && echo yes`
2437 ac_test_CFLAGS=${CFLAGS+set}
2438 ac_save_CFLAGS=$CFLAGS
2439 CFLAGS="-g"
2440 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2441 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2442 if test "${ac_cv_prog_cc_g+set}" = set; then
2443   echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445   cat >conftest.$ac_ext <<_ACEOF
2446 /* confdefs.h.  */
2447 _ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h.  */
2451
2452 int
2453 main ()
2454 {
2455
2456   ;
2457   return 0;
2458 }
2459 _ACEOF
2460 rm -f conftest.$ac_objext
2461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2462   (eval $ac_compile) 2>conftest.er1
2463   ac_status=$?
2464   grep -v '^ *+' conftest.er1 >conftest.err
2465   rm -f conftest.er1
2466   cat conftest.err >&5
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); } &&
2469          { ac_try='test -z "$ac_c_werror_flag"
2470                          || test ! -s conftest.err'
2471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472   (eval $ac_try) 2>&5
2473   ac_status=$?
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); }; } &&
2476          { ac_try='test -s conftest.$ac_objext'
2477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478   (eval $ac_try) 2>&5
2479   ac_status=$?
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); }; }; then
2482   ac_cv_prog_cc_g=yes
2483 else
2484   echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2486
2487 ac_cv_prog_cc_g=no
2488 fi
2489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2490 fi
2491 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2492 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2493 if test "$ac_test_CFLAGS" = set; then
2494   CFLAGS=$ac_save_CFLAGS
2495 elif test $ac_cv_prog_cc_g = yes; then
2496   if test "$GCC" = yes; then
2497     CFLAGS="-g -O2"
2498   else
2499     CFLAGS="-g"
2500   fi
2501 else
2502   if test "$GCC" = yes; then
2503     CFLAGS="-O2"
2504   else
2505     CFLAGS=
2506   fi
2507 fi
2508 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2509 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2510 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2511   echo $ECHO_N "(cached) $ECHO_C" >&6
2512 else
2513   ac_cv_prog_cc_stdc=no
2514 ac_save_CC=$CC
2515 cat >conftest.$ac_ext <<_ACEOF
2516 /* confdefs.h.  */
2517 _ACEOF
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h.  */
2521 #include <stdarg.h>
2522 #include <stdio.h>
2523 #include <sys/types.h>
2524 #include <sys/stat.h>
2525 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2526 struct buf { int x; };
2527 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2528 static char *e (p, i)
2529      char **p;
2530      int i;
2531 {
2532   return p[i];
2533 }
2534 static char *f (char * (*g) (char **, int), char **p, ...)
2535 {
2536   char *s;
2537   va_list v;
2538   va_start (v,p);
2539   s = g (p, va_arg (v,int));
2540   va_end (v);
2541   return s;
2542 }
2543
2544 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2545    function prototypes and stuff, but not '\xHH' hex character constants.
2546    These don't provoke an error unfortunately, instead are silently treated
2547    as 'x'.  The following induces an error, until -std1 is added to get
2548    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2549    array size at least.  It's necessary to write '\x00'==0 to get something
2550    that's true only with -std1.  */
2551 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2552
2553 int test (int i, double x);
2554 struct s1 {int (*f) (int a);};
2555 struct s2 {int (*f) (double a);};
2556 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2557 int argc;
2558 char **argv;
2559 int
2560 main ()
2561 {
2562 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2563   ;
2564   return 0;
2565 }
2566 _ACEOF
2567 # Don't try gcc -ansi; that turns off useful extensions and
2568 # breaks some systems' header files.
2569 # AIX                   -qlanglvl=ansi
2570 # Ultrix and OSF/1      -std1
2571 # HP-UX 10.20 and later -Ae
2572 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2573 # SVR4                  -Xc -D__EXTENSIONS__
2574 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2575 do
2576   CC="$ac_save_CC $ac_arg"
2577   rm -f conftest.$ac_objext
2578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2579   (eval $ac_compile) 2>conftest.er1
2580   ac_status=$?
2581   grep -v '^ *+' conftest.er1 >conftest.err
2582   rm -f conftest.er1
2583   cat conftest.err >&5
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); } &&
2586          { ac_try='test -z "$ac_c_werror_flag"
2587                          || test ! -s conftest.err'
2588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589   (eval $ac_try) 2>&5
2590   ac_status=$?
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); }; } &&
2593          { ac_try='test -s conftest.$ac_objext'
2594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595   (eval $ac_try) 2>&5
2596   ac_status=$?
2597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598   (exit $ac_status); }; }; then
2599   ac_cv_prog_cc_stdc=$ac_arg
2600 break
2601 else
2602   echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2604
2605 fi
2606 rm -f conftest.err conftest.$ac_objext
2607 done
2608 rm -f conftest.$ac_ext conftest.$ac_objext
2609 CC=$ac_save_CC
2610
2611 fi
2612
2613 case "x$ac_cv_prog_cc_stdc" in
2614   x|xno)
2615     echo "$as_me:$LINENO: result: none needed" >&5
2616 echo "${ECHO_T}none needed" >&6 ;;
2617   *)
2618     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2619 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2620     CC="$CC $ac_cv_prog_cc_stdc" ;;
2621 esac
2622
2623 # Some people use a C++ compiler to compile C.  Since we use `exit',
2624 # in C++ we need to declare it.  In case someone uses the same compiler
2625 # for both compiling C and C++ we need to have the C++ compiler decide
2626 # the declaration of exit, since it's the most demanding environment.
2627 cat >conftest.$ac_ext <<_ACEOF
2628 #ifndef __cplusplus
2629   choke me
2630 #endif
2631 _ACEOF
2632 rm -f conftest.$ac_objext
2633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2634   (eval $ac_compile) 2>conftest.er1
2635   ac_status=$?
2636   grep -v '^ *+' conftest.er1 >conftest.err
2637   rm -f conftest.er1
2638   cat conftest.err >&5
2639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640   (exit $ac_status); } &&
2641          { ac_try='test -z "$ac_c_werror_flag"
2642                          || test ! -s conftest.err'
2643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644   (eval $ac_try) 2>&5
2645   ac_status=$?
2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); }; } &&
2648          { ac_try='test -s conftest.$ac_objext'
2649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650   (eval $ac_try) 2>&5
2651   ac_status=$?
2652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653   (exit $ac_status); }; }; then
2654   for ac_declaration in \
2655    '' \
2656    'extern "C" void std::exit (int) throw (); using std::exit;' \
2657    'extern "C" void std::exit (int); using std::exit;' \
2658    'extern "C" void exit (int) throw ();' \
2659    'extern "C" void exit (int);' \
2660    'void exit (int);'
2661 do
2662   cat >conftest.$ac_ext <<_ACEOF
2663 /* confdefs.h.  */
2664 _ACEOF
2665 cat confdefs.h >>conftest.$ac_ext
2666 cat >>conftest.$ac_ext <<_ACEOF
2667 /* end confdefs.h.  */
2668 $ac_declaration
2669 #include <stdlib.h>
2670 int
2671 main ()
2672 {
2673 exit (42);
2674   ;
2675   return 0;
2676 }
2677 _ACEOF
2678 rm -f conftest.$ac_objext
2679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2680   (eval $ac_compile) 2>conftest.er1
2681   ac_status=$?
2682   grep -v '^ *+' conftest.er1 >conftest.err
2683   rm -f conftest.er1
2684   cat conftest.err >&5
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); } &&
2687          { ac_try='test -z "$ac_c_werror_flag"
2688                          || test ! -s conftest.err'
2689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690   (eval $ac_try) 2>&5
2691   ac_status=$?
2692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693   (exit $ac_status); }; } &&
2694          { ac_try='test -s conftest.$ac_objext'
2695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696   (eval $ac_try) 2>&5
2697   ac_status=$?
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); }; }; then
2700   :
2701 else
2702   echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2704
2705 continue
2706 fi
2707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2708   cat >conftest.$ac_ext <<_ACEOF
2709 /* confdefs.h.  */
2710 _ACEOF
2711 cat confdefs.h >>conftest.$ac_ext
2712 cat >>conftest.$ac_ext <<_ACEOF
2713 /* end confdefs.h.  */
2714 $ac_declaration
2715 int
2716 main ()
2717 {
2718 exit (42);
2719   ;
2720   return 0;
2721 }
2722 _ACEOF
2723 rm -f conftest.$ac_objext
2724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2725   (eval $ac_compile) 2>conftest.er1
2726   ac_status=$?
2727   grep -v '^ *+' conftest.er1 >conftest.err
2728   rm -f conftest.er1
2729   cat conftest.err >&5
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); } &&
2732          { ac_try='test -z "$ac_c_werror_flag"
2733                          || test ! -s conftest.err'
2734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735   (eval $ac_try) 2>&5
2736   ac_status=$?
2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738   (exit $ac_status); }; } &&
2739          { ac_try='test -s conftest.$ac_objext'
2740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741   (eval $ac_try) 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); }; }; then
2745   break
2746 else
2747   echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2749
2750 fi
2751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2752 done
2753 rm -f conftest*
2754 if test -n "$ac_declaration"; then
2755   echo '#ifdef __cplusplus' >>confdefs.h
2756   echo $ac_declaration      >>confdefs.h
2757   echo '#endif'             >>confdefs.h
2758 fi
2759
2760 else
2761   echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2763
2764 fi
2765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2766 ac_ext=c
2767 ac_cpp='$CPP $CPPFLAGS'
2768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2771
2772
2773
2774 # extra LD Flags which are required for targets
2775 case "${host}" in
2776   *-darwin*)
2777     # Darwin needs -single_module when linking libobjc
2778     extra_ldflags_libobjc=-Wl,-single_module
2779     ;;
2780 esac
2781
2782
2783
2784
2785 if test -n "$ac_tool_prefix"; then
2786   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2787 set dummy ${ac_tool_prefix}as; ac_word=$2
2788 echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2790 if test "${ac_cv_prog_AS+set}" = set; then
2791   echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793   if test -n "$AS"; then
2794   ac_cv_prog_AS="$AS" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799   IFS=$as_save_IFS
2800   test -z "$as_dir" && as_dir=.
2801   for ac_exec_ext in '' $ac_executable_extensions; do
2802   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803     ac_cv_prog_AS="${ac_tool_prefix}as"
2804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805     break 2
2806   fi
2807 done
2808 done
2809
2810 fi
2811 fi
2812 AS=$ac_cv_prog_AS
2813 if test -n "$AS"; then
2814   echo "$as_me:$LINENO: result: $AS" >&5
2815 echo "${ECHO_T}$AS" >&6
2816 else
2817   echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6
2819 fi
2820
2821 fi
2822 if test -z "$ac_cv_prog_AS"; then
2823   ac_ct_AS=$AS
2824   # Extract the first word of "as", so it can be a program name with args.
2825 set dummy as; ac_word=$2
2826 echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2828 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2829   echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831   if test -n "$ac_ct_AS"; then
2832   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837   IFS=$as_save_IFS
2838   test -z "$as_dir" && as_dir=.
2839   for ac_exec_ext in '' $ac_executable_extensions; do
2840   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841     ac_cv_prog_ac_ct_AS="as"
2842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843     break 2
2844   fi
2845 done
2846 done
2847
2848 fi
2849 fi
2850 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2851 if test -n "$ac_ct_AS"; then
2852   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2853 echo "${ECHO_T}$ac_ct_AS" >&6
2854 else
2855   echo "$as_me:$LINENO: result: no" >&5
2856 echo "${ECHO_T}no" >&6
2857 fi
2858
2859   AS=$ac_ct_AS
2860 else
2861   AS="$ac_cv_prog_AS"
2862 fi
2863
2864 if test -n "$ac_tool_prefix"; then
2865   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2866 set dummy ${ac_tool_prefix}ar; ac_word=$2
2867 echo "$as_me:$LINENO: checking for $ac_word" >&5
2868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2869 if test "${ac_cv_prog_AR+set}" = set; then
2870   echo $ECHO_N "(cached) $ECHO_C" >&6
2871 else
2872   if test -n "$AR"; then
2873   ac_cv_prog_AR="$AR" # Let the user override the test.
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2877 do
2878   IFS=$as_save_IFS
2879   test -z "$as_dir" && as_dir=.
2880   for ac_exec_ext in '' $ac_executable_extensions; do
2881   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882     ac_cv_prog_AR="${ac_tool_prefix}ar"
2883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884     break 2
2885   fi
2886 done
2887 done
2888
2889 fi
2890 fi
2891 AR=$ac_cv_prog_AR
2892 if test -n "$AR"; then
2893   echo "$as_me:$LINENO: result: $AR" >&5
2894 echo "${ECHO_T}$AR" >&6
2895 else
2896   echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6
2898 fi
2899
2900 fi
2901 if test -z "$ac_cv_prog_AR"; then
2902   ac_ct_AR=$AR
2903   # Extract the first word of "ar", so it can be a program name with args.
2904 set dummy ar; ac_word=$2
2905 echo "$as_me:$LINENO: checking for $ac_word" >&5
2906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2907 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2908   echo $ECHO_N "(cached) $ECHO_C" >&6
2909 else
2910   if test -n "$ac_ct_AR"; then
2911   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916   IFS=$as_save_IFS
2917   test -z "$as_dir" && as_dir=.
2918   for ac_exec_ext in '' $ac_executable_extensions; do
2919   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920     ac_cv_prog_ac_ct_AR="ar"
2921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2922     break 2
2923   fi
2924 done
2925 done
2926
2927 fi
2928 fi
2929 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2930 if test -n "$ac_ct_AR"; then
2931   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2932 echo "${ECHO_T}$ac_ct_AR" >&6
2933 else
2934   echo "$as_me:$LINENO: result: no" >&5
2935 echo "${ECHO_T}no" >&6
2936 fi
2937
2938   AR=$ac_ct_AR
2939 else
2940   AR="$ac_cv_prog_AR"
2941 fi
2942
2943 if test -n "$ac_tool_prefix"; then
2944   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2945 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2946 echo "$as_me:$LINENO: checking for $ac_word" >&5
2947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2948 if test "${ac_cv_prog_RANLIB+set}" = set; then
2949   echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951   if test -n "$RANLIB"; then
2952   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2956 do
2957   IFS=$as_save_IFS
2958   test -z "$as_dir" && as_dir=.
2959   for ac_exec_ext in '' $ac_executable_extensions; do
2960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2961     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963     break 2
2964   fi
2965 done
2966 done
2967
2968 fi
2969 fi
2970 RANLIB=$ac_cv_prog_RANLIB
2971 if test -n "$RANLIB"; then
2972   echo "$as_me:$LINENO: result: $RANLIB" >&5
2973 echo "${ECHO_T}$RANLIB" >&6
2974 else
2975   echo "$as_me:$LINENO: result: no" >&5
2976 echo "${ECHO_T}no" >&6
2977 fi
2978
2979 fi
2980 if test -z "$ac_cv_prog_RANLIB"; then
2981   ac_ct_RANLIB=$RANLIB
2982   # Extract the first word of "ranlib", so it can be a program name with args.
2983 set dummy ranlib; ac_word=$2
2984 echo "$as_me:$LINENO: checking for $ac_word" >&5
2985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2986 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2987   echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989   if test -n "$ac_ct_RANLIB"; then
2990   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995   IFS=$as_save_IFS
2996   test -z "$as_dir" && as_dir=.
2997   for ac_exec_ext in '' $ac_executable_extensions; do
2998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999     ac_cv_prog_ac_ct_RANLIB="ranlib"
3000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001     break 2
3002   fi
3003 done
3004 done
3005
3006   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3007 fi
3008 fi
3009 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3010 if test -n "$ac_ct_RANLIB"; then
3011   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3012 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3013 else
3014   echo "$as_me:$LINENO: result: no" >&5
3015 echo "${ECHO_T}no" >&6
3016 fi
3017
3018   RANLIB=$ac_ct_RANLIB
3019 else
3020   RANLIB="$ac_cv_prog_RANLIB"
3021 fi
3022
3023 # Find a good install program.  We prefer a C program (faster),
3024 # so one script is as good as another.  But avoid the broken or
3025 # incompatible versions:
3026 # SysV /etc/install, /usr/sbin/install
3027 # SunOS /usr/etc/install
3028 # IRIX /sbin/install
3029 # AIX /bin/install
3030 # AmigaOS /C/install, which installs bootblocks on floppy discs
3031 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3032 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3033 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3034 # OS/2's system install, which has a completely different semantic
3035 # ./install, which can be erroneously created by make from ./install.sh.
3036 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3037 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3038 if test -z "$INSTALL"; then
3039 if test "${ac_cv_path_install+set}" = set; then
3040   echo $ECHO_N "(cached) $ECHO_C" >&6
3041 else
3042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045   IFS=$as_save_IFS
3046   test -z "$as_dir" && as_dir=.
3047   # Account for people who put trailing slashes in PATH elements.
3048 case $as_dir/ in
3049   ./ | .// | /cC/* | \
3050   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3051   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3052   /usr/ucb/* ) ;;
3053   *)
3054     # OSF1 and SCO ODT 3.0 have their own names for install.
3055     # Don't use installbsd from OSF since it installs stuff as root
3056     # by default.
3057     for ac_prog in ginstall scoinst install; do
3058       for ac_exec_ext in '' $ac_executable_extensions; do
3059         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3060           if test $ac_prog = install &&
3061             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3062             # AIX install.  It has an incompatible calling convention.
3063             :
3064           elif test $ac_prog = install &&
3065             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3066             # program-specific install script used by HP pwplus--don't use.
3067             :
3068           else
3069             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3070             break 3
3071           fi
3072         fi
3073       done
3074     done
3075     ;;
3076 esac
3077 done
3078
3079
3080 fi
3081   if test "${ac_cv_path_install+set}" = set; then
3082     INSTALL=$ac_cv_path_install
3083   else
3084     # As a last resort, use the slow shell script.  We don't cache a
3085     # path for INSTALL within a source directory, because that will
3086     # break other packages using the cache if that directory is
3087     # removed, or if the path is relative.
3088     INSTALL=$ac_install_sh
3089   fi
3090 fi
3091 echo "$as_me:$LINENO: result: $INSTALL" >&5
3092 echo "${ECHO_T}$INSTALL" >&6
3093
3094 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3095 # It thinks the first close brace ends the variable substitution.
3096 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3097
3098 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3099
3100 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3101
3102
3103 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3104 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3105     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3106 if test "${enable_maintainer_mode+set}" = set; then
3107   enableval="$enable_maintainer_mode"
3108   USE_MAINTAINER_MODE=$enableval
3109 else
3110   USE_MAINTAINER_MODE=no
3111 fi;
3112   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3113 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3114
3115
3116 if test $USE_MAINTAINER_MODE = yes; then
3117   MAINTAINER_MODE_TRUE=
3118   MAINTAINER_MODE_FALSE='#'
3119 else
3120   MAINTAINER_MODE_TRUE='#'
3121   MAINTAINER_MODE_FALSE=
3122 fi
3123
3124   MAINT=$MAINTAINER_MODE_TRUE
3125
3126
3127
3128 # Enable Win32 DLL on MS Windows - FIXME
3129 enable_win32_dll=yes
3130
3131 case $host in
3132 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3133   if test -n "$ac_tool_prefix"; then
3134   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3135 set dummy ${ac_tool_prefix}as; ac_word=$2
3136 echo "$as_me:$LINENO: checking for $ac_word" >&5
3137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3138 if test "${ac_cv_prog_AS+set}" = set; then
3139   echo $ECHO_N "(cached) $ECHO_C" >&6
3140 else
3141   if test -n "$AS"; then
3142   ac_cv_prog_AS="$AS" # Let the user override the test.
3143 else
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 for as_dir in $PATH
3146 do
3147   IFS=$as_save_IFS
3148   test -z "$as_dir" && as_dir=.
3149   for ac_exec_ext in '' $ac_executable_extensions; do
3150   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3151     ac_cv_prog_AS="${ac_tool_prefix}as"
3152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3153     break 2
3154   fi
3155 done
3156 done
3157
3158 fi
3159 fi
3160 AS=$ac_cv_prog_AS
3161 if test -n "$AS"; then
3162   echo "$as_me:$LINENO: result: $AS" >&5
3163 echo "${ECHO_T}$AS" >&6
3164 else
3165   echo "$as_me:$LINENO: result: no" >&5
3166 echo "${ECHO_T}no" >&6
3167 fi
3168
3169 fi
3170 if test -z "$ac_cv_prog_AS"; then
3171   ac_ct_AS=$AS
3172   # Extract the first word of "as", so it can be a program name with args.
3173 set dummy as; ac_word=$2
3174 echo "$as_me:$LINENO: checking for $ac_word" >&5
3175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3176 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3177   echo $ECHO_N "(cached) $ECHO_C" >&6
3178 else
3179   if test -n "$ac_ct_AS"; then
3180   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3184 do
3185   IFS=$as_save_IFS
3186   test -z "$as_dir" && as_dir=.
3187   for ac_exec_ext in '' $ac_executable_extensions; do
3188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189     ac_cv_prog_ac_ct_AS="as"
3190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3191     break 2
3192   fi
3193 done
3194 done
3195
3196   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3197 fi
3198 fi
3199 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3200 if test -n "$ac_ct_AS"; then
3201   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3202 echo "${ECHO_T}$ac_ct_AS" >&6
3203 else
3204   echo "$as_me:$LINENO: result: no" >&5
3205 echo "${ECHO_T}no" >&6
3206 fi
3207
3208   AS=$ac_ct_AS
3209 else
3210   AS="$ac_cv_prog_AS"
3211 fi
3212
3213   if test -n "$ac_tool_prefix"; then
3214   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3215 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3216 echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3218 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   if test -n "$DLLTOOL"; then
3222   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3223 else
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3226 do
3227   IFS=$as_save_IFS
3228   test -z "$as_dir" && as_dir=.
3229   for ac_exec_ext in '' $ac_executable_extensions; do
3230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3231     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3233     break 2
3234   fi
3235 done
3236 done
3237
3238 fi
3239 fi
3240 DLLTOOL=$ac_cv_prog_DLLTOOL
3241 if test -n "$DLLTOOL"; then
3242   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3243 echo "${ECHO_T}$DLLTOOL" >&6
3244 else
3245   echo "$as_me:$LINENO: result: no" >&5
3246 echo "${ECHO_T}no" >&6
3247 fi
3248
3249 fi
3250 if test -z "$ac_cv_prog_DLLTOOL"; then
3251   ac_ct_DLLTOOL=$DLLTOOL
3252   # Extract the first word of "dlltool", so it can be a program name with args.
3253 set dummy dlltool; ac_word=$2
3254 echo "$as_me:$LINENO: checking for $ac_word" >&5
3255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3256 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3257   echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259   if test -n "$ac_ct_DLLTOOL"; then
3260   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3261 else
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH
3264 do
3265   IFS=$as_save_IFS
3266   test -z "$as_dir" && as_dir=.
3267   for ac_exec_ext in '' $ac_executable_extensions; do
3268   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3269     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3271     break 2
3272   fi
3273 done
3274 done
3275
3276   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3277 fi
3278 fi
3279 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3280 if test -n "$ac_ct_DLLTOOL"; then
3281   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3282 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3283 else
3284   echo "$as_me:$LINENO: result: no" >&5
3285 echo "${ECHO_T}no" >&6
3286 fi
3287
3288   DLLTOOL=$ac_ct_DLLTOOL
3289 else
3290   DLLTOOL="$ac_cv_prog_DLLTOOL"
3291 fi
3292
3293   if test -n "$ac_tool_prefix"; then
3294   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3295 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3296 echo "$as_me:$LINENO: checking for $ac_word" >&5
3297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3298 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3299   echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301   if test -n "$OBJDUMP"; then
3302   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3303 else
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH
3306 do
3307   IFS=$as_save_IFS
3308   test -z "$as_dir" && as_dir=.
3309   for ac_exec_ext in '' $ac_executable_extensions; do
3310   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3311     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3313     break 2
3314   fi
3315 done
3316 done
3317
3318 fi
3319 fi
3320 OBJDUMP=$ac_cv_prog_OBJDUMP
3321 if test -n "$OBJDUMP"; then
3322   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3323 echo "${ECHO_T}$OBJDUMP" >&6
3324 else
3325   echo "$as_me:$LINENO: result: no" >&5
3326 echo "${ECHO_T}no" >&6
3327 fi
3328
3329 fi
3330 if test -z "$ac_cv_prog_OBJDUMP"; then
3331   ac_ct_OBJDUMP=$OBJDUMP
3332   # Extract the first word of "objdump", so it can be a program name with args.
3333 set dummy objdump; ac_word=$2
3334 echo "$as_me:$LINENO: checking for $ac_word" >&5
3335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3336 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3337   echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339   if test -n "$ac_ct_OBJDUMP"; then
3340   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3341 else
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH
3344 do
3345   IFS=$as_save_IFS
3346   test -z "$as_dir" && as_dir=.
3347   for ac_exec_ext in '' $ac_executable_extensions; do
3348   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349     ac_cv_prog_ac_ct_OBJDUMP="objdump"
3350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3351     break 2
3352   fi
3353 done
3354 done
3355
3356   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3357 fi
3358 fi
3359 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3360 if test -n "$ac_ct_OBJDUMP"; then
3361   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3362 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3363 else
3364   echo "$as_me:$LINENO: result: no" >&5
3365 echo "${ECHO_T}no" >&6
3366 fi
3367
3368   OBJDUMP=$ac_ct_OBJDUMP
3369 else
3370   OBJDUMP="$ac_cv_prog_OBJDUMP"
3371 fi
3372
3373   ;;
3374 esac
3375
3376 test -z "$AS" && AS=as
3377
3378
3379
3380
3381
3382 test -z "$DLLTOOL" && DLLTOOL=dlltool
3383
3384
3385
3386
3387
3388 test -z "$OBJDUMP" && OBJDUMP=objdump
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399 macro_version='2.1a'
3400 macro_revision='1.2435'
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413 ltmain="$ac_aux_dir/ltmain.sh"
3414
3415 # Set options
3416
3417 enable_dlopen=no
3418
3419
3420
3421 # Check whether --enable-shared or --disable-shared was given.
3422 if test "${enable_shared+set}" = set; then
3423   enableval="$enable_shared"
3424   p=${PACKAGE-default}
3425     case $enableval in
3426     yes) enable_shared=yes ;;
3427     no) enable_shared=no ;;
3428     *)
3429       enable_shared=no
3430       # Look at the argument we got.  We use all the common list separators.
3431       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3432       for pkg in $enableval; do
3433         IFS="$lt_save_ifs"
3434         if test "X$pkg" = "X$p"; then
3435           enable_shared=yes
3436         fi
3437       done
3438       IFS="$lt_save_ifs"
3439       ;;
3440     esac
3441 else
3442   enable_shared=yes
3443 fi;
3444
3445
3446
3447
3448
3449
3450
3451
3452 # Check whether --enable-static or --disable-static was given.
3453 if test "${enable_static+set}" = set; then
3454   enableval="$enable_static"
3455   p=${PACKAGE-default}
3456     case $enableval in
3457     yes) enable_static=yes ;;
3458     no) enable_static=no ;;
3459     *)
3460      enable_static=no
3461       # Look at the argument we got.  We use all the common list separators.
3462       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3463       for pkg in $enableval; do
3464         IFS="$lt_save_ifs"
3465         if test "X$pkg" = "X$p"; then
3466           enable_static=yes
3467         fi
3468       done
3469       IFS="$lt_save_ifs"
3470       ;;
3471     esac
3472 else
3473   enable_static=yes
3474 fi;
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484 # Check whether --with-pic or --without-pic was given.
3485 if test "${with_pic+set}" = set; then
3486   withval="$with_pic"
3487   pic_mode="$withval"
3488 else
3489   pic_mode=default
3490 fi;
3491
3492 test -z "$pic_mode" && pic_mode=default
3493
3494
3495
3496
3497
3498
3499
3500 # Check whether --enable-fast-install or --disable-fast-install was given.
3501 if test "${enable_fast_install+set}" = set; then
3502   enableval="$enable_fast_install"
3503   p=${PACKAGE-default}
3504     case $enableval in
3505     yes) enable_fast_install=yes ;;
3506     no) enable_fast_install=no ;;
3507     *)
3508       enable_fast_install=no
3509       # Look at the argument we got.  We use all the common list separators.
3510       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3511       for pkg in $enableval; do
3512         IFS="$lt_save_ifs"
3513         if test "X$pkg" = "X$p"; then
3514           enable_fast_install=yes
3515         fi
3516       done
3517       IFS="$lt_save_ifs"
3518       ;;
3519     esac
3520 else
3521   enable_fast_install=yes
3522 fi;
3523
3524
3525
3526
3527
3528
3529
3530
3531 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3532 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3533 if test "${lt_cv_path_SED+set}" = set; then
3534   echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536   # Loop through the user's path and test for sed and gsed.
3537 # Then use that list of sed's as ones to test for truncation.
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 for as_dir in $PATH
3540 do
3541   IFS=$as_save_IFS
3542   test -z "$as_dir" && as_dir=.
3543   for lt_ac_prog in sed gsed; do
3544     for ac_exec_ext in '' $ac_executable_extensions; do
3545       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3546         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3547       fi
3548     done
3549   done
3550 done
3551 IFS=$as_save_IFS
3552 lt_ac_max=0
3553 lt_ac_count=0
3554 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3555 # along with /bin/sed that truncates output.
3556 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3557   test ! -f $lt_ac_sed && continue
3558   cat /dev/null > conftest.in
3559   lt_ac_count=0
3560   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3561   # Check for GNU sed and select it if it is found.
3562   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3563     lt_cv_path_SED=$lt_ac_sed
3564     break
3565   fi
3566   while true; do
3567     cat conftest.in conftest.in >conftest.tmp
3568     mv conftest.tmp conftest.in
3569     cp conftest.in conftest.nl
3570     echo >>conftest.nl
3571     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3572     cmp -s conftest.out conftest.nl || break
3573     # 10000 chars as input seems more than enough
3574     test $lt_ac_count -gt 10 && break
3575     lt_ac_count=`expr $lt_ac_count + 1`
3576     if test $lt_ac_count -gt $lt_ac_max; then
3577       lt_ac_max=$lt_ac_count
3578       lt_cv_path_SED=$lt_ac_sed
3579     fi
3580   done
3581 done
3582
3583 fi
3584
3585 SED=$lt_cv_path_SED
3586
3587 echo "$as_me:$LINENO: result: $SED" >&5
3588 echo "${ECHO_T}$SED" >&6
3589
3590 test -z "$SED" && SED=sed
3591 Xsed="$SED -e 1s/^X//"
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603 echo "$as_me:$LINENO: checking for egrep" >&5
3604 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3605 if test "${ac_cv_prog_egrep+set}" = set; then
3606   echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3609     then ac_cv_prog_egrep='grep -E'
3610     else ac_cv_prog_egrep='egrep'
3611     fi
3612 fi
3613 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3614 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3615  EGREP=$ac_cv_prog_egrep
3616
3617
3618 echo "$as_me:$LINENO: checking for fgrep" >&5
3619 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3620 if test "${ac_cv_prog_fgrep+set}" = set; then
3621   echo $ECHO_N "(cached) $ECHO_C" >&6
3622 else
3623   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3624     then ac_cv_prog_fgrep='grep -F'
3625     else ac_cv_prog_fgrep='fgrep'
3626     fi
3627 fi
3628 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3629 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3630  FGREP=$ac_cv_prog_fgrep
3631
3632
3633 test -z "$GREP" && GREP=grep
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3654 if test "${with_gnu_ld+set}" = set; then
3655   withval="$with_gnu_ld"
3656   test "$withval" = no || with_gnu_ld=yes
3657 else
3658   with_gnu_ld=no
3659 fi;
3660 ac_prog=ld
3661 if test "$GCC" = yes; then
3662   # Check if gcc -print-prog-name=ld gives a path.
3663   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3664 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3665   case $host in
3666   *-*-mingw*)
3667     # gcc leaves a trailing carriage return which upsets mingw
3668     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3669   *)
3670     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3671   esac
3672   case $ac_prog in
3673     # Accept absolute paths.
3674     [\\/]* | ?:[\\/]*)
3675       re_direlt='/[^/][^/]*/\.\./'
3676       # Canonicalize the pathname of ld
3677       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3678       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3679         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3680       done
3681       test -z "$LD" && LD="$ac_prog"
3682       ;;
3683   "")
3684     # If it fails, then pretend we aren't using GCC.
3685     ac_prog=ld
3686     ;;
3687   *)
3688     # If it is relative, then search for the first ld in PATH.
3689     with_gnu_ld=unknown
3690     ;;
3691   esac
3692 elif test "$with_gnu_ld" = yes; then
3693   echo "$as_me:$LINENO: checking for GNU ld" >&5
3694 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3695 else
3696   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3697 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3698 fi
3699 if test "${lt_cv_path_LD+set}" = set; then
3700   echo $ECHO_N "(cached) $ECHO_C" >&6
3701 else
3702   if test -z "$LD"; then
3703   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3704   for ac_dir in $PATH; do
3705     IFS="$lt_save_ifs"
3706     test -z "$ac_dir" && ac_dir=.
3707     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3708       lt_cv_path_LD="$ac_dir/$ac_prog"
3709       # Check to see if the program is GNU ld.  I'd rather use --version,
3710       # but apparently some variants of GNU ld only accept -v.
3711       # Break only if it was the GNU/non-GNU ld that we prefer.
3712       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3713       *GNU* | *'with BFD'*)
3714         test "$with_gnu_ld" != no && break
3715         ;;
3716       *)
3717         test "$with_gnu_ld" != yes && break
3718         ;;
3719       esac
3720     fi
3721   done
3722   IFS="$lt_save_ifs"
3723 else
3724   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3725 fi
3726 fi
3727
3728 LD="$lt_cv_path_LD"
3729 if test -n "$LD"; then
3730   echo "$as_me:$LINENO: result: $LD" >&5
3731 echo "${ECHO_T}$LD" >&6
3732 else
3733   echo "$as_me:$LINENO: result: no" >&5
3734 echo "${ECHO_T}no" >&6
3735 fi
3736 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3737 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3738    { (exit 1); exit 1; }; }
3739 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3740 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3741 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3742   echo $ECHO_N "(cached) $ECHO_C" >&6
3743 else
3744   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3745 case `$LD -v 2>&1 </dev/null` in
3746 *GNU* | *'with BFD'*)
3747   lt_cv_prog_gnu_ld=yes
3748   ;;
3749 *)
3750   lt_cv_prog_gnu_ld=no
3751   ;;
3752 esac
3753 fi
3754 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3755 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3756 with_gnu_ld=$lt_cv_prog_gnu_ld
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3768 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3769 if test "${lt_cv_path_NM+set}" = set; then
3770   echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772   if test -n "$NM"; then
3773   # Let the user override the test.
3774   lt_cv_path_NM="$NM"
3775 else
3776   lt_nm_to_check="${ac_tool_prefix}nm"
3777   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3778     lt_nm_to_check="$lt_nm_to_check nm"
3779   fi
3780   for lt_tmp_nm in $lt_nm_to_check; do
3781     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3782     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3783       IFS="$lt_save_ifs"
3784       test -z "$ac_dir" && ac_dir=.
3785       tmp_nm="$ac_dir/$lt_tmp_nm"
3786       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3787         # Check to see if the nm accepts a BSD-compat flag.
3788         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3789         #   nm: unknown option "B" ignored
3790         # Tru64's nm complains that /dev/null is an invalid object file
3791         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3792         */dev/null* | *'Invalid file or object type'*)
3793           lt_cv_path_NM="$tmp_nm -B"
3794           break
3795           ;;
3796         *)
3797           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3798           */dev/null*)
3799             lt_cv_path_NM="$tmp_nm -p"
3800             break
3801             ;;
3802           *)
3803             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3804             continue # so that we can try to find one that supports BSD flags
3805             ;;
3806           esac
3807           ;;
3808         esac
3809       fi
3810     done
3811     IFS="$lt_save_ifs"
3812   done
3813   : ${lt_cv_path_NM=no}
3814 fi
3815 fi
3816 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3817 echo "${ECHO_T}$lt_cv_path_NM" >&6
3818 if test "$lt_cv_path_NM" != "no"; then
3819   NM="$lt_cv_path_NM"
3820 else
3821   # Didn't find any BSD compatible name lister, look for dumpbin.
3822   if test -n "$ac_tool_prefix"; then
3823   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3824   do
3825     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3827 echo "$as_me:$LINENO: checking for $ac_word" >&5
3828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3829 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3830   echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832   if test -n "$DUMPBIN"; then
3833   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3834 else
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH
3837 do
3838   IFS=$as_save_IFS
3839   test -z "$as_dir" && as_dir=.
3840   for ac_exec_ext in '' $ac_executable_extensions; do
3841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3844     break 2
3845   fi
3846 done
3847 done
3848
3849 fi
3850 fi
3851 DUMPBIN=$ac_cv_prog_DUMPBIN
3852 if test -n "$DUMPBIN"; then
3853   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3854 echo "${ECHO_T}$DUMPBIN" >&6
3855 else
3856   echo "$as_me:$LINENO: result: no" >&5
3857 echo "${ECHO_T}no" >&6
3858 fi
3859
3860     test -n "$DUMPBIN" && break
3861   done
3862 fi
3863 if test -z "$DUMPBIN"; then
3864   ac_ct_DUMPBIN=$DUMPBIN
3865   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3866 do
3867   # Extract the first word of "$ac_prog", so it can be a program name with args.
3868 set dummy $ac_prog; ac_word=$2
3869 echo "$as_me:$LINENO: checking for $ac_word" >&5
3870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3871 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3872   echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874   if test -n "$ac_ct_DUMPBIN"; then
3875   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3876 else
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878 for as_dir in $PATH
3879 do
3880   IFS=$as_save_IFS
3881   test -z "$as_dir" && as_dir=.
3882   for ac_exec_ext in '' $ac_executable_extensions; do
3883   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3884     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3886     break 2
3887   fi
3888 done
3889 done
3890
3891 fi
3892 fi
3893 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3894 if test -n "$ac_ct_DUMPBIN"; then
3895   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3896 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3897 else
3898   echo "$as_me:$LINENO: result: no" >&5
3899 echo "${ECHO_T}no" >&6
3900 fi
3901
3902   test -n "$ac_ct_DUMPBIN" && break
3903 done
3904 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3905
3906   DUMPBIN=$ac_ct_DUMPBIN
3907 fi
3908
3909
3910   if test "$DUMPBIN" != ":"; then
3911     NM="$DUMPBIN"
3912   fi
3913 fi
3914 test -z "$NM" && NM=nm
3915
3916
3917
3918
3919
3920
3921 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3922 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3923 if test "${lt_cv_nm_interface+set}" = set; then
3924   echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926   lt_cv_nm_interface="BSD nm"
3927   echo "int some_variable = 0;" > conftest.$ac_ext
3928   (eval echo "\"\$as_me:3928: $ac_compile\"" >&5)
3929   (eval "$ac_compile" 2>conftest.err)
3930   cat conftest.err >&5
3931   (eval echo "\"\$as_me:3931: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3932   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3933   cat conftest.err >&5
3934   (eval echo "\"\$as_me:3934: output\"" >&5)
3935   cat conftest.out >&5
3936   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3937     lt_cv_nm_interface="MS dumpbin"
3938   fi
3939   rm -f conftest*
3940 fi
3941 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3942 echo "${ECHO_T}$lt_cv_nm_interface" >&6
3943
3944 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3945 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3946 LN_S=$as_ln_s
3947 if test "$LN_S" = "ln -s"; then
3948   echo "$as_me:$LINENO: result: yes" >&5
3949 echo "${ECHO_T}yes" >&6
3950 else
3951   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3952 echo "${ECHO_T}no, using $LN_S" >&6
3953 fi
3954
3955 # find the maximum length of command line arguments
3956 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3957 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3958 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3959   echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961     i=0
3962   teststring="ABCD"
3963
3964   case $build_os in
3965   msdosdjgpp*)
3966     # On DJGPP, this test can blow up pretty badly due to problems in libc
3967     # (any single argument exceeding 2000 bytes causes a buffer overrun
3968     # during glob expansion).  Even if it were fixed, the result of this
3969     # check would be larger than it should be.
3970     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3971     ;;
3972
3973   gnu*)
3974     # Under GNU Hurd, this test is not required because there is
3975     # no limit to the length of command line arguments.
3976     # Libtool will interpret -1 as no limit whatsoever
3977     lt_cv_sys_max_cmd_len=-1;
3978     ;;
3979
3980   cygwin* | mingw*)
3981     # On Win9x/ME, this test blows up -- it succeeds, but takes
3982     # about 5 minutes as the teststring grows exponentially.
3983     # Worse, since 9x/ME are not pre-emptively multitasking,
3984     # you end up with a "frozen" computer, even though with patience
3985     # the test eventually succeeds (with a max line length of 256k).
3986     # Instead, let's just punt: use the minimum linelength reported by
3987     # all of the supported platforms: 8192 (on NT/2K/XP).
3988     lt_cv_sys_max_cmd_len=8192;
3989     ;;
3990
3991   amigaos*)
3992     # On AmigaOS with pdksh, this test takes hours, literally.
3993     # So we just punt and use a minimum line length of 8192.
3994     lt_cv_sys_max_cmd_len=8192;
3995     ;;
3996
3997   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3998     # This has been around since 386BSD, at least.  Likely further.
3999     if test -x /sbin/sysctl; then
4000       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4001     elif test -x /usr/sbin/sysctl; then
4002       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4003     else
4004       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4005     fi
4006     # And add a safety zone
4007     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4008     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4009     ;;
4010
4011   interix*)
4012     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4013     lt_cv_sys_max_cmd_len=196608
4014     ;;
4015
4016   osf*)
4017     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4018     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4019     # nice to cause kernel panics so lets avoid the loop below.
4020     # First set a reasonable default.
4021     lt_cv_sys_max_cmd_len=16384
4022     #
4023     if test -x /sbin/sysconfig; then
4024       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4025         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4026       esac
4027     fi
4028     ;;
4029   sco3.2v5*)
4030     lt_cv_sys_max_cmd_len=102400
4031     ;;
4032   sysv5* | sco5v6* | sysv4.2uw2*)
4033     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4034     if test -n "$kargmax"; then
4035       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4036     else
4037       lt_cv_sys_max_cmd_len=32768
4038     fi
4039     ;;
4040   *)
4041     lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4042     if test -n $lt_cv_sys_max_cmd_len; then
4043       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4044       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4045     else
4046       # Make teststring a little bigger before we do anything with it.
4047       # a 1K string should be a reasonable start.
4048       for i in 1 2 3 4 5 6 7 8 ; do
4049         teststring=$teststring$teststring
4050       done
4051       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4052       # If test is not a shell built-in, we'll probably end up computing a
4053       # maximum length that is only half of the actual maximum length, but
4054       # we can't tell.
4055       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4056                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4057               test $i != 17 # 1/2 MB should be enough
4058       do
4059         i=`expr $i + 1`
4060         teststring=$teststring$teststring
4061       done
4062       # Only check the string length outside the loop.
4063       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4064       teststring=
4065       # Add a significant safety factor because C++ compilers can tack on
4066       # massive amounts of additional arguments before passing them to the
4067       # linker.  It appears as though 1/2 is a usable value.
4068       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4069     fi
4070     ;;
4071   esac
4072
4073 fi
4074
4075 if test -n $lt_cv_sys_max_cmd_len ; then
4076   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4077 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4078 else
4079   echo "$as_me:$LINENO: result: none" >&5
4080 echo "${ECHO_T}none" >&6
4081 fi
4082 max_cmd_len=$lt_cv_sys_max_cmd_len
4083
4084
4085
4086
4087
4088
4089
4090 : ${CP="cp -f"}
4091 : ${MV="mv -f"}
4092 : ${RM="rm -f"}
4093
4094 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4095 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4096 # Try some XSI features
4097 xsi_shell=no
4098 ( _lt_dummy="a/b/c"
4099   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4100       = c,a/b,, ) >/dev/null 2>&1 \
4101   && xsi_shell=yes
4102 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4103 echo "${ECHO_T}$xsi_shell" >&6
4104
4105
4106 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4107 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4108 lt_shell_append=no
4109 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4110     >/dev/null 2>&1 \
4111   && lt_shell_append=yes
4112 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4113 echo "${ECHO_T}$lt_shell_append" >&6
4114
4115
4116 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4117   lt_unset=unset
4118 else
4119   lt_unset=false
4120 fi
4121
4122
4123
4124
4125
4126 # test EBCDIC or ASCII
4127 case `echo X|tr X '\101'` in
4128  A) # ASCII based system
4129     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4130   lt_SP2NL='tr \040 \012'
4131   lt_NL2SP='tr \015\012 \040\040'
4132   ;;
4133  *) # EBCDIC based system
4134   lt_SP2NL='tr \100 \n'
4135   lt_NL2SP='tr \r\n \100\100'
4136   ;;
4137 esac
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4148 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4149 if test "${lt_cv_ld_reload_flag+set}" = set; then
4150   echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152   lt_cv_ld_reload_flag='-r'
4153 fi
4154 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4155 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4156 reload_flag=$lt_cv_ld_reload_flag
4157 case $reload_flag in
4158 "" | " "*) ;;
4159 *) reload_flag=" $reload_flag" ;;
4160 esac
4161 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4162 case $host_os in
4163   darwin*)
4164     if test "$GCC" = yes; then
4165       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4166     else
4167       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4168     fi
4169     ;;
4170 esac
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4182 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4183 if test "${lt_cv_deplibs_check_method+set}" = set; then
4184   echo $ECHO_N "(cached) $ECHO_C" >&6
4185 else
4186   lt_cv_file_magic_cmd='$MAGIC_CMD'
4187 lt_cv_file_magic_test_file=
4188 lt_cv_deplibs_check_method='unknown'
4189 # Need to set the preceding variable on all platforms that support
4190 # interlibrary dependencies.
4191 # 'none' -- dependencies not supported.
4192 # `unknown' -- same as none, but documents that we really don't know.
4193 # 'pass_all' -- all dependencies passed with no checks.
4194 # 'test_compile' -- check by making test program.
4195 # 'file_magic [[regex]]' -- check by looking for files in library path
4196 # which responds to the $file_magic_cmd with a given extended regex.
4197 # If you have `file' or equivalent on your system and you're not sure
4198 # whether `pass_all' will *always* work, you probably want this one.
4199
4200 case $host_os in
4201 aix4* | aix5*)
4202   lt_cv_deplibs_check_method=pass_all
4203   ;;
4204
4205 beos*)
4206   lt_cv_deplibs_check_method=pass_all
4207   ;;
4208
4209 bsdi[45]*)
4210   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4211   lt_cv_file_magic_cmd='/usr/bin/file -L'
4212   lt_cv_file_magic_test_file=/shlib/libc.so
4213   ;;
4214
4215 cygwin*)
4216   # func_win32_libid is a shell function defined in ltmain.sh
4217   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4218   lt_cv_file_magic_cmd='func_win32_libid'
4219   ;;
4220
4221 mingw* | pw32*)
4222   # Base MSYS/MinGW do not provide the 'file' command needed by
4223   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4224   # unless we find 'file', for example because we are cross-compiling.
4225   if ( file / ) >/dev/null 2>&1; then
4226     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4227     lt_cv_file_magic_cmd='func_win32_libid'
4228   else
4229     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4230     lt_cv_file_magic_cmd='$OBJDUMP -f'
4231   fi
4232   ;;
4233
4234 darwin* | rhapsody*)
4235   lt_cv_deplibs_check_method=pass_all
4236   ;;
4237
4238 freebsd* | dragonfly*)
4239   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4240     case $host_cpu in
4241     i*86 )
4242       # Not sure whether the presence of OpenBSD here was a mistake.
4243       # Let's accept both of them until this is cleared up.
4244       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4245       lt_cv_file_magic_cmd=/usr/bin/file
4246       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4247       ;;
4248     esac
4249   else
4250     lt_cv_deplibs_check_method=pass_all
4251   fi
4252   ;;
4253
4254 gnu*)
4255   lt_cv_deplibs_check_method=pass_all
4256   ;;
4257
4258 hpux10.20* | hpux11*)
4259   lt_cv_file_magic_cmd=/usr/bin/file
4260   case $host_cpu in
4261   ia64*)
4262     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4263     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4264     ;;
4265   hppa*64*)
4266     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]'
4267     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4268     ;;
4269   *)
4270     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4271     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4272     ;;
4273   esac
4274   ;;
4275
4276 interix[3-9]*)
4277   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4278   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4279   ;;
4280
4281 irix5* | irix6* | nonstopux*)
4282   case $LD in
4283   *-32|*"-32 ") libmagic=32-bit;;
4284   *-n32|*"-n32 ") libmagic=N32;;
4285   *-64|*"-64 ") libmagic=64-bit;;
4286   *) libmagic=never-match;;
4287   esac
4288   lt_cv_deplibs_check_method=pass_all
4289   ;;
4290
4291 # This must be Linux ELF.
4292 linux* | k*bsd*-gnu)
4293   lt_cv_deplibs_check_method=pass_all
4294   ;;
4295
4296 netbsd*)
4297   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4298     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4299   else
4300     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4301   fi
4302   ;;
4303
4304 newos6*)
4305   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4306   lt_cv_file_magic_cmd=/usr/bin/file
4307   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4308   ;;
4309
4310 *nto* | *qnx*)
4311   lt_cv_deplibs_check_method=pass_all
4312   ;;
4313
4314 openbsd*)
4315   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4316     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4317   else
4318     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4319   fi
4320   ;;
4321
4322 osf3* | osf4* | osf5*)
4323   lt_cv_deplibs_check_method=pass_all
4324   ;;
4325
4326 rdos*)
4327   lt_cv_deplibs_check_method=pass_all
4328   ;;
4329
4330 solaris*)
4331   lt_cv_deplibs_check_method=pass_all
4332   ;;
4333
4334 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4335   lt_cv_deplibs_check_method=pass_all
4336   ;;
4337
4338 sysv4 | sysv4.3*)
4339   case $host_vendor in
4340   motorola)
4341     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]'
4342     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4343     ;;
4344   ncr)
4345     lt_cv_deplibs_check_method=pass_all
4346     ;;
4347   sequent)
4348     lt_cv_file_magic_cmd='/bin/file'
4349     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4350     ;;
4351   sni)
4352     lt_cv_file_magic_cmd='/bin/file'
4353     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4354     lt_cv_file_magic_test_file=/lib/libc.so
4355     ;;
4356   siemens)
4357     lt_cv_deplibs_check_method=pass_all
4358     ;;
4359   pc)
4360     lt_cv_deplibs_check_method=pass_all
4361     ;;
4362   esac
4363   ;;
4364
4365 tpf*)
4366   lt_cv_deplibs_check_method=pass_all
4367   ;;
4368 esac
4369
4370 fi
4371 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4372 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4373 file_magic_cmd=$lt_cv_file_magic_cmd
4374 deplibs_check_method=$lt_cv_deplibs_check_method
4375 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388 if test -n "$ac_tool_prefix"; then
4389   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4390 set dummy ${ac_tool_prefix}ar; ac_word=$2
4391 echo "$as_me:$LINENO: checking for $ac_word" >&5
4392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4393 if test "${ac_cv_prog_AR+set}" = set; then
4394   echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396   if test -n "$AR"; then
4397   ac_cv_prog_AR="$AR" # Let the user override the test.
4398 else
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4401 do
4402   IFS=$as_save_IFS
4403   test -z "$as_dir" && as_dir=.
4404   for ac_exec_ext in '' $ac_executable_extensions; do
4405   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4406     ac_cv_prog_AR="${ac_tool_prefix}ar"
4407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408     break 2
4409   fi
4410 done
4411 done
4412
4413 fi
4414 fi
4415 AR=$ac_cv_prog_AR
4416 if test -n "$AR"; then
4417   echo "$as_me:$LINENO: result: $AR" >&5
4418 echo "${ECHO_T}$AR" >&6
4419 else
4420   echo "$as_me:$LINENO: result: no" >&5
4421 echo "${ECHO_T}no" >&6
4422 fi
4423
4424 fi
4425 if test -z "$ac_cv_prog_AR"; then
4426   ac_ct_AR=$AR
4427   # Extract the first word of "ar", so it can be a program name with args.
4428 set dummy ar; ac_word=$2
4429 echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4431 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4432   echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434   if test -n "$ac_ct_AR"; then
4435   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4436 else
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4439 do
4440   IFS=$as_save_IFS
4441   test -z "$as_dir" && as_dir=.
4442   for ac_exec_ext in '' $ac_executable_extensions; do
4443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4444     ac_cv_prog_ac_ct_AR="ar"
4445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446     break 2
4447   fi
4448 done
4449 done
4450
4451   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4452 fi
4453 fi
4454 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4455 if test -n "$ac_ct_AR"; then
4456   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4457 echo "${ECHO_T}$ac_ct_AR" >&6
4458 else
4459   echo "$as_me:$LINENO: result: no" >&5
4460 echo "${ECHO_T}no" >&6
4461 fi
4462
4463   AR=$ac_ct_AR
4464 else
4465   AR="$ac_cv_prog_AR"
4466 fi
4467
4468 test -z "$AR" && AR=ar
4469 test -z "$AR_FLAGS" && AR_FLAGS=cru
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481 if test -n "$ac_tool_prefix"; then
4482   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4483 set dummy ${ac_tool_prefix}strip; ac_word=$2
4484 echo "$as_me:$LINENO: checking for $ac_word" >&5
4485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4486 if test "${ac_cv_prog_STRIP+set}" = set; then
4487   echo $ECHO_N "(cached) $ECHO_C" >&6
4488 else
4489   if test -n "$STRIP"; then
4490   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4491 else
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH
4494 do
4495   IFS=$as_save_IFS
4496   test -z "$as_dir" && as_dir=.
4497   for ac_exec_ext in '' $ac_executable_extensions; do
4498   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4499     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501     break 2
4502   fi
4503 done
4504 done
4505
4506 fi
4507 fi
4508 STRIP=$ac_cv_prog_STRIP
4509 if test -n "$STRIP"; then
4510   echo "$as_me:$LINENO: result: $STRIP" >&5
4511 echo "${ECHO_T}$STRIP" >&6
4512 else
4513   echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6
4515 fi
4516
4517 fi
4518 if test -z "$ac_cv_prog_STRIP"; then
4519   ac_ct_STRIP=$STRIP
4520   # Extract the first word of "strip", so it can be a program name with args.
4521 set dummy strip; ac_word=$2
4522 echo "$as_me:$LINENO: checking for $ac_word" >&5
4523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4524 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4525   echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527   if test -n "$ac_ct_STRIP"; then
4528   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4529 else
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH
4532 do
4533   IFS=$as_save_IFS
4534   test -z "$as_dir" && as_dir=.
4535   for ac_exec_ext in '' $ac_executable_extensions; do
4536   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4537     ac_cv_prog_ac_ct_STRIP="strip"
4538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4539     break 2
4540   fi
4541 done
4542 done
4543
4544   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4545 fi
4546 fi
4547 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4548 if test -n "$ac_ct_STRIP"; then
4549   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4550 echo "${ECHO_T}$ac_ct_STRIP" >&6
4551 else
4552   echo "$as_me:$LINENO: result: no" >&5
4553 echo "${ECHO_T}no" >&6
4554 fi
4555
4556   STRIP=$ac_ct_STRIP
4557 else
4558   STRIP="$ac_cv_prog_STRIP"
4559 fi
4560
4561 test -z "$STRIP" && STRIP=:
4562
4563
4564
4565
4566
4567
4568 if test -n "$ac_tool_prefix"; then
4569   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4570 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4571 echo "$as_me:$LINENO: checking for $ac_word" >&5
4572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4573 if test "${ac_cv_prog_RANLIB+set}" = set; then
4574   echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576   if test -n "$RANLIB"; then
4577   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4578 else
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4581 do
4582   IFS=$as_save_IFS
4583   test -z "$as_dir" && as_dir=.
4584   for ac_exec_ext in '' $ac_executable_extensions; do
4585   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4586     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588     break 2
4589   fi
4590 done
4591 done
4592
4593 fi
4594 fi
4595 RANLIB=$ac_cv_prog_RANLIB
4596 if test -n "$RANLIB"; then
4597   echo "$as_me:$LINENO: result: $RANLIB" >&5
4598 echo "${ECHO_T}$RANLIB" >&6
4599 else
4600   echo "$as_me:$LINENO: result: no" >&5
4601 echo "${ECHO_T}no" >&6
4602 fi
4603
4604 fi
4605 if test -z "$ac_cv_prog_RANLIB"; then
4606   ac_ct_RANLIB=$RANLIB
4607   # Extract the first word of "ranlib", so it can be a program name with args.
4608 set dummy ranlib; ac_word=$2
4609 echo "$as_me:$LINENO: checking for $ac_word" >&5
4610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4611 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4612   echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614   if test -n "$ac_ct_RANLIB"; then
4615   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4619 do
4620   IFS=$as_save_IFS
4621   test -z "$as_dir" && as_dir=.
4622   for ac_exec_ext in '' $ac_executable_extensions; do
4623   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624     ac_cv_prog_ac_ct_RANLIB="ranlib"
4625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626     break 2
4627   fi
4628 done
4629 done
4630
4631   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4632 fi
4633 fi
4634 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4635 if test -n "$ac_ct_RANLIB"; then
4636   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4637 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4638 else
4639   echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6
4641 fi
4642
4643   RANLIB=$ac_ct_RANLIB
4644 else
4645   RANLIB="$ac_cv_prog_RANLIB"
4646 fi
4647
4648 test -z "$RANLIB" && RANLIB=:
4649
4650
4651
4652
4653
4654
4655 # Determine commands to create old-style static archives.
4656 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4657 old_postinstall_cmds='chmod 644 $oldlib'
4658 old_postuninstall_cmds=
4659
4660 if test -n "$RANLIB"; then
4661   case $host_os in
4662   openbsd*)
4663     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4664     ;;
4665   *)
4666     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4667     ;;
4668   esac
4669   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4670 fi
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705 # If no C compiler was specified, use CC.
4706 LTCC=${LTCC-"$CC"}
4707
4708 # If no C compiler flags were specified, use CFLAGS.
4709 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4710
4711 # Allow CC to be a program name with arguments.
4712 compiler=$CC
4713
4714
4715 # Check for command to grab the raw symbol name followed by C symbol from nm.
4716 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4717 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4718 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4719   echo $ECHO_N "(cached) $ECHO_C" >&6
4720 else
4721
4722 # These are sane defaults that work on at least a few old systems.
4723 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4724
4725 # Character class describing NM global symbol codes.
4726 symcode='[BCDEGRST]'
4727
4728 # Regexp to match symbols that can be accessed directly from C.
4729 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4730
4731 # Define system-specific variables.
4732 case $host_os in
4733 aix*)
4734   symcode='[BCDT]'
4735   ;;
4736 cygwin* | mingw* | pw32*)
4737   symcode='[ABCDGISTW]'
4738   ;;
4739 hpux*)
4740   if test "$host_cpu" = ia64; then
4741     symcode='[ABCDEGRST]'
4742   fi
4743   ;;
4744 irix* | nonstopux*)
4745   symcode='[BCDEGRST]'
4746   ;;
4747 osf*)
4748   symcode='[BCDEGQRST]'
4749   ;;
4750 solaris*)
4751   symcode='[BDRT]'
4752   ;;
4753 sco3.2v5*)
4754   symcode='[DT]'
4755   ;;
4756 sysv4.2uw2*)
4757   symcode='[DT]'
4758   ;;
4759 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4760   symcode='[ABDT]'
4761   ;;
4762 sysv4)
4763   symcode='[DFNSTU]'
4764   ;;
4765 esac
4766
4767 # If we're using GNU nm, then use its standard symbol codes.
4768 case `$NM -V 2>&1` in
4769 *GNU* | *'with BFD'*)
4770   symcode='[ABCDGIRSTW]' ;;
4771 esac
4772
4773 # Transform an extracted symbol line into a proper C declaration.
4774 # Some systems (esp. on ia64) link data and code symbols differently,
4775 # so use this general approach.
4776 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4777
4778 # Transform an extracted symbol line into symbol name and symbol address
4779 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4780
4781 # Handle CRLF in mingw tool chain
4782 opt_cr=
4783 case $build_os in
4784 mingw*)
4785   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4786   ;;
4787 esac
4788
4789 # Try without a prefix underscore, then with it.
4790 for ac_symprfx in "" "_"; do
4791
4792   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4793   symxfrm="\\1 $ac_symprfx\\2 \\2"
4794
4795   # Write the raw and C identifiers.
4796   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4797     # Fake it for dumpbin and say T for any non-static function
4798     # and D for any global variable.
4799     # Also find C++ and __fastcall symbols from MSVC++,
4800     # which start with @ or ?.
4801     lt_cv_sys_global_symbol_pipe="$AWK '"\
4802 "     {last_section=section; section=\$ 3};"\
4803 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4804 "     \$ 0!~/External *\|/{next};"\
4805 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4806 "     {if(hide[section]) next};"\
4807 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4808 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4809 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4810 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4811 "     ' prfx=^$ac_symprfx"
4812   else
4813     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4814   fi
4815
4816   # Check to see that the pipe works correctly.
4817   pipe_works=no
4818
4819   rm -f conftest*
4820   cat > conftest.$ac_ext <<_LT_EOF
4821 #ifdef __cplusplus
4822 extern "C" {
4823 #endif
4824 char nm_test_var;
4825 void nm_test_func(void);
4826 void nm_test_func(void){}
4827 #ifdef __cplusplus
4828 }
4829 #endif
4830 int main(){nm_test_var='a';nm_test_func();return(0);}
4831 _LT_EOF
4832
4833   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4834   (eval $ac_compile) 2>&5
4835   ac_status=$?
4836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837   (exit $ac_status); }; then
4838     # Now try to grab the symbols.
4839     nlist=conftest.nm
4840     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4841   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4842   ac_status=$?
4843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844   (exit $ac_status); } && test -s "$nlist"; then
4845       # Try sorting and uniquifying the output.
4846       if sort "$nlist" | uniq > "$nlist"T; then
4847         mv -f "$nlist"T "$nlist"
4848       else
4849         rm -f "$nlist"T
4850       fi
4851
4852       # Make sure that we snagged all the symbols we need.
4853       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4854         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4855           cat <<_LT_EOF > conftest.$ac_ext
4856 #ifdef __cplusplus
4857 extern "C" {
4858 #endif
4859
4860 _LT_EOF
4861           # Now generate the symbol file.
4862           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4863
4864           cat <<_LT_EOF >> conftest.$ac_ext
4865
4866 /* The mapping between symbol names and symbols.  */
4867 const struct {
4868   const char *name;
4869   void       *address;
4870 }
4871 lt__PROGRAM__LTX_preloaded_symbols[] =
4872 {
4873   { "@PROGRAM@", (void *) 0 },
4874 _LT_EOF
4875           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4876           cat <<\_LT_EOF >> conftest.$ac_ext
4877   {0, (void *) 0}
4878 };
4879
4880 /* This works around a problem in FreeBSD linker */
4881 #ifdef FREEBSD_WORKAROUND
4882 static const void *lt_preloaded_setup() {
4883   return lt__PROGRAM__LTX_preloaded_symbols;
4884 }
4885 #endif
4886
4887 #ifdef __cplusplus
4888 }
4889 #endif
4890 _LT_EOF
4891           # Now try linking the two files.
4892           mv conftest.$ac_objext conftstm.$ac_objext
4893           lt_save_LIBS="$LIBS"
4894           lt_save_CFLAGS="$CFLAGS"
4895           LIBS="conftstm.$ac_objext"
4896           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4897           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4898   (eval $ac_link) 2>&5
4899   ac_status=$?
4900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901   (exit $ac_status); } && test -s conftest${ac_exeext}; then
4902             pipe_works=yes
4903           fi
4904           LIBS="$lt_save_LIBS"
4905           CFLAGS="$lt_save_CFLAGS"
4906         else
4907           echo "cannot find nm_test_func in $nlist" >&5
4908         fi
4909       else
4910         echo "cannot find nm_test_var in $nlist" >&5
4911       fi
4912     else
4913       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4914     fi
4915   else
4916     echo "$progname: failed program was:" >&5
4917     cat conftest.$ac_ext >&5
4918   fi
4919   rm -f conftest* conftst*
4920
4921   # Do not use the global_symbol_pipe unless it works.
4922   if test "$pipe_works" = yes; then
4923     break
4924   else
4925     lt_cv_sys_global_symbol_pipe=
4926   fi
4927 done
4928
4929 fi
4930
4931 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4932   lt_cv_sys_global_symbol_to_cdecl=
4933 fi
4934 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4935   echo "$as_me:$LINENO: result: failed" >&5
4936 echo "${ECHO_T}failed" >&6
4937 else
4938   echo "$as_me:$LINENO: result: ok" >&5
4939 echo "${ECHO_T}ok" >&6
4940 fi
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4960 if test "${enable_libtool_lock+set}" = set; then
4961   enableval="$enable_libtool_lock"
4962
4963 fi;
4964 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4965
4966 # Some flags need to be propagated to the compiler or linker for good
4967 # libtool support.
4968 case $host in
4969 ia64-*-hpux*)
4970   # Find out which ABI we are using.
4971   echo 'int i;' > conftest.$ac_ext
4972   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4973   (eval $ac_compile) 2>&5
4974   ac_status=$?
4975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976   (exit $ac_status); }; then
4977     case `/usr/bin/file conftest.$ac_objext` in
4978       *ELF-32*)
4979         HPUX_IA64_MODE="32"
4980         ;;
4981       *ELF-64*)
4982         HPUX_IA64_MODE="64"
4983         ;;
4984     esac
4985   fi
4986   rm -rf conftest*
4987   ;;
4988 *-*-irix6*)
4989   # Find out which ABI we are using.
4990   echo '#line 4990 "configure"' > conftest.$ac_ext
4991   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4992   (eval $ac_compile) 2>&5
4993   ac_status=$?
4994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995   (exit $ac_status); }; then
4996     if test "$lt_cv_prog_gnu_ld" = yes; then
4997       case `/usr/bin/file conftest.$ac_objext` in
4998         *32-bit*)
4999           LD="${LD-ld} -melf32bsmip"
5000           ;;
5001         *N32*)
5002           LD="${LD-ld} -melf32bmipn32"
5003           ;;
5004         *64-bit*)
5005           LD="${LD-ld} -melf64bmip"
5006         ;;
5007       esac
5008     else
5009       case `/usr/bin/file conftest.$ac_objext` in
5010         *32-bit*)
5011           LD="${LD-ld} -32"
5012           ;;
5013         *N32*)
5014           LD="${LD-ld} -n32"
5015           ;;
5016         *64-bit*)
5017           LD="${LD-ld} -64"
5018           ;;
5019       esac
5020     fi
5021   fi
5022   rm -rf conftest*
5023   ;;
5024
5025 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5026 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5027   # Find out which ABI we are using.
5028   echo 'int i;' > conftest.$ac_ext
5029   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5030   (eval $ac_compile) 2>&5
5031   ac_status=$?
5032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033   (exit $ac_status); }; then
5034     case `/usr/bin/file conftest.o` in
5035       *32-bit*)
5036         case $host in
5037           x86_64-*kfreebsd*-gnu)
5038             LD="${LD-ld} -m elf_i386_fbsd"
5039             ;;
5040           x86_64-*linux*)
5041             LD="${LD-ld} -m elf_i386"
5042             ;;
5043           ppc64-*linux*|powerpc64-*linux*)
5044             LD="${LD-ld} -m elf32ppclinux"
5045             ;;
5046           s390x-*linux*)
5047             LD="${LD-ld} -m elf_s390"
5048             ;;
5049           sparc64-*linux*)
5050             LD="${LD-ld} -m elf32_sparc"
5051             ;;
5052         esac
5053         ;;
5054       *64-bit*)
5055         case $host in
5056           x86_64-*kfreebsd*-gnu)
5057             LD="${LD-ld} -m elf_x86_64_fbsd"
5058             ;;
5059           x86_64-*linux*)
5060             LD="${LD-ld} -m elf_x86_64"
5061             ;;
5062           ppc*-*linux*|powerpc*-*linux*)
5063             LD="${LD-ld} -m elf64ppc"
5064             ;;
5065           s390*-*linux*|s390*-*tpf*)
5066             LD="${LD-ld} -m elf64_s390"
5067             ;;
5068           sparc*-*linux*)
5069             LD="${LD-ld} -m elf64_sparc"
5070             ;;
5071         esac
5072         ;;
5073     esac
5074   fi
5075   rm -rf conftest*
5076   ;;
5077
5078 *-*-sco3.2v5*)
5079   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5080   SAVE_CFLAGS="$CFLAGS"
5081   CFLAGS="$CFLAGS -belf"
5082   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5083 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5084 if test "${lt_cv_cc_needs_belf+set}" = set; then
5085   echo $ECHO_N "(cached) $ECHO_C" >&6
5086 else
5087   ac_ext=c
5088 ac_cpp='$CPP $CPPFLAGS'
5089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5092
5093      if test x$gcc_no_link = xyes; then
5094   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5095 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5096    { (exit 1); exit 1; }; }
5097 fi
5098 cat >conftest.$ac_ext <<_ACEOF
5099 /* confdefs.h.  */
5100 _ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h.  */
5104
5105 int
5106 main ()
5107 {
5108
5109   ;
5110   return 0;
5111 }
5112 _ACEOF
5113 rm -f conftest.$ac_objext conftest$ac_exeext
5114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5115   (eval $ac_link) 2>conftest.er1
5116   ac_status=$?
5117   grep -v '^ *+' conftest.er1 >conftest.err
5118   rm -f conftest.er1
5119   cat conftest.err >&5
5120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121   (exit $ac_status); } &&
5122          { ac_try='test -z "$ac_c_werror_flag"
5123                          || test ! -s conftest.err'
5124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125   (eval $ac_try) 2>&5
5126   ac_status=$?
5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128   (exit $ac_status); }; } &&
5129          { ac_try='test -s conftest$ac_exeext'
5130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131   (eval $ac_try) 2>&5
5132   ac_status=$?
5133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134   (exit $ac_status); }; }; then
5135   lt_cv_cc_needs_belf=yes
5136 else
5137   echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5139
5140 lt_cv_cc_needs_belf=no
5141 fi
5142 rm -f conftest.err conftest.$ac_objext \
5143       conftest$ac_exeext conftest.$ac_ext
5144      ac_ext=c
5145 ac_cpp='$CPP $CPPFLAGS'
5146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5149
5150 fi
5151 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5152 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5153   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5154     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5155     CFLAGS="$SAVE_CFLAGS"
5156   fi
5157   ;;
5158 sparc*-*solaris*)
5159   # Find out which ABI we are using.
5160   echo 'int i;' > conftest.$ac_ext
5161   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5162   (eval $ac_compile) 2>&5
5163   ac_status=$?
5164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165   (exit $ac_status); }; then
5166     case `/usr/bin/file conftest.o` in
5167     *64-bit*)
5168       case $lt_cv_prog_gnu_ld in
5169       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5170       *)    LD="${LD-ld} -64" ;;
5171       esac
5172       ;;
5173     esac
5174   fi
5175   rm -rf conftest*
5176   ;;
5177 esac
5178
5179 need_locks="$enable_libtool_lock"
5180
5181 ac_ext=c
5182 ac_cpp='$CPP $CPPFLAGS'
5183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5186 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5187 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5188 # On Suns, sometimes $CPP names a directory.
5189 if test -n "$CPP" && test -d "$CPP"; then
5190   CPP=
5191 fi
5192 if test -z "$CPP"; then
5193   if test "${ac_cv_prog_CPP+set}" = set; then
5194   echo $ECHO_N "(cached) $ECHO_C" >&6
5195 else
5196       # Double quotes because CPP needs to be expanded
5197     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5198     do
5199       ac_preproc_ok=false
5200 for ac_c_preproc_warn_flag in '' yes
5201 do
5202   # Use a header file that comes with gcc, so configuring glibc
5203   # with a fresh cross-compiler works.
5204   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5205   # <limits.h> exists even on freestanding compilers.
5206   # On the NeXT, cc -E runs the code through the compiler's parser,
5207   # not just through cpp. "Syntax error" is here to catch this case.
5208   cat >conftest.$ac_ext <<_ACEOF
5209 /* confdefs.h.  */
5210 _ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h.  */
5214 #ifdef __STDC__
5215 # include <limits.h>
5216 #else
5217 # include <assert.h>
5218 #endif
5219                      Syntax error
5220 _ACEOF
5221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5222   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5223   ac_status=$?
5224   grep -v '^ *+' conftest.er1 >conftest.err
5225   rm -f conftest.er1
5226   cat conftest.err >&5
5227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228   (exit $ac_status); } >/dev/null; then
5229   if test -s conftest.err; then
5230     ac_cpp_err=$ac_c_preproc_warn_flag
5231     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5232   else
5233     ac_cpp_err=
5234   fi
5235 else
5236   ac_cpp_err=yes
5237 fi
5238 if test -z "$ac_cpp_err"; then
5239   :
5240 else
5241   echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5243
5244   # Broken: fails on valid input.
5245 continue
5246 fi
5247 rm -f conftest.err conftest.$ac_ext
5248
5249   # OK, works on sane cases.  Now check whether non-existent headers
5250   # can be detected and how.
5251   cat >conftest.$ac_ext <<_ACEOF
5252 /* confdefs.h.  */
5253 _ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h.  */
5257 #include <ac_nonexistent.h>
5258 _ACEOF
5259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5260   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5261   ac_status=$?
5262   grep -v '^ *+' conftest.er1 >conftest.err
5263   rm -f conftest.er1
5264   cat conftest.err >&5
5265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266   (exit $ac_status); } >/dev/null; then
5267   if test -s conftest.err; then
5268     ac_cpp_err=$ac_c_preproc_warn_flag
5269     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5270   else
5271     ac_cpp_err=
5272   fi
5273 else
5274   ac_cpp_err=yes
5275 fi
5276 if test -z "$ac_cpp_err"; then
5277   # Broken: success on invalid input.
5278 continue
5279 else
5280   echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5282
5283   # Passes both tests.
5284 ac_preproc_ok=:
5285 break
5286 fi
5287 rm -f conftest.err conftest.$ac_ext
5288
5289 done
5290 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5291 rm -f conftest.err conftest.$ac_ext
5292 if $ac_preproc_ok; then
5293   break
5294 fi
5295
5296     done
5297     ac_cv_prog_CPP=$CPP
5298
5299 fi
5300   CPP=$ac_cv_prog_CPP
5301 else
5302   ac_cv_prog_CPP=$CPP
5303 fi
5304 echo "$as_me:$LINENO: result: $CPP" >&5
5305 echo "${ECHO_T}$CPP" >&6
5306 ac_preproc_ok=false
5307 for ac_c_preproc_warn_flag in '' yes
5308 do
5309   # Use a header file that comes with gcc, so configuring glibc
5310   # with a fresh cross-compiler works.
5311   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5312   # <limits.h> exists even on freestanding compilers.
5313   # On the NeXT, cc -E runs the code through the compiler's parser,
5314   # not just through cpp. "Syntax error" is here to catch this case.
5315   cat >conftest.$ac_ext <<_ACEOF
5316 /* confdefs.h.  */
5317 _ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h.  */
5321 #ifdef __STDC__
5322 # include <limits.h>
5323 #else
5324 # include <assert.h>
5325 #endif
5326                      Syntax error
5327 _ACEOF
5328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5329   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5330   ac_status=$?
5331   grep -v '^ *+' conftest.er1 >conftest.err
5332   rm -f conftest.er1
5333   cat conftest.err >&5
5334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335   (exit $ac_status); } >/dev/null; then
5336   if test -s conftest.err; then
5337     ac_cpp_err=$ac_c_preproc_warn_flag
5338     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5339   else
5340     ac_cpp_err=
5341   fi
5342 else
5343   ac_cpp_err=yes
5344 fi
5345 if test -z "$ac_cpp_err"; then
5346   :
5347 else
5348   echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5350
5351   # Broken: fails on valid input.
5352 continue
5353 fi
5354 rm -f conftest.err conftest.$ac_ext
5355
5356   # OK, works on sane cases.  Now check whether non-existent headers
5357   # can be detected and how.
5358   cat >conftest.$ac_ext <<_ACEOF
5359 /* confdefs.h.  */
5360 _ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h.  */
5364 #include <ac_nonexistent.h>
5365 _ACEOF
5366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5367   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5368   ac_status=$?
5369   grep -v '^ *+' conftest.er1 >conftest.err
5370   rm -f conftest.er1
5371   cat conftest.err >&5
5372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373   (exit $ac_status); } >/dev/null; then
5374   if test -s conftest.err; then
5375     ac_cpp_err=$ac_c_preproc_warn_flag
5376     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5377   else
5378     ac_cpp_err=
5379   fi
5380 else
5381   ac_cpp_err=yes
5382 fi
5383 if test -z "$ac_cpp_err"; then
5384   # Broken: success on invalid input.
5385 continue
5386 else
5387   echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5389
5390   # Passes both tests.
5391 ac_preproc_ok=:
5392 break
5393 fi
5394 rm -f conftest.err conftest.$ac_ext
5395
5396 done
5397 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5398 rm -f conftest.err conftest.$ac_ext
5399 if $ac_preproc_ok; then
5400   :
5401 else
5402   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5403 See \`config.log' for more details." >&5
5404 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5405 See \`config.log' for more details." >&2;}
5406    { (exit 1); exit 1; }; }
5407 fi
5408
5409 ac_ext=c
5410 ac_cpp='$CPP $CPPFLAGS'
5411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5414
5415
5416 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5417 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5418 if test "${ac_cv_header_stdc+set}" = set; then
5419   echo $ECHO_N "(cached) $ECHO_C" >&6
5420 else
5421   cat >conftest.$ac_ext <<_ACEOF
5422 /* confdefs.h.  */
5423 _ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h.  */
5427 #include <stdlib.h>
5428 #include <stdarg.h>
5429 #include <string.h>
5430 #include <float.h>
5431
5432 int
5433 main ()
5434 {
5435
5436   ;
5437   return 0;
5438 }
5439 _ACEOF
5440 rm -f conftest.$ac_objext
5441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5442   (eval $ac_compile) 2>conftest.er1
5443   ac_status=$?
5444   grep -v '^ *+' conftest.er1 >conftest.err
5445   rm -f conftest.er1
5446   cat conftest.err >&5
5447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448   (exit $ac_status); } &&
5449          { ac_try='test -z "$ac_c_werror_flag"
5450                          || test ! -s conftest.err'
5451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452   (eval $ac_try) 2>&5
5453   ac_status=$?
5454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455   (exit $ac_status); }; } &&
5456          { ac_try='test -s conftest.$ac_objext'
5457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458   (eval $ac_try) 2>&5
5459   ac_status=$?
5460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461   (exit $ac_status); }; }; then
5462   ac_cv_header_stdc=yes
5463 else
5464   echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5466
5467 ac_cv_header_stdc=no
5468 fi
5469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5470
5471 if test $ac_cv_header_stdc = yes; then
5472   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 #include <string.h>
5480
5481 _ACEOF
5482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5483   $EGREP "memchr" >/dev/null 2>&1; then
5484   :
5485 else
5486   ac_cv_header_stdc=no
5487 fi
5488 rm -f conftest*
5489
5490 fi
5491
5492 if test $ac_cv_header_stdc = yes; then
5493   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5494   cat >conftest.$ac_ext <<_ACEOF
5495 /* confdefs.h.  */
5496 _ACEOF
5497 cat confdefs.h >>conftest.$ac_ext
5498 cat >>conftest.$ac_ext <<_ACEOF
5499 /* end confdefs.h.  */
5500 #include <stdlib.h>
5501
5502 _ACEOF
5503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5504   $EGREP "free" >/dev/null 2>&1; then
5505   :
5506 else
5507   ac_cv_header_stdc=no
5508 fi
5509 rm -f conftest*
5510
5511 fi
5512
5513 if test $ac_cv_header_stdc = yes; then
5514   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5515   if test "$cross_compiling" = yes; then
5516   :
5517 else
5518   cat >conftest.$ac_ext <<_ACEOF
5519 /* confdefs.h.  */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h.  */
5524 #include <ctype.h>
5525 #if ((' ' & 0x0FF) == 0x020)
5526 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5527 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5528 #else
5529 # define ISLOWER(c) \
5530                    (('a' <= (c) && (c) <= 'i') \
5531                      || ('j' <= (c) && (c) <= 'r') \
5532                      || ('s' <= (c) && (c) <= 'z'))
5533 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5534 #endif
5535
5536 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5537 int
5538 main ()
5539 {
5540   int i;
5541   for (i = 0; i < 256; i++)
5542     if (XOR (islower (i), ISLOWER (i))
5543         || toupper (i) != TOUPPER (i))
5544       exit(2);
5545   exit (0);
5546 }
5547 _ACEOF
5548 rm -f conftest$ac_exeext
5549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5550   (eval $ac_link) 2>&5
5551   ac_status=$?
5552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555   (eval $ac_try) 2>&5
5556   ac_status=$?
5557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558   (exit $ac_status); }; }; then
5559   :
5560 else
5561   echo "$as_me: program exited with status $ac_status" >&5
5562 echo "$as_me: failed program was:" >&5
5563 sed 's/^/| /' conftest.$ac_ext >&5
5564
5565 ( exit $ac_status )
5566 ac_cv_header_stdc=no
5567 fi
5568 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5569 fi
5570 fi
5571 fi
5572 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5573 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5574 if test $ac_cv_header_stdc = yes; then
5575
5576 cat >>confdefs.h <<\_ACEOF
5577 #define STDC_HEADERS 1
5578 _ACEOF
5579
5580 fi
5581
5582 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5593                   inttypes.h stdint.h unistd.h
5594 do
5595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5596 echo "$as_me:$LINENO: checking for $ac_header" >&5
5597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5599   echo $ECHO_N "(cached) $ECHO_C" >&6
5600 else
5601   cat >conftest.$ac_ext <<_ACEOF
5602 /* confdefs.h.  */
5603 _ACEOF
5604 cat confdefs.h >>conftest.$ac_ext
5605 cat >>conftest.$ac_ext <<_ACEOF
5606 /* end confdefs.h.  */
5607 $ac_includes_default
5608
5609 #include <$ac_header>
5610 _ACEOF
5611 rm -f conftest.$ac_objext
5612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5613   (eval $ac_compile) 2>conftest.er1
5614   ac_status=$?
5615   grep -v '^ *+' conftest.er1 >conftest.err
5616   rm -f conftest.er1
5617   cat conftest.err >&5
5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); } &&
5620          { ac_try='test -z "$ac_c_werror_flag"
5621                          || test ! -s conftest.err'
5622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623   (eval $ac_try) 2>&5
5624   ac_status=$?
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); }; } &&
5627          { ac_try='test -s conftest.$ac_objext'
5628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629   (eval $ac_try) 2>&5
5630   ac_status=$?
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); }; }; then
5633   eval "$as_ac_Header=yes"
5634 else
5635   echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5637
5638 eval "$as_ac_Header=no"
5639 fi
5640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5641 fi
5642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5645   cat >>confdefs.h <<_ACEOF
5646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5647 _ACEOF
5648
5649 fi
5650
5651 done
5652
5653
5654
5655 for ac_header in dlfcn.h
5656 do
5657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5658 echo "$as_me:$LINENO: checking for $ac_header" >&5
5659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5661   echo $ECHO_N "(cached) $ECHO_C" >&6
5662 else
5663   cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h.  */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h.  */
5669 $ac_includes_default
5670
5671 #include <$ac_header>
5672 _ACEOF
5673 rm -f conftest.$ac_objext
5674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5675   (eval $ac_compile) 2>conftest.er1
5676   ac_status=$?
5677   grep -v '^ *+' conftest.er1 >conftest.err
5678   rm -f conftest.er1
5679   cat conftest.err >&5
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); } &&
5682          { ac_try='test -z "$ac_c_werror_flag"
5683                          || test ! -s conftest.err'
5684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685   (eval $ac_try) 2>&5
5686   ac_status=$?
5687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688   (exit $ac_status); }; } &&
5689          { ac_try='test -s conftest.$ac_objext'
5690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691   (eval $ac_try) 2>&5
5692   ac_status=$?
5693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); }; }; then
5695   eval "$as_ac_Header=yes"
5696 else
5697   echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5699
5700 eval "$as_ac_Header=no"
5701 fi
5702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5703 fi
5704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5707   cat >>confdefs.h <<_ACEOF
5708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5709 _ACEOF
5710
5711 fi
5712
5713 done
5714
5715
5716
5717 # This can be used to rebuild libtool when needed
5718 LIBTOOL_DEPS="$ltmain"
5719
5720 # Always use our own libtool.
5721 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747 test -z "$LN_S" && LN_S="ln -s"
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762 if test -n "${ZSH_VERSION+set}" ; then
5763    setopt NO_GLOB_SUBST
5764 fi
5765
5766 echo "$as_me:$LINENO: checking for objdir" >&5
5767 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5768 if test "${lt_cv_objdir+set}" = set; then
5769   echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771   rm -f .libs 2>/dev/null
5772 mkdir .libs 2>/dev/null
5773 if test -d .libs; then
5774   lt_cv_objdir=.libs
5775 else
5776   # MS-DOS does not allow filenames that begin with a dot.
5777   lt_cv_objdir=_libs
5778 fi
5779 rmdir .libs 2>/dev/null
5780 fi
5781 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5782 echo "${ECHO_T}$lt_cv_objdir" >&6
5783 objdir=$lt_cv_objdir
5784
5785
5786
5787
5788
5789 cat >>confdefs.h <<_ACEOF
5790 #define LT_OBJDIR "$lt_cv_objdir/"
5791 _ACEOF
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809 case $host_os in
5810 aix3*)
5811   # AIX sometimes has problems with the GCC collect2 program.  For some
5812   # reason, if we set the COLLECT_NAMES environment variable, the problems
5813   # vanish in a puff of smoke.
5814   if test "X${COLLECT_NAMES+set}" != Xset; then
5815     COLLECT_NAMES=
5816     export COLLECT_NAMES
5817   fi
5818   ;;
5819 esac
5820
5821 # Sed substitution that helps us do robust quoting.  It backslashifies
5822 # metacharacters that are still active within double-quoted strings.
5823 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5824
5825 # Same as above, but do not quote variable references.
5826 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5827
5828 # Sed substitution to delay expansion of an escaped shell variable in a
5829 # double_quote_subst'ed string.
5830 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5831
5832 # Sed substitution to delay expansion of an escaped single quote.
5833 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5834
5835 # Sed substitution to avoid accidental globbing in evaled expressions
5836 no_glob_subst='s/\*/\\\*/g'
5837
5838 # Global variables:
5839 ofile=libtool
5840 can_build_shared=yes
5841
5842 # All known linkers require a `.a' archive for static linking (except MSVC,
5843 # which needs '.lib').
5844 libext=a
5845
5846 with_gnu_ld="$lt_cv_prog_gnu_ld"
5847
5848 old_CC="$CC"
5849 old_CFLAGS="$CFLAGS"
5850
5851 # Set sane defaults for various variables
5852 test -z "$CC" && CC=cc
5853 test -z "$LTCC" && LTCC=$CC
5854 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5855 test -z "$LD" && LD=ld
5856 test -z "$ac_objext" && ac_objext=o
5857
5858 for cc_temp in $compiler""; do
5859   case $cc_temp in
5860     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5861     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5862     \-*) ;;
5863     *) break;;
5864   esac
5865 done
5866 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5867
5868
5869 # Only perform the check for file, if the check method requires it
5870 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5871 case $deplibs_check_method in
5872 file_magic*)
5873   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5874     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5875 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5876 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879   case $MAGIC_CMD in
5880 [\\/*] |  ?:[\\/]*)
5881   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5882   ;;
5883 *)
5884   lt_save_MAGIC_CMD="$MAGIC_CMD"
5885   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5886   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5887   for ac_dir in $ac_dummy; do
5888     IFS="$lt_save_ifs"
5889     test -z "$ac_dir" && ac_dir=.
5890     if test -f $ac_dir/${ac_tool_prefix}file; then
5891       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5892       if test -n "$file_magic_test_file"; then
5893         case $deplibs_check_method in
5894         "file_magic "*)
5895           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5896           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5897           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5898             $EGREP "$file_magic_regex" > /dev/null; then
5899             :
5900           else
5901             cat <<_LT_EOF 1>&2
5902
5903 *** Warning: the command libtool uses to detect shared libraries,
5904 *** $file_magic_cmd, produces output that libtool cannot recognize.
5905 *** The result is that libtool may fail to recognize shared libraries
5906 *** as such.  This will affect the creation of libtool libraries that
5907 *** depend on shared libraries, but programs linked with such libtool
5908 *** libraries will work regardless of this problem.  Nevertheless, you
5909 *** may want to report the problem to your system manager and/or to
5910 *** bug-libtool@gnu.org
5911
5912 _LT_EOF
5913           fi ;;
5914         esac
5915       fi
5916       break
5917     fi
5918   done
5919   IFS="$lt_save_ifs"
5920   MAGIC_CMD="$lt_save_MAGIC_CMD"
5921   ;;
5922 esac
5923 fi
5924
5925 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5926 if test -n "$MAGIC_CMD"; then
5927   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5928 echo "${ECHO_T}$MAGIC_CMD" >&6
5929 else
5930   echo "$as_me:$LINENO: result: no" >&5
5931 echo "${ECHO_T}no" >&6
5932 fi
5933
5934
5935
5936
5937
5938 if test -z "$lt_cv_path_MAGIC_CMD"; then
5939   if test -n "$ac_tool_prefix"; then
5940     echo "$as_me:$LINENO: checking for file" >&5
5941 echo $ECHO_N "checking for file... $ECHO_C" >&6
5942 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5943   echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945   case $MAGIC_CMD in
5946 [\\/*] |  ?:[\\/]*)
5947   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5948   ;;
5949 *)
5950   lt_save_MAGIC_CMD="$MAGIC_CMD"
5951   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5952   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5953   for ac_dir in $ac_dummy; do
5954     IFS="$lt_save_ifs"
5955     test -z "$ac_dir" && ac_dir=.
5956     if test -f $ac_dir/file; then
5957       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5958       if test -n "$file_magic_test_file"; then
5959         case $deplibs_check_method in
5960         "file_magic "*)
5961           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5962           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5963           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5964             $EGREP "$file_magic_regex" > /dev/null; then
5965             :
5966           else
5967             cat <<_LT_EOF 1>&2
5968
5969 *** Warning: the command libtool uses to detect shared libraries,
5970 *** $file_magic_cmd, produces output that libtool cannot recognize.
5971 *** The result is that libtool may fail to recognize shared libraries
5972 *** as such.  This will affect the creation of libtool libraries that
5973 *** depend on shared libraries, but programs linked with such libtool
5974 *** libraries will work regardless of this problem.  Nevertheless, you
5975 *** may want to report the problem to your system manager and/or to
5976 *** bug-libtool@gnu.org
5977
5978 _LT_EOF
5979           fi ;;
5980         esac
5981       fi
5982       break
5983     fi
5984   done
5985   IFS="$lt_save_ifs"
5986   MAGIC_CMD="$lt_save_MAGIC_CMD"
5987   ;;
5988 esac
5989 fi
5990
5991 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5992 if test -n "$MAGIC_CMD"; then
5993   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5994 echo "${ECHO_T}$MAGIC_CMD" >&6
5995 else
5996   echo "$as_me:$LINENO: result: no" >&5
5997 echo "${ECHO_T}no" >&6
5998 fi
5999
6000
6001   else
6002     MAGIC_CMD=:
6003   fi
6004 fi
6005
6006   fi
6007   ;;
6008 esac
6009
6010 # Use C for the default configuration in the libtool script
6011
6012 lt_save_CC="$CC"
6013 ac_ext=c
6014 ac_cpp='$CPP $CPPFLAGS'
6015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6018
6019
6020 # Source file extension for C test sources.
6021 ac_ext=c
6022
6023 # Object file extension for compiled C test sources.
6024 objext=o
6025 objext=$objext
6026
6027 # Code to be used in simple compile tests
6028 lt_simple_compile_test_code="int some_variable = 0;"
6029
6030 # Code to be used in simple link tests
6031 lt_simple_link_test_code='int main(){return(0);}'
6032
6033
6034
6035
6036
6037
6038
6039 # If no C compiler was specified, use CC.
6040 LTCC=${LTCC-"$CC"}
6041
6042 # If no C compiler flags were specified, use CFLAGS.
6043 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6044
6045 # Allow CC to be a program name with arguments.
6046 compiler=$CC
6047
6048 # Save the default compiler, since it gets overwritten when the other
6049 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6050 compiler_DEFAULT=$CC
6051
6052 # save warnings/boilerplate of simple test code
6053 ac_outfile=conftest.$ac_objext
6054 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6055 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6056 _lt_compiler_boilerplate=`cat conftest.err`
6057 $RM conftest*
6058
6059 ac_outfile=conftest.$ac_objext
6060 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6061 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6062 _lt_linker_boilerplate=`cat conftest.err`
6063 $RM conftest*
6064
6065
6066 ## CAVEAT EMPTOR:
6067 ## There is no encapsulation within the following macros, do not change
6068 ## the running order or otherwise move them around unless you know exactly
6069 ## what you are doing...
6070 if test -n "$compiler"; then
6071
6072 lt_prog_compiler_no_builtin_flag=
6073
6074 if test "$GCC" = yes; then
6075   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6076
6077   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6078 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6079 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6080   echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6082   lt_cv_prog_compiler_rtti_exceptions=no
6083    ac_outfile=conftest.$ac_objext
6084    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6085    lt_compiler_flag="-fno-rtti -fno-exceptions"
6086    # Insert the option either (1) after the last *FLAGS variable, or
6087    # (2) before a word containing "conftest.", or (3) at the end.
6088    # Note that $ac_compile itself does not contain backslashes and begins
6089    # with a dollar sign (not a hyphen), so the echo should work correctly.
6090    # The option is referenced via a variable to avoid confusing sed.
6091    lt_compile=`echo "$ac_compile" | $SED \
6092    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6093    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6094    -e 's:$: $lt_compiler_flag:'`
6095    (eval echo "\"\$as_me:6095: $lt_compile\"" >&5)
6096    (eval "$lt_compile" 2>conftest.err)
6097    ac_status=$?
6098    cat conftest.err >&5
6099    echo "$as_me:6099: \$? = $ac_status" >&5
6100    if (exit $ac_status) && test -s "$ac_outfile"; then
6101      # The compiler can only warn and ignore the option if not recognized
6102      # So say no if there are warnings other than the usual output.
6103      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6104      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6105      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6106        lt_cv_prog_compiler_rtti_exceptions=yes
6107      fi
6108    fi
6109    $RM conftest*
6110
6111 fi
6112 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6113 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6114
6115 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6116     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6117 else
6118     :
6119 fi
6120
6121 fi
6122
6123
6124
6125
6126
6127
6128   lt_prog_compiler_wl=
6129 lt_prog_compiler_pic=
6130 lt_prog_compiler_static=
6131
6132 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6133 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6134
6135   if test "$GCC" = yes; then
6136     lt_prog_compiler_wl='-Wl,'
6137     lt_prog_compiler_static='-static'
6138
6139     case $host_os in
6140       aix*)
6141       # All AIX code is PIC.
6142       if test "$host_cpu" = ia64; then
6143         # AIX 5 now supports IA64 processor
6144         lt_prog_compiler_static='-Bstatic'
6145       fi
6146       ;;
6147
6148     amigaos*)
6149       if test "$host_cpu" = m68k; then
6150         # FIXME: we need at least 68020 code to build shared libraries, but
6151         # adding the `-m68020' flag to GCC prevents building anything better,
6152         # like `-m68040'.
6153         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6154       fi
6155       ;;
6156
6157     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6158       # PIC is the default for these OSes.
6159       ;;
6160
6161     mingw* | cygwin* | pw32* | os2*)
6162       # This hack is so that the source file can tell whether it is being
6163       # built for inclusion in a dll (and should export symbols for example).
6164       # Although the cygwin gcc ignores -fPIC, still need this for old-style
6165       # (--disable-auto-import) libraries
6166       lt_prog_compiler_pic='-DDLL_EXPORT'
6167       ;;
6168
6169     darwin* | rhapsody*)
6170       # PIC is the default on this platform
6171       # Common symbols not allowed in MH_DYLIB files
6172       lt_prog_compiler_pic='-fno-common'
6173       ;;
6174
6175     hpux*)
6176       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6177       # not for PA HP-UX.
6178       case $host_cpu in
6179       hppa*64*|ia64*)
6180         # +Z the default
6181         ;;
6182       *)
6183         lt_prog_compiler_pic='-fPIC'
6184         ;;
6185       esac
6186       ;;
6187
6188     interix[3-9]*)
6189       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6190       # Instead, we relocate shared libraries at runtime.
6191       ;;
6192
6193     msdosdjgpp*)
6194       # Just because we use GCC doesn't mean we suddenly get shared libraries
6195       # on systems that don't support them.
6196       lt_prog_compiler_can_build_shared=no
6197       enable_shared=no
6198       ;;
6199
6200     *nto* | *qnx*)
6201       # QNX uses GNU C++, but need to define -shared option too, otherwise
6202       # it will coredump.
6203       lt_prog_compiler_pic='-fPIC -shared'
6204       ;;
6205
6206     sysv4*MP*)
6207       if test -d /usr/nec; then
6208         lt_prog_compiler_pic=-Kconform_pic
6209       fi
6210       ;;
6211
6212     *)
6213       lt_prog_compiler_pic='-fPIC'
6214       ;;
6215     esac
6216   else
6217     # PORTME Check for flag to pass linker flags through the system compiler.
6218     case $host_os in
6219     aix*)
6220       lt_prog_compiler_wl='-Wl,'
6221       if test "$host_cpu" = ia64; then
6222         # AIX 5 now supports IA64 processor
6223         lt_prog_compiler_static='-Bstatic'
6224       else
6225         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6226       fi
6227       ;;
6228     darwin*)
6229       # PIC is the default on this platform
6230       # Common symbols not allowed in MH_DYLIB files
6231       case $cc_basename in
6232       xlc*)
6233         lt_prog_compiler_pic='-qnocommon'
6234         lt_prog_compiler_wl='-Wl,'
6235         ;;
6236       esac
6237       ;;
6238
6239     mingw* | cygwin* | pw32* | os2*)
6240       # This hack is so that the source file can tell whether it is being
6241       # built for inclusion in a dll (and should export symbols for example).
6242       lt_prog_compiler_pic='-DDLL_EXPORT'
6243       ;;
6244
6245     hpux9* | hpux10* | hpux11*)
6246       lt_prog_compiler_wl='-Wl,'
6247       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6248       # not for PA HP-UX.
6249       case $host_cpu in
6250       hppa*64*|ia64*)
6251         # +Z the default
6252         ;;
6253       *)
6254         lt_prog_compiler_pic='+Z'
6255         ;;
6256       esac
6257       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6258       lt_prog_compiler_static='${wl}-a ${wl}archive'
6259       ;;
6260
6261     irix5* | irix6* | nonstopux*)
6262       lt_prog_compiler_wl='-Wl,'
6263       # PIC (with -KPIC) is the default.
6264       lt_prog_compiler_static='-non_shared'
6265       ;;
6266
6267     linux* | k*bsd*-gnu)
6268       case $cc_basename in
6269       icc* | ecc*)
6270         lt_prog_compiler_wl='-Wl,'
6271         lt_prog_compiler_pic='-KPIC'
6272         lt_prog_compiler_static='-static'
6273         ;;
6274       pgcc* | pgf77* | pgf90* | pgf95*)
6275         # Portland Group compilers (*not* the Pentium gcc compiler,
6276         # which looks to be a dead project)
6277         lt_prog_compiler_wl='-Wl,'
6278         lt_prog_compiler_pic='-fpic'
6279         lt_prog_compiler_static='-Bstatic'
6280         ;;
6281       ccc*)
6282         lt_prog_compiler_wl='-Wl,'
6283         # All Alpha code is PIC.
6284         lt_prog_compiler_static='-non_shared'
6285         ;;
6286       *)
6287         case `$CC -V 2>&1 | sed 5q` in
6288         *Sun\ C*)
6289           # Sun C 5.9
6290           lt_prog_compiler_pic='-KPIC'
6291           lt_prog_compiler_static='-Bstatic'
6292           lt_prog_compiler_wl='-Wl,'
6293           ;;
6294         *Sun\ F*)
6295           # Sun Fortran 8.3 passes all unrecognized flags to the linker
6296           lt_prog_compiler_pic='-KPIC'
6297           lt_prog_compiler_static='-Bstatic'
6298           lt_prog_compiler_wl=''
6299           ;;
6300         esac
6301         ;;
6302       esac
6303       ;;
6304
6305     newsos6)
6306       lt_prog_compiler_pic='-KPIC'
6307       lt_prog_compiler_static='-Bstatic'
6308       ;;
6309
6310     *nto* | *qnx*)
6311       # QNX uses GNU C++, but need to define -shared option too, otherwise
6312       # it will coredump.
6313       lt_prog_compiler_pic='-fPIC -shared'
6314       ;;
6315
6316     osf3* | osf4* | osf5*)
6317       lt_prog_compiler_wl='-Wl,'
6318       # All OSF/1 code is PIC.
6319       lt_prog_compiler_static='-non_shared'
6320       ;;
6321
6322     rdos*)
6323       lt_prog_compiler_static='-non_shared'
6324       ;;
6325
6326     solaris*)
6327       lt_prog_compiler_pic='-KPIC'
6328       lt_prog_compiler_static='-Bstatic'
6329       case $cc_basename in
6330       f77* | f90* | f95*)
6331         lt_prog_compiler_wl='-Qoption ld ';;
6332       *)
6333         lt_prog_compiler_wl='-Wl,';;
6334       esac
6335       ;;
6336
6337     sunos4*)
6338       lt_prog_compiler_wl='-Qoption ld '
6339       lt_prog_compiler_pic='-PIC'
6340       lt_prog_compiler_static='-Bstatic'
6341       ;;
6342
6343     sysv4 | sysv4.2uw2* | sysv4.3*)
6344       lt_prog_compiler_wl='-Wl,'
6345       lt_prog_compiler_pic='-KPIC'
6346       lt_prog_compiler_static='-Bstatic'
6347       ;;
6348
6349     sysv4*MP*)
6350       if test -d /usr/nec ;then
6351         lt_prog_compiler_pic='-Kconform_pic'
6352         lt_prog_compiler_static='-Bstatic'
6353       fi
6354       ;;
6355
6356     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6357       lt_prog_compiler_wl='-Wl,'
6358       lt_prog_compiler_pic='-KPIC'
6359       lt_prog_compiler_static='-Bstatic'
6360       ;;
6361
6362     unicos*)
6363       lt_prog_compiler_wl='-Wl,'
6364       lt_prog_compiler_can_build_shared=no
6365       ;;
6366
6367     uts4*)
6368       lt_prog_compiler_pic='-pic'
6369       lt_prog_compiler_static='-Bstatic'
6370       ;;
6371
6372     *)
6373       lt_prog_compiler_can_build_shared=no
6374       ;;
6375     esac
6376   fi
6377
6378 case $host_os in
6379   # For platforms which do not support PIC, -DPIC is meaningless:
6380   *djgpp*)
6381     lt_prog_compiler_pic=
6382     ;;
6383   *)
6384     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6385     ;;
6386 esac
6387 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6388 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6389
6390
6391
6392
6393
6394
6395 #
6396 # Check to make sure the PIC flag actually works.
6397 #
6398 if test -n "$lt_prog_compiler_pic"; then
6399   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6400 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6401 if test "${lt_prog_compiler_pic_works+set}" = set; then
6402   echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404   lt_prog_compiler_pic_works=no
6405    ac_outfile=conftest.$ac_objext
6406    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6407    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6408    # Insert the option either (1) after the last *FLAGS variable, or
6409    # (2) before a word containing "conftest.", or (3) at the end.
6410    # Note that $ac_compile itself does not contain backslashes and begins
6411    # with a dollar sign (not a hyphen), so the echo should work correctly.
6412    # The option is referenced via a variable to avoid confusing sed.
6413    lt_compile=`echo "$ac_compile" | $SED \
6414    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6415    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6416    -e 's:$: $lt_compiler_flag:'`
6417    (eval echo "\"\$as_me:6417: $lt_compile\"" >&5)
6418    (eval "$lt_compile" 2>conftest.err)
6419    ac_status=$?
6420    cat conftest.err >&5
6421    echo "$as_me:6421: \$? = $ac_status" >&5
6422    if (exit $ac_status) && test -s "$ac_outfile"; then
6423      # The compiler can only warn and ignore the option if not recognized
6424      # So say no if there are warnings other than the usual output.
6425      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6426      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6427      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6428        lt_prog_compiler_pic_works=yes
6429      fi
6430    fi
6431    $RM conftest*
6432
6433 fi
6434 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6435 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6436
6437 if test x"$lt_prog_compiler_pic_works" = xyes; then
6438     case $lt_prog_compiler_pic in
6439      "" | " "*) ;;
6440      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6441      esac
6442 else
6443     lt_prog_compiler_pic=
6444      lt_prog_compiler_can_build_shared=no
6445 fi
6446
6447 fi
6448
6449
6450
6451
6452
6453
6454 #
6455 # Check to make sure the static flag actually works.
6456 #
6457 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6458 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6459 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6460 if test "${lt_prog_compiler_static_works+set}" = set; then
6461   echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463   lt_prog_compiler_static_works=no
6464    save_LDFLAGS="$LDFLAGS"
6465    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6466    echo "$lt_simple_link_test_code" > conftest.$ac_ext
6467    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6468      # The linker can only warn and ignore the option if not recognized
6469      # So say no if there are warnings
6470      if test -s conftest.err; then
6471        # Append any errors to the config.log.
6472        cat conftest.err 1>&5
6473        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6474        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6475        if diff conftest.exp conftest.er2 >/dev/null; then
6476          lt_prog_compiler_static_works=yes
6477        fi
6478      else
6479        lt_prog_compiler_static_works=yes
6480      fi
6481    fi
6482    $RM conftest*
6483    LDFLAGS="$save_LDFLAGS"
6484
6485 fi
6486 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6487 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6488
6489 if test x"$lt_prog_compiler_static_works" = xyes; then
6490     :
6491 else
6492     lt_prog_compiler_static=
6493 fi
6494
6495
6496
6497
6498
6499
6500
6501   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6502 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6503 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6504   echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6506   lt_cv_prog_compiler_c_o=no
6507    $RM -r conftest 2>/dev/null
6508    mkdir conftest
6509    cd conftest
6510    mkdir out
6511    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6512
6513    lt_compiler_flag="-o out/conftest2.$ac_objext"
6514    # Insert the option either (1) after the last *FLAGS variable, or
6515    # (2) before a word containing "conftest.", or (3) at the end.
6516    # Note that $ac_compile itself does not contain backslashes and begins
6517    # with a dollar sign (not a hyphen), so the echo should work correctly.
6518    lt_compile=`echo "$ac_compile" | $SED \
6519    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6520    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6521    -e 's:$: $lt_compiler_flag:'`
6522    (eval echo "\"\$as_me:6522: $lt_compile\"" >&5)
6523    (eval "$lt_compile" 2>out/conftest.err)
6524    ac_status=$?
6525    cat out/conftest.err >&5
6526    echo "$as_me:6526: \$? = $ac_status" >&5
6527    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6528    then
6529      # The compiler can only warn and ignore the option if not recognized
6530      # So say no if there are warnings
6531      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6532      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6533      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6534        lt_cv_prog_compiler_c_o=yes
6535      fi
6536    fi
6537    chmod u+w . 2>&5
6538    $RM conftest*
6539    # SGI C++ compiler will create directory out/ii_files/ for
6540    # template instantiation
6541    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6542    $RM out/* && rmdir out
6543    cd ..
6544    $RM -r conftest
6545    $RM conftest*
6546
6547 fi
6548 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6549 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6550
6551
6552
6553
6554
6555
6556   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6557 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6558 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6559   echo $ECHO_N "(cached) $ECHO_C" >&6
6560 else
6561   lt_cv_prog_compiler_c_o=no
6562    $RM -r conftest 2>/dev/null
6563    mkdir conftest
6564    cd conftest
6565    mkdir out
6566    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6567
6568    lt_compiler_flag="-o out/conftest2.$ac_objext"
6569    # Insert the option either (1) after the last *FLAGS variable, or
6570    # (2) before a word containing "conftest.", or (3) at the end.
6571    # Note that $ac_compile itself does not contain backslashes and begins
6572    # with a dollar sign (not a hyphen), so the echo should work correctly.
6573    lt_compile=`echo "$ac_compile" | $SED \
6574    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6575    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6576    -e 's:$: $lt_compiler_flag:'`
6577    (eval echo "\"\$as_me:6577: $lt_compile\"" >&5)
6578    (eval "$lt_compile" 2>out/conftest.err)
6579    ac_status=$?
6580    cat out/conftest.err >&5
6581    echo "$as_me:6581: \$? = $ac_status" >&5
6582    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6583    then
6584      # The compiler can only warn and ignore the option if not recognized
6585      # So say no if there are warnings
6586      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6587      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6588      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6589        lt_cv_prog_compiler_c_o=yes
6590      fi
6591    fi
6592    chmod u+w . 2>&5
6593    $RM conftest*
6594    # SGI C++ compiler will create directory out/ii_files/ for
6595    # template instantiation
6596    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6597    $RM out/* && rmdir out
6598    cd ..
6599    $RM -r conftest
6600    $RM conftest*
6601
6602 fi
6603 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6604 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6605
6606
6607
6608
6609 hard_links="nottested"
6610 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6611   # do not overwrite the value of need_locks provided by the user
6612   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6613 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6614   hard_links=yes
6615   $RM conftest*
6616   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6617   touch conftest.a
6618   ln conftest.a conftest.b 2>&5 || hard_links=no
6619   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6620   echo "$as_me:$LINENO: result: $hard_links" >&5
6621 echo "${ECHO_T}$hard_links" >&6
6622   if test "$hard_links" = no; then
6623     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6624 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6625     need_locks=warn
6626   fi
6627 else
6628   need_locks=no
6629 fi
6630
6631
6632
6633
6634
6635
6636   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6637 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6638
6639   runpath_var=
6640   allow_undefined_flag=
6641   always_export_symbols=no
6642   archive_cmds=
6643   archive_expsym_cmds=
6644   compiler_needs_object=no
6645   enable_shared_with_static_runtimes=no
6646   export_dynamic_flag_spec=
6647   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6648   hardcode_automatic=no
6649   hardcode_direct=no
6650   hardcode_direct_absolute=no
6651   hardcode_libdir_flag_spec=
6652   hardcode_libdir_flag_spec_ld=
6653   hardcode_libdir_separator=
6654   hardcode_minus_L=no
6655   hardcode_shlibpath_var=unsupported
6656   inherit_rpath=no
6657   link_all_deplibs=unknown
6658   module_cmds=
6659   module_expsym_cmds=
6660   old_archive_from_new_cmds=
6661   old_archive_from_expsyms_cmds=
6662   thread_safe_flag_spec=
6663   whole_archive_flag_spec=
6664   # include_expsyms should be a list of space-separated symbols to be *always*
6665   # included in the symbol list
6666   include_expsyms=
6667   # exclude_expsyms can be an extended regexp of symbols to exclude
6668   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6669   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6670   # as well as any symbol that contains `d'.
6671   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6672   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6673   # platforms (ab)use it in PIC code, but their linkers get confused if
6674   # the symbol is explicitly referenced.  Since portable code cannot
6675   # rely on this symbol name, it's probably fine to never include it in
6676   # preloaded symbol tables.
6677   extract_expsyms_cmds=
6678
6679   case $host_os in
6680   cygwin* | mingw* | pw32*)
6681     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6682     # When not using gcc, we currently assume that we are using
6683     # Microsoft Visual C++.
6684     if test "$GCC" != yes; then
6685       with_gnu_ld=no
6686     fi
6687     ;;
6688   interix*)
6689     # we just hope/assume this is gcc and not c89 (= MSVC++)
6690     with_gnu_ld=yes
6691     ;;
6692   openbsd*)
6693     with_gnu_ld=no
6694     ;;
6695   esac
6696
6697   ld_shlibs=yes
6698   if test "$with_gnu_ld" = yes; then
6699     # If archive_cmds runs LD, not CC, wlarc should be empty
6700     wlarc='${wl}'
6701
6702     # Set some defaults for GNU ld with shared library support. These
6703     # are reset later if shared libraries are not supported. Putting them
6704     # here allows them to be overridden if necessary.
6705     runpath_var=LD_RUN_PATH
6706     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6707     export_dynamic_flag_spec='${wl}--export-dynamic'
6708     # ancient GNU ld didn't support --whole-archive et. al.
6709     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6710       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6711     else
6712       whole_archive_flag_spec=
6713     fi
6714     supports_anon_versioning=no
6715     case `$LD -v 2>&1` in
6716       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6717       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6718       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6719       *\ 2.11.*) ;; # other 2.11 versions
6720       *) supports_anon_versioning=yes ;;
6721     esac
6722
6723     # See if GNU ld supports shared libraries.
6724     case $host_os in
6725     aix3* | aix4* | aix5*)
6726       # On AIX/PPC, the GNU linker is very broken
6727       if test "$host_cpu" != ia64; then
6728         ld_shlibs=no
6729         cat <<_LT_EOF 1>&2
6730
6731 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6732 *** to be unable to reliably create shared libraries on AIX.
6733 *** Therefore, libtool is disabling shared libraries support.  If you
6734 *** really care for shared libraries, you may want to modify your PATH
6735 *** so that a non-GNU linker is found, and then restart.
6736
6737 _LT_EOF
6738       fi
6739       ;;
6740
6741     amigaos*)
6742       if test "$host_cpu" = m68k; then
6743         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)'
6744         hardcode_libdir_flag_spec='-L$libdir'
6745         hardcode_minus_L=yes
6746       fi
6747
6748       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6749       # that the semantics of dynamic libraries on AmigaOS, at least up
6750       # to version 4, is to share data among multiple programs linked
6751       # with the same dynamic library.  Since this doesn't match the
6752       # behavior of shared libraries on other platforms, we can't use
6753       # them.
6754       ld_shlibs=no
6755       ;;
6756
6757     beos*)
6758       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6759         allow_undefined_flag=unsupported
6760         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6761         # support --undefined.  This deserves some investigation.  FIXME
6762         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6763       else
6764         ld_shlibs=no
6765       fi
6766       ;;
6767
6768     cygwin* | mingw* | pw32*)
6769       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6770       # as there is no search path for DLLs.
6771       hardcode_libdir_flag_spec='-L$libdir'
6772       allow_undefined_flag=unsupported
6773       always_export_symbols=no
6774       enable_shared_with_static_runtimes=yes
6775       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6776
6777       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6778         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6779         # If the export-symbols file already is a .def file (1st line
6780         # is EXPORTS), use it as is; otherwise, prepend...
6781         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6782           cp $export_symbols $output_objdir/$soname.def;
6783         else
6784           echo EXPORTS > $output_objdir/$soname.def;
6785           cat $export_symbols >> $output_objdir/$soname.def;
6786         fi~
6787         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6788       else
6789         ld_shlibs=no
6790       fi
6791       ;;
6792
6793     interix[3-9]*)
6794       hardcode_direct=no
6795       hardcode_shlibpath_var=no
6796       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6797       export_dynamic_flag_spec='${wl}-E'
6798       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6799       # Instead, shared libraries are loaded at an image base (0x10000000 by
6800       # default) and relocated if they conflict, which is a slow very memory
6801       # consuming and fragmenting process.  To avoid this, we pick a random,
6802       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6803       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6804       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6805       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'
6806       ;;
6807
6808     gnu* | linux* | tpf* | k*bsd*-gnu)
6809       tmp_diet=no
6810       if test "$host_os" = linux-dietlibc; then
6811         case $cc_basename in
6812           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
6813         esac
6814       fi
6815       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6816          && test "$tmp_diet" = no
6817       then
6818         tmp_addflag=
6819         case $cc_basename,$host_cpu in
6820         pgcc*)                          # Portland Group C compiler
6821           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'
6822           tmp_addflag=' $pic_flag'
6823           ;;
6824         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6825           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'
6826           tmp_addflag=' $pic_flag -Mnomain' ;;
6827         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
6828           tmp_addflag=' -i_dynamic' ;;
6829         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6830           tmp_addflag=' -i_dynamic -nofor_main' ;;
6831         ifc* | ifort*)                  # Intel Fortran compiler
6832           tmp_addflag=' -nofor_main' ;;
6833         esac
6834         case `$CC -V 2>&1 | sed 5q` in
6835         *Sun\ C*)                       # Sun C 5.9
6836           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'
6837           compiler_needs_object=yes
6838           tmp_sharedflag='-G' ;;
6839         *Sun\ F*)                       # Sun Fortran 8.3
6840           tmp_sharedflag='-G' ;;
6841         *)
6842           tmp_sharedflag='-shared' ;;
6843         esac
6844         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6845
6846         if test "x$supports_anon_versioning" = xyes; then
6847           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6848             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6849             echo "local: *; };" >> $output_objdir/$libname.ver~
6850             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6851         fi
6852       else
6853         ld_shlibs=no
6854       fi
6855       ;;
6856
6857     netbsd*)
6858       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6859         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6860         wlarc=
6861       else
6862         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6863         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6864       fi
6865       ;;
6866
6867     solaris*)
6868       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6869         ld_shlibs=no
6870         cat <<_LT_EOF 1>&2
6871
6872 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6873 *** create shared libraries on Solaris systems.  Therefore, libtool
6874 *** is disabling shared libraries support.  We urge you to upgrade GNU
6875 *** binutils to release 2.9.1 or newer.  Another option is to modify
6876 *** your PATH or compiler configuration so that the native linker is
6877 *** used, and then restart.
6878
6879 _LT_EOF
6880       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6881         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6882         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6883       else
6884         ld_shlibs=no
6885       fi
6886       ;;
6887
6888     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6889       case `$LD -v 2>&1` in
6890         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6891         ld_shlibs=no
6892         cat <<_LT_EOF 1>&2
6893
6894 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6895 *** reliably create shared libraries on SCO systems.  Therefore, libtool
6896 *** is disabling shared libraries support.  We urge you to upgrade GNU
6897 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6898 *** your PATH or compiler configuration so that the native linker is
6899 *** used, and then restart.
6900
6901 _LT_EOF
6902         ;;
6903         *)
6904           # For security reasons, it is highly recommended that you always
6905           # use absolute paths for naming shared libraries, and exclude the
6906           # DT_RUNPATH tag from executables and libraries.  But doing so
6907           # requires that you compile everything twice, which is a pain.
6908           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6909             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6910             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6911             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6912           else
6913             ld_shlibs=no
6914           fi
6915         ;;
6916       esac
6917       ;;
6918
6919     sunos4*)
6920       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6921       wlarc=
6922       hardcode_direct=yes
6923       hardcode_shlibpath_var=no
6924       ;;
6925
6926     *)
6927       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6928         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6929         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6930       else
6931         ld_shlibs=no
6932       fi
6933       ;;
6934     esac
6935
6936     if test "$ld_shlibs" = no; then
6937       runpath_var=
6938       hardcode_libdir_flag_spec=
6939       export_dynamic_flag_spec=
6940       whole_archive_flag_spec=
6941     fi
6942   else
6943     # PORTME fill in a description of your system's linker (not GNU ld)
6944     case $host_os in
6945     aix3*)
6946       allow_undefined_flag=unsupported
6947       always_export_symbols=yes
6948       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'
6949       # Note: this linker hardcodes the directories in LIBPATH if there
6950       # are no directories specified by -L.
6951       hardcode_minus_L=yes
6952       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6953         # Neither direct hardcoding nor static linking is supported with a
6954         # broken collect2.
6955         hardcode_direct=unsupported
6956       fi
6957       ;;
6958
6959     aix4* | aix5*)
6960       if test "$host_cpu" = ia64; then
6961         # On IA64, the linker does run time linking by default, so we don't
6962         # have to do anything special.
6963         aix_use_runtimelinking=no
6964         exp_sym_flag='-Bexport'
6965         no_entry_flag=""
6966       else
6967         # If we're using GNU nm, then we don't want the "-C" option.
6968         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6969         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6970           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'
6971         else
6972           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'
6973         fi
6974         aix_use_runtimelinking=no
6975
6976         # Test if we are trying to use run time linking or normal
6977         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6978         # need to do runtime linking.
6979         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6980           for ld_flag in $LDFLAGS; do
6981           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6982             aix_use_runtimelinking=yes
6983             break
6984           fi
6985           done
6986           ;;
6987         esac
6988
6989         exp_sym_flag='-bexport'
6990         no_entry_flag='-bnoentry'
6991       fi
6992
6993       # When large executables or shared objects are built, AIX ld can
6994       # have problems creating the table of contents.  If linking a library
6995       # or program results in "error TOC overflow" add -mminimal-toc to
6996       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6997       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6998
6999       archive_cmds=''
7000       hardcode_direct=yes
7001       hardcode_direct_absolute=yes
7002       hardcode_libdir_separator=':'
7003       link_all_deplibs=yes
7004       file_list_spec='${wl}-f,'
7005
7006       if test "$GCC" = yes; then
7007         case $host_os in aix4.[012]|aix4.[012].*)
7008         # We only want to do this on AIX 4.2 and lower, the check
7009         # below for broken collect2 doesn't work under 4.3+
7010           collect2name=`${CC} -print-prog-name=collect2`
7011           if test -f "$collect2name" &&
7012            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7013           then
7014           # We have reworked collect2
7015           :
7016           else
7017           # We have old collect2
7018           hardcode_direct=unsupported
7019           # It fails to find uninstalled libraries when the uninstalled
7020           # path is not listed in the libpath.  Setting hardcode_minus_L
7021           # to unsupported forces relinking
7022           hardcode_minus_L=yes
7023           hardcode_libdir_flag_spec='-L$libdir'
7024           hardcode_libdir_separator=
7025           fi
7026           ;;
7027         esac
7028         shared_flag='-shared'
7029         if test "$aix_use_runtimelinking" = yes; then
7030           shared_flag="$shared_flag "'${wl}-G'
7031         fi
7032       else
7033         # not using gcc
7034         if test "$host_cpu" = ia64; then
7035         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7036         # chokes on -Wl,-G. The following line is correct:
7037           shared_flag='-G'
7038         else
7039           if test "$aix_use_runtimelinking" = yes; then
7040             shared_flag='${wl}-G'
7041           else
7042             shared_flag='${wl}-bM:SRE'
7043           fi
7044         fi
7045       fi
7046
7047       # It seems that -bexpall does not export symbols beginning with
7048       # underscore (_), so it is better to generate a list of symbols to export.
7049       always_export_symbols=yes
7050       if test "$aix_use_runtimelinking" = yes; then
7051         # Warning - without using the other runtime loading flags (-brtl),
7052         # -berok will link without error, but may produce a broken library.
7053         allow_undefined_flag='-berok'
7054         # Determine the default libpath from the value encoded in an
7055         # empty executable.
7056         if test x$gcc_no_link = xyes; then
7057   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7058 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7059    { (exit 1); exit 1; }; }
7060 fi
7061 cat >conftest.$ac_ext <<_ACEOF
7062 /* confdefs.h.  */
7063 _ACEOF
7064 cat confdefs.h >>conftest.$ac_ext
7065 cat >>conftest.$ac_ext <<_ACEOF
7066 /* end confdefs.h.  */
7067
7068 int
7069 main ()
7070 {
7071
7072   ;
7073   return 0;
7074 }
7075 _ACEOF
7076 rm -f conftest.$ac_objext conftest$ac_exeext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7078   (eval $ac_link) 2>conftest.er1
7079   ac_status=$?
7080   grep -v '^ *+' conftest.er1 >conftest.err
7081   rm -f conftest.er1
7082   cat conftest.err >&5
7083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084   (exit $ac_status); } &&
7085          { ac_try='test -z "$ac_c_werror_flag"
7086                          || test ! -s conftest.err'
7087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088   (eval $ac_try) 2>&5
7089   ac_status=$?
7090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091   (exit $ac_status); }; } &&
7092          { ac_try='test -s conftest$ac_exeext'
7093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094   (eval $ac_try) 2>&5
7095   ac_status=$?
7096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097   (exit $ac_status); }; }; then
7098
7099 lt_aix_libpath_sed='
7100     /Import File Strings/,/^$/ {
7101         /^0/ {
7102             s/^0  *\(.*\)$/\1/
7103             p
7104         }
7105     }'
7106 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7107 # Check for a 64-bit object if we didn't find anything.
7108 if test -z "$aix_libpath"; then
7109   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7110 fi
7111 else
7112   echo "$as_me: failed program was:" >&5
7113 sed 's/^/| /' conftest.$ac_ext >&5
7114
7115 fi
7116 rm -f conftest.err conftest.$ac_objext \
7117       conftest$ac_exeext conftest.$ac_ext
7118 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7119
7120         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7121         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"
7122       else
7123         if test "$host_cpu" = ia64; then
7124           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7125           allow_undefined_flag="-z nodefs"
7126           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"
7127         else
7128          # Determine the default libpath from the value encoded in an
7129          # empty executable.
7130          if test x$gcc_no_link = xyes; then
7131   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7132 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7133    { (exit 1); exit 1; }; }
7134 fi
7135 cat >conftest.$ac_ext <<_ACEOF
7136 /* confdefs.h.  */
7137 _ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h.  */
7141
7142 int
7143 main ()
7144 {
7145
7146   ;
7147   return 0;
7148 }
7149 _ACEOF
7150 rm -f conftest.$ac_objext conftest$ac_exeext
7151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7152   (eval $ac_link) 2>conftest.er1
7153   ac_status=$?
7154   grep -v '^ *+' conftest.er1 >conftest.err
7155   rm -f conftest.er1
7156   cat conftest.err >&5
7157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158   (exit $ac_status); } &&
7159          { ac_try='test -z "$ac_c_werror_flag"
7160                          || test ! -s conftest.err'
7161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162   (eval $ac_try) 2>&5
7163   ac_status=$?
7164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165   (exit $ac_status); }; } &&
7166          { ac_try='test -s conftest$ac_exeext'
7167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168   (eval $ac_try) 2>&5
7169   ac_status=$?
7170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171   (exit $ac_status); }; }; then
7172
7173 lt_aix_libpath_sed='
7174     /Import File Strings/,/^$/ {
7175         /^0/ {
7176             s/^0  *\(.*\)$/\1/
7177             p
7178         }
7179     }'
7180 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7181 # Check for a 64-bit object if we didn't find anything.
7182 if test -z "$aix_libpath"; then
7183   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7184 fi
7185 else
7186   echo "$as_me: failed program was:" >&5
7187 sed 's/^/| /' conftest.$ac_ext >&5
7188
7189 fi
7190 rm -f conftest.err conftest.$ac_objext \
7191       conftest$ac_exeext conftest.$ac_ext
7192 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7193
7194          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7195           # Warning - without using the other run time loading flags,
7196           # -berok will link without error, but may produce a broken library.
7197           no_undefined_flag=' ${wl}-bernotok'
7198           allow_undefined_flag=' ${wl}-berok'
7199           # Exported symbols can be pulled into shared objects from archives
7200           whole_archive_flag_spec='$convenience'
7201           archive_cmds_need_lc=yes
7202           # This is similar to how AIX traditionally builds its shared libraries.
7203           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'
7204         fi
7205       fi
7206       ;;
7207
7208     amigaos*)
7209       if test "$host_cpu" = m68k; then
7210         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)'
7211         hardcode_libdir_flag_spec='-L$libdir'
7212         hardcode_minus_L=yes
7213       fi
7214       # see comment about different semantics on the GNU ld section
7215       ld_shlibs=no
7216       ;;
7217
7218     bsdi[45]*)
7219       export_dynamic_flag_spec=-rdynamic
7220       ;;
7221
7222     cygwin* | mingw* | pw32*)
7223       # When not using gcc, we currently assume that we are using
7224       # Microsoft Visual C++.
7225       # hardcode_libdir_flag_spec is actually meaningless, as there is
7226       # no search path for DLLs.
7227       hardcode_libdir_flag_spec=' '
7228       allow_undefined_flag=unsupported
7229       # Tell ltmain to make .lib files, not .a files.
7230       libext=lib
7231       # Tell ltmain to make .dll files, not .so files.
7232       shrext_cmds=".dll"
7233       # FIXME: Setting linknames here is a bad hack.
7234       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7235       # The linker will automatically build a .lib file if we build a DLL.
7236       old_archive_from_new_cmds='true'
7237       # FIXME: Should let the user specify the lib program.
7238       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7239       fix_srcfile_path='`cygpath -w "$srcfile"`'
7240       enable_shared_with_static_runtimes=yes
7241       ;;
7242
7243     darwin* | rhapsody*)
7244       case $host_os in
7245       rhapsody* | darwin1.[012])
7246         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7247         ;;
7248       *) # Darwin 1.3 on
7249         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7250         10.[012])
7251           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7252           ;;
7253         10.*)
7254           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7255           ;;
7256         esac
7257         ;;
7258       esac
7259       archive_cmds_need_lc=no
7260       hardcode_direct=no
7261       hardcode_automatic=yes
7262       hardcode_shlibpath_var=unsupported
7263       whole_archive_flag_spec=''
7264       link_all_deplibs=yes
7265       if test "$GCC" = yes ; then
7266         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7267   echo $ECHO_N "(cached) $ECHO_C" >&6
7268 else
7269   lt_cv_apple_cc_single_mod=no
7270         if test -z "${LT_MULTI_MODULE}"; then
7271           # By default we will add the -single_module flag. You can override
7272           # by either setting the environment variable LT_MULTI_MODULE
7273           # non-empty at configure time, or by adding -multi-module to the
7274           # link flags.
7275           echo "int foo(void){return 1;}" > conftest.c
7276           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7277               -dynamiclib ${wl}-single_module conftest.c
7278           if test -f libconftest.dylib; then
7279               lt_cv_apple_cc_single_mod=yes
7280               rm libconftest.dylib
7281           fi
7282           rm conftest.$ac_ext
7283         fi
7284 fi
7285
7286         output_verbose_link_cmd=echo
7287         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7288           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7289           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}'
7290         else
7291           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7292           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}'
7293         fi
7294         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7295         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}'
7296       else
7297         case $cc_basename in
7298         xlc*)
7299           output_verbose_link_cmd=echo
7300           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7301           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7302           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7303           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}'
7304           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}'
7305           ;;
7306         *)
7307           ld_shlibs=no
7308           ;;
7309         esac
7310       fi
7311       ;;
7312
7313     dgux*)
7314       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7315       hardcode_libdir_flag_spec='-L$libdir'
7316       hardcode_shlibpath_var=no
7317       ;;
7318
7319     freebsd1*)
7320       ld_shlibs=no
7321       ;;
7322
7323     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7324     # support.  Future versions do this automatically, but an explicit c++rt0.o
7325     # does not break anything, and helps significantly (at the cost of a little
7326     # extra space).
7327     freebsd2.2*)
7328       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7329       hardcode_libdir_flag_spec='-R$libdir'
7330       hardcode_direct=yes
7331       hardcode_shlibpath_var=no
7332       ;;
7333
7334     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7335     freebsd2*)
7336       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7337       hardcode_direct=yes
7338       hardcode_minus_L=yes
7339       hardcode_shlibpath_var=no
7340       ;;
7341
7342     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7343     freebsd* | dragonfly*)
7344       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7345       hardcode_libdir_flag_spec='-R$libdir'
7346       hardcode_direct=yes
7347       hardcode_shlibpath_var=no
7348       ;;
7349
7350     hpux9*)
7351       if test "$GCC" = yes; then
7352         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'
7353       else
7354         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'
7355       fi
7356       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7357       hardcode_libdir_separator=:
7358       hardcode_direct=yes
7359
7360       # hardcode_minus_L: Not really in the search PATH,
7361       # but as the default location of the library.
7362       hardcode_minus_L=yes
7363       export_dynamic_flag_spec='${wl}-E'
7364       ;;
7365
7366     hpux10*)
7367       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7368         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7369       else
7370         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7371       fi
7372       if test "$with_gnu_ld" = no; then
7373         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7374         hardcode_libdir_flag_spec_ld='+b $libdir'
7375         hardcode_libdir_separator=:
7376         hardcode_direct=yes
7377         hardcode_direct_absolute=yes
7378         export_dynamic_flag_spec='${wl}-E'
7379         # hardcode_minus_L: Not really in the search PATH,
7380         # but as the default location of the library.
7381         hardcode_minus_L=yes
7382       fi
7383       ;;
7384
7385     hpux11*)
7386       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7387         case $host_cpu in
7388         hppa*64*)
7389           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7390           ;;
7391         ia64*)
7392           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7393           ;;
7394         *)
7395           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7396           ;;
7397         esac
7398       else
7399         case $host_cpu in
7400         hppa*64*)
7401           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7402           ;;
7403         ia64*)
7404           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7405           ;;
7406         *)
7407           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7408           ;;
7409         esac
7410       fi
7411       if test "$with_gnu_ld" = no; then
7412         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7413         hardcode_libdir_separator=:
7414
7415         case $host_cpu in
7416         hppa*64*|ia64*)
7417           hardcode_direct=no
7418           hardcode_shlibpath_var=no
7419           ;;
7420         *)
7421           hardcode_direct=yes
7422           hardcode_direct_absolute=yes
7423           export_dynamic_flag_spec='${wl}-E'
7424
7425           # hardcode_minus_L: Not really in the search PATH,
7426           # but as the default location of the library.
7427           hardcode_minus_L=yes
7428           ;;
7429         esac
7430       fi
7431       ;;
7432
7433     irix5* | irix6* | nonstopux*)
7434       if test "$GCC" = yes; then
7435         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'
7436         # Try to use the -exported_symbol ld option, if it does not
7437         # work, assume that -exports_file does not work either and
7438         # implicitly export all symbols.
7439         save_LDFLAGS="$LDFLAGS"
7440         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7441         if test x$gcc_no_link = xyes; then
7442   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7443 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7444    { (exit 1); exit 1; }; }
7445 fi
7446 cat >conftest.$ac_ext <<_ACEOF
7447 int foo(void) {}
7448 _ACEOF
7449 rm -f conftest.$ac_objext conftest$ac_exeext
7450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7451   (eval $ac_link) 2>conftest.er1
7452   ac_status=$?
7453   grep -v '^ *+' conftest.er1 >conftest.err
7454   rm -f conftest.er1
7455   cat conftest.err >&5
7456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457   (exit $ac_status); } &&
7458          { ac_try='test -z "$ac_c_werror_flag"
7459                          || test ! -s conftest.err'
7460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461   (eval $ac_try) 2>&5
7462   ac_status=$?
7463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464   (exit $ac_status); }; } &&
7465          { ac_try='test -s conftest$ac_exeext'
7466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467   (eval $ac_try) 2>&5
7468   ac_status=$?
7469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470   (exit $ac_status); }; }; then
7471   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'
7472
7473 else
7474   echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7476
7477 fi
7478 rm -f conftest.err conftest.$ac_objext \
7479       conftest$ac_exeext conftest.$ac_ext
7480         LDFLAGS="$save_LDFLAGS"
7481       else
7482         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'
7483         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'
7484       fi
7485       archive_cmds_need_lc='no'
7486       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7487       hardcode_libdir_separator=:
7488       inherit_rpath=yes
7489       link_all_deplibs=yes
7490       ;;
7491
7492     netbsd*)
7493       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7494         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7495       else
7496         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7497       fi
7498       hardcode_libdir_flag_spec='-R$libdir'
7499       hardcode_direct=yes
7500       hardcode_shlibpath_var=no
7501       ;;
7502
7503     newsos6)
7504       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7505       hardcode_direct=yes
7506       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7507       hardcode_libdir_separator=:
7508       hardcode_shlibpath_var=no
7509       ;;
7510
7511     *nto* | *qnx*)
7512       ;;
7513
7514     openbsd*)
7515       hardcode_direct=yes
7516       hardcode_shlibpath_var=no
7517       hardcode_direct_absolute=yes
7518       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7519         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7520         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7521         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7522         export_dynamic_flag_spec='${wl}-E'
7523       else
7524         case $host_os in
7525         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7526           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7527           hardcode_libdir_flag_spec='-R$libdir'
7528           ;;
7529         *)
7530           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7531           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7532           ;;
7533         esac
7534       fi
7535       ;;
7536
7537     os2*)
7538       hardcode_libdir_flag_spec='-L$libdir'
7539       hardcode_minus_L=yes
7540       allow_undefined_flag=unsupported
7541       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'
7542       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7543       ;;
7544
7545     osf3*)
7546       if test "$GCC" = yes; then
7547         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7548         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'
7549       else
7550         allow_undefined_flag=' -expect_unresolved \*'
7551         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'
7552       fi
7553       archive_cmds_need_lc='no'
7554       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7555       hardcode_libdir_separator=:
7556       ;;
7557
7558     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7559       if test "$GCC" = yes; then
7560         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7561         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'
7562         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7563       else
7564         allow_undefined_flag=' -expect_unresolved \*'
7565         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'
7566         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~
7567         $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'
7568
7569         # Both c and cxx compiler support -rpath directly
7570         hardcode_libdir_flag_spec='-rpath $libdir'
7571       fi
7572       archive_cmds_need_lc='no'
7573       hardcode_libdir_separator=:
7574       ;;
7575
7576     solaris*)
7577       no_undefined_flag=' -z defs'
7578       if test "$GCC" = yes; then
7579         wlarc='${wl}'
7580         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7581         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7582           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7583       else
7584         case `$CC -V 2>&1` in
7585         *"Compilers 5.0"*)
7586           wlarc=''
7587           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7588           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7589           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7590           ;;
7591         *)
7592           wlarc='${wl}'
7593           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7594           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7595           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7596           ;;
7597         esac
7598       fi
7599       hardcode_libdir_flag_spec='-R$libdir'
7600       hardcode_shlibpath_var=no
7601       case $host_os in
7602       solaris2.[0-5] | solaris2.[0-5].*) ;;
7603       *)
7604         # The compiler driver will combine and reorder linker options,
7605         # but understands `-z linker_flag'.  GCC discards it without `$wl',
7606         # but is careful enough not to reorder.
7607         # Supported since Solaris 2.6 (maybe 2.5.1?)
7608         if test "$GCC" = yes; then
7609           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7610         else
7611           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7612         fi
7613         ;;
7614       esac
7615       link_all_deplibs=yes
7616       ;;
7617
7618     sunos4*)
7619       if test "x$host_vendor" = xsequent; then
7620         # Use $CC to link under sequent, because it throws in some extra .o
7621         # files that make .init and .fini sections work.
7622         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7623       else
7624         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7625       fi
7626       hardcode_libdir_flag_spec='-L$libdir'
7627       hardcode_direct=yes
7628       hardcode_minus_L=yes
7629       hardcode_shlibpath_var=no
7630       ;;
7631
7632     sysv4)
7633       case $host_vendor in
7634         sni)
7635           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7636           hardcode_direct=yes # is this really true???
7637         ;;
7638         siemens)
7639           ## LD is ld it makes a PLAMLIB
7640           ## CC just makes a GrossModule.
7641           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7642           reload_cmds='$CC -r -o $output$reload_objs'
7643           hardcode_direct=no
7644         ;;
7645         motorola)
7646           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7647           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7648         ;;
7649       esac
7650       runpath_var='LD_RUN_PATH'
7651       hardcode_shlibpath_var=no
7652       ;;
7653
7654     sysv4.3*)
7655       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7656       hardcode_shlibpath_var=no
7657       export_dynamic_flag_spec='-Bexport'
7658       ;;
7659
7660     sysv4*MP*)
7661       if test -d /usr/nec; then
7662         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7663         hardcode_shlibpath_var=no
7664         runpath_var=LD_RUN_PATH
7665         hardcode_runpath_var=yes
7666         ld_shlibs=yes
7667       fi
7668       ;;
7669
7670     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7671       no_undefined_flag='${wl}-z,text'
7672       archive_cmds_need_lc=no
7673       hardcode_shlibpath_var=no
7674       runpath_var='LD_RUN_PATH'
7675
7676       if test "$GCC" = yes; then
7677         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7678         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7679       else
7680         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7681         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7682       fi
7683       ;;
7684
7685     sysv5* | sco3.2v5* | sco5v6*)
7686       # Note: We can NOT use -z defs as we might desire, because we do not
7687       # link with -lc, and that would cause any symbols used from libc to
7688       # always be unresolved, which means just about no library would
7689       # ever link correctly.  If we're not using GNU ld we use -z text
7690       # though, which does catch some bad symbols but isn't as heavy-handed
7691       # as -z defs.
7692       no_undefined_flag='${wl}-z,text'
7693       allow_undefined_flag='${wl}-z,nodefs'
7694       archive_cmds_need_lc=no
7695       hardcode_shlibpath_var=no
7696       hardcode_libdir_flag_spec='${wl}-R,$libdir'
7697       hardcode_libdir_separator=':'
7698       link_all_deplibs=yes
7699       export_dynamic_flag_spec='${wl}-Bexport'
7700       runpath_var='LD_RUN_PATH'
7701
7702       if test "$GCC" = yes; then
7703         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7704         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7705       else
7706         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7707         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7708       fi
7709       ;;
7710
7711     uts4*)
7712       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7713       hardcode_libdir_flag_spec='-L$libdir'
7714       hardcode_shlibpath_var=no
7715       ;;
7716
7717     *)
7718       ld_shlibs=no
7719       ;;
7720     esac
7721
7722     if test x$host_vendor = xsni; then
7723       case $host in
7724       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7725         export_dynamic_flag_spec='${wl}-Blargedynsym'
7726         ;;
7727       esac
7728     fi
7729   fi
7730
7731 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7732 echo "${ECHO_T}$ld_shlibs" >&6
7733 test "$ld_shlibs" = no && can_build_shared=no
7734
7735 with_gnu_ld=$with_gnu_ld
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751 #
7752 # Do we need to explicitly link libc?
7753 #
7754 case "x$archive_cmds_need_lc" in
7755 x|xyes)
7756   # Assume -lc should be added
7757   archive_cmds_need_lc=yes
7758
7759   if test "$enable_shared" = yes && test "$GCC" = yes; then
7760     case $archive_cmds in
7761     *'~'*)
7762       # FIXME: we may have to deal with multi-command sequences.
7763       ;;
7764     '$CC '*)
7765       # Test whether the compiler implicitly links with -lc since on some
7766       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7767       # to ld, don't add -lc before -lgcc.
7768       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7769 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7770       $RM conftest*
7771       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7772
7773       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7774   (eval $ac_compile) 2>&5
7775   ac_status=$?
7776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777   (exit $ac_status); } 2>conftest.err; then
7778         soname=conftest
7779         lib=conftest
7780         libobjs=conftest.$ac_objext
7781         deplibs=
7782         wl=$lt_prog_compiler_wl
7783         pic_flag=$lt_prog_compiler_pic
7784         compiler_flags=-v
7785         linker_flags=-v
7786         verstring=
7787         output_objdir=.
7788         libname=conftest
7789         lt_save_allow_undefined_flag=$allow_undefined_flag
7790         allow_undefined_flag=
7791         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7792   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7793   ac_status=$?
7794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795   (exit $ac_status); }
7796         then
7797           archive_cmds_need_lc=no
7798         else
7799           archive_cmds_need_lc=yes
7800         fi
7801         allow_undefined_flag=$lt_save_allow_undefined_flag
7802       else
7803         cat conftest.err 1>&5
7804       fi
7805       $RM conftest*
7806       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7807 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7808       ;;
7809     esac
7810   fi
7811   ;;
7812 esac
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
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7971 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7972 withGCC=$GCC
7973 if test "$withGCC" = yes; then
7974   case $host_os in
7975     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7976     *) lt_awk_arg="/^libraries:/" ;;
7977   esac
7978   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7979   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7980     # if the path contains ";" then we assume it to be the separator
7981     # otherwise default to the standard path separator (i.e. ":") - it is
7982     # assumed that no part of a normal pathname contains ";" but that should
7983     # okay in the real world where ";" in dirpaths is itself problematic.
7984     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7985   else
7986     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7987   fi
7988   # Ok, now we have the path, separated by spaces, we can step through it
7989   # and add multilib dir if necessary.
7990   lt_tmp_lt_search_path_spec=
7991   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7992   for lt_sys_path in $lt_search_path_spec; do
7993     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7994       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7995     else
7996       test -d "$lt_sys_path" && \
7997         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7998     fi
7999   done
8000   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8001 BEGIN {RS=" "; FS="/|\n";} {
8002   lt_foo="";
8003   lt_count=0;
8004   for (lt_i = NF; lt_i > 0; lt_i--) {
8005     if ($lt_i != "" && $lt_i != ".") {
8006       if ($lt_i == "..") {
8007         lt_count++;
8008       } else {
8009         if (lt_count == 0) {
8010           lt_foo="/" $lt_i lt_foo;
8011         } else {
8012           lt_count--;
8013         }
8014       }
8015     }
8016   }
8017   if (lt_foo != "") { lt_freq[lt_foo]++; }
8018   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8019 }'`
8020   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8021 else
8022   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8023 fi
8024 library_names_spec=
8025 libname_spec='lib$name'
8026 soname_spec=
8027 shrext_cmds=".so"
8028 postinstall_cmds=
8029 postuninstall_cmds=
8030 finish_cmds=
8031 finish_eval=
8032 shlibpath_var=
8033 shlibpath_overrides_runpath=unknown
8034 version_type=none
8035 dynamic_linker="$host_os ld.so"
8036 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8037 need_lib_prefix=unknown
8038 hardcode_into_libs=no
8039
8040 # when you set need_version to no, make sure it does not cause -set_version
8041 # flags to be left without arguments
8042 need_version=unknown
8043
8044 case $host_os in
8045 aix3*)
8046   version_type=linux
8047   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8048   shlibpath_var=LIBPATH
8049
8050   # AIX 3 has no versioning support, so we append a major version to the name.
8051   soname_spec='${libname}${release}${shared_ext}$major'
8052   ;;
8053
8054 aix4* | aix5*)
8055   version_type=linux
8056   need_lib_prefix=no
8057   need_version=no
8058   hardcode_into_libs=yes
8059   if test "$host_cpu" = ia64; then
8060     # AIX 5 supports IA64
8061     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8062     shlibpath_var=LD_LIBRARY_PATH
8063   else
8064     # With GCC up to 2.95.x, collect2 would create an import file
8065     # for dependence libraries.  The import file would start with
8066     # the line `#! .'.  This would cause the generated library to
8067     # depend on `.', always an invalid library.  This was fixed in
8068     # development snapshots of GCC prior to 3.0.
8069     case $host_os in
8070       aix4 | aix4.[01] | aix4.[01].*)
8071       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8072            echo ' yes '
8073            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8074         :
8075       else
8076         can_build_shared=no
8077       fi
8078       ;;
8079     esac
8080     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8081     # soname into executable. Probably we can add versioning support to
8082     # collect2, so additional links can be useful in future.
8083     if test "$aix_use_runtimelinking" = yes; then
8084       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8085       # instead of lib<name>.a to let people know that these are not
8086       # typical AIX shared libraries.
8087       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8088     else
8089       # We preserve .a as extension for shared libraries through AIX4.2
8090       # and later when we are not doing run time linking.
8091       library_names_spec='${libname}${release}.a $libname.a'
8092       soname_spec='${libname}${release}${shared_ext}$major'
8093     fi
8094     shlibpath_var=LIBPATH
8095   fi
8096   ;;
8097
8098 amigaos*)
8099   if test "$host_cpu" = m68k; then
8100     library_names_spec='$libname.ixlibrary $libname.a'
8101     # Create ${libname}_ixlibrary.a entries in /sys/libs.
8102     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'
8103   else
8104     dynamic_linker=no
8105   fi
8106   ;;
8107
8108 beos*)
8109   library_names_spec='${libname}${shared_ext}'
8110   dynamic_linker="$host_os ld.so"
8111   shlibpath_var=LIBRARY_PATH
8112   ;;
8113
8114 bsdi[45]*)
8115   version_type=linux
8116   need_version=no
8117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8118   soname_spec='${libname}${release}${shared_ext}$major'
8119   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8120   shlibpath_var=LD_LIBRARY_PATH
8121   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8122   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8123   # the default ld.so.conf also contains /usr/contrib/lib and
8124   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8125   # libtool to hard-code these into programs
8126   ;;
8127
8128 cygwin* | mingw* | pw32*)
8129   version_type=windows
8130   shrext_cmds=".dll"
8131   need_version=no
8132   need_lib_prefix=no
8133
8134   case $withGCC,$host_os in
8135   yes,cygwin* | yes,mingw* | yes,pw32*)
8136     library_names_spec='$libname.dll.a'
8137     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8138     postinstall_cmds='base_file=`basename \${file}`~
8139       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8140       dldir=$destdir/`dirname \$dlpath`~
8141       test -d \$dldir || mkdir -p \$dldir~
8142       $install_prog $dir/$dlname \$dldir/$dlname~
8143       chmod a+x \$dldir/$dlname~
8144       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8145         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8146       fi'
8147     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8148       dlpath=$dir/\$dldll~
8149        $RM \$dlpath'
8150     shlibpath_overrides_runpath=yes
8151
8152     case $host_os in
8153     cygwin*)
8154       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8155       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8156       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8157       ;;
8158     mingw*)
8159       # MinGW DLLs use traditional 'lib' prefix
8160       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8161       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8162       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8163         # It is most probably a Windows format PATH printed by
8164         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8165         # path with ; separators, and with drive letters. We can handle the
8166         # drive letters (cygwin fileutils understands them), so leave them,
8167         # especially as we might pass files found there to a mingw objdump,
8168         # which wouldn't understand a cygwinified path. Ahh.
8169         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8170       else
8171         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8172       fi
8173       ;;
8174     pw32*)
8175       # pw32 DLLs use 'pw' prefix rather than 'lib'
8176       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8177       ;;
8178     esac
8179     ;;
8180
8181   *)
8182     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8183     ;;
8184   esac
8185   dynamic_linker='Win32 ld.exe'
8186   # FIXME: first we should search . and the directory the executable is in
8187   shlibpath_var=PATH
8188   ;;
8189
8190 darwin* | rhapsody*)
8191   dynamic_linker="$host_os dyld"
8192   version_type=darwin
8193   need_lib_prefix=no
8194   need_version=no
8195   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8196   soname_spec='${libname}${release}${major}$shared_ext'
8197   shlibpath_overrides_runpath=yes
8198   shlibpath_var=DYLD_LIBRARY_PATH
8199   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8200
8201   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8202   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8203   ;;
8204
8205 dgux*)
8206   version_type=linux
8207   need_lib_prefix=no
8208   need_version=no
8209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8210   soname_spec='${libname}${release}${shared_ext}$major'
8211   shlibpath_var=LD_LIBRARY_PATH
8212   ;;
8213
8214 freebsd1*)
8215   dynamic_linker=no
8216   ;;
8217
8218 freebsd* | dragonfly*)
8219   # DragonFly does not have aout.  When/if they implement a new
8220   # versioning mechanism, adjust this.
8221   if test -x /usr/bin/objformat; then
8222     objformat=`/usr/bin/objformat`
8223   else
8224     case $host_os in
8225     freebsd[123]*) objformat=aout ;;
8226     *) objformat=elf ;;
8227     esac
8228   fi
8229   version_type=freebsd-$objformat
8230   case $version_type in
8231     freebsd-elf*)
8232       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8233       need_version=no
8234       need_lib_prefix=no
8235       ;;
8236     freebsd-*)
8237       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8238       need_version=yes
8239       ;;
8240   esac
8241   shlibpath_var=LD_LIBRARY_PATH
8242   case $host_os in
8243   freebsd2*)
8244     shlibpath_overrides_runpath=yes
8245     ;;
8246   freebsd3.[01]* | freebsdelf3.[01]*)
8247     shlibpath_overrides_runpath=yes
8248     hardcode_into_libs=yes
8249     ;;
8250   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8251   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8252     shlibpath_overrides_runpath=no
8253     hardcode_into_libs=yes
8254     ;;
8255   *) # from 4.6 on, and DragonFly
8256     shlibpath_overrides_runpath=yes
8257     hardcode_into_libs=yes
8258     ;;
8259   esac
8260   ;;
8261
8262 gnu*)
8263   version_type=linux
8264   need_lib_prefix=no
8265   need_version=no
8266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8267   soname_spec='${libname}${release}${shared_ext}$major'
8268   shlibpath_var=LD_LIBRARY_PATH
8269   hardcode_into_libs=yes
8270   ;;
8271
8272 hpux9* | hpux10* | hpux11*)
8273   # Give a soname corresponding to the major version so that dld.sl refuses to
8274   # link against other versions.
8275   version_type=sunos
8276   need_lib_prefix=no
8277   need_version=no
8278   case $host_cpu in
8279   ia64*)
8280     shrext_cmds='.so'
8281     hardcode_into_libs=yes
8282     dynamic_linker="$host_os dld.so"
8283     shlibpath_var=LD_LIBRARY_PATH
8284     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8285     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8286     soname_spec='${libname}${release}${shared_ext}$major'
8287     if test "X$HPUX_IA64_MODE" = X32; then
8288       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8289     else
8290       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8291     fi
8292     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8293     ;;
8294   hppa*64*)
8295     shrext_cmds='.sl'
8296     hardcode_into_libs=yes
8297     dynamic_linker="$host_os dld.sl"
8298     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8299     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8300     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8301     soname_spec='${libname}${release}${shared_ext}$major'
8302     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8303     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8304     ;;
8305   *)
8306     shrext_cmds='.sl'
8307     dynamic_linker="$host_os dld.sl"
8308     shlibpath_var=SHLIB_PATH
8309     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8310     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8311     soname_spec='${libname}${release}${shared_ext}$major'
8312     ;;
8313   esac
8314   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8315   postinstall_cmds='chmod 555 $lib'
8316   ;;
8317
8318 interix[3-9]*)
8319   version_type=linux
8320   need_lib_prefix=no
8321   need_version=no
8322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8323   soname_spec='${libname}${release}${shared_ext}$major'
8324   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8325   shlibpath_var=LD_LIBRARY_PATH
8326   shlibpath_overrides_runpath=no
8327   hardcode_into_libs=yes
8328   ;;
8329
8330 irix5* | irix6* | nonstopux*)
8331   case $host_os in
8332     nonstopux*) version_type=nonstopux ;;
8333     *)
8334         if test "$lt_cv_prog_gnu_ld" = yes; then
8335                 version_type=linux
8336         else
8337                 version_type=irix
8338         fi ;;
8339   esac
8340   need_lib_prefix=no
8341   need_version=no
8342   soname_spec='${libname}${release}${shared_ext}$major'
8343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8344   case $host_os in
8345   irix5* | nonstopux*)
8346     libsuff= shlibsuff=
8347     ;;
8348   *)
8349     case $LD in # libtool.m4 will add one of these switches to LD
8350     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8351       libsuff= shlibsuff= libmagic=32-bit;;
8352     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8353       libsuff=32 shlibsuff=N32 libmagic=N32;;
8354     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8355       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8356     *) libsuff= shlibsuff= libmagic=never-match;;
8357     esac
8358     ;;
8359   esac
8360   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8361   shlibpath_overrides_runpath=no
8362   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8363   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8364   hardcode_into_libs=yes
8365   ;;
8366
8367 # No shared lib support for Linux oldld, aout, or coff.
8368 linux*oldld* | linux*aout* | linux*coff*)
8369   dynamic_linker=no
8370   ;;
8371
8372 # This must be Linux ELF.
8373 linux* | k*bsd*-gnu)
8374   version_type=linux
8375   need_lib_prefix=no
8376   need_version=no
8377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8378   soname_spec='${libname}${release}${shared_ext}$major'
8379   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8380   shlibpath_var=LD_LIBRARY_PATH
8381   shlibpath_overrides_runpath=no
8382   # Some binutils ld are patched to set DT_RUNPATH
8383   save_LDFLAGS=$LDFLAGS
8384   save_libdir=$libdir
8385   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8386        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8387   if test x$gcc_no_link = xyes; then
8388   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8389 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8390    { (exit 1); exit 1; }; }
8391 fi
8392 cat >conftest.$ac_ext <<_ACEOF
8393 /* confdefs.h.  */
8394 _ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h.  */
8398
8399 int
8400 main ()
8401 {
8402
8403   ;
8404   return 0;
8405 }
8406 _ACEOF
8407 rm -f conftest.$ac_objext conftest$ac_exeext
8408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8409   (eval $ac_link) 2>conftest.er1
8410   ac_status=$?
8411   grep -v '^ *+' conftest.er1 >conftest.err
8412   rm -f conftest.er1
8413   cat conftest.err >&5
8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415   (exit $ac_status); } &&
8416          { ac_try='test -z "$ac_c_werror_flag"
8417                          || test ! -s conftest.err'
8418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419   (eval $ac_try) 2>&5
8420   ac_status=$?
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); }; } &&
8423          { ac_try='test -s conftest$ac_exeext'
8424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425   (eval $ac_try) 2>&5
8426   ac_status=$?
8427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428   (exit $ac_status); }; }; then
8429   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8430   shlibpath_overrides_runpath=yes
8431 fi
8432
8433 else
8434   echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.$ac_ext >&5
8436
8437 fi
8438 rm -f conftest.err conftest.$ac_objext \
8439       conftest$ac_exeext conftest.$ac_ext
8440   LDFLAGS=$save_LDFLAGS
8441   libdir=$save_libdir
8442
8443   # This implies no fast_install, which is unacceptable.
8444   # Some rework will be needed to allow for fast_install
8445   # before this can be enabled.
8446   hardcode_into_libs=yes
8447
8448   # Append ld.so.conf contents to the search path
8449   if test -f /etc/ld.so.conf; then
8450     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' ' '`
8451     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8452   fi
8453
8454   # We used to test for /lib/ld.so.1 and disable shared libraries on
8455   # powerpc, because MkLinux only supported shared libraries with the
8456   # GNU dynamic linker.  Since this was broken with cross compilers,
8457   # most powerpc-linux boxes support dynamic linking these days and
8458   # people can always --disable-shared, the test was removed, and we
8459   # assume the GNU/Linux dynamic linker is in use.
8460   dynamic_linker='GNU/Linux ld.so'
8461   ;;
8462
8463 netbsd*)
8464   version_type=sunos
8465   need_lib_prefix=no
8466   need_version=no
8467   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8468     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8469     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8470     dynamic_linker='NetBSD (a.out) ld.so'
8471   else
8472     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8473     soname_spec='${libname}${release}${shared_ext}$major'
8474     dynamic_linker='NetBSD ld.elf_so'
8475   fi
8476   shlibpath_var=LD_LIBRARY_PATH
8477   shlibpath_overrides_runpath=yes
8478   hardcode_into_libs=yes
8479   ;;
8480
8481 newsos6)
8482   version_type=linux
8483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8484   shlibpath_var=LD_LIBRARY_PATH
8485   shlibpath_overrides_runpath=yes
8486   ;;
8487
8488 *nto* | *qnx*)
8489   version_type=qnx
8490   need_lib_prefix=no
8491   need_version=no
8492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8493   soname_spec='${libname}${release}${shared_ext}$major'
8494   shlibpath_var=LD_LIBRARY_PATH
8495   shlibpath_overrides_runpath=no
8496   hardcode_into_libs=yes
8497   dynamic_linker='ldqnx.so'
8498   ;;
8499
8500 openbsd*)
8501   version_type=sunos
8502   sys_lib_dlsearch_path_spec="/usr/lib"
8503   need_lib_prefix=no
8504   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8505   case $host_os in
8506     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
8507     *)                          need_version=no  ;;
8508   esac
8509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8510   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8511   shlibpath_var=LD_LIBRARY_PATH
8512   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8513     case $host_os in
8514       openbsd2.[89] | openbsd2.[89].*)
8515         shlibpath_overrides_runpath=no
8516         ;;
8517       *)
8518         shlibpath_overrides_runpath=yes
8519         ;;
8520       esac
8521   else
8522     shlibpath_overrides_runpath=yes
8523   fi
8524   ;;
8525
8526 os2*)
8527   libname_spec='$name'
8528   shrext_cmds=".dll"
8529   need_lib_prefix=no
8530   library_names_spec='$libname${shared_ext} $libname.a'
8531   dynamic_linker='OS/2 ld.exe'
8532   shlibpath_var=LIBPATH
8533   ;;
8534
8535 osf3* | osf4* | osf5*)
8536   version_type=osf
8537   need_lib_prefix=no
8538   need_version=no
8539   soname_spec='${libname}${release}${shared_ext}$major'
8540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8541   shlibpath_var=LD_LIBRARY_PATH
8542   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8543   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8544   ;;
8545
8546 rdos*)
8547   dynamic_linker=no
8548   ;;
8549
8550 solaris*)
8551   version_type=linux
8552   need_lib_prefix=no
8553   need_version=no
8554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8555   soname_spec='${libname}${release}${shared_ext}$major'
8556   shlibpath_var=LD_LIBRARY_PATH
8557   shlibpath_overrides_runpath=yes
8558   hardcode_into_libs=yes
8559   # ldd complains unless libraries are executable
8560   postinstall_cmds='chmod +x $lib'
8561   ;;
8562
8563 sunos4*)
8564   version_type=sunos
8565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8566   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8567   shlibpath_var=LD_LIBRARY_PATH
8568   shlibpath_overrides_runpath=yes
8569   if test "$with_gnu_ld" = yes; then
8570     need_lib_prefix=no
8571   fi
8572   need_version=yes
8573   ;;
8574
8575 sysv4 | sysv4.3*)
8576   version_type=linux
8577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8578   soname_spec='${libname}${release}${shared_ext}$major'
8579   shlibpath_var=LD_LIBRARY_PATH
8580   case $host_vendor in
8581     sni)
8582       shlibpath_overrides_runpath=no
8583       need_lib_prefix=no
8584       runpath_var=LD_RUN_PATH
8585       ;;
8586     siemens)
8587       need_lib_prefix=no
8588       ;;
8589     motorola)
8590       need_lib_prefix=no
8591       need_version=no
8592       shlibpath_overrides_runpath=no
8593       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8594       ;;
8595   esac
8596   ;;
8597
8598 sysv4*MP*)
8599   if test -d /usr/nec ;then
8600     version_type=linux
8601     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8602     soname_spec='$libname${shared_ext}.$major'
8603     shlibpath_var=LD_LIBRARY_PATH
8604   fi
8605   ;;
8606
8607 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8608   version_type=freebsd-elf
8609   need_lib_prefix=no
8610   need_version=no
8611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8612   soname_spec='${libname}${release}${shared_ext}$major'
8613   shlibpath_var=LD_LIBRARY_PATH
8614   shlibpath_overrides_runpath=yes
8615   hardcode_into_libs=yes
8616   if test "$with_gnu_ld" = yes; then
8617     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8618   else
8619     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8620     case $host_os in
8621       sco3.2v5*)
8622         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8623         ;;
8624     esac
8625   fi
8626   sys_lib_dlsearch_path_spec='/usr/lib'
8627   ;;
8628
8629 tpf*)
8630   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
8631   version_type=linux
8632   need_lib_prefix=no
8633   need_version=no
8634   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8635   shlibpath_var=LD_LIBRARY_PATH
8636   shlibpath_overrides_runpath=no
8637   hardcode_into_libs=yes
8638   ;;
8639
8640 uts4*)
8641   version_type=linux
8642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8643   soname_spec='${libname}${release}${shared_ext}$major'
8644   shlibpath_var=LD_LIBRARY_PATH
8645   ;;
8646
8647 *)
8648   dynamic_linker=no
8649   ;;
8650 esac
8651 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8652 echo "${ECHO_T}$dynamic_linker" >&6
8653 test "$dynamic_linker" = no && can_build_shared=no
8654
8655 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8656 if test "$GCC" = yes; then
8657   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8658 fi
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8747 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8748 hardcode_action=
8749 if test -n "$hardcode_libdir_flag_spec" ||
8750    test -n "$runpath_var" ||
8751    test "X$hardcode_automatic" = "Xyes" ; then
8752
8753   # We can hardcode non-existent directories.
8754   if test "$hardcode_direct" != no &&
8755      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8756      # have to relink, otherwise we might link with an installed library
8757      # when we should be linking with a yet-to-be-installed one
8758      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8759      test "$hardcode_minus_L" != no; then
8760     # Linking always hardcodes the temporary library directory.
8761     hardcode_action=relink
8762   else
8763     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8764     hardcode_action=immediate
8765   fi
8766 else
8767   # We cannot hardcode anything, or else we can only hardcode existing
8768   # directories.
8769   hardcode_action=unsupported
8770 fi
8771 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8772 echo "${ECHO_T}$hardcode_action" >&6
8773
8774 if test "$hardcode_action" = relink ||
8775    test "$inherit_rpath" = yes; then
8776   # Fast installation is not supported
8777   enable_fast_install=no
8778 elif test "$shlibpath_overrides_runpath" = yes ||
8779      test "$enable_shared" = no; then
8780   # Fast installation is not necessary
8781   enable_fast_install=needless
8782 fi
8783
8784
8785
8786
8787
8788
8789   if test "x$enable_dlopen" != xyes; then
8790   enable_dlopen=unknown
8791   enable_dlopen_self=unknown
8792   enable_dlopen_self_static=unknown
8793 else
8794   lt_cv_dlopen=no
8795   lt_cv_dlopen_libs=
8796
8797   case $host_os in
8798   beos*)
8799     lt_cv_dlopen="load_add_on"
8800     lt_cv_dlopen_libs=
8801     lt_cv_dlopen_self=yes
8802     ;;
8803
8804   mingw* | pw32*)
8805     lt_cv_dlopen="LoadLibrary"
8806     lt_cv_dlopen_libs=
8807     ;;
8808
8809   cygwin*)
8810     lt_cv_dlopen="dlopen"
8811     lt_cv_dlopen_libs=
8812     ;;
8813
8814   darwin*)
8815   # if libdl is installed we need to link against it
8816     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8817 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8818 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8819   echo $ECHO_N "(cached) $ECHO_C" >&6
8820 else
8821   ac_check_lib_save_LIBS=$LIBS
8822 LIBS="-ldl  $LIBS"
8823 if test x$gcc_no_link = xyes; then
8824   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8825 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8826    { (exit 1); exit 1; }; }
8827 fi
8828 cat >conftest.$ac_ext <<_ACEOF
8829 /* confdefs.h.  */
8830 _ACEOF
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h.  */
8834
8835 /* Override any gcc2 internal prototype to avoid an error.  */
8836 #ifdef __cplusplus
8837 extern "C"
8838 #endif
8839 /* We use char because int might match the return type of a gcc2
8840    builtin and then its argument prototype would still apply.  */
8841 char dlopen ();
8842 int
8843 main ()
8844 {
8845 dlopen ();
8846   ;
8847   return 0;
8848 }
8849 _ACEOF
8850 rm -f conftest.$ac_objext conftest$ac_exeext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8852   (eval $ac_link) 2>conftest.er1
8853   ac_status=$?
8854   grep -v '^ *+' conftest.er1 >conftest.err
8855   rm -f conftest.er1
8856   cat conftest.err >&5
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); } &&
8859          { ac_try='test -z "$ac_c_werror_flag"
8860                          || test ! -s conftest.err'
8861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862   (eval $ac_try) 2>&5
8863   ac_status=$?
8864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865   (exit $ac_status); }; } &&
8866          { ac_try='test -s conftest$ac_exeext'
8867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868   (eval $ac_try) 2>&5
8869   ac_status=$?
8870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871   (exit $ac_status); }; }; then
8872   ac_cv_lib_dl_dlopen=yes
8873 else
8874   echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8876
8877 ac_cv_lib_dl_dlopen=no
8878 fi
8879 rm -f conftest.err conftest.$ac_objext \
8880       conftest$ac_exeext conftest.$ac_ext
8881 LIBS=$ac_check_lib_save_LIBS
8882 fi
8883 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8884 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8885 if test $ac_cv_lib_dl_dlopen = yes; then
8886   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8887 else
8888
8889     lt_cv_dlopen="dyld"
8890     lt_cv_dlopen_libs=
8891     lt_cv_dlopen_self=yes
8892
8893 fi
8894
8895     ;;
8896
8897   *)
8898     echo "$as_me:$LINENO: checking for shl_load" >&5
8899 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8900 if test "${ac_cv_func_shl_load+set}" = set; then
8901   echo $ECHO_N "(cached) $ECHO_C" >&6
8902 else
8903   if test x$gcc_no_link = xyes; then
8904   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8905 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8906    { (exit 1); exit 1; }; }
8907 fi
8908 cat >conftest.$ac_ext <<_ACEOF
8909 /* confdefs.h.  */
8910 _ACEOF
8911 cat confdefs.h >>conftest.$ac_ext
8912 cat >>conftest.$ac_ext <<_ACEOF
8913 /* end confdefs.h.  */
8914 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8916 #define shl_load innocuous_shl_load
8917
8918 /* System header to define __stub macros and hopefully few prototypes,
8919     which can conflict with char shl_load (); below.
8920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8921     <limits.h> exists even on freestanding compilers.  */
8922
8923 #ifdef __STDC__
8924 # include <limits.h>
8925 #else
8926 # include <assert.h>
8927 #endif
8928
8929 #undef shl_load
8930
8931 /* Override any gcc2 internal prototype to avoid an error.  */
8932 #ifdef __cplusplus
8933 extern "C"
8934 {
8935 #endif
8936 /* We use char because int might match the return type of a gcc2
8937    builtin and then its argument prototype would still apply.  */
8938 char shl_load ();
8939 /* The GNU C library defines this for functions which it implements
8940     to always fail with ENOSYS.  Some functions are actually named
8941     something starting with __ and the normal name is an alias.  */
8942 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8943 choke me
8944 #else
8945 char (*f) () = shl_load;
8946 #endif
8947 #ifdef __cplusplus
8948 }
8949 #endif
8950
8951 int
8952 main ()
8953 {
8954 return f != shl_load;
8955   ;
8956   return 0;
8957 }
8958 _ACEOF
8959 rm -f conftest.$ac_objext conftest$ac_exeext
8960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8961   (eval $ac_link) 2>conftest.er1
8962   ac_status=$?
8963   grep -v '^ *+' conftest.er1 >conftest.err
8964   rm -f conftest.er1
8965   cat conftest.err >&5
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); } &&
8968          { ac_try='test -z "$ac_c_werror_flag"
8969                          || test ! -s conftest.err'
8970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971   (eval $ac_try) 2>&5
8972   ac_status=$?
8973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974   (exit $ac_status); }; } &&
8975          { ac_try='test -s conftest$ac_exeext'
8976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977   (eval $ac_try) 2>&5
8978   ac_status=$?
8979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980   (exit $ac_status); }; }; then
8981   ac_cv_func_shl_load=yes
8982 else
8983   echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8985
8986 ac_cv_func_shl_load=no
8987 fi
8988 rm -f conftest.err conftest.$ac_objext \
8989       conftest$ac_exeext conftest.$ac_ext
8990 fi
8991 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8992 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8993 if test $ac_cv_func_shl_load = yes; then
8994   lt_cv_dlopen="shl_load"
8995 else
8996   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8997 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8998 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8999   echo $ECHO_N "(cached) $ECHO_C" >&6
9000 else
9001   ac_check_lib_save_LIBS=$LIBS
9002 LIBS="-ldld  $LIBS"
9003 if test x$gcc_no_link = xyes; then
9004   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9005 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9006    { (exit 1); exit 1; }; }
9007 fi
9008 cat >conftest.$ac_ext <<_ACEOF
9009 /* confdefs.h.  */
9010 _ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h.  */
9014
9015 /* Override any gcc2 internal prototype to avoid an error.  */
9016 #ifdef __cplusplus
9017 extern "C"
9018 #endif
9019 /* We use char because int might match the return type of a gcc2
9020    builtin and then its argument prototype would still apply.  */
9021 char shl_load ();
9022 int
9023 main ()
9024 {
9025 shl_load ();
9026   ;
9027   return 0;
9028 }
9029 _ACEOF
9030 rm -f conftest.$ac_objext conftest$ac_exeext
9031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9032   (eval $ac_link) 2>conftest.er1
9033   ac_status=$?
9034   grep -v '^ *+' conftest.er1 >conftest.err
9035   rm -f conftest.er1
9036   cat conftest.err >&5
9037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038   (exit $ac_status); } &&
9039          { ac_try='test -z "$ac_c_werror_flag"
9040                          || test ! -s conftest.err'
9041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042   (eval $ac_try) 2>&5
9043   ac_status=$?
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   (exit $ac_status); }; } &&
9046          { ac_try='test -s conftest$ac_exeext'
9047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048   (eval $ac_try) 2>&5
9049   ac_status=$?
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); }; }; then
9052   ac_cv_lib_dld_shl_load=yes
9053 else
9054   echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.$ac_ext >&5
9056
9057 ac_cv_lib_dld_shl_load=no
9058 fi
9059 rm -f conftest.err conftest.$ac_objext \
9060       conftest$ac_exeext conftest.$ac_ext
9061 LIBS=$ac_check_lib_save_LIBS
9062 fi
9063 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9064 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9065 if test $ac_cv_lib_dld_shl_load = yes; then
9066   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9067 else
9068   echo "$as_me:$LINENO: checking for dlopen" >&5
9069 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9070 if test "${ac_cv_func_dlopen+set}" = set; then
9071   echo $ECHO_N "(cached) $ECHO_C" >&6
9072 else
9073   if test x$gcc_no_link = xyes; then
9074   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9075 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9076    { (exit 1); exit 1; }; }
9077 fi
9078 cat >conftest.$ac_ext <<_ACEOF
9079 /* confdefs.h.  */
9080 _ACEOF
9081 cat confdefs.h >>conftest.$ac_ext
9082 cat >>conftest.$ac_ext <<_ACEOF
9083 /* end confdefs.h.  */
9084 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9085    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9086 #define dlopen innocuous_dlopen
9087
9088 /* System header to define __stub macros and hopefully few prototypes,
9089     which can conflict with char dlopen (); below.
9090     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9091     <limits.h> exists even on freestanding compilers.  */
9092
9093 #ifdef __STDC__
9094 # include <limits.h>
9095 #else
9096 # include <assert.h>
9097 #endif
9098
9099 #undef dlopen
9100
9101 /* Override any gcc2 internal prototype to avoid an error.  */
9102 #ifdef __cplusplus
9103 extern "C"
9104 {
9105 #endif
9106 /* We use char because int might match the return type of a gcc2
9107    builtin and then its argument prototype would still apply.  */
9108 char dlopen ();
9109 /* The GNU C library defines this for functions which it implements
9110     to always fail with ENOSYS.  Some functions are actually named
9111     something starting with __ and the normal name is an alias.  */
9112 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9113 choke me
9114 #else
9115 char (*f) () = dlopen;
9116 #endif
9117 #ifdef __cplusplus
9118 }
9119 #endif
9120
9121 int
9122 main ()
9123 {
9124 return f != dlopen;
9125   ;
9126   return 0;
9127 }
9128 _ACEOF
9129 rm -f conftest.$ac_objext conftest$ac_exeext
9130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9131   (eval $ac_link) 2>conftest.er1
9132   ac_status=$?
9133   grep -v '^ *+' conftest.er1 >conftest.err
9134   rm -f conftest.er1
9135   cat conftest.err >&5
9136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137   (exit $ac_status); } &&
9138          { ac_try='test -z "$ac_c_werror_flag"
9139                          || test ! -s conftest.err'
9140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141   (eval $ac_try) 2>&5
9142   ac_status=$?
9143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144   (exit $ac_status); }; } &&
9145          { ac_try='test -s conftest$ac_exeext'
9146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147   (eval $ac_try) 2>&5
9148   ac_status=$?
9149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150   (exit $ac_status); }; }; then
9151   ac_cv_func_dlopen=yes
9152 else
9153   echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.$ac_ext >&5
9155
9156 ac_cv_func_dlopen=no
9157 fi
9158 rm -f conftest.err conftest.$ac_objext \
9159       conftest$ac_exeext conftest.$ac_ext
9160 fi
9161 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9162 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9163 if test $ac_cv_func_dlopen = yes; then
9164   lt_cv_dlopen="dlopen"
9165 else
9166   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9167 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9168 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9169   echo $ECHO_N "(cached) $ECHO_C" >&6
9170 else
9171   ac_check_lib_save_LIBS=$LIBS
9172 LIBS="-ldl  $LIBS"
9173 if test x$gcc_no_link = xyes; then
9174   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9175 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9176    { (exit 1); exit 1; }; }
9177 fi
9178 cat >conftest.$ac_ext <<_ACEOF
9179 /* confdefs.h.  */
9180 _ACEOF
9181 cat confdefs.h >>conftest.$ac_ext
9182 cat >>conftest.$ac_ext <<_ACEOF
9183 /* end confdefs.h.  */
9184
9185 /* Override any gcc2 internal prototype to avoid an error.  */
9186 #ifdef __cplusplus
9187 extern "C"
9188 #endif
9189 /* We use char because int might match the return type of a gcc2
9190    builtin and then its argument prototype would still apply.  */
9191 char dlopen ();
9192 int
9193 main ()
9194 {
9195 dlopen ();
9196   ;
9197   return 0;
9198 }
9199 _ACEOF
9200 rm -f conftest.$ac_objext conftest$ac_exeext
9201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9202   (eval $ac_link) 2>conftest.er1
9203   ac_status=$?
9204   grep -v '^ *+' conftest.er1 >conftest.err
9205   rm -f conftest.er1
9206   cat conftest.err >&5
9207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208   (exit $ac_status); } &&
9209          { ac_try='test -z "$ac_c_werror_flag"
9210                          || test ! -s conftest.err'
9211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212   (eval $ac_try) 2>&5
9213   ac_status=$?
9214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215   (exit $ac_status); }; } &&
9216          { ac_try='test -s conftest$ac_exeext'
9217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9218   (eval $ac_try) 2>&5
9219   ac_status=$?
9220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221   (exit $ac_status); }; }; then
9222   ac_cv_lib_dl_dlopen=yes
9223 else
9224   echo "$as_me: failed program was:" >&5
9225 sed 's/^/| /' conftest.$ac_ext >&5
9226
9227 ac_cv_lib_dl_dlopen=no
9228 fi
9229 rm -f conftest.err conftest.$ac_objext \
9230       conftest$ac_exeext conftest.$ac_ext
9231 LIBS=$ac_check_lib_save_LIBS
9232 fi
9233 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9234 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9235 if test $ac_cv_lib_dl_dlopen = yes; then
9236   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9237 else
9238   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9239 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9240 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9241   echo $ECHO_N "(cached) $ECHO_C" >&6
9242 else
9243   ac_check_lib_save_LIBS=$LIBS
9244 LIBS="-lsvld  $LIBS"
9245 if test x$gcc_no_link = xyes; then
9246   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9247 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9248    { (exit 1); exit 1; }; }
9249 fi
9250 cat >conftest.$ac_ext <<_ACEOF
9251 /* confdefs.h.  */
9252 _ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h.  */
9256
9257 /* Override any gcc2 internal prototype to avoid an error.  */
9258 #ifdef __cplusplus
9259 extern "C"
9260 #endif
9261 /* We use char because int might match the return type of a gcc2
9262    builtin and then its argument prototype would still apply.  */
9263 char dlopen ();
9264 int
9265 main ()
9266 {
9267 dlopen ();
9268   ;
9269   return 0;
9270 }
9271 _ACEOF
9272 rm -f conftest.$ac_objext conftest$ac_exeext
9273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9274   (eval $ac_link) 2>conftest.er1
9275   ac_status=$?
9276   grep -v '^ *+' conftest.er1 >conftest.err
9277   rm -f conftest.er1
9278   cat conftest.err >&5
9279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280   (exit $ac_status); } &&
9281          { ac_try='test -z "$ac_c_werror_flag"
9282                          || test ! -s conftest.err'
9283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284   (eval $ac_try) 2>&5
9285   ac_status=$?
9286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287   (exit $ac_status); }; } &&
9288          { ac_try='test -s conftest$ac_exeext'
9289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290   (eval $ac_try) 2>&5
9291   ac_status=$?
9292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293   (exit $ac_status); }; }; then
9294   ac_cv_lib_svld_dlopen=yes
9295 else
9296   echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.$ac_ext >&5
9298
9299 ac_cv_lib_svld_dlopen=no
9300 fi
9301 rm -f conftest.err conftest.$ac_objext \
9302       conftest$ac_exeext conftest.$ac_ext
9303 LIBS=$ac_check_lib_save_LIBS
9304 fi
9305 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9306 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9307 if test $ac_cv_lib_svld_dlopen = yes; then
9308   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9309 else
9310   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9311 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9312 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9313   echo $ECHO_N "(cached) $ECHO_C" >&6
9314 else
9315   ac_check_lib_save_LIBS=$LIBS
9316 LIBS="-ldld  $LIBS"
9317 if test x$gcc_no_link = xyes; then
9318   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9319 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9320    { (exit 1); exit 1; }; }
9321 fi
9322 cat >conftest.$ac_ext <<_ACEOF
9323 /* confdefs.h.  */
9324 _ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h.  */
9328
9329 /* Override any gcc2 internal prototype to avoid an error.  */
9330 #ifdef __cplusplus
9331 extern "C"
9332 #endif
9333 /* We use char because int might match the return type of a gcc2
9334    builtin and then its argument prototype would still apply.  */
9335 char dld_link ();
9336 int
9337 main ()
9338 {
9339 dld_link ();
9340   ;
9341   return 0;
9342 }
9343 _ACEOF
9344 rm -f conftest.$ac_objext conftest$ac_exeext
9345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9346   (eval $ac_link) 2>conftest.er1
9347   ac_status=$?
9348   grep -v '^ *+' conftest.er1 >conftest.err
9349   rm -f conftest.er1
9350   cat conftest.err >&5
9351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352   (exit $ac_status); } &&
9353          { ac_try='test -z "$ac_c_werror_flag"
9354                          || test ! -s conftest.err'
9355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356   (eval $ac_try) 2>&5
9357   ac_status=$?
9358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359   (exit $ac_status); }; } &&
9360          { ac_try='test -s conftest$ac_exeext'
9361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362   (eval $ac_try) 2>&5
9363   ac_status=$?
9364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365   (exit $ac_status); }; }; then
9366   ac_cv_lib_dld_dld_link=yes
9367 else
9368   echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9370
9371 ac_cv_lib_dld_dld_link=no
9372 fi
9373 rm -f conftest.err conftest.$ac_objext \
9374       conftest$ac_exeext conftest.$ac_ext
9375 LIBS=$ac_check_lib_save_LIBS
9376 fi
9377 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9378 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9379 if test $ac_cv_lib_dld_dld_link = yes; then
9380   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9381 fi
9382
9383
9384 fi
9385
9386
9387 fi
9388
9389
9390 fi
9391
9392
9393 fi
9394
9395
9396 fi
9397
9398     ;;
9399   esac
9400
9401   if test "x$lt_cv_dlopen" != xno; then
9402     enable_dlopen=yes
9403   else
9404     enable_dlopen=no
9405   fi
9406
9407   case $lt_cv_dlopen in
9408   dlopen)
9409     save_CPPFLAGS="$CPPFLAGS"
9410     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9411
9412     save_LDFLAGS="$LDFLAGS"
9413     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9414
9415     save_LIBS="$LIBS"
9416     LIBS="$lt_cv_dlopen_libs $LIBS"
9417
9418     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9419 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9420 if test "${lt_cv_dlopen_self+set}" = set; then
9421   echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423           if test "$cross_compiling" = yes; then :
9424   lt_cv_dlopen_self=cross
9425 else
9426   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9427   lt_status=$lt_dlunknown
9428   cat > conftest.$ac_ext <<_LT_EOF
9429 #line 9429 "configure"
9430 #include "confdefs.h"
9431
9432 #if HAVE_DLFCN_H
9433 #include <dlfcn.h>
9434 #endif
9435
9436 #include <stdio.h>
9437
9438 #ifdef RTLD_GLOBAL
9439 #  define LT_DLGLOBAL           RTLD_GLOBAL
9440 #else
9441 #  ifdef DL_GLOBAL
9442 #    define LT_DLGLOBAL         DL_GLOBAL
9443 #  else
9444 #    define LT_DLGLOBAL         0
9445 #  endif
9446 #endif
9447
9448 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9449    find out it does not work in some platform. */
9450 #ifndef LT_DLLAZY_OR_NOW
9451 #  ifdef RTLD_LAZY
9452 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9453 #  else
9454 #    ifdef DL_LAZY
9455 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9456 #    else
9457 #      ifdef RTLD_NOW
9458 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9459 #      else
9460 #        ifdef DL_NOW
9461 #          define LT_DLLAZY_OR_NOW      DL_NOW
9462 #        else
9463 #          define LT_DLLAZY_OR_NOW      0
9464 #        endif
9465 #      endif
9466 #    endif
9467 #  endif
9468 #endif
9469
9470 #ifdef __cplusplus
9471 extern "C" void exit (int);
9472 #endif
9473
9474 void fnord() { int i=42;}
9475 int main ()
9476 {
9477   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9478   int status = $lt_dlunknown;
9479
9480   if (self)
9481     {
9482       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9483       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9484       /* dlclose (self); */
9485     }
9486   else
9487     puts (dlerror ());
9488
9489     exit (status);
9490 }
9491 _LT_EOF
9492   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9493   (eval $ac_link) 2>&5
9494   ac_status=$?
9495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9497     (./conftest; exit; ) >&5 2>/dev/null
9498     lt_status=$?
9499     case x$lt_status in
9500       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9501       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9502       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9503     esac
9504   else :
9505     # compilation failed
9506     lt_cv_dlopen_self=no
9507   fi
9508 fi
9509 rm -fr conftest*
9510
9511
9512 fi
9513 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9514 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9515
9516     if test "x$lt_cv_dlopen_self" = xyes; then
9517       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9518       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9519 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9520 if test "${lt_cv_dlopen_self_static+set}" = set; then
9521   echo $ECHO_N "(cached) $ECHO_C" >&6
9522 else
9523           if test "$cross_compiling" = yes; then :
9524   lt_cv_dlopen_self_static=cross
9525 else
9526   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9527   lt_status=$lt_dlunknown
9528   cat > conftest.$ac_ext <<_LT_EOF
9529 #line 9529 "configure"
9530 #include "confdefs.h"
9531
9532 #if HAVE_DLFCN_H
9533 #include <dlfcn.h>
9534 #endif
9535
9536 #include <stdio.h>
9537
9538 #ifdef RTLD_GLOBAL
9539 #  define LT_DLGLOBAL           RTLD_GLOBAL
9540 #else
9541 #  ifdef DL_GLOBAL
9542 #    define LT_DLGLOBAL         DL_GLOBAL
9543 #  else
9544 #    define LT_DLGLOBAL         0
9545 #  endif
9546 #endif
9547
9548 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9549    find out it does not work in some platform. */
9550 #ifndef LT_DLLAZY_OR_NOW
9551 #  ifdef RTLD_LAZY
9552 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9553 #  else
9554 #    ifdef DL_LAZY
9555 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9556 #    else
9557 #      ifdef RTLD_NOW
9558 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9559 #      else
9560 #        ifdef DL_NOW
9561 #          define LT_DLLAZY_OR_NOW      DL_NOW
9562 #        else
9563 #          define LT_DLLAZY_OR_NOW      0
9564 #        endif
9565 #      endif
9566 #    endif
9567 #  endif
9568 #endif
9569
9570 #ifdef __cplusplus
9571 extern "C" void exit (int);
9572 #endif
9573
9574 void fnord() { int i=42;}
9575 int main ()
9576 {
9577   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9578   int status = $lt_dlunknown;
9579
9580   if (self)
9581     {
9582       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9583       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9584       /* dlclose (self); */
9585     }
9586   else
9587     puts (dlerror ());
9588
9589     exit (status);
9590 }
9591 _LT_EOF
9592   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9593   (eval $ac_link) 2>&5
9594   ac_status=$?
9595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9597     (./conftest; exit; ) >&5 2>/dev/null
9598     lt_status=$?
9599     case x$lt_status in
9600       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9601       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9602       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9603     esac
9604   else :
9605     # compilation failed
9606     lt_cv_dlopen_self_static=no
9607   fi
9608 fi
9609 rm -fr conftest*
9610
9611
9612 fi
9613 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9614 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9615     fi
9616
9617     CPPFLAGS="$save_CPPFLAGS"
9618     LDFLAGS="$save_LDFLAGS"
9619     LIBS="$save_LIBS"
9620     ;;
9621   esac
9622
9623   case $lt_cv_dlopen_self in
9624   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9625   *) enable_dlopen_self=unknown ;;
9626   esac
9627
9628   case $lt_cv_dlopen_self_static in
9629   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9630   *) enable_dlopen_self_static=unknown ;;
9631   esac
9632 fi
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650 striplib=
9651 old_striplib=
9652 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9653 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9654 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9655   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9656   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9657   echo "$as_me:$LINENO: result: yes" >&5
9658 echo "${ECHO_T}yes" >&6
9659 else
9660 # FIXME - insert some real tests, host_os isn't really good enough
9661   case $host_os in
9662   darwin*)
9663     if test -n "$STRIP" ; then
9664       striplib="$STRIP -x"
9665       old_striplib="$STRIP -S"
9666       echo "$as_me:$LINENO: result: yes" >&5
9667 echo "${ECHO_T}yes" >&6
9668     else
9669       echo "$as_me:$LINENO: result: no" >&5
9670 echo "${ECHO_T}no" >&6
9671     fi
9672     ;;
9673   *)
9674     echo "$as_me:$LINENO: result: no" >&5
9675 echo "${ECHO_T}no" >&6
9676     ;;
9677   esac
9678 fi
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691   # Report which library types will actually be built
9692   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9693 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9694   echo "$as_me:$LINENO: result: $can_build_shared" >&5
9695 echo "${ECHO_T}$can_build_shared" >&6
9696
9697   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9698 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9699   test "$can_build_shared" = "no" && enable_shared=no
9700
9701   # On AIX, shared libraries and static libraries use the same namespace, and
9702   # are all built from PIC.
9703   case $host_os in
9704   aix3*)
9705     test "$enable_shared" = yes && enable_static=no
9706     if test -n "$RANLIB"; then
9707       archive_cmds="$archive_cmds~\$RANLIB \$lib"
9708       postinstall_cmds='$RANLIB $lib'
9709     fi
9710     ;;
9711
9712   aix4* | aix5*)
9713     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9714       test "$enable_shared" = yes && enable_static=no
9715     fi
9716     ;;
9717   esac
9718   echo "$as_me:$LINENO: result: $enable_shared" >&5
9719 echo "${ECHO_T}$enable_shared" >&6
9720
9721   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9722 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9723   # Make sure either enable_shared or enable_static is yes.
9724   test "$enable_shared" = yes || enable_static=yes
9725   echo "$as_me:$LINENO: result: $enable_static" >&5
9726 echo "${ECHO_T}$enable_static" >&6
9727
9728
9729
9730
9731 fi
9732 ac_ext=c
9733 ac_cpp='$CPP $CPPFLAGS'
9734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9737
9738 CC="$lt_save_CC"
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752                   ac_config_commands="$ac_config_commands libtool"
9753
9754
9755
9756
9757 # Only expand once:
9758
9759
9760
9761 if test "x$CC" != xcc; then
9762   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
9763 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
9764 else
9765   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
9766 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
9767 fi
9768 set dummy $CC; ac_cc=`echo $2 |
9769                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
9770 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
9771   echo $ECHO_N "(cached) $ECHO_C" >&6
9772 else
9773   cat >conftest.$ac_ext <<_ACEOF
9774 /* confdefs.h.  */
9775 _ACEOF
9776 cat confdefs.h >>conftest.$ac_ext
9777 cat >>conftest.$ac_ext <<_ACEOF
9778 /* end confdefs.h.  */
9779
9780 int
9781 main ()
9782 {
9783
9784   ;
9785   return 0;
9786 }
9787 _ACEOF
9788 # Make sure it works both with $CC and with simple cc.
9789 # We do the test twice because some compilers refuse to overwrite an
9790 # existing .o file with -o, though they will create one.
9791 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
9792 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793   (eval $ac_try) 2>&5
9794   ac_status=$?
9795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796   (exit $ac_status); } &&
9797    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9798   (eval $ac_try) 2>&5
9799   ac_status=$?
9800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801   (exit $ac_status); };
9802 then
9803   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
9804   if test "x$CC" != xcc; then
9805     # Test first that cc exists at all.
9806     if { ac_try='cc -c conftest.$ac_ext >&5'
9807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808   (eval $ac_try) 2>&5
9809   ac_status=$?
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); }; }; then
9812       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
9813       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814   (eval $ac_try) 2>&5
9815   ac_status=$?
9816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817   (exit $ac_status); } &&
9818          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819   (eval $ac_try) 2>&5
9820   ac_status=$?
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); };
9823       then
9824         # cc works too.
9825         :
9826       else
9827         # cc exists but doesn't like -o.
9828         eval ac_cv_prog_cc_${ac_cc}_c_o=no
9829       fi
9830     fi
9831   fi
9832 else
9833   eval ac_cv_prog_cc_${ac_cc}_c_o=no
9834 fi
9835 rm -f conftest*
9836
9837 fi
9838 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
9839   echo "$as_me:$LINENO: result: yes" >&5
9840 echo "${ECHO_T}yes" >&6
9841 else
9842   echo "$as_me:$LINENO: result: no" >&5
9843 echo "${ECHO_T}no" >&6
9844
9845 cat >>confdefs.h <<\_ACEOF
9846 #define NO_MINUS_C_MINUS_O 1
9847 _ACEOF
9848
9849 fi
9850
9851 # expand $ac_aux_dir to an absolute path
9852 am_aux_dir=`cd $ac_aux_dir && pwd`
9853
9854 # FIXME: we rely on the cache variable name because
9855 # there is no other way.
9856 set dummy $CC
9857 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
9858 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
9859    # Losing compiler, so override with the script.
9860    # FIXME: It is wrong to rewrite CC.
9861    # But if we don't then we get into trouble of one sort or another.
9862    # A longer-term fix would be to have automake use am__CC in this case,
9863    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
9864    CC="$am_aux_dir/compile $CC"
9865 fi
9866
9867
9868 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9869 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9870 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9871 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9872   echo $ECHO_N "(cached) $ECHO_C" >&6
9873 else
9874   cat >conftest.make <<\_ACEOF
9875 all:
9876         @echo 'ac_maketemp="$(MAKE)"'
9877 _ACEOF
9878 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9879 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
9880 if test -n "$ac_maketemp"; then
9881   eval ac_cv_prog_make_${ac_make}_set=yes
9882 else
9883   eval ac_cv_prog_make_${ac_make}_set=no
9884 fi
9885 rm -f conftest.make
9886 fi
9887 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
9888   echo "$as_me:$LINENO: result: yes" >&5
9889 echo "${ECHO_T}yes" >&6
9890   SET_MAKE=
9891 else
9892   echo "$as_me:$LINENO: result: no" >&5
9893 echo "${ECHO_T}no" >&6
9894   SET_MAKE="MAKE=${MAKE-make}"
9895 fi
9896
9897
9898 # -------
9899 # Headers
9900 # -------
9901
9902 # Sanity check for the cross-compilation case:
9903 if test "${ac_cv_header_stdio_h+set}" = set; then
9904   echo "$as_me:$LINENO: checking for stdio.h" >&5
9905 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
9906 if test "${ac_cv_header_stdio_h+set}" = set; then
9907   echo $ECHO_N "(cached) $ECHO_C" >&6
9908 fi
9909 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
9910 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
9911 else
9912   # Is the header compilable?
9913 echo "$as_me:$LINENO: checking stdio.h usability" >&5
9914 echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
9915 cat >conftest.$ac_ext <<_ACEOF
9916 /* confdefs.h.  */
9917 _ACEOF
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h.  */
9921 $ac_includes_default
9922 #include <stdio.h>
9923 _ACEOF
9924 rm -f conftest.$ac_objext
9925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9926   (eval $ac_compile) 2>conftest.er1
9927   ac_status=$?
9928   grep -v '^ *+' conftest.er1 >conftest.err
9929   rm -f conftest.er1
9930   cat conftest.err >&5
9931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932   (exit $ac_status); } &&
9933          { ac_try='test -z "$ac_c_werror_flag"
9934                          || test ! -s conftest.err'
9935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936   (eval $ac_try) 2>&5
9937   ac_status=$?
9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939   (exit $ac_status); }; } &&
9940          { ac_try='test -s conftest.$ac_objext'
9941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942   (eval $ac_try) 2>&5
9943   ac_status=$?
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); }; }; then
9946   ac_header_compiler=yes
9947 else
9948   echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9950
9951 ac_header_compiler=no
9952 fi
9953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9955 echo "${ECHO_T}$ac_header_compiler" >&6
9956
9957 # Is the header present?
9958 echo "$as_me:$LINENO: checking stdio.h presence" >&5
9959 echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
9960 cat >conftest.$ac_ext <<_ACEOF
9961 /* confdefs.h.  */
9962 _ACEOF
9963 cat confdefs.h >>conftest.$ac_ext
9964 cat >>conftest.$ac_ext <<_ACEOF
9965 /* end confdefs.h.  */
9966 #include <stdio.h>
9967 _ACEOF
9968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9969   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9970   ac_status=$?
9971   grep -v '^ *+' conftest.er1 >conftest.err
9972   rm -f conftest.er1
9973   cat conftest.err >&5
9974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975   (exit $ac_status); } >/dev/null; then
9976   if test -s conftest.err; then
9977     ac_cpp_err=$ac_c_preproc_warn_flag
9978     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9979   else
9980     ac_cpp_err=
9981   fi
9982 else
9983   ac_cpp_err=yes
9984 fi
9985 if test -z "$ac_cpp_err"; then
9986   ac_header_preproc=yes
9987 else
9988   echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9990
9991   ac_header_preproc=no
9992 fi
9993 rm -f conftest.err conftest.$ac_ext
9994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9995 echo "${ECHO_T}$ac_header_preproc" >&6
9996
9997 # So?  What about this header?
9998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9999   yes:no: )
10000     { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
10001 echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10002     { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
10003 echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
10004     ac_header_preproc=yes
10005     ;;
10006   no:yes:* )
10007     { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
10008 echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
10009     { echo "$as_me:$LINENO: WARNING: stdio.h:     check for missing prerequisite headers?" >&5
10010 echo "$as_me: WARNING: stdio.h:     check for missing prerequisite headers?" >&2;}
10011     { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
10012 echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
10013     { echo "$as_me:$LINENO: WARNING: stdio.h:     section \"Present But Cannot Be Compiled\"" >&5
10014 echo "$as_me: WARNING: stdio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10015     { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
10016 echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
10017     { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
10018 echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
10019     (
10020       cat <<\_ASBOX
10021 ## ----------------------------------------- ##
10022 ## Report this to the package-unused lists.  ##
10023 ## ----------------------------------------- ##
10024 _ASBOX
10025     ) |
10026       sed "s/^/$as_me: WARNING:     /" >&2
10027     ;;
10028 esac
10029 echo "$as_me:$LINENO: checking for stdio.h" >&5
10030 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
10031 if test "${ac_cv_header_stdio_h+set}" = set; then
10032   echo $ECHO_N "(cached) $ECHO_C" >&6
10033 else
10034   ac_cv_header_stdio_h=$ac_header_preproc
10035 fi
10036 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
10037 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
10038
10039 fi
10040 if test $ac_cv_header_stdio_h = yes; then
10041   :
10042 else
10043   { { echo "$as_me:$LINENO: error: Can't find stdio.h.
10044 You must have a usable C system for the target already installed, at least
10045 including headers and, preferably, the library, before you can configure
10046 the Objective C runtime system.  If necessary, install gcc now with
10047 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&5
10048 echo "$as_me: error: Can't find stdio.h.
10049 You must have a usable C system for the target already installed, at least
10050 including headers and, preferably, the library, before you can configure
10051 the Objective C runtime system.  If necessary, install gcc now with
10052 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&2;}
10053    { (exit 1); exit 1; }; }
10054 fi
10055
10056
10057
10058 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10059 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10060 if test "${ac_cv_header_stdc+set}" = set; then
10061   echo $ECHO_N "(cached) $ECHO_C" >&6
10062 else
10063   cat >conftest.$ac_ext <<_ACEOF
10064 /* confdefs.h.  */
10065 _ACEOF
10066 cat confdefs.h >>conftest.$ac_ext
10067 cat >>conftest.$ac_ext <<_ACEOF
10068 /* end confdefs.h.  */
10069 #include <stdlib.h>
10070 #include <stdarg.h>
10071 #include <string.h>
10072 #include <float.h>
10073
10074 int
10075 main ()
10076 {
10077
10078   ;
10079   return 0;
10080 }
10081 _ACEOF
10082 rm -f conftest.$ac_objext
10083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10084   (eval $ac_compile) 2>conftest.er1
10085   ac_status=$?
10086   grep -v '^ *+' conftest.er1 >conftest.err
10087   rm -f conftest.er1
10088   cat conftest.err >&5
10089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090   (exit $ac_status); } &&
10091          { ac_try='test -z "$ac_c_werror_flag"
10092                          || test ! -s conftest.err'
10093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094   (eval $ac_try) 2>&5
10095   ac_status=$?
10096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097   (exit $ac_status); }; } &&
10098          { ac_try='test -s conftest.$ac_objext'
10099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100   (eval $ac_try) 2>&5
10101   ac_status=$?
10102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103   (exit $ac_status); }; }; then
10104   ac_cv_header_stdc=yes
10105 else
10106   echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10108
10109 ac_cv_header_stdc=no
10110 fi
10111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10112
10113 if test $ac_cv_header_stdc = yes; then
10114   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10115   cat >conftest.$ac_ext <<_ACEOF
10116 /* confdefs.h.  */
10117 _ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h.  */
10121 #include <string.h>
10122
10123 _ACEOF
10124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10125   $EGREP "memchr" >/dev/null 2>&1; then
10126   :
10127 else
10128   ac_cv_header_stdc=no
10129 fi
10130 rm -f conftest*
10131
10132 fi
10133
10134 if test $ac_cv_header_stdc = yes; then
10135   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10136   cat >conftest.$ac_ext <<_ACEOF
10137 /* confdefs.h.  */
10138 _ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h.  */
10142 #include <stdlib.h>
10143
10144 _ACEOF
10145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10146   $EGREP "free" >/dev/null 2>&1; then
10147   :
10148 else
10149   ac_cv_header_stdc=no
10150 fi
10151 rm -f conftest*
10152
10153 fi
10154
10155 if test $ac_cv_header_stdc = yes; then
10156   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10157   if test "$cross_compiling" = yes; then
10158   :
10159 else
10160   cat >conftest.$ac_ext <<_ACEOF
10161 /* confdefs.h.  */
10162 _ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h.  */
10166 #include <ctype.h>
10167 #if ((' ' & 0x0FF) == 0x020)
10168 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10169 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10170 #else
10171 # define ISLOWER(c) \
10172                    (('a' <= (c) && (c) <= 'i') \
10173                      || ('j' <= (c) && (c) <= 'r') \
10174                      || ('s' <= (c) && (c) <= 'z'))
10175 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10176 #endif
10177
10178 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10179 int
10180 main ()
10181 {
10182   int i;
10183   for (i = 0; i < 256; i++)
10184     if (XOR (islower (i), ISLOWER (i))
10185         || toupper (i) != TOUPPER (i))
10186       exit(2);
10187   exit (0);
10188 }
10189 _ACEOF
10190 rm -f conftest$ac_exeext
10191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10192   (eval $ac_link) 2>&5
10193   ac_status=$?
10194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197   (eval $ac_try) 2>&5
10198   ac_status=$?
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); }; }; then
10201   :
10202 else
10203   echo "$as_me: program exited with status $ac_status" >&5
10204 echo "$as_me: failed program was:" >&5
10205 sed 's/^/| /' conftest.$ac_ext >&5
10206
10207 ( exit $ac_status )
10208 ac_cv_header_stdc=no
10209 fi
10210 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10211 fi
10212 fi
10213 fi
10214 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10215 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10216 if test $ac_cv_header_stdc = yes; then
10217
10218 cat >>confdefs.h <<\_ACEOF
10219 #define STDC_HEADERS 1
10220 _ACEOF
10221
10222 fi
10223
10224
10225
10226 for ac_header in sched.h
10227 do
10228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10230   echo "$as_me:$LINENO: checking for $ac_header" >&5
10231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10233   echo $ECHO_N "(cached) $ECHO_C" >&6
10234 fi
10235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10237 else
10238   # Is the header compilable?
10239 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10241 cat >conftest.$ac_ext <<_ACEOF
10242 /* confdefs.h.  */
10243 _ACEOF
10244 cat confdefs.h >>conftest.$ac_ext
10245 cat >>conftest.$ac_ext <<_ACEOF
10246 /* end confdefs.h.  */
10247 $ac_includes_default
10248 #include <$ac_header>
10249 _ACEOF
10250 rm -f conftest.$ac_objext
10251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10252   (eval $ac_compile) 2>conftest.er1
10253   ac_status=$?
10254   grep -v '^ *+' conftest.er1 >conftest.err
10255   rm -f conftest.er1
10256   cat conftest.err >&5
10257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258   (exit $ac_status); } &&
10259          { ac_try='test -z "$ac_c_werror_flag"
10260                          || test ! -s conftest.err'
10261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262   (eval $ac_try) 2>&5
10263   ac_status=$?
10264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265   (exit $ac_status); }; } &&
10266          { ac_try='test -s conftest.$ac_objext'
10267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268   (eval $ac_try) 2>&5
10269   ac_status=$?
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); }; }; then
10272   ac_header_compiler=yes
10273 else
10274   echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10276
10277 ac_header_compiler=no
10278 fi
10279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10280 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10281 echo "${ECHO_T}$ac_header_compiler" >&6
10282
10283 # Is the header present?
10284 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10286 cat >conftest.$ac_ext <<_ACEOF
10287 /* confdefs.h.  */
10288 _ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h.  */
10292 #include <$ac_header>
10293 _ACEOF
10294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10295   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10296   ac_status=$?
10297   grep -v '^ *+' conftest.er1 >conftest.err
10298   rm -f conftest.er1
10299   cat conftest.err >&5
10300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301   (exit $ac_status); } >/dev/null; then
10302   if test -s conftest.err; then
10303     ac_cpp_err=$ac_c_preproc_warn_flag
10304     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10305   else
10306     ac_cpp_err=
10307   fi
10308 else
10309   ac_cpp_err=yes
10310 fi
10311 if test -z "$ac_cpp_err"; then
10312   ac_header_preproc=yes
10313 else
10314   echo "$as_me: failed program was:" >&5
10315 sed 's/^/| /' conftest.$ac_ext >&5
10316
10317   ac_header_preproc=no
10318 fi
10319 rm -f conftest.err conftest.$ac_ext
10320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10321 echo "${ECHO_T}$ac_header_preproc" >&6
10322
10323 # So?  What about this header?
10324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10325   yes:no: )
10326     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10328     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10330     ac_header_preproc=yes
10331     ;;
10332   no:yes:* )
10333     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10335     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10336 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10337     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10339     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10340 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10343     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10345     (
10346       cat <<\_ASBOX
10347 ## ----------------------------------------- ##
10348 ## Report this to the package-unused lists.  ##
10349 ## ----------------------------------------- ##
10350 _ASBOX
10351     ) |
10352       sed "s/^/$as_me: WARNING:     /" >&2
10353     ;;
10354 esac
10355 echo "$as_me:$LINENO: checking for $ac_header" >&5
10356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10358   echo $ECHO_N "(cached) $ECHO_C" >&6
10359 else
10360   eval "$as_ac_Header=\$ac_header_preproc"
10361 fi
10362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10364
10365 fi
10366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10367   cat >>confdefs.h <<_ACEOF
10368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10369 _ACEOF
10370
10371 fi
10372
10373 done
10374
10375
10376 # -----------
10377 # Miscellanea
10378 # -----------
10379
10380 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
10381 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
10382 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
10383 echo "$as_me:$LINENO: result: $target_thread_file" >&5
10384 echo "${ECHO_T}$target_thread_file" >&6
10385
10386 if test $target_thread_file != single; then
10387
10388 cat >>confdefs.h <<\_ACEOF
10389 #define HAVE_GTHR_DEFAULT 1
10390 _ACEOF
10391
10392 fi
10393
10394
10395 echo "$as_me:$LINENO: checking for exception model to use" >&5
10396 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
10397 ac_ext=c
10398 ac_cpp='$CPP $CPPFLAGS'
10399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10402
10403 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
10404 if test "${enable_sjlj_exceptions+set}" = set; then
10405   enableval="$enable_sjlj_exceptions"
10406   :
10407 else
10408   cat > conftest.$ac_ext << EOF
10409 #line 10409 "configure"
10410 @interface Frob
10411 @end
10412 @implementation Frob
10413 @end
10414 int proc();
10415 int foo()
10416 {
10417   @try {
10418    return proc();
10419   }
10420   @catch (Frob* ex) {
10421     return 0;
10422   }
10423 }
10424 EOF
10425 old_CFLAGS="$CFLAGS"
10426 CFLAGS="-x objective-c -fgnu-runtime -fobjc-exceptions -S"
10427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10428   (eval $ac_compile) 2>&5
10429   ac_status=$?
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); }; then
10432   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
10433     enable_sjlj_exceptions=yes
10434   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
10435     enable_sjlj_exceptions=no
10436   fi
10437 fi
10438 CFLAGS="$old_CFLAGS"
10439 rm -f conftest*
10440 fi;
10441 if test x$enable_sjlj_exceptions = xyes; then
10442
10443 cat >>confdefs.h <<\_ACEOF
10444 #define SJLJ_EXCEPTIONS 1
10445 _ACEOF
10446
10447   ac_exception_model_name=sjlj
10448 elif test x$enable_sjlj_exceptions = xno; then
10449   ac_exception_model_name="call frame"
10450 else
10451   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
10452 echo "$as_me: error: unable to detect exception model" >&2;}
10453    { (exit 1); exit 1; }; }
10454 fi
10455 ac_ext=c
10456 ac_cpp='$CPP $CPPFLAGS'
10457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10460
10461 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
10462 echo "${ECHO_T}$ac_exception_model_name" >&6
10463
10464 # ------
10465 # Output
10466 # ------
10467
10468           ac_config_files="$ac_config_files Makefile"
10469
10470
10471           ac_config_commands="$ac_config_commands default"
10472
10473
10474 cat >confcache <<\_ACEOF
10475 # This file is a shell script that caches the results of configure
10476 # tests run on this system so they can be shared between configure
10477 # scripts and configure runs, see configure's option --config-cache.
10478 # It is not useful on other systems.  If it contains results you don't
10479 # want to keep, you may remove or edit it.
10480 #
10481 # config.status only pays attention to the cache file if you give it
10482 # the --recheck option to rerun configure.
10483 #
10484 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10485 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10486 # following values.
10487
10488 _ACEOF
10489
10490 # The following way of writing the cache mishandles newlines in values,
10491 # but we know of no workaround that is simple, portable, and efficient.
10492 # So, don't put newlines in cache variables' values.
10493 # Ultrix sh set writes to stderr and can't be redirected directly,
10494 # and sets the high bit in the cache file unless we assign to the vars.
10495 {
10496   (set) 2>&1 |
10497     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10498     *ac_space=\ *)
10499       # `set' does not quote correctly, so add quotes (double-quote
10500       # substitution turns \\\\ into \\, and sed turns \\ into \).
10501       sed -n \
10502         "s/'/'\\\\''/g;
10503           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10504       ;;
10505     *)
10506       # `set' quotes correctly as required by POSIX, so do not add quotes.
10507       sed -n \
10508         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10509       ;;
10510     esac;
10511 } |
10512   sed '
10513      t clear
10514      : clear
10515      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10516      t end
10517      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10518      : end' >>confcache
10519 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10520   if test -w $cache_file; then
10521     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10522     cat confcache >$cache_file
10523   else
10524     echo "not updating unwritable cache $cache_file"
10525   fi
10526 fi
10527 rm -f confcache
10528
10529 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10530 # Let make expand exec_prefix.
10531 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10532
10533 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10534 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10535 # trailing colons and then remove the whole line if VPATH becomes empty
10536 # (actually we leave an empty line to preserve line numbers).
10537 if test "x$srcdir" = x.; then
10538   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10539 s/:*\$(srcdir):*/:/;
10540 s/:*\${srcdir}:*/:/;
10541 s/:*@srcdir@:*/:/;
10542 s/^\([^=]*=[     ]*\):*/\1/;
10543 s/:*$//;
10544 s/^[^=]*=[       ]*$//;
10545 }'
10546 fi
10547
10548 DEFS=-DHAVE_CONFIG_H
10549
10550 ac_libobjs=
10551 ac_ltlibobjs=
10552 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10553   # 1. Remove the extension, and $U if already installed.
10554   ac_i=`echo "$ac_i" |
10555          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10556   # 2. Add them.
10557   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10558   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10559 done
10560 LIBOBJS=$ac_libobjs
10561
10562 LTLIBOBJS=$ac_ltlibobjs
10563
10564
10565 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10566   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10567 Usually this means the macro was only invoked conditionally." >&5
10568 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10569 Usually this means the macro was only invoked conditionally." >&2;}
10570    { (exit 1); exit 1; }; }
10571 fi
10572
10573 : ${CONFIG_STATUS=./config.status}
10574 ac_clean_files_save=$ac_clean_files
10575 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10576 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10577 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10578 cat >$CONFIG_STATUS <<_ACEOF
10579 #! $SHELL
10580 # Generated by $as_me.
10581 # Run this file to recreate the current configuration.
10582 # Compiler output produced by configure, useful for debugging
10583 # configure, is in config.log if it exists.
10584
10585 debug=false
10586 ac_cs_recheck=false
10587 ac_cs_silent=false
10588 SHELL=\${CONFIG_SHELL-$SHELL}
10589 _ACEOF
10590
10591 cat >>$CONFIG_STATUS <<\_ACEOF
10592 ## --------------------- ##
10593 ## M4sh Initialization.  ##
10594 ## --------------------- ##
10595
10596 # Be Bourne compatible
10597 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10598   emulate sh
10599   NULLCMD=:
10600   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10601   # is contrary to our usage.  Disable this feature.
10602   alias -g '${1+"$@"}'='"$@"'
10603 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10604   set -o posix
10605 fi
10606 DUALCASE=1; export DUALCASE # for MKS sh
10607
10608 # Support unset when possible.
10609 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10610   as_unset=unset
10611 else
10612   as_unset=false
10613 fi
10614
10615
10616 # Work around bugs in pre-3.0 UWIN ksh.
10617 $as_unset ENV MAIL MAILPATH
10618 PS1='$ '
10619 PS2='> '
10620 PS4='+ '
10621
10622 # NLS nuisances.
10623 for as_var in \
10624   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10625   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10626   LC_TELEPHONE LC_TIME
10627 do
10628   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10629     eval $as_var=C; export $as_var
10630   else
10631     $as_unset $as_var
10632   fi
10633 done
10634
10635 # Required to use basename.
10636 if expr a : '\(a\)' >/dev/null 2>&1; then
10637   as_expr=expr
10638 else
10639   as_expr=false
10640 fi
10641
10642 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10643   as_basename=basename
10644 else
10645   as_basename=false
10646 fi
10647
10648
10649 # Name of the executable.
10650 as_me=`$as_basename "$0" ||
10651 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10652          X"$0" : 'X\(//\)$' \| \
10653          X"$0" : 'X\(/\)$' \| \
10654          .     : '\(.\)' 2>/dev/null ||
10655 echo X/"$0" |
10656     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10657           /^X\/\(\/\/\)$/{ s//\1/; q; }
10658           /^X\/\(\/\).*/{ s//\1/; q; }
10659           s/.*/./; q'`
10660
10661
10662 # PATH needs CR, and LINENO needs CR and PATH.
10663 # Avoid depending upon Character Ranges.
10664 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10665 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10666 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10667 as_cr_digits='0123456789'
10668 as_cr_alnum=$as_cr_Letters$as_cr_digits
10669
10670 # The user is always right.
10671 if test "${PATH_SEPARATOR+set}" != set; then
10672   echo "#! /bin/sh" >conf$$.sh
10673   echo  "exit 0"   >>conf$$.sh
10674   chmod +x conf$$.sh
10675   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10676     PATH_SEPARATOR=';'
10677   else
10678     PATH_SEPARATOR=:
10679   fi
10680   rm -f conf$$.sh
10681 fi
10682
10683
10684   as_lineno_1=$LINENO
10685   as_lineno_2=$LINENO
10686   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10687   test "x$as_lineno_1" != "x$as_lineno_2" &&
10688   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10689   # Find who we are.  Look in the path if we contain no path at all
10690   # relative or not.
10691   case $0 in
10692     *[\\/]* ) as_myself=$0 ;;
10693     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10694 for as_dir in $PATH
10695 do
10696   IFS=$as_save_IFS
10697   test -z "$as_dir" && as_dir=.
10698   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10699 done
10700
10701        ;;
10702   esac
10703   # We did not find ourselves, most probably we were run as `sh COMMAND'
10704   # in which case we are not to be found in the path.
10705   if test "x$as_myself" = x; then
10706     as_myself=$0
10707   fi
10708   if test ! -f "$as_myself"; then
10709     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10710 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10711    { (exit 1); exit 1; }; }
10712   fi
10713   case $CONFIG_SHELL in
10714   '')
10715     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10716 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10717 do
10718   IFS=$as_save_IFS
10719   test -z "$as_dir" && as_dir=.
10720   for as_base in sh bash ksh sh5; do
10721          case $as_dir in
10722          /*)
10723            if ("$as_dir/$as_base" -c '
10724   as_lineno_1=$LINENO
10725   as_lineno_2=$LINENO
10726   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10727   test "x$as_lineno_1" != "x$as_lineno_2" &&
10728   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10729              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10730              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10731              CONFIG_SHELL=$as_dir/$as_base
10732              export CONFIG_SHELL
10733              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10734            fi;;
10735          esac
10736        done
10737 done
10738 ;;
10739   esac
10740
10741   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10742   # uniformly replaced by the line number.  The first 'sed' inserts a
10743   # line-number line before each line; the second 'sed' does the real
10744   # work.  The second script uses 'N' to pair each line-number line
10745   # with the numbered line, and appends trailing '-' during
10746   # substitution so that $LINENO is not a special case at line end.
10747   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10748   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10749   sed '=' <$as_myself |
10750     sed '
10751       N
10752       s,$,-,
10753       : loop
10754       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10755       t loop
10756       s,-$,,
10757       s,^['$as_cr_digits']*\n,,
10758     ' >$as_me.lineno &&
10759   chmod +x $as_me.lineno ||
10760     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10761 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10762    { (exit 1); exit 1; }; }
10763
10764   # Don't try to exec as it changes $[0], causing all sort of problems
10765   # (the dirname of $[0] is not the place where we might find the
10766   # original and so on.  Autoconf is especially sensible to this).
10767   . ./$as_me.lineno
10768   # Exit status is that of the last command.
10769   exit
10770 }
10771
10772
10773 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10774   *c*,-n*) ECHO_N= ECHO_C='
10775 ' ECHO_T='      ' ;;
10776   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10777   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10778 esac
10779
10780 if expr a : '\(a\)' >/dev/null 2>&1; then
10781   as_expr=expr
10782 else
10783   as_expr=false
10784 fi
10785
10786 rm -f conf$$ conf$$.exe conf$$.file
10787 echo >conf$$.file
10788 if ln -s conf$$.file conf$$ 2>/dev/null; then
10789   # We could just check for DJGPP; but this test a) works b) is more generic
10790   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10791   if test -f conf$$.exe; then
10792     # Don't use ln at all; we don't have any links
10793     as_ln_s='cp -p'
10794   else
10795     as_ln_s='ln -s'
10796   fi
10797 elif ln conf$$.file conf$$ 2>/dev/null; then
10798   as_ln_s=ln
10799 else
10800   as_ln_s='cp -p'
10801 fi
10802 rm -f conf$$ conf$$.exe conf$$.file
10803
10804 if mkdir -p . 2>/dev/null; then
10805   as_mkdir_p=:
10806 else
10807   test -d ./-p && rmdir ./-p
10808   as_mkdir_p=false
10809 fi
10810
10811 as_executable_p="test -f"
10812
10813 # Sed expression to map a string onto a valid CPP name.
10814 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10815
10816 # Sed expression to map a string onto a valid variable name.
10817 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10818
10819
10820 # IFS
10821 # We need space, tab and new line, in precisely that order.
10822 as_nl='
10823 '
10824 IFS="   $as_nl"
10825
10826 # CDPATH.
10827 $as_unset CDPATH
10828
10829 exec 6>&1
10830
10831 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10832 # report actual input values of CONFIG_FILES etc. instead of their
10833 # values after options handling.  Logging --version etc. is OK.
10834 exec 5>>config.log
10835 {
10836   echo
10837   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10838 ## Running $as_me. ##
10839 _ASBOX
10840 } >&5
10841 cat >&5 <<_CSEOF
10842
10843 This file was extended by package-unused $as_me version-unused, which was
10844 generated by GNU Autoconf 2.59.  Invocation command line was
10845
10846   CONFIG_FILES    = $CONFIG_FILES
10847   CONFIG_HEADERS  = $CONFIG_HEADERS
10848   CONFIG_LINKS    = $CONFIG_LINKS
10849   CONFIG_COMMANDS = $CONFIG_COMMANDS
10850   $ $0 $@
10851
10852 _CSEOF
10853 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10854 echo >&5
10855 _ACEOF
10856
10857 # Files that config.status was made for.
10858 if test -n "$ac_config_files"; then
10859   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10860 fi
10861
10862 if test -n "$ac_config_headers"; then
10863   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10864 fi
10865
10866 if test -n "$ac_config_links"; then
10867   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10868 fi
10869
10870 if test -n "$ac_config_commands"; then
10871   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10872 fi
10873
10874 cat >>$CONFIG_STATUS <<\_ACEOF
10875
10876 ac_cs_usage="\
10877 \`$as_me' instantiates files from templates according to the
10878 current configuration.
10879
10880 Usage: $0 [OPTIONS] [FILE]...
10881
10882   -h, --help       print this help, then exit
10883   -V, --version    print version number, then exit
10884   -q, --quiet      do not print progress messages
10885   -d, --debug      don't remove temporary files
10886       --recheck    update $as_me by reconfiguring in the same conditions
10887   --file=FILE[:TEMPLATE]
10888                    instantiate the configuration file FILE
10889   --header=FILE[:TEMPLATE]
10890                    instantiate the configuration header FILE
10891
10892 Configuration files:
10893 $config_files
10894
10895 Configuration headers:
10896 $config_headers
10897
10898 Configuration commands:
10899 $config_commands
10900
10901 Report bugs to <bug-autoconf@gnu.org>."
10902 _ACEOF
10903
10904 cat >>$CONFIG_STATUS <<_ACEOF
10905 ac_cs_version="\\
10906 package-unused config.status version-unused
10907 configured by $0, generated by GNU Autoconf 2.59,
10908   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10909
10910 Copyright (C) 2003 Free Software Foundation, Inc.
10911 This config.status script is free software; the Free Software Foundation
10912 gives unlimited permission to copy, distribute and modify it."
10913 srcdir=$srcdir
10914 INSTALL="$INSTALL"
10915 _ACEOF
10916
10917 cat >>$CONFIG_STATUS <<\_ACEOF
10918 # If no file are specified by the user, then we need to provide default
10919 # value.  By we need to know if files were specified by the user.
10920 ac_need_defaults=:
10921 while test $# != 0
10922 do
10923   case $1 in
10924   --*=*)
10925     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10926     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10927     ac_shift=:
10928     ;;
10929   -*)
10930     ac_option=$1
10931     ac_optarg=$2
10932     ac_shift=shift
10933     ;;
10934   *) # This is not an option, so the user has probably given explicit
10935      # arguments.
10936      ac_option=$1
10937      ac_need_defaults=false;;
10938   esac
10939
10940   case $ac_option in
10941   # Handling of the options.
10942 _ACEOF
10943 cat >>$CONFIG_STATUS <<\_ACEOF
10944   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10945     ac_cs_recheck=: ;;
10946   --version | --vers* | -V )
10947     echo "$ac_cs_version"; exit 0 ;;
10948   --he | --h)
10949     # Conflict between --help and --header
10950     { { echo "$as_me:$LINENO: error: ambiguous option: $1
10951 Try \`$0 --help' for more information." >&5
10952 echo "$as_me: error: ambiguous option: $1
10953 Try \`$0 --help' for more information." >&2;}
10954    { (exit 1); exit 1; }; };;
10955   --help | --hel | -h )
10956     echo "$ac_cs_usage"; exit 0 ;;
10957   --debug | --d* | -d )
10958     debug=: ;;
10959   --file | --fil | --fi | --f )
10960     $ac_shift
10961     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10962     ac_need_defaults=false;;
10963   --header | --heade | --head | --hea )
10964     $ac_shift
10965     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10966     ac_need_defaults=false;;
10967   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10968   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10969     ac_cs_silent=: ;;
10970
10971   # This is an error.
10972   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10973 Try \`$0 --help' for more information." >&5
10974 echo "$as_me: error: unrecognized option: $1
10975 Try \`$0 --help' for more information." >&2;}
10976    { (exit 1); exit 1; }; } ;;
10977
10978   *) ac_config_targets="$ac_config_targets $1" ;;
10979
10980   esac
10981   shift
10982 done
10983
10984 ac_configure_extra_args=
10985
10986 if $ac_cs_silent; then
10987   exec 6>/dev/null
10988   ac_configure_extra_args="$ac_configure_extra_args --silent"
10989 fi
10990
10991 _ACEOF
10992 cat >>$CONFIG_STATUS <<_ACEOF
10993 if \$ac_cs_recheck; then
10994   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10995   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10996 fi
10997
10998 _ACEOF
10999
11000 cat >>$CONFIG_STATUS <<_ACEOF
11001 #
11002 # INIT-COMMANDS section.
11003 #
11004
11005
11006 srcdir="$srcdir"
11007 host="$host"
11008 target="$target"
11009 with_multisubdir="$with_multisubdir"
11010 with_multisrctop="$with_multisrctop"
11011 with_target_subdir="$with_target_subdir"
11012 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11013 multi_basedir="$multi_basedir"
11014 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11015 CC="$CC"
11016
11017
11018 # The HP-UX ksh and POSIX shell print the target directory to stdout
11019 # if CDPATH is set.
11020 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11021
11022 sed_quote_subst='$sed_quote_subst'
11023 double_quote_subst='$double_quote_subst'
11024 delay_variable_subst='$delay_variable_subst'
11025 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
11026 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11027 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11028 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11029 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11030 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11031 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11032 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11033 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11034 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11035 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11036 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11037 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11038 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11039 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11040 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11041 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11042 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11043 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11044 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11045 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11046 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11047 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11048 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11049 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11050 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11051 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11052 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11053 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11054 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11055 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11056 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11057 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11058 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11059 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11060 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11061 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11062 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11063 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11064 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11065 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11066 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11067 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11068 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11069 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11070 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11071 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"`'
11072 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11073 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11074 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11075 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11076 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11077 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11078 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11079 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11080 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11081 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11082 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11083 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11084 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11085 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11086 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11087 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11088 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11089 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11090 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11091 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11092 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11093 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11094 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11095 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11096 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11097 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11098 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11099 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11100 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11101 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11102 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11103 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11104 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11105 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11106 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11107 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11108 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11109 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11110 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11111 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11112 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11113 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11114 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11115 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11116 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11117 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11118 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11119 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11120 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11121 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11122 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11123 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11124 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11125 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11126 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11127 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11128 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11129 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11130 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11131 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11132 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11133 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11134 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11135 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11136 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11137 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11138 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11139
11140 LTCC='$LTCC'
11141 LTCFLAGS='$LTCFLAGS'
11142 compiler='$compiler_DEFAULT'
11143
11144 # Quote evaled strings.
11145 for var in SED \
11146 GREP \
11147 EGREP \
11148 FGREP \
11149 LD \
11150 NM \
11151 LN_S \
11152 lt_SP2NL \
11153 lt_NL2SP \
11154 reload_flag \
11155 deplibs_check_method \
11156 file_magic_cmd \
11157 AR \
11158 AR_FLAGS \
11159 STRIP \
11160 RANLIB \
11161 CC \
11162 CFLAGS \
11163 compiler \
11164 lt_cv_sys_global_symbol_pipe \
11165 lt_cv_sys_global_symbol_to_cdecl \
11166 lt_cv_sys_global_symbol_to_c_name_address \
11167 SHELL \
11168 ECHO \
11169 lt_prog_compiler_no_builtin_flag \
11170 lt_prog_compiler_wl \
11171 lt_prog_compiler_pic \
11172 lt_prog_compiler_static \
11173 lt_cv_prog_compiler_c_o \
11174 need_locks \
11175 shrext_cmds \
11176 export_dynamic_flag_spec \
11177 whole_archive_flag_spec \
11178 compiler_needs_object \
11179 with_gnu_ld \
11180 allow_undefined_flag \
11181 no_undefined_flag \
11182 hardcode_libdir_flag_spec \
11183 hardcode_libdir_flag_spec_ld \
11184 hardcode_libdir_separator \
11185 fix_srcfile_path \
11186 exclude_expsyms \
11187 include_expsyms \
11188 file_list_spec \
11189 variables_saved_for_relink \
11190 libname_spec \
11191 library_names_spec \
11192 soname_spec \
11193 finish_eval \
11194 old_striplib \
11195 striplib; do
11196     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11197     *[\\\\\\\`\\"\\\$]*)
11198       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11199       ;;
11200     *)
11201       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11202       ;;
11203     esac
11204 done
11205
11206 # Double-quote double-evaled strings.
11207 for var in reload_cmds \
11208 old_postinstall_cmds \
11209 old_postuninstall_cmds \
11210 old_archive_cmds \
11211 extract_expsyms_cmds \
11212 old_archive_from_new_cmds \
11213 old_archive_from_expsyms_cmds \
11214 archive_cmds \
11215 archive_expsym_cmds \
11216 module_cmds \
11217 module_expsym_cmds \
11218 export_symbols_cmds \
11219 prelink_cmds \
11220 postinstall_cmds \
11221 postuninstall_cmds \
11222 finish_cmds \
11223 sys_lib_search_path_spec \
11224 sys_lib_dlsearch_path_spec; do
11225     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11226     *[\\\\\\\`\\"\\\$]*)
11227       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11228       ;;
11229     *)
11230       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11231       ;;
11232     esac
11233 done
11234
11235 # Fix-up fallback echo if it was mangled by the above quoting rules.
11236 case \$lt_ECHO in
11237 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11238   ;;
11239 esac
11240
11241 ac_aux_dir='$ac_aux_dir'
11242 xsi_shell='$xsi_shell'
11243 lt_shell_append='$lt_shell_append'
11244
11245 # See if we are running on zsh, and set the options which allow our
11246 # commands through without removal of \ escapes INIT.
11247 if test -n "\${ZSH_VERSION+set}" ; then
11248    setopt NO_GLOB_SUBST
11249 fi
11250
11251
11252     PACKAGE='$PACKAGE'
11253     VERSION='$VERSION'
11254     TIMESTAMP='$TIMESTAMP'
11255     RM='$RM'
11256     ofile='$ofile'
11257
11258
11259
11260 srcdir=${srcdir}
11261 host=${host}
11262 target=${target}
11263 with_target_subdir=${with_target_subdir}
11264 with_multisubdir=${with_multisubdir}
11265 ac_configure_args="--enable-multilib ${ac_configure_args}"
11266 multi_basedir=${multi_basedir}
11267 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11268 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
11269
11270
11271 _ACEOF
11272
11273
11274
11275 cat >>$CONFIG_STATUS <<\_ACEOF
11276 for ac_config_target in $ac_config_targets
11277 do
11278   case "$ac_config_target" in
11279   # Handling of arguments.
11280   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11281   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11282   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11283   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11284   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11285   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11286 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11287    { (exit 1); exit 1; }; };;
11288   esac
11289 done
11290
11291 # If the user did not use the arguments to specify the items to instantiate,
11292 # then the envvar interface is used.  Set only those that are not.
11293 # We use the long form for the default assignment because of an extremely
11294 # bizarre bug on SunOS 4.1.3.
11295 if $ac_need_defaults; then
11296   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11297   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11298   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11299 fi
11300
11301 # Have a temporary directory for convenience.  Make it in the build tree
11302 # simply because there is no reason to put it here, and in addition,
11303 # creating and moving files from /tmp can sometimes cause problems.
11304 # Create a temporary directory, and hook for its removal unless debugging.
11305 $debug ||
11306 {
11307   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11308   trap '{ (exit 1); exit 1; }' 1 2 13 15
11309 }
11310
11311 # Create a (secure) tmp directory for tmp files.
11312
11313 {
11314   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11315   test -n "$tmp" && test -d "$tmp"
11316 }  ||
11317 {
11318   tmp=./confstat$$-$RANDOM
11319   (umask 077 && mkdir $tmp)
11320 } ||
11321 {
11322    echo "$me: cannot create a temporary directory in ." >&2
11323    { (exit 1); exit 1; }
11324 }
11325
11326 _ACEOF
11327
11328 cat >>$CONFIG_STATUS <<_ACEOF
11329
11330 #
11331 # CONFIG_FILES section.
11332 #
11333
11334 # No need to generate the scripts if there are no CONFIG_FILES.
11335 # This happens for instance when ./config.status config.h
11336 if test -n "\$CONFIG_FILES"; then
11337   # Protect against being on the right side of a sed subst in config.status.
11338   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11339    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11340 s,@SHELL@,$SHELL,;t t
11341 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11342 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11343 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11344 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11345 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11346 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11347 s,@exec_prefix@,$exec_prefix,;t t
11348 s,@prefix@,$prefix,;t t
11349 s,@program_transform_name@,$program_transform_name,;t t
11350 s,@bindir@,$bindir,;t t
11351 s,@sbindir@,$sbindir,;t t
11352 s,@libexecdir@,$libexecdir,;t t
11353 s,@datadir@,$datadir,;t t
11354 s,@sysconfdir@,$sysconfdir,;t t
11355 s,@sharedstatedir@,$sharedstatedir,;t t
11356 s,@localstatedir@,$localstatedir,;t t
11357 s,@libdir@,$libdir,;t t
11358 s,@includedir@,$includedir,;t t
11359 s,@oldincludedir@,$oldincludedir,;t t
11360 s,@infodir@,$infodir,;t t
11361 s,@mandir@,$mandir,;t t
11362 s,@build_alias@,$build_alias,;t t
11363 s,@host_alias@,$host_alias,;t t
11364 s,@target_alias@,$target_alias,;t t
11365 s,@DEFS@,$DEFS,;t t
11366 s,@ECHO_C@,$ECHO_C,;t t
11367 s,@ECHO_N@,$ECHO_N,;t t
11368 s,@ECHO_T@,$ECHO_T,;t t
11369 s,@LIBS@,$LIBS,;t t
11370 s,@build@,$build,;t t
11371 s,@build_cpu@,$build_cpu,;t t
11372 s,@build_vendor@,$build_vendor,;t t
11373 s,@build_os@,$build_os,;t t
11374 s,@build_libsubdir@,$build_libsubdir,;t t
11375 s,@build_subdir@,$build_subdir,;t t
11376 s,@host_subdir@,$host_subdir,;t t
11377 s,@target_subdir@,$target_subdir,;t t
11378 s,@VERSION@,$VERSION,;t t
11379 s,@OBJC_BOEHM_GC@,$OBJC_BOEHM_GC,;t t
11380 s,@OBJC_BOEHM_GC_INCLUDES@,$OBJC_BOEHM_GC_INCLUDES,;t t
11381 s,@multi_basedir@,$multi_basedir,;t t
11382 s,@host@,$host,;t t
11383 s,@host_cpu@,$host_cpu,;t t
11384 s,@host_vendor@,$host_vendor,;t t
11385 s,@host_os@,$host_os,;t t
11386 s,@target@,$target,;t t
11387 s,@target_cpu@,$target_cpu,;t t
11388 s,@target_vendor@,$target_vendor,;t t
11389 s,@target_os@,$target_os,;t t
11390 s,@target_noncanonical@,$target_noncanonical,;t t
11391 s,@glibcpp_srcdir@,$glibcpp_srcdir,;t t
11392 s,@toolexecdir@,$toolexecdir,;t t
11393 s,@toolexeclibdir@,$toolexeclibdir,;t t
11394 s,@includedirname@,$includedirname,;t t
11395 s,@libsuffix@,$libsuffix,;t t
11396 s,@CC@,$CC,;t t
11397 s,@ac_ct_CC@,$ac_ct_CC,;t t
11398 s,@EXEEXT@,$EXEEXT,;t t
11399 s,@OBJEXT@,$OBJEXT,;t t
11400 s,@extra_ldflags_libobjc@,$extra_ldflags_libobjc,;t t
11401 s,@CFLAGS@,$CFLAGS,;t t
11402 s,@AS@,$AS,;t t
11403 s,@ac_ct_AS@,$ac_ct_AS,;t t
11404 s,@AR@,$AR,;t t
11405 s,@ac_ct_AR@,$ac_ct_AR,;t t
11406 s,@RANLIB@,$RANLIB,;t t
11407 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11408 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11409 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11410 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11411 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11412 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11413 s,@MAINT@,$MAINT,;t t
11414 s,@DLLTOOL@,$DLLTOOL,;t t
11415 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
11416 s,@OBJDUMP@,$OBJDUMP,;t t
11417 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
11418 s,@LIBTOOL@,$LIBTOOL,;t t
11419 s,@SED@,$SED,;t t
11420 s,@EGREP@,$EGREP,;t t
11421 s,@FGREP@,$FGREP,;t t
11422 s,@GREP@,$GREP,;t t
11423 s,@LD@,$LD,;t t
11424 s,@DUMPBIN@,$DUMPBIN,;t t
11425 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
11426 s,@NM@,$NM,;t t
11427 s,@LN_S@,$LN_S,;t t
11428 s,@STRIP@,$STRIP,;t t
11429 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11430 s,@lt_ECHO@,$lt_ECHO,;t t
11431 s,@CPP@,$CPP,;t t
11432 s,@CPPFLAGS@,$CPPFLAGS,;t t
11433 s,@SET_MAKE@,$SET_MAKE,;t t
11434 s,@LIBOBJS@,$LIBOBJS,;t t
11435 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11436 CEOF
11437
11438 _ACEOF
11439
11440   cat >>$CONFIG_STATUS <<\_ACEOF
11441   # Split the substitutions into bite-sized pieces for seds with
11442   # small command number limits, like on Digital OSF/1 and HP-UX.
11443   ac_max_sed_lines=48
11444   ac_sed_frag=1 # Number of current file.
11445   ac_beg=1 # First line for current file.
11446   ac_end=$ac_max_sed_lines # Line after last line for current file.
11447   ac_more_lines=:
11448   ac_sed_cmds=
11449   while $ac_more_lines; do
11450     if test $ac_beg -gt 1; then
11451       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11452     else
11453       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11454     fi
11455     if test ! -s $tmp/subs.frag; then
11456       ac_more_lines=false
11457     else
11458       # The purpose of the label and of the branching condition is to
11459       # speed up the sed processing (if there are no `@' at all, there
11460       # is no need to browse any of the substitutions).
11461       # These are the two extra sed commands mentioned above.
11462       (echo ':t
11463   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11464       if test -z "$ac_sed_cmds"; then
11465         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11466       else
11467         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11468       fi
11469       ac_sed_frag=`expr $ac_sed_frag + 1`
11470       ac_beg=$ac_end
11471       ac_end=`expr $ac_end + $ac_max_sed_lines`
11472     fi
11473   done
11474   if test -z "$ac_sed_cmds"; then
11475     ac_sed_cmds=cat
11476   fi
11477 fi # test -n "$CONFIG_FILES"
11478
11479 _ACEOF
11480 cat >>$CONFIG_STATUS <<\_ACEOF
11481 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11482   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11483   case $ac_file in
11484   - | *:- | *:-:* ) # input from stdin
11485         cat >$tmp/stdin
11486         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11487         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11488   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11489         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11490   * )   ac_file_in=$ac_file.in ;;
11491   esac
11492
11493   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11494   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11495 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11496          X"$ac_file" : 'X\(//\)[^/]' \| \
11497          X"$ac_file" : 'X\(//\)$' \| \
11498          X"$ac_file" : 'X\(/\)' \| \
11499          .     : '\(.\)' 2>/dev/null ||
11500 echo X"$ac_file" |
11501     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11502           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11503           /^X\(\/\/\)$/{ s//\1/; q; }
11504           /^X\(\/\).*/{ s//\1/; q; }
11505           s/.*/./; q'`
11506   { if $as_mkdir_p; then
11507     mkdir -p "$ac_dir"
11508   else
11509     as_dir="$ac_dir"
11510     as_dirs=
11511     while test ! -d "$as_dir"; do
11512       as_dirs="$as_dir $as_dirs"
11513       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11514 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11515          X"$as_dir" : 'X\(//\)[^/]' \| \
11516          X"$as_dir" : 'X\(//\)$' \| \
11517          X"$as_dir" : 'X\(/\)' \| \
11518          .     : '\(.\)' 2>/dev/null ||
11519 echo X"$as_dir" |
11520     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11521           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11522           /^X\(\/\/\)$/{ s//\1/; q; }
11523           /^X\(\/\).*/{ s//\1/; q; }
11524           s/.*/./; q'`
11525     done
11526     test ! -n "$as_dirs" || mkdir $as_dirs
11527   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11528 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11529    { (exit 1); exit 1; }; }; }
11530
11531   ac_builddir=.
11532
11533 if test "$ac_dir" != .; then
11534   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11535   # A "../" for each directory in $ac_dir_suffix.
11536   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11537 else
11538   ac_dir_suffix= ac_top_builddir=
11539 fi
11540
11541 case $srcdir in
11542   .)  # No --srcdir option.  We are building in place.
11543     ac_srcdir=.
11544     if test -z "$ac_top_builddir"; then
11545        ac_top_srcdir=.
11546     else
11547        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11548     fi ;;
11549   [\\/]* | ?:[\\/]* )  # Absolute path.
11550     ac_srcdir=$srcdir$ac_dir_suffix;
11551     ac_top_srcdir=$srcdir ;;
11552   *) # Relative path.
11553     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11554     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11555 esac
11556
11557 # Do not use `cd foo && pwd` to compute absolute paths, because
11558 # the directories may not exist.
11559 case `pwd` in
11560 .) ac_abs_builddir="$ac_dir";;
11561 *)
11562   case "$ac_dir" in
11563   .) ac_abs_builddir=`pwd`;;
11564   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11565   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11566   esac;;
11567 esac
11568 case $ac_abs_builddir in
11569 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11570 *)
11571   case ${ac_top_builddir}. in
11572   .) ac_abs_top_builddir=$ac_abs_builddir;;
11573   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11574   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11575   esac;;
11576 esac
11577 case $ac_abs_builddir in
11578 .) ac_abs_srcdir=$ac_srcdir;;
11579 *)
11580   case $ac_srcdir in
11581   .) ac_abs_srcdir=$ac_abs_builddir;;
11582   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11583   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11584   esac;;
11585 esac
11586 case $ac_abs_builddir in
11587 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11588 *)
11589   case $ac_top_srcdir in
11590   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11591   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11592   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11593   esac;;
11594 esac
11595
11596
11597   case $INSTALL in
11598   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11599   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11600   esac
11601
11602   if test x"$ac_file" != x-; then
11603     { echo "$as_me:$LINENO: creating $ac_file" >&5
11604 echo "$as_me: creating $ac_file" >&6;}
11605     rm -f "$ac_file"
11606   fi
11607   # Let's still pretend it is `configure' which instantiates (i.e., don't
11608   # use $as_me), people would be surprised to read:
11609   #    /* config.h.  Generated by config.status.  */
11610   if test x"$ac_file" = x-; then
11611     configure_input=
11612   else
11613     configure_input="$ac_file.  "
11614   fi
11615   configure_input=$configure_input"Generated from `echo $ac_file_in |
11616                                      sed 's,.*/,,'` by configure."
11617
11618   # First look for the input files in the build tree, otherwise in the
11619   # src tree.
11620   ac_file_inputs=`IFS=:
11621     for f in $ac_file_in; do
11622       case $f in
11623       -) echo $tmp/stdin ;;
11624       [\\/$]*)
11625          # Absolute (can't be DOS-style, as IFS=:)
11626          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11627 echo "$as_me: error: cannot find input file: $f" >&2;}
11628    { (exit 1); exit 1; }; }
11629          echo "$f";;
11630       *) # Relative
11631          if test -f "$f"; then
11632            # Build tree
11633            echo "$f"
11634          elif test -f "$srcdir/$f"; then
11635            # Source tree
11636            echo "$srcdir/$f"
11637          else
11638            # /dev/null tree
11639            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11640 echo "$as_me: error: cannot find input file: $f" >&2;}
11641    { (exit 1); exit 1; }; }
11642          fi;;
11643       esac
11644     done` || { (exit 1); exit 1; }
11645 _ACEOF
11646 cat >>$CONFIG_STATUS <<_ACEOF
11647   sed "$ac_vpsub
11648 $extrasub
11649 _ACEOF
11650 cat >>$CONFIG_STATUS <<\_ACEOF
11651 :t
11652 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11653 s,@configure_input@,$configure_input,;t t
11654 s,@srcdir@,$ac_srcdir,;t t
11655 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11656 s,@top_srcdir@,$ac_top_srcdir,;t t
11657 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11658 s,@builddir@,$ac_builddir,;t t
11659 s,@abs_builddir@,$ac_abs_builddir,;t t
11660 s,@top_builddir@,$ac_top_builddir,;t t
11661 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11662 s,@INSTALL@,$ac_INSTALL,;t t
11663 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11664   rm -f $tmp/stdin
11665   if test x"$ac_file" != x-; then
11666     mv $tmp/out $ac_file
11667   else
11668     cat $tmp/out
11669     rm -f $tmp/out
11670   fi
11671
11672 done
11673 _ACEOF
11674 cat >>$CONFIG_STATUS <<\_ACEOF
11675
11676 #
11677 # CONFIG_HEADER section.
11678 #
11679
11680 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11681 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11682 #
11683 # ac_d sets the value in "#define NAME VALUE" lines.
11684 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11685 ac_dB='[         ].*$,\1#\2'
11686 ac_dC=' '
11687 ac_dD=',;t'
11688 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11689 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11690 ac_uB='$,\1#\2define\3'
11691 ac_uC=' '
11692 ac_uD=',;t'
11693
11694 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11695   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11696   case $ac_file in
11697   - | *:- | *:-:* ) # input from stdin
11698         cat >$tmp/stdin
11699         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11700         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11701   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11702         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11703   * )   ac_file_in=$ac_file.in ;;
11704   esac
11705
11706   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11707 echo "$as_me: creating $ac_file" >&6;}
11708
11709   # First look for the input files in the build tree, otherwise in the
11710   # src tree.
11711   ac_file_inputs=`IFS=:
11712     for f in $ac_file_in; do
11713       case $f in
11714       -) echo $tmp/stdin ;;
11715       [\\/$]*)
11716          # Absolute (can't be DOS-style, as IFS=:)
11717          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11718 echo "$as_me: error: cannot find input file: $f" >&2;}
11719    { (exit 1); exit 1; }; }
11720          # Do quote $f, to prevent DOS paths from being IFS'd.
11721          echo "$f";;
11722       *) # Relative
11723          if test -f "$f"; then
11724            # Build tree
11725            echo "$f"
11726          elif test -f "$srcdir/$f"; then
11727            # Source tree
11728            echo "$srcdir/$f"
11729          else
11730            # /dev/null tree
11731            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11732 echo "$as_me: error: cannot find input file: $f" >&2;}
11733    { (exit 1); exit 1; }; }
11734          fi;;
11735       esac
11736     done` || { (exit 1); exit 1; }
11737   # Remove the trailing spaces.
11738   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11739
11740 _ACEOF
11741
11742 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11743 # `conftest.undefs', that substitutes the proper values into
11744 # config.h.in to produce config.h.  The first handles `#define'
11745 # templates, and the second `#undef' templates.
11746 # And first: Protect against being on the right side of a sed subst in
11747 # config.status.  Protect against being in an unquoted here document
11748 # in config.status.
11749 rm -f conftest.defines conftest.undefs
11750 # Using a here document instead of a string reduces the quoting nightmare.
11751 # Putting comments in sed scripts is not portable.
11752 #
11753 # `end' is used to avoid that the second main sed command (meant for
11754 # 0-ary CPP macros) applies to n-ary macro definitions.
11755 # See the Autoconf documentation for `clear'.
11756 cat >confdef2sed.sed <<\_ACEOF
11757 s/[\\&,]/\\&/g
11758 s,[\\$`],\\&,g
11759 t clear
11760 : clear
11761 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11762 t end
11763 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11764 : end
11765 _ACEOF
11766 # If some macros were called several times there might be several times
11767 # the same #defines, which is useless.  Nevertheless, we may not want to
11768 # sort them, since we want the *last* AC-DEFINE to be honored.
11769 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11770 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11771 rm -f confdef2sed.sed
11772
11773 # This sed command replaces #undef with comments.  This is necessary, for
11774 # example, in the case of _POSIX_SOURCE, which is predefined and required
11775 # on some systems where configure will not decide to define it.
11776 cat >>conftest.undefs <<\_ACEOF
11777 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11778 _ACEOF
11779
11780 # Break up conftest.defines because some shells have a limit on the size
11781 # of here documents, and old seds have small limits too (100 cmds).
11782 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11783 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11784 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11785 echo '  :' >>$CONFIG_STATUS
11786 rm -f conftest.tail
11787 while grep . conftest.defines >/dev/null
11788 do
11789   # Write a limited-size here document to $tmp/defines.sed.
11790   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11791   # Speed up: don't consider the non `#define' lines.
11792   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11793   # Work around the forget-to-reset-the-flag bug.
11794   echo 't clr' >>$CONFIG_STATUS
11795   echo ': clr' >>$CONFIG_STATUS
11796   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11797   echo 'CEOF
11798   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11799   rm -f $tmp/in
11800   mv $tmp/out $tmp/in
11801 ' >>$CONFIG_STATUS
11802   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11803   rm -f conftest.defines
11804   mv conftest.tail conftest.defines
11805 done
11806 rm -f conftest.defines
11807 echo '  fi # grep' >>$CONFIG_STATUS
11808 echo >>$CONFIG_STATUS
11809
11810 # Break up conftest.undefs because some shells have a limit on the size
11811 # of here documents, and old seds have small limits too (100 cmds).
11812 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11813 rm -f conftest.tail
11814 while grep . conftest.undefs >/dev/null
11815 do
11816   # Write a limited-size here document to $tmp/undefs.sed.
11817   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11818   # Speed up: don't consider the non `#undef'
11819   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11820   # Work around the forget-to-reset-the-flag bug.
11821   echo 't clr' >>$CONFIG_STATUS
11822   echo ': clr' >>$CONFIG_STATUS
11823   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11824   echo 'CEOF
11825   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11826   rm -f $tmp/in
11827   mv $tmp/out $tmp/in
11828 ' >>$CONFIG_STATUS
11829   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11830   rm -f conftest.undefs
11831   mv conftest.tail conftest.undefs
11832 done
11833 rm -f conftest.undefs
11834
11835 cat >>$CONFIG_STATUS <<\_ACEOF
11836   # Let's still pretend it is `configure' which instantiates (i.e., don't
11837   # use $as_me), people would be surprised to read:
11838   #    /* config.h.  Generated by config.status.  */
11839   if test x"$ac_file" = x-; then
11840     echo "/* Generated by configure.  */" >$tmp/config.h
11841   else
11842     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11843   fi
11844   cat $tmp/in >>$tmp/config.h
11845   rm -f $tmp/in
11846   if test x"$ac_file" != x-; then
11847     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11848       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11849 echo "$as_me: $ac_file is unchanged" >&6;}
11850     else
11851       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11852 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11853          X"$ac_file" : 'X\(//\)[^/]' \| \
11854          X"$ac_file" : 'X\(//\)$' \| \
11855          X"$ac_file" : 'X\(/\)' \| \
11856          .     : '\(.\)' 2>/dev/null ||
11857 echo X"$ac_file" |
11858     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11859           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11860           /^X\(\/\/\)$/{ s//\1/; q; }
11861           /^X\(\/\).*/{ s//\1/; q; }
11862           s/.*/./; q'`
11863       { if $as_mkdir_p; then
11864     mkdir -p "$ac_dir"
11865   else
11866     as_dir="$ac_dir"
11867     as_dirs=
11868     while test ! -d "$as_dir"; do
11869       as_dirs="$as_dir $as_dirs"
11870       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11871 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11872          X"$as_dir" : 'X\(//\)[^/]' \| \
11873          X"$as_dir" : 'X\(//\)$' \| \
11874          X"$as_dir" : 'X\(/\)' \| \
11875          .     : '\(.\)' 2>/dev/null ||
11876 echo X"$as_dir" |
11877     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11878           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11879           /^X\(\/\/\)$/{ s//\1/; q; }
11880           /^X\(\/\).*/{ s//\1/; q; }
11881           s/.*/./; q'`
11882     done
11883     test ! -n "$as_dirs" || mkdir $as_dirs
11884   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11885 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11886    { (exit 1); exit 1; }; }; }
11887
11888       rm -f $ac_file
11889       mv $tmp/config.h $ac_file
11890     fi
11891   else
11892     cat $tmp/config.h
11893     rm -f $tmp/config.h
11894   fi
11895 done
11896 _ACEOF
11897 cat >>$CONFIG_STATUS <<\_ACEOF
11898
11899 #
11900 # CONFIG_COMMANDS section.
11901 #
11902 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11903   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11904   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11905   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11906 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11907          X"$ac_dest" : 'X\(//\)[^/]' \| \
11908          X"$ac_dest" : 'X\(//\)$' \| \
11909          X"$ac_dest" : 'X\(/\)' \| \
11910          .     : '\(.\)' 2>/dev/null ||
11911 echo X"$ac_dest" |
11912     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11913           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11914           /^X\(\/\/\)$/{ s//\1/; q; }
11915           /^X\(\/\).*/{ s//\1/; q; }
11916           s/.*/./; q'`
11917   { if $as_mkdir_p; then
11918     mkdir -p "$ac_dir"
11919   else
11920     as_dir="$ac_dir"
11921     as_dirs=
11922     while test ! -d "$as_dir"; do
11923       as_dirs="$as_dir $as_dirs"
11924       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11925 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11926          X"$as_dir" : 'X\(//\)[^/]' \| \
11927          X"$as_dir" : 'X\(//\)$' \| \
11928          X"$as_dir" : 'X\(/\)' \| \
11929          .     : '\(.\)' 2>/dev/null ||
11930 echo X"$as_dir" |
11931     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11932           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11933           /^X\(\/\/\)$/{ s//\1/; q; }
11934           /^X\(\/\).*/{ s//\1/; q; }
11935           s/.*/./; q'`
11936     done
11937     test ! -n "$as_dirs" || mkdir $as_dirs
11938   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11939 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11940    { (exit 1); exit 1; }; }; }
11941
11942   ac_builddir=.
11943
11944 if test "$ac_dir" != .; then
11945   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11946   # A "../" for each directory in $ac_dir_suffix.
11947   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11948 else
11949   ac_dir_suffix= ac_top_builddir=
11950 fi
11951
11952 case $srcdir in
11953   .)  # No --srcdir option.  We are building in place.
11954     ac_srcdir=.
11955     if test -z "$ac_top_builddir"; then
11956        ac_top_srcdir=.
11957     else
11958        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11959     fi ;;
11960   [\\/]* | ?:[\\/]* )  # Absolute path.
11961     ac_srcdir=$srcdir$ac_dir_suffix;
11962     ac_top_srcdir=$srcdir ;;
11963   *) # Relative path.
11964     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11965     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11966 esac
11967
11968 # Do not use `cd foo && pwd` to compute absolute paths, because
11969 # the directories may not exist.
11970 case `pwd` in
11971 .) ac_abs_builddir="$ac_dir";;
11972 *)
11973   case "$ac_dir" in
11974   .) ac_abs_builddir=`pwd`;;
11975   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11976   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11977   esac;;
11978 esac
11979 case $ac_abs_builddir in
11980 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11981 *)
11982   case ${ac_top_builddir}. in
11983   .) ac_abs_top_builddir=$ac_abs_builddir;;
11984   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11985   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11986   esac;;
11987 esac
11988 case $ac_abs_builddir in
11989 .) ac_abs_srcdir=$ac_srcdir;;
11990 *)
11991   case $ac_srcdir in
11992   .) ac_abs_srcdir=$ac_abs_builddir;;
11993   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11994   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11995   esac;;
11996 esac
11997 case $ac_abs_builddir in
11998 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11999 *)
12000   case $ac_top_srcdir in
12001   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12002   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12003   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12004   esac;;
12005 esac
12006
12007
12008   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12009 echo "$as_me: executing $ac_dest commands" >&6;}
12010   case $ac_dest in
12011     default-1 )
12012 # Only add multilib support code if we just rebuilt the top-level
12013 # Makefile.
12014 case " $CONFIG_FILES " in
12015  *" Makefile "*)
12016    ac_file=Makefile . ${multi_basedir}/config-ml.in
12017    ;;
12018 esac ;;
12019     libtool )
12020
12021     # See if we are running on zsh, and set the options which allow our
12022     # commands through without removal of \ escapes.
12023     if test -n "${ZSH_VERSION+set}" ; then
12024       setopt NO_GLOB_SUBST
12025     fi
12026
12027     cfgfile="${ofile}T"
12028     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12029     $RM "$cfgfile"
12030
12031     cat <<_LT_EOF >> "$cfgfile"
12032 #! $SHELL
12033
12034 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12035 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
12036 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12037 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12038 #
12039 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12040 # 2006, 2007 Free Software Foundation, Inc.
12041 #
12042 # This file is part of GNU Libtool:
12043 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12044 #
12045 # This program is free software; you can redistribute it and/or modify
12046 # it under the terms of the GNU General Public License as published by
12047 # the Free Software Foundation; either version 2 of the License, or
12048 # (at your option) any later version.
12049 #
12050 # This program is distributed in the hope that it will be useful, but
12051 # WITHOUT ANY WARRANTY; without even the implied warranty of
12052 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12053 # General Public License for more details.
12054 #
12055 # You should have received a copy of the GNU General Public License
12056 # along with this program; if not, a copy can be downloaded from
12057 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
12058 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
12059 # MA 02110-1301, USA.
12060 #
12061 # As a special exception to the GNU General Public License, if you
12062 # distribute this file as part of a program that contains a
12063 # configuration script generated by Autoconf, you may include it under
12064 # the same distribution terms that you use for the rest of that program.
12065
12066
12067 # The names of the tagged configurations supported by this script.
12068 available_tags=""
12069
12070 # ### BEGIN LIBTOOL CONFIG
12071
12072 # Assembler program.
12073 AS=$AS
12074
12075 # DLL creation program.
12076 DLLTOOL=$DLLTOOL
12077
12078 # Object dumper program.
12079 OBJDUMP=$OBJDUMP
12080
12081 # Which release of libtool.m4 was used?
12082 macro_version=$macro_version
12083 macro_revision=$macro_revision
12084
12085 # Whether or not to build shared libraries.
12086 build_libtool_libs=$enable_shared
12087
12088 # Whether or not to build static libraries.
12089 build_old_libs=$enable_static
12090
12091 # What type of objects to build.
12092 pic_mode=$pic_mode
12093
12094 # Whether or not to optimize for fast installation.
12095 fast_install=$enable_fast_install
12096
12097 # The host system.
12098 host_alias=$host_alias
12099 host=$host
12100 host_os=$host_os
12101
12102 # The build system.
12103 build_alias=$build_alias
12104 build=$build
12105 build_os=$build_os
12106
12107 # A sed program that does not truncate output.
12108 SED=$lt_SED
12109
12110 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12111 Xsed="\$SED -e 1s/^X//"
12112
12113 # A grep program that handles long lines.
12114 GREP=$lt_GREP
12115
12116 # An ERE matcher.
12117 EGREP=$lt_EGREP
12118
12119 # A literal string matcher.
12120 FGREP=$lt_FGREP
12121
12122 # A BSD- or MS-compatible name lister.
12123 NM=$lt_NM
12124
12125 # Whether we need soft or hard links.
12126 LN_S=$lt_LN_S
12127
12128 # What is the maximum length of a command?
12129 max_cmd_len=$max_cmd_len
12130
12131 # Object file suffix (normally "o").
12132 objext=$ac_objext
12133
12134 # Executable file suffix (normally "").
12135 exeext=$exeext
12136
12137 # whether the shell understands "unset".
12138 lt_unset=$lt_unset
12139
12140 # turn spaces into newlines.
12141 SP2NL=$lt_lt_SP2NL
12142
12143 # turn newlines into spaces.
12144 NL2SP=$lt_lt_NL2SP
12145
12146 # How to create reloadable object files.
12147 reload_flag=$lt_reload_flag
12148 reload_cmds=$lt_reload_cmds
12149
12150 # Method to check whether dependent libraries are shared objects.
12151 deplibs_check_method=$lt_deplibs_check_method
12152
12153 # Command to use when deplibs_check_method == "file_magic".
12154 file_magic_cmd=$lt_file_magic_cmd
12155
12156 # The archiver.
12157 AR=$lt_AR
12158 AR_FLAGS=$lt_AR_FLAGS
12159
12160 # A symbol stripping program.
12161 STRIP=$lt_STRIP
12162
12163 # Commands used to install an old-style archive.
12164 RANLIB=$lt_RANLIB
12165 old_postinstall_cmds=$lt_old_postinstall_cmds
12166 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12167
12168 # A C compiler.
12169 LTCC=$lt_CC
12170
12171 # LTCC compiler flags.
12172 LTCFLAGS=$lt_CFLAGS
12173
12174 # Take the output of nm and produce a listing of raw symbols and C names.
12175 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12176
12177 # Transform the output of nm in a proper C declaration.
12178 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12179
12180 # Transform the output of nm in a C name address pair.
12181 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12182
12183 # The name of the directory that contains temporary libtool files.
12184 objdir=$objdir
12185
12186 # Shell to use when invoking shell scripts.
12187 SHELL=$lt_SHELL
12188
12189 # An echo program that does not interpret backslashes.
12190 ECHO=$lt_ECHO
12191
12192 # Used to examine libraries when file_magic_cmd begins with "file".
12193 MAGIC_CMD=$MAGIC_CMD
12194
12195 # Must we lock files when doing compilation?
12196 need_locks=$lt_need_locks
12197
12198 # Old archive suffix (normally "a").
12199 libext=$libext
12200
12201 # Shared library suffix (normally ".so").
12202 shrext_cmds=$lt_shrext_cmds
12203
12204 # The commands to extract the exported symbol list from a shared archive.
12205 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12206
12207 # Variables whose values should be saved in libtool wrapper scripts and
12208 # restored at link time.
12209 variables_saved_for_relink=$lt_variables_saved_for_relink
12210
12211 # Do we need the "lib" prefix for modules?
12212 need_lib_prefix=$need_lib_prefix
12213
12214 # Do we need a version for libraries?
12215 need_version=$need_version
12216
12217 # Library versioning type.
12218 version_type=$version_type
12219
12220 # Shared library runtime path variable.
12221 runpath_var=$runpath_var
12222
12223 # Shared library path variable.
12224 shlibpath_var=$shlibpath_var
12225
12226 # Is shlibpath searched before the hard-coded library search path?
12227 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12228
12229 # Format of library name prefix.
12230 libname_spec=$lt_libname_spec
12231
12232 # List of archive names.  First name is the real one, the rest are links.
12233 # The last name is the one that the linker finds with -lNAME
12234 library_names_spec=$lt_library_names_spec
12235
12236 # The coded name of the library, if different from the real name.
12237 soname_spec=$lt_soname_spec
12238
12239 # Command to use after installation of a shared archive.
12240 postinstall_cmds=$lt_postinstall_cmds
12241
12242 # Command to use after uninstallation of a shared archive.
12243 postuninstall_cmds=$lt_postuninstall_cmds
12244
12245 # Commands used to finish a libtool library installation in a directory.
12246 finish_cmds=$lt_finish_cmds
12247
12248 # As "finish_cmds", except a single script fragment to be evaled but
12249 # not shown.
12250 finish_eval=$lt_finish_eval
12251
12252 # Whether we should hardcode library paths into libraries.
12253 hardcode_into_libs=$hardcode_into_libs
12254
12255 # Compile-time system search path for libraries.
12256 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12257
12258 # Run-time system search path for libraries.
12259 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12260
12261 # Whether dlopen is supported.
12262 dlopen_support=$enable_dlopen
12263
12264 # Whether dlopen of programs is supported.
12265 dlopen_self=$enable_dlopen_self
12266
12267 # Whether dlopen of statically linked programs is supported.
12268 dlopen_self_static=$enable_dlopen_self_static
12269
12270 # Commands to strip libraries.
12271 old_striplib=$lt_old_striplib
12272 striplib=$lt_striplib
12273
12274
12275 # The linker used to build libraries.
12276 LD=$lt_LD
12277
12278 # Commands used to build an old-style archive.
12279 old_archive_cmds=$lt_old_archive_cmds
12280
12281 # A language specific compiler.
12282 CC=$lt_compiler
12283
12284 # Is the compiler the GNU compiler?
12285 with_gcc=$GCC
12286
12287 # Compiler flag to turn off builtin functions.
12288 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12289
12290 # How to pass a linker flag through the compiler.
12291 wl=$lt_lt_prog_compiler_wl
12292
12293 # Additional compiler flags for building library objects.
12294 pic_flag=$lt_lt_prog_compiler_pic
12295
12296 # Compiler flag to prevent dynamic linking.
12297 link_static_flag=$lt_lt_prog_compiler_static
12298
12299 # Does compiler simultaneously support -c and -o options?
12300 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12301
12302 # Whether or not to add -lc for building shared libraries.
12303 build_libtool_need_lc=$archive_cmds_need_lc
12304
12305 # Whether or not to disallow shared libs when runtime libs are static.
12306 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12307
12308 # Compiler flag to allow reflexive dlopens.
12309 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12310
12311 # Compiler flag to generate shared objects directly from archives.
12312 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12313
12314 # Whether the compiler copes with passing no objects directly.
12315 compiler_needs_object=$lt_compiler_needs_object
12316
12317 # Create an old-style archive from a shared archive.
12318 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12319
12320 # Create a temporary old-style archive to link instead of a shared archive.
12321 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12322
12323 # Commands used to build a shared archive.
12324 archive_cmds=$lt_archive_cmds
12325 archive_expsym_cmds=$lt_archive_expsym_cmds
12326
12327 # Commands used to build a loadable module if different from building
12328 # a shared archive.
12329 module_cmds=$lt_module_cmds
12330 module_expsym_cmds=$lt_module_expsym_cmds
12331
12332 # Whether we are building with GNU ld or not.
12333 with_gnu_ld=$lt_with_gnu_ld
12334
12335 # Flag that allows shared libraries with undefined symbols to be built.
12336 allow_undefined_flag=$lt_allow_undefined_flag
12337
12338 # Flag that enforces no undefined symbols.
12339 no_undefined_flag=$lt_no_undefined_flag
12340
12341 # Flag to hardcode \$libdir into a binary during linking.
12342 # This must work even if \$libdir does not exist
12343 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12344
12345 # If ld is used when linking, flag to hardcode \$libdir into a binary
12346 # during linking.  This must work even if \$libdir does not exist.
12347 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12348
12349 # Whether we need a single "-rpath" flag with a separated argument.
12350 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12351
12352 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12353 # DIR into the resulting binary.
12354 hardcode_direct=$hardcode_direct
12355
12356 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12357 # DIR into the resulting binary and the resulting library dependency is
12358 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12359 # library is relocated.
12360 hardcode_direct_absolute=$hardcode_direct_absolute
12361
12362 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12363 # into the resulting binary.
12364 hardcode_minus_L=$hardcode_minus_L
12365
12366 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12367 # into the resulting binary.
12368 hardcode_shlibpath_var=$hardcode_shlibpath_var
12369
12370 # Set to "yes" if building a shared library automatically hardcodes DIR
12371 # into the library and all subsequent libraries and executables linked
12372 # against it.
12373 hardcode_automatic=$hardcode_automatic
12374
12375 # Set to yes if linker adds runtime paths of dependent libraries
12376 # to runtime path list.
12377 inherit_rpath=$inherit_rpath
12378
12379 # Whether libtool must link a program against all its dependency libraries.
12380 link_all_deplibs=$link_all_deplibs
12381
12382 # Fix the shell variable \$srcfile for the compiler.
12383 fix_srcfile_path=$lt_fix_srcfile_path
12384
12385 # Set to "yes" if exported symbols are required.
12386 always_export_symbols=$always_export_symbols
12387
12388 # The commands to list exported symbols.
12389 export_symbols_cmds=$lt_export_symbols_cmds
12390
12391 # Symbols that should not be listed in the preloaded symbols.
12392 exclude_expsyms=$lt_exclude_expsyms
12393
12394 # Symbols that must always be exported.
12395 include_expsyms=$lt_include_expsyms
12396
12397 # Commands necessary for linking programs (against libraries) with templates.
12398 prelink_cmds=$lt_prelink_cmds
12399
12400 # Specify filename containing input files.
12401 file_list_spec=$lt_file_list_spec
12402
12403 # How to hardcode a shared library path into an executable.
12404 hardcode_action=$hardcode_action
12405
12406 # ### END LIBTOOL CONFIG
12407
12408 _LT_EOF
12409
12410   case $host_os in
12411   aix3*)
12412     cat <<\_LT_EOF >> "$cfgfile"
12413 # AIX sometimes has problems with the GCC collect2 program.  For some
12414 # reason, if we set the COLLECT_NAMES environment variable, the problems
12415 # vanish in a puff of smoke.
12416 if test "X${COLLECT_NAMES+set}" != Xset; then
12417   COLLECT_NAMES=
12418   export COLLECT_NAMES
12419 fi
12420 _LT_EOF
12421     ;;
12422   esac
12423
12424
12425 ltmain="$ac_aux_dir/ltmain.sh"
12426
12427
12428   # We use sed instead of cat because bash on DJGPP gets confused if
12429   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12430   # text mode, it properly converts lines to CR/LF.  This bash problem
12431   # is reportedly fixed, but why not run on old versions too?
12432   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12433     || (rm -f "$cfgfile"; exit 1)
12434
12435   case $xsi_shell in
12436   yes)
12437     cat << \_LT_EOF >> "$cfgfile"
12438 # func_dirname file append nondir_replacement
12439 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12440 # otherwise set result to NONDIR_REPLACEMENT.
12441 func_dirname ()
12442 {
12443   case ${1} in
12444     */*) func_dirname_result="${1%/*}${2}" ;;
12445     *  ) func_dirname_result="${3}" ;;
12446   esac
12447 }
12448
12449 # func_basename file
12450 func_basename ()
12451 {
12452   func_basename_result="${1##*/}"
12453 }
12454
12455 # func_stripname prefix suffix name
12456 # strip PREFIX and SUFFIX off of NAME.
12457 # PREFIX and SUFFIX must not contain globbing or regex special
12458 # characters, hashes, percent signs, but SUFFIX may contain a leading
12459 # dot (in which case that matches only a dot).
12460 func_stripname ()
12461 {
12462   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12463   # positional parameters, so assign one to ordinary parameter first.
12464   func_stripname_result=${3}
12465   func_stripname_result=${func_stripname_result#"${1}"}
12466   func_stripname_result=${func_stripname_result%"${2}"}
12467 }
12468
12469 # func_opt_split
12470 func_opt_split ()
12471 {
12472   func_opt_split_opt=${1%%=*}
12473   func_opt_split_arg=${1#*=}
12474 }
12475
12476 # func_lo2o object
12477 func_lo2o ()
12478 {
12479   case ${1} in
12480     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12481     *)    func_lo2o_result=${1} ;;
12482   esac
12483 }
12484 _LT_EOF
12485     ;;
12486   *) # Bourne compatible functions.
12487     cat << \_LT_EOF >> "$cfgfile"
12488 # func_dirname file append nondir_replacement
12489 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12490 # otherwise set result to NONDIR_REPLACEMENT.
12491 func_dirname ()
12492 {
12493   # Extract subdirectory from the argument.
12494   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12495   if test "X$func_dirname_result" = "X${1}"; then
12496     func_dirname_result="${3}"
12497   else
12498     func_dirname_result="$func_dirname_result${2}"
12499   fi
12500 }
12501
12502 # func_basename file
12503 func_basename ()
12504 {
12505   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12506 }
12507
12508 # func_stripname prefix suffix name
12509 # strip PREFIX and SUFFIX off of NAME.
12510 # PREFIX and SUFFIX must not contain globbing or regex special
12511 # characters, hashes, percent signs, but SUFFIX may contain a leading
12512 # dot (in which case that matches only a dot).
12513 # func_strip_suffix prefix name
12514 func_stripname ()
12515 {
12516   case ${2} in
12517     .*) func_stripname_result=`$ECHO "X${3}" \
12518            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12519     *)  func_stripname_result=`$ECHO "X${3}" \
12520            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12521   esac
12522 }
12523
12524 # sed scripts:
12525 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12526 my_sed_long_arg='1s/^-[^=]*=//'
12527
12528 # func_opt_split
12529 func_opt_split ()
12530 {
12531   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12532   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12533 }
12534
12535 # func_lo2o object
12536 func_lo2o ()
12537 {
12538   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12539 }
12540 _LT_EOF
12541 esac
12542
12543 case $lt_shell_append in
12544   yes)
12545     cat << \_LT_EOF >> "$cfgfile"
12546
12547 # func_append var value
12548 # Append VALUE to the end of shell variable VAR.
12549 func_append ()
12550 {
12551   eval "$1+=\$2"
12552 }
12553 _LT_EOF
12554     ;;
12555   *)
12556     cat << \_LT_EOF >> "$cfgfile"
12557
12558 # func_append var value
12559 # Append VALUE to the end of shell variable VAR.
12560 func_append ()
12561 {
12562   eval "$1=\$$1\$2"
12563 }
12564 _LT_EOF
12565     ;;
12566   esac
12567
12568
12569   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12570     || (rm -f "$cfgfile"; exit 1)
12571
12572   mv -f "$cfgfile" "$ofile" ||
12573     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12574   chmod +x "$ofile"
12575
12576  ;;
12577     default ) if test -n "$CONFIG_FILES"; then
12578   if test -n "${with_target_subdir}"; then
12579     # FIXME: We shouldn't need to set ac_file
12580     ac_file=Makefile
12581     LD="${ORIGINAL_LD_FOR_MULTILIBS}"
12582     . ${multi_basedir}/config-ml.in
12583   fi
12584 fi ;;
12585   esac
12586 done
12587 _ACEOF
12588
12589 cat >>$CONFIG_STATUS <<\_ACEOF
12590
12591 { (exit 0); exit 0; }
12592 _ACEOF
12593 chmod +x $CONFIG_STATUS
12594 ac_clean_files=$ac_clean_files_save
12595
12596
12597 # configure is writing to config.log, and then calls config.status.
12598 # config.status does its own redirection, appending to config.log.
12599 # Unfortunately, on DOS this fails, as config.log is still kept open
12600 # by configure, so config.status won't be able to write to it; its
12601 # output is simply discarded.  So we exec the FD to /dev/null,
12602 # effectively closing config.log, so it can be properly (re)opened and
12603 # appended to by config.status.  When coming back to configure, we
12604 # need to make the FD available again.
12605 if test "$no_create" != yes; then
12606   ac_cs_success=:
12607   ac_config_status_args=
12608   test "$silent" = yes &&
12609     ac_config_status_args="$ac_config_status_args --quiet"
12610   exec 5>/dev/null
12611   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12612   exec 5>>config.log
12613   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12614   # would make configure fail if this is the last instruction.
12615   $ac_cs_success || { (exit 1); exit 1; }
12616 fi
12617